:root {
  --bg: #f1f3fa; --card: #ffffff; --ink: #151940; --sub: #58628a; --line: #e1e5f3;
  --navy: #151940; --fire: #9c211a; --brand: #3b6fe8; --brand-ink: #ffffff; --glyph: #ffffff;
  --green: #0b8a5f; --green-bg: #ddf5ea; --amber: #9a5a00; --amber-bg: #fff0cf; --red: #b8261c; --red-bg: #fde3e0; --orange: #b24a00; --orange-bg: #ffe8d6;
  --c-green: #12c47e; --c-amber: #ffb400; --c-red: #f0443a; --c-blue: #3b6fe8; --c-peri: #939cd0;
  --c-critical: #9c211a; --c-high: #ff6900; --c-medium: #ffb400; --c-low: #939cd0;
  --shadow: 0 1px 2px rgba(21, 25, 64, .06), 0 10px 28px rgba(21, 25, 64, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e2a; --card: #131846; --ink: #eef1ff; --sub: #a0a9d6; --line: #262d66; --brand: #7ba2ff; --brand-ink: #0b0e2a; --glyph: #0b0e2a;
    --green: #37e2a1; --green-bg: #0f3d3a; --amber: #ffc93d; --amber-bg: #3d3010; --red: #ff7468; --red-bg: #43171f; --orange: #ff9a57; --orange-bg: #4a2410;
    --c-green: #2be3a0; --c-amber: #ffc93d; --c-red: #ff5a4f; --c-blue: #6f9bff; --c-peri: #939cd0;
    --c-critical: #ff4b4b; --c-high: #ff8a3d; --c-medium: #ffc93d; --c-low: #939cd0;
    --shadow: 0 0 0 1px rgba(123, 162, 255, .04), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin-bottom: 12px; }
h2.pad { padding: 16px 16px 0; }
h2.sect { margin: 28px 0 12px; font-size: 18px; }
p { margin: 0 0 12px; }
button { font: inherit; color: inherit; }
.sub { color: var(--sub); font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bad { color: var(--red); font-weight: 600; }
.warn { color: var(--amber); font-weight: 600; }
.ok-t { color: var(--green); }
.code { font-size: 11px; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }
.where { font-size: 12px; color: var(--sub); background: var(--bg); border-radius: 4px; padding: 1px 8px; margin-left: 4px; }
.empty { color: var(--sub); }
.more, .note { color: var(--sub); font-size: 13px; margin-top: 8px; }

/* header */
.top { display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.brand small { color: #b9c1f0; font-size: 11px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 0 8px; }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--fire); position: relative; }
.mark::after { content: ""; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 50%; }
.personas { display: flex; gap: 4px; background: rgba(255, 255, 255, .08); padding: 3px; border-radius: 10px; }
.personas button, .tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; cursor: pointer; color: var(--sub); font-weight: 600; }
.personas button { color: #c3cbf5; }
.personas button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.personas button:hover:not(.on) { color: #fff; background: rgba(255, 255, 255, .08); }
.tabs button:hover { color: var(--ink); }
.who { margin-left: auto; text-align: right; line-height: 1.25; }
.who span { display: block; font-size: 12px; color: #b9c1f0; }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 24px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px; }
footer { max-width: 1180px; margin: 0 auto; padding: 8px 24px 40px; color: var(--sub); font-size: 12px; }

/* layout */
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead .actions { display: flex; gap: 8px; align-items: center; }
.lead { color: var(--sub); margin: 4px 0 0; font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow-x: auto; }
.col-main > .card:last-child, .col-side > .card:last-child { margin-bottom: 0; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--card); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn:hover:not(:disabled) { border-color: var(--brand); }
.btn.pri { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.full { display: block; width: 100%; margin-top: 8px; text-align: left; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 600; font-size: inherit; }
.link:hover { text-decoration: underline; }
.back { margin-bottom: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; line-height: 16px; white-space: nowrap; }
.badge .ic { width: 16px; height: 16px; flex: none; display: block; }
.badge.green { background: var(--green-bg); color: var(--green); } .badge.amber { background: var(--amber-bg); color: var(--amber); } .badge.red { background: var(--red-bg); color: var(--red); }
.sev { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; min-width: 62px; text-align: center; }
.sev.critical { background: var(--red); color: #fff; } .sev.high { background: var(--orange-bg); color: var(--orange); }
.sev.medium { background: var(--amber-bg); color: var(--amber); } .sev.low { background: var(--bg); color: var(--sub); }
.due { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; background: var(--green-bg); color: var(--green); min-width: 64px; text-align: center; }
.due.soon { background: var(--amber-bg); color: var(--amber); } .due.overdue, .due.never { background: var(--red-bg); color: var(--red); }
.flag { display: block; font-size: 12px; color: var(--red); background: var(--red-bg); border-radius: 4px; padding: 1px 8px; margin-bottom: 3px; }

/* owner hero */
.hero { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 16px; border: 1px solid var(--line); }
.hero.green { background: var(--green-bg); color: var(--green); } .hero.amber { background: var(--amber-bg); color: var(--amber); } .hero.red { background: var(--red-bg); color: var(--red); }
.hero h1 { font-size: 38px; margin: 4px 0 8px; } .hero .lead { color: var(--ink); max-width: 520px; }
.eyebrow { font-size: 13px; font-weight: 600; opacity: .85; }
.hero .stats { display: flex; gap: 24px; align-items: flex-end; }
.hero .stats div { display: flex; flex-direction: column; max-width: 110px; }
.hero .stats b { font-size: 30px; line-height: 1; color: var(--ink); } .hero .stats span { font-size: 12px; color: var(--ink); opacity: .75; margin-top: 4px; }
.big { font-size: 28px; font-weight: 700; margin-bottom: 4px; } .big small { font-size: 13px; font-weight: 400; color: var(--sub); }
.warn-t { color: var(--amber); font-weight: 600; margin-top: 12px; }
.gaps { padding-left: 16px; margin: 8px 0 12px; } .gaps li { margin-bottom: 8px; }
.sw { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; margin-bottom: 12px; }
.col-side .btn { margin-bottom: 8px; }

/* lists */
.plain, .inbox, .tasks, .chips { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.inbox li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); border-left: 3px solid transparent; padding-left: 12px; margin-left: -12px; }
.inbox li:first-child { border-top: 0; }
.inbox li.p0 { border-left-color: var(--red); } .inbox li.p1 { border-left-color: var(--red); opacity: .95; } .inbox li.p2 { border-left-color: var(--amber); }
.ib-main { min-width: 0; } .ib-t { font-weight: 600; } .ib-m { color: var(--sub); font-size: 13px; }
.ib-b { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); margin-right: 8px; }
.task { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.task:first-child { border-top: 0; padding-top: 0; }
.t-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.who-tag { font-size: 12px; color: var(--sub); }
.count { font-size: 12px; background: var(--bg); border-radius: 10px; padding: 1px 8px; margin-left: 8px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips li { font-size: 12px; background: var(--bg); border-radius: 6px; padding: 3px 8px; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }

/* vendors */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vcard { margin: 0; }
.vhead { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.vmeta { color: var(--sub); font-size: 13px; margin-bottom: 12px; }
.vfacts { list-style: none; padding: 0; margin: 0; } .vfacts li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead + tbody tr:first-child td { border-top: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--bg); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; min-width: 170px; }

/* facilities */
.sel { font-size: 13px; color: var(--sub); display: flex; gap: 8px; align-items: center; }
.sel select, .fld input, .fld textarea, #dtext { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); color: var(--ink); }
.alert { display: flex; justify-content: space-between; gap: 16px; padding: 16px 16px; border-radius: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.alert.red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); } .alert .sub { color: var(--ink); opacity: .8; }
.a-b { display: flex; gap: 8px; flex-wrap: wrap; }

/* risk */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 30px; line-height: 1.1; } .kpi span { font-size: 12px; color: var(--sub); }
.kpi.bad b { color: var(--red); } .kpi.warn b { color: var(--amber); }

/* building tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* modal */
dialog { border: 0; border-radius: 14px; padding: 24px; width: min(640px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-height: 90vh; overflow: auto; }
dialog.wide { width: min(960px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 18, 28, .55); }
#dtext { width: 100%; resize: vertical; line-height: 1.45; }
.dlg-b, .pack-bar { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }
.fld { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; } .fld input, .fld textarea { width: 100%; margin-top: 4px; font-weight: 400; }
.pack h1 { font-size: 22px; margin-bottom: 8px; } .pack h2 { margin: 20px 0 8px; }
.pack .tbl th, .pack .tbl td { padding: 8px 8px; font-size: 12px; }
.pack .small { font-size: 11px; color: var(--sub); margin-top: 20px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; font-weight: 600; z-index: 20; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) { .who { display: none; } .top { gap: 16px; } .personas button { padding: 8px 12px; } }
.tbl td:first-child { min-width: 190px; }
.tbl.compact th, .tbl.compact td { padding-left: 12px; padding-right: 12px; }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  main { padding: 16px; } .top { padding: 12px 16px; } .who { display: none; } .demo-bar { padding: 8px 16px; }
  .personas { width: 100%; overflow-x: auto; } .personas button { padding: 8px 12px; white-space: nowrap; }
  .hero { padding: 20px; } .hero h1 { font-size: 30px; }
  .inbox li, .task { flex-direction: column; align-items: stretch; } .ib-b, .t-act { justify-content: flex-start; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
#print-root { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body > header, body > .demo-bar, body > main, body > footer, #toast, dialog, .no-print { display: none !important; }
  #print-root { display: block; color: #000; background: #fff; }
  #print-root .tbl tr, #print-root li { break-inside: avoid; }
  #print-root h1, #print-root h2 { break-after: avoid; }
  #print-root .kbs, #print-root .card { box-shadow: none; }
  #print-root .kbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #print-root textarea { resize: none; } #print-root input[type=date]::-webkit-calendar-picker-indicator { display: none; }
  #print-root .kb { border-left: 0; border-top: 1px solid var(--line); } #print-root .kb:nth-child(even) { border-left: 1px solid var(--line); } #print-root .kb:nth-child(-n+2) { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* dashboard */
.dh h1 { font-size: 32px; margin: 2px 0 4px; } .dh-r { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; } .eyebrow { font-size: 13px; font-weight: 600; color: var(--sub); }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.jump button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--sub); font-weight: 600; }
.jump button:hover { color: var(--brand); border-color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi .k-l { display: block; font-size: 12px; font-weight: 600; color: var(--sub); } .kpi b { margin: 2px 0; font-size: 32px; } .kpi .k-s { display: block; font-size: 12px; color: var(--sub); }
.charts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.charts2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.chart { margin: 0; } .chart h2 { margin-bottom: 2px; } .chart .sub { margin: 0 0 12px; }
.dn-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: none; } .dn-big { font-size: 26px; font-weight: 700; fill: var(--ink); } .dn-sm { font-size: 11px; fill: var(--sub); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 120px; } .legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; } .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .legend span { flex: 1; } 
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.hb-t { background: var(--bg); border-radius: 6px; height: 14px; overflow: hidden; display: block; } .hb-f { display: block; height: 100%; border-radius: 6px; }
.hb-f.green { background: var(--green); } .hb-f.amber { background: var(--amber); } .hb-f.red { background: var(--red); } .hb-v { text-align: right; }
.cols-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; height: 170px; padding-top: 8px; }
.cc { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; flex: 1; height: 100%; }
.cc b { font-size: 18px; } .cc-bar { width: 100%; max-width: 54px; border-radius: 6px 6px 0 0; } .cc-bar.green { background: var(--green); } .cc-bar.amber { background: var(--amber); } .cc-bar.red { background: var(--red); }
.cc-l { font-size: 11px; color: var(--sub); text-align: center; }
.sect { scroll-margin-top: 70px; } .sect .count { font-size: 12px; }
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; background: var(--bg); margin: 4px 0; min-width: 110px; }
.stack .g { background: var(--green); } .stack .a { background: var(--amber); } .stack .r { background: var(--red); } .stack .n { background: var(--c-low); }
.vt td { vertical-align: top; } .k-top b { font-size: 15px; }
.vt td:first-child { min-width: 210px; }
.more-b { margin-top: 12px; }
.rep-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thread { list-style: none; padding: 0; margin: 0 0 8px; max-height: 50vh; overflow: auto; } .thread li { border-top: 1px solid var(--line); padding: 12px 0; } .thread li:first-child { border-top: 0; }
.th-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .thread pre { white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--sub); margin: 8px 0 0; max-height: 110px; overflow: auto; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charts3, .charts2 { grid-template-columns: 1fr; } .dh-r { align-items: flex-start; } }

/* ---- theme layer: banner, KPI accents, chart punch ---- */
.card { border-radius: 14px; }
.dh.lv-amber::after { background: var(--c-amber); } .dh .lead { color: rgba(255, 255, 255, .85); } .dh .sel { color: rgba(255, 255, 255, .75); } .dh .sel select option { color: #151940; } .kpi { position: relative; border-top: 3px solid var(--brand); }
.kpi.warn { border-top-color: var(--c-amber); } .kpi.bad { border-top-color: var(--c-red); }
.kpi b { letter-spacing: -.02em; }
.donut circle[stroke-dasharray] { transition: stroke-width .15s; } .donut circle[stroke-dasharray]:hover { stroke-width: 25; }
.donut { filter: drop-shadow(0 6px 14px rgba(59, 111, 232, .16)); }
.dn-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hb-t { height: 16px; border-radius: 8px; } .hb-f { border-radius: 8px; }
.hb-f.green { background: var(--c-green); } .hb-f.amber { background: var(--c-amber); } .hb-f.red { background: var(--c-red); }
.cc-bar { border-radius: 8px 8px 0 0; } .cc-bar.green { background: var(--c-green); } .cc-bar.amber { background: var(--c-amber); } .cc-bar.red { background: var(--c-red); }
.stack { height: 10px; border-radius: 5px; } .stack .g { background: var(--c-green); } .stack .a { background: var(--c-amber); } .stack .r { background: var(--c-red); } .stack .n { background: var(--c-peri); }
.btn.pri { background: linear-gradient(180deg, #4b7df0, var(--brand)); border-color: var(--brand); box-shadow: 0 2px 8px rgba(59, 111, 232, .3); }
.tabs button.on, .jump button:hover { color: var(--brand); }
.chart h2 { font-size: 15px; }

/* ---- compact status banner (replaces the big hero) ---- */
body { overflow-x: hidden; font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hero-in { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; border-radius: 18px; padding: 24px 28px; margin-bottom: 16px; color: #fff; box-shadow: var(--shadow);
  background: var(--navy); }
.hero-in > * { grid-column: 1; }
.hero-in::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c-green); }
.hero-in.lv-amber::after { background: var(--c-amber); } .hero-in.lv-red::after { background: var(--c-red); }
.hero-in .eyebrow { color: rgba(255, 255, 255, .65); font-size: 13px; font-weight: 600; }
.hero-in h1 { font-size: 32px; font-weight: 700; color: #fff; margin: 2px 0 4px; display: flex; align-items: center; gap: 12px; letter-spacing: -.01em; }
.hero-in h1 b { font-weight: inherit; }
.hero-in h1::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c-green); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 18px var(--c-green); }
.hero-in.lv-amber h1::before { background: var(--c-amber); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 18px var(--c-amber); }
.hero-in.lv-red h1::before { background: var(--c-red); box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 18px var(--c-red); }
.hero-in .lead { color: rgba(255, 255, 255, .85); margin: 4px 0 0; font-size: 16px; }
.hero-in .hero-ctl { grid-column: 2; grid-row: 1 / span 3; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hero-in .jump { grid-column: 1 / -1; margin: 16px 0 0; }
.hero-in .jump button { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.hero-in .jump button:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-in .sel, .hero-in .sw { color: rgba(255, 255, 255, .8); margin: 0; }
.hero-in .sel select { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero-in .sel select option { color: #151940; }
.hero-in .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-in .btn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-in .badge { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero-in .badge .ic { color: var(--c-green); --glyph: #0f1233; } .hero-in .badge.amber .ic { color: var(--c-amber); } .hero-in .badge.red .ic { color: var(--c-red); }
.back-w { grid-column: 1; justify-self: start; color: rgba(255, 255, 255, .85); margin-bottom: 4px; }
.hero-in.small h1 { font-size: 28px; }
.kpis { margin-top: 0; }
.jump button { background: rgba(255, 255, 255, .1); }
/* sections: plain headings with a one-line note */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 30px 0 12px; scroll-margin-top: 70px; }
.sec-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.sh-r { color: var(--sub); font-size: 13px; margin: 0; max-width: 520px; }
.rep-b { display: flex; gap: 8px; flex-wrap: wrap; }
main { padding-bottom: 40px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-in .hero-ctl { grid-column: 1; grid-row: auto; align-items: flex-start; margin-top: 12px; } }

/* vendor cards */
.vkey { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin: 0 0 12px; }
.vkey span, .kb-f li { display: inline-flex; align-items: center; gap: 8px; }
.vkey i, .kb-f i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
i.g { background: var(--c-green); } i.a { background: var(--c-amber); } i.r { background: var(--c-red); } i.n { background: var(--c-peri); }
.vlist { display: flex; flex-direction: column; gap: 16px; }
.vc { margin: 0; padding: 0; border-left: 4px solid var(--c-green); overflow: hidden; }
.vc.amber { border-left-color: var(--c-amber); } .vc.red { border-left-color: var(--c-red); }
.vc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vc-n { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; } .vc-n b { font-size: 17px; }
.vc-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb { padding: 16px 20px 16px; border-left: 1px solid var(--line); } .kb:first-child { border-left: 0; }
.kb-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.kb-t { font-weight: 600; font-size: 11px; color: var(--sub); background: var(--bg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.kb-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kb-n small { font-size: 12px; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.kb-n.green { color: var(--green); } .kb-n.amber { color: var(--amber); } .kb-n.red { color: var(--red); }
.kb .stack { margin: 8px 0 12px; }
.kb-f { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--sub); }
@media (max-width: 860px) { .kbs { grid-template-columns: 1fr; } .kb { border-left: 0; border-top: 1px solid var(--line); } .kb:first-child { border-top: 0; } }

.kb-f .avg { color: var(--ink); font-weight: 600; }
.vc-f { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--sub); }
.vc-f b { color: var(--ink); font-weight: 700; margin-left: 4px; } .vc-f b.bad { color: var(--red); }
.vc-late { border-top: 1px solid var(--line); padding: 0 20px; }
.vc-late summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 13px; color: var(--brand); }
.vc-late ul { list-style: none; margin: 0; padding: 0 0 8px; } .vc-late li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.lk { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; min-width: 62px; text-align: center; flex: none; margin-top: 2px; }
.lk.missed { background: var(--red-bg); color: var(--red); } .lk.risk { background: var(--amber-bg); color: var(--amber); }

/* vendor review sheet */
.rv h1 { font-size: 26px; margin: 2px 0 4px; } .rv h2 { font-size: 16px; margin: 24px 0 8px; } .rv .eyebrow { margin: 0; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.rv-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rv-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; } .rv-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--sub); }
.rv-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.rv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-ag { margin: 0; padding-left: 24px; } .rv-ag li { margin-bottom: 8px; } .rv-ag label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; } .rv-ag input { margin-top: 4px; flex: none; }
.rv-ag input:checked + span { color: var(--sub); text-decoration: line-through; }
.rv-rec { display: flex; gap: 20px; flex-wrap: wrap; } .rv-rec label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.rv-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; } @media (max-width: 700px) { .rv-grid { grid-template-columns: 1fr; } }
.rv .kbs { border-radius: 14px; } .rv .tbl th, .rv .tbl td { padding: 8px 12px; font-size: 13px; }
@media print { .rv-ag input, .rv-rec input { accent-color: #000; } .rv textarea, .rv input { border: 0; padding: 0; } }

.vc-f b.up, .tr-t.up { color: var(--green); } .tr-t.bad { color: var(--red); }
.tr-head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; } .tr-t { font-weight: 700; font-size: 15px; }
.cols-chart.tr { height: 170px; } .cc-bar.n { background: var(--c-peri); } .cc-bar.now { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.tr .cc-l { font-size: 11px; line-height: 1.3; }

/* ---- spend, vendor portal, owner line ---- */
.own-line { background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; color: var(--sub); } .own-line b { color: var(--ink); }
.sp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 8px; }
.seg { display: flex; gap: 3px; background: var(--bg); border-radius: 10px; padding: 3px; } .seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--sub); font-size: 13px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.sp-cols { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.sp-c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.sp-t { font-size: 11px; font-weight: 700; height: 16px; color: var(--ink); white-space: nowrap; }
.sp-stack, .sp-pair { display: flex; width: 100%; max-width: 46px; align-items: flex-end; height: 150px; } .sp-stack { flex-direction: column-reverse; justify-content: flex-start; } .sp-pair { gap: 3px; max-width: 54px; }
.sp-b { display: block; width: 100%; } .sp-b.done { background: var(--brand); } .sp-b.com { background: var(--c-peri); opacity: .75; } .sp-b.prior { background: var(--line); }
.sp-stack .sp-b:last-child { border-radius: 6px 6px 0 0; } .sp-pair .sp-b { border-radius: 5px 5px 0 0; }
.sp-c.now .sp-l { color: var(--brand); font-weight: 700; } .sp-l { font-size: 11px; color: var(--sub); }
.sp-k { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; } .sp-k.done { background: var(--brand); } .sp-k.com { background: var(--c-peri); } .sp-k.prior { background: var(--line); }
.sp-key { margin-top: 12px; }
.sp-by { display: grid; gap: 16px; margin-bottom: 16px; } .sp-by.n1 { grid-template-columns: 1fr; } .sp-by.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-by.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-f.blue { background: var(--brand); }
.ok-t { color: var(--green); font-weight: 600; }
.pql { display: block; } .pq { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 12px 12px; margin-left: -12px; border-top: 1px solid var(--line); border-left: 3px solid transparent; list-style: none; } .pql .pq:first-child { border-top: 0; }
.pq.late { border-left-color: var(--c-red); } .pq-m { min-width: 0; } .pq-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; } .pq-d { font-size: 13px; font-weight: 600; color: var(--sub); }
.pq .sev { margin-left: 8px; } .portal .kpis { margin-bottom: 8px; }
@media (max-width: 1000px) { .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-by.n2, .sp-by.n3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .pq { flex-direction: column; align-items: stretch; } .pq-r { flex-direction: row; align-items: center; justify-content: space-between; } .sp-cols { gap: 3px; } .sp-t { font-size: 9px; } }
.kbs { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---- spacing scale: 4 / 8 / 12 / 16 / 24 / 32. Blocks are 16 apart, sections 32, a heading sits 12 above its content. ---- */
.hero-in { margin-bottom: 16px; padding: 24px 28px; }
.kpis, .sp-tiles, .charts3, .charts2, .sp-by { gap: 16px; margin-bottom: 16px; }
.kpi { padding: 16px; }
.card { margin-bottom: 16px; }
.charts3 > .chart, .charts2 > .chart, .sp-by > .chart { margin: 0; }
.sec-head { margin: 32px 0 12px; }
.dash > .sec-head:first-of-type, .kpis + .sec-head { margin-top: 32px; }
.alert { padding: 16px; margin-bottom: 16px; }
.vlist { gap: 16px; } .vlist .vc { margin: 0; }
.vkey { margin: 0 0 12px; }
.vc-h { padding: 16px 20px; } .kb { padding: 16px 20px; } .vc-f { padding: 12px 20px; }
.inbox li, .task, .pq { padding-top: 12px; padding-bottom: 12px; } .plain li { padding: 12px 0; }
.tbl th { padding: 12px 16px; } .tbl td { padding: 12px 16px; }
.tabs { margin-bottom: 16px; }
.pagehead, .rv-bar { margin-bottom: 16px; }
.dash > :last-child, .bld > :last-child { margin-bottom: 0; }
.plain.pql .pq { padding: 12px 0 12px 12px; margin-left: -12px; }
/* form dialogs: one 16px rhythm between title, fields, notes and buttons */
dialog:not(.wide)[open] { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
dialog:not(.wide) > * { margin: 0; }
dialog:not(.wide) h2 { font-size: 18px; }
dialog:not(.wide) .fld { display: flex; flex-direction: column; gap: 8px; }
dialog:not(.wide) .fld input, dialog:not(.wide) .fld textarea { margin: 0; }
dialog:not(.wide) .dlg-b { margin-top: 4px; }
dialog:not(.wide) .thread { margin: 0; }

/* ---- unslop pass: type, status marks, details, motion ---- */
/* status dot: flat, no glow  */
.hero-in h1::before { width: 12px; height: 12px; box-shadow: none; }
.hero-in.lv-amber h1::before, .hero-in.lv-red h1::before { box-shadow: none; }
/* primary button: flat */
.btn.pri { background: var(--brand); box-shadow: none; }
.btn.pri:hover:not(:disabled) { filter: brightness(1.08); }
/* donut: no shadow; hover is an opacity change */
.donut { filter: none; }
.donut circle[stroke-dasharray] { transition: opacity .15s ease-out; }
.donut circle[stroke-dasharray]:hover { stroke-width: 20; opacity: .8; }
/* KPI cards: status lives in the figure color, not a colored top edge */
.kpi, .kpi.warn, .kpi.bad { border-top: 1px solid var(--line); }
/* weights: 600 for figures and headings, no 700 to 800 */
h1, h2, .sec-head h2, .hero-in h1, .vc-n b, .tr-t, .kb-h, .sp-t, .cc b { font-weight: 600; }
.kpi b, .kb-n, .big, .dn-big, .hero .stats b { font-weight: 600; }
.badge, .sev, .due, .lk, .tag, .btn, .jump button, .seg button, .personas button, .tabs button, .rv-tabs button, .tbl th, .bad, .warn, .vc-f b, .hb-v, .legend b { font-weight: 600; }
.kpi b, .kb-n, .dn-big, .hb-v, .legend b, .sp-t, .cc b, .num, .tbl td, .vc-f b, .big, .k-s { font-variant-numeric: tabular-nums; }
/* sentence case labels, normal tracking */
.sev, .lk, .tag, .tbl th, .rv .eyebrow { text-transform: none; letter-spacing: 0; }
.sev, .lk { font-size: 12px; }
.tbl th { font-size: 13px; }
.rv .eyebrow { font-size: 13px; }
.dn-big, .kpi b, .kb-n { letter-spacing: 0; }
/* logo: quiet note, not a pill */
.brand small { border: 0; border-radius: 0; padding: 0; color: #b9c1f0; opacity: .8; }
/* one control radius (8) for jump links, counts and small tags */
.jump button, .kb-t, .count { border-radius: 8px; }
.jump button { padding: 4px 12px; }
/* vendor card: status badge carries the state, edge is thinner */
.vc { border-left-width: 3px; }
/* first donut is wider */
@media (min-width: 1001px) { .charts3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
/* toast: named properties, one curve */
#toast { transition: opacity .2s ease-out, transform .2s ease-out; }
/* phone */
.where { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.pq-m, .ib-main { min-width: 0; }
.pq-m .ib-t, .pq-m .ib-m { display: block; margin-top: 4px; }
@media (max-width: 860px) {
  .pq-m .where { max-width: 100%; }
  .personas { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }}

/* ---- setup wizard ---- */
.wz { padding: 24px; }
.wz-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.wz-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sub); padding-right: 16px; }
.wz-steps li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.wz-steps li.on { color: var(--ink); } .wz-steps li.on span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.wz-steps li.done span { background: var(--c-green); border-color: var(--c-green); color: var(--glyph); }
.wz-body > h2 { font-size: 20px; margin: 0 0 4px; } .wz-body > .sub { margin: 0 0 24px; max-width: 640px; }
.wz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; } .wz-grid .wz-wide { grid-column: 1 / -1; } .wz-grid .fld { margin: 0; }
.wz select, .wz input { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); color: var(--ink); max-width: 100%; }
.wz .fld select, .wz .fld input { width: 100%; margin-top: 4px; font-weight: 400; }
.wz-sys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wz-sys li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; } .wz-sys li.on { border-color: var(--brand); }
.wz-chk { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; } .wz-chk input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.wz-chk span { display: flex; flex-direction: column; } .wz-chk small, .wz-count span { color: var(--sub); font-size: 12px; }
.wz-count { display: flex; align-items: center; gap: 8px; margin-left: 28px; } .wz-count input { width: 96px; }
.wz-bulk { margin-bottom: 16px; }
.wz-tbl { margin-bottom: 16px; } .wz-tbl td select, .wz-tbl td input { width: 100%; min-width: 120px; }
.wz-add { margin: 0 0 24px; } .wz-add summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.wz-h3 { font-size: 15px; margin: 24px 0 12px; } .wz-note { margin: 0; }
.wz-card { margin-bottom: 16px; } .wz-card h3 { font-size: 15px; margin: 0; padding-bottom: 0; }
.wz-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.wz-sum div { background: var(--bg); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.wz-sum span { font-size: 12px; color: var(--sub); } .wz-sum b { font-size: 18px; font-weight: 700; overflow-wrap: break-word; } .wz-sum small { color: var(--sub); font-size: 12px; }
.wz-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wz-flags li { border-left: 3px solid var(--c-green); background: var(--bg); border-radius: 8px; padding: 12px 16px; font-size: 14px; } .wz-flags li.warn { border-left-color: var(--c-amber); }
.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.wz-prog { color: var(--sub); font-size: 13px; }
@media (max-width: 860px) { .wz { padding: 16px; } .wz-grid, .wz-sys { grid-template-columns: 1fr; } .wz-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wz-steps li { padding-right: 8px; } .wz-steps li:not(.on) { font-size: 0; gap: 0; } .wz-steps li:not(.on) span { font-size: 12px; } }

/* ---- report form ---- */
.rf { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .rf legend { font-weight: 700; font-size: 13px; padding: 0 0 8px; }
.rf-c { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; } .rf-c input { margin-top: 4px; flex: none; }
.rf-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
#r-defs { display: flex; flex-direction: column; gap: 12px; }
.rd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; background: var(--bg); border-radius: 8px; }
.rd select, .rd input.rd-t { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; } .rd .rd-t { grid-column: 1 / -1; }
.rd-o { display: flex; gap: 8px; align-items: center; font-size: 13px; } .rd .link { justify-self: end; }
dialog .fld select { font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; }

/* ---- live mode ---- */
.live-card { max-width: 560px; margin: 24px auto; } .live-card h2 { margin-top: 0; } #clerk-signin { display: flex; justify-content: center; margin: 16px 0; }
.live-ctl { display: flex; gap: 16px; align-items: center; } .live-ctl select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--card); color: var(--ink); }

/* report result pill */
.res { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.res.pass { background: var(--green-bg); color: var(--green); } .res.fail { background: var(--red-bg); color: var(--red); }
#r-fail[hidden] { display: none; }


/* polish pass: weights, pills and spacing on the 4px scale, grouped report form, customers and labor terms */
b, strong, legend, .rf legend { font-weight: 600; }
.badge { padding: 4px 12px 4px 8px; font-weight: 600; }
.res { padding: 4px 8px; font-weight: 600; }
.where { padding: 2px 8px; }
.chips li { padding: 4px 8px; }
.seg { gap: 4px; padding: 4px; }
.stack { gap: 2px; }
input[type=checkbox], input[type=radio] { margin: 0; }
.live-ctl .link, .live-ctl button, .live-ctl select { white-space: nowrap; flex: none; }
.demo-bar > span:first-child { min-width: 0; }

.rf-g { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.rf-gh { font-size: 12px; font-weight: 600; color: var(--sub); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.rf-c .rf-t { flex: 1; min-width: 0; }
.rf-t small { display: block; font-size: 13px; color: var(--sub); }
.rf-f { font-size: 12px; color: var(--sub); white-space: nowrap; }

.cust-n { font-size: 18px; margin: 0; }
.cust-x { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 16px 0 12px; }
.cust-x div { display: flex; flex-direction: column; gap: 4px; } .cust-x dt { font-size: 12px; color: var(--sub); } .cust-x dd { margin: 0; font-size: 14px; font-weight: 600; }
.cust-loc { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.cust-s { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 8px 0; font-size: 14px; } .cust-sn { color: var(--sub); }
.cust-s ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .cust-s li span { color: var(--sub); font-size: 12px; margin-left: 8px; }
@media (max-width: 640px) { .cust-s { grid-template-columns: 1fr; gap: 4px; } }
td.nw { white-space: nowrap; }
