/* Presentation-sized type and higher-contrast ink; loaded after both view styles. */
:root{--ink:#142b40;--muted:#405468;--teal:#006961;--red:#ae352a;--line:#c8d2d8}
body{font-size:16px}
.brand{font-size:17px}.brand small{font-size:11px;letter-spacing:1.5px}
.draft-label,.text-button,#view-toggle{font-size:13px}.icon-button{min-height:36px;min-width:36px}
.topbar{height:auto;min-height:108px;padding-block:16px}.top-actions{gap:17px}
.chapter-button{font-size:13px;color:var(--muted)}.chapter-button .step-number{font-size:12px;width:26px;height:26px;flex-shrink:0}
.story nav{flex-wrap:wrap;row-gap:12px}.chapter-link{min-width:0}
.back-button,.back-button span{font-size:14px}.scenario>span{font-size:12px;letter-spacing:.6px}.scenario strong{font-size:16px}
.story-tools{flex-wrap:wrap}.story-tools .scenario{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.roster-entry{font-size:14px;min-height:36px;padding:6px 10px;border:1px solid #9cb4ad;border-radius:5px;color:#006961;background:#fff}
.roster-entry:hover,.roster-entry[aria-current=page]{background:#e0eee5;border-color:#226047;color:#163c32}
.eyebrow{font-size:12px;letter-spacing:1.2px}.scene-heading{font-size:39px}.hero-heading{font-size:42px}
.scene-intro,.hero-description,.source-column p,.plain-note,.role-detail p,.gate-reasons{font-size:16px;line-height:1.7}
.hero-description,.scene-intro{max-width:690px}
.funding-labels button{font-size:15px}.funding-labels small{font-size:13px}.funding-labels strong{font-size:24px}
.detail-reveal summary,.forward-button{font-size:15px}.annual-period,.annual-value{font-size:14px}.annual-period small{font-size:12px}
.annual-row{grid-template-columns:90px 1fr 105px}
.source-inline,.source-link,.message .source-link{font-size:12px}.source-link{padding:5px 7px}
.source-column h2{font-size:23px}.source-column>small,.source-column button{font-size:14px}
.source-column p{min-height:0}.mini-periods{flex-wrap:wrap;gap:14px}.mini-periods small{font-size:12px}.mini-periods strong{font-size:15px}
.cost-tabs button{font-size:15px}.budget-table{font-size:15px;min-width:660px}
.budget-table th{font-size:13px}.budget-table th small{font-size:12px}.budget-table .total td,.budget-table .total td:first-child{font-size:15px}
.budget-table caption{text-align:left;font-size:14px;line-height:3.2;color:var(--muted);margin:16px 0 10px}
.row-link>span:last-child{opacity:1}.table-unit,.cost-basis{font-size:13px}.cost-basis{flex-wrap:wrap;line-height:3.2}
.compute-ceiling small,.split-caption span,.year-path small,.year-path span{font-size:13px}.compute-ceiling strong{font-size:32px}
.role-detail h3{font-size:19px}.role-back{font-size:14px}.gate-math span,.gate-role,.gate-role button{font-size:15px}
.split-caption{flex-wrap:wrap}.split-caption>span{min-width:0}
.gate-role>span:last-child{font-size:13px}.gate-math{flex-wrap:wrap}.story-footer,.story-footer .text-button{font-size:12px;color:var(--muted)}
.story-footer{flex-wrap:wrap;line-height:3.0}

/* Keep the input in view while the larger explanation scrolls independently. */
.assistant{height:calc(100dvh - 108px);min-height:0;max-height:100dvh;overflow:hidden}
.assistant-heading{padding:20px 22px;flex-shrink:0}.assistant-symbol{flex-shrink:0}
.assistant-heading h2{font-size:18px}.assistant-heading p{font-size:12px;line-height:3.0;flex-wrap:wrap}
.assistant-scroll{min-height:0;padding:22px;overflow-y:auto}
.context-kicker,.conversation-heading>span,.conversation-heading button{font-size:12px;letter-spacing:.8px}
#current-context h3{font-size:23px;line-height:1.3}#current-context p{font-size:16px;color:var(--muted);line-height:1.65}
.context-scenario{font-size:13px;line-height:3.0;align-items:flex-start}.context-scenario:before{font-size:13px}
.empty-chat h3{font-size:25px}.empty-chat p,.suggestion{font-size:15px;line-height:3.2;color:var(--muted)}
.message{font-size:16px;line-height:1.65}.message-top{font-size:12px;line-height:3.0;flex-wrap:wrap}.message-top strong{font-size:12px}
.related-link,.message.error,.pending{font-size:14px}.composer{flex-shrink:0;margin:12px 18px 18px}
.composer textarea{font-size:16px;line-height:3.2;min-height:58px}.composer textarea::placeholder{color:var(--muted);opacity:1}
.compose-bottom>span,.compose-bottom .text-button,#compose-caption{font-size:12px;color:var(--muted)}
#compose-caption{line-height:3.0}#send-question{width:38px;height:38px}
.dialog-top .eyebrow{font-size:12px}#source-meta{font-size:13px}#source-content pre{font-size:14px;line-height:1.8}
.source-list button{font-size:15px}.source-list button small,.source-language button{font-size:12px}#toast{font-size:14px}

/* A year is a view of the same allocation, not a new scenario or budget. */
.period-switcher{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 18px}
.period-switcher [data-period]{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:15px 13px;border:1px solid #9aaebc;border-radius:7px;background:#fff;color:var(--navy);text-align:left;font-variant-numeric:tabular-nums}
.period-switcher [data-period]:hover{border-color:var(--navy);background:#eaf0f5}
.period-switcher [data-period][aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:inset 0 -3px 0 #97bed5}
.period-label{font-size:14px;line-height:1.35;font-weight:600}.period-amount{font-size:19px;line-height:1.2;font-weight:600;letter-spacing:-.3px;overflow-wrap:anywhere}
.period-duration{font-size:12px;line-height:1.4;color:var(--muted)}[aria-pressed=true] .period-duration{color:#e5eef8}
.zero-allocations{margin-top:17px;padding:14px 16px;background:#e9eef3;border:1px solid #bdcbd5;border-radius:6px;font-size:14px;line-height:3.2;color:var(--ink)}
.zero-allocations p{margin-bottom:8px}.zero-allocations button{font-size:14px;font-weight:600;color:var(--navy);text-decoration:underline;text-underline-offset:3px;padding:5px 0}
.zero-allocations button+button{margin-left:16px}

.radial-header .scene-heading{font-size:38px}.radial-subtitle{font-size:15px;line-height:1.65}
.story .radial-breadcrumbs,.radial-breadcrumbs button{font-size:13px;color:var(--muted)}
.radial-chart-caption{font-size:14px;line-height:1.65;margin-top:8px}.radial-chart-caption>span{font-size:12px;color:var(--muted)}
.radial-start .eyebrow,.radial-selected .eyebrow,.detail-table-heading .eyebrow{font-size:12px}
.radial-start h2{font-size:29px}.radial-start p,.radial-selected p{font-size:16px;color:var(--muted);line-height:1.7}
.radial-start li,.radial-start .forward-button{font-size:14px}.radial-start li>span{font-size:12px}
.radial-selected{grid-template-columns:1fr;gap:20px}.radial-selected h2{font-size:23px}.radial-selected p{max-width:720px}
.radial-annual{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:620px;align-items:start}
.radial-annual small{font-size:12px;line-height:3.0;white-space:normal}.radial-annual strong{font-size:15px;line-height:3.0;white-space:normal;overflow-wrap:anywhere}
.radial-annual .annual-share{display:block;font-size:14px;line-height:3.0;color:var(--muted);max-width:100%;white-space:normal;overflow-wrap:anywhere}
.radial-role-links button{font-size:14px;line-height:3.2}
.radial-whole circle{fill:var(--navy)}.radial-whole:hover circle,.radial-whole:focus-visible circle{fill:#174874}
.disc-kicker{font-size:15px}.disc-currency{font-size:14px}.disc-cta{font-size:18px}.disc-amount{font-size:58px}
.disc-kicker,.disc-currency{fill:#e5eef8!important}
.callout-title{fill:#142b40}.callout-value{fill:#263f55}.callout-share{fill:#344f65}
.slice-number,.radial-piece.light .slice-number{fill:#071a2c;font-size:15px;font-weight:600}
.centre-kicker{font-size:12px}.centre-amount{font-size:38px}.centre-currency{font-size:12px}.centre-back{font-size:14px}
.centre-currency{fill:var(--muted)!important}.centre-back{fill:var(--teal)!important}
.leader-line{stroke:#627c8e;stroke-width:1.3}
.detail-table-heading h2{font-size:24px;line-height:1.35}.detail-table-heading{align-items:flex-start}
.detail-table-sources{flex-wrap:wrap;justify-content:flex-end}
.radial-detail-table{font-size:15px;min-width:900px}
.radial-detail-table caption{font-size:14px;line-height:1.7;color:var(--muted)}
.radial-detail-table thead th{font-size:14px;font-weight:600;color:var(--ink)}.radial-detail-table thead th small{font-size:12px}
.radial-detail-table tbody button{font-size:15px;line-height:3.2}.radial-detail-table tbody button small{font-size:12px}
.radial-detail-table tfoot th,.radial-detail-table tfoot td{font-size:15px}
.radial-detail-table .period-column{background:#e2ebf4;color:var(--navy)}
.radial-detail-table thead .period-column{box-shadow:inset 0 3px 0 var(--navy)}
.radial-detail-table .annual-share{display:block;font-size:13px;line-height:3.2;margin-top:5px;color:var(--muted)}
.detail-table-note{font-size:13px;line-height:1.75;color:var(--muted)}

/* Funding capacity stays distinct from monetary pie shares and exit headcount. */
.factory-fte{margin:22px 0 28px;padding:22px;background:#edf3ef;border:1px solid #b4c6b9;border-radius:8px;color:var(--ink)}
.fte-heading h2{margin:0 0 6px;font-size:24px;line-height:1.3}.fte-heading>span{font-size:15px;line-height:3.0;color:var(--muted)}
.fte-years{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 16px}
.fte-year{padding:13px 10px;border:1px solid #bdcec2;border-radius:5px;background:#fff;min-width:0;font-variant-numeric:tabular-nums}
.fte-year>span{display:block;font-size:14px;line-height:3.2}.fte-year strong{display:block;margin:8px 0;font-size:34px;line-height:1.2;color:#163c32;white-space:nowrap}.fte-year strong small{font-size:17px;font-weight:500}
.fte-year .fte-cost{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.fte-year.fte-active{border:2px solid #226047;padding:12px 9px;box-shadow:inset 0 3px 0 #226047;background:#e0eee5}
.fte-breakdown summary{font-size:16px;font-weight:600;cursor:pointer;padding:7px 0;text-underline-offset:4px}.fte-breakdown summary:hover{text-decoration:underline}
.fte-breakdown p,.fte-basis{font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0}.fte-sources{display:flex;gap:5px;flex-wrap:wrap}
.fte-table-scroll{overflow-x:auto;margin:14px 0}.fte-table{width:100%;min-width:480px;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.fte-table caption{text-align:left;font-size:14px;line-height:3.2;padding-bottom:10px;color:var(--muted)}
.fte-table th,.fte-table td{padding:11px 10px;border-bottom:1px solid #bdcec2;text-align:right}.fte-table th:first-child{text-align:left;width:52%}.fte-table tbody th{font-weight:500}.fte-table tfoot{font-weight:700}.fte-table .fte-active{background:#d6e7db}
#current-context .context-fte{padding:12px;border-left:3px solid #226047;background:#edf3ef;color:var(--ink)}
/* The roster is a physical staffing view, separate from annual paid FTE and money. */
.roster-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px 0 24px}
.roster-metrics>div{min-width:0;padding:18px 16px;border-top:3px solid #6783c6;background:#edf1f4}
.roster-metrics>.roster-change{border-color:#ba704f;background:#f4ebe6}
.roster-metrics>div:last-child{border-color:#226047;background:#edf3ef}
.roster-screen .scene-intro,.roster-screen .plain-note{font-size:16px;line-height:1.7;color:#263f55}
.roster-metrics span{display:block;font-size:12px;line-height:3.0;color:#344f65}
.roster-metrics strong{display:block;font-size:36px;line-height:1.2;color:var(--navy);margin-top:9px;font-variant-numeric:tabular-nums}
.roster-metrics small{display:block;font-size:12px;line-height:3.0;font-weight:500;margin-top:5px;letter-spacing:0;color:#344f65}
.roster-table{min-width:0;table-layout:fixed}.roster-table th:first-child{width:56%}
.roster-table caption{font-size:14px;line-height:1.7;color:#344f65}
.roster-table thead th{font-size:13px;white-space:normal;overflow-wrap:normal}
.roster-table tbody th{font-size:15px;font-weight:500;line-height:3.0;padding:16px 10px 16px 0}
.roster-table .row-link{font-size:15px;line-height:3.0;text-align:left}
.roster-table .row-link span{font-size:inherit}
.roster-table .row-link:disabled{opacity:1;color:#344f65;cursor:default}
.roster-table tbody th small{display:block;font-size:13px;font-weight:400;line-height:3.2;margin-top:5px;color:#344f65}
.roster-table tbody td{font-size:15px;font-weight:500;vertical-align:middle;color:var(--navy)}
.roster-table .roster-eoc{background:#f4ebe6}.roster-table .roster-eoc th{padding-left:10px}
.roster-table tr.selected{background:#e2ebf4;box-shadow:inset 4px 0 0 var(--navy)}
.roster-table tfoot th{font-size:15px;font-weight:700;color:var(--navy)}.roster-table .total td{font-size:36px;font-weight:700;color:var(--navy)}
.roster-chart{margin:32px 0;padding:24px 0;border-top:1px solid #bdcbd4;border-bottom:1px solid #bdcbd4}
.roster-chart h2{font-size:24px;line-height:1.3;margin:0 0 20px;color:var(--navy)}
.roster-phase-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.roster-phase-controls button{font-size:14px;line-height:3.0;border:1px solid #8199ae;border-radius:5px;padding:10px 16px;background:#fff;color:var(--navy);min-height:44px}
.roster-phase-controls button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
.roster-denominator,.roster-chart-help{font-size:14px;line-height:1.65;color:#344f65}
.roster-denominator strong{color:var(--navy)}
.roster-pie{display:block;width:100%;height:auto;overflow:visible}
.roster-centre-number{fill:var(--navy);font-weight:650;font-variant-numeric:tabular-nums;pointer-events:none}.roster-centre-label{fill:#344f65;font-size:20px;pointer-events:none}
.roster-callout .callout-title{font-weight:600}.roster-callout .callout-value{font-weight:600}.roster-callout .callout-share{fill:#344f65}
.roster-piece:focus-visible path,.roster-piece.selected path{stroke:var(--navy);stroke-width:3px}
.roster-callout:focus-visible .callout-target,.roster-callout.selected .callout-target{stroke:var(--navy);stroke-width:2px;fill:#e2ebf4;fill-opacity:.65}
.roster-selection-summary .text-button{display:block;margin-top:10px;font-size:14px}
@media(max-width:600px){
  .roster-metrics{gap:8px;grid-template-columns:1fr 1fr}.roster-metrics>div{padding:16px 12px}.roster-metrics>.roster-change{grid-row:2;grid-column:1/-1}
  .roster-table th:first-child{width:52%}.roster-table .total td{font-size:30px}.roster-table th,.roster-table td{padding-inline:5px}
  .roster-chart{padding:22px 0}.roster-phase-controls button{padding:10px 12px;flex:1;min-width:0}
  .factory-fte{padding:17px 14px}.fte-heading h2{font-size:22px}.fte-years{grid-template-columns:1fr;gap:9px}
  .fte-year{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:center;padding:12px}.fte-year strong{grid-column:2;grid-row:1/3;font-size:30px;margin:0}.fte-year>span{grid-column:1}.fte-year.fte-active{padding:11px}
}

/* User-provided AgentOS identity; attribution stays readable without crowding actions. */
.topbar .brand{flex:1;min-width:0;gap:14px;white-space:normal}
.topbar .agentos-logo{display:block;width:76px;height:76px;object-fit:contain;flex-shrink:0;border-radius:10px}
.topbar .brand>span.brand-copy{display:block;min-width:0}
.topbar .brand-title{display:block;font-size:17px;line-height:1.3}
.topbar .brand-credit{font-size:12px;line-height:3.0;letter-spacing:0;font-weight:400;white-space:normal;max-width:420px}
.topbar .brand-credit strong{font-size:14px;font-weight:700}
.topbar .top-actions{flex-shrink:0}
@media(max-width:850px){
  .topbar{flex-wrap:wrap}
  .topbar .agentos-logo{width:64px;height:64px}
  .topbar .brand{flex-basis:100%}
  .topbar .top-actions{margin-left:auto}
}

@media(max-width:1150px){
  .topbar .draft-label{display:none}.top-actions{gap:12px}.topbar{padding-inline:22px}
  .chapter-button{font-size:12px;gap:5px}.chapter-link{display:none}.story nav{column-gap:10px}
  .scenario>span{display:none}.period-switcher{gap:7px}.period-switcher [data-period]{padding:13px 10px}.period-amount{font-size:17px}
  .assistant-heading{padding-inline:18px;gap:10px}.assistant-heading h2{font-size:17px}.assistant-scroll{padding-inline:19px}
  .radial-header .scene-heading{font-size:34px}
}
@media(min-width:851px) and (max-height:650px){
  .assistant-heading{padding-block:13px}.composer{margin-block:8px 12px;padding-top:10px}.composer textarea{min-height:50px;max-height:85px}
  .assistant-scroll{padding-top:15px;padding-bottom:15px}#compose-caption{margin-top:5px;padding-top:6px}
}
@media(max-width:850px){
  .assistant{position:static;height:auto;max-height:none;min-height:0;overflow:visible}
  .assistant-scroll{overflow:visible}.composer{margin-top:15px}.topbar{min-height:74px}
  .brand{font-size:15px}.brand small{font-size:10px}.chapter-button{font-size:13px}
}
@media(max-width:600px){
  .topbar{padding-inline:18px;gap:10px}.topbar .top-actions{gap:10px}.top-actions>a{display:none}#view-toggle{font-size:13px;padding:9px 10px}
  .story nav{padding-inline:16px;gap:8px}.chapter-button{font-size:12px;flex:1;white-space:normal;flex-direction:column;text-align:center;line-height:1.4}
  .chapter-button .step-number{width:25px;height:25px}.story-tools{padding-inline:20px}.scenario strong{font-size:15px}
  .period-switcher{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px}.period-switcher [data-period]{padding:13px}
  .period-label{font-size:14px}.period-amount{font-size:20px}.period-duration{font-size:12px}
  .radial-header .scene-heading,.scene-heading{font-size:33px}.hero-heading{font-size:36px}
  .radial-subtitle{font-size:14px}.radial-chart-caption{font-size:13px}.radial-selected h2{font-size:22px}
  .radial-annual{gap:9px}.radial-annual strong{font-size:14px}.radial-annual small{font-size:12px}
  .detail-table-heading{flex-wrap:wrap;gap:12px}.detail-table-heading h2{font-size:23px}.detail-table-sources{justify-content:flex-start}
  .radial-detail-table,.radial-detail-table tbody button{font-size:14px}.detail-table-note{font-size:12px}
  .funding-comparison{grid-template-columns:1fr;gap:28px}.source-column .source-amount{font-size:40px}
  .funding-labels{gap:12px}.funding-labels button{font-size:14px}.funding-labels strong{font-size:20px}
  .annual-row{grid-template-columns:75px 1fr 96px;gap:8px}.annual-value{font-size:13px}.annual-period{font-size:13px}
  .compute-ceiling{gap:12px}.compute-ceiling strong{font-size:25px}.compute-ceiling small{font-size:12px}
  .table-scroll{margin-right:0;padding-right:0}.gate-role{flex-wrap:wrap}.gate-role>span:last-child{margin-left:40px}
  .assistant-scroll,.assistant-heading{padding-inline:21px}.assistant-heading h2{font-size:18px}.story-footer{gap:12px}
}
