#studio { display:block; min-height:100dvh; --ink:#292824; --line:#deddd7; --paper:#fbfbf9; font-family:"DM Sans",Arial,sans-serif; }
.studio-shell { display:grid; grid-template-columns:min(32vw,440px) minmax(0,1fr); min-height:100dvh; color:var(--ink); background:var(--paper); }
.studio-shell.is-signed-in { grid-template-columns:68px min(31vw,432px) minmax(0,1fr); }
.studio-shell.is-signed-in.nav-expanded { grid-template-columns:228px min(27vw,380px) minmax(0,1fr); }
.studio-rail { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; gap:8px; padding:14px 7px; background:#efeee9; border-right:1px solid var(--line); }
.studio-rail button { border-color:transparent; background:transparent; text-align:left; }
.nav-collapsed .studio-rail span { display:none; }
.studio-chat { position:sticky; top:0; height:100dvh; display:grid; grid-template-rows:72px minmax(0,1fr) auto auto; background:#f7f6f2; border-right:1px solid var(--line); min-width:0; }
.studio-brand,.studio-work__bar { display:flex; align-items:center; border-bottom:1px solid var(--line); padding:0 28px; }
.studio-brand img { width:130px; height:auto; display:block; }
.studio-thread { overflow:auto; padding:29px 28px; }
.studio-thread>small,.decision>small,.bubble small { font-size:13px; font-weight:600; }
.bubble { margin:24px 0; }
.bubble p { margin:8px 0; font-size:17px; line-height:1.5; white-space:pre-line; }
.from-user { background:white; border:1px solid var(--line); border-radius:12px; margin-left:14px; padding:16px 18px; }
.studio-composer { background:white; border:1px solid #c8c7c0; border-radius:10px; margin:0 27px; padding:12px; max-height:50vh; overflow:auto; }
.studio-composer>textarea { width:100%; min-height:48px; border:0; resize:vertical; }
.compose-actions,.studio-account,.studio-work__bar,.studio-tools { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.compose-actions button { background:#eeede8; border:0; min-width:34px; padding:5px; }
.studio-account { padding:12px 28px; font-size:12px; color:#625f57; }
.studio-account button { background:none; border:0; }
.studio-work { min-width:0; }
.studio-work__bar { height:72px; padding:0 40px; }
.context-label { font-size:13px; color:#686660; }
.studio-canvas { padding:24px clamp(18px,2.8vw,42px) 0; }
.decision h1 { margin:8px 0; font:600 clamp(27px,3vw,40px)/1.08 "DM Sans",sans-serif; letter-spacing:-.055em; }
.decision>p { font-size:16px; margin:10px 0 26px; color:#69675f; }
.theme-grid,.choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.theme-card,.choice { display:flex; flex-flow:column; gap:10px; text-align:left; background:var(--card-paper,#fff); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:7px; width:100%; min-width:0; }
.theme-card img,.choice img { width:100%; height:auto; aspect-ratio:2.18; object-fit:cover; border-radius:3px; }
.choice img { object-fit:contain; background:#faf8f4; }
.theme-card__sample { font-size:clamp(17px,1.7vw,27px); color:var(--card-ink); }
.card-swatches { display:flex; gap:6px; flex-wrap:wrap; }
.card-swatches small { display:inline-flex; align-items:center; font:600 11px "DM Sans",sans-serif; }
.card-swatches i { width:12px; height:12px; display:inline-block; border:1px solid #0002; margin-right:2px; }
.theme-card strong,.theme-card__sample,.card-swatches,.theme-pick { padding:0 4px; }
.theme-pick { font-size:13px; padding-bottom:6px; }
.theme-card.is-selected,.choice.is-selected { outline:2px solid #681f32; outline-offset:-2px; }
.studio-tools { justify-content:flex-end; padding:16px 40px 24px; flex-wrap:wrap; }
.studio-tools details { margin-right:auto; }
.stage-nav button,.stage-nav summary { margin:3px; cursor:pointer; }
.mobile-view-switch,.studio-phone-toggle,.sr-only { display:none; }
.option-wrap { min-width:0; }
.inspect { background:none; font-size:12px; }
.proposal,.attachments,.media-row { display:grid; gap:8px; padding:10px 0; }
.proposal img { max-width:200px; }
.media-row { border-top:1px solid var(--line); }
.media-row small { color:#655f56; }
.attachments label,.studio-dialog label { display:grid; gap:4px; }
.studio-dialog { width:min(440px,96vw); padding:24px; border:1px solid #ccc; border-radius:10px; }
.studio-dialog form { display:grid; gap:12px; }
.studio-dialog button { margin:4px; }
#preview { width:min(1100px,96vw); max-height:94dvh; overflow:auto; padding:12px; }
#guest-preview.phone-proof { width:min(390px,100%); margin:auto; }
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible { outline:2px solid #7c3545; outline-offset:2px; }
@media(max-width:820px) {
 .studio-shell,.studio-shell.is-signed-in,.studio-shell.is-signed-in.nav-expanded { display:block; }
 .studio-chat { position:relative; height:100dvh; padding-bottom:42px; }
 .studio-work { padding-bottom:58px; }
 .studio-work__bar { height:58px; padding:0 18px; }
 .studio-canvas { padding:20px 16px 0; }
 .studio-shell.phone-chat .studio-work,.studio-shell.phone-design .studio-chat,.studio-rail { display:none; }
 .mobile-view-switch { display:block; position:fixed; bottom:10px; right:14px; z-index:3; }
 .mobile-view-switch button { background:#272622; color:white; border-radius:24px; }
 .theme-grid,.choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .studio-tools { padding:12px 16px; }
 .studio-account { padding:8px 16px; }
 .context-label { max-width:38%; text-align:right; }
}

.studio-loading {padding:clamp(24px,6vw,80px); font:400 16px/1.6 DM,Arial,sans-serif; color:#423f3b;}
