:root {
  color-scheme: light;
  --paper: #eee9df;
  --surface: #faf8f3;
  --ink: #161817;
  --muted: #686a63;
  --line: rgba(22, 24, 23, .15);
  --coral: #ff6b5f;
  --sidebar-width: 272px;
  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; }
body { margin: 0; }
button, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--coral); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.55; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; background: var(--ink); color: var(--surface); padding: 14px; }
.skip-link:focus { top: 12px; }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; transition: grid-template-columns .22s ease; }
.sidebar { position: sticky; top: 0; height: 100svh; min-width: 0; display: flex; flex-direction: column; padding: 29px 18px 0; overflow: hidden; border-right: 1px solid var(--line); transition: opacity .18s, visibility .18s; }
.brand { display: flex; align-items: center; gap: 9px; margin: 0 12px 36px; font-size: 21px; font-weight: 850; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 21px; font-weight: 500; }
.brand-caption { margin-left: auto; font: 9px ui-monospace, monospace; letter-spacing: .06em; color: var(--muted); }
.project-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: 0 8px 32px; }
.project-icon { width: 37px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 7px; }
.project-identity { min-width: 0; }
.project-identity strong { display: block; font-size: 14px; letter-spacing: -.2px; }
.project-identity > span { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.demo-label { margin-left: 48px; margin-top: -3px; font: 9px ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); }
.nav-label { margin: 0 12px 12px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.nav-item { min-height: 46px; margin-bottom: 4px; display: flex; align-items: center; padding: 0 13px; gap: 13px; font-size: 13px; border-radius: 5px; transition: background .18s, color .18s; white-space: nowrap; }
.nav-item:hover { background: #e3ded4; }
.nav-item[aria-current="page"] { background: var(--ink); color: var(--surface); }
.nav-item[aria-current="page"]::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); margin-left: auto; }
.nav-item .external { margin-left: auto; width: 15px; height: 15px; color: var(--muted); }
.nav-divider { margin: 25px 12px; border-top: 1px solid var(--line); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 21px 8px; margin-top: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.prototype-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.version { margin-left: auto; font: 9px ui-monospace, monospace; }
.main-shell { min-width: 0; background: var(--surface); }
.topbar { height: 73px; display: flex; align-items: center; gap: 18px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 0; border-radius: 4px; }
.icon-button:hover { background: var(--paper); }
.breadcrumbs { display: flex; align-items: center; gap: 15px; font-size: 11px; color: var(--muted); }
.breadcrumbs strong { font-weight: 550; color: var(--ink); }
.breadcrumb-slash { opacity: .5; }
.workspace-label { margin-left: auto; font: 9px ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); }
.user-avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 10px; font-weight: 600; margin-left: 6px; }
.view { animation: view-enter .25s ease both; }
.project-view { max-width: 1240px; margin: 0 auto; padding: 49px 58px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.eyebrow, .section-number, .mini-label { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sample-label { border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; font-size: 9px; color: var(--muted); white-space: nowrap; }
.project-view h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.065em; font-weight: 740; }
.title-dot { color: var(--coral); }
.project-lead { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.project-facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 25px; margin: 34px 0 0; padding: 23px 0; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.project-facts dd { margin: 0; font-size: 12px; font-weight: 550; line-height: 1.5; }
.phase-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin: 0 6px 1px 0; }
.project-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding: 36px 0 39px; }
.section-number { display: block; font-size: 9px; margin-bottom: 15px; }
.project-details h2, .section-heading h2 { font-size: 19px; letter-spacing: -.6px; font-weight: 650; line-height: 1.3; }
.summary-section > p { margin-top: 16px; font-size: 13px; line-height: 1.85; color: #595c55; }
.project-goal { padding-left: 17px; border-left: 2px solid var(--coral); margin-top: 25px; }
.project-goal .mini-label { color: var(--ink); font-size: 9px; font-weight: 600; }
.project-goal p { font-size: 12px; line-height: 1.75; margin-top: 8px; }
.next-steps { border-left: 1px solid var(--line); padding-left: 34px; }
.step-list { list-style: none; padding: 0; margin: 23px 0 0; }
.step-list li { display: flex; align-items: flex-start; gap: 13px; position: relative; padding-bottom: 25px; }
.step-list li:last-child { padding-bottom: 0; }
.step-list li:not(:last-child)::before { content: ''; position: absolute; top: 26px; bottom: 0; left: 11px; border-left: 1px solid var(--line); }
.step-marker { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--muted); font: 10px ui-monospace, monospace; }
.step-marker.current { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.step-list h3 { font-size: 12px; font-weight: 600; margin: 3px 0 7px; }
.step-list p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.step-status { display: inline-block; font-size: 9px; font-weight: 600; margin-top: 9px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading > span { font-size: 10px; color: var(--muted); }
.app-list { border-top: 1px solid var(--line); }
.app-link { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 19px 0; transition: background .18s, padding .18s; }
.app-link:hover { background: #eee9df80; padding-inline: 12px; }
.app-icon { width: 35px; height: 35px; display: grid; place-items: center; background: var(--paper); border-radius: 5px; flex-shrink: 0; }
.app-link h3 { font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.app-link p { font-size: 11px; line-height: 1.5; color: var(--muted); }
.app-type { margin-left: auto; font-size: 9px; color: var(--muted); white-space: nowrap; padding-left: 15px; }
.link-arrow { margin-left: 14px; width: 18px; transition: transform .18s; }
.app-link:hover .link-arrow { transform: translateX(3px); }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 27px 0; color: var(--muted); font-size: 9px; }
.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.sidebar-collapsed .sidebar { visibility: hidden; opacity: 0; }
.sidebar-backdrop { display: none; }
.mobile-close { display: none; }
.sidebar > * { flex-shrink: 0; }
.sidebar { overflow-y: auto; }
/* Only the conversation scrolls; the composer remains visible. */
.chat-view { height: calc(100svh - 73px); min-height: 440px; display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 22px 36px; flex-shrink: 0; }
.chat-header h1 { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.chat-header p { margin-top: 5px; font-size: 10px; color: var(--muted); }
.conversation-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.conversation { width: min(100%, 800px); margin: 0 auto; padding: 30px 30px 40px; }
.conversation-date { font: 9px ui-monospace, monospace; letter-spacing: .06em; color: var(--muted); text-align: center; margin-bottom: 33px; }
.message-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.user-message { max-width: 82%; margin-left: auto; margin-bottom: 35px; }
.user-message .message-meta { justify-content: flex-end; }
.message-avatar { display: grid; place-items: center; width: 25px; height: 25px; background: var(--paper); border-radius: 50%; font-size: 9px; }
.message-bubble { padding: 17px 20px; background: var(--paper); border-radius: 10px 0 10px 10px; font-size: 13px; line-height: 1.8; }
.assistant-mark { width: 27px; height: 27px; display: grid; place-items: center; background: var(--coral); border-radius: 50%; font-size: 20px; font-weight: 400; }
.message-role { font-size: 10px; color: var(--muted); font-weight: 400; }
.assistant-body { padding-left: 37px; font-size: 13px; line-height: 1.85; }
.assistant-body h2 { margin: 22px 0 10px; font-size: 13px; font-weight: 650; }
.assistant-body ol { margin: 0 0 18px; padding-left: 19px; }
.assistant-body li { padding-left: 5px; margin-bottom: 9px; }
.chat-resource { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 20px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; transition: background .18s; }
.chat-resource:hover { background: var(--paper); }
.chat-resource .icon { width: 16px; height: 16px; }
.composer-area { width: min(100%, 800px); padding: 14px 30px 19px; margin-inline: auto; flex-shrink: 0; }
.composer { border: 1px solid #ccc9bf; border-radius: 9px; padding: 16px 16px 12px; background: #fffefa; transition: border-color .18s, box-shadow .18s; }
.composer:focus-within { border-color: #8d8e84; box-shadow: 0 0 0 3px #eee9df; }
.composer textarea { display: block; border: 0; padding: 0; width: 100%; resize: none; background: transparent; font-size: 13px; line-height: 1.6; min-height: 55px; }
.composer textarea:focus-visible { outline: none; }
.composer textarea::placeholder { color: var(--muted); }
.composer-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.composer-context { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; }
.composer-context .icon { width: 14px; height: 14px; }
.send-button { width: 33px; height: 33px; border: 0; border-radius: 5px; background: var(--paper); color: #898a80; display: grid; place-items: center; }
#chat-note { text-align: center; font-size: 9px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.noscript-note { margin: 0; padding: 20px; background: var(--coral); }
@keyframes view-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (min-width: 1550px) {
  .project-view { padding-top: 65px; }
  .project-details { padding-block: 46px; }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 248px; }
  .sidebar { padding-inline: 13px; }
  .brand-caption { display: none; }
  .project-view { padding: 36px 34px 0; }
  .project-details { gap: 28px; }
  .next-steps { padding-left: 25px; }
  .workspace-label { display: none; }
  .user-avatar { margin-left: auto; }
}
@media (max-width: 900px) {
  .project-facts { gap: 16px; grid-template-columns: 1fr 1fr; }
  .project-facts > div:last-child { grid-column: 1 / -1; }
  .project-details { grid-template-columns: 1fr; gap: 30px; }
  .next-steps { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .app-type { display: none; }
  .link-arrow { margin-left: auto; }
  .section-heading > span { display: none; }
}
@media (max-width: 700px) {
  .workspace, .sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 0; left: 0; width: 272px; z-index: 30; background: var(--paper); padding-inline: 18px; transform: translateX(-100%); visibility: hidden; opacity: 1; transition: transform .22s, visibility .22s; }
  .brand-caption { display: none; }
  .mobile-close { display: grid; position: absolute; top: 24px; right: 16px; font-size: 25px; font-weight: 300; }
  .mobile-nav-open .sidebar { transform: translateX(0); visibility: visible; opacity: 1; }
  .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: #16181755; }
  body:has(.mobile-nav-open) { overflow: hidden; }
  .topbar { height: 64px; padding-inline: 16px; gap: 11px; }
  .breadcrumbs { font-size: 10px; gap: 10px; }
  .project-view { padding: 29px 24px 0; }
  .page-heading { margin-bottom: 20px; }
  .project-view h1 { font-size: clamp(34px, 9vw, 54px); }
  .project-lead { font-size: 14px; max-width: 270px; }
  .project-facts { margin-top: 26px; }
  .project-facts dd { font-size: 11px; }
  .project-details { padding-block: 29px; }
  .summary-section > p { font-size: 13px; }
  .app-link { gap: 12px; padding-block: 17px; }
  .app-link p { font-size: 10px; }
  .app-icon { width: 32px; height: 34px; }
  .page-footer { flex-direction: column; gap: 8px; }
  .chat-view { height: calc(100svh - 64px); min-height: 400px; }
  .chat-header { padding: 18px 24px; }
  .conversation { padding: 25px 22px 28px; }
  .conversation-date { margin-bottom: 25px; font-size: 8px; }
  .user-message { max-width: 91%; margin-bottom: 27px; }
  .message-bubble { font-size: 12px; padding: 14px 16px; }
  .assistant-body { padding-left: 0; font-size: 12px; }
  .composer-area { padding: 10px 16px 14px; }
  .composer textarea { font-size: 16px; }
  #chat-note { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Dashboard and project knowledge share the existing SHAPE palette. */
.dashboard-view, .knowledge-view { max-width: 1320px; margin-inline: auto; padding: 38px 48px 0; }
.dashboard-view h1, .knowledge-view > .knowledge-heading h1 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.055em; line-height: 1.15; font-weight: 740; }
.view-intro { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.dashboard-view .eyebrow, .knowledge-view .eyebrow { font-size: 12px; }
.dashboard-view .sample-label, .knowledge-view .sample-label { font-size: 12px; }
.phase-section { margin: 30px 0 32px; padding: 24px 0; border-block: 1px solid var(--line); }
.phase-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.phase-heading .eyebrow { display: block; margin-bottom: 9px; }
.phase-heading h2 { font-size: 25px; font-weight: 650; letter-spacing: -.7px; }
.quiet-link { display: inline-flex; align-items: center; gap: 13px; padding: 7px 0; background: none; border: 0; font-size: 14px; font-weight: 550; line-height: 1.5; text-align: left; text-underline-offset: 5px; }
.quiet-link:hover { text-decoration: underline; }
.phase-track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; padding: 0; margin: 26px 0 0; }
.phase-track li { border-top: 3px solid #ddd9cf; padding-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.phase-track li span { font: 12px ui-monospace, monospace; margin-right: 9px; }
.phase-track .completed { border-color: var(--ink); }
.phase-track .active { border-color: var(--coral); color: var(--ink); font-weight: 650; }
.action-section { margin-bottom: 35px; }
.dashboard-view .section-heading h2 { font-size: 22px; }
.dashboard-view .section-heading > span { font-size: 12px; }
.action-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 19px; }
.priority-action { background: var(--paper); padding: 25px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.priority-action h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.7px; margin: 15px 0 12px; font-weight: 650; }
.priority-action p, .secondary-actions p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.action-button { display: inline-flex; gap: 15px; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: 12px 17px; min-height: 44px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 600; border-radius: 4px; transition: background .18s, transform .18s; white-space: nowrap; }
.action-button:hover { transform: translateY(-1px); background: #343733; }
.action-button.accent { background: var(--coral); border-color: var(--coral); color: var(--ink); margin-top: 24px; }
.action-button.accent:hover { background: #ff7e73; }
.action-note { font-size: 12px; color: var(--muted); margin-top: 9px; }
.secondary-actions article { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; }
.secondary-actions article:first-child { padding-top: 5px; }
.secondary-actions article + article { border-top: 1px solid var(--line); }
.action-index { color: var(--muted); font: 12px ui-monospace, monospace; padding-top: 4px; }
.secondary-actions h3 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; margin-bottom: 8px; }
.secondary-actions .quiet-link { margin-top: 8px; }
.dashboard-view .app-link { padding-block: 17px; }
.dashboard-view .app-link h3 { font-size: 16px; }
.dashboard-view .app-link p { font-size: 14px; }
.dashboard-view .app-type, .dashboard-view .page-footer { font-size: 12px; }
.knowledge-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.document-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 15px; border-block: 1px solid var(--line); }
.document-name { display: flex; align-items: center; gap: 9px; font: 13px ui-monospace, monospace; }
.document-modes { display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 5px; margin-left: auto; }
.document-modes button { background: none; border: 0; padding: 9px 12px; border-radius: 3px; font-size: 13px; min-height: 36px; }
.document-modes button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.document-modes button:hover:not([aria-pressed="true"]) { background: var(--paper); }
.download-button { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 10px; font-size: 13px; min-height: 44px; }
.download-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.document-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12px; color: var(--muted); padding: 15px 0 22px; line-height: 1.5; }
#knowledge-save-status { color: #385248; }
#knowledge-save-status.save-error { color: #9c352b; }
.document-workspace { border: 1px solid var(--line); border-radius: 5px; min-height: 440px; background: #fffefa; }
.markdown-preview { padding: 35px 45px 50px; max-width: 840px; margin-inline: auto; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.markdown-preview h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 17px; }
.markdown-preview h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.03em; margin: 30px 0 12px; }
.markdown-preview h3, .markdown-preview h4, .markdown-preview h5, .markdown-preview h6 { font-size: 18px; margin: 24px 0 10px; }
.markdown-preview p { margin-bottom: 17px; }
.markdown-preview blockquote { margin: 0 0 22px; border-left: 3px solid var(--coral); padding-left: 18px; color: var(--muted); }
.markdown-preview ul, .markdown-preview ol { padding-left: 23px; margin: 13px 0 20px; }
.markdown-preview li { margin: 5px 0; }
.markdown-preview input[type="checkbox"] { margin-right: 7px; accent-color: var(--ink); }
.markdown-preview a { text-decoration: underline; text-underline-offset: 4px; }
.markdown-preview a:hover { color: #a83e32; }
.markdown-preview code { font: .9em ui-monospace, monospace; background: var(--paper); padding: 2px 5px; border-radius: 3px; }
.markdown-preview pre { background: var(--paper); padding: 18px; overflow-x: auto; border-radius: 4px; max-width: 100%; }
.markdown-preview pre code { padding: 0; line-height: 1.65; }
.markdown-preview table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.markdown-preview th, .markdown-preview td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.markdown-preview hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.markdown-editor-pane { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: #f2eee5; border-radius: 5px; }
.markdown-editor-pane label { font-size: 12px; font-weight: 600; margin-bottom: 15px; }
#markdown-editor { width: 100%; min-height: 560px; flex: 1; border: 0; resize: vertical; background: transparent; font: 14px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
#markdown-editor:focus-visible { outline-offset: 7px; outline: 1px solid #77786e; }
#markdown-help { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 18px; }
.document-workspace[data-mode="split"] { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.document-workspace[data-mode="split"] .markdown-preview { width: 100%; min-width: 0; padding: 25px; max-height: 750px; overflow-y: auto; }
.document-workspace[data-mode="split"] .markdown-editor-pane { border-right: 1px solid var(--line); }
.document-workspace[data-mode="split"] .markdown-preview h1 { font-size: 27px; }
.document-workspace[data-mode="split"] .markdown-preview h2 { font-size: 21px; }
.document-footer { display: flex; justify-content: space-between; padding: 17px 0 30px; font-size: 12px; color: var(--muted); }
.empty-document { color: var(--muted); }
@media (max-width: 1150px) {
  .dashboard-view, .knowledge-view { padding: 32px 30px 0; }
  .phase-track li { font-size: 12px; }
  .phase-track li span { display: block; margin-bottom: 7px; }
  .action-layout { gap: 23px; }
  .priority-action { padding: 23px; }
  .document-name { width: 100%; }
  .document-modes { margin-left: 0; }
  .download-button { margin-left: auto; }
}
@media (max-width: 900px) {
  .action-layout { grid-template-columns: 1fr; }
  .secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
  .secondary-actions article, .secondary-actions article:first-child { padding-top: 10px; }
  .secondary-actions article + article { border-top: 0; }
  .phase-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .document-workspace[data-mode="split"] { grid-template-columns: 1fr; }
  .document-workspace[data-mode="split"] .markdown-editor-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .document-workspace[data-mode="split"] #markdown-editor { min-height: 350px; }
}
@media (max-width: 700px) {
  .dashboard-view, .knowledge-view { padding: 28px 22px 0; }
  .dashboard-view .page-heading, .knowledge-view .page-heading { gap: 8px; }
  .phase-heading h2 { font-size: 23px; }
  .phase-track { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .priority-action { padding: 23px; }
  .priority-action h3 { font-size: 24px; }
  .secondary-actions { grid-template-columns: 1fr; gap: 0; }
  .secondary-actions article + article { border-top: 1px solid var(--line); padding-top: 20px; }
  .dashboard-view .app-link p { font-size: 13px; }
  .knowledge-heading { flex-wrap: wrap; gap: 20px; }
  .knowledge-heading .action-button { padding: 10px 15px; }
  .document-status { flex-direction: column; }
  .document-toolbar { gap: 12px; }
  .document-modes { width: 100%; }
  .document-modes button { flex: 1; }
  .download-button { margin-left: 0; padding-left: 0; }
  .markdown-preview { padding: 25px 20px 35px; }
  .markdown-preview h1 { font-size: 28px; }
  .markdown-editor-pane { padding: 20px; }
  #markdown-editor { font-size: 16px; min-height: 440px; }
  .document-workspace[data-mode="split"] .markdown-preview { padding: 25px 20px; }
}

/* Supplied SHAPE wordmark, with its original proportions and color. */
.brand-logo { display: block; width: 160px; max-width: 100%; height: auto; flex-shrink: 0; }
