/* Commons · 20 by 30 · Kentucky navy + gold */
:root {
  --navy: #0B2D5B; --navy2: #12396F; --navy3: #1C4A8A; --ink: #0F1B2D; --ink2: #3B4A5E; --mut: #6B7A90;
  --gold: #C8A23A; --gold2: #E2C46A; --goldbg: #FBF5E3; --bg: #F3F5F9; --card: #fff; --line: #E2E7EF; --line2: #EEF1F6;
  --green: #18875A; --greenbg: #E6F5EE; --red: #C2362B; --redbg: #FCECEA; --amber: #B7791F; --amberbg: #FDF3E1; --blue: #2E6FB7; --bluebg: #E8F0FA;
  --lt: #2E6FB7; --br: #C8A23A; --gr: #2F8F6B;
  --r: 12px; --sh: 0 1px 2px rgba(15,27,45,.06), 0 4px 14px rgba(15,27,45,.05); --sh2: 0 10px 40px rgba(11,45,91,.18);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); display: flex; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- sidebar ---------- */
.side { width: var(--side); flex: none; background: linear-gradient(180deg, var(--navy) 0%, #08234A 100%); color: #DCE5F2; display: flex; flex-direction: column; height: 100%; z-index: 40; }
.brand { display: flex; gap: 11px; align-items: center; padding: 18px 18px 8px; text-decoration: none; color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.wm { font-size: 22px; line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 4px; }
.wm b { font-weight: 800; }
.wm i { font-family: Georgia, serif; color: var(--gold2); font-size: 16px; }
.brand-txt small { display: block; font-size: 10.5px; color: #9FB3CF; margin-top: 3px; letter-spacing: .02em; }
.prod { margin: 6px 18px 12px; padding: 7px 10px; border: 1px solid rgba(200,162,58,.35); border-radius: 8px; font-weight: 800; letter-spacing: .18em; font-size: 11px; color: var(--gold2); }
.prod span { font-weight: 500; letter-spacing: .02em; color: #9FB3CF; margin-left: 4px; text-transform: none; }
#nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.nv { display: flex; align-items: center; gap: 11px; padding: 10px 11px; margin: 2px 0; border-radius: 9px; color: #C9D6E8; text-decoration: none; font-weight: 500; min-height: 44px; }
.nv svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nv:hover { background: rgba(255,255,255,.06); color: #fff; }
.nv.on { background: rgba(200,162,58,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nv .q { margin-left: auto; font-size: 10.5px; color: var(--gold2); font-weight: 700; border: 1px solid rgba(200,162,58,.4); border-radius: 20px; padding: 0 6px; }
.nv-h { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #7D93B3; padding: 14px 12px 4px; }
.side-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #9FB3CF; }
.sf-region { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.lt { background: var(--lt); } .dot.br { background: var(--br); } .dot.gr { background: var(--gr); }

/* ---------- main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.top { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.hamb { display: none; border: 0; background: none; width: 44px; height: 44px; margin-left: -8px; }
.hamb svg { width: 24px; height: 24px; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.crumb { font-weight: 700; color: var(--navy); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb small { font-weight: 500; color: var(--mut); margin-left: 8px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tsearch { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 38px; width: 290px; }
.tsearch svg { width: 16px; height: 16px; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; }
.tsearch input { border: 0; background: none; outline: none; flex: 1; min-width: 0; }
.live-pill { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--greenbg); padding: 6px 11px; border-radius: 20px; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24,135,90,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(24,135,90,0); } 100% { box-shadow: 0 0 0 0 rgba(24,135,90,0); } }
.me { display: flex; align-items: center; gap: 9px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold2); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me-t { white-space: nowrap; }
.me-t b { display: block; font-size: 13px; } .me-t small { color: var(--mut); font-size: 11px; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 26px 30px; -webkit-overflow-scrolling: touch; }
.foot { flex: none; font-size: 11px; color: var(--mut); padding: 7px 22px; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.foot b { color: var(--navy); }
.tabbar { display: none; }
.scrim { display: none; }

/* ---------- generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; min-width: 0; }
.card h3 { font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.card h3 small { font-weight: 500; color: var(--mut); font-size: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h .sp { flex: 1; }
.grid { display: grid; gap: 16px; }
.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)); }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; }
.ph { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: 24px; color: var(--navy); }
.ph p { margin: 4px 0 0; color: var(--ink2); max-width: 760px; }
.ph .sp { flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--line2); color: var(--ink2); white-space: nowrap; }
.tag.g { background: var(--greenbg); color: var(--green); } .tag.r { background: var(--redbg); color: var(--red); } .tag.a { background: var(--amberbg); color: var(--amber); } .tag.b { background: var(--bluebg); color: var(--blue); } .tag.n { background: var(--navy); color: #fff; } .tag.gold { background: var(--goldbg); color: #8A6A12; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; border-radius: 9px; padding: 0 14px; height: 38px; white-space: nowrap; }
.btn:hover { border-color: var(--navy3); }
.btn.pri { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.pri:hover { background: var(--navy2); }
.btn.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold2); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.btn.dan { color: var(--red); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: inline-flex; background: var(--line2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--ink2); font-size: 13px; min-height: 34px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kpi { padding: 16px; }
.kpi .l { font-size: 12px; color: var(--mut); font-weight: 600; }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.up { color: var(--green); font-weight: 700; } .dn { color: var(--red); font-weight: 700; }
.muted { color: var(--mut); }
.empty { padding: 30px; text-align: center; color: var(--mut); }

/* ---------- tables / list ---------- */
.tb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tb-tools .sp { flex: 1; }
.inp, .tb-tools input, .tb-tools select, .fld input, .fld select, .fld textarea { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: #fff; outline: none; min-width: 0; }
.tb-tools input[type=search] { width: 230px; }
.inp:focus, .fld input:focus, .fld select:focus, .fld textarea:focus, .tb-tools input:focus { border-color: var(--navy3); box-shadow: 0 0 0 3px rgba(28,74,138,.12); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; padding: 10px 12px; background: #F8FAFC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl tbody tr[data-id]:hover td { background: #F7F9FD; }
.tbl .r { text-align: right; }
.tbl td:first-child b { white-space: nowrap; }
.cnt { font-size: 12px; color: var(--mut); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(8,24,48,.5); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.mc { min-width: 0; background: #fff; border-radius: 16px; width: min(620px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--sh2); animation: pop .18s; }
.mc.wide { width: min(980px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.mh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mh h2 { font-size: 17px; color: var(--navy); flex: 1; min-width: 0; }
.mx { border: 0; background: var(--line2); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink2); flex: none; }
.mb { padding: 18px 20px; overflow-y: auto; }
.mf { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.mf .sp { flex: 1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 12px; font-weight: 600; color: var(--ink2); }
.fld textarea { height: 76px; padding: 9px 11px; resize: vertical; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--sh2); font-weight: 500; max-width: 360px; animation: pop .2s; border-left: 4px solid var(--gold); }

/* ---------- FEASIBILITY CONSOLE ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 18px; }
.banner { position: relative; overflow: hidden; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #1D4C8E 0%, var(--navy) 45%, #061A36 100%); color: #fff; padding: 26px 28px; box-shadow: var(--sh2); }
.banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 36px solid rgba(200,162,58,.10); }
.banner .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.banner h1 { font-size: 40px; line-height: 1.05; margin: 10px 0 8px; letter-spacing: -.03em; font-weight: 800; }
.banner h1 em { font-style: normal; color: var(--gold2); }
.banner p { margin: 0; color: #C9D6E8; max-width: 640px; font-size: 14.5px; }
.banner .bstats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.banner .bstats div b { display: block; font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.banner .bstats div span { font-size: 11.5px; color: #9FB3CF; }
.goal { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.goal .gt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mut); }
.ring { position: relative; width: 150px; height: 150px; margin: 8px 0 4px; }
.ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring .rc { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring .rc b { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }
.ring .rc span { font-size: 11px; color: var(--mut); margin-top: 3px; }
.cd { display: flex; gap: 6px; margin-top: 6px; }
.cd div { background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 8px; min-width: 52px; }
.cd b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #9FB3CF; }
.goal small { color: var(--ink2); font-size: 12px; margin-top: 8px; }

.q-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.q-head h2 { font-size: 16px; color: var(--navy); }
.q-head .sp { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px 13px; box-shadow: var(--sh); position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 118px; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,45,91,.12); border-color: var(--gold); }
.tile .tn { display: flex; align-items: center; gap: 8px; }
.tile .qn { width: 26px; height: 26px; border-radius: 7px; background: var(--navy); color: var(--gold2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tile .tt { font-weight: 700; color: var(--navy); font-size: 13.5px; line-height: 1.2; }
.tile .live { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--green); background: var(--greenbg); border-radius: 20px; padding: 2px 8px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.tile .live::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.tile .pm { margin-top: 10px; font-size: 13px; color: var(--ink2); flex: 1; }
.tile .pm b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .go { font-size: 11.5px; color: var(--blue); font-weight: 600; margin-top: 8px; }
.tile.flash { animation: flash 1s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(200,162,58,.5); } }

.sim { margin-top: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.sim-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(90deg, var(--goldbg), #fff); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sim-h h2 { font-size: 18px; color: var(--navy); }
.sim-h p { margin: 2px 0 0; color: var(--ink2); font-size: 12.5px; }
.sim-h .sp { flex: 1; }
.sim-b { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; }
.sim-l { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.sim-r { padding: 16px 20px; min-width: 0; }
.addtog { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.addtog button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 0 12px; height: 34px; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); }
.addtog button.on { border-color: var(--navy); color: var(--navy); background: var(--bluebg); }
.addtog button.part { border-style: dashed; }
.map { width: 100%; height: auto; touch-action: manipulation; }
.map .hx { cursor: pointer; transition: opacity .2s; }
.map .hx polygon { stroke: #fff; stroke-width: 2.5; transition: fill .25s, opacity .25s; }
.map .hx.off polygon { fill: #E3E8F0 !important; }
.map .hx.off text { fill: #8A97AA; }
.map .hx:hover polygon { stroke: var(--navy); }
.map text { pointer-events: none; font-weight: 700; }
.map .hub { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.clist summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--blue); padding: 8px 0; min-height: 36px; }
.clist .cchips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.clist .cchips button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; font-weight: 600; font-size: 12.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.clist .cchips button.on { border-color: var(--navy3); color: var(--navy); background: var(--bluebg); }
.map-leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.map-leg span { display: inline-flex; align-items: center; gap: 5px; }
.sl { margin: 14px 0 0; }
.sl .slh { display: flex; align-items: baseline; gap: 8px; }
.sl .slh label { font-weight: 600; font-size: 13px; color: var(--ink); }
.sl .slh b { white-space: nowrap; margin-left: auto; color: var(--navy); font-size: 15px; font-variant-numeric: tabular-nums; }
.sl small { color: var(--mut); font-size: 11.5px; display: block; margin-top: 1px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 2px 0 0; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--navy) var(--p, 50%), #DCE3EE var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); margin-top: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: #DCE3EE; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--navy); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.splitbar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; margin-top: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.splitbar div { display: grid; place-items: center; transition: flex .25s; white-space: nowrap; overflow: hidden; }
.out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.o { background: #F8FAFC; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.o .l { font-size: 11px; color: var(--mut); font-weight: 600; }
.o .v { font-size: 19px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o .v.g { color: var(--green); } .o .v.r { color: var(--red); }
.o .s { font-size: 11px; color: var(--ink2); }
.o.hi { background: var(--navy); border-color: var(--navy); }
.o.hi .l { color: #9FB3CF; } .o.hi .v { color: var(--gold2); } .o.hi .s { color: #C9D6E8; }
.chart { width: 100%; height: auto; }
.chart .bar { transition: fill .2s; }
.chart text { font-size: 11px; fill: var(--mut); }
.reinv { margin-top: 12px; }
.reinv-row { display: grid; grid-template-columns: 96px 1fr 64px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
.reinv-row .bar { height: 10px; border-radius: 5px; background: var(--gold); transition: width .35s; }
.reinv-row .bw { background: var(--line2); border-radius: 5px; overflow: hidden; }
.reinv-row b { text-align: right; font-variant-numeric: tabular-nums; }
.verdict { margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.verdict.ok { background: var(--greenbg); color: #0E5E3E; }
.verdict.warn { background: var(--amberbg); color: #7A4F0F; }
.verdict svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* memo */
.memo { overflow-wrap: break-word; min-width: 0; font-family: Georgia, "Times New Roman", serif; color: #111; max-width: 780px; margin: 0 auto; font-size: 14.5px; line-height: 1.55; }
.memo .mhd { border-bottom: 3px double var(--navy); padding-bottom: 12px; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; }
.memo .mhd img { width: 46px; height: 46px; border-radius: 10px; }
.memo .mhd h1 { font-size: 20px; color: var(--navy); font-family: Georgia, serif; }
.memo .mhd small { font-family: -apple-system, Segoe UI, sans-serif; color: var(--mut); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.memo table.hdr { font-size: 13.5px; margin-bottom: 12px; }
.memo table.hdr td { padding: 1px 12px 1px 0; vertical-align: top; }
.memo h2 { font-size: 15.5px; color: var(--navy); margin: 18px 0 4px; font-family: Georgia, serif; }
.memo h2 span { display: inline-block; background: var(--navy); color: var(--gold2); border-radius: 5px; font-size: 12px; padding: 1px 7px; margin-right: 8px; font-family: -apple-system, sans-serif; vertical-align: 2px; }
.memo p { margin: 4px 0 8px; }
.memo .exec { background: var(--goldbg); border-left: 4px solid var(--gold); padding: 10px 14px; margin: 10px 0; }
.memo table.fig { border-collapse: collapse; width: 100%; font-size: 13px; margin: 6px 0 8px; font-family: -apple-system, Segoe UI, sans-serif; }
.memo table.fig th, .memo table.fig td { border: 1px solid #CBD5E1; padding: 5px 8px; text-align: right; }
.memo table.fig th:first-child, .memo table.fig td:first-child { text-align: left; }
.memo table.fig th { background: #EEF2F8; }
.memo .sig { margin-top: 22px; font-size: 12px; color: var(--mut); font-family: -apple-system, sans-serif; }

/* ---------- WHOLE-PERSON RECORD ---------- */
.rec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mlist { max-height: calc(100vh - 220px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.mrow { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; min-height: 52px; }
.mrow:hover { background: #F5F7FB; }
.mrow.on { background: var(--bluebg); border-color: #C5D7EF; }
.mrow .av { width: 34px; height: 34px; font-size: 11.5px; }
.mrow .mt-n { font-weight: 700; font-size: 13.5px; }
.mrow .mt-s { font-size: 11.5px; color: var(--mut); }
.mrow .tag { margin-left: auto; }
.mhead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.mhead .av { width: 56px; height: 56px; font-size: 18px; }
.mhead h2 { font-size: 22px; color: var(--navy); }
.mhead .meta { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mhead .sp { flex: 1; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 20px; padding: 0 10px; height: 30px; background: #fff; color: var(--ink2); }
.src i { width: 9px; height: 9px; border-radius: 50%; }
.src.off { opacity: .38; text-decoration: line-through; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.ev { position: relative; padding: 8px 12px; border-radius: 10px; margin-bottom: 7px; background: #fff; border: 1px solid var(--line2); border-left: 4px solid var(--c); }
.ev::before { content: ""; position: absolute; left: -22px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.ev .eh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ev .ed { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; width: 74px; flex: none; }
.ev .et { font-weight: 700; font-size: 13px; }
.ev .es { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .04em; }
.ev .edt { font-size: 12px; color: var(--ink2); margin-left: 82px; }
.ev.isED { background: #FFF6F5; }
.ev.isED .et::before { content: "ED "; color: #fff; background: var(--red); border-radius: 4px; font-size: 10px; padding: 1px 4px; margin-right: 6px; vertical-align: 1px; }
.ev.hl { box-shadow: 0 0 0 2px var(--gold); }
.lens { background: linear-gradient(180deg, #0B2D5B, #0A2650); color: #fff; border-radius: 14px; padding: 16px 18px; }
.lens h3 { color: #fff; }
.lens .find { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.lens .find b { color: var(--gold2); font-size: 15px; }
.lens svg text { fill: #C9D6E8; font-size: 11px; }
.lens-g { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lens-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: #9FB3CF; margin: 2px 0 6px; }
.lens-leg span { display: inline-flex; align-items: center; gap: 5px; }
.lens-leg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lens-leg i.dia { background: #EF4444; border-radius: 1px; transform: rotate(45deg); }
.lens .ivs { display: grid; gap: 8px; margin-top: 10px; }
.iv { display: flex; gap: 10px; align-items: center; background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 12px; }
.iv .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--goldbg); color: #8A6A12; font-weight: 800; flex: none; }
.iv .it { flex: 1; min-width: 0; font-size: 12.5px; }
.iv .it b { display: block; font-size: 13px; }
.iv .btn { flex: none; }

/* ---------- care ---------- */
.chw { display: flex; gap: 10px; align-items: center; }
.cap { height: 7px; background: var(--line2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.cap div { height: 100%; background: var(--navy3); border-radius: 4px; }
.cap div.hot { background: var(--red); }
.kan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kcol { background: #EEF2F7; border-radius: 12px; padding: 10px; min-width: 0; }
.kcol h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); display: flex; gap: 6px; margin: 2px 4px 8px; }
.kcol h4 span { margin-left: auto; background: #fff; border-radius: 10px; padding: 0 7px; }
.kc { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; }
.kc b { font-size: 13px; display: block; }
.kc .ks { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.kc .kf { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.kc .kf .btn { margin-left: auto; }
.steps { display: flex; gap: 4px; margin-top: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--green); }
.plan-d { border-left: 4px solid var(--c); padding: 10px 12px; background: #fff; border-radius: 8px; border: 1px solid var(--line2); border-left: 4px solid var(--c); margin-bottom: 8px; }
.plan-d .pd { font-size: 10.5px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- plan ops ---------- */
.dial-wrap { display: flex; flex-direction: column; align-items: center; }
.dial-wrap svg { width: 100%; max-width: 300px; }
.rule { display: flex; gap: 7px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.rule i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.rule i.ok { background: var(--green); } .rule i.no { background: var(--red); }
.payrun { height: 12px; background: var(--line2); border-radius: 6px; overflow: hidden; }
.payrun div { height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--gold)); transition: width .3s; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 44px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- outcomes ---------- */
.met { cursor: pointer; transition: border-color .15s; }
.met.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,162,58,.35); }
.met .mv { display: flex; align-items: baseline; gap: 8px; }
.met .mv b { font-size: 24px; color: var(--navy); font-weight: 800; }
.prog { height: 6px; background: var(--line2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.prog div { height: 100%; background: var(--gold); }
.hbar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.hbar .bw { background: var(--line2); border-radius: 4px; height: 14px; overflow: hidden; }
.hbar .bw div { height: 100%; border-radius: 4px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- governance ---------- */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.gantt-in { --lw: 300px; min-width: 860px; position: relative; }
.grow { display: grid; grid-template-columns: 300px 1fr; border-bottom: 1px solid var(--line2); min-height: 34px; align-items: center; }
.grow .gl { padding: 6px 12px; font-size: 12.5px; }
.grow .gl small { color: var(--mut); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.grow .gb { position: relative; height: 34px; }
.gbar { position: absolute; top: 9px; height: 16px; border-radius: 5px; background: var(--navy3); }
.gbar.done { background: var(--green); }
.gbar.ms { width: 14px !important; height: 14px; top: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--gold); }
.ghead { display: grid; grid-template-columns: 300px 1fr; background: #F8FAFC; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--mut); font-weight: 700; }
.ghead .gy { position: relative; height: 28px; }
.ghead .gy span { position: absolute; top: 7px; border-left: 1px solid var(--line); padding-left: 4px; }
.today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.today::after { content: "Today"; position: absolute; top: 2px; right: 5px; font-size: 10px; color: var(--red); font-weight: 700; }
.sm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.smc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; font-size: 12.5px; }
.smc h4 { color: var(--navy); font-size: 14px; }
.smc .ml { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; font-weight: 700; }
.smc .bor { background: var(--goldbg); border-radius: 8px; padding: 6px 8px; margin-top: 4px; font-size: 12px; }
.smc .bor::before { content: "Commons borrows → "; font-weight: 700; color: #8A6A12; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .lens-g { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .sim-b { grid-template-columns: 1fr; }
  .sim-l { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1280px) {
  .out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .o .v { font-size: 17px; }
  .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tsearch { width: 220px; }
}
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-t { display: none; }
}
@media (max-width: 860px) {
  body { display: block; overflow: auto; height: auto; }
  html, body { height: auto; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform .22s; width: 280px; }
  body.nav-open .side { transform: none; box-shadow: var(--sh2); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(8,24,48,.45); z-index: 39; }
  .main { height: auto; min-height: 100vh; }
  .top { position: sticky; top: 0; z-index: 30; padding: 0 12px; height: 56px; gap: 6px; }
  .hamb { display: grid; place-items: center; }
  .tsearch, .me { display: none; }
  .live-pill { font-size: 11px; padding: 5px 9px; }
  .view { overflow: visible; padding: 14px 12px 90px; }
  .foot { padding-bottom: 76px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--mut); text-decoration: none; padding: 6px 0; min-height: 52px; justify-content: center; }
  .tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--navy); }
  .tabbar a.on svg { stroke: var(--navy); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.keep2, .g3.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .banner { padding: 20px 18px; }
  .banner h1 { font-size: 29px; }
  .banner .bstats { gap: 16px; }
  .banner .bstats div b { font-size: 18px; }
  .goal { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 10px 14px; justify-content: center; }
  .goal .gt { width: 100%; text-align: center; }
  .ring, .ring svg { width: 118px; height: 118px; }
  .ring .rc b { font-size: 24px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { min-height: 0; }
  .sim-h, .sim-l, .sim-r { padding-left: 14px; padding-right: 14px; }
  .out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o .v { font-size: 17px; }
  .ph h1 { font-size: 20px; }
  .rec { grid-template-columns: minmax(0, 1fr); }
  .lens-g { grid-template-columns: minmax(0, 1fr); }
  .mlist { max-height: 260px; }
  .kan { grid-template-columns: minmax(0, 1fr); }
  .sm-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-tools input[type=search] { width: 100%; flex: 1 1 100%; }
  .tb-tools select { flex: 1 1 40%; }
  .tb-tools .sp { display: none; }
  /* tables -> stacked cards */
  .tbl-wrap.cards { border: 0; overflow: visible; }
  .tbl-wrap.cards table, .tbl-wrap.cards tbody, .tbl-wrap.cards tr, .tbl-wrap.cards td { display: block; width: 100%; }
  .tbl-wrap.cards thead { display: none; }
  .tbl-wrap.cards tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; box-shadow: var(--sh); }
  .tbl-wrap.cards td { border: 0; padding: 4px 0; display: flex; gap: 10px; justify-content: space-between; align-items: center; text-align: right; min-height: 26px; }
  .tbl-wrap.cards td::before { content: attr(data-l); font-size: 11px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
  .tbl-wrap.cards td:first-child { display: block; font-size: 14.5px; font-weight: 700; text-align: left; }
  .tbl-wrap.cards td:first-child b { white-space: normal; }
  .memo table.fig { display: block; overflow-x: auto; }
  .memo .mhd h1 { font-size: 17px; }
  .mh h2 { font-size: 15px; }
  .tbl-wrap.cards td:first-child::before { display: none; }
  .tbl-wrap.cards td.r { text-align: right; }
  .modal { padding: 0; place-items: stretch; }
  .mc, .mc.wide { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .form { grid-template-columns: 1fr; }
  .fld input, .fld select { height: 44px; }
  .btn { height: 44px; }
  .btn.sm { height: 38px; }
  .ev .edt { margin-left: 0; }
  .ev .ed { width: auto; }
  .ev .es { margin-left: 0; width: 100%; }
  .grow, .ghead { grid-template-columns: 190px 1fr; }
  .gantt-in { --lw: 190px; min-width: 720px; }
  #toasts { left: 12px; right: 12px; bottom: 76px; }
  .reinv-row { grid-template-columns: 84px 1fr 56px; }
  .hbar { grid-template-columns: 92px 1fr 52px; }
  .crumb small { display: none; }
}

/* ---------- print (memo only) ---------- */
@media print {
  body { display: block; overflow: visible; height: auto; background: #fff; }
  body.printing > *:not(#modal) { display: none !important; }
  body.printing #modal { position: static; background: none; padding: 0; display: block; }
  body.printing .mc { box-shadow: none; max-height: none; width: 100%; height: auto; }
  body.printing .mh, body.printing .mf { display: none; }
  body.printing .mb { overflow: visible; padding: 0; }
}
