:root {
  --bg: #f3f6f8;
  --card: #ffffff;
  --border: rgba(0, 0, 0, .1);
  --divider: rgba(0, 0, 0, .08);
  --text: rgba(0, 0, 0, .85);
  --muted: rgba(0, 0, 0, .6);
  --faint: rgba(0, 0, 0, .45);
  --blue: #0073b1;
  --blue-hover: #006097;
  --blue-soft: #e1f0f9;
  --green: #57cf58;
  --green-soft: #e7f8e8;
  --red: #b24020;
  --red-soft: #fbece7;
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, .45);
  --hover: rgba(0, 0, 0, .06);
  --bar-neutral: #c7d1d8;
  --cover: #396caf; /* the blue of the profile pictures */
  --shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 2px 3px rgba(0, 0, 0, .2);
  --nav-bg: #283e4a;
  --nav-text: #ffffff;
  --nav-muted: rgba(255, 255, 255, .7);
  --nav-divider: rgba(255, 255, 255, .15);
  --avatar-bg: #e1e9ee;
  --avatar-fill: #a0b4b7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #1b1f23;
    --border: rgba(255, 255, 255, .12);
    --divider: rgba(255, 255, 255, .1);
    --text: rgba(255, 255, 255, .9);
    --muted: rgba(255, 255, 255, .6);
    --faint: rgba(255, 255, 255, .45);
    --blue: #71b7fb;
    --blue-hover: #a8d4ff;
    --blue-soft: rgba(113, 183, 251, .14);
    --green: #57cf58;
    --green-soft: rgba(87, 207, 88, .14);
    --red: #f2967b;
    --red-soft: rgba(242, 150, 123, .14);
    --input-bg: #1b1f23;
    --input-border: rgba(255, 255, 255, .45);
    --hover: rgba(255, 255, 255, .08);
    --bar-neutral: #4a5056;
    --cover: #396caf; /* the blue of the profile pictures */
    --shadow: 0 0 0 1px var(--border);
    --nav-bg: #1d2226; --nav-text: #ffffff; --nav-muted: rgba(255, 255, 255, .6); --nav-divider: rgba(255, 255, 255, .12);
    --avatar-bg: #38434f; --avatar-fill: #8c99a6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1b1f23; --border: rgba(255,255,255,.12); --divider: rgba(255,255,255,.1);
  --text: rgba(255,255,255,.9); --muted: rgba(255,255,255,.6); --faint: rgba(255,255,255,.45);
  --blue: #71b7fb; --blue-hover: #a8d4ff; --blue-soft: rgba(113,183,251,.14);
  --green: #57cf58; --green-soft: rgba(87,207,88,.14); --red: #f2967b; --red-soft: rgba(242,150,123,.14);
  --input-bg: #1b1f23; --input-border: rgba(255,255,255,.45); --hover: rgba(255,255,255,.08);
  --bar-neutral: #4a5056; --cover: #396caf; /* the blue of the profile pictures */
  --shadow: 0 0 0 1px var(--border);
  --nav-bg: #1d2226; --nav-text: #ffffff; --nav-muted: rgba(255,255,255,.6); --nav-divider: rgba(255,255,255,.12);
  --avatar-bg: #38434f; --avatar-fill: #8c99a6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.42857 -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.pad { padding: 0 16px 14px; }
[hidden] { display: none !important; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); }
.nav-inner { max-width: 1128px; margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--nav-text); min-width: 0; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: #0073b1; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.5px; flex: none; }
.logo-sm { width: 48px; height: 48px; font-size: 20px; border-radius: 4px; }
.wordmark { font-weight: 700; font-size: 18px; color: var(--nav-text); letter-spacing: -.2px; }

/* ---------- Layout ---------- */
.layout { max-width: 1128px; margin: 24px auto 48px; padding: 0 16px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
/* one scrollbar: the panel scrolls with the page, then sticks once its bottom is on screen (--stick-top is set in app.js) */
.col-controls { position: sticky; top: var(--stick-top, 68px); border-radius: 8px; }
.col-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; padding: 0 8px 64px; }
  .col-controls { position: static; max-height: none; overflow: visible; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .wordmark { font-size: 16px; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 14px 16px 10px; }
.card-head h2 { font-size: 16px; }
.card-head.row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-head p { margin-top: 2px; }

/* controls panel */
.controls .avatar { margin-top: -36px; }
.controls-head { text-align: center; padding: 8px 16px 12px; border-bottom: 1px solid var(--divider); }
.controls-title { font-size: 18px; }
.sf { padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.sf-last { border-bottom: 0; padding-bottom: 16px; }
.sf label, .sf .label { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.sf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sf-top label { margin: 0; }
.sf-top .input-wrap { width: 150px; flex: none; }
.sf-top .input-wrap.narrow { width: 120px; }
.sf-top .input-wrap input { text-align: right; font-weight: 600; font-size: 15px; }
.sf-val { font-size: 13px; white-space: nowrap; }
.sf .label { margin-bottom: 8px; }
.sf select { margin-top: 6px; }
.sf .hint:empty { display: none; }
.sf-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 2px; }
.sf-scale span:nth-child(2) { font-weight: 600; color: var(--muted); }
#healthWrap + .public-note { margin: 0 16px 0; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--blue) 0 var(--p, 50%), var(--divider) var(--p, 50%) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--divider); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -7px;
  background: var(--card); border: 2px solid var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); }
input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* verdict */
.pill { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--hover); color: var(--muted); }
.pill.free { background: var(--green-soft); color: var(--green); }
.pill.staff { background: var(--blue-soft); color: var(--blue); }
#vBig.free { color: var(--green); }
#vBig.staff { color: var(--blue); }
.meter { margin-top: 14px; }
.meter-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--blue-soft), var(--hover) 50%, var(--green-soft)); }
.meter-mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--muted); border-radius: 1px; }
.meter-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; transition: all .15s; }
.meter-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--card); border: 3px solid var(--muted); transition: left .15s; }
.meter-dot.free { border-color: var(--green); }
.meter-dot.staff { border-color: var(--blue); }
.meter-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tile { border: 1px solid var(--divider); border-radius: 8px; padding: 10px 12px; }
.tile b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; color: var(--muted); }
.tile small { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* mobile sticky verdict bar */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -2px 8px rgba(0,0,0,.08); font-weight: 700; }
  .mbar-pill { font-size: 13px; }
  .mbar-num { font-size: 18px; font-variant-numeric: tabular-nums; }
  .mbar.free .mbar-num, .mbar.free .mbar-pill { color: var(--green); }
  .mbar.staff .mbar-num, .mbar.staff .mbar-pill { color: var(--blue); }
  .toast { bottom: 72px; }
}

/* profile */
.profile { text-align: center; }
.cover { height: 56px; background: var(--cover); }
.avatar { width: 72px; height: 72px; margin: -36px auto 0; border-radius: 50%; border: 2px solid var(--card); background: var(--avatar-bg); display: grid; place-items: center; overflow: hidden; }
.avatar svg { width: 60px; height: 60px; fill: var(--avatar-fill); margin-top: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-body { padding: 10px 12px 14px; border-bottom: 1px solid var(--divider); }
.profile-name { font-size: 16px; }
.profile-headline { font-size: 12px; color: var(--text); margin-top: 4px; }
.profile-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile-stats { margin: 0; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--divider); }
.profile-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 12px; font-size: 12px; }
.profile-stats dt { color: var(--muted); font-weight: 600; }
.profile-stats dd { margin: 0; color: var(--blue); font-weight: 600; white-space: nowrap; }
.profile-foot { padding: 12px; }
.otw { display: inline-block; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }

/* quick */
.quick { padding: 16px; }
.quick-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.mini-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--avatar-bg); flex: none; display: grid; place-items: center; overflow: hidden; }
.mini-avatar svg { width: 40px; height: 40px; fill: var(--avatar-fill); margin-top: 10px; }
.quick-title { font-size: 20px; line-height: 1.25; }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.q-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .q-grid { grid-template-columns: minmax(0, 1fr); } }
.q-field label, .q-field .label, .field label, .field .label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.q-field label b { color: var(--text); }
select, input[type="text"], input[type="number"] {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--input-border); border-radius: 4px;
  background: var(--input-bg); color: var(--text); font: inherit; font-size: 14px;
}
select:focus, input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--input-border); border-radius: 4px; background: var(--input-bg); height: 36px; overflow: hidden; }
.input-wrap:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.input-wrap input { border: 0; height: 100%; padding: 0 6px; min-width: 0; flex: 1; outline: none; background: transparent; }
.input-wrap input:focus { outline: none; }
.input-wrap .pre { padding-left: 10px; color: var(--muted); }
.input-wrap .suf { padding-right: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.input-wrap.big { height: 48px; }
.input-wrap.big input { font-size: 22px; font-weight: 600; }
.input-wrap.big .pre { font-size: 20px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hint.ok { color: var(--green); }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1px solid var(--input-border); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 14px; font-weight: 600; cursor: pointer; }
.seg button:hover { background: var(--hover); color: var(--text); }
.seg button[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #0b2a00; }
:root[data-theme="dark"] .seg button[aria-checked="true"] { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-checked="true"] { color: #000; } }
.public-note { font-size: 12px; color: var(--muted); background: var(--blue-soft); padding: 8px 10px; border-radius: 6px; }

/* result post */
.post { padding: 12px 16px 0; }
.post-head { display: flex; gap: 8px; align-items: center; }
.post-author { font-weight: 600; }
.globe { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; }
.post-lead { margin-top: 12px; font-size: 14px; }
.big-number { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
#vBig { font-size: 48px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.big-unit { font-size: 18px; color: var(--muted); font-weight: 600; }
.post-sub { color: var(--muted); margin-top: 4px; }
.callout { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: var(--blue-soft); font-size: 13px; }
.callout:empty { display: none; }
.callout.margin { margin-top: 8px; }
.callout.ahead { background: var(--green-soft); }
.callout.behind { background: var(--red-soft); }
.q-field label .opt { font-weight: 400; }
.post-actions { display: flex; border-top: 1px solid var(--divider); margin: 12px -16px 0; padding: 4px 8px; }
.act { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border: 0; background: none; color: var(--muted); font-weight: 600; border-radius: 4px; cursor: pointer; }
.act svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.act:hover { background: var(--hover); color: var(--text); }
@media (max-width: 420px) { .act { font-size: 12px; } .act svg { display: none; } }

/* waterfall */
.waterfall { padding: 4px 16px 16px; }
.wf-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 76px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--divider); }
.wf-row:first-child { border-top: 0; }
.wf-label { font-size: 13px; font-weight: 600; }
.wf-label small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; line-height: 1.3; }
.wf-track { position: relative; height: 18px; background: transparent; }
.wf-track::before { content: ""; position: absolute; inset: 8px 0; background: var(--divider); }
.wf-bar { position: absolute; top: 2px; height: 14px; border-radius: 2px; min-width: 2px; }
.wf-bar.base { background: var(--bar-neutral); }
.wf-bar.up { background: var(--blue); }
.wf-bar.down { background: var(--green); }
.wf-bar.final { background: var(--blue); top: 0; height: 18px; }
.wf-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.wf-val.up { color: var(--blue); }
.wf-val.down { color: var(--green); }
.wf-row.total .wf-label { font-size: 14px; }
.wf-row.total .wf-val { font-size: 15px; }
@media (max-width: 560px) {
  .wf-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .wf-track { grid-column: 1 / -1; grid-row: 2; }
}

/* compare table */
.table-wrap { overflow-x: auto; padding: 0 16px 14px; }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 7px 6px; text-align: right; border-top: 1px solid var(--divider); font-size: 13px; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.compare tr.sum td { font-weight: 700; border-top: 1px solid var(--text); }
.compare tr.sep td { padding-top: 14px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.compare td.neg { color: var(--red); }
.compare td.pos { color: var(--green); }
.compare .note { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* sensitivity */
.sens { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 8px 16px 16px; align-items: end; }
.sens-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sens-val { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sens-bar { width: 100%; max-width: 44px; background: var(--bar-neutral); border-radius: 3px 3px 0 0; }
.sens-col.on .sens-bar { background: var(--blue); }
.sens-col.on .sens-val, .sens-col.on .sens-lbl { color: var(--blue); }
.sens-lbl { font-size: 11px; color: var(--muted); font-weight: 600; }
@media (max-width: 420px) { .sens-val { font-size: 9px; } }

/* weeds */
.btn-ghost { border: 1px solid var(--blue); color: var(--blue); background: none; border-radius: 999px; padding: 4px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-link { border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; font-size: 12px; }
.btn-link:hover { text-decoration: underline; }
details.sec { border-top: 1px solid var(--divider); }
details.sec > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary:hover { background: var(--hover); }
.sec-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.sec-icon svg { width: 18px; height: 18px; fill: currentColor; }
.sec-text { flex: 1; min-width: 0; }
.sec-title { font-weight: 600; display: block; }
.sec-sum { display: block; }
.sec-sum { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-badge { font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chev { width: 20px; height: 20px; fill: var(--muted); transition: transform .15s; flex: none; }
details[open] > summary .chev { transform: rotate(180deg); } /* only its own chevron, not those of folds inside it */
.sec-body { padding: 4px 16px 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field.edited label::after { content: " • edited"; color: var(--green); font-weight: 600; }
.field .help { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.field .help em, .cite { font-style: italic; }
.subhead { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--divider); }
.subhead:first-child { border-top: 0; padding-top: 0; }
.sec-note { grid-column: 1 / -1; font-size: 12px; background: var(--blue-soft); padding: 8px 10px; border-radius: 6px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; height: 36px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.sec-foot { margin-top: 12px; display: flex; justify-content: flex-end; }

/* right rail */
.insights, .notes, .sources { list-style: none; margin: 0; padding: 0 16px 12px; }
.insights li { padding: 8px 0; border-top: 1px solid var(--divider); }
.insights li:first-child { border-top: 0; padding-top: 0; }
.insights b { display: block; font-size: 13px; }
.insights span { font-size: 12px; color: var(--muted); }
.notes li { position: relative; padding: 0 0 8px 14px; font-size: 12px; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.sources li { font-size: 12px; padding: 0 0 8px; }
.sources li em { display: block; }
.sources li span { color: var(--muted); }
.foot { text-align: center; padding: 8px 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1d2226; color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reset-top { margin-top: 10px; font-size: 13px; }
/* mirrored panel groups */
.ctl-group { border-bottom: 1px solid var(--divider); }
.ctl-group-title { display: flex; align-items: center; gap: 8px; padding: 12px 16px 10px; background: var(--hover); border-bottom: 1px solid var(--divider); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ctl-group-title .dot { width: 10px; height: 10px; border-radius: 50%; }
.ctl-group-title.free .dot { background: var(--green); }
.ctl-group-title.staff .dot { background: var(--blue); }
.ctl-group #healthWrap + .public-note { margin: 0 16px 12px; }
.ctl-group .sf:last-of-type { border-bottom: 0; }

/* weeds: Freelance / Staff / Both group headings */
/* weeds: Freelance / Staff / Both fold out, closed by default */
details.weeds-group { border-top: 1px solid var(--divider); }
details.weeds-group > summary.ctl-group-title { background: var(--hover); border-bottom: 0; padding-bottom: 14px; }
details.weeds-group[open] > summary.ctl-group-title { border-bottom: 1px solid var(--divider); }
details.weeds-group > summary { list-style: none; cursor: pointer; padding: 14px 16px; gap: 10px; }
details.weeds-group > summary::-webkit-details-marker { display: none; }
details.weeds-group > summary:hover { background: var(--hover); }
details.weeds-group.both .dot { background: var(--bar-neutral); }
.wg-title { flex: none; }
.wg-sum { flex: 1; min-width: 0; font-weight: 400; text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fold-out cards (Sources & assumptions) */
details.fold-card > summary { list-style: none; cursor: pointer; align-items: center; }
details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card > summary:hover { background: var(--hover); }
details.fold-card[open] > summary { padding-bottom: 10px; }
details.sec.free .sec-icon { background: var(--green-soft); color: var(--green); }
details.sec.both .sec-icon { background: var(--hover); color: var(--muted); }

/* State / city under Country */
.place-pick { margin-top: 10px; }
.place-pick label { margin-bottom: 4px; }
.place-pick .help { margin: 6px 0 0; font-size: 12px; color: var(--muted); }


/* slimed "dr" box in the bar: the box sits centred, its drips hang just below; the name is plain text */
.brand { align-self: flex-start; align-items: flex-start; height: 52px; padding-top: 11px; gap: 10px; }
.brand-mark { display: block; width: 40px; height: auto; flex: none; pointer-events: none; }
.brand .wordmark { line-height: 30px; }
.layout { margin-top: 32px; }
@media (max-width: 900px) { .layout { margin-top: 22px; } }

/* slimed "dr" mark on the verdict card: box lines up with the text, drips hang below */
.post-head:has(.mark-slime) { align-items: flex-start; }
.mark-slime { display: block; width: 48px; height: auto; flex: none; }
.post-head .mark-slime + * { padding-top: 6px; }


/* Buy me a coffee: the site green, so it stands out from the other actions */
.act-tip { background: var(--green); color: #0b2a00; text-decoration: none; margin: 0 6px; border-radius: 8px; }
.act-tip:hover { background: #48b849; color: #0b2a00; }

/* "day rate" in the break-even chart, so the unit is obvious */
.rate-word { color: var(--blue); }
.wf-dir { flex: none; gap: 6px; }
.wf-dir button { padding: 4px 12px; font-size: 13px; }
