:root {
  --ink: #f2f4ee;
  --ink-soft: #c5cdc3;
  --ink-dim: #89958a;
  --night: #101713;
  --night-soft: #151e19;
  --night-card: #19231d;
  --line-dark: rgba(223, 234, 219, .13);
  --paper: #f2f3ee;
  --paper-deep: #e9ebe4;
  --white: #fbfcf9;
  --forest: #17251c;
  --forest-2: #244031;
  --green: #b9e86d;
  --green-deep: #6c9134;
  --muted: #6e786e;
  --line: #dde1d8;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  --body: 'DM Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: Manrope, 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* Shared brand and controls */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.brand-dark { color: var(--forest); }
.brand-mark { width: 25px; height: 25px; border: 1px solid rgba(185, 232, 109, .5); border-radius: 8px; display: inline-flex; align-items: end; justify-content: center; gap: 2px; padding: 5px; background: rgba(185, 232, 109, .1); }
.brand-mark i { width: 3px; border-radius: 4px; background: var(--green); display: block; }
.brand-mark i:nth-child(1) { height: 7px; opacity: .65; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 9px; opacity: .82; }
.brand-dark .brand-mark { border-color: rgba(36, 64, 49, .2); background: var(--forest); }
.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 12px; border-radius: 7px; }
.button-primary { background: var(--green); color: #182319; }
.button-primary:hover { background: #c9f281; }
.button-light { background: var(--ink); color: var(--forest); }
.button-light:hover { background: var(--green); }
.button-dark { background: var(--forest); color: white; }
.button-dark:hover { background: var(--forest-2); }
.button-outline { border-color: var(--line); background: transparent; color: var(--forest); }
.button-outline:hover { border-color: #a7b39f; background: rgba(255, 255, 255, .56); }
.button-full { width: 100%; }
.text-link { color: var(--ink-soft); display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--green); }
.eyebrow { color: var(--green); font: 500 10px/1.4 var(--mono); letter-spacing: .14em; }
.eyebrow-muted { color: #7d897d; }

/* Marketing page */
.marketing-page { background: var(--night); color: var(--ink); }
.section-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { height: 76px; width: min(1320px, calc(100% - 64px)); margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-dark); }
.site-nav { display: flex; gap: 34px; align-items: center; margin-left: 40px; }
.site-nav a { color: #aeb8ac; font-size: 12px; transition: color .15s ease; }
.site-nav a:hover { color: var(--green); }
.hero { display: grid; grid-template-columns: minmax(340px, .91fr) minmax(550px, 1.09fr); align-items: center; gap: 54px; padding-top: 76px; padding-bottom: 86px; }
.hero-copy { padding: 0 0 10px 3px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(185, 232, 109, .7); }
.hero h1 { max-width: 580px; margin: 0; color: #f3f5ef; font: 600 clamp(48px, 6vw, 76px)/1.03 var(--display); letter-spacing: -.075em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lede { max-width: 490px; margin: 24px 0 0; color: #aab5a9; font-size: 16px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 31px; }
.hero-note { display: flex; gap: 9px; align-items: center; margin-top: 33px; color: #778378; font: 10px var(--mono); }
.status-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-visual { min-height: 378px; padding: 21px 21px 14px; border: 1px solid rgba(216, 230, 209, .14); border-radius: 12px; background: linear-gradient(143deg, #18211b, #131a16 70%); box-shadow: 0 24px 90px rgba(0, 0, 0, .18); overflow: hidden; }
.visual-topline, .visual-bottomline { display: flex; justify-content: space-between; color: #809080; font: 9px var(--mono); letter-spacing: .1em; }
.live-indicator { color: #a8cb71; letter-spacing: .035em; }
.memory-flow { min-height: 291px; display: grid; grid-template-columns: 1fr 15px 1.16fr 15px 1fr; gap: 11px; align-items: center; }
.mini-label { display: block; margin-bottom: 13px; color: #829084; font: 9px var(--mono); letter-spacing: .08em; }
.chat-bubble { border-radius: 8px; padding: 12px 11px; font-size: 10px; line-height: 1.55; }
.chat-user { border: 1px solid rgba(185, 232, 109, .17); background: rgba(185, 232, 109, .09); color: #e5eedb; }
.chat-agent { margin-top: 8px; border: 1px solid var(--line-dark); background: #1a241e; color: #a7b2a5; }
.source-caption { margin-top: 13px; display: flex; align-items: center; gap: 6px; color: #829084; font-size: 8px; }
.source-glyph { color: var(--green); font-size: 13px; }
.flow-arrow { color: #809179; font-size: 14px; text-align: center; }
.memory-sample { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 8px 7px; border: 1px solid var(--line-dark); border-radius: 7px; background: rgba(255, 255, 255, .025); }
.memory-sample-active { border-color: rgba(185, 232, 109, .34); background: rgba(185, 232, 109, .075); }
.memory-icon { width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center; font: 10px var(--mono); }
.icon-preference { background: rgba(185, 232, 109, .14); color: var(--green); }
.icon-project { background: rgba(116, 180, 205, .15); color: #90c9df; }
.icon-decision { background: rgba(199, 157, 224, .16); color: #ca9ddd; }
.memory-sample b, .memory-sample small { display: block; }
.memory-sample b { color: #e0e7dc; font-size: 9px; font-weight: 600; }
.memory-sample small { margin-top: 3px; color: #849083; font-size: 8px; }
.memory-check { margin-left: auto; color: var(--green); font-size: 12px; }
.pack-title { margin: 3px 0 11px; color: #eef3e9; font-size: 10px; font-weight: 600; }
.pack-spark { margin-right: 4px; color: var(--green); }
.pack-line { display: flex; gap: 6px; margin: 8px 0; color: #afbdab; font-size: 8px; line-height: 1.45; }
.pack-line i { width: 4px; height: 4px; flex: 0 0 4px; margin-top: 3px; border-radius: 50%; background: var(--green); }
.pack-line.muted { color: #718073; }
.pack-line.muted i { background: #68756a; }
.pack-meter { height: 3px; margin-top: 20px; border-radius: 4px; background: #29352c; }
.pack-meter span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.pack-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #718073; font: 7px var(--mono); }
.pack-foot b { color: #afd66d; font-weight: 400; }
.visual-bottomline { justify-content: center; gap: 14px; padding-top: 15px; border-top: 1px solid var(--line-dark); font-size: 8px; }
.visual-bottomline b { color: var(--green); font-weight: 400; }
.thesis-strip { border-block: 1px solid var(--line-dark); background: #131a15; }
.thesis-inner { padding-block: 57px 60px; display: grid; grid-template-columns: .7fr 1.45fr .9fr; gap: 35px; align-items: start; }
.thesis-inner .eyebrow { margin: 7px 0; }
.thesis { margin: 0; color: var(--ink); font: 500 clamp(23px, 2.5vw, 34px)/1.25 var(--display); letter-spacing: -.045em; }
.thesis span { color: var(--green); }
.thesis-support { margin: 4px 0 0; color: #8c998d; font-size: 12px; line-height: 1.75; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-block: 85px 100px; }
.pillar-card { position: relative; min-height: 250px; padding: 27px 26px 24px; border: 1px solid var(--line-dark); border-radius: 9px; background: linear-gradient(150deg, #17201a, #131a16); }
.pillar-number { position: absolute; top: 27px; right: 26px; color: #68766a; font: 10px var(--mono); }
.pillar-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(185, 232, 109, .22); border-radius: 10px; background: rgba(185, 232, 109, .075); }
.pillar-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--green); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card h2 { margin: 28px 0 10px; color: #edf2ea; font: 600 19px var(--display); letter-spacing: -.04em; }
.pillar-card p { margin: 0; max-width: 300px; color: #8d998d; font-size: 12px; line-height: 1.7; }
.pillar-caption { display: block; margin-top: 23px; color: #7d8b7d; font: 8px var(--mono); letter-spacing: .11em; }
.workflow-section { border-block: 1px solid var(--line-dark); background: #131a15; }
.workflow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-block: 86px 93px; }
.workflow-intro .eyebrow { margin: 0 0 20px; }
.workflow-intro h2, .builder-grid h2 { margin: 0; color: #f0f3ec; font: 600 clamp(32px, 4vw, 48px)/1.1 var(--display); letter-spacing: -.065em; }
.workflow-intro > p:not(.eyebrow) { max-width: 350px; margin: 17px 0 25px; color: #97a397; font-size: 13px; line-height: 1.7; }
.workflow-intro .text-link { color: var(--green); font-size: 12px; }
.workflow-steps { border-top: 1px solid var(--line-dark); }
.workflow-step { min-height: 76px; display: grid; grid-template-columns: 43px 1fr 25px; gap: 13px; align-items: center; border-bottom: 1px solid var(--line-dark); }
.workflow-step > span:first-child { color: var(--green); font: 10px var(--mono); }
.workflow-step h3 { margin: 0 0 4px; color: #e4ebe1; font-size: 13px; font-weight: 600; }
.workflow-step p { margin: 0; color: #89968a; font-size: 11px; line-height: 1.55; }
.step-symbol { color: #82907f; font-size: 17px; text-align: right; }
.builder-section { padding-block: 85px 92px; }
.builder-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; }
.builder-grid .eyebrow { margin: 0 0 19px; }
.builder-grid h2 { max-width: 500px; }
.builder-copy > p { max-width: 525px; margin: 2px 0 22px; color: #9ba79a; font-size: 13px; line-height: 1.8; }
.builder-points { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.builder-points span { padding: 8px 9px; border: 1px solid var(--line-dark); border-radius: 5px; color: #c4cec0; font-size: 9px; }
.builder-points b { margin-right: 6px; color: var(--green); font: 9px var(--mono); }
.builder-copy .prototype-note { margin: 0; color: #758276; font-size: 10px; }
.closing-section { padding-block: 0 63px; }
.closing-card { position: relative; min-height: 240px; padding: 42px 52px; border: 1px solid rgba(185, 232, 109, .23); border-radius: 12px; background: radial-gradient(ellipse at 93% 30%, rgba(185, 232, 109, .13), transparent 30%), linear-gradient(111deg, #1a281f, #17211b); display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.closing-card > div:first-child { position: relative; z-index: 1; }
.closing-card .eyebrow { margin: 0 0 15px; }
.closing-card h2 { max-width: 520px; margin: 0; color: #f1f5ec; font: 600 clamp(29px, 3.4vw, 42px)/1.13 var(--display); letter-spacing: -.06em; }
.closing-card p:not(.eyebrow) { margin: 12px 0 0; color: #9eaa9d; font-size: 12px; }
.closing-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; margin-left: 35px; }
.closing-actions .text-link { color: #b3c0ae; font-size: 11px; }
.closing-orbit { position: absolute; right: -90px; width: 315px; height: 315px; border: 1px solid rgba(185, 232, 109, .09); border-radius: 50%; }
.orbit-one { top: -170px; }
.orbit-two { top: -112px; right: -32px; width: 198px; height: 198px; }
.site-footer { min-height: 83px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-dark); color: #758176; font-size: 10px; }
.site-footer .brand { font-size: 14px; }
.site-footer .brand-mark { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; color: #aab5a9; }
.footer-links a:hover, .editorial-main a:hover { color: var(--green); }

/* Public architecture and privacy pages */
.editorial-main { width: min(940px, calc(100% - 64px)); margin-inline: auto; padding: 78px 0 104px; }
.editorial-hero { max-width: 790px; padding-bottom: 51px; border-bottom: 1px solid var(--line-dark); }
.editorial-hero .eyebrow { margin: 0 0 19px; }
.editorial-hero h1 { margin: 0; color: #f3f5ef; font: 600 clamp(42px, 6vw, 68px)/1.04 var(--display); letter-spacing: -.07em; }
.editorial-hero h1 em { color: var(--green); font-style: normal; }
.editorial-lede { max-width: 690px; margin: 22px 0 0; color: #aab5a9; font-size: 16px; line-height: 1.75; }
.editorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 26px; }
.editorial-actions > span, .policy-date { color: #7e8c7f; font-size: 11px; }
.editorial-section { padding: 49px 0; border-bottom: 1px solid var(--line-dark); }
.editorial-section > .eyebrow { margin: 0 0 15px; }
.editorial-section h2 { margin: 0 0 17px; color: #edf2ea; font: 600 clamp(24px, 3.4vw, 34px)/1.18 var(--display); letter-spacing: -.045em; }
.editorial-section p { max-width: 780px; margin: 13px 0; color: #a1ada0; font-size: 13px; line-height: 1.8; }
.editorial-section a { color: #c3e98c; text-decoration: underline; text-decoration-color: rgba(195, 233, 140, .38); text-underline-offset: 3px; }
.editorial-section code { padding: 2px 5px; border: 1px solid rgba(223, 234, 219, .13); border-radius: 4px; color: #dce8d3; font: 11px var(--mono); overflow-wrap: anywhere; }
.architecture-flow { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; gap: 9px; align-items: stretch; margin: 27px 0 22px; }
.architecture-flow article { min-width: 0; min-height: 138px; padding: 15px 13px; border: 1px solid var(--line-dark); border-radius: 7px; background: #151e18; }
.architecture-flow article > span, .architecture-flow article b, .architecture-flow article small { display: block; }
.architecture-flow article > span { color: var(--green); font: 8px/1.5 var(--mono); letter-spacing: .06em; }
.architecture-flow article b { margin-top: 15px; color: #e7eee2; font-size: 12px; line-height: 1.4; }
.architecture-flow article small { margin-top: 7px; color: #89968a; font-size: 10px; line-height: 1.6; }
.architecture-arrow { align-self: center; color: #90a087; text-align: center; }
.editorial-callout { margin-top: 23px; padding: 16px 18px; border-left: 2px solid var(--green); background: #151e18; color: #a7b3a5; font-size: 12px; line-height: 1.8; }
.editorial-callout b { color: #dbe8d3; }
.editorial-steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: public-steps; border-top: 1px solid var(--line-dark); }
.editorial-steps li { counter-increment: public-steps; display: grid; grid-template-columns: minmax(145px, .34fr) 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line-dark); color: #a1ada0; font-size: 12px; line-height: 1.7; }
.editorial-steps li b { color: #e4ebe1; font-size: 12px; }
.editorial-steps li b::before { content: "0" counter(public-steps) " / "; margin-right: 5px; color: var(--green); font: 9px var(--mono); }
.editorial-note { color: #7f8c80 !important; font-size: 11px !important; }
.local-setup pre { max-width: 760px; margin: 20px 0; padding: 17px 19px; overflow: auto; border: 1px solid var(--line-dark); border-radius: 7px; background: #0c120e; color: #deead6; font: 12px/1.8 var(--mono); }
.local-setup pre code { padding: 0; border: 0; font: inherit; }
.editorial-list { max-width: 790px; margin: 17px 0; padding-left: 20px; color: #a1ada0; font-size: 12px; line-height: 1.85; }
.editorial-list li { padding-left: 5px; margin: 7px 0; }
.editorial-links { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 25px !important; }
.privacy-main { max-width: 850px; }
.privacy-main .editorial-hero { padding-bottom: 37px; }
.privacy-main .policy-date { margin-top: 14px; }
.policy-section { padding-block: 34px; }
.policy-section h2 { font-size: 22px; }
.policy-section strong { color: #e7eee2; }
.workbench-demo-notice { width: min(1560px, calc(100% - 32px)); margin: 13px auto 0; padding: 10px 13px; border: 1px solid #d9e2ce; border-radius: 6px; background: #e8efdc; color: #55664e; font-size: 10px; line-height: 1.55; }
.workbench-demo-notice[hidden] { display: none; }
.workbench-footer { min-height: 47px; padding: 9px 20px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px 19px; border-top: 1px solid var(--line); color: #778276; font-size: 9px; }
.workbench-footer a { color: #52664d; text-decoration: underline; text-underline-offset: 2px; }

/* Workbench application */
.workbench-page { min-height: 100vh; color: var(--forest); background: var(--paper); }
.app-header { height: 65px; position: sticky; top: 0; z-index: 10; padding: 0 27px; display: flex; align-items: center; gap: 29px; border-bottom: 1px solid var(--line); background: rgba(248, 249, 245, .96); backdrop-filter: blur(14px); }
.app-header .brand { font-size: 15px; }
.app-header .brand-mark { width: 23px; height: 23px; }
.app-breadcrumb { display: flex; gap: 11px; align-items: center; color: #627064; font-size: 11px; }
.breadcrumb-slash { color: #a5aea1; }
.prototype-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; padding: 5px 7px; border: 1px solid #d8e0d0; border-radius: 4px; color: #718266; font: 8px var(--mono); letter-spacing: .06em; }
.prototype-badge i { width: 5px; height: 5px; border-radius: 50%; background: #8ab04d; }
.app-header-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.app-header .button { min-height: 32px; font-size: 10px; }
.import-button { cursor: pointer; }
.icon-link { width: 31px; height: 31px; display: grid; place-items: center; margin-left: 3px; border-radius: 6px; color: #627064; font-size: 15px; }
.icon-link:hover { background: #e8ece4; }
.app-frame { width: min(1600px, 100%); min-height: calc(100vh - 65px); margin: 0 auto; display: grid; grid-template-columns: 216px minmax(0, 1fr) 326px; }
.app-sidebar { padding: 23px 13px 17px; border-right: 1px solid var(--line); background: #edf0e9; display: flex; flex-direction: column; }
.workspace-label { min-height: 49px; margin: 0 5px 26px; padding: 6px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe4da; border-radius: 7px; background: rgba(255,255,255,.48); }
.workspace-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 6px; background: #dce9cc; color: #536b3b; font: 600 11px var(--mono); }
.workspace-label b, .workspace-label small { display: block; }
.workspace-label b { color: #324336; font-size: 10px; }
.workspace-label small { margin-top: 3px; color: #879184; font-size: 8px; }
.chevron { margin-left: auto; color: #8b9488; font-size: 13px; }
.sidebar-heading { margin: 0 8px 8px; color: #99a294; font: 8px var(--mono); letter-spacing: .12em; }
.sidebar-heading-spaced { margin-top: 28px; }
.sidebar-link, .type-link { width: 100%; min-height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 5px; background: transparent; color: #677369; text-align: left; font-size: 10px; }
.sidebar-link:hover, .type-link:hover { background: #e3e8df; color: #354738; }
.sidebar-link.is-active { background: #dfe8d7; color: #324b35; font-weight: 700; }
.sidebar-symbol { width: 15px; color: #81907e; text-align: center; font-size: 14px; }
.sidebar-count { margin-left: auto; color: #89958a; font: 9px var(--mono); }
.type-link { min-height: 29px; gap: 9px; padding-left: 11px; font-size: 9px; }
.type-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-preference { background: #88a94e; }.dot-project { background: #619ab0; }.dot-decision { background: #a177be; }.dot-person { background: #c28a5a; }.dot-context { background: #5e8d82; }
.sidebar-bottom { margin-top: auto; padding: 12px 9px 2px; display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid #dce1d8; }
.local-lock { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 5px; background: #e0e8d9; color: #6d8850; font-size: 13px; }
.sidebar-bottom b, .sidebar-bottom small { display: block; }
.sidebar-bottom b { color: #59675b; font-size: 9px; }
.sidebar-bottom small { margin-top: 4px; color: #8d988b; font-size: 8px; line-height: 1.45; }
.library-area { min-width: 0; padding: 36px 27px 29px; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.library-heading .eyebrow { margin: 0 0 8px; font-size: 8px; }
.library-heading h1 { margin: 0; color: #203328; font: 700 27px/1.2 var(--display); letter-spacing: -.055em; }
.heading-period { color: #9bb86a; }
.library-subtitle { margin: 7px 0 0; color: #7c877d; font-size: 10px; }
.library-heading .button { min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 10px; white-space: nowrap; }
.plus { margin-right: 1px; font-size: 16px; font-weight: 400; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 23px; }
.metric-card { min-height: 81px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.58); }
.metric-card > span { display: block; color: #8a9588; font: 7px var(--mono); letter-spacing: .09em; }
.metric-card > b { display: block; margin-top: 8px; color: #2e4334; font: 600 20px/1 var(--display); letter-spacing: -.04em; }
.metric-card > small { display: block; margin-top: 5px; color: #98a095; font-size: 8px; }
.metric-card .metric-unit { display: inline; margin: 0; color: #859084; font: 9px var(--body); letter-spacing: 0; }
.metric-card-accent { background: #e9efdf; border-color: #dce5cf; }
.metric-card-accent > b { font-size: 15px; }
.ready-dot { width: 6px; height: 6px; display: inline-block; vertical-align: 2px; margin-left: 2px; border-radius: 50%; background: #7da746; }
.library-toolbar { display: flex; gap: 10px; margin-top: 24px; }
.search-field { min-width: 0; height: 37px; flex: 1; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: #f9faf6; }
.search-field:focus-within { border-color: #9eb485; box-shadow: 0 0 0 2px rgba(119, 154, 82, .1); }
.search-field svg { width: 14px; height: 14px; fill: none; stroke: #8c9889; stroke-width: 1.7; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #35493a; font-size: 9px; }
.search-field input::placeholder { color: #a1aaa0; }
.search-field kbd { padding: 3px 5px; border: 1px solid #e1e5dd; border-radius: 3px; color: #909b8e; font: 8px var(--mono); }
.sort-control { height: 37px; padding: 0 9px; display: flex; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 6px; color: #9aa399; font-size: 8px; }
.sort-control select { max-width: 102px; border: 0; outline: 0; background: transparent; color: #57685b; font-size: 8px; }
.filter-row { min-height: 45px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); }
.filter-chip { height: 25px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #7f8a7f; font-size: 8px; }
.filter-chip:hover { color: #39513c; }
.filter-chip.is-active { border-color: #d7e2cd; background: #e6eddc; color: #526d43; }
.filter-chip span { margin-left: 4px; color: #99a590; font: 8px var(--mono); }
.selection-status { margin-left: auto; color: #94a093; font-size: 8px; }
.memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.memory-card { min-width: 0; min-height: 164px; position: relative; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.68); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.memory-card:hover { transform: translateY(-1px); border-color: #c1ceba; box-shadow: 0 6px 17px rgba(49, 73, 52, .055); }
.memory-card.is-selected { border-color: #96b56a; background: #fbfcf6; box-shadow: 0 0 0 2px rgba(137, 172, 89, .1); }
.memory-card-top { display: flex; align-items: center; gap: 6px; }
.memory-kind-label { display: flex; align-items: center; gap: 5px; color: #7c897b; font: 7px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.memory-kind-label .type-dot { width: 6px; height: 6px; }
.memory-card-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.select-memory { width: 13px; height: 13px; margin: 0 3px 0 0; accent-color: #698f3e; }
.card-icon-button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #98a294; font-size: 12px; }
.card-icon-button:hover, .card-icon-button.is-on { background: #edf2e7; color: #739246; }
.memory-card h3 { margin: 10px 0 6px; color: #344639; font: 600 11px/1.35 var(--display); letter-spacing: -.015em; }
.memory-card-content { min-height: 33px; margin: 0; color: #7c887c; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.memory-tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.memory-tag { padding: 3px 5px; border-radius: 3px; background: #edf0e9; color: #829080; font-size: 7px; }
.memory-card-footer { min-height: 26px; display: flex; justify-content: space-between; align-items: end; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #e9ece6; color: #9aa396; font-size: 7px; }
.memory-card-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memory-actions { display: flex; gap: 3px; flex: 0 0 auto; }
.memory-actions button { padding: 1px 3px; border: 0; background: transparent; color: #71836e; font-size: 7px; }
.memory-actions button:hover { color: #365a33; text-decoration: underline; }
.empty-state { padding: 65px 15px; text-align: center; }
.empty-state > span { width: 40px; height: 40px; display: grid; place-items: center; margin: auto; border-radius: 12px; background: #e6ebdf; color: #789052; font-size: 20px; }
.empty-state h2 { margin: 15px 0 5px; color: #334738; font: 600 16px var(--display); }
.empty-state p { margin: 0 0 16px; color: #829082; font-size: 10px; }
.empty-state .button { min-height: 32px; font-size: 9px; }
.library-footnote { display: flex; align-items: flex-start; gap: 7px; margin-top: 17px; color: #9aa498; font-size: 8px; line-height: 1.5; }
.footnote-mark { width: 13px; height: 13px; display: grid; flex: 0 0 13px; place-items: center; border: 1px solid #cbd4c5; border-radius: 50%; color: #8a9986; font: 8px Georgia; }
.context-builder { min-width: 0; padding: 29px 18px 20px; border-left: 1px solid var(--line); background: #f8f9f5; }
.context-head { display: flex; justify-content: space-between; align-items: flex-start; }
.context-head .eyebrow { margin: 0 0 7px; font-size: 7px; }
.context-head h2 { margin: 0; color: #2b4032; font: 700 16px var(--display); letter-spacing: -.04em; }
.context-spark { color: #739746; font-size: 18px; }
.context-intro { margin: 11px 0 19px; color: #879286; font-size: 9px; line-height: 1.65; }
.field-label { display: block; margin: 14px 0 7px; color: #899487; font: 8px var(--mono); letter-spacing: .07em; }
.context-builder textarea, .form-input { width: 100%; border: 1px solid #dce2d8; border-radius: 5px; outline: 0; background: #fff; color: #46594a; font-size: 9px; }
.context-builder textarea { resize: vertical; min-height: 63px; padding: 8px 9px; line-height: 1.5; }
.context-builder textarea:focus, .form-input:focus { border-color: #9eb485; box-shadow: 0 0 0 2px rgba(119, 154, 82, .09); }
.budget-head { display: flex; justify-content: space-between; align-items: center; }
.budget-head .field-label { margin-bottom: 2px; }
.budget-head b { color: #587348; font: 9px var(--mono); }
.budget-slider { width: 100%; height: 14px; margin: 10px 0 0; accent-color: #789a4c; }
.budget-scale { display: flex; justify-content: space-between; margin-top: -1px; color: #9da69b; font: 7px var(--mono); }
.context-selection { min-height: 30px; margin-top: 11px; display: flex; align-items: center; gap: 6px; color: #879386; font-size: 8px; }
.selection-icon { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: #ebefe6; color: #738c56; font-size: 10px; }
.context-builder .button { min-height: 36px; margin-top: 6px; font-size: 9px; }
.context-output { min-height: 176px; margin-top: 14px; padding: 11px; border: 1px solid #dfe4dc; border-radius: 6px; background: #fff; }
.output-placeholder { min-height: 152px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.output-placeholder-icon { width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 8px; background: #eef2e8; color: #78944e; font-size: 14px; }
.output-placeholder b { color: #647366; font-size: 9px; font-weight: 600; }
.output-placeholder p { max-width: 210px; margin: 6px 0 0; color: #a0a99e; font-size: 8px; line-height: 1.55; }
.output-summary { display: flex; justify-content: space-between; margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid #e9ede7; color: #899688; font: 7px var(--mono); }
.output-summary b { color: #708c4d; font-weight: 500; }
.output-text { max-height: 210px; overflow: auto; color: #596b5c; font: 8px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.output-sources { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.output-source { padding: 3px 5px; border-radius: 3px; background: #eff3e9; color: #74846c; font-size: 7px; }
.context-actions { display: flex; justify-content: space-between; margin-top: 7px; }
.context-actions[hidden] { display: none; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: #6b8650; font-size: 8px; }
.text-button:hover { color: #385b36; text-decoration: underline; }
.context-disclaimer { display: flex; gap: 6px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #e1e6dd; color: #9ba599; font-size: 7px; line-height: 1.5; }
.context-disclaimer span { color: #7b9459; font-size: 11px; }

/* Local-first chat and provider handoff */
.app-mode-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 25px; }
.mode-link { min-height: 34px; }
.library-nav-group { display: contents; }
.chat-sidebar[hidden], .chat-area[hidden] { display: none; }
.chat-sidebar { min-height: 0; flex: 1; }
.chat-sidebar-heading { margin: 5px 6px 9px; display: flex; justify-content: space-between; align-items: center; color: #99a294; font: 8px var(--mono); letter-spacing: .08em; }
.chat-sidebar-heading .text-button { margin-right: 3px; font-size: 8px; }
.chat-thread-list { display: grid; gap: 3px; max-height: calc(100vh - 225px); overflow: auto; }
.chat-thread-button { min-width: 0; padding: 8px; overflow: hidden; border: 0; border-radius: 5px; background: transparent; color: #677369; text-align: left; text-overflow: ellipsis; white-space: nowrap; font: 9px var(--body); }
.chat-thread-button:hover, .chat-thread-button.is-active { background: #e3e8df; color: #354738; }
.app-frame.is-chat { grid-template-columns: 216px minmax(0, 1fr); }
.app-frame.is-chat > .library-area, .app-frame.is-chat > .context-builder { display: none; }
.app-frame.is-chat > .app-sidebar .library-nav-group, .app-frame.is-chat > .app-sidebar .sidebar-bottom { display: none; }
.app-frame.is-chat > .app-sidebar .app-mode-nav { margin-bottom: 17px; }
.app-frame.is-chat > .app-sidebar .chat-sidebar { display: block; }
.chat-area { min-width: 0; min-height: calc(100vh - 65px); grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 304px; background: #f5f6f1; }
.chat-main-column { min-width: 0; min-height: calc(100vh - 65px); padding: 25px clamp(17px, 3vw, 43px) 18px; display: flex; flex-direction: column; }
.chat-topbar { min-height: 43px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.chat-topbar .eyebrow, .chat-panel-title .eyebrow { margin: 0 0 6px; font-size: 8px; }
.chat-topbar h1 { max-width: 580px; margin: 0; overflow: hidden; color: #253a2d; text-overflow: ellipsis; white-space: nowrap; font: 700 22px/1.2 var(--display); letter-spacing: -.05em; }
.chat-topbar .button { flex: 0 0 auto; }
.chat-privacy-banner { margin: 17px 0 12px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #e0e6d7; border-radius: 6px; background: #edf2e6; color: #71806f; font-size: 9px; line-height: 1.55; }
.chat-privacy-banner .local-lock { flex: 0 0 22px; }
.chat-privacy-banner b { color: #465e44; font-weight: 600; }
.chat-messages { min-height: 220px; flex: 1; padding: 8px 0 15px; display: flex; flex-direction: column; gap: 15px; overflow: auto; }
.chat-welcome { max-width: 510px; margin: auto; padding: 35px 12px; text-align: center; }
.chat-welcome-mark { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #dce5d1; border-radius: 14px; background: #eaf0e2; color: #678648; font: 20px var(--display); }
.chat-welcome h2 { margin: 0; color: #34483a; font: 600 18px var(--display); letter-spacing: -.035em; }
.chat-welcome p { margin: 8px 0 0; color: #899487; font-size: 10px; line-height: 1.6; }
.chat-message { max-width: min(790px, 88%); padding: 12px 14px; border: 1px solid #e0e5dc; border-radius: 8px; background: #fff; color: #46594a; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message.is-user { align-self: flex-end; border-color: #dce6d2; background: #eaf0e3; color: #3c513d; }
.chat-message-label { display: block; margin-bottom: 5px; color: #94a08e; font: 7px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.chat-message.is-pending { color: #8a9688; font-style: italic; }
.chat-error { margin: 0; align-self: flex-start; color: #a05d47; font-size: 9px; line-height: 1.5; }
.chat-error button { margin-left: 5px; border: 0; background: transparent; color: #8b6344; font-size: 9px; text-decoration: underline; }
.chat-composer { padding: 11px 12px 9px; border: 1px solid #dbe1d7; border-radius: 8px; background: #fff; box-shadow: 0 4px 18px rgba(37, 57, 40, .035); }
.chat-composer textarea { width: 100%; min-height: 54px; max-height: 210px; resize: vertical; border: 0; outline: 0; background: transparent; color: #364a3b; font: 11px/1.6 var(--body); }
.chat-composer textarea::placeholder { color: #a2aba0; }
.chat-composer-footer { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eef0ec; }
.chat-composer-footer > span { min-width: 0; overflow: hidden; color: #9aa397; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.chat-composer-footer .button { min-height: 28px; padding-inline: 11px; display: flex; align-items: center; gap: 9px; font-size: 9px; }
.chat-composer-footer .button:disabled { cursor: wait; opacity: .65; }
.chat-local-note { margin: 8px 0 0; color: #9ba398; text-align: center; font-size: 7px; line-height: 1.5; }
.chat-context-panel { min-width: 0; max-height: calc(100vh - 65px); padding: 20px 15px 22px; overflow-y: auto; border-left: 1px solid var(--line); background: #f9faf6; }
.chat-settings-card, .chat-context-settings, .chat-memory-picker { padding-bottom: 16px; border-bottom: 1px solid #e5e9e1; }
.chat-context-settings, .chat-memory-picker { padding-top: 16px; }
.chat-panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.chat-panel-title h2 { margin: 0; color: #2d4234; font: 700 14px var(--display); letter-spacing: -.035em; }
.chat-panel-title > .text-button { padding-top: 4px; font-size: 8px; white-space: nowrap; }
.chat-context-panel .field-label { margin-top: 12px; }
.chat-context-panel .form-input { height: 34px; padding: 0 8px; font-size: 9px; }
.chat-context-panel .api-key-input { font-family: var(--mono); font-size: 8px; }
.chat-settings-actions { margin-top: 10px; }
.chat-settings-actions .button { min-height: 34px; font-size: 9px; }
.chat-settings-actions .text-button { display: block; margin: 7px auto 0; }
.chat-settings-actions .text-button[hidden] { display: none; }
.chat-provider-status { min-height: 14px; margin: 9px 0 0; color: #81907d; font-size: 8px; line-height: 1.45; }
.provider-local-note { margin-top: 8px; color: #a0a99d; font-size: 7px; line-height: 1.5; }
.context-mode-help, .chat-memory-help { margin: 7px 0 0; color: #939d91; font-size: 8px; line-height: 1.5; }
.chat-memory-picker { border-bottom: 0; }
.chat-memory-list { max-height: 280px; margin-top: 10px; display: grid; gap: 5px; overflow-y: auto; }
.chat-memory-option { min-width: 0; padding: 8px; display: flex; align-items: flex-start; gap: 7px; border: 1px solid #e3e8df; border-radius: 5px; background: #fff; cursor: pointer; }
.chat-memory-option:has(input:checked) { border-color: #c6d6b6; background: #f2f6eb; }
.chat-memory-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #6d8c4b; }
.chat-memory-option span { min-width: 0; display: block; }
.chat-memory-option b { display: block; overflow: hidden; color: #566757; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; font-weight: 600; }
.chat-memory-option small { display: -webkit-box; margin-top: 3px; overflow: hidden; color: #929d90; font-size: 7px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chat-memory-empty { padding: 14px 8px; color: #98a295; text-align: center; font-size: 8px; line-height: 1.5; }
.chat-send-disclosure { margin: 10px 0 0; color: #9ba398; font-size: 7px; line-height: 1.5; }
.memory-dialog { width: min(500px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid #d8dfd4; border-radius: 10px; background: #f9faf6; color: var(--forest); box-shadow: 0 24px 80px rgba(16, 32, 18, .24); }
.memory-dialog::backdrop { background: rgba(16, 24, 18, .48); backdrop-filter: blur(2px); }
.memory-dialog form { padding: 24px; }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.dialog-top .eyebrow { margin: 0 0 6px; font-size: 8px; }
.dialog-top h2 { margin: 0; color: #2c4133; font: 700 21px var(--display); letter-spacing: -.05em; }
.dialog-close { width: 27px; height: 27px; border: 0; border-radius: 6px; background: #edf0e9; color: #718072; font-size: 18px; }
.memory-dialog .field-label { margin-top: 12px; }
.welcome-dialog { width: min(510px, calc(100% - 28px)); }
.welcome-content { padding: 27px; }
.welcome-content .dialog-top { align-items: center; margin-bottom: 12px; }
.welcome-content .dialog-top h2 { font-size: 24px; }
.welcome-copy { margin: 0; color: #718071; font-size: 12px; line-height: 1.7; }
.welcome-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-actions .button { min-height: 38px; padding-inline: 12px; font-size: 10px; }
.welcome-footnote { margin: 15px 0 0; color: #9ba398; font-size: 9px; line-height: 1.55; }
.field-optional { margin-left: 5px; color: #a5ada2; font-size: 7px; }
.form-input { height: 36px; padding: 0 9px; }
.form-textarea { height: auto; min-height: 106px; padding: 9px; resize: vertical; line-height: 1.55; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-split .field-label { margin-top: 12px; }
.form-split select { appearance: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 22px; }
.dialog-actions .button { min-height: 34px; font-size: 9px; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(350px, calc(100vw - 44px)); padding: 11px 15px; border: 1px solid rgba(185, 232, 109, .3); border-radius: 7px; background: #1c2a20; color: #e4eedc; box-shadow: 0 12px 30px rgba(0,0,0,.16); font-size: 10px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .section-wrap { width: min(100% - 48px, 1000px); }
  .site-header { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(270px, .82fr) minmax(430px, 1.18fr); gap: 28px; }
  .hero h1 { font-size: clamp(46px, 5.4vw, 64px); }
  .memory-flow { gap: 7px; }
  .thesis-inner { grid-template-columns: .7fr 1.25fr 1fr; gap: 22px; }
  .workflow-grid, .builder-grid { gap: 55px; }
  .app-frame { grid-template-columns: 190px minmax(0, 1fr); }
  .context-builder { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; border-top: 1px solid var(--line); border-left: 0; }
  .context-head, .context-intro, .context-builder > .field-label, .context-builder > textarea, .budget-head, .budget-slider, .budget-scale, .context-selection, .context-builder > .button, .context-output, .context-actions, .context-disclaimer { grid-column: span 2; }
  .context-builder { padding: 22px 25px; }
  .context-builder .context-intro { max-width: 540px; }
  .context-builder > textarea { max-width: 580px; }
  .context-output { min-height: 140px; }
  .output-placeholder { min-height: 115px; }
  .app-frame.is-chat { grid-template-columns: 190px minmax(0, 1fr); }
  .chat-area { grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 760px) {
  .section-wrap { width: calc(100% - 38px); }
  .site-header { width: calc(100% - 38px); height: 65px; }
  .site-header > .brand { font-size: 15px; }
  .site-nav { display: none; }
  .site-header > .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 60px; padding-bottom: 55px; }
  .hero h1 { max-width: 600px; font-size: clamp(48px, 12vw, 68px); }
  .hero-lede { font-size: 14px; }
  .hero-actions { gap: 17px; flex-wrap: wrap; }
  .hero-visual { min-height: 0; padding: 16px 13px 12px; }
  .visual-topline { font-size: 7px; }
  .memory-flow { grid-template-columns: 1fr 12px 1.1fr; gap: 7px; min-height: auto; padding: 19px 0; }
  .memory-flow > .flow-arrow:nth-of-type(2), .flow-pack { display: none; }
  .mini-label { font-size: 7px; }
  .chat-bubble { padding: 9px; font-size: 8px; }
  .memory-sample { gap: 5px; padding: 6px 4px; }
  .memory-sample b { font-size: 7px; }
  .memory-sample small { font-size: 6px; }
  .source-caption { font-size: 6px; }
  .visual-bottomline { gap: 8px; font-size: 6px; }
  .thesis-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 39px; }
  .thesis-inner .eyebrow { margin: 0; }
  .thesis-support { max-width: 530px; }
  .pillars { grid-template-columns: 1fr; padding-block: 43px 60px; }
  .pillar-card { min-height: 213px; }
  .workflow-grid, .builder-grid { grid-template-columns: 1fr; gap: 31px; padding-block: 52px; }
  .workflow-intro h2, .builder-grid h2 { max-width: 540px; font-size: 38px; }
  .workflow-step { grid-template-columns: 27px 1fr 20px; }
  .closing-section { padding-bottom: 35px; }
  .closing-card { padding: 31px 25px; display: block; }
  .closing-card h2 { max-width: 420px; font-size: 33px; }
  .closing-actions { margin: 23px 0 0; }
  .site-footer { min-height: 90px; flex-wrap: wrap; gap: 5px 20px; padding-block: 14px; }
  .site-footer > span:nth-child(2) { display: none; }
  .site-footer .footer-links { order: 2; width: 100%; gap: 13px; }
  .editorial-main { width: min(100% - 36px, 640px); padding-block: 50px 70px; }
  .editorial-hero { padding-bottom: 35px; }
  .editorial-lede { font-size: 14px; }
  .editorial-section { padding-block: 34px; }
  .architecture-flow { grid-template-columns: 1fr; gap: 8px; }
  .architecture-flow article { min-height: 0; padding: 13px; }
  .architecture-flow article b { margin-top: 7px; }
  .architecture-arrow { transform: rotate(90deg); }
  .editorial-steps li { grid-template-columns: 1fr; gap: 4px; }
  .editorial-actions { align-items: flex-start; flex-direction: column; }
  .policy-section { padding-block: 27px; }
  .workbench-demo-notice { width: calc(100% - 18px); margin-top: 8px; font-size: 9px; }
  .workbench-footer { justify-content: flex-start; padding-inline: 10px; font-size: 8px; }
  .app-header { height: 57px; padding-inline: 13px; gap: 10px; }
  .app-header .brand { font-size: 13px; gap: 6px; }
  .app-header .brand-mark { width: 21px; height: 21px; }
  .app-breadcrumb { display: none; }
  .app-header-actions { gap: 5px; }
  .app-header .button { min-height: 29px; padding-inline: 8px; font-size: 8px; }
  .icon-link { width: 27px; height: 27px; }
  .app-frame { min-height: calc(100vh - 57px); grid-template-columns: 1fr; }
  .app-sidebar { padding: 10px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-label { min-height: 38px; margin: 0 0 8px; padding: 4px; }
  .workspace-avatar { width: 27px; height: 27px; }
  .sidebar-heading, .sidebar-heading-spaced, .type-link, .sidebar-bottom { display: none; }
  .app-sidebar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .workspace-label { grid-column: span 4; }
  .sidebar-link { min-height: 30px; justify-content: center; gap: 5px; padding-inline: 4px; font-size: 8px; white-space: nowrap; }
  .sidebar-symbol { width: auto; font-size: 11px; }
  .sidebar-count { margin-left: 0; font-size: 7px; }
  .library-area { padding: 24px 14px; }
  .library-heading { align-items: flex-end; }
  .library-heading h1 { font-size: 21px; }
  .library-subtitle { max-width: 225px; font-size: 8px; line-height: 1.5; }
  .library-heading .button { min-height: 32px; padding-inline: 8px; font-size: 8px; }
  .metric-row { gap: 5px; margin-top: 16px; }
  .metric-card { min-height: 69px; padding: 9px 7px; }
  .metric-card > span { font-size: 6px; letter-spacing: .02em; }
  .metric-card > b { font-size: 17px; }
  .metric-card > small { font-size: 7px; }
  .metric-card .metric-unit { font-size: 7px; }
  .metric-card-accent > b { font-size: 13px; }
  .library-toolbar { gap: 5px; margin-top: 15px; }
  .search-field { height: 34px; padding-inline: 7px; gap: 5px; }
  .search-field input { font-size: 8px; }
  .search-field kbd { display: none; }
  .sort-control { height: 34px; padding-inline: 5px; }
  .sort-control > span { display: none; }
  .sort-control select { max-width: 89px; font-size: 7px; }
  .filter-row { gap: 2px; overflow-x: auto; }
  .filter-chip { padding-inline: 6px; font-size: 7px; white-space: nowrap; }
  .selection-status { display: none; }
  .memory-grid { grid-template-columns: 1fr; gap: 7px; padding-top: 10px; }
  .memory-card { min-height: 143px; padding: 10px; }
  .memory-card h3 { font-size: 10px; }
  .memory-card-content { min-height: 28px; font-size: 8px; }
  .context-builder { grid-column: 1; display: block; padding: 21px 14px; border-left: 0; }
  .context-builder > textarea { max-width: none; }
  .app-mode-nav { margin: 0; grid-column: 1 / -1; grid-row: 2; }
  .mode-link { min-height: 29px; justify-content: center; }
  .app-frame.is-chat { grid-template-columns: 1fr; }
  .app-frame.is-chat > .app-sidebar { display: grid; }
  .app-frame.is-chat > .app-sidebar .workspace-label { display: none; }
  .app-frame.is-chat > .app-sidebar .app-mode-nav { grid-column: 1 / -1; grid-row: auto; }
  .app-frame.is-chat > .app-sidebar .chat-sidebar { display: block; grid-column: 1 / -1; }
  .app-frame.is-chat > .app-sidebar .chat-sidebar-heading { display: none; }
  .app-frame.is-chat > .app-sidebar .chat-thread-list { max-height: 40px; display: flex; gap: 5px; overflow-x: auto; }
  .app-frame.is-chat > .app-sidebar .chat-thread-button { max-width: 160px; flex: 0 0 auto; border: 1px solid #dfe4da; background: rgba(255,255,255,.48); }
  .app-frame.is-chat > .chat-area { grid-column: 1; }
  .chat-area { min-height: auto; grid-template-columns: 1fr; }
  .chat-main-column { min-height: 70vh; padding: 20px 14px 14px; }
  .chat-topbar h1 { max-width: min(410px, calc(100vw - 190px)); font-size: 18px; }
  .chat-topbar .button { min-height: 30px; padding-inline: 8px; font-size: 8px; }
  .chat-privacy-banner { font-size: 8px; }
  .chat-message { max-width: 94%; }
  .chat-context-panel { max-height: none; padding: 18px 14px; border-top: 1px solid var(--line); border-left: 0; }
  .chat-memory-list { max-height: 240px; }
  .context-output { min-height: 160px; }
  .output-placeholder { min-height: 134px; }
  .memory-dialog form { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
