:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#202c3a;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.app{display:grid;grid-template-columns:280px 1fr;min-height:100vh}aside{background:#fff;border-right:1px solid #e1e6ed;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#17263d;font-weight:650;font-size:17px}.brand small{display:block;font-size:8px;letter-spacing:1.3px;color:#7b8593;margin-top:7px}.brand-mark{display:grid;place-items:center;background:#244bd4;color:white;width:36px;height:38px;border-radius:10px;font-size:22px}.environment{font-size:9px;letter-spacing:.9px;background:#f0f4fc;border:1px solid #e1e8f5;color:#5e6f8b;border-radius:6px;padding:10px;margin:28px 0 32px}label{display:block;font-size:12px;color:#647082;margin-bottom:9px}select{background:#fff;border:1px solid #cbd4e1;border-radius:8px;padding:11px 8px;width:100%;font:inherit;font-size:13px;white-space:nowrap}.role{font-size:12px;color:#69778a;margin:12px 4px 28px}nav{display:flex;flex-direction:column;gap:6px}button{font:inherit;cursor:pointer}nav button{padding:12px 14px;text-align:left;border:none;background:none;color:#687588;border-radius:8px;font-size:14px}nav button.selected{background:#eef2ff;color:#244bd4;font-weight:600}nav button:hover{background:#f2f5fb}.sidebar-foot{margin-top:auto;padding-top:60px;color:#687588;font-size:12px}.sidebar-foot small{line-height:1.6;display:block;font-size:11px}main{padding:32px 50px;max-width:1280px;width:100%;margin:0 auto}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e6ef;padding-bottom:22px;gap:12px}header p{font-size:15px;margin:8px 0 0;font-weight:600}#user-area{display:flex;align-items:center;gap:18px;font-size:13px}.quiet{border:1px solid #d4dce8;border-radius:7px;padding:8px 12px;background:white;color:#647082}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#647082;font-weight:600}.welcome{padding:90px 0 70px;max-width:670px}.welcome h1{font-size:48px;line-height:1.16;font-weight:600;letter-spacing:-1.7px;margin:22px 0}.welcome p{font-size:16px;line-height:1.8;color:#647082;max-width:580px}.primary{display:inline-flex;justify-content:space-between;gap:32px;background:#244bd4;color:white;text-decoration:none;border:0;border-radius:8px;padding:14px 20px;font:inherit;font-size:14px;margin-top:12px}.primary:hover{background:#1639b1}.welcome .fine,.fine{font-size:12px;line-height:1.7;color:#7b8696;max-width:520px;margin-top:20px}.page-title{display:flex;justify-content:space-between;align-items:center;margin:38px 0 25px;gap:20px}.page-title h1{font-size:29px;font-weight:600;letter-spacing:-.5px;margin:10px 0}.pill{font-size:11px;color:#244bd4;background:#eaf0ff;border:1px solid #d9e3ff;border-radius:20px;padding:7px 12px}.card{background:#fff;border:1px solid #e0e6ef;border-radius:12px;padding:28px;margin:18px 0}.card h2{font-size:18px;margin:0 0 14px;font-weight:600}.card p{color:#647082;font-size:14px;line-height:1.75}.muted{color:#8792a1}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid .card{margin:0}.hint{border-left:3px solid #244bd4;padding:10px 17px;background:#edf2fc;font-size:13px;line-height:1.7;color:#596b88;margin:24px 0}.person,.event{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #edf0f5;padding:18px 0}.person:last-child,.event:last-child{border:none}.person strong,.event strong{font-size:14px}.person small,.event small{display:block;color:#7b8696;margin-top:6px;font-size:12px}.person button{font-size:12px;padding:8px 12px;border-radius:6px;border:1px solid #d3dce9;background:#f8faff;color:#526079}textarea{width:100%;min-height:125px;padding:14px;border:1px solid #cbd4e1;border-radius:8px;font:inherit;font-size:14px;resize:vertical;line-height:1.7}#message:not(:empty){margin-top:20px;padding:13px 16px;background:#fff1dd;border:1px solid #f0d8ae;border-radius:8px;font-size:13px;line-height:1.6}footer{font-size:11px;color:#8993a2;padding-top:50px;margin-top:40px;border-top:1px solid #e1e6ed}button:disabled,select:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}a:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a4b9ff;outline-offset:3px}@media(max-width:850px){.app{grid-template-columns:220px 1fr}main{padding:25px}.welcome h1{font-size:36px}.grid{grid-template-columns:1fr}}@media(max-width:600px){.app{display:block}aside{padding:22px;border-right:0;border-bottom:1px solid #e1e6ed}.environment{margin:18px 0}.sidebar-foot{display:none}nav{flex-direction:row;flex-wrap:wrap}.role{margin:10px 0}.welcome{padding:45px 0}.page-title h1{font-size:23px}header{align-items:flex-start}#user-area{flex-direction:column;gap:8px}}
.record-form{max-width:640px}.record-form label{margin-top:20px}.record-form input{width:100%;padding:12px;border:1px solid #cbd4e1;border-radius:8px;font:inherit;font-size:14px}.record-form select{font-size:14px}.record-form button{margin-top:24px}.card p{white-space:pre-wrap;overflow-wrap:anywhere}
.attention-row{padding:16px 0;border-bottom:1px solid #edf0f5}.attention-row:last-child{border-bottom:0}.attention-row .quiet,.card>.quiet{margin:12px 8px 0 0}.question-starters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.question-starters button{font-size:12px;text-align:left}.business-details{margin-top:14px}.business-details summary{cursor:pointer;font-size:13px;color:#647082;padding:12px}.business-details button{display:block;width:100%}.card details{margin-top:16px}
/* Conversation remains plain text; no model HTML is rendered. */
.conversation-transcript{display:grid;gap:12px;margin:20px 0}.conversation-turn{white-space:pre-wrap;overflow-wrap:anywhere}.conversation-turn.user{border-left:4px solid #899cb8}.conversation-turn.assistant{border-left:4px solid #284fd5}.conversation-transcript details{white-space:normal}.conversation-transcript summary{cursor:pointer}
.guided-interaction{border-top:1px solid #dce3ef;margin-top:16px;padding-top:12px;white-space:normal}.guided-prompt{font-weight:600}.guided-interaction fieldset{border:0;margin:0;padding:0;min-width:0}.guided-interaction legend{font-size:.85rem;color:#526782;margin:8px 0}.guided-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #dce3ef;border-radius:10px;padding:10px;margin:8px 0;cursor:pointer}.guided-option input{width:auto;margin-top:4px;flex-shrink:0}.guided-option>span{min-width:0}.guided-description{display:block;font-size:.88rem;line-height:1.45;color:#526782;margin-top:3px}.guided-recommended{display:inline-block;font-size:.72rem;margin-left:8px;color:#2349bf}.guided-reactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.guided-reactions button{font-size:.86rem}.guided-interaction button{max-width:100%;white-space:normal}.guided-option:has(input:checked){border-color:#3456c8;background:#f4f7ff}
.structural-preview{border:1px solid #dbe2ee;border-radius:14px;padding:18px;margin-bottom:18px;background:#fff;overflow-wrap:anywhere}.structural-preview h3{margin-top:0}.structural-preview ol{padding-left:24px}.structural-preview li{padding:12px 0;border-bottom:1px solid #e8edf5}.structural-preview h4{margin:0 0 8px}.structural-preview details{margin-top:12px}.preview-draft{white-space:pre-line;line-height:1.65}.structural-preview .guided-reactions{margin:12px 0;flex-wrap:wrap}.structural-preview button{max-width:100%}@media(max-width:600px){.structural-preview{padding:12px}.structural-preview ol{padding-left:20px}.structural-preview .guided-reactions{gap:8px}.structural-preview button{white-space:normal}}

/* 8A controlled concept renderer: only enum-based composition, no model CSS. */
.structural-preview{border:1px solid #d4dbea;border-radius:16px;background:white;padding:24px;margin:22px 0}.structural-preview>h2{margin-top:0}.preview-status,.preview-view-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:14px 0}.preview-view-controls button[aria-pressed=true]{background:#17233f;color:white}.preview-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.preview-direction{display:flex;flex-direction:column;gap:8px;text-align:left;min-height:110px}.preview-direction.elegant{font-family:Georgia,serif}.preview-direction.energetic{border-width:2px}.preview-direction[aria-pressed=true]{border-color:#344c79;background:#eef2fa}.preview-editor{padding:18px;background:#f4f6fa;border-radius:12px;margin:16px 0}.preview-outcome{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.preview-outcome p{flex-basis:100%}.preview-outline{list-style:none;padding:0}.preview-outline li{position:relative;border-bottom:1px solid #dce2eb;padding:16px 0 16px 46px}.preview-outline h3{margin-top:0}.preview-number{position:absolute;left:0;top:18px;color:#667b9a}.visual-shell{container-type:inline-size;max-width:100%;border:1px solid #ccd4df;border-radius:12px;overflow:hidden;margin:18px auto;background:#fff}.visual-shell.mobile{width:375px}.visual-page{color:var(--concept-ink);background:#fff;font-family:Arial,sans-serif}.visual-page h2,.visual-page h3,.visual-page p{color:inherit}.visual-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 6%;border-bottom:1px solid var(--concept-surface);font-size:12px}.visual-logo{width:140px;height:85px;object-fit:contain;background:white}.visual-logo-placeholder{font-weight:bold}.visual-small{font:12px/1.5 Arial,sans-serif;opacity:.85}.visual-section{padding:52px 7%;position:relative}.visual-section h2{font-size:clamp(32px,4.4cqw,54px);line-height:1.12;margin:16px 0 24px;overflow-wrap:anywhere}.visual-section h3{font-size:30px;line-height:1.2;margin:16px 0}.visual-body-copy{font-size:16px;line-height:1.75;max-width:65ch;white-space:pre-wrap}.visual-eyebrow{font:11px/1.6 Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--concept-accent)}.visual-page.elegant h2,.visual-page.elegant h3{font-family:Georgia,serif;font-weight:normal}.visual-page.elegant .role-hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:40px;background:var(--concept-surface)}.visual-image-placeholder{min-height:240px;border-radius:24px;background:linear-gradient(140deg,var(--concept-surface),#d9dee8);border:1px dashed #8b96ab;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:center;text-align:center;padding:24px;box-sizing:border-box;color:var(--concept-ink)}.visual-image-symbol{font-size:48px;font-weight:normal}.visual-needs{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.visual-need{font:11px/1.4 Arial,sans-serif;border:1px solid #ccd2df;border-radius:5px;padding:5px 8px;background:white;color:#485166}.visual-cta{display:inline-block;padding:12px 20px;border-radius:6px;background:var(--concept-ink);color:white;margin-top:16px;font:14px/1.5 Arial,sans-serif}.visual-cta+.visual-small{display:block;margin-top:8px}.visual-page.energetic .role-hero{background:var(--concept-ink);color:white;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.visual-page.energetic .role-hero h2{font-size:clamp(36px,5cqw,64px);font-weight:800;letter-spacing:-.04em}.visual-page.energetic .visual-section:nth-child(odd){background:var(--concept-surface)}.visual-page.energetic .visual-section{border-bottom:4px solid var(--concept-accent)}.visual-page.energetic .visual-image-placeholder{border-radius:8px;transform:rotate(1deg)}.visual-page.minimal .visual-section{padding:34px 8%;border-bottom:1px solid #e3e6eb}.visual-page.minimal h2{font-size:38px;font-weight:600;letter-spacing:-.035em}.visual-page.minimal .role-hero .visual-image-placeholder{margin-top:24px;min-height:140px}.visual-page .role-gallery{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.visual-page.imagery-large .visual-section .visual-image-placeholder{min-height:340px}.visual-page.density-compact .visual-section{padding-top:30px;padding-bottom:30px}.visual-footer{display:flex;flex-direction:column;gap:10px;padding:28px 7%;background:var(--concept-surface)}.preview-transcript{margin-top:24px}.preview-transcript .structural-preview{border-radius:8px}.preview-transcript .visual-shell{display:none}@container (max-width:600px){.visual-page .visual-section.role-hero,.visual-page .role-gallery{display:block}.visual-section{padding:30px 7%}.visual-page .role-hero h2{font-size:34px}.visual-page .visual-image-placeholder{margin-top:24px;min-height:210px}.visual-header{flex-direction:column;align-items:flex-start}.visual-section h3{font-size:26px}.visual-small{font-size:11px}}@media(max-width:700px){.structural-preview{padding:14px}.preview-directions{grid-template-columns:1fr}.preview-outcome button{width:100%}.preview-view-controls{gap:6px}.preview-editor{padding:12px}}

.visual-page.energetic .role-hero .visual-eyebrow{color:#f2cc72}.visual-page:not(.energetic) .visual-eyebrow{color:var(--concept-ink)}
/* Native indeterminate progress: the provider does not supply completion percentages. */
.planning-progress{display:block;width:100%;height:12px;margin:18px 0;accent-color:#325ae8}

.private-development-note{padding:12px;background:#fff3cd;color:#473700}
.project-workspace{background:#f9fafc;border:1px solid #d6dfef;border-radius:16px;padding:24px;margin:24px 0;min-width:0}.project-workspace:empty{display:none}.project-workspace>h2{font-size:25px;line-height:1.3}.project-progress{display:flex;list-style:none;gap:12px;padding:0;flex-wrap:wrap}.project-progress li{padding:8px 12px;border-radius:20px;background:#e8edf6;color:#526079;font-size:12px}.project-progress li.current{background:#244bd4;color:#fff}.project-boundary{font-size:12px;color:#637087;line-height:1.6}.project-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}.project-toolbar select{width:auto;max-width:100%}.project-tabs{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;margin:20px 0;padding-bottom:12px;border-bottom:1px solid #dbe2ed}.project-tabs button{font-size:13px;padding:10px}.project-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.project-sections>.card{margin:0;padding:22px;min-width:0}.project-sections>h3,.project-sections>p,.project-sections>textarea,.project-sections>label,.project-sections>.project-toolbar{grid-column:1/-1}.project-section p{font-size:14px;line-height:1.7}.project-origin{display:inline-block;background:#eef2fb;border-radius:5px;padding:5px 8px;color:#526582;font-size:11px}.project-workspace input:not([type=checkbox]){width:100%;padding:10px;border:1px solid #cbd4e1;border-radius:7px;font:inherit;margin:12px 0}.project-section textarea{min-height:240px}.project-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;margin:16px 0}.project-consent input{margin:5px 0 0;flex-shrink:0}.project-picker select{margin-bottom:12px}.project-picker .primary{margin-right:14px}.project-diff{display:grid;grid-template-columns:1fr 1fr;gap:14px}.project-diff>div{background:#f4f6fa;padding:12px;min-width:0}.project-source{margin-top:20px;color:#5b6b82}.project-source p{white-space:pre-wrap;overflow-wrap:anywhere}.project-notice:not(:empty){padding:12px;background:#eef3ff;border-radius:8px}.project-workspace button:disabled{cursor:not-allowed}.project-workspace .fine{max-width:none}@media(max-width:900px){.project-sections{grid-template-columns:1fr}.project-workspace{padding:18px}}@media(max-width:600px){.project-workspace{padding:14px}.project-toolbar{align-items:stretch}.project-toolbar button,.project-toolbar select{width:100%}.project-diff{grid-template-columns:1fr}.project-tabs{gap:4px}.project-tabs button{padding:10px 8px}.project-progress{gap:6px}.project-section textarea{min-height:220px}}

.project-history>.card{grid-column:1/-1}

.design-workspace{border:1px solid #d8c5a8;background:#fffdf8;margin:28px 0;padding:24px;min-width:0}.design-source{border-bottom:1px solid #e5ddd0;margin-bottom:20px;padding-bottom:16px}.design-source-label{color:#786445;font-size:13px}.design-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.design-fields label{font-size:13px;color:#516079;min-width:0}.design-fields input,.design-fields textarea,.design-fields select{display:block;width:100%;font:inherit;border:1px solid #cbd4e1;border-radius:7px;padding:11px;margin-top:8px;background:white}.design-fields textarea{min-height:125px}.design-workspace>div>textarea{display:block;width:100%;margin:18px 0;min-height:90px}.design-notice:not(:empty){background:#edf3ff;padding:14px;border-radius:8px}.design-dialog{width:calc(100vw - 32px);max-width:1440px;height:calc(100vh - 28px);max-height:none;border:1px solid #d5dbe7;border-radius:14px;padding:18px;background:#e8ecf1}.design-dialog::backdrop{background:#1d2438b0}.design-dialog h2{font-size:20px;margin:0 0 4px}.design-dialog>.fine{margin:6px 0}.design-preview-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.design-preview-controls select{width:auto;max-width:100%}.design-frame{display:block;width:100%;height:calc(100% - 155px);min-height:320px;margin:0 auto;border:0;background:#f8f5f0}.design-workspace details{padding:14px 0;border-top:1px solid #e2dbcf}.design-workspace summary{cursor:pointer}.design-workspace button{margin:5px 8px 5px 0}.design-workspace button:disabled{cursor:not-allowed}@media(max-width:600px){.design-fields{grid-template-columns:1fr}.design-workspace{padding:16px}.design-dialog{padding:10px}.design-dialog h2{font-size:18px}.design-preview-controls button,.design-preview-controls select{font-size:11px;padding:8px}.design-frame{height:calc(100% - 190px)}}

.design-ai-controls{background:#f5f4ed;margin-top:24px;border:1px solid #ddd5c3}.design-ai-controls textarea,.design-ai-controls input:not([type=checkbox]),.design-ai-controls select{display:block;width:100%;margin:10px 0 18px;padding:12px;font:inherit;border:1px solid #cbd4e1;border-radius:7px}.design-ai-controls textarea{min-height:120px}.design-ai-controls label{font-size:13px}.design-workspace h3,.design-workspace p{overflow-wrap:anywhere}


/* Workspace colors and spacing from the Version 2 design. */
.app {
  --theme-navy: #101f39;
  --theme-ink: #152443;
  --theme-surface: #f8f6f2;
  --theme-line: #ded9d0;
  --theme-gold: #f5c96b;
  background: var(--theme-surface);
  color: var(--theme-ink);
}

.app > aside {
  background: var(--theme-navy);
  border-color: var(--theme-navy);
  color: #e0e7f4;
}

.app > aside :is(.brand, .brand small, label, .role, .sidebar-foot, .sidebar-foot small, .business-details summary, nav a, nav button) {
  color: #e0e7f4;
}

.app > aside .brand-mark {
  background: var(--theme-gold);
  color: var(--theme-navy);
}

.app > aside .environment {
  background: #192c4c;
  border-color: #394b66;
  color: #e0e7f4;
}

.app > aside nav :is(a, button):is(:hover, .selected) {
  background: #263854;
  color: #fff;
}

.app > aside nav .selected { box-shadow: inset 3px 0 var(--theme-gold); }
.app > aside #business + button { margin-top: 8px; }

.app > main { min-width: 0; }
.app > main > header { border-color: var(--theme-line); }
.app > main :is(.welcome, .page-title) > .eyebrow,
.app > main .page-title .eyebrow,
.app > main > header .eyebrow { color: #75530e; }

.app > main .page-title { margin-bottom: 16px; }
.app > main .card { border-color: var(--theme-line); padding: clamp(14px, 2.5vw, 22px); }
.app > main .card > :is(h2, h3) { margin-bottom: 8px; }
.app > main .card > p { line-height: 1.55; }

.app > main :is(#workspace, #welcome) .primary { background: #192c4c; color: #fff; }
.app > main :is(#workspace, #welcome) .primary:hover { background: #263854; }
.app > main .quiet { border-color: var(--theme-line); color: #203b68; }
.app > main .quiet:hover { background: #f2ede5; }

.app > main :is(#workspace, #welcome) :is(button, a, input, textarea, select):focus-visible,
.app > aside :is(button, a, select, summary):focus-visible {
  outline: 3px solid #789cf0;
  outline-offset: 2px;
}

.unified-studio-nav{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.unified-studio-nav a{display:inline-block;padding:.55rem .8rem;border-radius:.5rem;text-decoration:none;border:1px solid #cbd5e1}
 
/* Private pilot Strategist */
.strategist-chat {
 display: grid;
 grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
 gap: 1rem;
 align-items: stretch;
 color: #17263b;
 --chat-border: #dedfdc;
 --chat-quiet: #526276;
}
.strategist-chat .chat-history,
.strategist-chat .chat-stage {
 min-width: 0;
 background: #fff;
 border: 1px solid var(--chat-border);
 border-radius: 1rem;
}
.chat-history { padding: 1rem; }
.chat-history > summary { cursor: pointer; font-weight: 650; }
.strategist-chat .chat-new {
 margin: 0;
 border: 1px solid #d9e0e9;
 color: #162843;
 background: #eef3f9;
 font-weight: 650;
}
.chat-history-list {
 display: grid;
 align-content: start;
 gap: .25rem;
 overflow: auto;
 max-height: 43vh;
 margin-top: .65rem;
}
.strategist-chat .chat-history-item {
 width: 100%;
 text-align: left;
 padding: .6rem .65rem;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 background: transparent;
 color: #28374c;
 border: 1px solid transparent;
}
.strategist-chat .chat-history-item:hover,
.strategist-chat .chat-history-item[aria-current] { background: #f0f3f8; border-color: #e5e9ef; }
.chat-stage {
 display: grid;
 grid-template-rows: auto minmax(0, 1fr) auto;
 height: clamp(22rem, calc(100dvh - 15rem), 60rem);
}
.strategist-chat .chat-heading {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: .65rem;
 padding: .9rem clamp(.9rem, 3vw, 1.6rem);
 border-bottom: 1px solid #edf0f2;
}
.chat-heading h2 { margin: 0; font-size: 1.05rem; }
.chat-heading p { margin: .25rem 0 0; }
.chat-muted { color: var(--chat-quiet); font-size: .83rem; }
.chat-transcript {
 overflow-y: auto;
 overscroll-behavior: contain;
 padding: 1.2rem clamp(.9rem, 3vw, 1.6rem);
}
.chat-empty { text-align: center; margin: min(9vh, 4rem) auto 1rem; max-width: 27rem; }
.chat-empty h3 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.55rem); }
.strategist-chat .chat-starter {
 margin: .25rem;
 color: #28374c;
 background: #fff;
 border: 1px solid #e0e5eb;
}
.chat-message { max-width: 85%; margin: 0 auto 1.2rem 0; overflow-wrap: anywhere; }
.chat-message-user { margin-inline: auto 0; padding: .75rem 1rem; background: #eef3fa; border-radius: .9rem .9rem .25rem .9rem; }
.chat-speaker { margin: 0 0 .3rem; font-size: .77rem; color: var(--chat-quiet); }
.chat-message-body p, .chat-message-body li { max-width: 67ch; line-height: 1.6; }
.chat-message-body p, .chat-message-body ul, .chat-message-body ol { margin: .35rem 0; }
.chat-message-body ul, .chat-message-body ol { padding-inline-start: 1.3rem; }
.chat-draft { border: 1px solid var(--chat-border); border-radius: .75rem; padding: .8rem; background: #faf9f5; }
.chat-draft h3 { margin: 0; }
.strategist-chat .chat-composer {
 display: block;
 margin: 0;
 max-width: none;
 padding: .55rem clamp(.7rem, 3vw, 1.6rem) .9rem;
 border-top: 1px solid #edf0f2;
}
.chat-status { min-height: 1.15rem; margin: 0 0 .3rem; font-size: .8rem; color: var(--chat-quiet); }
.chat-pending { color: #184d7a; }
.chat-compose-row { display: flex; align-items: flex-end; gap: .65rem; }
.strategist-chat textarea { min-height: 3.2rem; max-height: 8rem; resize: vertical; flex: 1; min-width: 0; margin: 0; font: inherit; }
.chat-send { min-width: 4.6rem; min-height: 2.6rem; background: #1d3453; color: white; }
.chat-send:disabled { opacity: .52; }
@media (max-width: 760px) {
 .strategist-chat { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
 .chat-history { padding: .7rem .85rem; }
 .chat-history-list { max-height: 32vh; }
 .chat-stage { height: max(21rem, calc(100dvh - 13rem)); margin-bottom: 6rem; }
 .strategist-chat .chat-composer {
  position: fixed;
  z-index: 5;
  inset-inline: 0;
  bottom: 0;
  padding-bottom: max(.65rem, env(safe-area-inset-bottom));
  background: #fff;
 }
 .chat-message { max-width: 94%; }
}
.app.workspace-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.workspace-header {
  display: block;
  padding: 0;
  background: var(--theme-navy);
  color: #fff;
  border-bottom: 1px solid #394b66;
}

.workspace-bar,
.workspace-nav {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.workspace-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 14px;
}

.workspace-bar .brand {
  margin: 0;
  color: #fff;
  white-space: nowrap;
}

.workspace-bar .brand-mark {
  background: var(--theme-gold);
  color: var(--theme-navy);
}

.workspace-account,
.workspace-bar #user-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-bar #user-area {
  flex-direction: row;
  margin-inline-start: auto;
  gap: 12px;
}

.workspace-account select {
  width: auto;
  max-width: min(100%, 19rem);
  margin: 0;
}

.workspace-bar .quiet {
  color: #fff;
  background: transparent;
  border: 1px solid #72819a;
}

.workspace-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding-block: 0 8px;
}

.workspace-nav :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #e6edf8;
  font: inherit;
  font-size: .875rem;
  text-decoration: none;
}

.workspace-nav :is(button, a):hover,
.workspace-nav button.selected {
  background: #263854;
  color: #fff;
}

.workspace-nav button.selected { box-shadow: inset 0 -2px var(--theme-gold); }
.workspace-header :focus-visible { outline: 2px solid var(--theme-gold); outline-offset: 2px; }

.workspace-shell > main { padding: clamp(16px, 4vw, 48px); }
.workspace-shell .page-title { margin: 0 0 18px; flex-wrap: wrap; gap: 8px 16px; }
.workspace-shell .page-title h1 { margin: 0; }
.workspace-shell #message:not(:empty) { margin: 0 0 16px; }

.workspace-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px;
  max-width: 48rem;
}

.workspace-option {
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--theme-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
}

.workspace-option:hover { border-color: #9a772d; }
.workspace-tools summary { cursor: pointer; font-weight: 600; }
.workspace-tool-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(16px, 2vw, 26px);
}

.home-chat, .home-studios { min-width: 0; }

.home-studios {
  display: flex;
  flex-direction: column;
}

.home-studios > h2 {
  margin: 3px 0 12px;
  font-size: 17px;
}

.home-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  gap: 12px;
}

.home-studio-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(12px, 2vw, 19px);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.home-studio-card:hover { background: #f0f3f8; border-color: #a1adc0; }
.home-studio-card strong { font-size: 15px; }
.home-studio-description { color: #4e5e73; font-size: 14px; line-height: 1.45; }

.home-studio-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef2f9;
}

.home-studio-arrow {
  position: absolute;
  inset: 16px 16px auto auto;
  color: #4e5e73;
}

.home-studios svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-shell .chat-embedded { display: block; }
.workspace-shell .chat-embedded .chat-stage {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: clamp(23rem, 49dvh, 30rem);
  margin: 0;
}
.chat-embedded .chat-heading { flex-wrap: wrap; padding: 12px 15px; }
.chat-heading-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-heading-actions button { padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.strategist-chat.chat-embedded .chat-history {
  padding: 9px 15px;
  border: 0;
  border-block-end: 1px solid #edf0f2;
  border-radius: 0;
  font-size: 13px;
}
.chat-embedded .chat-history-list { max-height: 7rem; }
.workspace-shell .chat-embedded .chat-transcript { padding: 15px; }
.workspace-shell .chat-embedded .chat-empty { margin: 0; text-align: start; }
.chat-embedded .chat-empty h3 { margin-bottom: 8px; font-size: 15px; }
.chat-embedded .chat-starter { margin: 0 5px 5px 0; padding: 6px 8px; border-radius: 7px; font-size: 12px; }
.strategist-chat.chat-embedded .chat-composer { position: static; }
.chat-embedded .chat-send { border: 0; border-radius: 7px; }
.chat-embedded .chat-status:empty { display: none; }

@media (max-width: 720px) {
  .home-columns { grid-template-columns: minmax(0, 1fr); }
  .home-studio-card { min-height: 135px; }
}

@media (max-width: 560px) {
  .workspace-bar { gap: 10px; }
  .workspace-bar #user-name { display: none; }
  .workspace-account { order: 1; width: 100%; }
  .workspace-account select { max-width: 100%; }
  .workspace-nav :is(button, a) { padding-inline: 8px; }
  .workspace-shell .chat-empty { margin-top: .55rem; }
  .workspace-shell .chat-new { font-size: .78rem; white-space: nowrap; }
  .workspace-shell .chat-stage { height: max(19rem, calc(100dvh - 16rem)); }
  .workspace-shell .chat-transcript { padding-bottom: 5rem; }
}
