@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* Shared with the Lore workspace and public website. */
  --ink: #22211f;
  --paper: #fcfaf7;
  --surface: #fffefa;
  --muted: #645e59;
  --line: #e5dfd9;
  --control-border: #c8bfb5;
  --brand-red: #c83d38;
  --brand-deep: #a92f2c;
  --coral: #e8988e;
  --blush: #f6e7e1;
  --subtle: #f6f3f0;
  --rail: var(--subtle);
  --hover: #f1eae2;
  --chart-secondary: var(--muted);
  --chart-sand: #cdbfb0;
  --chart-clay: #9c766b;
  --logo-edge: #ebc7c0;
  --radius: .85rem;
  --rail-width: 14.5rem;
  --sans: Geist, Inter, "Segoe UI", Arial, sans-serif;
  --display: "Bricolage Grotesque", Geist, Inter, "Segoe UI", Arial, sans-serif;
  font: 100%/1.48 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select, input[type=range] { cursor: pointer; }
button { color: inherit; }
input, select, button { -webkit-tap-highlight-color: transparent; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .63; }
button, select, input { transition: border-color .16s ease, background-color .16s ease; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
}
a { color: var(--brand-deep); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; transform: translateY(-200%); background: white; color: var(--ink); padding: .7rem 1rem; z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); }
.rail {
  position: sticky; top: 0; display: flex; flex-direction: column; align-self: start;
  height: 100vh; height: 100dvh; padding: 2.05rem 1rem 1.15rem;
  color: var(--ink); background: var(--rail); border-inline-end: 1px solid var(--line); z-index: 2;
}
.brand { display: flex; align-items: center; gap: .48rem; padding: 0 .67rem; font: 750 2.36rem/.95 var(--display); letter-spacing: -.085em; }
.brand-mark { box-sizing: border-box; padding: 3px; border: 1px solid var(--logo-edge); border-radius: 10px; background: linear-gradient(145deg, #fff1e9, #f9ded7); box-shadow: inset 0 1px white; width: 2.28rem; height: 2.28rem; flex: 0 0 auto; }
.rail-main { margin-top: 3.38rem; }
.rail-label, .eyebrow, .section-id { font-size: .75rem; font-weight: 650; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.rail-label { margin: 0 .85rem .8rem; color: var(--muted); }
.views { display: flex; flex-direction: column; gap: .28rem; }
.views button, .utility {
  display: flex; align-items: center; gap: .67rem; width: 100%; min-height: 2.68rem;
  padding: .58rem .8rem; border: 1px solid transparent; border-radius: .5rem;
  background: transparent; color: #4e4943; font: 500 .91rem/1.35 var(--sans); text-align: left;
}
.views svg, .utility svg, .select-control svg, .icon-button svg {
  display: block; flex: 0 0 auto; width: 1.11rem; height: 1.11rem;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.views button:hover, .utility:hover { background: var(--hover); color: var(--ink); }
.views button[aria-current=page], .views button[aria-selected=true], .views button[aria-pressed=true], .views button.active, .views button.is-active {
  background: white; color: var(--brand-deep); font-weight: 650; box-shadow: 0 1px 4px #43301712;
}
.rail-extra { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.utility { color: var(--muted); }
.rail button:focus-visible { outline-color: var(--brand-red); outline-offset: 2px; }
main { min-width: 0; outline: none; }
.page-wrap { width: 100%; max-width: 105rem; margin: 0 auto; padding: 2.45rem clamp(1.4rem, 3vw, 3.3rem) 3.4rem; }
.masthead { margin: 0; }
.heading-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .82rem; }
.section-id { display: inline-flex; align-items: center; gap: .52rem; margin: 0; color: var(--muted); }
.section-rule { display: inline-block; width: 1.43rem; height: 3px; border-radius: 1px; background: var(--brand-red); }
.data-mode, .badge {
  display: inline-flex; align-items: center; gap: .42em; min-height: 1.6rem;
  padding: .18rem .57rem; font-size: .78rem; line-height: 1.3; font-weight: 550;
  border-radius: 10rem; color: var(--muted); background: var(--subtle);
}
.data-mode { border: 1px solid var(--line); background: var(--subtle); }
.data-mode::before { content: ""; width: .41rem; height: .41rem; border-radius: 50%; background: var(--muted); }
.data-mode:empty { display: none; }
.data-mode[data-mode=live], .data-mode.live, .badge.good { color: var(--brand-deep); background: var(--blush); border-color: var(--line); }
.data-mode[data-mode=live]::before, .data-mode.live::before { background: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.35rem, 3.7vw, 3.55rem); line-height: 1.02; font-weight: 670; letter-spacing: -.063em; }
h2 { margin: 0; font-size: clamp(1.3rem, 2.05vw, 1.65rem); line-height: 1.15; font-weight: 650; letter-spacing: -.044em; }
h3 { margin: 0; font-size: 1.11rem; line-height: 1.22; font-weight: 620; letter-spacing: -.026em; }
#page-subtitle { color: var(--muted); margin: .65rem 0 0; }
.filter-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .52rem; margin: 1.32rem 0 1.5rem; }
.select-control { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.select-control svg { position: absolute; left: .7rem; width: .99rem; height: .99rem; color: var(--muted); pointer-events: none; }
select, input:not([type=range]):not([type=checkbox]):not([type=radio]) {
  max-width: 100%; min-height: 2.4rem; padding: .4rem .75rem; border: 1px solid var(--control-border);
  border-radius: .45rem; background-color: white; color: var(--ink); font-size: .91rem; font-weight: 500;
}
select {
  appearance: none; padding-right: 2.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23645e59' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.75 6.5 3.25 3.25 3.25-3.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .58rem center; background-size: .95rem;
}
select:hover, input:not([type=range]):hover { border-color: #8a7970; }
.select-control select { padding-left: 2.1rem; }
.dashboard-content { display: grid; gap: 1.1rem; }
.dashboard-content > * { min-width: 0; }
.dashboard-content > h2:not(:first-child) { margin-top: .58rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: stretch; gap: .78rem; }
.metric, .panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metric { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.05rem 1.12rem .98rem; gap: .22rem; }
.metric > * { max-width: 100%; }
.metric .label, .label { color: var(--muted); font-size: .88rem; font-weight: 550; line-height: 1.35; }
.metric .label { display: flex; align-items: center; gap: .45rem; }
.metric .value, .value { font-family: var(--display); font-size: clamp(1.88rem, 2.9vw, 3.05rem); font-weight: 620; line-height: 1.15; letter-spacing: -.062em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric .value { margin: .2rem 0 .1rem; }
.sub, .foot, .panel-head p, .empty { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.metric .sub { margin-top: auto; font-size: .8rem; }
.panel { padding: clamp(1rem, 1.65vw, 1.5rem); }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.15rem; margin-bottom: 1.1rem; }
.panel-head > * { min-width: 0; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head p { margin: .32rem 0 0; }
.panel-head .eyebrow { color: var(--muted); margin: 0 0 .4rem; font-size: .75rem; }
.eyebrow { margin: 0 0 .37rem; color: var(--muted); }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.grid-two > * { min-width: 0; }
.flow { max-width: 100%; overflow: auto; border-radius: .63rem; background-color: var(--paper); background-image: radial-gradient(var(--control-border) .8px, transparent .8px); background-size: 12px 12px; }
.chart, .flow { font-variant-numeric: tabular-nums; }
.chart svg, svg.chart, .flow svg, svg.flow { display: block; width: 100%; height: auto; }
.chart text, .flow text { font-family: var(--sans); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem 1rem; font-size: .84rem; color: var(--muted); }
.legend > * { display: inline-flex; align-items: center; gap: .38rem; }
.dot { display: inline-block; flex: 0 0 auto; width: .54rem; height: .54rem; background: var(--brand-red); border-radius: 50%; vertical-align: .02em; }
.bar { display: flex; align-items: stretch; overflow: hidden; height: .58rem; background: var(--hover); border-radius: .28rem; }
.bar > * { height: 100%; }
.segment { display: block; flex-shrink: 0; background-color: var(--brand-red); }
.breakdown { display: grid; gap: .75rem; }
.breakdown-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .35rem .8rem; }
.breakdown-row .bar { grid-column: 1 / -1; }
.breakdown-row strong, .tabular { font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { padding: .83rem .72rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
thead th { border-top: 1px solid var(--line); background: var(--subtle); color: var(--muted); font-size: .81rem; font-weight: 550; white-space: nowrap; }
tbody th { font-weight: 580; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
.num, .numeric, td[data-numeric] { text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,12rem), 1fr)); gap: 1.05rem; }
.field { display: grid; align-content: start; gap: .37rem; }
.field label, label.field { font-size: .9rem; font-weight: 550; }
.field small { color: var(--muted); font-size: .8rem; font-weight: 400; }
input[type=range] { width: 100%; margin: .45rem 0; accent-color: var(--brand-red); }
.note, .empty { padding: .8rem 1rem; margin: .8rem 0 0; border-radius: .45rem; background: var(--subtle); color: var(--ink); }
.note { border-inline-start: 3px solid var(--brand-red); font-size: .88rem; }
.foot { margin: .9rem 0 0; font-size: .8rem; }
:where(.panel,.dialog-head,#data-body) button:not(.icon-button) { padding: .45rem .7rem; border: 1px solid var(--control-border); border-radius: .4rem; background: #fff; font-size: .88rem; font-weight: 550; }
:where(.panel,.dialog-head,#data-body) button:not(.icon-button):hover { background: var(--hover); border-color: #8a7970; }
dialog { width: min(42rem, calc(100vw - 2rem)); max-height: min(85dvh, 52rem); padding: 1.4rem 1.55rem 1.55rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); box-shadow: 0 22px 95px #30221b38; }
dialog::backdrop { background: #22211fa6; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; }
.icon-button:hover { background: var(--paper); }
#data-body { color: var(--ink); }
#data-body h3 { margin: 1.2rem 0 .35rem; }
#data-body p, #data-body ul { margin: .45rem 0 .75rem; }
#data-body code { overflow-wrap: anywhere; font-size: .87em; }
@media (min-width: 95rem) { .page-wrap { padding-top: 3rem; } }
@media (max-width: 72rem) {
  :root { --rail-width: 13rem; }
  .rail { padding-inline: .75rem; }
  .views button, .utility { gap: .58rem; padding-inline: .65rem; }
  .metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,9.5rem),1fr)); }
}
@media (max-width: 58rem) {
  :root { --rail-width: 11.7rem; }
  .page-wrap { padding-inline: 1.2rem; }
  .rail { padding-inline: .58rem; }
  .views button, .utility { font-size: .865rem; }
  .grid-two { grid-template-columns: minmax(0,1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 47rem) {
  .shell { display: block; }
  .rail { display: grid; grid-template-columns: minmax(0,1fr) auto; position: relative; width: auto; height: auto; padding: .8rem .9rem .65rem; align-items: center; gap: .65rem; }
  .brand { padding: 0; font-size: 1.8rem; }
  .brand-mark { width: 1.74rem; height: 1.74rem; }
  .rail-main { grid-area: 2/1/3/3; margin: 0; min-width: 0; }
  .rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .views { overflow-x: auto; flex-direction: row; gap: .25rem; padding: .2rem .1rem .22rem; scrollbar-width: thin; scrollbar-color: #c8bfb5 transparent; }
  .views button { width: auto; flex: 0 0 auto; min-height: 2.3rem; gap: .4rem; padding: .43rem .56rem; font-size: .875rem; }
  .views svg { width: .95rem; height: .95rem; }
  .rail-extra { grid-area: 1/2/2/3; border: 0; padding: 0; margin: 0; }
  .utility { min-height: 2rem; padding: .35rem .25rem; font-size: .8rem; }
  .page-wrap { padding: 1.45rem 1rem 2rem; }
  .heading-line { margin-bottom: .65rem; }
  .filter-strip { margin: 1rem 0 1.15rem; }
  .table-wrap table { width: max-content; min-width: 100%; }
}
@media (max-width: 28rem) {
  .page-wrap { padding-inline: .82rem; }
  .metric { padding: .85rem .78rem; }
  .metrics { gap: .5rem; }
  .panel { padding: .92rem .8rem; }
  .dashboard-content { gap: .8rem; }
  .filter-strip { gap: .4rem; }
  .select-control { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.metric-line {display:flex;align-items:center;justify-content:space-between;width:100%;gap:.45rem}
.metric-icon {display:grid;place-items:center;width:1.85rem;height:1.85rem;border:1px solid var(--line);border-radius:.55rem;color:var(--brand-deep);background:var(--paper)}
.metric.accent {background:var(--blush);border-color:var(--logo-edge)}
.metric.accent .metric-icon {background:#fdf1eb;border-color:var(--logo-edge);color:var(--brand-deep)}
.metric.accent .sub {color:var(--muted)}
.trend-plot {display:block;width:100%;overflow:visible;height:auto;min-height:9rem}
.trend-plot text {font:12px Geist,sans-serif;fill:var(--muted)}
.plot-wrap {margin-top:1rem}
.chart-hit:focus,.chart-hit:hover {fill:#c83d3814;outline:none}
.chart-note,.report-foot {font-size:.8rem;color:var(--muted);line-height:1.5;margin:.9rem 0 0}
.report-foot {margin:0;display:flex;gap:.6rem;flex-wrap:wrap}
.cost-body {display:flex;align-items:center;justify-content:space-evenly;gap:1.15rem;flex-wrap:wrap}
.donut {max-width:9rem;width:38%;min-width:6.5rem}
.donut-val {font:650 23px var(--display);fill:var(--ink);letter-spacing:-1px}
.donut-unit {font:11px var(--sans);fill:var(--muted)}
.cost-list {list-style:none;flex:1 1 10rem;min-width:0;padding:0;margin:0;display:grid;gap:.72rem;font-size:.87rem}
.cost-list li,.cost-list li span {display:flex;align-items:center;gap:.55rem}
.cost-list li {justify-content:space-between}
.cost-list b {font-weight:550}
.charts-grid {grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.panel .plain-action,.dialog-actions .plain-action,#save-finance {background:var(--paper);border-color:var(--line)}
.panel thead button,.panel .workspace-link {padding:0;border:0;background:transparent;color:inherit;font:inherit}
.panel thead button:hover,.panel .workspace-link:hover {background:transparent;color:var(--brand-deep);text-decoration:underline}
.workspace-link {display:inline-flex;align-items:center;gap:.65rem;text-align:left}
.workspace-avatar {display:inline-grid;place-items:center;width:1.68rem;height:1.68rem;border-radius:.44rem;font-weight:650;font-size:.83rem;background:var(--blush);color:var(--brand-deep)}
.tone-1 {background:#e8dfd4;color:#625952}.tone-2 {background:#f8f2ea;color:#625952}.tone-3 {background:var(--subtle);color:var(--muted)}
.margin-pill {display:inline-block;padding:.17rem .45rem;border-radius:.4rem;color:var(--muted);background:var(--subtle);font-size:.84rem}
.margin-pill.neg {color:#8f2b23;background:var(--blush)}
.flow-tabs {display:inline-flex;border-radius:.55rem;padding:.22rem;gap:.18rem;background:var(--subtle)}
.flow-tabs button {border:0!important;background:transparent!important}
.flow-tabs button[aria-pressed=true] {background:white!important;color:var(--brand-deep);box-shadow:0 1px 4px #43301712}
.flow-diagram {margin-top:1.05rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem;padding:1.65rem 1rem;border:1px solid var(--line);background-color:#f8f2ea;background-image:radial-gradient(var(--control-border) .8px,transparent .8px);background-size:12px 12px;border-radius:.6rem}
.flow-node {position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;padding:.95rem .8rem;background:white;border:1px solid var(--line);border-radius:.55rem;font-size:.94rem}
.flow-node .glyph {color:var(--brand-deep)}.flow-node:last-child .glyph {color:var(--brand-deep)}
.flow-node:not(:last-child):after {content:'›';position:absolute;top:50%;width:1.4rem;right:-1.45rem;line-height:0;text-align:right;border-top:1px solid #bd8e80;color:#8a7970}
.flow-node small,.notes-grid p {color:var(--muted);font-size:.82rem;line-height:1.5}
.notes-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}.notes-grid p {margin:.3rem 0}
.dialog-actions {display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.back-usage {display:block;margin:.5rem .8rem;color:var(--brand-deep);font-size:.88rem}
#scenario-results {display:grid;gap:1.1rem}
.charts-grid > .panel:last-child {display:flex;flex-direction:column}.charts-grid .cost-body {flex:1}
@media(min-width:80rem){.page-wrap{max-width:94rem}.charts-grid .cost-body{justify-content:center}.chart-note{margin-top:.7rem}}
@media(max-width:65rem){.charts-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.cost-list{flex-basis:100%}.donut{width:7rem}.cost-body{gap:.6rem}.cost-list{gap:.35rem}}
@media(max-width:58rem){.charts-grid{grid-template-columns:1fr}.cost-list{flex:1 1 14rem}.cost-body{justify-content:flex-start}.flow-diagram{gap:.8rem}.flow-node:not(:last-child):after{width:.8rem;right:-.85rem}}
@media(max-width:40rem){.flow-diagram{grid-template-columns:1fr 1fr}.flow-node:nth-child(2):after{content:none}.notes-grid{grid-template-columns:1fr}.metric-icon{width:1.5rem;height:1.5rem}.metric-icon svg{width:1rem}.field input{width:100%}.cost-list{flex:1 1 10rem}}
[hidden] { display: none !important; }
.portal-access { max-width: 32rem; margin: 14vh auto; padding: 2rem; }
.portal-access a { color: var(--brand-deep); }
