*{box-sizing:border-box}:root{color:#1e293b;font-synthesis:none;text-rendering:optimizelegibility;background:#f8fafc;font-family:Inter,Arial,sans-serif}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}input,textarea{background:#fff;border:1px solid #dbe2ea;border-radius:9px;outline:none;width:100%;padding:12px 14px}input:focus,textarea:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}h1,h2,h3,h4,p{margin-top:0}button svg{flex-shrink:0}.app-layout{min-height:100vh;display:flex}.auth-page{background:linear-gradient(135deg,#eef2ff,#f8fafc);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;width:min(100%,420px);padding:32px;box-shadow:0 20px 50px #0f172a14}.auth-card label{margin:18px 0 8px;font-size:13px;font-weight:600;display:block}.auth-card input,.auth-card select,.auth-card textarea,.new-project-card input,.new-project-card select,.new-project-card textarea,.project-actions select,.brief-editor{width:100%;font:inherit;box-sizing:border-box;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px}.password-row{align-items:center;gap:8px;display:flex}.password-row input{flex:1}.icon-button{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.sidebar{color:#fff;background:#111827;flex-direction:column;flex-shrink:0;width:260px;padding:25px 16px;display:flex}.brand{color:#818cf8;align-items:center;gap:10px;margin-bottom:40px;display:flex}.brand h1,.brand h2{color:#fff;margin:0;font-size:22px}.sidebar-heading{color:#9ca3af;justify-content:space-between;align-items:center;margin-bottom:15px;font-size:11px;font-weight:700;display:flex}.project-list{flex-direction:column;gap:7px;display:flex}.project-item{text-align:left;color:#d1d5db;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:12px;display:flex}.project-item:hover,.project-item.active{color:#fff;background:#374151}.project-item span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-bottom{color:#9ca3af;border-top:1px solid #374151;margin-top:auto;padding-top:20px;font-size:13px}.logout-button{color:#fff;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:10px 0;display:flex}.main-content{flex:1;min-width:0;max-width:1500px;margin:0 auto;padding:35px}.topbar,.project-header{justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px;display:flex}.topbar h1{margin-bottom:0;font-size:28px}.muted{color:#64748b;font-size:13px}.new-project-card,.result-card,.empty-state{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:25px;padding:24px}.new-project-card h2{align-items:center;gap:8px;font-size:18px;display:flex}.new-project-card form{gap:12px;display:grid}.new-project-card textarea{resize:vertical;min-height:80px}.primary-button,.secondary-button,.danger-button,.text-button.inline{cursor:pointer;border:none;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:11px 17px;font-weight:600;display:inline-flex}.primary-button{color:#fff;background:#4f46e5}.primary-button:hover{background:#4338ca}.secondary-button{color:#4338ca;background:#eef2ff}.danger-button{color:#b91c1c;background:#fee2e2}.text-button{color:#4f46e5;cursor:pointer;background:0 0;border:none;margin-top:15px}.text-button.inline{color:#b91c1c;background:0 0;margin-top:0;padding:0}.empty-state{text-align:center;color:#64748b;padding:65px 20px}.empty-state svg{color:#818cf8}.tabs{border-bottom:1px solid #e2e8f0;flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.tab{color:#64748b;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:7px;padding:13px 15px;display:flex}.tab.active{color:#4f46e5;border-bottom-color:#4f46e5}.brief-editor{resize:vertical;min-height:250px;margin-bottom:15px;line-height:1.7}.action-row,.section-header{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.section-header{justify-content:space-between;margin-bottom:10px}.history-picker{color:#475569;gap:6px;max-width:100%;margin:18px 0;font-size:13px;font-weight:600;display:grid}.history-picker select{color:#1e293b;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px}.meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.valid{color:#15803d;font-weight:600}.invalid{color:#b91c1c;font-weight:600}.generated-content{overflow-wrap:anywhere;margin-top:25px;line-height:1.7}.generated-content h4{margin-top:28px;margin-bottom:12px}.output-item{border:1px solid #e2e8f0;border-radius:10px;margin-bottom:12px;padding:15px}.output-item p{color:#64748b;margin:8px 0}.output-item small{color:#6366f1}.error,.error-box{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:9px;margin-bottom:15px;padding:12px}.project-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:12px;display:flex}.project-actions select{min-width:150px}.project-edit-form{flex:1;gap:12px;min-width:0;display:grid}.project-edit-form label{color:#475569;gap:6px;font-size:13px;font-weight:600;display:grid}.project-edit-form textarea{resize:vertical;min-height:80px}.sidebar-empty{margin:0;padding:8px 12px}button:disabled,input:disabled,select:disabled,textarea:disabled{opacity:.6;cursor:not-allowed}@media (width<=900px){.app-layout{flex-direction:column}.sidebar{width:100%;padding:18px 16px}.brand{margin-bottom:18px}.project-list{flex-direction:row;padding-bottom:6px;overflow-x:auto}.project-item{flex:none;min-width:150px;max-width:220px}.sidebar-bottom{justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding-top:12px;display:flex}.sidebar-bottom p{overflow-wrap:anywhere;margin:0}.main-content{width:100%;margin:0;padding:20px}.project-header{flex-direction:column;align-items:stretch}.project-actions{justify-content:flex-start}.tabs{flex-wrap:nowrap;overflow-x:auto}.tab{white-space:nowrap;flex:none}}@media (width<=480px){.main-content{padding:14px}.new-project-card,.result-card,.empty-state{padding:18px}.topbar{align-items:flex-start}.action-row>button{flex:auto}}.auth-card .brand h1{color:#111827}.auth-card .primary-button{width:100%;margin-top:20px}
