/* Strategy Studio refinement — evidence first, scope second, document always visible. */
.strategy-page > main { padding-top: 18px; }
.studio-heading { min-height: 104px; padding-bottom: 22px; }
.studio-heading h1 { font-size: clamp(38px,3.8vw,56px); }
.studio-heading > p { max-width: 480px; font-size: 14px; }

.intake-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 18px; }
.strategy-intake { padding: 32px; }
.intake-fields { grid-template-columns: 1fr; gap: 16px; }
.client-field,.context-field,.source-drop,.file-list { grid-column: 1; grid-row: auto; }
.client-field { max-width: 520px; }
.context-field textarea { min-height: 220px; }
.source-drop {
  min-height: 88px;
  padding: 16px;
  justify-content: flex-start;
  text-align: start;
  background: #f7f7f8;
  border-style: solid;
}
.source-drop__action { margin-inline-start: auto; padding: 9px 12px; color: var(--s-ink); background: #fff; border-radius: 10px; box-shadow: 0 5px 16px rgba(33,31,43,.05); font-size: 10px; font-weight: 700; }
.source-drop:hover { transform: none; }
.file-list { padding-top: 0; }

.output-picker { margin-top: 34px; padding-top: 30px; }
.scope-presets { margin-top: 20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.scope-preset { min-height: 82px; padding: 13px; display: grid; grid-template-columns: minmax(0,1fr) 24px; align-content: center; gap: 4px 8px; color: var(--s-ink); text-align: start; background: #f7f7f8; border: 1px solid transparent; border-radius: 15px; transition: background-color 150ms,border-color 150ms,box-shadow 160ms,transform 120ms; }
.scope-preset:hover { background: #fff; border-color: rgba(24,24,28,.07); box-shadow: 0 10px 26px rgba(33,31,43,.06); }
.scope-preset:active { transform: scale(.96); }
.scope-preset.is-active { background: #f0edff; border-color: rgba(56,39,199,.16); }
.scope-preset span,.scope-preset small { display: block; }
.scope-preset span { font-size: 12px; font-weight: 700; }
.scope-preset small { grid-column: 1; color: var(--s-muted); font-size: 9px; }
.scope-preset i { grid-column: 2; grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; align-self: center; color: var(--s-blue); background: #fff; border-radius: 8px; font-size: 10px; font-style: normal; }
.scope-preset.is-active i { color: #fff; background: var(--s-blue); }
.selected-scope { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.selected-scope span { min-height: 30px; padding: 0 7px 0 10px; display: inline-flex; align-items: center; gap: 7px; color: #3325a8; background: #eeebff; border-radius: 9px; font-size: 10px; font-weight: 650; }
.selected-scope button { width: 18px; height: 18px; padding: 0; display: grid; place-items: center; color: #6659bd; background: rgba(255,255,255,.7); border: 0; border-radius: 6px; }
.scope-customize { margin-top: 16px; background: #f7f7f8; border-radius: 16px; }
.scope-customize summary { min-height: 58px; padding: 0 16px; display: grid; grid-template-columns:minmax(0,1fr) auto; align-content: center; gap: 3px 12px; list-style: none; cursor: pointer; }
.scope-customize summary::-webkit-details-marker { display: none; }
.scope-customize summary span,.scope-customize summary small { display: block; }
.scope-customize summary span { font-size: 12px; font-weight: 700; }
.scope-customize summary small { color: var(--s-muted); font-size: 9px; }
.scope-customize summary i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--s-faint); font-style: normal; transition: transform 160ms var(--s-ease); }
.scope-customize[open] summary i { transform: rotate(180deg); }
.scope-customize .output-groups { margin: 0; padding: 0 12px 12px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.scope-customize .output-group { padding: 13px; background: #fff; border-radius: 13px; }
.scope-customize .output-group > strong { font-size: 10px; }
.scope-customize .output-option span { min-height: 36px; padding: 7px 8px; grid-template-columns: 18px minmax(0,1fr); font-size: 10px; }
.scope-customize .output-option span::before { width: 18px; height: 18px; }

.studio-rail { position: sticky; top: 120px; display: grid; gap: 18px; }
.generate-panel,.recent-panel { border: 1px solid rgba(255,255,255,.78); border-radius: 28px; box-shadow: var(--s-shadow); }
.generate-panel { padding: 24px; background: linear-gradient(145deg,#dcd7ff 0%,#eeebff 100%); }
.generate-panel h2 { margin: 0; font-size: 26px; line-height: 1; letter-spacing: -.045em; }
.blueprint-metrics { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.blueprint-metrics > div { padding: 13px; background: rgba(255,255,255,.58); border-radius: 14px; }
.blueprint-metrics strong,.blueprint-metrics span { display: block; }
.blueprint-metrics strong { font-size: 28px; line-height: .9; letter-spacing: -.05em; }
.blueprint-metrics span { margin-top: 7px; color: var(--s-muted); font-size: 9px; }
.blueprint-list { margin-top: 15px; display: grid; gap: 7px; }
.blueprint-list span { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.blueprint-list i { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--s-blue); border-radius: 6px; font-size: 8px; font-style: normal; }
.blueprint-list small { color: var(--s-muted); font-size: 9px; }
.generate-panel > p:not(.eyebrow) { margin: 16px 0; color: var(--s-muted); font-size: 10px; line-height: 1.45; }
.generate-panel .generate-button { width: 100%; min-width: 0; color: #fff; background: #17171a; box-shadow: 0 10px 28px rgba(23,23,26,.15); }
.generate-panel .generate-button:hover { background: var(--s-blue); }
.recent-panel { padding: 22px; }
.recent-panel .project-card { min-height: 96px; }

.document-toolbar { border-bottom-color: rgba(24,24,28,.055); }
.document-workspace { grid-template-columns: minmax(620px,940px) minmax(300px,350px); }
.document-canvas { padding-block: 46px; }
.document-aside { border-radius: 26px; }
.aside-tabs { padding: 7px; }
.aside-tabs button { font-size:11px; }
.aside-tabs button.is-active { background: #eeebff; }

/* Strategy projects are first-class documents, not a utility list. */
.project-library {
  margin-bottom: 18px;
  padding: 25px 27px 27px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 30px;
  box-shadow: var(--s-shadow);
}
.project-library > header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.project-library h2 { margin:3px 0 0; font-size:24px; line-height:1; letter-spacing:-.04em; }
.project-library > header > div:last-child { display:flex; align-items:center; gap:10px; }
.project-library [data-project-count] { color:var(--s-muted); font-size:10px; }
.project-library [data-new-project-inline] { min-height:38px; padding:0 13px; color:#fff; background:#19191b; border:0; border-radius:12px; font-size:10px; font-weight:700; transition:transform 120ms,background-color 160ms; }
.project-library [data-new-project-inline]:hover { background:var(--s-blue); }
.project-library [data-new-project-inline]:active { transform:scale(.96); }
.project-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.project-card { min-width:0; min-height:190px; padding:17px; display:flex; flex-direction:column; background:#f7f7f8; border:1px solid rgba(24,24,28,.045); border-radius:19px; transition:transform 160ms var(--s-ease),box-shadow 180ms,border-color 180ms,background-color 180ms; }
.project-card:hover { transform:translateY(-3px); background:#fff; border-color:rgba(56,39,199,.12); box-shadow:0 15px 34px rgba(30,28,45,.08); }
.project-card > header { display:flex; align-items:center; gap:8px; min-width:0; }
.project-card > header > span { width:26px; height:26px; flex:0 0 auto; display:grid; place-items:center; color:#fff; background:var(--s-blue); border-radius:8px; font-size:10px; }
.project-card > header small { min-width:0; overflow:hidden; color:var(--s-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.project-card h3 { margin:21px 0 0; overflow:hidden; font-size:20px; line-height:1.08; letter-spacing:-.035em; text-overflow:ellipsis; white-space:nowrap; }
.project-card__meta { margin-top:8px; display:flex; justify-content:space-between; gap:12px; color:var(--s-faint); font-size:9px; }
.project-card footer { margin-top:auto; padding-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:7px; border-top:1px solid var(--s-line); }
.project-card footer button { min-height:36px; padding:0 10px; display:flex; align-items:center; justify-content:space-between; color:var(--s-ink); background:#fff; border:1px solid var(--s-line); border-radius:11px; font-size:10px; font-weight:700; transition:transform 120ms,background-color 150ms,color 150ms; }
.project-card footer button:active { transform:scale(.96); }
.project-card footer button.is-primary { color:#fff; background:#19191b; border-color:#19191b; }
.project-card footer button.is-primary:hover { background:var(--s-blue); border-color:var(--s-blue); }
.project-empty { grid-column:1/-1; min-height:104px; padding:20px; display:flex; align-items:center; gap:14px; color:var(--s-muted); background:#f7f7f8; border:1px dashed rgba(24,24,28,.12); border-radius:18px; }
.project-empty > span { width:36px; height:36px; display:grid; place-items:center; color:var(--s-blue); background:var(--s-blue-soft); border-radius:11px; }
.project-empty b { color:var(--s-ink); font-size:12px; }
.project-empty p { margin:4px 0 0; font-size:10px; }

/* The review rail is a working surface: readable, explained and actionable. */
.document-workspace { grid-template-columns:minmax(620px,900px) minmax(370px,410px); gap:20px; }
.guidance-panel,.chat-panel,.history-panel { padding:20px; }
.guidance-intro { margin-bottom:12px; padding:16px; background:#f7f7f8; border-radius:16px; }
.guidance-intro b { font-size:14px; letter-spacing:-.015em; }
.guidance-intro p { margin:6px 0 0; color:var(--s-muted); font-size:12px; line-height:1.5; }
.confidence-card { padding:19px; }
.confidence-card span { font-size:10px; }
.confidence-card small { font-size:12px; line-height:1.5; }
.guidance-block { margin-top:22px; }
.guidance-block > header { align-items:flex-start; }
.guidance-block > header span { flex:0 0 auto; }
.guidance-block h3 { font-size:14px; }
.guidance-block > header small { display:block; margin-top:4px; color:var(--s-muted); font-size:11px; line-height:1.4; }
.guidance-item { margin-top:10px; padding:14px; background:#f7f7f8; border:1px solid transparent; border-radius:15px; transition:border-color 150ms,background-color 150ms; }
.guidance-item:hover { background:#fff; border-color:rgba(56,39,199,.12); }
.guidance-item b { font-size:13px; line-height:1.45; }
.guidance-item p { margin-top:7px; font-size:12px; line-height:1.5; }
.guidance-item small { margin-top:8px; font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.guidance-item button { width:100%; min-height:38px; margin-top:12px; padding:0 11px; display:flex; align-items:center; justify-content:space-between; color:#3325a8; background:#eeebff; border:0; border-radius:10px; font-size:11px; font-weight:700; transition:background-color 150ms,transform 120ms; }
.guidance-item button:hover { color:#fff; background:var(--s-blue); }
.guidance-item button:active { transform:scale(.98); }

/* Generated lists are named decision aids, not ambiguous continuation copy. */
.doc-bullet-label { margin:23px 0 10px; color:var(--s-blue); font-size:10px; font-weight:760; letter-spacing:.11em; text-transform:uppercase; }
.doc-bullets { margin:0; padding:15px 18px 15px 36px; background:#f7f7f8; border-radius:15px; font-size:14px; line-height:1.6; }
.doc-bullets li::marker { color:var(--s-blue); }

@media(max-width:1100px){
  .intake-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .project-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .document-workspace { grid-template-columns:minmax(560px,1fr) 350px; }
  .scope-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scope-customize .output-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:940px){
  .intake-layout { grid-template-columns:1fr; }
  .studio-rail { position:static; grid-template-columns:1fr 1fr; }
  .document-workspace { grid-template-columns:1fr; }
  .document-aside { position:static; max-height:none; }
  .guidance-panel,.chat-panel,.history-panel { max-height:none; }
}
@media(max-width:680px){
  .strategy-page > main { padding-top: 10px; }
  .studio-heading h1 { font-size: 39px; }
  .strategy-intake { padding: 20px; }
  .scope-presets,.studio-rail,.scope-customize .output-groups { grid-template-columns:1fr; }
  .source-drop { align-items:flex-start; }
  .source-drop__action { display:none; }
  .project-library { padding:20px; border-radius:24px; }
  .project-library > header { align-items:flex-start; }
  .project-library > header > div:last-child { align-items:flex-end; flex-direction:column; }
  .project-list { grid-template-columns:1fr; }
}

/* 2026 product pass — the strategy manuscript is the primary surface. */
.strategy-page {
  --studio-canvas:#f3f3f5;
  --studio-paper:#fff;
  --studio-ink:#17171a;
  --studio-inset:#f0f0f2;
  --studio-violet:#3827c7;
  --studio-violet-soft:#eeebff;
  --studio-green:#19875f;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.strategy-page ::selection { color:#fff; background:var(--studio-violet); }
.skip-link { position:fixed; z-index:200; inset-block-start:10px; inset-inline-start:10px; padding:11px 14px; color:#fff; background:var(--studio-ink); border-radius:12px; font-size:13px; font-weight:700; text-decoration:none; transform:translateY(-150%); transition:transform 150ms cubic-bezier(.2,0,0,1); }
.skip-link:focus { transform:translateY(0); }
.strategy-page button:focus-visible,.strategy-page a:focus-visible,.strategy-page summary:focus-visible,.strategy-page [contenteditable="true"]:focus-visible { outline:3px solid rgba(56,39,199,.28); outline-offset:3px; }
.strategy-page:not(.auth-pending) .studio-heading,.strategy-page:not(.auth-pending) .strategy-intake,.strategy-page:not(.auth-pending) .recent-panel,.strategy-page:not(.auth-pending) .project-library { animation:none!important; }

.strategy-page > main { max-width:1500px; padding-block-start:30px; }
.studio-heading { min-height:146px; padding:12px 8px 34px; display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,470px); align-items:end; }
.studio-heading h1 { max-width:760px; font-size:clamp(44px,4.4vw,64px); line-height:.94; text-wrap:balance; }
.studio-heading__support > p { max-width:58ch; margin:0; color:var(--s-muted); font-size:15px; line-height:1.55; text-wrap:pretty; }
.studio-process { margin:20px 0 0; padding:0; display:flex; gap:10px; list-style:none; }
.studio-process li { min-height:36px; padding:0 12px 0 7px; display:inline-flex; align-items:center; gap:8px; color:var(--s-muted); background:rgba(255,255,255,.72); border-radius:12px; box-shadow:0 1px 1px rgba(24,24,28,.035),0 6px 20px rgba(33,31,43,.035); font-size:12px; font-weight:650; }
.studio-process span { width:23px; height:23px; display:grid; place-items:center; color:var(--studio-violet); background:var(--studio-violet-soft); border-radius:7px; font-size:9px; font-variant-numeric:tabular-nums; }

.project-library { padding:25px 26px 22px; background:rgba(255,255,255,.8); border:0; border-radius:30px; box-shadow:0 1px 2px rgba(24,24,28,.035),0 18px 48px rgba(33,31,43,.05); overflow:hidden; }
.project-library > header { align-items:center; margin-bottom:16px; }
.project-library h2 { font-size:26px; }
.project-library [data-project-count] { font-size:12px; font-variant-numeric:tabular-nums; }
.project-library [data-new-project-inline] { min-height:44px; padding-inline:16px; border-radius:14px; font-size:12px; box-shadow:0 1px 2px rgba(24,24,28,.12),0 8px 22px rgba(24,24,28,.1); }
.project-list { margin:0; padding:2px 26px 8px 2px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(310px,360px); grid-template-columns:none; gap:12px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:inline proximity; scrollbar-color:rgba(23,23,26,.16) transparent; scrollbar-width:thin; }
.project-card { min-height:176px; padding:18px; scroll-snap-align:start; background:#f5f5f7; border:0; border-radius:20px; box-shadow:inset 0 0 0 1px rgba(24,24,28,.045); }
.project-card:hover { transform:translateY(-2px); border-color:transparent; box-shadow:inset 0 0 0 1px rgba(56,39,199,.12),0 14px 34px rgba(30,28,45,.08); }
.project-card > header > span { width:32px; height:32px; border-radius:10px; box-shadow:0 7px 16px rgba(56,39,199,.2); }
.project-card > header small { font-size:11px; }
.project-card h3 { margin-top:18px; font-size:22px; }
.project-card__meta { margin-top:9px; font-size:11px; font-variant-numeric:tabular-nums; }
.project-card footer { padding-top:14px; border:0; }
.project-card footer button { min-height:44px; padding-inline:13px; border:0; border-radius:13px; font-size:12px; box-shadow:inset 0 0 0 1px rgba(24,24,28,.07); }
.project-card footer button:hover { color:var(--studio-violet); background:var(--studio-violet-soft); }
.project-card footer button.is-primary { box-shadow:0 7px 18px rgba(24,24,28,.13); }
.project-empty { min-height:108px; font-size:13px; }
.project-empty b { font-size:14px; }
.project-empty p { font-size:12px; }

.intake-layout { margin-top:20px; grid-template-columns:minmax(0,1fr) 360px; gap:20px; }
.strategy-intake { padding:40px; background:rgba(255,255,255,.9); border:0; border-radius:32px; box-shadow:0 1px 2px rgba(24,24,28,.035),0 22px 58px rgba(33,31,43,.055); }
.strategy-intake h2,.output-picker h2 { font-size:30px; }
.step-number { width:40px; height:40px; border-radius:13px; font-size:11px; font-variant-numeric:tabular-nums; }
.source-status,.output-picker > header > span:last-child { padding:9px 11px; border-radius:11px; font-size:11px; font-variant-numeric:tabular-nums; }
.intake-fields { margin-top:30px; gap:20px; }
.client-field { max-width:560px; }
.strategy-intake label > span { margin-bottom:10px; font-size:13px; }
.strategy-intake input,.strategy-intake textarea { padding:16px 17px; color:var(--studio-ink); background:var(--studio-inset); border:0; border-radius:15px; box-shadow:inset 0 1px 2px rgba(24,24,28,.045); font-size:14px; }
.strategy-intake input { min-height:52px; }
.context-field textarea { min-height:250px; font-size:16px; line-height:1.62; }
.context-field small { margin-top:10px; font-size:12px; line-height:1.45; }
.strategy-intake input::placeholder,.strategy-intake textarea::placeholder { color:rgba(23,23,26,.36); }
.strategy-intake input:focus,.strategy-intake textarea:focus { border-color:transparent; box-shadow:inset 0 0 0 1px rgba(56,39,199,.35),0 0 0 4px rgba(56,39,199,.08); }
.source-drop { min-height:96px; padding:18px; background:#f5f5f7; border:0; border-radius:17px; box-shadow:inset 0 0 0 1px rgba(24,24,28,.06); }
.source-drop:hover { background:#f1efff; border-color:transparent; box-shadow:inset 0 0 0 1px rgba(56,39,199,.17); }
.source-drop:focus-within { box-shadow:inset 0 0 0 1px rgba(56,39,199,.35),0 0 0 4px rgba(56,39,199,.08); }
.source-drop__icon { width:44px; height:44px; border-radius:13px; }
.source-drop b { font-size:14px; }
.source-drop small { font-size:12px; }
.source-drop__action { min-height:40px; padding:0 13px; display:grid; place-items:center; border-radius:12px; font-size:12px; }
.file-list span { min-height:36px; padding:8px 11px; display:inline-flex; align-items:center; border-radius:10px; font-size:12px; }
.file-list button { min-width:28px; min-height:28px; border-radius:8px; }

.output-picker { margin-top:44px; padding-top:0; border:0; }
.scope-presets { margin-top:24px; gap:10px; }
.scope-preset { min-height:100px; padding:16px; border:0; border-radius:17px; box-shadow:inset 0 0 0 1px rgba(24,24,28,.05); }
.scope-preset:hover { border-color:transparent; box-shadow:inset 0 0 0 1px rgba(56,39,199,.12),0 10px 26px rgba(33,31,43,.06); }
.scope-preset.is-active { box-shadow:inset 0 0 0 1px rgba(56,39,199,.18),0 8px 24px rgba(56,39,199,.07); }
.scope-preset span { font-size:14px; }
.scope-preset small { font-size:11px; line-height:1.4; }
.scope-preset i { width:28px; height:28px; border-radius:9px; font-size:12px; }
.selected-scope { margin-top:14px; gap:8px; }
.selected-scope span { min-height:36px; padding-inline:12px 8px; gap:9px; border-radius:11px; font-size:12px; }
.selected-scope button { width:22px; height:22px; border-radius:7px; font-size:14px; transition:transform 120ms,background-color 150ms; }
.selected-scope button:hover { background:#fff; }
.selected-scope button:active { transform:scale(.96); }
.scope-customize { margin-top:18px; border-radius:18px; box-shadow:inset 0 0 0 1px rgba(24,24,28,.045); }
.scope-customize summary { min-height:66px; padding-inline:18px; }
.scope-customize summary span { font-size:13px; }
.scope-customize summary small { font-size:11px; }
.scope-customize .output-option span { min-height:42px; font-size:12px; }

.studio-rail { top:122px; }
.generate-panel { padding:26px; color:#fff; background:radial-gradient(circle at 95% 0,rgba(255,255,255,.18),transparent 34%),linear-gradient(145deg,#211a59 0%,#3827c7 62%,#6254dd 100%); border:0; border-radius:30px; box-shadow:0 1px 2px rgba(31,23,84,.15),0 24px 54px rgba(56,39,199,.2); }
.generate-panel__status { display:flex; align-items:center; gap:9px; }
.generate-panel__status > span { width:8px; height:8px; background:rgba(255,255,255,.46); border-radius:50%; box-shadow:0 0 0 5px rgba(255,255,255,.08); transition:background-color 150ms,box-shadow 150ms; }
.generate-panel.is-ready .generate-panel__status > span { background:#65e6ad; box-shadow:0 0 0 5px rgba(101,230,173,.14); }
.generate-panel .eyebrow { margin:0; color:rgba(255,255,255,.68); }
.generate-panel h2 { max-width:260px; margin-top:16px; color:#fff; font-size:30px; line-height:1.02; text-wrap:balance; }
.blueprint-metrics { gap:9px; }
.blueprint-metrics > div { padding:15px; background:rgba(255,255,255,.11); border-radius:16px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.blueprint-metrics strong { color:#fff; font-size:34px; font-variant-numeric:tabular-nums; }
.blueprint-metrics span { color:rgba(255,255,255,.68); font-size:11px; }
.blueprint-list { margin-top:18px; gap:9px; }
.blueprint-list span { color:#fff; font-size:12px; }
.blueprint-list i { color:#2f20b5; background:#fff; border-radius:6px; }
.blueprint-list small { color:rgba(255,255,255,.65); font-size:11px; }
.generate-panel > p:not(.eyebrow) { margin:19px 0; color:rgba(255,255,255,.7); font-size:12px; line-height:1.5; }
.generate-panel .generate-button { min-height:54px; color:var(--studio-ink); background:#fff; border-radius:16px; box-shadow:0 12px 28px rgba(14,10,45,.2); font-size:14px; }
.generate-panel .generate-button:hover { color:#fff; background:#17171a; box-shadow:0 14px 30px rgba(14,10,45,.28); }
.generate-button:active { transform:scale(.96); }

.document-view { margin-top:-30px; }
.document-toolbar { min-height:72px; padding-block:12px; background:rgba(243,243,245,.9); border:0; box-shadow:0 1px 0 rgba(24,24,28,.06); }
.document-toolbar > div:first-child,.document-toolbar__actions { padding:4px; background:rgba(255,255,255,.74); border-radius:16px; box-shadow:0 1px 2px rgba(24,24,28,.045),0 8px 22px rgba(33,31,43,.04); }
.document-toolbar button { min-height:44px; padding-inline:15px; border:0; border-radius:12px; font-size:12px; }
.document-toolbar button:active { transform:scale(.96); }
.document-status { margin-inline:4px; font-size:11px; }
.document-workspace { padding-top:32px; grid-template-columns:minmax(640px,900px) minmax(390px,420px); gap:24px; }
.document-canvas { position:relative; min-height:900px; padding:68px clamp(54px,6vw,82px); background:var(--studio-paper); border:0; border-radius:26px; box-shadow:inset 0 3px 0 var(--studio-violet),0 1px 2px rgba(24,24,28,.04),0 26px 70px rgba(33,31,43,.07); }
.doc-kicker { margin-bottom:22px; font-size:11px; }
.document-canvas h1 { max-width:16ch; font-size:clamp(46px,4.6vw,66px); text-wrap:balance; }
.doc-rule { margin-block:40px; }
.doc-summary { max-width:66ch; margin-bottom:58px; font-size:21px; line-height:1.58; }
.doc-section { max-width:70ch; margin-bottom:52px; padding-inline-start:22px; }
.doc-section__number { margin-bottom:12px; font-size:11px; }
.document-canvas h2 { margin-bottom:18px; font-size:30px; text-wrap:balance; }
.doc-body { font-size:16px; line-height:1.72; }
.doc-bullet-label { margin-top:27px; font-size:11px; }
.doc-bullets { padding:18px 22px 18px 42px; border-radius:17px; font-size:15px; line-height:1.65; }
.doc-bullets li + li { margin-top:9px; }
.document-canvas [contenteditable="true"] { border-radius:7px; }
.document-canvas [contenteditable="true"]:hover { background:#f7f7f8; }
.document-canvas [contenteditable="true"]:focus { background:#f4f2ff; box-shadow:0 0 0 5px #f4f2ff; }

.document-aside { top:194px; max-height:calc(100svh - 218px); background:rgba(255,255,255,.94); border:0; border-radius:28px; box-shadow:0 1px 2px rgba(24,24,28,.035),0 22px 58px rgba(33,31,43,.065); }
.aside-tabs { padding:7px; border:0; background:#f1f1f3; border-radius:18px; }
.aside-tabs button { min-height:44px; border-radius:13px; font-size:12px; transition:color 150ms,background-color 150ms,box-shadow 150ms,transform 120ms; }
.aside-tabs button:active { transform:scale(.96); }
.aside-tabs button.is-active { background:#fff; box-shadow:0 1px 2px rgba(24,24,28,.06),0 6px 16px rgba(33,31,43,.05); }
.guidance-panel,.chat-panel,.history-panel { max-height:calc(100svh - 280px); padding:24px; }
.guidance-intro { padding:18px; border-radius:18px; }
.guidance-intro b { font-size:15px; }
.guidance-intro p { font-size:13px; }
.confidence-card { padding:20px; border-radius:19px; }
.confidence-card strong { font-size:32px; }
.confidence-card small { font-size:13px; }
.guidance-block { margin-top:26px; }
.guidance-block h3 { font-size:15px; }
.guidance-block > header small { font-size:12px; }
.guidance-item { padding:16px; border-radius:17px; }
.guidance-item b { font-size:14px; }
.guidance-item p { font-size:13px; }
.guidance-item small { font-size:10px; }
.guidance-item button { min-height:44px; border-radius:12px; font-size:12px; }
.guidance-item button:active { transform:scale(.96); }
.chat-intro { padding:16px; border-radius:17px; }
.chat-intro b { font-size:14px; }
.chat-intro p { font-size:12px; }
.chat-message { padding:13px 14px; border-radius:15px; font-size:13px; }
.chat-form { bottom:-24px; margin:0 -24px -24px; padding:14px; grid-template-columns:minmax(0,1fr) 44px; }
.chat-form textarea { min-height:72px; padding:13px; border-radius:14px; font-size:13px; }
.chat-form button { width:44px; height:44px; border-radius:13px; transition:background-color 150ms,transform 120ms; }
.chat-form button:active { transform:scale(.96); }
.history-panel > header h3 { font-size:17px; }
.history-panel > header p { font-size:12px; }
.history-item { min-height:68px; padding:14px; border-radius:15px; }
.history-item b { font-size:13px; }
.history-item small,.history-item em { font-size:11px; }

@media(max-width:1180px){
  .studio-heading { grid-template-columns:minmax(0,1fr) 380px; }
  .intake-layout { grid-template-columns:minmax(0,1fr) 330px; }
  .document-workspace { grid-template-columns:minmax(560px,1fr) 360px; }
}
@media(max-width:960px){
  .studio-heading { min-height:0; grid-template-columns:1fr; gap:22px; }
  .studio-heading__support > p { max-width:68ch; }
  .intake-layout,.document-workspace { grid-template-columns:1fr; }
  .studio-rail,.document-aside { position:static; }
  .studio-rail { grid-template-columns:1fr; }
  .document-aside { max-height:none; }
  .guidance-panel,.chat-panel,.history-panel { max-height:none; }
}
@media(max-width:680px){
  .studio-heading { padding-block:10px 24px; }
  .studio-heading h1 { font-size:42px; }
  .studio-process { overflow-x:auto; }
  .studio-process li { flex:0 0 auto; }
  .project-library { padding:20px 0 16px 20px; }
  .project-library > header { padding-inline-end:20px; }
  .project-list { grid-auto-columns:minmax(280px,calc(100vw - 72px)); }
  .strategy-intake { padding:24px; border-radius:26px; }
  .strategy-intake input,.strategy-intake textarea { font-size:16px; }
  .scope-presets { grid-template-columns:1fr; }
  .document-canvas { padding:48px 26px; border-radius:22px; }
  .document-canvas h1 { font-size:42px; }
  .doc-summary { font-size:18px; }
  .doc-section { padding-inline-start:14px; }
  .document-canvas h2 { font-size:27px; }
  .document-toolbar > div:first-child,.document-toolbar__actions { flex:0 0 auto; }
}
