:root {
  --forest: #225734; --forest-2: #2E6A42; --velocity: #95C13E; --velocity-2: #B7D66E; --charcoal: #1A201C;
  --cloud: #F9FAF9; --mint: #F1F6E0; --mint-2: #E6EFCF; --line: #E1E7E0; --muted: #66756A; --white: #FFFFFF;
  --danger: #B4432F; --warn: #B7791F;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif; --body: "Roboto", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--cloud); color: var(--charcoal); font-family: var(--body); font-size: 14.5px; line-height: 1.5; }
a { color: var(--forest); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--forest); margin: 0; line-height: 1.2; }
h1 { font-size: 27px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 15px; font-weight: 600; }
.eyebrow { font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--velocity); }
.eyebrow.forest { color: var(--forest); }
.lede { color: var(--muted); font-size: 15px; margin: 6px 0 24px; max-width: 74ch; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { background: #F3F5F2; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; margin: 0; }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--white); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { display: block; font-family: var(--display); font-weight: 700; color: var(--forest); font-size: 14px; line-height: 1.15; }
.brand small { display: block; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a:hover { background: #F2F5F1; }
.nav a.active { background: var(--mint); color: var(--forest); font-weight: 600; box-shadow: inset 3px 0 0 var(--velocity); }
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav .sub { font-size: 11px; color: var(--muted); font-weight: 400; display: block; }
.side .foot { margin-top: auto; padding: 14px 18px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); }
.top { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.crumb { font-family: var(--display); font-weight: 600; color: var(--forest); font-size: 14px; }
.crumb span { color: var(--muted); font-weight: 500; }
.user { position: relative; }
.user > button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font: inherit; color: var(--charcoal); }
.user > button:hover { background: #F2F5F1; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 12px; }
.user .menu { position: absolute; right: 0; top: 46px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 32, 28, .14); min-width: 220px; padding: 8px; display: none; z-index: 20; }
.user.open .menu { display: block; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 13.5px; }
.menu .who span { color: var(--muted); font-size: 12px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--charcoal); font-size: 13.5px; }
.menu a:hover { background: var(--mint); color: var(--forest); }
main { padding: 30px 36px 60px; max-width: 1320px; width: 100%; }

/* blocks */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.kpi .v { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--forest); line-height: 1.1; }
.kpi .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; background: #EEF1ED; color: var(--muted); white-space: nowrap; }
.pill.live, .pill.shipped, .pill.good { background: var(--mint); color: var(--forest); }
.pill.accent { background: var(--velocity); color: var(--charcoal); }
.pill.warn { background: #FBF1DC; color: #8A5A0F; }
.pill.bad { background: #F9E4E0; color: var(--danger); }
.pill.high { background: #F9E4E0; color: var(--danger); }
.pill.medium { background: #FBF1DC; color: #8A5A0F; }
.pill.low { background: #EEF1ED; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: #fff; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 1px solid var(--forest); cursor: pointer; font-family: var(--body); }
.btn:hover { background: var(--forest-2); }
.btn.accent { background: var(--velocity); border-color: var(--velocity); color: var(--charcoal); }
.btn.accent:hover { background: #A5CC52; }
.btn.ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn.ghost:hover { background: var(--mint); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.callout { background: var(--mint); border-left: 4px solid var(--velocity); border-radius: 10px; padding: 14px 18px; }
.callout b { color: var(--forest); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); font-weight: 600; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.link { cursor: pointer; }
tr.link:hover td { background: #F6F8F4; }
.delta.good { color: var(--forest); font-weight: 600; }
.delta.bad { color: var(--danger); font-weight: 600; }
.delta.flat { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--forest); border-color: var(--velocity); font-weight: 600; }
.frame { width: 100%; height: calc(100vh - 210px); min-height: 640px; border: 0; background: #fff; border-radius: 12px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: 34px; }
.hero p { font-size: 15.5px; color: var(--charcoal); max-width: 60ch; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; flex: none; }
.step b { font-family: var(--display); color: var(--forest); font-size: 14.5px; }
.cap-row { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cap-row:last-child { border-bottom: 0; }
.cap { background: var(--forest); color: #fff; border-radius: 16px; padding: 26px 18px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.cap-ex { background: var(--mint); border-left: 4px solid var(--velocity); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--charcoal); }
.hist { display: flex; align-items: flex-end; gap: 2px; height: 42px; }
.hist i { flex: 1; background: var(--velocity-2); border-radius: 2px 2px 0 0; min-height: 1px; }
.hist i.hi { background: var(--forest); }
.feat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.feat .name { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.feat .val { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--forest); margin: 2px 0 6px; }
.feat .rng { font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; display: block; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; background: #eee; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: 11.5px; display: block; }
.filters a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 12.5px; color: var(--muted); }
.filters a.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--cloud); padding: 24px; }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(26, 32, 28, .08); }
.login img { width: 64px; margin-bottom: 12px; }
.gbtn { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; background: var(--forest); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.gbtn:hover { background: var(--forest-2); }
.gbtn svg { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--velocity); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(149, 193, 62, .25); }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .nav { flex-direction: row; }
  .nav .sub, .side .foot { display: none; }
  main { padding: 20px 16px 40px; }
  .g2, .g3, .g4, .g5, .hero, .cap-row { grid-template-columns: 1fr; }
  .top { padding: 0 16px; }
}

.bench { display: flex; flex-direction: column; gap: 4px; flex: none; min-width: 300px; }
.bench label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.bench select { font: inherit; font-weight: 500; padding: 9px 36px 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23225734' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--forest); cursor: pointer; }
.bench select:focus { outline: 2px solid var(--velocity); outline-offset: 1px; }

.pareto-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 22px; align-items: start; }
.key { font-size: 13px; }
.key td { padding: 7px 8px; }
.pt { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2E6A42; color: #fff; font-family: var(--display); font-weight: 700; font-size: 11px; }
.pt.cur { background: var(--forest); box-shadow: 0 0 0 4px rgba(149, 193, 62, .28); }
.pt.proj { background: #fff; color: #4E6B2C; border: 2px solid var(--velocity); }
.cands { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.cand { display: grid; grid-template-columns: 220px 1fr 150px; gap: 14px; align-items: center; padding: 5px 0; font-size: 13px; }
.cand .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand .track { position: relative; height: 12px; background: #F1F4F0; border-radius: 6px; }
.cand .track i { display: block; height: 100%; background: var(--velocity-2); border-radius: 6px; }
.cand .track b { position: absolute; top: -4px; width: 2px; height: 20px; background: var(--forest); }
.cand .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cand.cur .name { color: var(--forest); font-weight: 700; }
.cand.cur .track i { background: var(--forest); }
@media (max-width: 960px) { .pareto-grid { grid-template-columns: 1fr; } .cand { grid-template-columns: 1fr; gap: 4px; } }

.tl-day { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.tl-day:first-child { margin-top: 0; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 30px 1fr 84px; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tl-item:first-child { border-top: 0; }
.tl-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EEF1ED; color: var(--muted); }
.tl-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-item.found .tl-icon { background: var(--mint); color: var(--forest); }
.tl-item.run .tl-icon { background: var(--velocity); color: var(--charcoal); }
.tl-item.decision .tl-icon { background: var(--forest); color: #fff; }
.tl-item time { font-size: 12px; color: var(--muted); text-align: right; padding-top: 5px; white-space: nowrap; }
.tl-detail { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.tl-metrics { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 5px; color: var(--muted); }
.tl-metrics b { color: var(--charcoal); }
.pt.off { background: #EEF1ED; color: var(--muted); }

.profile-card { text-decoration: none; display: block; color: inherit; }
.profile-card:hover { border-color: var(--velocity); }
.model-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 10px 12px; background: var(--mint); border-radius: 9px; }
.model-line code { font-size: 13px; font-weight: 600; color: var(--forest); }

.stackbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #F1F4F0; margin-top: 8px; }
.stackbar i { display: block; height: 100%; }

.subcards { gap: 24px; }
.subcard { background: #FBFCFA; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.subcard h3 { margin-bottom: 10px; }
.subcard table { font-size: 13px; }

.anatomy td { font-size: 13px; line-height: 1.45; }
.anatomy td.hl { background: var(--mint); }
.findings { display: grid; gap: 10px; margin-top: 14px; }
.finding { background: #FBFCFA; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.finding .ev { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; margin-top: 6px; }
.sugg { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.sugg li { padding: 10px 14px 10px 6px; border-left: 3px solid var(--velocity); background: #FCFDFB; border-radius: 0 10px 10px 0; }
.sugg .kv { font-size: 13px; }
.measured { margin-top: 8px; font-size: 12.5px; background: var(--mint); border-radius: 8px; padding: 6px 10px; }
.cat { scroll-margin-top: 80px; }

.tip { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: help; outline: none; }
.tip-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font: 600 10px/1 var(--display); font-style: normal; }
.tip-box { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 260px; background: var(--charcoal); color: #fff; font-size: 12.5px; line-height: 1.4; font-weight: 400; padding: 8px 11px; border-radius: 8px; box-shadow: 0 8px 24px rgba(26, 32, 28, .18); }
.tip:hover .tip-box, .tip:focus .tip-box, .tip:focus-within .tip-box { display: block; }
