:root{--navy:#0b1938;--navy2:#10284d;--cyan:#59c9ef;--pink:#f33d74;--ink:#111a31;--muted:#68758b;--soft:#f4f7fb;--line:#dfe6ee;--white:#fff;--success:#14906b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--soft);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}button,input,textarea{font:inherit}button,a{touch-action:manipulation}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.app-header{height:76px;background:#111e3a;color:#fff;border-bottom:1px solid #31405e}.app-nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;color:#fff;text-decoration:none}.brand img{display:block;width:64px;height:64px;object-fit:contain}.nav-actions{display:flex;align-items:center;gap:12px}.nav-link{color:#d5deeb;text-decoration:none;font-size:14px;font-weight:750}.account-button,.pink-button,.dark-button,.google-button{border:0;border-radius:999px;padding:12px 19px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:9px}.account-button{background:#223557;color:#fff}.pink-button{background:var(--pink);color:#fff;box-shadow:0 9px 24px rgba(243,61,116,.22)}.dark-button{background:var(--navy);color:#fff}.google-button{background:#fff;color:#172033;border:1px solid #d5dce6;border-radius:12px;width:100%;padding:14px}.google-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-size:12px;font-weight:900}.app-main{padding:34px 0 70px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.chat-card,.brief-card,.auth-card,.project-card,.empty-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 34px rgba(15,30,55,.06)}.chat-card{min-height:calc(100vh - 180px);display:flex;flex-direction:column;overflow:hidden}.chat-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.chat-title{min-width:0}.eyebrow{margin:0 0 4px;color:#089ecf;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.chat-head h1{margin:0;font-size:24px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status{display:inline-flex;align-items:center;gap:7px;color:var(--success);font-size:13px;font-weight:800}.status:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}.messages{flex:1;min-height:430px;max-height:62vh;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:15px}.message{max-width:min(78%,680px);padding:14px 17px;border-radius:17px;white-space:pre-wrap;overflow-wrap:anywhere}.message.assistant{align-self:flex-start;background:#eef8fc;border:1px solid #d4eef7;border-bottom-left-radius:5px}.message.user{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:5px}.typing{display:inline-flex;gap:5px;align-items:center}.typing i{display:block;width:7px;height:7px;border-radius:50%;background:#6c8a9d;animation:bounce 1s infinite alternate}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes bounce{to{transform:translateY(-5px);opacity:.45}}.composer{border-top:1px solid var(--line);padding:17px 20px;background:#fbfcfe}.composer-row{display:flex;align-items:flex-end;gap:10px}.composer textarea{flex:1;min-height:54px;max-height:150px;resize:vertical;border:1px solid #cbd6e2;border-radius:15px;padding:14px 16px;color:var(--ink);background:#fff}.composer textarea:focus{outline:3px solid rgba(16,175,230,.16);border-color:#10afe6}.send{width:54px;height:54px;flex:0 0 54px;border:0;border-radius:15px;background:var(--pink);color:#fff;font-size:22px;font-weight:900;cursor:pointer}.send:disabled,.pink-button:disabled{opacity:.55;cursor:wait}.composer-note{font-size:12px;color:var(--muted);margin:8px 2px 0}.brief-card{padding:24px;position:sticky;top:22px}.brief-card h2{font-size:19px;margin:0 0 6px}.brief-card>p{color:var(--muted);margin:0 0 20px;font-size:14px}.progress-line{height:9px;border-radius:99px;background:#e8edf3;overflow:hidden;margin-bottom:8px}.progress-line span{display:block;height:100%;width:10%;background:linear-gradient(90deg,var(--cyan),var(--pink));border-radius:inherit;transition:width .35s}.progress-label{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:22px}.brief-list{display:grid;gap:13px}.brief-item{padding-bottom:12px;border-bottom:1px solid #edf0f4}.brief-item:last-child{border:0}.brief-item strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a879a;margin-bottom:3px}.brief-item span{font-size:14px;color:#24304a}.brief-empty{padding:17px;border-radius:13px;background:#f4f7fb;color:var(--muted);font-size:14px}.auth-overlay{position:fixed;inset:0;z-index:50;display:none;place-items:center;padding:22px;background:rgba(5,14,32,.66);backdrop-filter:blur(8px)}.auth-overlay.open{display:grid}.auth-card{width:min(460px,100%);padding:34px;text-align:center}.auth-card img{width:84px;height:84px;object-fit:contain}.auth-card h2{font-size:27px;margin:6px 0 10px}.auth-card p{color:var(--muted);margin:0 0 23px}.auth-close{margin-top:15px;border:0;background:transparent;color:#667085;cursor:pointer}.page-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin:10px 0 30px}.page-head h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1;letter-spacing:-.045em;margin:8px 0}.page-head p{color:var(--muted);max-width:630px;margin:0}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{padding:23px;display:flex;flex-direction:column;min-height:240px}.project-meta{display:flex;justify-content:space-between;gap:10px;color:#7a879a;font-size:12px}.project-status{padding:5px 9px;border-radius:99px;background:#eaf8f4;color:#0b7f5f;font-weight:800}.project-card h2{font-size:21px;line-height:1.25;margin:24px 0 9px}.project-card p{color:var(--muted);margin:0 0 22px;font-size:14px}.project-card .dark-button{margin-top:auto;align-self:flex-start}.empty-card{padding:45px;text-align:center;grid-column:1/-1}.empty-card h2{margin-top:0}.empty-card p{color:var(--muted)}.loading{padding:55px;text-align:center;color:var(--muted)}.error-banner{display:none;margin:0 20px 15px;padding:12px 15px;border-radius:11px;background:#fff0f3;color:#a61b45;font-size:14px;font-weight:700}.error-banner.show{display:block}.footer-note{text-align:center;color:#7c889b;font-size:13px;margin-top:32px}.footer-note a{color:inherit}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.brief-card{position:static;order:-1}.chat-card{min-height:680px}.projects-grid{grid-template-columns:1fr 1fr}.messages{max-height:none}.nav-link{display:none}}
@media(max-width:620px){.wrap{width:min(100% - 24px,1180px)}.app-header,.app-nav{height:68px}.brand img{width:57px;height:57px}.account-button{padding:10px 13px;font-size:13px}.app-main{padding:20px 0 50px}.chat-head{padding:18px}.chat-head h1{font-size:20px}.messages{min-height:400px;padding:18px}.message{max-width:90%}.composer{padding:13px}.workspace{gap:13px}.brief-card{padding:19px}.projects-grid{grid-template-columns:1fr}.page-head{display:block}.page-head .pink-button{margin-top:22px}.auth-card{padding:28px 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.typing i{animation:none}}
