:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #14211c;
  --muted: #5b6b64;
  --line: #dfe5e0;
  --brand: #14284B;
  --brand-ink: #ffffff;
  --brand-soft: #e7ecf5;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --bad: #a3262a;
  --bad-soft: #fde8e8;
  --good: #0f6b4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 28, 0.06), 0 8px 24px rgba(20, 33, 28, 0.06);
}
html[data-theme="dark"] {
    --bg: #0e1512;
    --surface: #16201b;
    --ink: #e8efe9;
    --muted: #9bb0a5;
    --line: #26352d;
    --brand: #8fb0f2;
    --brand-ink: #0b1a33;
    --brand-soft: #14223d;
    --warn: #f0b45a;
    --warn-soft: #34270f;
    --bad: #ff8a8d;
    --bad-soft: #3a1618;
    --good: #3fbf93;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand); }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 64px; }
.wide { max-width: 1100px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 8px 0 24px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
textarea { min-height: 88px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.check input { width: auto; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; background: var(--surface); }
.chip input { width: auto; margin: 0; }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); padding: 11px 18px; border-radius: 10px; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--brand); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button:disabled { opacity: .55; cursor: not-allowed; }

.steps { display: flex; gap: 6px; margin: 0 0 20px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--brand); }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: .92rem; margin: 12px 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.hidden { display: none !important; }

/* ---- plan ---- */
.hero { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .hero { grid-template-columns: 1.3fr 1fr; } }
.big { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.pill.high { background: var(--bad-soft); color: var(--bad); }
.pill.medium { background: var(--warn-soft); color: var(--warn); }
.pill.low { background: var(--brand-soft); color: var(--brand); }
.meter { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 12px; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.round { border-left: 4px solid var(--brand); padding: 4px 0 4px 14px; margin: 14px 0; }
.round h3 { margin-bottom: 2px; }
.round ul { margin: 6px 0 0; padding-left: 18px; }
.fix { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.fix:first-of-type { border-top: 0; }
.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { color: var(--muted); font-weight: 600; }
tr.click { cursor: pointer; }
tr.click:hover { background: var(--brand-soft); }

/* ---- report view ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
.tile .tv { font-size: 1.25rem; font-weight: 700; margin: 2px 0; letter-spacing: -0.01em; }
.tile .tv.xl { font-size: 2.1rem; }
.tile.big-tile { text-align: center; }
.ok { color: var(--good); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 560px; }
td .small { margin-top: 2px; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--bg); }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 4px 0 8px; }
.seg label { position: relative; margin: 0; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.on { background: var(--brand); color: var(--brand-ink); }

@media print {
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #ccc; }
}

/* ---- coach app shell ---- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .brand { margin: 0; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.pagehead h1 { margin: 0; font-size: 1.6rem; flex: 1 1 200px; }
.pagehead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pill.ok { background: var(--brand-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.muted { background: var(--line); color: var(--muted); }
button.small, .btn.small { padding: 6px 12px; font-size: .85rem; }
button.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.banner { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--brand-soft); }
.banner.warn { background: var(--warn-soft); border-color: transparent; }
.banner.bad { background: var(--bad-soft); border-color: transparent; }
.banner strong { display: block; font-size: 1.05rem; }
.stagepills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.stagepills a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; }
.stagepills a b { color: var(--brand); margin-left: 4px; }
.stagepills a.on { border-color: var(--brand); background: var(--brand-soft); }
.listrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.listrow:first-child { border-top: 0; }
.listrow > .grow { flex: 1; min-width: 0; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.checkrow input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.checkrow.done .lbl { text-decoration: line-through; color: var(--muted); }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; background: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > input, .inline > select { width: auto; flex: 1 1 140px; }
td input, td select { padding: 6px 8px; min-width: 90px; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 720px; width: calc(100% - 24px); padding: 20px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: .92rem; }
.docpage { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 8px; padding: 32px; max-width: 760px; margin: 0 auto; font: 14px/1.6 Georgia, "Times New Roman", serif; }
.docpage h2 { text-align: center; font-size: 1.2rem; margin-bottom: 4px; }
.docpage .center { text-align: center; }
.docpage p, .docpage li { margin: 0 0 .7em; }
.docpage .sig { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.docpage .sig div { border-top: 1px solid #111; padding-top: 4px; font-size: .85rem; }
.progress { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .pick { grid-template-columns: 1fr; } .docpage { padding: 18px; } }
@media print {
  .topbar { display: none !important; }
  .docpage { border: 0; padding: 0; max-width: none; }
}

/* ---- funding app additions ---- */
:root { --c1: #0f6b4f; --c2: #2f7fd1; --c3: #d19a2a; --c4: #8a5cc2; --c5: #c9373b; --c6: #6c7a73; --rev: #2f7fd1; --rev-soft: #e4effb; }
html[data-theme="dark"] { --c1: #3fbf93; --c2: #6fb0f2; --c3: #f0b45a; --c4: #b794e8; --c5: #ff8a8d; --c6: #9bb0a5; --rev: #6fb0f2; --rev-soft: #14283d; }
.sdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.btag { display: inline-block; min-width: 28px; text-align: center; padding: 1px 6px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; color: #fff; }
.btag.experian { background: #4a6fb5; } .btag.equifax { background: #b5504a; } .btag.transunion { background: #3d8f7b; }
.score { font-weight: 800; padding: 1px 8px; border-radius: 8px; }
.b-excellent { background: var(--brand-soft); color: var(--good); } .b-good { background: #e7f3d8; color: #3f7a12; } .b-fair { background: var(--warn-soft); color: var(--warn); } .b-poor { background: var(--bad-soft); color: var(--bad); } .b-none { color: var(--muted); }
html[data-theme="dark"] .b-good { background: #24331a; color: #a6d97a; }
.bcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.bcard .bh { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 6px; }
.gauge { display: block; margin: 0 auto; }
.gauge text { font-weight: 800; fill: var(--ink); }
.mrow { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.mrow:first-of-type { border-top: 0; }
.mrow span:first-child { color: var(--muted); }
.budget { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: .88rem; font-weight: 600; }
.next { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; background: var(--brand); color: var(--brand-ink); }
.next .nt { flex: 1 1 240px; } .next b { display: block; font-size: 1.1rem; } .next .small { opacity: .85; }
.next button { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.bigmoney { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.strip .st { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.strip .st.total { background: var(--brand-soft); border-color: transparent; }
.prod { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.prod.in { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.prod.rev.in { border-color: var(--rev); box-shadow: 0 0 0 1px var(--rev) inset; }
.prodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cbar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 6px 0; }
.cbar i { display: block; } .cbar .r { background: var(--c5); } .cbar .c { background: var(--c3); } .cbar .s { background: var(--c1); }
.cons { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.cons:first-child { border-top: 0; }
.track { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: var(--surface); }
.track.revenue { border-left: 4px solid var(--rev); } .track.credit { border-left: 4px solid var(--brand); }
.step { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.step:first-of-type { border-top: 0; }
.step .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; font-size: .75rem; margin-top: 2px; }
.step.done .mark { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .step.done .t { color: var(--muted); text-decoration: line-through; }
.step.current .mark { border-color: var(--brand); } .step.current { background: var(--brand-soft); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
.step.upcoming .t { color: var(--muted); } .step.skipped .t { color: var(--muted); font-style: italic; }
.step .t { flex: 1; min-width: 0; }
.donut { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .donut-n { font-size: 1.3rem; font-weight: 800; fill: var(--ink); }
.legend { list-style: none; margin: 0; padding: 0; font-size: .88rem; } .legend li { display: flex; gap: 6px; align-items: center; padding: 1px 0; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbars { display: grid; gap: 6px; } .hbar { display: grid; grid-template-columns: 120px 1fr 56px; gap: 8px; align-items: center; font-size: .88rem; }
.hbar .hb { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; } .hbar .hb > span { display: block; height: 100%; border-radius: 7px; } .hbar .hv { text-align: right; font-weight: 700; }
.linechart { width: 100%; height: auto; } .linechart .axis { font-size: 10px; fill: var(--muted); text-anchor: middle; } .linechart .axisline { stroke: var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .hbar { grid-template-columns: 90px 1fr 48px; } }
.pdfframe { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.saved { font-size: .8rem; color: var(--muted); } .saved.ok { color: var(--good); }
.low { background: #fff7e6; } html[data-theme="dark"] .low { background: #2a2210; }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; } .tl > div { position: relative; padding: 5px 0; font-size: .9rem; } .tl > div::before { content: ""; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); }
.sticky-foot { position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 5; }
.sticky-foot .grow { flex: 1 1 240px; }
table.edit td input, table.edit td select { min-width: 70px; }
.tag-rev { background: var(--rev-soft); color: var(--rev); }
.pill.rev { background: var(--rev-soft); color: var(--rev); }
.err { color: var(--bad); font-size: .85rem; margin-top: 2px; }
.pubwrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 64px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cal .d { min-height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; font-size: .78rem; background: var(--surface); } .cal .d.mute { opacity: .45; } .cal .d b { display: block; font-size: .8rem; }
.cal .ev { background: var(--brand-soft); border-radius: 4px; padding: 1px 4px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print { .invoice-print { display: block !important; } }
.setgrid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.vtabs { flex-direction: column; border-bottom: 0; position: sticky; top: 70px; }
.vtabs a { border-radius: 8px; border-bottom: 0; }
@media (max-width: 760px) { .setgrid { grid-template-columns: 1fr; } .vtabs { flex-direction: row; position: static; } }
.cal .d.today { outline: 2px solid var(--brand); }
.pubwrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.setgrid > * { min-width: 0; }
.split > * { min-width: 0; } .split > .card:first-child { position: sticky; top: 64px; } #pdfbox iframe { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; } @media (max-width: 860px) { .split > .card:first-child { position: static; } }

/* SOP workflow */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board .col { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; }
.board .col h3 { font-size: .85rem; margin: 2px 4px 8px; text-transform: uppercase; letter-spacing: .03em; }
.pcard { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.pcard:hover { border-color: var(--brand); } .pcard .pill { align-self: flex-start; }
.stepper { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.stepper li { counter-increment: s; padding: 5px 10px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.stepper li.done { background: var(--brand-soft); color: var(--brand); } .stepper li.now { background: var(--brand); color: var(--brand-ink); }
.grid2.top { align-items: start; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: .92rem; }
.warn-t { color: var(--warn); }
ul.cklist { list-style: none; margin: 0; padding: 0; }ul.cklist li { padding: 4px 0; }ul.cklist label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }ul.cklist input { margin-top: 3px; }
.docrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 6px 0; flex-wrap: wrap; }
.btnlike { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--surface); font-size: .85rem; margin-left: 4px; }
.note { border-left: 3px solid var(--brand); padding: 4px 10px; margin: 8px 0; } ol.hist { margin: 0; padding-left: 18px; }
.meter { display: block; height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; } .meter > span { display: block; height: 100%; background: var(--c3); } .meter > span.ok { background: var(--good, var(--brand)); }
.kpirow { display: grid; grid-template-columns: 180px 1fr 80px; gap: 10px; align-items: center; padding: 4px 0; } @media (max-width: 600px) { .kpirow { grid-template-columns: 110px 1fr 60px; } }
.toc { list-style: none; margin: 0; padding: 0; } .toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; } .toc a.on, .toc a:hover { background: var(--brand-soft); }
.sopdoc h2, .sopdoc h3, .sopdoc h4 { margin-top: 1.1em; } .sopdoc table { font-size: .88rem; } @media (max-width: 760px) { .grid2.top[style*="260px"] { grid-template-columns: 1fr !important; } }
.inline > select[style*="width:auto"] { flex: 0 0 auto; }
ul.cklist input[type=checkbox], .docrow input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 3px 0 0; } ul.cklist label { display: flex; width: 100%; text-align: left; } ul.cklist li > span.small { margin-left: 26px; }

/* Settings sidebar, grouped like a business-settings menu */
.sgnav { display: block !important; position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; padding: 4px 0 !important; }
.sgnav a { display: block; padding: 7px 12px; font-size: 14px; }
.sg-h { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
.sg-h:first-child { padding-top: 4px; }
.bpgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.bplogo { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
#lg-box { width: 190px; min-height: 100px; border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; }
@media (max-width: 1000px) { .bpgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sgnav { display: flex !important; flex-wrap: nowrap; overflow-x: auto; position: static; max-height: none; } .sg-h { display: none; } .sgnav a { white-space: nowrap; } }
