/* Self-hosted variable fonts (SIL Open Font License). font-src 'self' per CSP. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }

:root {
  --ink: #17352d;
  --ink-2: #274b40;
  --paper: #f7f5ee;
  --surface: #fffdf8;
  --line: #d9ddd4;
  --muted: #626d66;
  --lime: #d8f24f;
  --sage: #dce9df;
  --blue: #dce7f7;
  --rose: #f3dfdd;
  --yellow: #f3e8b8;
  --shadow: 0 24px 70px rgba(27, 52, 44, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(78,112,88,.42); outline-offset: 2px; }
[hidden] { display: none !important; }
[contenteditable] { outline: none; border-radius: 4px; }
[contenteditable]:focus { box-shadow: 0 0 0 3px rgba(216, 242, 79, .55); background: rgba(255,255,255,.7); }

.app { min-height: 100vh; }
.topbar { height: 68px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(23,53,45,.12); background: rgba(247,245,238,.9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.wordmark { border: 0; background: none; padding: 0; font-size: 26px; font-weight: 600; letter-spacing: -1.4px; justify-self: start; }
.wordmark span { color: #c8de42; }.project-name { border: 0; background: none; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 100%; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.quiet-button, .icon-button, .avatar { border: 1px solid var(--line); background: rgba(255,255,255,.55); height: 38px; padding: 0 15px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.quiet-button:hover, .icon-button:hover { background: white; border-color: #b9c2ba; }
.icon-button { width: 38px; padding: 0; font-size: 22px; font-weight: 400; }
.avatar { width: 38px; padding: 0; border-radius: 50%; background: var(--ink); color: white; border-color: var(--ink); }
.save-state { color: var(--muted); font-size: 12px; }
.view { min-height: calc(100vh - 68px); }

.home-view { overflow: auto; }
.home { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 100px; text-align: center; }
.home-brand-mark { display: block; width: 64px; height: 64px; margin: 0 auto 26px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 1.9px; font-size: 10px; font-weight: 600; color: #718078; }
.home h1 { margin: 12px 0 17px; font-size: clamp(48px, 7vw, 76px); line-height: .98; letter-spacing: -4.6px; font-weight: 500; }
.home h1 em { font-family: "Fraunces", Georgia, serif; font-weight: 500; }.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-actions > div { display: flex; align-items: center; gap: 7px; }
.composer-tool { height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f4; font-size: 13px; }
.composer-tool:hover { background: white; }
.composer-send button { width: 39px; height: 39px; border: 0; border-radius: 12px; background: var(--ink); color: white; font-size: 22px; line-height: 1; }
.composer-send button:hover { background: #244d41; transform: translateY(-1px); }
.attachment-row { display: flex; flex-wrap: wrap; gap: 6px; }
.attachment-row:not(:empty) { margin: 0 0 12px; }
.output-presets { display: flex; align-items: stretch; gap: 6px; margin: 0 0 11px; padding-top: 10px; border-top: 1px solid #e7e8e1; }
.output-presets > span { display: flex; align-items: center; padding: 0 4px 0 2px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.output-presets button { flex: 1; display: grid; gap: 1px; min-width: 0; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; background: #f3f3ee; color: var(--ink); text-align: left; }
.output-presets button strong { font-size: 10px; }.output-presets button small { color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.output-presets button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.output-presets button[aria-pressed="true"] small { color: #c8d3ce; }
.explanation-levels { display: flex; align-items: center; gap: 5px; margin: -3px 0 11px; }
.explanation-levels > span { margin-right: 3px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.explanation-levels button { border: 0; border-radius: 999px; padding: 5px 9px; background: transparent; color: var(--muted); font-size: 9px; }
.explanation-levels button[aria-pressed="true"] { background: var(--sage); color: var(--ink); font-weight: 700; }
.file-chip { max-width: 250px; display: inline-flex; gap: 7px; align-items: center; height: 31px; border-radius: 9px; padding: 0 7px; background: #edf1ea; font-size: 11px; }
.file-chip b { font-size: 9px; background: var(--ink); color: white; padding: 3px 4px; border-radius: 4px; }
.file-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip button { border: 0; background: none; padding: 0 2px; font-size: 16px; }
.workspace-view { overflow: hidden; }
.workspace { height: calc(100vh - 68px); display: grid; grid-template-columns: 390px minmax(0, 1fr); }.more-button { border: 0; background: none; color: var(--muted); letter-spacing: 2px; padding: 3px 0; }
.messages { overflow-y: auto; padding: 13px 4px 20px; scrollbar-width: thin; }
.chat-welcome { padding: 35px 18px; border-radius: 18px; background: var(--ink); color: white; }
.chat-welcome span { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #b6c8c0; }
.chat-welcome h3 { font-size: 20px; margin: 15px 0 12px; line-height: 1.2; }
.chat-welcome p { font-size: 12px; line-height: 1.55; margin: 0; color: #c9d5d0; }
.message { display: grid; grid-template-columns: 29px 1fr; gap: 9px; margin: 0 0 16px; }
.message > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: white; border: 1px solid var(--line); font-size: 9px; font-weight: 600; }
.message.assistant > span { background: var(--ink); color: white; border-color: var(--ink); }
.message p { margin: 3px 0 0; white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: #344b43; }
.message button { margin-top: 7px; border: 0; border-bottom: 1px solid #9daaa1; padding: 0 0 2px; background: none; font-size: 11px; }
.message-more { margin-top: 8px; }.message-more summary { width: max-content; color: var(--muted); font-size: 10px; cursor: pointer; }.message-more p { padding: 9px 0 0; color: #53655e; font-size: 11px; }
.request-failure { margin: 10px 0 2px 37px; padding: 12px; border: 1px solid #ddb8b0; border-radius: 12px; background: #fbefec; }
.request-failure strong { font-size: 12px; color: #87483e; }.request-failure p { margin: 4px 0 10px; color: #765b55; font-size: 11px; line-height: 1.45; }.request-failure button { border: 0; border-radius: 8px; padding: 7px 10px; background: #87483e; color: white; font-size: 10px; font-weight: 700; }.follow-ups { display: flex; gap: 5px; overflow-x: auto; padding: 0 0 8px; }
.follow-ups button { white-space: nowrap; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 7px 9px; font-size: 10px; }
.clarify-chips button { border-style: dashed; color: var(--ink); }
.message-highlight { margin-top: 6px; padding: 6px 8px; border-left: 2px solid var(--ink); background: rgba(0, 0, 0, 0.03); font-weight: 600; font-size: 11px; }
.clarify-list { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 3px; font-size: 11px; }
.artifact-stage { min-width: 0; overflow: auto; padding: 24px; background: #e9ece6; }
.artifact-journey { min-width: 820px; max-width: 1500px; margin: 0 auto 12px; padding: 10px 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid #d3d8d1; border-radius: 13px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(38,49,42,.04); }
.artifact-tabs, .artifact-flow-actions, .artifact-lineage { display: flex; align-items: center; gap: 6px; min-width: 0; }
.artifact-tabs { flex: 1 1 360px; overflow-x: auto; }
.artifact-journey span { flex: none; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.artifact-journey button { flex: none; border: 1px solid #d4d9d3; border-radius: 8px; background: white; color: var(--ink); padding: 6px 8px; font: 700 10px/1 var(--sans); cursor: pointer; }
.artifact-tabs button { display: inline-flex; align-items: center; gap: 5px; }
.artifact-tabs button i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; background: #eef1ec; font-size: 8px; font-style: normal; }
.artifact-tabs button[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: white; }
.artifact-tabs button[aria-current="page"] i { background: rgba(255,255,255,.16); }
.artifact-flow-actions { padding-left: 12px; border-left: 1px solid #d7dcd6; }
.artifact-flow-actions button { color: #315d4c; border-color: #bfd0c8; background: #f1f7f3; }
.artifact-flow-actions button b { margin-left: 3px; }
.artifact-lineage { flex-basis: 100%; padding-top: 8px; border-top: 1px solid #e1e5e0; }
.artifact-lineage button { padding: 5px 7px; color: #55625a; background: #f6f7f5; }
.empty-stage { height: 100%; min-height: 500px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-stage-symbol { position: relative; width: 100px; height: 62px; margin: 0 0 25px; }
.empty-stage-symbol i { position: absolute; width: 58px; height: 42px; border-radius: 9px; border: 1px solid #b9c4bb; background: rgba(255,255,255,.4); transform: rotate(-8deg); }
.empty-stage-symbol i:nth-child(2) { left: 22px; transform: rotate(3deg); background: rgba(216,242,79,.22); }
.empty-stage-symbol i:nth-child(3) { left: 42px; transform: rotate(10deg); }
.empty-stage h2 { margin: 10px 0; font-size: 28px; color: var(--ink); letter-spacing: -1.4px; }
.empty-stage p { margin: 0; font-size: 13px; }
.empty-stage button { margin-top: 22px; border: 0; border-bottom: 1px solid; background: none; padding: 0 0 3px; font-size: 12px; }
.artifact-toolbar { min-width: 820px; max-width: 1500px; margin: 0 auto 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.artifact-toolbar > div { display: flex; align-items: center; gap: 8px; }
.artifact-toolbar > div:last-child { justify-content: end; }
.artifact-toolbar strong { font-size: 11px; }.artifact-toolbar button { border: 1px solid #cbd1ca; background: rgba(255,255,255,.7); border-radius: 8px; padding: 7px 9px; font-size: 10px; }
.artifact-toolbar button b { background: #dde3dc; border-radius: 10px; padding: 1px 5px; margin-left: 3px; }
.artifact-toolbar button.dark { background: var(--ink); color: white; border-color: var(--ink); }
.artifact-design-controls { justify-content: center; }
.artifact-design-controls label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.artifact-design-controls select { max-width: 142px; border: 1px solid #cbd1ca; border-radius: 8px; background: rgba(255,255,255,.75); padding: 6px 24px 6px 7px; color: var(--ink); font-size: 10px; text-transform: none; letter-spacing: 0; }
.theme-picks button { width: 16px; height: 16px; padding: 0; border-radius: 50%; }
.theme-picks .sage { background: #244c40; }.theme-picks .cobalt { background: #375cae; }.theme-picks .clay { background: #a85a45; }

.artifact { --accent: #244c40; min-width: 820px; max-width: 1500px; min-height: 900px; margin: 0 auto; padding: 34px 38px 24px; background: var(--brand-surface, var(--surface)); box-shadow: 0 7px 30px rgba(29,49,43,.12); color: var(--brand-text, #17352d); font-family: var(--brand-body, inherit); }
.artifact :where(h1,h2,h3) { font-family: var(--brand-heading, inherit); }
.artifact.density-compact { padding: 26px 30px 20px; }.artifact.density-compact .insight { padding-block: 7px; }.artifact.density-airy { padding: 46px 50px 32px; }.artifact.density-airy .insight { padding-block: 15px; }
.artifact :where(.insight,.quadrant,.compact-section,.roadmap-card,.roadmap-dependencies article) { border-radius: var(--brand-radius, 0); }
.artifact.theme-cobalt { --accent: #3158a8; }.artifact.theme-plum { --accent: #704260; }.artifact.theme-clay { --accent: #a4533e; }
.artifact-header { display: flex; justify-content: space-between; gap: 30px; border-top: 6px solid var(--accent); padding: 25px 0 20px; }
.artifact-kind { display: block; text-transform: uppercase; font-size: 9px; letter-spacing: 1.8px; color: var(--accent); font-weight: 600; }
.artifact-header h1 { margin: 8px 0 6px; font-size: 34px; letter-spacing: -1.7px; line-height: 1.08; }
.artifact-header p { margin: 0; max-width: 780px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.artifact-stamp { display: grid; justify-items: end; align-content: start; gap: 8px; flex: 0 0 auto; }
.artifact-stamp span { font-size: 8px; letter-spacing: 1.3px; }
.artifact-stamp b { font-size: 24px; font-weight: 500; }
.artifact-brand-logo { display: block; width: auto; max-width: 170px; height: 58px; object-fit: contain; object-position: right top; }
.artifact-thesis { display: grid; grid-template-columns: 85px 1fr; gap: 18px; padding: 14px 16px; margin: 0 0 21px; border-left: 3px solid var(--lime); background: #f0f2e9; }
.artifact-thesis span { text-transform: uppercase; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; padding-top: 3px; }
.artifact-thesis p { margin: 0; font-size: 12px; line-height: 1.5; }
.artifact-footer { margin-top: 28px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: 1px; font-size: 8px; color: #849088; }
.artifact-footer > div { display: flex; align-items: center; gap: 12px; }.artifact-footer img { width: 96px; height: auto; }.artifact-footer > div > span { color: var(--brand-primary, #849088); }

.insight { padding: 11px 0; border-top: 1px solid rgba(23,53,45,.13); }
.insight:first-child { border-top: 0; }
.insight-top { display: grid; grid-template-columns: 7px 1fr 15px; gap: 7px; align-items: start; }
.impact-dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #84928b; }
.insight[data-impact="opportunity"] .impact-dot, .insight[data-impact="positive"] .impact-dot { background: #77a550; }
.insight[data-impact="threat"] .impact-dot, .insight[data-impact="negative"] .impact-dot { background: #c56555; }
.insight strong { font-size: 11px; line-height: 1.3; }
.insight p { margin: 5px 0 0 13px; color: #516159; font-size: 9.5px; line-height: 1.48; }
.insight footer { min-height: 12px; margin: 7px 0 0 13px; display: flex; align-items: center; gap: 5px; }
.insight footer span { text-transform: uppercase; color: #7c8781; letter-spacing: .6px; font-size: 7px; }
.insight footer button { border: 0; background: none; padding: 0; color: var(--accent); font-size: 7px; }
.delete-item { opacity: 0; border: 0; background: none; padding: 0; color: #a45448; }
.insight:hover .delete-item { opacity: 1; }
.add-insight { margin-top: 6px; border: 0; background: none; color: #7a867f; padding: 3px 0; font-size: 8px; opacity: .4; }
section:hover > .add-insight { opacity: 1; }
.empty-copy { margin: 12px 0; color: #8d9891; font-size: 9px; font-style: italic; }
.section-score { padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.7); font-size: 8px; }

/* Canonical PESTEL: six equal external-environment lenses. */
.pestel-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.pestel-lane { min-width: 0; padding: 0 12px 13px; border-right: 1px solid var(--line); }
.pestel-lane:last-child { border-right: 0; }
.pestel-lane > header { margin: 0 -12px 10px; padding: 12px; min-height: 77px; display: grid; grid-template-columns: 29px 1fr auto; gap: 7px; align-items: start; background: var(--sage); }
.pestel-2 > header { background: var(--blue); }.pestel-3 > header { background: var(--rose); }.pestel-4 > header { background: #deddf0; }.pestel-5 > header { background: #dcebd8; }.pestel-6 > header { background: var(--yellow); }
.pestel-lane header i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-style: normal; font-size: 11px; font-weight: 600; }
.pestel-lane header span { font-size: 7px; color: #7d8882; }
.pestel-lane h2 { margin: 3px 0 0; font-size: 11px; word-break: break-word; }

/* Canonical Osterwalder Business Model Canvas geometry. */
.bmc-canvas { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(2, minmax(245px, auto)) minmax(190px, auto); border: 1px solid var(--ink); }
.bmc-block { padding: 13px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.bmc-block > header { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.bmc-block header i { font-style: normal; font-size: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: white; }
.bmc-block h2 { margin: 0; font-size: 11px; }
.bmc-1 { grid-column: 1 / 3; grid-row: 1 / 3; }.bmc-2 { grid-column: 3 / 5; grid-row: 1; }.bmc-3 { grid-column: 3 / 5; grid-row: 2; }.bmc-4 { grid-column: 5 / 7; grid-row: 1 / 3; background: #eff4e9; }.bmc-5 { grid-column: 7 / 9; grid-row: 1; }.bmc-6 { grid-column: 7 / 9; grid-row: 2; }.bmc-7 { grid-column: 9 / 11; grid-row: 1 / 3; border-right: 0; }.bmc-8 { grid-column: 1 / 6; grid-row: 3; border-bottom: 0; }.bmc-9 { grid-column: 6 / 11; grid-row: 3; border-right: 0; border-bottom: 0; }

/* Canonical 2×2 strategy matrices with visible axes. */
.matrix-shell { position: relative; padding: 24px 0 0 35px; }
.axis { position: absolute; z-index: 2; text-transform: uppercase; letter-spacing: 1px; font-size: 7px; color: #7d8882; }
.axis-top { top: 4px; left: 35px; }.axis-top.right { left: 53%; }.axis-side { transform: rotate(-90deg); transform-origin: left top; left: 10px; top: 50%; }.axis-side.bottom { top: 96%; }
.four-grid, .swot-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.four-grid.standalone { padding: 0; }
.quadrant { min-height: 275px; padding: 15px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quadrant:nth-child(even) { border-right: 0; }.quadrant:nth-last-child(-n+2) { border-bottom: 0; }
.quadrant > header { min-height: 43px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: start; margin-bottom: 8px; }
.quadrant header i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 9px; background: var(--ink); color: white; }
.quadrant header span { font-size: 7px; color: #7d8882; }.quadrant h2 { font-size: 13px; margin: 3px 0 0; }
.swot-grid .quadrant-1 { background: #e3eee4; }.swot-grid .quadrant-2 { background: #f1e2df; }.swot-grid .quadrant-3 { background: #e1eaf5; }.swot-grid .quadrant-4 { background: #f2e9cf; }
.generic-matrix .axis-x { right: 0; bottom: -15px; }.generic-matrix .axis-y { left: 8px; top: 55%; transform: rotate(-90deg); transform-origin: left; }

/* Five Forces preserves the industry-structure cross. */
.forces-map { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; grid-template-rows: 210px 250px 210px; gap: 22px; }
.force-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.force-lines path { fill: none; stroke: #87938c; stroke-width: .45; vector-effect: non-scaling-stroke; }
.force { position: relative; z-index: 1; padding: 14px; border: 1px solid var(--ink); background: var(--surface); overflow: auto; }
.force > header { padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.force header span { font-size: 7px; letter-spacing: 1px; color: #7c8881; }.force h2 { font-size: 12px; margin: 4px 0; }.force-1 { grid-column: 2; grid-row: 1; }.force-2 { grid-column: 1; grid-row: 2; }.force-3 { grid-column: 2; grid-row: 2; background: var(--ink); color: white; }.force-3 .insight p, .force-3 header span, .force-3 .empty-copy { color: #c7d2cd; }.force-3 .insight { border-color: rgba(255,255,255,.2); }.force-3 .add-insight { color: white; }.force-4 { grid-column: 3; grid-row: 2; }.force-5 { grid-column: 2; grid-row: 3; }

/* Journey and roadmap use real stage/time progression. */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-top: 34px; }
.journey-line { position: absolute; height: 2px; left: 8%; right: 8%; top: 49px; background: var(--ink); }
.journey-stage { position: relative; min-height: 510px; padding: 0 12px 12px; border: 1px solid var(--line); background: #fffefa; }
.journey-stage > header { position: relative; z-index: 1; margin: -34px -12px 12px; display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; }
.journey-stage header i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 9px; font-style: normal; }
.journey-stage header span { font-size: 7px; color: #7c8781; }.journey-stage h2 { margin: 2px 0 0; font-size: 11px; }
.roadmap-card { min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--brand-surface, #fffefa); }.roadmap-card > strong { display: block; font-size: 10px; }.roadmap-card > p { margin: 5px 0 9px; color: var(--muted); font-size: 9px; line-height: 1.4; }.roadmap-card > footer { display: flex; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 8px; }.roadmap-card > footer b { color: var(--accent); }
.roadmap-horizons { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }.roadmap-horizons > section { min-height: 590px; padding: 13px; border-right: 1px solid var(--ink); }.roadmap-horizons > section:last-child { border-right: 0; }.roadmap-horizons header { min-height: 72px; border-bottom: 3px solid var(--accent); }.roadmap-horizons header span { color: var(--muted); }.roadmap-horizons h2 { margin: 6px 0; font-size: 14px; }
.roadmap-swimlanes { display: grid; border: 1px solid var(--ink); overflow: hidden; }.roadmap-swimlane-head,.roadmap-swimlanes > section { display: grid; grid-template-columns: 150px repeat(4, 1fr); }.roadmap-swimlane-head { min-height: 58px; background: var(--ink); color: var(--surface); }.roadmap-swimlane-head > * { display: flex; align-items: center; padding: 10px; border-right: 1px solid color-mix(in srgb, var(--surface) 20%, transparent); }.roadmap-swimlanes > section { min-height: 150px; border-top: 1px solid var(--line); }.roadmap-swimlanes > section > header { padding: 13px; background: color-mix(in srgb, var(--brand-secondary, var(--sage)) 55%, var(--surface)); font-size: 11px; font-weight: 700; }.roadmap-swimlanes > section > div { display: grid; align-content: start; gap: 7px; padding: 8px; border-left: 1px solid var(--line); }.roadmap-swimlanes > .add-insight { display: none; }
.roadmap-timeline { position: relative; display: grid; gap: 0; border: 1px solid var(--ink); }.roadmap-time-axis { display: grid; grid-template-columns: repeat(4, 1fr); margin-left: 160px; background: var(--ink); color: white; }.roadmap-time-axis span { padding: 10px; border-left: 1px solid rgba(255,255,255,.2); text-align: center; }.roadmap-timeline > section { display: grid; grid-template-columns: 160px 1fr 54px; min-height: 135px; border-top: 1px solid var(--line); }.roadmap-timeline > section > header { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 12px; background: color-mix(in srgb, var(--brand-secondary, var(--sage)) 45%, var(--surface)); }.roadmap-timeline header i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-style: normal; }.roadmap-timeline h2 { margin: 5px 0; font-size: 11px; }.roadmap-timeline > section > div { display: flex; align-items: start; gap: 8px; padding: 11px; background-image: linear-gradient(90deg, transparent 24.8%, var(--line) 25%, transparent 25.2%, transparent 49.8%, var(--line) 50%, transparent 50.2%, transparent 74.8%, var(--line) 75%, transparent 75.2%); }.roadmap-timeline .roadmap-card { flex: 1; }
.roadmap-milestones { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 0; }.roadmap-milestones::before { content: ""; position: absolute; left: 5%; right: 5%; top: 58px; height: 3px; background: var(--accent); }.roadmap-milestones article { position: relative; z-index: 1; padding: 52px 14px 16px; border: 1px solid var(--line); background: var(--surface); }.roadmap-milestones article > i { position: absolute; top: 0; left: 14px; width: 36px; height: 36px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-style: normal; }.roadmap-milestones article > span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }.roadmap-milestones article > strong { display: block; margin-top: 7px; }.roadmap-milestones article p { color: var(--muted); line-height: 1.45; }
.roadmap-dependencies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.roadmap-dependencies article { position: relative; min-height: 180px; padding: 15px; border: 1px solid var(--ink); background: var(--surface); }.roadmap-dependencies article:not(:nth-child(3n))::after { content: "→"; position: absolute; right: -14px; top: 50%; color: var(--accent); font-size: 18px; }.roadmap-dependencies header { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }.roadmap-dependencies > article > strong { display: block; margin: 13px 0 7px; font-size: 12px; }.roadmap-dependencies p { color: var(--muted); line-height: 1.45; }.roadmap-dependencies footer { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--accent); font-size: 8px; }

/* Value Proposition Canvas keeps customer and offer sides distinct. */
.vpc { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: stretch; min-height: 660px; }
.vpc-half { padding: 20px; border: 2px solid var(--ink); }
.vpc-half.offer { border-radius: 22px 0 0 22px; background: #edf3e9; }.vpc-half.customer { border-radius: 0 50% 50% 0; padding-right: 45px; background: #f7eee8; }
.vpc-half > header { text-align: center; padding-bottom: 17px; }.vpc-half > header span { font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }.vpc-half > header h2 { font-size: 18px; margin: 4px 0; }
.vpc-fit { display: grid; place-items: center; }.vpc-fit span { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 9px; font-weight: 600; }
.compact-section { padding: 13px 0; border-top: 1px solid var(--line); }.compact-section > header { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; }.compact-section header span { font-size: 7px; color: var(--muted); }.compact-section h2 { margin: 0; font-size: 11px; }

.column-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); }
.column-layout .compact-section { padding: 15px; border-top: 0; border-right: 1px solid var(--line); }
.framework-table { border: 1px solid var(--ink); }
.framework-table > section { display: grid; grid-template-columns: 180px 1fr 70px; min-height: 110px; border-bottom: 1px solid var(--ink); padding: 12px; gap: 16px; }.framework-table > section:last-child { border-bottom: 0; }.framework-table header { display: flex; gap: 10px; }.framework-table header span { font-size: 8px; color: var(--muted); }.framework-table h2 { margin: 0; font-size: 12px; }.framework-table section > .insight { display: inline-block; width: 31%; vertical-align: top; margin-right: 1%; }
.flow-map { display: flex; flex-direction: column-reverse; gap: 12px; }.flow-map > section { position: relative; min-height: 125px; border: 1px solid var(--ink); padding: 14px; display: grid; grid-template-columns: 170px 1fr 70px; gap: 14px; }.flow-map > section > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.flow-map h2 { margin: 4px 0; font-size: 13px; }.flow-map header span { font-size: 7px; color: var(--muted); }.flow-arrow { position: absolute; left: 50%; top: -20px; }
.document-layout { max-width: 900px; margin: 0 auto; }.document-layout > section { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 25px 0; border-top: 1px solid var(--ink); }.document-layout > section > span { color: var(--muted); font-size: 9px; }.document-layout h2 { margin: 0 0 10px; font-size: 19px; }.document-layout .insight p { font-size: 11px; }
.slides-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.slides-layout > section { aspect-ratio: 16 / 9; padding: 20px; border: 1px solid var(--ink); background: #fff; }.slides-layout section > span { font-size: 7px; letter-spacing: 1px; }.slides-layout h2 { margin: 16px 0; font-size: 19px; }

/* Typed analytical plots and operating tables. */
.plot-shell { position: relative; min-width: 0; padding: 12px 0 28px 30px; }
.plot-axis { position: absolute; z-index: 3; color: #637169; font-size: 11px; font-weight: 600; }
.plot-axis.plot-x { right: 0; bottom: 6px; }.plot-axis.plot-y { left: 8px; top: 52%; transform: rotate(-90deg); transform-origin: left center; }
.plot-node { position: absolute; z-index: 4; transform: translate(-50%, 50%); display: grid; place-items: center; border-radius: 50%; padding: 5px; background: var(--node-color); color: white; border: 2px solid var(--surface); box-shadow: 0 4px 12px rgba(23,53,45,.2); text-align: center; overflow: hidden; }
.plot-node span { font-size: 10px !important; line-height: 1.1; font-weight: 600; }

.risk-layout { display: grid; grid-template-columns: minmax(500px, 1.1fr) minmax(360px, .9fr); gap: 24px; }
.risk-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 72px); border: 1px solid var(--ink); }
.risk-cell { border-right: 1px solid rgba(23,53,45,.25); border-bottom: 1px solid rgba(23,53,45,.25); padding: 7px; }.risk-cell:nth-child(5n) { border-right: 0; }.risk-cell span { color: rgba(23,53,45,.55); }
.risk-low { background: #dcebd8; }.risk-medium { background: #f3e8b8; }.risk-high { background: #efd4b7; }.risk-critical { background: #edc3bd; }
.risk-node { border-radius: 10px; }
.risk-register { border: 1px solid var(--ink); align-self: start; }.register-head, .risk-register article { display: grid; grid-template-columns: 1fr 95px 28px 28px 70px; gap: 7px; align-items: center; min-height: 42px; padding: 8px 10px; border-bottom: 1px solid var(--line); }.register-head { background: var(--ink); color: white; text-transform: uppercase; }.risk-register article:last-of-type { border-bottom: 0; }.risk-register article strong { line-height: 1.3; }.risk-register article > span, .risk-register article > b { font-weight: 500; color: #5b6962; }

.stakeholder-layout, .portfolio-layout, .competitor-layout { display: grid; grid-template-columns: minmax(540px, 1fr) 260px; gap: 24px; }
.stakeholder-plane, .bcg-plot, .competitor-plot { position: relative; height: 550px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border: 1px solid var(--ink); }
.stakeholder-plane > div:not(.plot-node), .bcg-plot > div:not(.plot-node) { padding: 13px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: rgba(23,53,45,.55); }.stakeholder-plane > div:nth-child(even), .bcg-plot > div:nth-child(even) { border-right: 0; }.stakeholder-plane > div:nth-child(n+3), .bcg-plot > div:nth-child(n+3) { border-bottom: 0; }
.stakeholder-plane > div:nth-child(1) { background: #f3e8b8; }.stakeholder-plane > div:nth-child(2) { background: #dce9df; }.stakeholder-plane > div:nth-child(3) { background: #f0eee8; }.stakeholder-plane > div:nth-child(4) { background: #dce7f7; }
.map-register, .portfolio-legend, .whitespace { border: 1px solid var(--ink); padding: 15px; align-self: start; }.map-register h2, .portfolio-legend h2, .whitespace h2 { margin: 0 0 12px; font-size: 15px; }.map-register article { padding: 10px 0; border-top: 1px solid var(--line); }.map-register article small { display: block; color: var(--accent); margin: 3px 0; }.map-register article p { margin: 0; color: #657169; line-height: 1.4; }

.bcg-plot { background: #f7f5ee; }.bcg-plot > div:nth-child(1) { background: #f3e8b8; }.bcg-plot > div:nth-child(2) { background: #dce9df; }.bcg-plot > div:nth-child(3) { background: #f3dfdd; }.bcg-plot > div:nth-child(4) { background: #dce7f7; }
.ge-plot { position: relative; height: 570px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); border: 1px solid var(--ink); }.ge-cell { padding: 10px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }.ge-cell:nth-child(3n) { border-right: 0; }.ge-cell:nth-child(n+7) { border-bottom: 0; }.ge-2,.ge-3,.ge-6 { background: #dce9df; }.ge-1,.ge-5,.ge-9 { background: #f3e8b8; }.ge-4,.ge-7,.ge-8 { background: #f3dfdd; }
.portfolio-legend article { display: grid; grid-template-columns: 12px 1fr; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); }.portfolio-legend article i { width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: var(--node-color); }.portfolio-legend article div { display: grid; gap: 2px; }.portfolio-legend small { color: #6f7b74; }
.competitor-plot { display: block; background: linear-gradient(135deg, #eef2e9 0 50%, #f7f5ee 50% 100%); }.competitor-plot .cross-x, .competitor-plot .cross-y { position: absolute; background: rgba(23,53,45,.28); }.competitor-plot .cross-x { left: 0; right: 0; top: 50%; height: 1px; }.competitor-plot .cross-y { top: 0; bottom: 0; left: 50%; width: 1px; }.whitespace > span { text-transform: uppercase; letter-spacing: 1px; color: #6f7b74; }

.strategy-canvas { border: 1px solid var(--ink); padding: 15px; }.strategy-canvas > header { display: flex; justify-content: space-between; align-items: start; }.strategy-canvas h2 { margin: 3px 0 0; font-size: 16px; }.strategy-canvas header span { text-transform: uppercase; color: #6f7b74; }.strategy-canvas svg { width: 100%; height: auto; margin-top: 10px; }.chart-grid { fill: none; stroke: #88938d; stroke-width: 1; }.curve { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }.curve.industry { stroke: #8b9790; stroke-dasharray: 7 5; }.curve.current { stroke: #3158a8; }.curve.proposed { stroke: #a4533e; }.strategy-canvas text { font-size: 10px; fill: #526158; }.curve-key { display: flex; align-items: center; gap: 6px; }.curve-key i { width: 17px; height: 3px; background: #8b9790; }.curve-key i:nth-of-type(2) { background: #3158a8; }.curve-key i:nth-of-type(3) { background: #a4533e; }.errc-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }.errc-grid .quadrant { min-height: 260px; border-bottom: 0; }.errc-grid .quadrant:nth-child(2) { border-right: 1px solid var(--ink); }

.decision-table, .raci-table, .vrio-table, .scorecard-table { border: 1px solid var(--ink); }
.decision-row { display: grid; grid-template-columns: 1fr 90px repeat(3, 120px); min-height: 54px; align-items: center; border-bottom: 1px solid var(--line); }.decision-row > * { height: 100%; display: flex; align-items: center; padding: 10px 12px; border-right: 1px solid var(--line); }.decision-row > *:last-child { border-right: 0; }.decision-head, .raci-head, .vrio-head, .scorecard-head { background: var(--ink); color: white; text-transform: uppercase; }.decision-total { border-bottom: 0; background: #edf1e9; }
.raci-row { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); min-height: 58px; align-items: stretch; border-bottom: 1px solid var(--line); }.raci-row > * { display: flex; align-items: center; padding: 10px; border-right: 1px solid var(--line); }.raci-row > *:last-child { border-right: 0; }.raci-row [data-raci="accountable"] { background: #eef3e9; font-weight: 600; }
.vrio-row { display: grid; grid-template-columns: 1.4fr repeat(4, 54px) 1fr; min-height: 58px; align-items: stretch; border-bottom: 1px solid var(--line); }.vrio-row > * { display: flex; align-items: center; padding: 10px; border-right: 1px solid var(--line); }.vrio-row > *:last-child { border-right: 0; }.binary { justify-content: center; }.binary.yes { color: #547b3e; background: #e5eee1; }.binary.no { color: #9f5c50; }

.okr-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.objective-card { border: 1px solid var(--ink); padding: 14px; }.objective-card > header { min-height: 72px; border-bottom: 3px solid var(--accent); }.objective-card header span { text-transform: uppercase; color: #6f7b74; }.objective-card h2 { margin: 7px 0; font-size: 17px; }.key-result { padding: 15px 0; border-bottom: 1px solid var(--line); }.key-result > strong { display: block; min-height: 34px; }.kr-numbers { display: flex; align-items: baseline; gap: 7px; margin: 9px 0; }.kr-numbers span { color: #6f7b74; }.progress { height: 7px; border-radius: 4px; background: #e2e6df; overflow: hidden; }.progress i { display: block; height: 100%; background: var(--accent); }.key-result footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; margin-top: 8px; color: #68756e; }

.seven-s-map { position: relative; min-height: 760px; }.seven-s-map > svg { position: absolute; inset: 15% 20%; width: 60%; height: 65%; }.seven-s-map > svg circle, .seven-s-map > svg path { fill: none; stroke: #aeb8b1; stroke-width: .5; }.seven-s-node { position: absolute; width: 25%; min-height: 190px; border: 1px solid var(--ink); padding: 12px; background: var(--surface); }.seven-s-node > span { color: #6f7b74; }.seven-s-node h2 { margin: 4px 0 8px; font-size: 15px; }.seven-s-1 { left: 37.5%; top: 0; }.seven-s-2 { right: 3%; top: 20%; }.seven-s-3 { right: 8%; bottom: 4%; }.seven-s-4 { left: 37.5%; bottom: 0; }.seven-s-5 { left: 3%; bottom: 4%; }.seven-s-6 { left: 3%; top: 20%; }.seven-s-7 { left: 37.5%; top: 35%; background: var(--ink); color: white; }.seven-s-7 .insight p, .seven-s-7 .empty-copy { color: #c8d3ce; }

.value-chain { display: grid; gap: 12px; }.support-activities { min-height: 180px; border: 1px solid var(--ink); padding: 14px; background: #e7eee4; }.support-activities > header { display: flex; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--ink); }.support-activities h2 { font-size: 15px; }.primary-chain { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ink); padding-right: 75px; }.primary-chain > section { min-height: 390px; padding: 13px; border-right: 1px solid var(--ink); }.primary-chain section header span { color: #6f7b74; }.primary-chain h2 { font-size: 13px; min-height: 35px; }.margin-arrow { position: absolute; right: 0; top: 0; bottom: 0; width: 75px; display: grid; place-items: center; writing-mode: vertical-rl; background: var(--ink); color: white; font-style: normal; }

.jtbd-layout { display: grid; grid-template-columns: 1fr 160px 1fr; grid-template-areas: "trigger progress jobs" "forces forces forces"; gap: 15px; }.jtbd-trigger { grid-area: trigger; border: 1px solid var(--ink); padding: 15px; }.jtbd-progress { grid-area: progress; display: grid; place-items: center; align-content: center; text-align: center; border-radius: 50%; aspect-ratio: 1; background: var(--lime); padding: 20px; }.jtbd-progress span { letter-spacing: 1px; }.jtbd-progress strong { margin-top: 8px; }.jtbd-jobs { grid-area: jobs; border: 1px solid var(--ink); padding: 15px; }.jtbd-forces { grid-area: forces; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }.jtbd-forces .compact-section { padding: 15px; border-top: 0; }.jtbd-forces .compact-section:first-child { border-right: 1px solid var(--ink); }
.persona-layout { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--ink); }.persona-layout > aside { padding: 25px; background: var(--ink); color: white; }.persona-avatar { width: 90px; height: 90px; margin-bottom: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 34px !important; }.persona-layout aside > span { text-transform: uppercase; color: #bdcbc5; }.persona-layout aside h2 { font-size: 22px; }.persona-layout aside p { color: #cbd5d1; line-height: 1.5; }.persona-layout aside img { width: 110px; margin: 25px auto 0; filter: brightness(0) invert(1); opacity: .35; }.persona-evidence { display: grid; grid-template-columns: 1fr 1fr; }.persona-evidence .compact-section { padding: 18px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scorecard-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr .8fr .7fr; min-height: 62px; border-bottom: 1px solid var(--line); }.scorecard-row > * { display: flex; align-items: center; padding: 10px; border-right: 1px solid var(--line); }.scorecard-row > *:last-child { border-right: 0; }.scorecard-row > div { display: grid; align-content: center; }.scorecard-row small { color: #6f7b74; text-transform: uppercase; }

/* Never make the finished work require zooming to read. */
.artifact { font-size: 11px; }
.artifact :where(p, span, button, strong, i) { font-size: max(11px, 1em); }
.eyebrow, .artifact-toolbar button, .artifact-toolbar strong, .source-item small{ font-size: 11px; }

.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(16,34,29,.28); backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; width: min(430px, 94vw); height: 100vh; padding: 27px; background: var(--surface); box-shadow: -20px 0 60px rgba(19,39,33,.16); transform: translateX(100%); transition: transform .2s ease; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }.drawer h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -1px; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: none; font-size: 21px; line-height: 1; }
.new-work-button { width: 100%; border: 0; border-radius: 12px; background: var(--ink); color: white; padding: 12px; text-align: left; margin-bottom: 18px; font-size: 12px; }.drawer-intro { margin: -8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.source-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }.source-item > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 8px; }.source-item div { display: grid; gap: 4px; }.source-item a { color: var(--ink); font-size: 12px; line-height: 1.35; }.source-item small { color: var(--muted); font-size: 9px; }
.drawer-empty { padding: 50px 15px; text-align: center; color: var(--muted); }.drawer-empty strong { color: var(--ink); }.drawer-empty p { font-size: 12px; }
.brand-kit-list { display: grid; gap: 8px; }
.brand-kit-card { display: grid; grid-template-columns: 37px 1fr auto auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.45); }
.brand-kit-card.active { border-color: #88a096; box-shadow: inset 0 0 0 1px #88a096; }
.brand-swatch { width: 36px; height: 36px; border-radius: 10px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.brand-kit-card > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }.brand-kit-card strong { font-size: 11px; }.brand-kit-card small { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.brand-kit-card button { border: 0; border-radius: 8px; padding: 6px 7px; background: var(--sage); color: var(--ink); font-size: 9px; }.brand-kit-card.active button:not(.brand-edit) { background: var(--ink); color: white; }.brand-kit-card .brand-edit { background: transparent; color: var(--muted); }
.brand-form { display: grid; gap: 16px; }.brand-form-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }.brand-form-head button { border: 0; background: none; color: var(--muted); padding: 0; }.brand-form-head span { font-size: 11px; font-weight: 700; }
.brand-form label { display: grid; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 700; }
.brand-form input:not([type="checkbox"]), .brand-form textarea, .brand-form select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 10px; color: var(--ink); font: inherit; font-size: 12px; font-weight: 400; outline: 0; }
.brand-form input:focus, .brand-form textarea:focus, .brand-form select:focus { border-color: #83948a; box-shadow: 0 0 0 3px rgba(216,242,79,.24); }
.brand-form fieldset { display: grid; gap: 11px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }.brand-form legend { padding: 0 6px; font-size: 10px; font-weight: 700; }
.brand-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.brand-color-grid label { gap: 4px; }.brand-color-grid input[type="color"] { height: 36px; padding: 3px; cursor: pointer; }
.brand-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.field-help { margin: -3px 0 1px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.brand-file-drop { place-items: center; border: 1px dashed #aeb9b2; border-radius: 10px; padding: 13px; background: #f7f8f3; cursor: pointer; }
.brand-assets { display: grid; gap: 5px; }.brand-assets span { display: grid; grid-template-columns: 35px 1fr 22px; align-items: center; gap: 6px; min-width: 0; padding: 6px; border-radius: 8px; background: #edf1ea; font-size: 9px; overflow: hidden; }.brand-assets b { font-size: 7px; }.brand-assets button { border: 0; background: none; font-size: 15px; }
.brand-form .check-label { display: flex; grid-template-columns: none; align-items: start; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }.brand-form .check-label input { margin-top: 1px; }.danger-text { color: #a34e44; }

.modal { position: fixed; z-index: 65; left: 50%; top: 50%; transform: translate(-50%, -47%); width: min(460px, calc(100vw - 30px)); border-radius: 22px; padding: 30px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; transition: opacity .18s, transform .18s; }
.modal.open { opacity: 1; transform: translate(-50%, -50%); }.modal-close { position: absolute; right: 20px; top: 20px; }.modal h2 { margin: 8px 0; font-size: 27px; letter-spacing: -1.3px; }.modal > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 22px; max-width: 360px; }.modal form { display: grid; gap: 14px; }.modal label { display: grid; gap: 6px; font-size: 10px; font-weight: 600; }.modal input, .modal select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 11px 12px; font-size: 13px; outline: 0; }.modal input:focus, .modal select:focus { border-color: #83948a; box-shadow: 0 0 0 3px rgba(216,242,79,.24); }
.connection-card { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 11px; background: #f4e9e6; }.connection-card > i { width: 9px; height: 9px; border-radius: 50%; background: #c96a59; }.connection-card.connected { background: #e9f0e5; }.connection-card.connected > i { background: #74a04b; }.connection-card div { display: grid; gap: 2px; }.connection-card strong { font-size: 11px; }.connection-card small { color: var(--muted); font-size: 9px; }
.primary-button, .danger-button { border: 0; border-radius: 11px; background: var(--ink); color: white; min-height: 43px; padding: 0 15px; font-weight: 600; font-size: 12px; }.text-button { border: 0; background: none; color: var(--muted); font-size: 11px; }.confirm-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f1dfda; color: #9f4d41; font-weight: 600; }.modal-actions { display: flex; justify-content: end; gap: 8px; }.danger-button { background: #9f4d41; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 15px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 11px; pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 14px; }.quiet-button { padding: 0 10px; }.topbar-center { display: none; }
  .home { padding-top: 55px; }.home h1 { letter-spacing: -3px; }.examples { grid-template-columns: 1fr; }.examples button { min-height: 72px; }
  .workspace { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 68px); }.chat-panel { min-height: calc(100vh - 68px); border-right: 0; }.artifact-stage { padding: 13px; min-height: 70vh; }.workspace-view.with-artifact .chat-panel { min-height: 410px; }.artifact-journey, .artifact-toolbar, .artifact { min-width: 760px; }
}

@media print {
  .topbar, .chat-panel, .artifact-journey, .artifact-toolbar, .toast, .backdrop, .drawer, .modal { display: none !important; }
  .workspace, .workspace-view, .artifact-stage { display: block; height: auto; min-height: 0; overflow: visible; padding: 0; background: white; }
  .artifact { box-shadow: none; margin: 0; max-width: none; min-width: 0; width: 100%; }
  .add-insight, .delete-item, .insight footer button { display: none; }
  @page { size: A3 landscape; margin: 10mm; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Owner-approved Recline identity and product shell, 2026-07-16. */
:root {
  --paper: #f2eee1;
  --paper-2: #e9e3d2;
  --surface: #fffdf6;
  --pine: #0c1e18;
  --forest: #123b2e;
  --ink: #0c1e18;
  --ink-2: #2a4a3d;
  --muted: #616c65;
  --faint: #79857c;
  --line: #ded8c6;
  --line-2: #cdc7b3;
  --lime: #c6ff3a;
  --lime-deep: #a4dd18;
  --teal: #0e6e57;
  --gold: #eba80f;
  --clay: #da4b2e;
  --cobalt: #2757c4;
  --sage: color-mix(in srgb, var(--lime) 14%, var(--surface));
  --blue: color-mix(in srgb, var(--cobalt) 13%, var(--surface));
  --rose: color-mix(in srgb, var(--clay) 12%, var(--surface));
  --yellow: color-mix(in srgb, var(--gold) 15%, var(--surface));
  --shadow: 0 28px 80px rgba(12, 30, 24, .12);
  --ease-settle: cubic-bezier(.2, .75, .2, 1);
  --ease-commit: cubic-bezier(.34, 1.3, .5, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --duration-instant: 120ms;
  --duration-base: 200ms;
  --duration-considered: 320ms;
  --duration-narrative: 520ms;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #0a1510; --paper-2: #0e1d16; --surface: #12241b; --pine: #060f0b; --forest: #16402f;
    --ink: #eef2e4; --ink-2: #c4d2c8; --muted: #8a978e; --faint: #808e84;
    --line: rgba(230, 240, 220, .13); --line-2: rgba(230, 240, 220, .22);
    --lime: #cbff3a; --lime-deep: #a4dd18; --teal: #17957a; --gold: #f2b529; --clay: #e2664a; --cobalt: #5480e6;
    --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --paper: #0a1510; --paper-2: #0e1d16; --surface: #12241b; --pine: #060f0b; --forest: #16402f;
  --ink: #eef2e4; --ink-2: #c4d2c8; --muted: #8a978e; --faint: #808e84;
  --line: rgba(230, 240, 220, .13); --line-2: rgba(230, 240, 220, .22);
  --lime: #cbff3a; --teal: #17957a; --gold: #f2b529; --clay: #e2664a; --cobalt: #5480e6;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

:root[data-theme="light"] {
  --paper: #f2eee1; --paper-2: #e9e3d2; --surface: #fffdf6; --pine: #0c1e18; --forest: #123b2e;
  --ink: #0c1e18; --ink-2: #2a4a3d; --muted: #616c65; --faint: #79857c;
  --line: #ded8c6; --line-2: #cdc7b3; --lime: #c6ff3a; --teal: #0e6e57; --gold: #eba80f; --clay: #da4b2e; --cobalt: #2757c4;
}

html { color-scheme: light; scroll-behavior: smooth; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { color-scheme: dark; } }
body { min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
button, input, textarea, select { font-family: inherit; }
button { transition: color var(--duration-base), background var(--duration-base), border-color var(--duration-base), transform var(--duration-base) var(--ease-settle), box-shadow var(--duration-base); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--lime) 65%, transparent); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--forest) 45%, transparent); outline-offset: 2px; }
.composer textarea:focus-visible { outline: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.laezi-mark { display: block; color: var(--ink); overflow: visible; }

.topbar { height: 72px; padding: 0 30px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(22px); }
.topbar-brand { min-width: 0; display: flex; align-items: center; gap: 22px; }
.wordmark { color: var(--ink); font-size: 28px; font-weight: 720; letter-spacing: -.05em; }
.wordmark span { color: var(--lime-deep); }
.workspace-switcher { min-width: 0; }
.project-name { max-width: min(31vw, 360px); padding: 6px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.project-name span { margin-left: 5px; color: var(--faint); }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.nav-button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav-button:hover, .nav-button[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--surface) 58%, transparent); }
.icon-button, .avatar { height: 36px; border: 0; background: transparent; }
.icon-button { width: 36px; color: var(--ink); font-size: 23px; }
.icon-button:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.avatar { width: 34px; margin-left: 4px; background: var(--forest); color: #fffdf6; }
.primary-nav { min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--forest); color: #fffdf6; font-size: 13px; font-weight: 700; }
.save-state { color: var(--muted); font-size: 11px; }
.view { min-height: calc(100vh - 72px); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .18em; }

.home { width: min(980px, calc(100% - 40px)); padding: clamp(64px, 9vh, 108px) 0 100px; }
.home-brand-mark { width: 92px; height: 76px; margin: 0 auto 22px; color: var(--forest); }
.home h1, .marketing-page h1, .marketing-page h2{ font-family: Inter, -apple-system, system-ui, sans-serif; font-weight: 600; color: var(--ink); }
.home h1 { margin: 0 0 18px; font-size: clamp(46px, 6.2vw, 76px); line-height: 1; letter-spacing: -.065em; }
.home h1 em, .marketing-page h1 em, .marketing-page h2 em{ font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif; font-weight: 500; }.preference-row { display: flex; align-items: center; gap: 4px; min-height: 35px; margin: 0; border: 0; padding: 2px 0; }
.preference-row:first-of-type { padding-top: 8px; border-top: 1px solid var(--line); }
.preference-row > span { width: 82px; flex: 0 0 82px; padding: 0; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.preference-row button, .output-presets button, .explanation-levels button { flex: 0 0 auto; display: block; min-width: 0; border: 0; border-radius: 8px; padding: 6px 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.preference-row button:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.preference-row button[aria-pressed="true"] { border: 0; background: color-mix(in srgb, var(--lime) 19%, transparent); color: var(--ink); }
.preference-row .describe-button { margin-left: auto; color: var(--muted); font-weight: 500; }
.composer-actions { margin-top: 7px; }
.composer-tool { border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.composer-tool:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.composer-send button { width: 42px; height: 42px; border-radius: 12px; background: var(--forest); color: var(--lime); font-size: 22px; }
.composer-send button:hover { background: var(--pine); }.workspace-card { min-width: 0; border-radius: 15px; background: color-mix(in srgb, var(--surface) 63%, transparent); box-shadow: 0 8px 25px rgba(12, 30, 24, .04); }
.workspace-card > button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 17px 13px; border: 0; background: transparent; text-align: left; }
.workspace-card:hover { background: var(--surface); box-shadow: 0 17px 42px rgba(12, 30, 24, .08); transform: translateY(-2px); }
.workspace-card-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fffdf6; font: 700 10px/1 ui-monospace, monospace; }
.workspace-card div { min-width: 0; display: grid; gap: 4px; }
.workspace-card strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: 14px; white-space: nowrap; }
.workspace-card small { color: var(--muted); font-size: 11px; }
.open-arrow { color: var(--muted); font-size: 11px; font-weight: 650; }
.workspace-tags { display: flex !important; flex-flow: row wrap; gap: 5px !important; min-height: 37px; padding: 0 17px 14px 73px; }
.workspace-tags span { border-radius: 999px; padding: 4px 7px; background: color-mix(in srgb, var(--forest) 7%, transparent); color: var(--muted); font-size: 9px; }
.marketing-page { overflow: clip; }.lean-mark { width: 120px; height: 92px; margin-top: 12px; transform-origin: 50% 20%; animation: hammock-sway 4.8s var(--ease-settle) infinite alternate; }.studio-kit { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }.studio-kit i { width: 32px; height: 32px; border-radius: 50%; background: var(--swatch); }.studio-kit div { min-width: 0; display: grid; gap: 2px; }.studio-kit strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.studio-kit small { color: var(--muted); font-size: 9px; }.studio-kit button { border: 0; border-radius: 7px; padding: 5px 7px; background: transparent; color: var(--muted); font-size: 9px; }.studio-kit.active button:first-of-type { background: color-mix(in srgb, var(--lime) 18%, transparent); color: var(--ink); }.theme-segments { display: flex !important; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--paper-2) 72%, transparent); }.theme-segments button { border: 0; border-radius: 7px; padding: 6px 9px; background: transparent; color: var(--muted); font-size: 10px; }.theme-segments button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 3px 10px rgba(12, 30, 24, .08); }
.workspace { height: calc(100vh - 72px); grid-template-columns: minmax(340px, 27vw) minmax(0, 1fr); }.chat-welcome { background: var(--pine); }.chat-welcome h3, .chat-welcome p { color: #eef2e4; }
.message p { color: var(--ink-2); }.message > span { background: var(--surface); border-color: var(--line); }.message.assistant > span { background: var(--forest); color: #fffdf6; border-color: var(--forest); }
.artifact-stage { background: color-mix(in srgb, var(--paper-2) 76%, var(--surface)); }
.artifact-journey, .artifact-toolbar button, .artifact-design-controls select { border-color: var(--line); background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink); }
.artifact-flow-actions button { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); background: color-mix(in srgb, var(--teal) 8%, var(--surface)); color: var(--ink-2); }.loader-mark { width: 66px; height: 52px; color: var(--forest); }.stage-ticker { display: flex; gap: 7px; overflow: hidden; }.stage-ticker span { color: var(--faint); font: 11px ui-monospace, monospace; white-space: nowrap; }.stage-ticker span.active { color: var(--ink); }.stage-ticker span.done { color: var(--teal); }.artifact-resolving .artifact { animation: artifact-resolve var(--duration-narrative) var(--ease-settle) both; }

.drawer, .modal { background: var(--surface); color: var(--ink); }.brand-form input:not([type="checkbox"]), .brand-form textarea, .brand-form select, .modal input, .modal select { border-color: var(--line); background: var(--paper); color: var(--ink); }.connection-card.connected { background: color-mix(in srgb, var(--teal) 10%, var(--surface)); }

@keyframes hammock-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes artifact-resolve { from { opacity: .15; filter: blur(8px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }

@media (max-width: 1080px) {
  .periodic-table { min-width: 920px; }.framework-page { overflow-x: auto; }.framework-teaser { display: block; }.framework-teaser > header { margin-bottom: 48px; }.framework-teaser .periodic-table { min-width: 720px; }
  .recent-grid, .workspace-grid { grid-template-columns: repeat(2, 1fr); }.destination-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-layout { grid-template-columns: 1fr; }.studio-preview { min-height: auto; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 14px; }.wordmark { font-size: 25px; }.workspace-switcher { display: none; }.nav-button { display: none; }.guest-actions .nav-button { display: block; }.topbar-actions { margin-left: auto; }.view { min-height: calc(100vh - 64px); }
  .home { width: min(100% - 24px, 640px); padding-top: 46px; }.home-brand-mark { width: 75px; height: 62px; }.home h1 { font-size: clamp(42px, 13vw, 62px); letter-spacing: -.06em; }.home-lead { font-size: 15px; }
  .composer { padding: 15px; border-radius: 20px; }.composer textarea { min-height: 68px; font-size: 16px; }.preference-row { flex-wrap: wrap; }.preference-row > span { width: 100%; flex-basis: 100%; margin-top: 3px; }.preference-row .describe-button { margin-left: 0; }.examples { grid-template-columns: 1fr; }
  .destination-page, .marketing-section { width: min(100% - 28px, 680px); padding: 54px 0 78px; }.destination-header { margin-bottom: 32px; }.destination-header.row { align-items: start; flex-direction: column; }.destination-header h1 { font-size: 42px; }.destination-header p { font-size: 14px; }
  .recent-grid, .workspace-grid, .destination-grid { grid-template-columns: 1fr; }.destination-grid button { min-height: 120px; }
  .marketing-hero { min-height: 680px; padding-inline: 20px; }.marketing-hero h1 { font-size: clamp(54px, 18vw, 78px); }.marketing-hero > p { font-size: 15px; }.hero-actions { flex-direction: column; }.marketing-hero-mark { width: 130px; }.trust-strip { justify-content: flex-start; overflow-x: auto; }.trust-strip span { flex: none; }
  .how-grid { grid-template-columns: 1fr; }.how-grid article, .how-grid article + article { min-height: 220px; padding: 28px 0; border-left: 0; }.how-grid h3 { margin-top: 30px; }.worked-example { grid-template-columns: 1fr; }.worked-example > *, .worked-example > *:nth-child(3n), .worked-example > *:nth-child(n+5) { min-height: 190px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--pine) 25%, transparent); }.worked-example > *:last-child { border-bottom: 0; }.lineage-section > div { display: grid; gap: 8px; }.lineage-section i { transform: rotate(90deg); }.framework-teaser { width: calc(100% - 28px); overflow-x: auto; }.framework-teaser .periodic-table { min-width: 720px; }
  .settings-layout { grid-template-columns: 1fr; gap: 35px; }.settings-layout > nav { position: static; display: flex; overflow-x: auto; }.settings-layout > nav a { flex: none; }.setting-row { align-items: flex-start; }.theme-segments { flex-wrap: wrap; justify-content: end; }
  .studio-controls > section { padding: 17px; }.studio-preview { margin-inline: -14px; padding: 24px 14px; border-radius: 0; }.preview-slide { padding: 5%; }.preview-slide main { max-width: 90%; }
  .workspace { height: auto; min-height: calc(100vh - 64px); }.chat-panel { min-height: calc(72vh - 64px); }.workspace-view.with-artifact .chat-panel { min-height: 480px; }.character-loader { grid-template-columns: 55px minmax(0, 1fr) auto; }.loader-character { width: 55px; }.loader-mark { width: 52px; }.stage-ticker span { font-size: 10px; }
  .artifact-stage { padding: 12px; }.artifact-journey, .artifact-toolbar, .artifact { min-width: 760px; }
}

:root[data-reduce-motion="true"] *, :root[data-reduce-motion="true"] *::before, :root[data-reduce-motion="true"] *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }

/* Canonical mockup fidelity pass — structures and measurements mirror design/mockups/laezi-product.html. */
:root {
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --card-shadow: 0 26px 64px -34px rgba(12, 30, 24, .55);
  --soft-shadow: 0 16px 44px -26px rgba(12, 30, 24, .4);
}
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; }
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
.topbar { height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.topbar-brand { gap: 14px; }.wordmark { font-size: 19px; font-weight: 800; letter-spacing: -.05em; }.wordmark span { color: var(--lime-deep); }
.project-name { max-width: 300px; padding: 6px 9px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 800; }.project-name:hover { background: var(--surface); }
.topbar .nav-button { height: 34px; min-height: 34px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; }.topbar .nav-button:hover, .topbar .nav-button[aria-current="page"] { background: var(--surface); color: var(--ink); }
.topbar .icon-button { width: 34px; height: 34px; font-size: 18px; }.topbar .avatar, .av { position: relative; inset: auto; z-index: 1; width: 32px; min-width: 32px; max-width: 32px; height: 32px; min-height: 32px; max-height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--forest); color: #f3f7ea; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; }
.topbar, .page-top, .ws-top { max-width: 100vw; overflow: hidden; isolation: isolate; }
.view, .workspace-shell, .set-body, .studio-body, .ws-body { min-width: 0; }
.view { min-height: calc(100vh - 56px); }
body:is([data-page="marketing"],[data-page="dashboard"],[data-page="workspace"],[data-page="workspaces"],[data-page="frameworks"],[data-page="design-studio"],[data-page="settings"]) > .app > .topbar { display: none; }
body:is([data-page="marketing"],[data-page="dashboard"],[data-page="workspace"],[data-page="workspaces"],[data-page="frameworks"],[data-page="design-studio"],[data-page="settings"]) .view { min-height: 100vh; }

.apphome { min-height: calc(100vh - 56px); padding: clamp(30px, 4.5vw, 56px) 22px clamp(36px, 5vw, 60px); text-align: center; background: radial-gradient(90% 40% at 50% 60%, color-mix(in srgb, var(--lime) 8%, transparent), transparent 70%), radial-gradient(60% 40% at 82% 18%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 65%); }
.apphome .home-brand-mark { width: 52px; height: 52px; margin: 0 auto 20px; color: var(--ink); }
.eye2 { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.apphome h3 { margin: 12px 0 0; color: var(--ink); font: 500 clamp(34px, 5.5vw, 56px)/.98 var(--serif); letter-spacing: -.03em; }.apphome h3 em { font-style: italic; }
.apphome > .sub { max-width: 40ch; margin: 14px auto 0; color: var(--muted); font-size: 15px; }.composer { width: min(680px, 100%); margin: 30px auto 0; background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid color-mix(in srgb, #fff 45%, transparent); border-radius: 26px; padding: 24px 22px 16px; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--card-shadow); text-align: left; transition: border .2s, box-shadow .2s; backdrop-filter: blur(20px) saturate(1.4); }.composer:focus-within { border-color: color-mix(in srgb, var(--forest) 32%, var(--line)); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--card-shadow); transform: translateY(-2px); }.composer textarea { display: block; width: 100%; border: 0; outline: 0; background: none; resize: none; min-height: 54px; max-height: 160px; padding: 4px 4px 18px; font-size: 17px; line-height: 1.5; color: var(--ink); }.composer textarea::placeholder { color: var(--faint); }
.preference-row { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; border: 0; }.preference-row:first-of-type { padding-top: 14px; border-top: 1px solid var(--line); }
.preference-row > span { width: 74px; flex: 0 0 74px; padding: 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.preference-row button, .output-presets button, .explanation-levels button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 6px 11px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.preference-row button[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 24%, var(--surface)); color: var(--forest); font-weight: 700; }
.preference-row .describe-button { margin-left: 5px; border: 1px dashed var(--line-2); color: var(--ink-2); }
.composer-actions { margin-top: 4px; }.composer-tool { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; }.composer-tool:hover { background: var(--paper-2); }
.composer-send button { width: 44px; height: 44px; border-radius: 14px; background: var(--forest); color: var(--lime); font-size: 19px; }
.sugg2 { width: min(680px, 100%); margin: 16px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }.sugg2 button { display: grid; gap: 3px; padding: 14px 15px; border: 0; border-radius: 13px; background: none; text-align: left; }.sugg2 button:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }.sugg2 strong { font-size: 13px; }.sugg2 small { color: var(--muted); font-size: 11.5px; }
.fwlink { margin: 18px auto 0; text-align: center; }.fwlink button { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; }.fwlink button:hover { color: var(--ink); }.fwlink span { color: var(--lime-deep); }

.mk-nav, .page-top { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.mk-nav { --mk-nav-h: 64px; position: sticky; top: 0; z-index: 40; height: var(--mk-nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 26px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--lime) 16%, var(--line)); background: color-mix(in srgb, var(--paper) 74%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--lime) 8%, transparent) inset, 0 12px 30px -18px rgba(12,30,24,.24); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }.mk-nav-brand { justify-self: start; }.mk-nav .links { justify-self: center; }.mk-nav-auth { justify-self: end; }.mk-nav .links, .mk-nav-auth, .page-top > div, .page-brand, .page-brand nav { display: flex; align-items: center; gap: 6px; }.mk-nav .links a, .mk-nav .links > button:not(.cta), .page-brand nav button, .page-top .ghost { min-height: 34px; margin: 0; display: inline-flex; align-items: center; box-sizing: border-box; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13px/1 var(--sans); text-decoration: none; appearance: none; -webkit-appearance: none; vertical-align: middle; transition: background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }.mk-nav .links a:hover, .mk-nav .links > button:hover, .mk-nav .links a:focus-visible, .mk-nav .links > button:focus-visible, .page-brand nav button:hover { background: color-mix(in srgb, var(--lime) 12%, var(--surface) 70%); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime) 12%, transparent), 0 0 14px -4px color-mix(in srgb, var(--lime) 12%, transparent); }.mk-nav-auth .ghost { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }.mk-nav-auth .ghost:hover, .mk-nav-auth .ghost:focus-visible { background: color-mix(in srgb, var(--lime) 12%, var(--surface) 70%); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime) 12%, transparent), 0 0 14px -4px color-mix(in srgb, var(--lime) 12%, transparent); }
.cta { min-height: 36px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--forest); color: #f3f7ea; font-size: 13px; font-weight: 700; }.cta.big { min-height: 50px; padding: 0 26px; border-radius: 14px; font-size: 15px; }.cta.lime { background: var(--lime); color: #0c1e18; }
.mk-first-screen { min-height: calc(100svh - var(--mk-nav-h, 64px)); display: flex; flex-direction: column; }
.mk-hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(20px, 3.5vw, 44px) 22px clamp(30px, 4vw, 54px); background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--lime) 12%, transparent), transparent 70%); text-align: center; }.mk-hero .mark { width: 54px; height: 54px; margin: 0 auto 14px; }.mk-hero .eye { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }.mk-hero h1 { max-width: 16ch; margin: 16px auto 0; color: var(--ink); font: 500 clamp(40px, 7vw, 82px)/.98 var(--serif); letter-spacing: -.035em; }.mk-hero h1 em { font-style: italic; }.mk-hero h1 .hl { padding: 0 .05em; background: linear-gradient(to top, var(--lime) 40%, transparent 40%); }.mk-hero .lead { max-width: 52ch; margin: 22px auto 0; color: var(--ink-2); font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }.mk-hero .cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }.mk-hero .cta-secondary { min-height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out); }.mk-hero .cta-secondary:hover { border-color: var(--lime-deep); background: color-mix(in srgb, var(--lime) 10%, var(--surface)); }.mk-hero .cta-secondary:active { transform: scale(.97); }.mk-hero .trust { margin-top: 22px; color: var(--muted); font-size: 12.5px; }.mk-sec[id] { scroll-margin-top: 76px; }
.band { background: var(--pine); color: #eef3e2; }.mk-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; padding: 22px; color: #b9c8bf; font-size: 13px; }.mk-strip b { color: #f3f7ea; }
.mk-wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }.mk-sec { padding: clamp(46px, 7vw, 88px) 0; }.mk-sec .kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-align: center; text-transform: uppercase; }.mk-sec h2, .mk-final h2 { max-width: 20ch; margin: 12px auto 0; color: var(--ink); font: 500 clamp(28px, 4.4vw, 46px)/1.05 var(--serif); letter-spacing: -.02em; text-align: center; }.mk-sec .sub { max-width: 56ch; margin: 14px auto 0; color: var(--muted); font-size: 16px; text-align: center; }
.howlist { margin-top: 38px; border-top: 1px solid var(--line); }.howrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 26px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }.howrow .hn { color: var(--lime-deep); font: 500 34px/1 var(--serif); opacity: 0; transform: translateX(-10px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }.howrow .hc, .howrow .hex { opacity: 0; transform: translateY(12px); transition: opacity 800ms var(--ease-out) 180ms, transform 800ms var(--ease-out) 180ms; }.howrow.in-view .hn, .howrow.in-view .hc, .howrow.in-view .hex { opacity: 1; transform: none; }.howrow h3 { margin: 0 0 5px; font-size: 18px; }.howrow p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; }.howrow .hex { color: var(--faint); font: 11.5px var(--mono); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .howrow .hn, .howrow .hc, .howrow .hex { opacity: 1; transform: none; transition: none; } }
:root[data-reduce-motion="true"] .howrow .hn, :root[data-reduce-motion="true"] .howrow .hc, :root[data-reduce-motion="true"] .howrow .hex { opacity: 1; transform: none; transition: none; }.lean { margin: 36px auto 0; color: var(--ink); font: italic 500 clamp(22px, 3.2vw, 36px)/1.2 var(--serif); text-align: center; }.lean em { color: var(--lime-deep); }.lean-mark { width: 76px; height: 76px; margin: 18px auto 0; transform-origin: 50% 14%; animation: hammock-sway 5.2s ease-in-out infinite alternate; }
.example-band { background: var(--paper-2); }
.worked-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 22px auto 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }.worked-steps span { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }.worked-steps i { color: var(--lime-deep); font-size: 13px; font-style: normal; }
.worked { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 40px; }
.product-window { padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 24px 56px -20px rgba(12,30,24,.28); backdrop-filter: blur(18px) saturate(1.2); }
.product-window-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.product-window-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.product-window .ws-msgs .message { margin-bottom: 14px; }
.product-window .ws-msgs .message:last-child { margin-bottom: 0; }
.product-window .mini-open { display: inline-block; margin-top: 8px; color: var(--lime-deep); font-size: 12px; font-weight: 700; }
.pestel-preview-frame { position: relative; height: 400px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--card-shadow); background: var(--surface); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.pestel-preview-frame:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -22px rgba(12,30,24,.28), var(--card-shadow); }
.pestel-preview-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 68%, var(--surface) 100%), linear-gradient(to bottom, transparent 78%, var(--surface) 100%); }
.artifact.mk-artifact-preview { width: 900px; min-width: 900px; max-width: none; min-height: 0; margin: 0; padding: 20px 22px 16px; box-shadow: none; }
.mk-artifact-preview .artifact-header { padding-top: 16px; }
.mk-artifact-preview .artifact-header h1 { font-size: 26px; }
.pestel-preview-frame .pestel-grid .pestel-lane header h2 { max-width: none; margin: 3px 0 0; font-size: 11px; font-weight: 400; letter-spacing: normal; text-align: left; text-transform: none; color: inherit; }
.lineage-demo { display: flex; justify-content: center; margin-top: 32px; }
.lineage-demo .product-window { width: min(560px, 100%); text-align: center; }
.lineage-caption { max-width: 40ch; margin: 14px auto 0; color: var(--faint); font-size: 12px; text-align: center; }
.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 42px; }.flow span { color: var(--ink); font: 500 clamp(20px, 2.6vw, 30px) var(--serif); }.flow i { color: var(--lime-deep); font-size: 20px; font-style: normal; }.library-band { text-align: center; }.library-band .kicker { color: #9fb3a5; }.library-band h2 { color: #f3f7ea; }.library-band .sub { color: #c7d6cb; }.library-band .cta { margin-top: 26px; }
.pricing-band { scroll-margin-top: 18px; background: radial-gradient(70% 70% at 90% 10%, color-mix(in srgb, var(--lime) 9%, transparent), transparent 72%); }
.pricing-band h2 em { color: var(--lime-deep); font-style: italic; }
.pricing-ledger { width: min(1080px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 42px auto 0; align-items: stretch; }
.price-plan { min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 2.8vw, 32px); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 20px 54px rgba(12,30,24,.1), 0 0 0 1px rgba(12,30,24,.05); text-align: left; }
.price-individual { background: var(--pine); box-shadow: 0 16px 38px rgba(6,15,11,.2); color: #eef3e2; }
.price-teams { background: color-mix(in srgb, var(--paper-2) 70%, var(--surface)); box-shadow: none; border: 1.5px dashed var(--line-2); }
.price-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.plan-name { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.price-individual .plan-name { color: #9fb3a5; }
.price-plan h3 { max-width: 14ch; margin: 0; color: var(--ink); font: 500 clamp(19px, 2.2vw, 24px)/1.12 var(--serif); text-wrap: balance; }
.price-individual h3 { color: #f3f7ea; }
.price { flex: 0 0 auto; display: grid; justify-items: end; }
.price strong { color: var(--ink); font: 500 clamp(38px, 4.6vw, 52px)/.85 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.price-individual .price strong { color: var(--lime); }
.price-soon strong { font-size: clamp(20px, 2.2vw, 24px); color: var(--faint); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.price span, .price small { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.price-individual .price span, .price-individual .price small { color: #b9c8bf; }
.price small { margin-top: 2px; font-size: 9px; font-weight: 600; }
.plan-copy { min-height: 44px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.price-individual .plan-copy { color: #c7d6cb; }
.plan-features { display: grid; gap: 12px; margin: 22px 0 26px; padding: 21px 0 0; border-top: 1px solid var(--line); list-style: none; }
.price-individual .plan-features { border-color: rgba(238,243,226,.14); }
.plan-features li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 13px; line-height: 1.4; text-wrap: pretty; }
.plan-features li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--lime-deep); font-size: 12px; font-weight: 800; line-height: 1.4; }
.price-individual .plan-features li::before { color: var(--lime); }
.price-individual .plan-features li { color: #d7e1d8; }
.price-teams .plan-features li::before { color: var(--faint); }
.plan-features strong { color: var(--ink); font-weight: 800; }
.price-individual .plan-features strong { color: #f3f7ea; }
.soon-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--lime-deep); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.price-cta { width: 100%; min-height: 48px; margin-top: auto; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 13px; font-size: 14px; font-weight: 800; text-align: center; transition: color var(--duration-base), background var(--duration-base), transform var(--duration-instant) var(--ease-out), box-shadow var(--duration-base); }
.price-cta:active { transform: scale(.96); }
.price-cta-free { background: var(--forest); color: #f3f7ea; }
.price-cta-paid { background: var(--lime); color: #0c1e18; box-shadow: 0 9px 24px rgba(198,255,58,.14); }
.price-cta-soon { background: none; border: 1px solid var(--line-2); color: var(--faint); cursor: default; }
.pricing-reassurance { margin: 24px auto 0; color: var(--ink); font-size: 13px; font-weight: 800; text-align: center; }
.pricing-detail { max-width: 68ch; margin: 7px auto 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; text-align: center; text-wrap: pretty; }
.mk-final { padding: clamp(50px, 8vw, 100px) 22px clamp(40px, 6vw, 70px); background: radial-gradient(70% 80% at 50% 20%, color-mix(in srgb, var(--lime) 10%, transparent), transparent 70%); text-align: center; }.mk-final .mark { width: 52px; height: 52px; margin: 0 auto 20px; animation: hammock-sway 5.2s ease-in-out infinite alternate; transform-origin: 50% 14%; }.mk-final p { max-width: 44ch; margin: 16px auto 26px; color: var(--muted); }
.final-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 22px auto 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.final-recap li { display: flex; align-items: center; gap: 6px; }
.final-recap li::before { content: "✓"; color: var(--lime-deep); font-weight: 800; }
.final-recap b { color: var(--ink); font-weight: 800; }
.mk-foot { padding: 40px 26px 26px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 55%, transparent); color: var(--muted); font-size: 12.5px; }
.mk-foot-top { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.mk-foot-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 30ch; }
.mk-foot-brand svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--ink); }
.mk-foot-brand strong { display: block; color: var(--ink); font: 500 18px var(--serif); }
.mk-foot-brand strong span { color: var(--lime-deep); }
.mk-foot-brand p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.mk-foot-links, .mk-foot-trust { display: grid; gap: 9px; min-width: 160px; align-content: start; }
.mk-foot-h { color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mk-foot-links a, .mk-foot-links button { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-align: left; text-decoration: none; transition: color 160ms var(--ease-out); }
.mk-foot-links a:hover, .mk-foot-links button:hover { color: var(--ink); }
.mk-foot-trust p { max-width: 28ch; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mk-foot-bottom { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px; }

.page-top .page-brand { gap: 12px; }.page-top .page-brand strong { font-size: 13px; }.page-top .page-brand strong span { color: var(--faint); font-weight: 600; }.page-top .back-button { border: 0; background: none; color: var(--muted); font-size: 16px; font-weight: 700; }.mockup-page { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }.ov-body { padding: clamp(24px, 3.5vw, 40px); }.ov-greet { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }.ov-h { margin: 10px 0 22px; font: 500 clamp(28px, 4vw, 44px) var(--serif); letter-spacing: -.02em; }.ov-compose .composer { margin: 0; }.ov-compose .preference-row { display: none; }.ov-sec { margin: 34px 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.ov-recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.ov-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.ov-tile { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }.ov-tile:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }.ov-tile b { font-size: 13.5px; }.ov-tile small { color: var(--muted); font-size: 11px; }.ov-tile .go { color: var(--lime-deep); font-size: 12px; font-weight: 700; }
.wsp-body { padding: clamp(22px, 3vw, 32px); }.wsp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }.wsp-bar .t { font: 500 22px var(--serif); }.wsp-bar .t small { margin-left: 8px; color: var(--muted); font: 600 12px var(--sans); }.wsp-bar .r { display: flex; align-items: center; gap: 8px; }.search { min-width: 180px; height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 13px; }.wsp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.wcard { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--soft-shadow); color: var(--ink); text-align: left; }.wcard:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }.wcard .nm { font-size: 15px; font-weight: 800; }.wcard .mt { color: var(--muted); font-size: 11.5px; }.wcard .tags { display: flex; flex-wrap: wrap; gap: 6px; }.wcard .tags span { padding: 3px 8px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); font: 12px var(--serif); }.wcard .op { color: var(--lime-deep); font-size: 12px; font-weight: 700; }.wcard.new { align-content: center; justify-items: center; border-style: dashed; background: none; box-shadow: none; text-align: center; }.wcard.new .plus { font-size: 22px; }

.framework-page { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; padding: clamp(36px, 5vw, 64px) 0; }.screen-head { max-width: 60ch; margin-bottom: 26px; }.screen-head .tag { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }.screen-head .tag::before { content: ""; width: 22px; height: 3px; background: var(--lime); }.screen-head h2 { margin: 12px 0 0; font: 500 clamp(26px, 3.6vw, 40px)/1.05 var(--serif); letter-spacing: -.015em; }.screen-head p { max-width: 56ch; margin: 10px 0 0; color: var(--muted); font-size: 15px; }.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }.legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }.legend i { width: 13px; height: 13px; border-radius: 4px; }
.ptable { display: flex; align-items: start; gap: 10px; overflow-x: auto; padding-bottom: 12px; }.pcol { min-width: 150px; flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; }.pcol .ch { min-height: auto; display: grid; gap: 2px; margin: 0 0 2px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); }.pcol .ch b { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.pcol .ch small { color: var(--faint); font-size: 10px; }.tile { min-height: 0; display: block; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); text-align: left; }.tile:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }.tile .tn { position: static; color: inherit; font: 9px var(--mono); opacity: .55; }.tile .ts { display: block; margin-top: 1px; font: 600 24px/1 var(--serif); letter-spacing: 0; }.tile .tname { display: block; margin-top: 7px; color: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.25; opacity: .9; }
.family-diagnose .tile { background: color-mix(in srgb, var(--teal) 18%, var(--surface)); }.family-understand .tile { background: color-mix(in srgb, var(--cobalt) 15%, var(--surface)); }.family-synthesise .tile { background: color-mix(in srgb, var(--lime) 26%, var(--surface)); }.family-decide .tile { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); }.family-execute .tile { background: color-mix(in srgb, var(--clay) 16%, var(--surface)); }.family-deliver .tile { background: color-mix(in srgb, var(--forest) 13%, var(--surface)); }

.workspace-shell { height: 100vh; display: grid; grid-template-rows: 54px minmax(0, 1fr); }.ws-top { height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }.ws-top .l, .ws-top .r { min-width: 0; display: flex; align-items: center; gap: 10px; }.ws-top .r { justify-content: flex-end; gap: 6px; }.ws-top .bk { border: 0; background: none; color: var(--muted); font-size: 16px; font-weight: 700; }.wsname { overflow: hidden; font-size: 13.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.wsname .mut { color: var(--faint); font-weight: 600; }.lin { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--paper-2); }.lin button { padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; }.lin button.on { background: var(--surface); color: var(--ink); box-shadow: var(--soft-shadow); }.lin .add { color: var(--lime-deep); }.ws-top .ghost { height: 32px; padding: 0 10px; border: 0; background: none; color: var(--muted); }.ws-top .cta { min-height: 32px; }.ws-top .more-button { padding: 0 4px; }

.studio-body { min-height: calc(100vh - 56px); display: grid; grid-template-columns: 320px minmax(0, 1fr); }.studio-ctrl { display: grid; align-content: start; gap: 22px; overflow: auto; padding: 20px; border-right: 1px solid var(--line); background: var(--paper-2); }.sg h5 { margin: 0 0 10px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.drop { width: 100%; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; }.drop b { display: block; margin-top: 6px; color: var(--ink); font-size: 13px; }.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }.sw-row .sw { width: 38px; height: 38px; padding: 0; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; }.sw-row .sw.add { display: grid; place-items: center; border: 1px dashed var(--line-2); background: var(--surface); color: var(--muted); }.font-row { display: grid; gap: 8px; }.font-pick { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; }.font-pick .s { font: 16px var(--serif); }.studio-prev { display: grid; place-items: center; overflow: auto; padding: 26px; background: #e9ece6; }.slide { width: min(520px, 100%); aspect-ratio: 16/10; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; border-radius: var(--slide-radius); background: var(--slide-primary); box-shadow: var(--card-shadow); color: #eef3e2; font-family: var(--slide-body); }.slide header { display: flex; justify-content: space-between; align-items: center; }.slide .brandlogo { color: #fff; font-size: 18px; font-weight: 900; }.slide .num { color: rgba(255,255,255,.5); font: 11px var(--mono); }.slide h3 { margin: 0; color: #eef3e2; font: 500 30px/1.05 var(--slide-heading); }.slide .accent { width: 60px; height: 4px; margin: 14px 0; border-radius: 3px; background: var(--slide-accent); }.slide p { max-width: 42ch; margin: 0; color: rgba(238,243,226,.8); font-size: 13px; }.slide footer { color: rgba(255,255,255,.4); font-size: 10px; }.studio-note { margin-top: 12px; color: var(--faint); font-size: 11.5px; text-align: center; }

.set-body { min-height: calc(100vh - 56px); display: grid; grid-template-columns: 200px minmax(0, 1fr); }.set-nav { display: grid; align-content: start; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--paper-2); }.set-nav button { padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }.set-nav button.on { background: var(--surface); color: var(--ink); box-shadow: var(--soft-shadow); }.set-main { width: min(780px, 100%); padding: clamp(20px, 3vw, 32px); }.set-grp { margin-bottom: 30px; }.set-grp h4 { margin: 0 0 4px; font: 500 19px var(--serif); }.set-grp .gd { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }.set-row { width: 100%; min-height: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }.set-row .l b { font-size: 13.5px; }.set-row .l p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.set-val { color: var(--ink-2); font-size: 13px; font-weight: 600; }.segm { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper-2); }.segm button { padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12px; font-weight: 700; }.segm button.on { background: var(--surface); color: var(--ink); box-shadow: var(--soft-shadow); }.tog { position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); }.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform 200ms var(--ease-commit); }.tog.on { background: var(--forest); }.tog.on::after { background: var(--lime); transform: translateX(18px); }.pill-ok { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); color: var(--teal); font-size: 11px; font-weight: 800; }.provider-row { cursor: pointer; }

@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ws-stage, :root:not([data-theme]) .studio-prev { background: #0b1611; } }
:root[data-theme="dark"] .ws-stage, :root[data-theme="dark"] .studio-prev { background: #0b1611; }
@media (max-width: 820px) { .worked, .studio-body { grid-template-columns: 1fr; }.studio-ctrl { border-right: 0; border-bottom: 1px solid var(--line); }.ws-body { grid-template-columns: 1fr; }.ws-chat { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }.workspace-shell { height: auto; min-height: 100vh; }.ws-top { grid-template-columns: 1fr auto; }.ws-top .lin { grid-row: 2; grid-column: 1 / -1; justify-self: center; }.ws-top { height: auto; min-height: 54px; padding-block: 8px; }.ov-recent { grid-template-columns: 1fr; }.wsp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) { .pricing-ledger { grid-template-columns: 1fr; max-width: 480px; } }
@media (max-width: 720px) { .mk-nav { grid-template-columns: auto auto; justify-content: space-between; }.mk-nav .links, .page-brand nav { display: none; }.howrow { grid-template-columns: 48px 1fr; }.howrow .hex { grid-column: 2; }.set-body { grid-template-columns: 1fr; }.set-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }.ov-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sugg2, .wsp-grid { grid-template-columns: 1fr; }.preference-row > span { width: 100%; flex-basis: 100%; }.worked { grid-template-columns: 1fr; }.price-heading { align-items: end; }.price-plan { padding: 24px 20px; }.price strong { font-size: 48px; }.ws-top .wsname .mut, .ws-top .r .ghost { display: none; }.ws-top .lin { max-width: calc(100vw - 24px); overflow-x: auto; }.slide { padding: 24px; } }
.set-grp { scroll-margin-top: 72px; }

.ws-menu { position: relative; }
.ws-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ws-menu > summary::-webkit-details-marker { display: none; }
.ws-menu > summary:hover { background: var(--paper-2); color: var(--ink); }
.ws-menu[open] > summary { background: var(--paper-2); color: var(--ink); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.menu-pop button { padding: 9px 11px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 13px; text-align: left; }
.menu-pop button:hover { background: var(--paper-2); }
.menu-pop .danger-text { color: var(--clay); }


/* ============================================================================
   Workspace canvas + compact floating chat, with morph transitions
   (View Transitions API). Motion follows emil-design-eng / 12-principles:
   custom easings, transform+opacity only, scale-on-press, blur-masked morph.
   ============================================================================ */

/* -- the compact floating composer ("floatbar"): the chatbox everywhere -- */
.floatbar { position: relative; width: min(600px, 100%); display: grid; gap: 10px; padding: 15px 16px 12px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 20px 48px -14px rgba(12,30,24,.32), 0 4px 12px -6px rgba(12,30,24,.16); backdrop-filter: blur(22px) saturate(1.3); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out); }
/* on-brand lime underglow so the box reads as floating */
.floatbar::before { content: ""; position: absolute; inset: 14px 24px -16px; z-index: -1; border-radius: 40px; background: radial-gradient(58% 90% at 50% 100%, color-mix(in srgb, var(--lime) 42%, transparent), transparent 72%); filter: blur(28px); opacity: .45; transition: opacity 240ms var(--ease-out); pointer-events: none; }
.floatbar:focus-within { transform: translateY(-2px); border-color: color-mix(in srgb, var(--forest) 30%, var(--line)); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 28px 60px -14px rgba(12,30,24,.38), 0 6px 16px -6px rgba(12,30,24,.2); }
.floatbar:focus-within::before { opacity: .7; }
.floatbar-big { width: min(680px, 100%); padding: 20px 20px 14px; border-radius: 26px; }
.floatbar textarea { display: block; width: 100%; border: 0; outline: 0; background: none; resize: none; min-height: 28px; max-height: 200px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.floatbar-big textarea { min-height: 40px; font-size: 18px; }
.floatbar textarea::placeholder { color: var(--faint); }
.floatbar .ws-chip { justify-self: start; margin: 0 0 2px; }
.floatbar-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.floatbar-foot { display: flex; align-items: center; gap: 8px; }
.floatbar-tools { display: flex; gap: 2px; }
.composer-tool { height: 32px; padding: 0 11px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: background 160ms var(--ease-out), transform 140ms var(--ease-out); }
.composer-tool:hover { background: var(--paper-2); }
.composer-tool:active { transform: scale(.96); }
.floatbar-send { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--forest); color: var(--lime); font-size: 20px; transition: transform 150ms var(--ease-out), filter 150ms var(--ease-out); }
.floatbar-send:hover { filter: brightness(1.08); }
.floatbar-send:active { transform: scale(.92); }
.floatbar-send:disabled { opacity: .5; }

/* clean segmented tone controls */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--paper-2); }
.seg button { border: 0; border-radius: 9px; padding: 7px 12px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--soft-shadow); font-weight: 700; }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.seg button:active { transform: scale(.95); }

/* workspace chip */
.ws-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; transition: border-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.ws-chip:hover { border-color: var(--forest); color: var(--ink); }
.ws-chip:active { transform: scale(.97); }
.ws-chip .ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.ws-chip .caret { color: var(--faint); }

/* home hero: center the big floatbar */
.apphome .floatbar-big { margin: 26px auto 0; }

/* -- the workspace canvas -- */
.ws-canvas { position: relative; height: calc(100vh - 54px); overflow: hidden; background: var(--paper); }
.ws-canvas .ws-stage { position: absolute; inset: 0; overflow: auto; padding: 26px; background: #e9ece6; transition: left 300ms var(--ease-drawer); }
.ws-canvas.mode-idle .ws-stage, .ws-canvas.mode-busy .ws-stage { background: var(--paper); }
:root[data-theme="dark"] .ws-canvas.mode-built .ws-stage { background: #0b1611; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ws-canvas.mode-built .ws-stage { background: #0b1611; } }
.ws-canvas .ws-stage .artifact { min-width: 720px; max-width: 1100px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); }
.stage-toolbar { min-width: 720px; max-width: 1100px; margin: 0 auto 10px; display: flex; justify-content: flex-end; }
.stage-toolbar .artifact-design-controls { margin-left: auto; }
.canvas-rest { position: absolute; inset: 0; }
.canvas-building { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--muted); }
.canvas-building .laezi-mark { width: 84px; height: 66px; transform-origin: 50% 14%; animation: hammock-sway 4.6s ease-in-out infinite alternate; opacity: .5; }

/* idle: mark + heading + floating box, centered */
.ws-canvas.mode-idle, .ws-canvas.mode-busy { display: grid; place-items: center; }
.idle-stack { position: relative; z-index: 5; display: grid; justify-items: center; gap: 12px; width: min(640px, 92%); text-align: center; padding: 24px; }
.idle-mark .laezi-mark { width: 90px; height: 72px; transform-origin: 50% 14%; animation: hammock-sway 4.6s ease-in-out infinite alternate; }
.idle-title { margin: 4px 0 0; font: 500 clamp(30px, 4vw, 42px) var(--serif); letter-spacing: -.02em; color: var(--ink); }
.idle-title em { font-style: italic; }
.idle-sub { margin: 0 0 8px; max-width: 44ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.idle-stack .floatbar { width: min(600px, 100%); }

/* busy: the thinking pill */
.thinking { position: relative; z-index: 5; display: grid; justify-items: center; gap: 15px; width: min(380px, 90%); padding: 26px 26px 20px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(12,30,24,.34); backdrop-filter: blur(22px) saturate(1.3); }
.thinking::before { content: ""; position: absolute; inset: 16px 30px -18px; z-index: -1; border-radius: 44px; background: radial-gradient(58% 90% at 50% 100%, color-mix(in srgb, var(--lime) 46%, transparent), transparent 72%); filter: blur(30px); opacity: .5; }
.think-cloud { position: relative; padding: 9px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--soft-shadow); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.think-cloud::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg); background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.think-orb { display: flex; gap: 9px; }
.think-orb .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--forest); animation: think-bounce 1.15s var(--ease-in-out) infinite; }
.think-orb .dot:nth-child(2) { background: var(--teal); animation-delay: .15s; }
.think-orb .dot:nth-child(3) { background: var(--lime-deep); animation-delay: .3s; }
@keyframes think-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
.work-done { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 240px; }
.work-done li { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; transition: color 200ms var(--ease-out); }
.work-done li .tick { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: 9px; color: var(--teal); }
.work-done li.active { color: var(--ink); font-weight: 600; }
.work-done li.active .tick { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 30%, transparent); }
.work-done li.done { color: var(--ink-2); }
.work-done li.done .tick { background: var(--teal); border-color: var(--teal); color: #fff; animation: tick-pop 260ms var(--ease-commit) both; }
@keyframes tick-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.think-cancel { margin-top: 2px; border: 0; background: none; color: var(--muted); font-size: 11px; }
.think-cancel:hover { color: var(--ink); }

/* built: the docked conversation */
.chatdock { position: absolute; z-index: 20; display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--surface) 95%, transparent); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(12,30,24,.3); backdrop-filter: blur(22px) saturate(1.2); overflow: hidden; }
.ws-canvas.mode-built.dock-float .chatdock { left: 50%; bottom: 22px; transform: translateX(-50%); width: min(680px, 94%); max-height: min(60%, 540px); }
.ws-canvas.mode-built.dock-left .chatdock { left: 16px; top: 16px; bottom: 16px; width: 360px; }
.ws-canvas.mode-built.dock-left:not(.chat-hidden) .ws-stage { left: 392px; }
.ws-canvas.chat-hidden .chatdock { display: none; }
.chatdock-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.chatdock-bar .chatdock-title { flex: 1; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dock-toggle, .dock-hide { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; line-height: 1; transition: background 160ms var(--ease-out), transform 140ms var(--ease-out); }
.dock-toggle:hover, .dock-hide:hover { background: var(--paper-2); color: var(--ink); }
.dock-toggle:active, .dock-hide:active { transform: scale(.9); }
.chatdock-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px; display: grid; gap: 14px; align-content: start; }
.chatdock-composer { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--line); }
.chatdock-composer .floatbar { width: 100%; padding: 11px 12px; border-radius: 14px; box-shadow: none; backdrop-filter: none; background: var(--surface); border-color: var(--line-2); }
.chatdock-composer .floatbar::before { display: none; }
.chatdock-composer .floatbar:focus-within { transform: none; }
.chatdock-composer .floatbar textarea { min-height: 22px; font-size: 14px; }

/* messages */
.ws-msgs { display: grid; gap: 16px; align-content: start; }
.ws-msgs .message { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 5px; margin: 0; }
.ws-msgs .message > span { width: auto; height: auto; display: block; place-items: unset; border-radius: 0; background: none; border: 0; padding: 0; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ws-msgs .message.assistant > span { font-size: 0; }
.ws-msgs .message.assistant > span::after { content: "Laezi"; font-size: 10px; }
.ws-msgs .message p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.ws-msgs .message.user > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ws-msgs .message > div > button { margin-top: 6px; border: 0; background: none; color: var(--lime-deep); font-size: 12px; font-weight: 700; }
.follow-ups { display: flex; flex-wrap: wrap; gap: 6px; }
.follow-ups button { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; background: var(--surface); color: var(--ink-2); font-size: 12px; transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out); }
.follow-ups button:hover { border-color: var(--forest); }
.follow-ups button:active { transform: scale(.97); }
.clarify-chips button { border-style: dashed; color: var(--ink); }

/* reopen tab when hidden */
.chat-reopen { position: absolute; left: 18px; bottom: 18px; z-index: 21; display: none; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink); font-size: 12px; font-weight: 700; transition: transform 150ms var(--ease-out); }
.ws-canvas.chat-hidden .chat-reopen { display: inline-flex; }
.chat-reopen:active { transform: scale(.96); }
.chat-reopen .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); }
.chat-reopen .dot:nth-child(2) { background: var(--teal); }
.chat-reopen .dot:nth-child(3) { background: var(--lime-deep); }

/* -- staggered home enter -- */
@keyframes enter-rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.apphome > * { animation: enter-rise 460ms var(--ease-out) both; }
.apphome > *:nth-child(1) { animation-delay: 0ms; } .apphome > *:nth-child(2) { animation-delay: 45ms; }
.apphome > *:nth-child(3) { animation-delay: 90ms; } .apphome > *:nth-child(4) { animation-delay: 135ms; }
.apphome > *:nth-child(5) { animation-delay: 180ms; } .apphome > *:nth-child(6) { animation-delay: 225ms; }
.apphome > *:nth-child(7) { animation-delay: 270ms; }
.idle-stack > * { animation: enter-rise 440ms var(--ease-out) both; }
.idle-stack > *:nth-child(2) { animation-delay: 45ms; } .idle-stack > *:nth-child(3) { animation-delay: 90ms; } .idle-stack > *:nth-child(4) { animation-delay: 135ms; }

/* -- the morph: view transitions -- */
::view-transition-group(laezi-chat) { animation-duration: 460ms; animation-timing-function: var(--ease-drawer); }
::view-transition-old(laezi-chat) { animation: vt-fade-out 300ms var(--ease-out) both; }
::view-transition-new(laezi-chat) { animation: vt-fade-in 360ms var(--ease-out) both; }
::view-transition-group(laezi-stage) { animation-duration: 380ms; animation-timing-function: var(--ease-out); }
::view-transition-group(laezi-mark) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
@keyframes vt-fade-out { to { opacity: 0; filter: blur(3px); } }
@keyframes vt-fade-in { from { opacity: 0; filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 1ms !important; }
  .idle-mark .laezi-mark, .canvas-building .laezi-mark, .think-orb .dot, .apphome > *, .idle-stack > * { animation: none !important; }
}

/* -- responsive -- */
@media (max-width: 720px) {
  .ws-canvas.mode-built.dock-left .chatdock { left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 18px 18px 0 0; max-height: 62%; }
  .ws-canvas.mode-built.dock-left:not(.chat-hidden) .ws-stage { left: 0; }
  .ws-canvas.mode-built.dock-float .chatdock { width: calc(100% - 20px); }
  .ws-canvas .ws-stage .artifact { min-width: 0; }
}

/* ============================================================================
   Batch: ••• fix, simpler+wider chatbox, branded canvas, masonry, nav drawer, marquee
   ============================================================================ */

/* -- 1. the ••• (summary) focus + opaque header -- */
summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--forest) 45%, transparent); outline-offset: 2px; }
.ws-menu > summary { outline: none; }
.ws-menu > summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--forest) 45%, transparent); }
.ws-top { background: var(--paper); position: relative; z-index: 40; }

/* -- 2. simpler + wider chatbox -- */
.floatbar { width: min(720px, 100%); }
.floatbar-big { width: min(780px, 100%); }
.idle-stack { width: min(760px, 92%); }
.idle-stack .floatbar { width: min(720px, 100%); }
.floatbar-input { position: relative; display: flex; align-items: flex-start; gap: 2px; }
.floatbar-input textarea { flex: 1 1 auto; }
.caret-hint { flex: 0 0 auto; width: 2px; height: 24px; margin: 2px 2px 0 1px; border-radius: 2px; background: var(--forest); opacity: 0; }
.floatbar-input:not(:focus-within):has(textarea:placeholder-shown) .caret-hint { animation: caret-blink 1.5s steps(1) infinite; }
@keyframes caret-blink { 0%, 55% { opacity: .85; } 56%, 100% { opacity: 0; } }
.floatbar-foot { align-items: center; }
.mode-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; transition: border-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.mode-chip:hover { border-color: var(--forest); color: var(--ink); }
.mode-chip:active { transform: scale(.96); }
.mode-chip .caret { color: var(--faint); transition: transform 200ms var(--ease-out); }
.floatbar.options-open .mode-chip .caret { transform: rotate(180deg); }
.floatbar-options { display: grid; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); animation: opt-open 240ms var(--ease-out) both; }
@keyframes opt-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.opt-row { display: flex; align-items: center; gap: 12px; }
.opt-row .opt-label { flex: 0 0 78px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.floatbar-foot .floatbar-send { margin-left: 0; }
.floatbar-tools { margin-right: auto; }

/* -- 3. cool branded canvas background -- */
.ws-canvas.mode-idle::before, .ws-canvas.mode-busy::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 26% 30%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%),
    radial-gradient(44% 42% at 78% 26%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 68%),
    radial-gradient(60% 50% at 50% 108%, color-mix(in srgb, var(--forest) 12%, transparent), transparent 72%);
}
/* faint drifting hammock motif */
.ws-canvas.mode-idle::after, .ws-canvas.mode-busy::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 100 100'%3E%3Cpath d='M8 54 C 30 82, 70 82, 92 54' fill='none' stroke='%230c1e18' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 360px 360px; background-position: center;
  animation: canvas-drift 26s var(--ease-in-out) infinite alternate;
}
@keyframes canvas-drift { from { background-position: 46% 48%; } to { background-position: 54% 52%; } }
.idle-stack, .thinking { z-index: 5; }

/* -- 4. masonry (Pinterest) workspaces -- */
.wsp-grid { display: block; column-count: 3; column-gap: 14px; }
.wsp-grid > .wcard-wrap, .wsp-grid > .wcard.new { break-inside: avoid; width: 100%; margin: 0 0 14px; display: inline-block; }
.wsp-grid > .wcard-wrap { position: relative; }
.wcard-wrap > .wcard, .wsp-grid > .wcard.new { display: flex; flex-direction: column; gap: 8px; width: 100%; }
@supports (grid-template-rows: masonry) {
  .wsp-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: masonry; gap: 14px; column-count: auto; }
  .wsp-grid > .wcard-wrap, .wsp-grid > .wcard.new { margin: 0; }
}
.wcard .wcover { display: block; width: 100%; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 4px; }
.wcard .wcover-mark { position: absolute; left: 12px; bottom: 10px; font: 700 12px var(--mono); color: color-mix(in srgb, var(--ink) 70%, transparent); letter-spacing: .04em; }
.wcard-del { position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--clay); font-size: 17px; line-height: 1; opacity: 0; box-shadow: var(--soft-shadow); backdrop-filter: blur(6px); transition: opacity 160ms var(--ease-out), transform 140ms var(--ease-out), background 160ms; }
.wcard-wrap:hover .wcard-del, .wcard-del:focus-visible { opacity: 1; }
.wcard-del:hover { background: var(--surface); }
.wcard-del:active { transform: scale(.9); }
@media (max-width: 820px) { .wsp-grid { column-count: 2; } @supports (grid-template-rows: masonry) { .wsp-grid { grid-template-columns: repeat(2, 1fr); } } }
@media (max-width: 560px) { .wsp-grid { column-count: 1; } @supports (grid-template-rows: masonry) { .wsp-grid { grid-template-columns: 1fr; } } }

/* -- 5. hamburger + left nav drawer -- */
.hamburger { width: 34px; height: 34px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 9px; background: none; transition: background 160ms var(--ease-out), transform 140ms var(--ease-out); }
.hamburger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: background 160ms; }
.hamburger:hover { background: var(--paper-2); }
.hamburger:active { transform: scale(.92); }
.drawer.left { left: 0; right: auto; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(19,39,33,.16); }
.drawer.left.open { transform: translateX(0); }
.nav-drawer { width: min(320px, 88vw); display: flex; flex-direction: column; }
.nav-drawer-links { display: grid; gap: 3px; margin-top: 10px; }
.nav-drawer-links button { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; transition: background 160ms var(--ease-out), transform 120ms var(--ease-out); }
.nav-drawer-links button:hover { background: var(--paper-2); }
.nav-drawer-links button:active { transform: scale(.98); }
.nav-drawer-links .ni { width: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.nav-drawer-new { margin-top: auto; }

/* -- 6. marquee -- */
.marquee { margin-top: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: marquee-scroll 95s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .mq-item { font: 500 20px var(--serif); color: var(--ink-2); }
.marquee .mq-dot { color: var(--lime-deep); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .caret-hint { animation: none !important; opacity: .6; } .ws-canvas.mode-idle::after, .ws-canvas.mode-busy::after { animation: none; } }
:root[data-reduce-motion="true"] .marquee-track { animation: none; }

/* ============================================================================
   Workspace switcher dropdown, framework intake, ChatGPT-clean home
   ============================================================================ */

/* -- clean, centered home / intake (focus on the box, no noise) -- */
.apphome.real-apphome, .apphome.intake { min-height: calc(100vh - 76px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 22px 80px; text-align: center; }
.apphome.real-apphome h3, .apphome.intake h3 { margin: 0; font: 500 clamp(30px, 4.4vw, 46px) var(--serif); letter-spacing: -.02em; color: var(--ink); }
.apphome .quiet-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2px; }
.apphome .quiet-suggest button { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.apphome .quiet-suggest button:hover { border-color: var(--forest); color: var(--ink); }
.apphome .quiet-suggest button:active { transform: scale(.97); }

/* -- framework intake -- */
.intake-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lime) 16%, var(--surface)); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.intake-badge i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font: 700 10px var(--mono); font-style: normal; color: var(--forest); }
.apphome.intake .sub { max-width: 46ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.intake-back { margin-top: 4px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.intake-back:hover { color: var(--ink); }

/* -- workspace switcher dropdown (replaces the dotted chip) -- */
.ws-switch { position: relative; align-self: flex-start; margin-bottom: 12px; }
.ws-switch > summary { list-style: none; cursor: pointer; }
.ws-switch > summary::-webkit-details-marker { display: none; }
.ws-switch .ws-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: border-color 160ms var(--ease-out); }
.ws-switch[open] .ws-chip, .ws-switch .ws-chip:hover { border-color: var(--forest); color: var(--ink); }
.ws-switch .ws-chip .caret { color: var(--faint); transition: transform 200ms var(--ease-out); }
.ws-switch[open] .ws-chip .caret { transform: rotate(180deg); }
.ws-switch-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; max-height: 340px; overflow: auto; display: grid; gap: 1px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); animation: opt-open 200ms var(--ease-out) both; }
.ws-switch-head { padding: 5px 9px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ws-switch-pop button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 140ms var(--ease-out); }
.ws-switch-pop button:hover { background: var(--paper-2); }
.ws-switch-pop button.on { color: var(--forest); font-weight: 700; }
.ws-switch-pop button.lime-text { color: var(--lime-deep); font-weight: 700; }
.ws-switch-sep { height: 1px; margin: 4px 2px; background: var(--line); }
.ws-switch-empty { padding: 8px 10px; color: var(--muted); font-size: 12.5px; }

/* -- drag-and-drop file overlay -- */
.drop-overlay { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 24px; background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(6px); }
body.dropping .drop-overlay { display: grid; animation: fade-rise 160ms var(--ease-out) both; }
.drop-card { display: grid; justify-items: center; gap: 10px; width: min(520px, 86vw); padding: 44px; border: 2px dashed color-mix(in srgb, var(--forest) 45%, var(--line)); border-radius: 26px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--card-shadow); text-align: center; pointer-events: none; }
.drop-card .laezi-mark { width: 72px; height: 58px; color: var(--forest); transform-origin: 50% 14%; animation: hammock-sway 4.6s ease-in-out infinite alternate; }
.drop-card strong { font: 500 24px var(--serif); color: var(--ink); }
.drop-card span { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .drop-card .laezi-mark { animation: none; } }
