:root{--bg:#111214;--panel:#17181b;--line:#2a2b2f;--text:#f3f1ee;--muted:#939397;--orange:#ff943f;--soft-orange:#ffb275;font-family:Inter,"Segoe UI",system-ui,sans-serif;color-scheme:dark;accent-color:var(--orange)}
*{box-sizing:border-box}
body{margin:0;height:100vh;height:100dvh;display:flex;overflow:hidden;background:var(--bg);color:var(--text);font-family:inherit;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:#202125;color:var(--text);padding:10px 14px;transition:background .18s,border-color .18s,transform .18s}
button:hover{background:#2a2b30;border-color:#45464b}
button:disabled{opacity:.45;cursor:wait;transform:none}
button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
[hidden]{display:none!important}
::selection{background:#86481e;color:#fff}
/* Workspace and Bootstrap mobile drawer. */
#sidebar{--bs-offcanvas-width:264px;width:248px;flex-shrink:0;display:flex;flex-direction:column;gap:24px;padding:30px 18px 20px;background:#161719!important;color:var(--text);border-right:1px solid #242529!important}
.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;padding:0 10px}
.brand:hover{color:inherit}
.wordmark{display:inline-flex;gap:4px;align-items:baseline;font-size:26px;font-weight:750;letter-spacing:-1px;line-height:1.2}
.wordmark-oggy{color:var(--orange)}.wordmark-ai{color:#fff;font-weight:500}
.logo{position:relative;display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:linear-gradient(145deg,#ffbc7b,#ff8330);color:#29170e;font-size:35px;font-weight:800;line-height:1;padding-bottom:7px;box-shadow:0 4px 20px #ff8b251a}
.logo>span{position:absolute;right:6px;top:7px;width:5px;height:5px;background:#fff1d5;border-radius:50%}
.new{display:flex;align-items:center;gap:9px;background:#282119;border-color:#5c3d26;color:#ffbe8b;font-size:13px;text-align:left;padding:12px}
.new:hover{background:#34281d;border-color:#9d6033}.new>span:first-child{font-size:19px;line-height:1}.new-arrow{margin-left:auto;color:#bf8251}
.section-label{font-size:9px;letter-spacing:1.6px;font-weight:650;color:#787a80}
.history-heading{display:flex;align-items:center;justify-content:space-between;padding:9px 10px 0}.history-mark{color:#6c6f76;font-size:16px}
#history{display:flex;flex-direction:column;gap:5px;overflow:auto;flex:1;min-height:0}
#history:empty::after{content:"Your next idea starts here.";padding:6px 10px;color:#5d6067;font-size:12px}
#history button{text-align:left;background:none;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#a8a9ae;padding:11px 10px}
#history button:hover,#history button.active{background:#242529;color:#f4f1ed}
.side-foot{display:flex;align-items:center;gap:10px;border-top:1px solid #27282c;padding:18px 8px 0;margin-top:auto}
.workspace-avatar{display:grid;place-items:center;width:32px;height:32px;border:1px solid #474038;border-radius:10px;color:#ffb97e;background:#2b241e;font-size:13px;font-weight:650}
.side-foot strong{font-size:11px;font-weight:550}.side-foot p{margin:5px 0 0;font-size:10px;color:#7e8188}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#ffa35d;margin-right:5px}
.mobile-sidebar-header{flex-shrink:0}
main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 55% 28%,#3622152b,transparent 55%),var(--bg)}
header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 30px;border-bottom:1px solid #232428;flex-shrink:0}
.header-brand,.header-controls{display:flex;align-items:center;gap:12px;min-width:0}.header-controls{flex-shrink:0;gap:8px}
header .wordmark{font-size:20px;white-space:nowrap}.header-divider{width:1px;height:16px;background:#3a3b3f;margin-left:4px}.header-caption{font-size:11px;color:#7e8188;white-space:nowrap}
.icon-button{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;padding:8px;background:transparent;border:1px solid transparent;font-size:20px;color:#aaaeb5}
.icon-button svg{width:19px;height:19px}.icon-button:hover{background:#242529;color:#fff}
/* A balanced welcome block; the cards remain in one row. */
#chat{flex:1;min-height:0;overflow:auto;padding:30px max(24px,calc((100% - 790px)/2));scrollbar-width:thin;scrollbar-color:#3d3a36 transparent;overscroll-behavior:contain}
#chat:has(.welcome){display:flex;align-items:center;padding-top:28px;padding-bottom:36px}
.welcome{width:100%;text-align:center;max-width:790px;margin:0 auto}
.welcome-symbol{position:relative;display:grid;place-items:center;width:64px;height:64px;margin:0 auto 24px;background:linear-gradient(145deg,#ffac64,#ed7028);border-radius:20px;transform:rotate(-8deg);box-shadow:0 8px 40px #f67c2720,inset 0 1px 0 #ffd5ad70}
.welcome-symbol>span{font-size:48px;line-height:1;color:#382111;transform:rotate(8deg)}
.welcome-symbol i{position:absolute;width:7px;height:7px;background:#ffcb9c;border-radius:50%;right:-7px;top:-6px;box-shadow:0 0 15px #ffac4b66}
.eyebrow{display:flex;align-items:center;justify-content:center;gap:7px;font-size:9px;letter-spacing:1.7px;color:#b58d6e;font-weight:550}
.eyebrow>span{width:4px;height:4px;background:#ed9a59;border-radius:50%}
h1{font-size:clamp(32px,3.6vw,46px);line-height:1.17;letter-spacing:-1.8px;font-weight:550;margin:16px 0 14px;color:#f6f1eb}
h1>span{color:#a0a0a3;font-weight:450}.welcome>p{color:#85878e;font-size:13px;margin:0;line-height:1.7}
.suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:32px;text-align:left}
.suggestions button{min-width:0;text-align:left;border:1px solid #303035;border-radius:14px;padding:17px;background:linear-gradient(145deg,#202023,#1a1b1e);height:100%;overflow-wrap:anywhere;box-shadow:0 3px 14px #0001}
.suggestions button:hover{background:linear-gradient(145deg,#30251d,#211f1e);border-color:#875431;transform:translateY(-3px)}
.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.card-icon{color:#ffb178;font-size:23px;line-height:1}.card-arrow{color:#65666d;font-size:17px}
.suggestions strong{font-size:12px;font-weight:600;display:block;color:#e3e0dc}.suggestions small{display:block;font-size:10px;color:#7f8189;line-height:1.65;margin-top:6px}
footer{flex-shrink:0;width:min(850px,100%);margin:0 auto;padding:0 30px 18px}
#status{min-height:17px;font-size:11px;color:#ad9681;padding:0 4px;margin:0 0 8px}
#composer.input-group{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;background:#202023;border:1px solid #464039;border-radius:17px;padding:15px 16px;box-shadow:0 8px 35px #0002;transition:border-color .2s,box-shadow .2s}
#composer:focus-within{border-color:#b16a37;box-shadow:0 0 0 3px #ff963909,0 8px 35px #0002}
#composer textarea.form-control{flex:1 1 0;min-width:0;width:0;min-height:52px;max-height:160px;background:none;border:0;box-shadow:none!important;outline:none;color:#f4f1ed;resize:none;font-size:13px;line-height:1.7;padding:0;margin:0;align-self:center;transition:height .12s ease}
#composer textarea::placeholder{color:#787b82}
.composer-actions{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;margin:0!important}
#send{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;padding:10px 14px;background:linear-gradient(135deg,#ffa252,#ff8b32);border:0;border-radius:11px;color:#301a0c;font-size:12px;font-weight:650;white-space:nowrap;box-shadow:0 3px 12px #ff91321a}
#send>span:last-child{font-size:20px;line-height:1;font-weight:450}#send:hover{background:#ffb06e;transform:translateY(-1px)}#send:disabled{opacity:.5;color:#301a0c}
#stop{font-size:11px;padding:5px 10px;min-height:30px}
.composer-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:#6c6f76;padding:10px 4px 0;line-height:1.6}
.keyboard-hint{white-space:nowrap}.keyboard-hint>span{margin:0 5px}kbd{font:inherit;font-size:8px;color:#9699a1;background:#222327;border:1px solid #34353b;border-radius:4px;padding:2px 4px}
.note{text-align:center;font-size:9px;color:#565a62;margin:9px 0 0}
.message{margin:0 0 26px;line-height:1.8;overflow-wrap:anywhere}.message .name{font-size:10px;letter-spacing:1.2px;font-weight:600;color:#e8a470;text-transform:uppercase;margin-bottom:9px}.content{white-space:pre-wrap;font-size:14px;color:#dbdce0}
.message.user{margin-left:8%;padding:16px 19px;border:1px solid #39332e;background:#27221e;border-radius:15px 15px 4px 15px}.message.user .name{color:#b6a391}
.copy{background:transparent;border-color:#2f3034;font-size:10px;color:#7d818a;padding:4px 9px;margin-top:12px}
.activity{display:flex;align-items:center;gap:10px;min-height:28px;margin-top:8px;color:#d9a47c;font-size:11px}.thinking-dots{display:inline-flex;gap:4px;align-items:center;height:18px}.thinking-dots i{display:block;width:5px;height:5px;border-radius:50%;background:var(--orange);animation:thinking 1.2s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}
.response-notice{margin-top:10px;font-size:12px;color:#d0a17c}
@keyframes thinking{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-4px)}}
@media(min-width:768px){#sidebar{position:relative;visibility:visible!important;transform:none!important}}
@media(max-width:1050px){.header-caption,.header-divider{display:none}#sidebar{width:220px}#chat{padding-inline:24px}footer{padding-inline:24px}.keyboard-hint{display:none}}
@media(max-width:767.98px){
  #sidebar{width:264px;max-width:85vw;padding:22px 18px}.mobile-sidebar-header{margin-bottom:-5px}
  header{padding:12px 14px;gap:8px}.header-brand{gap:6px}.header-controls{gap:4px}header .wordmark{font-size:20px}.icon-button{width:34px;height:36px}
  #chat{padding:22px 18px}#chat:has(.welcome){padding:24px 18px 28px;align-items:center}
  .welcome-symbol{width:54px;height:54px;border-radius:17px;margin-bottom:22px}.welcome-symbol>span{font-size:40px}
  h1{font-size:34px;letter-spacing:-1.2px;margin:14px 0 12px}.eyebrow{font-size:8px;letter-spacing:1px}.welcome>p{font-size:12px}
  .suggestions{gap:8px;margin-top:28px}.suggestions button{padding:12px 10px;border-radius:12px}.card-top{margin-bottom:12px}.card-icon{font-size:21px}.card-arrow{font-size:14px}.suggestions strong{font-size:11px;line-height:1.45}.suggestions small{font-size:9px;line-height:1.55;margin-top:6px}
  footer{padding:0 14px max(14px,env(safe-area-inset-bottom))}#status{font-size:10px;margin-bottom:7px}
  #composer.input-group{gap:10px;padding:13px 12px;border-radius:15px}#composer textarea.form-control{font-size:16px;min-height:48px;line-height:1.5}#send{min-width:45px;min-height:45px;padding:10px 12px;gap:7px}#send>span:first-child{font-size:11px}
  .composer-caption{font-size:8px;padding-top:9px}.note{font-size:8px;margin-top:6px}.message.user{margin-left:4%}
}
@media(max-width:380px){header{padding:10px;gap:5px}.header-controls{gap:1px}header .wordmark{font-size:18px}.icon-button{width:31px}h1{font-size:30px}.eyebrow{font-size:7px}.suggestions button{padding:11px 8px}.suggestions strong{font-size:10px}.suggestions small{font-size:8px}.card-arrow{display:none}}
@media(max-height:720px){#chat:has(.welcome){align-items:flex-start}.welcome-symbol{width:44px;height:44px;border-radius:14px;margin-bottom:14px}.welcome-symbol>span{font-size:34px}h1{font-size:32px;margin:12px 0 10px}.suggestions{margin-top:23px}.welcome>p{font-size:12px}.card-top{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
html{height:100%;overflow:hidden}
body{position:fixed;top:var(--viewport-top,0px);left:0;width:100%;height:var(--app-height,100dvh)}
.keyboard-open .composer-caption,.keyboard-open .note{display:none}
.keyboard-open footer{padding-bottom:10px}
.keyboard-open #chat:has(.welcome){align-items:flex-start;padding-block:16px}
.keyboard-open .welcome-symbol,.keyboard-open .eyebrow{display:none}
.keyboard-open .welcome h1{font-size:24px;margin-top:0}
.keyboard-open .suggestions{margin-top:16px}
/* Project cards on the welcome screen (filled from projects.json by app.js). */
.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:32px;text-align:left}
.project-card{display:flex;flex-direction:column;gap:10px;min-width:0;border:1px solid #303035;border-radius:14px;padding:17px;background:linear-gradient(145deg,#202023,#1a1b1e);box-shadow:0 3px 14px #0001;transition:border-color .18s,transform .18s}
.project-card:hover{border-color:#875431;transform:translateY(-3px)}
.project-card .card-top{margin-bottom:0;gap:8px}.project-card strong{font-size:13px;font-weight:600;color:#e3e0dc}
.project-card small{font-size:11px;color:#8d8f96;line-height:1.65;flex:1}
.project-status{font-size:9px;letter-spacing:.6px;text-transform:uppercase;padding:3px 8px;border-radius:999px;border:1px solid #3a3b41;color:#9a9ca3;white-space:nowrap}
.project-status.live{color:#7fd8a1;border-color:#2f6b47;background:#163024}.project-status.offline{color:#c99a7e;border-color:#5a3d2c}
.project-tags{display:flex;flex-wrap:wrap;gap:5px}.project-tags span{font-size:9px;color:#b9a593;background:#2a2622;border-radius:6px;padding:2px 7px}
.project-actions{display:flex;gap:8px}.project-actions>*{flex:1;font-size:11px;padding:8px 10px;border-radius:9px;text-align:center}
.project-open{color:#311d0f;background:var(--orange);text-decoration:none;font-weight:600}.project-open:hover{filter:brightness(1.08)}
.project-open[aria-disabled=true]{background:#2a2b30;color:#7d7f86}
@media(max-width:760px){.projects{grid-template-columns:1fr;gap:10px;margin-top:24px}}
.keyboard-open .projects{display:none}
.message.assistant .content{white-space:normal}.message.assistant .content>:first-child{margin-top:0}.message.assistant .content>:last-child{margin-bottom:0}
.content p{margin:0 0 10px}.content .md-heading{font-weight:650;color:#f1f1f3;margin:16px 0 6px}
.content ul,.content ol{margin:0 0 10px;padding-left:22px}.content li{margin:3px 0}.content li.nested{margin-left:18px;list-style-type:circle}
.content strong{color:#f4f4f6;font-weight:650}.content a{color:#e8a470}
.content code{font-size:12.5px;padding:1px 5px;border-radius:5px;background:#1a1b1f;color:#f0c49d}
.content pre{margin:0 0 12px;padding:12px 14px;border:1px solid #303137;border-radius:10px;background:#141518;white-space:pre-wrap;overflow-wrap:anywhere}.content pre code{padding:0;background:none;color:#d6d7dc}
