/* Component kit styles. A frame themes everything through the --k-* variables; sizes are in em
   so a frame scales a component with --k-fs. Defaults: the light "studio" theme. */
:root {
  --k-font: "Switzer", "General Sans", system-ui, sans-serif;
  --k-mono: "JetBrains Mono", ui-monospace, monospace;
  --k-fs: 13px;
  --k-bg: #ffffff;
  --k-bg-2: #f7f6f2;
  --k-bg-3: #efede7;
  --k-ink: #111613;
  --k-ink-2: #2c3530;
  --k-mute: #6a726d;
  --k-line: #e8e5dd;
  --k-line-2: #d8d4c9;
  --k-accent: #1f5c4a;
  --k-accent-ink: #ffffff;
  --k-accent-soft: #e3efe8;
  --k-good: #1f7a4d;
  --k-good-soft: #e6f3ec;
  --k-warn: #c2410c;
  --k-warn-soft: #fcebe1;
  --k-amber: #b7791f;
  --k-amber-soft: #fbf1db;
  --k-info: #2f5f9e;
  --k-info-soft: #e7eef8;
  --k-redact: #1c2320;
  --k-radius: 14px;
  --k-shadow: 0 1px 1px rgba(16, 22, 18, .04), 0 2px 6px rgba(16, 22, 18, .05), 0 12px 32px rgba(16, 22, 18, .08), 0 32px 80px rgba(16, 22, 18, .10);
  --k-use-office: #3a6ea5;
  --k-use-retail: #d4703f;
  --k-use-industrial: #c49a22;
  --k-use-multifamily: #7b5ea7;
  --k-use-hotel: #c4507a;
  --k-use-medical: #2a9d8f;
  --k-use-mixed_use: #6a9f3a;
  --k-use-land: #c4bfb2;
  --k-use-special: #8c8577;
  --k-use-other: #a39e93;
  --k-dot: #3b463f;
  --k-dot-dim: rgba(59, 70, 63, .2);
  --k-dot-focus: var(--k-accent);
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
.k-panel {
  font: 400 var(--k-fs)/1.45 var(--k-font); color: var(--k-ink); background: var(--k-bg);
  border: 1px solid var(--k-line); border-radius: var(--k-radius); box-shadow: var(--k-shadow);
  overflow: hidden; position: relative; font-variant-numeric: tabular-nums; text-align: left;
}
.k-i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.k-i-sm { width: .9em; height: .9em; color: var(--k-mute); }
.k-mark { width: 1.55em; height: 1.55em; color: var(--k-accent); flex: none; }
.k-redact { display: block; height: .74em; width: calc(var(--w) * .5em); max-width: 100%; border-radius: 2px; background: var(--k-redact); }
.k-redact-2 { height: .56em; opacity: .26; width: calc(var(--w) * .42em); }
.k-dim { color: var(--k-mute); font-weight: 450; }
.k-dim i { font-style: normal; }
.k-nb { white-space: nowrap; }
.k-kicker { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: var(--k-mute); font-weight: 600; }
.k-kicker .k-i { width: 1.25em; height: 1.25em; }

/* ---------- panel head, tabs, foot ---------- */
.k-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 1.1em; border-bottom: 1px solid var(--k-line); }
.k-head-l { display: flex; align-items: center; gap: .5em; font-weight: 600; white-space: nowrap; }
.k-head-l span { font-weight: 500; color: var(--k-mute); }
.k-head-r { display: flex; gap: .45em; }
.k-chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 999px; background: var(--k-bg-2); border: 1px solid var(--k-line); font-size: .86em; color: var(--k-ink-2); white-space: nowrap; }
.k-chip-acc { background: var(--k-accent-soft); border-color: transparent; color: var(--k-accent); }
.k-chip-acc b { font-weight: 650; }
.k-tabs { display: flex; gap: 1.5em; padding: 0 1.1em; border-bottom: 1px solid var(--k-line); font-size: .9em; color: var(--k-mute); white-space: nowrap; overflow: hidden; }
.k-tabs span { padding: .7em 0 .65em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.k-tabs .on { color: var(--k-ink); border-color: var(--k-accent); font-weight: 600; }
.k-foot { display: flex; align-items: center; gap: .6em; padding: .75em 1.1em; border-top: 1px solid var(--k-line); background: var(--k-bg-2); color: var(--k-mute); font-size: .84em; }
.k-foot .k-link { margin-left: auto; color: var(--k-accent); font-weight: 600; display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }

/* ---------- list table ---------- */
.k-tbl { width: 100%; border-collapse: collapse; }
.k-tbl th { font-size: .78em; letter-spacing: .02em; font-weight: 500; color: var(--k-mute); text-align: left; padding: .6em 1.1em; background: var(--k-bg-2); border-bottom: 1px solid var(--k-line); white-space: nowrap; }
.k-tbl td { padding: .78em 1.1em; border-bottom: 1px solid var(--k-line); vertical-align: middle; }
.k-tbl th + th, .k-tbl td + td { padding-left: .2em; }
.k-tbl tr:last-child td { border-bottom: 0; }
.k-tbl .r { text-align: right; }
.k-c-pos { width: 3em; }
.k-pos { display: inline-grid; place-items: center; min-width: 2em; height: 2em; padding: 0 .4em; border-radius: 7px; background: var(--k-bg-2); border: 1px solid var(--k-line); font-weight: 600; font-size: .92em; }
.k-prop { display: flex; align-items: center; gap: .7em; }
.k-use-i { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 8px; background: var(--k-bg-2); color: var(--k-ink-2); flex: none; }
.k-use-i .k-i { width: 1.2em; height: 1.2em; }
.k-prop-t { display: flex; flex-direction: column; gap: .45em; min-width: 6em; }
.k-usew { display: block; font-weight: 600; white-space: nowrap; }
.k-band { display: block; color: var(--k-mute); font-size: .9em; white-space: nowrap; }
.k-sigs { display: flex; flex-wrap: wrap; gap: .35em; }
.k-sig { display: inline-flex; align-items: center; gap: .45em; padding: .26em .32em .26em .6em; border-radius: 6px; background: var(--k-bg-2); border: 1px solid var(--k-line); font-size: .84em; white-space: nowrap; color: var(--k-ink-2); }
.k-sig b { font-family: var(--k-mono); font-weight: 400; font-size: .9em; color: var(--k-accent); background: var(--k-accent-soft); padding: .08em .35em; border-radius: 4px; }
.k-top { display: inline-block; padding: .3em .62em; border-radius: 999px; background: var(--k-accent); color: var(--k-accent-ink); font-weight: 600; font-size: .84em; white-space: nowrap; }

/* ---------- compact rows ---------- */
.k-rows { list-style: none; margin: 0; padding: 0; font-size: var(--k-fs); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.k-rows li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .7em; padding: .6em 0; border-top: 1px solid var(--k-line); }
.k-rows-t { display: flex; flex-direction: column; gap: .4em; min-width: 0; }
.k-rows-t small { color: var(--k-mute); font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .k-rows-t small { white-space: normal; } }
.k-rows .k-use-i { width: 2em; height: 2em; }

/* ---------- deck cards ---------- */
.k-card { padding: 1em 1.1em .9em; }
.k-card-h { display: flex; align-items: center; gap: .7em; }
.k-card-t { display: flex; flex-direction: column; gap: .45em; flex: 1; min-width: 0; }
.k-card-t small { color: var(--k-mute); font-size: .88em; }
.k-card .k-sigs { margin: .9em 0 .85em; }
.k-card-f { display: flex; align-items: center; gap: .45em; color: var(--k-mute); font-size: .82em; border-top: 1px solid var(--k-line); padding-top: .75em; }
.k-card-d { margin-left: auto; white-space: nowrap; }

/* ---------- dossier (a sold call in full) ---------- */
.k-dos-h { display: flex; justify-content: space-between; gap: 1em; padding: 1.05em 1.2em .95em; }
.k-dos-t { min-width: 0; }
.k-dos-t h4 { margin: .5em 0 .55em; font-size: 1.22em; font-weight: 600; display: flex; align-items: center; gap: .5em; letter-spacing: -.01em; line-height: 1.2; }
.k-dos-t h4 .k-use-i { width: 1.9em; height: 1.9em; }
@media (max-width: 411px) { .k-dos-t h4 .k-dim { display: block; font-size: .88em; } .k-dos-t h4 .k-dim i { display: none; } }
.k-dos-who { display: flex; align-items: center; gap: .6em; }
.k-dos-who small { color: var(--k-mute); font-size: .82em; white-space: nowrap; }
.k-stamp { flex: none; align-self: flex-start; display: grid; justify-items: center; gap: .05em; padding: .5em .85em .45em; border-radius: 10px; border: 1.5px solid var(--k-good); color: var(--k-good); background: var(--k-good-soft); }
.k-stamp .k-i { width: 1.3em; height: 1.3em; stroke-width: 2.4; }
.k-stamp b { font-size: 1em; letter-spacing: .1em; text-transform: uppercase; }
.k-stamp small { font-size: .76em; white-space: nowrap; }
.k-dos-rank { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4em; padding: 1.2em 1.2em .85em; border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); background: var(--k-bg-2); }
.k-dos-rank b { display: block; font-size: 1.05em; white-space: nowrap; }
.k-dos-rank span { color: var(--k-mute); font-size: .84em; white-space: nowrap; }
.k-strip { position: relative; height: .62em; border-radius: 999px; background: var(--k-line); }
.k-strip-top { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: var(--k-accent); border-radius: 999px 0 0 999px; }
.k-strip-top em { position: absolute; bottom: 1.5em; left: 0; font-style: normal; font-size: .74em; color: var(--k-mute); white-space: nowrap; }
.k-strip i { position: absolute; top: 50%; width: 1em; height: 1em; margin: -.5em 0 0 -.5em; border-radius: 50%; background: var(--k-bg); border: 2.5px solid var(--k-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .22); }
.k-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.2em, 1fr)); margin: 0; padding: .9em 1.2em; gap: .8em 1em; }
.k-facts div { min-width: 0; }
.k-facts dt { font-size: .76em; color: var(--k-mute); margin-bottom: .2em; white-space: nowrap; }
.k-facts dd { margin: 0; font-weight: 600; font-size: 1.02em; white-space: nowrap; }
.k-reasons { list-style: none; margin: 0; padding: 0 1.2em 1.05em; display: grid; gap: .55em; }
.k-reasons li { padding: .75em .9em; border-radius: 10px; border: 1px solid var(--k-line); background: var(--k-bg); }
.k-reason-h { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.k-lift { display: flex; align-items: center; gap: .55em; flex: 0 0 9.5em; }
.k-lift-t { flex: 1; height: .42em; border-radius: 999px; background: var(--k-line); overflow: hidden; }
.k-lift-t i { display: block; height: 100%; border-radius: 999px; background: var(--k-accent); }
.k-lift em { font-style: normal; font-family: var(--k-mono); font-size: .88em; color: var(--k-accent); }
.k-reasons p { margin: .35em 0 .25em; color: var(--k-ink-2); }
.k-reasons small { color: var(--k-mute); font-size: .78em; }
.k-dos-f { display: flex; gap: .5em; align-items: center; padding: .72em 1.2em; border-top: 1px solid var(--k-line); background: var(--k-bg-2); color: var(--k-mute); font-size: .82em; }

/* ---------- receipt stubs ---------- */
.k-stub { padding: 1em 1.15em 0; display: flex; flex-direction: column; }
.k-stub-h { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin-bottom: 1em; }
.k-stamp-s { display: inline-flex; align-items: center; gap: .3em; padding: .22em .55em .22em .45em; border-radius: 6px; border: 1.5px solid var(--k-good); color: var(--k-good); background: var(--k-good-soft); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .76em; }
.k-stamp-s .k-i { stroke-width: 2.6; width: 1.1em; height: 1.1em; }
.k-stub-when { color: var(--k-mute); font-size: .82em; white-space: nowrap; }
.k-stub-use { display: flex; align-items: center; gap: .55em; font-weight: 600; }
.k-stub-use .k-use-i { width: 1.9em; height: 1.9em; }
.k-stub-v { font-size: 2.1em; font-weight: 650; letter-spacing: -.025em; margin: .35em 0 .05em; line-height: 1.1; }
.k-stub-d { color: var(--k-mute); font-size: .88em; min-height: 2.7em; }
.k-stub-rank { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; margin: .6em 0 1.6em; font-size: .9em; }
.k-stub-rank b { white-space: nowrap; }
.k-stub-rank span { color: var(--k-accent); font-weight: 650; white-space: nowrap; }
.k-perf { margin: 1.1em -1.15em 0; border-top: 1.5px dashed var(--k-line-2); position: relative; }
.k-perf::before, .k-perf::after { content: ""; position: absolute; top: -.6em; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--k-perf-bg, var(--k-bg-3)); }
.k-perf::before { left: -.6em; }
.k-perf::after { right: -.6em; }
.k-stub-why { display: flex; flex-wrap: wrap; gap: .35em; padding: 1em 0 .65em; }
.k-stub-f { color: var(--k-mute); font-size: .8em; padding-bottom: 1em; margin-top: auto; }

/* ---------- sold-call notification ---------- */
.k-toast { display: flex; align-items: flex-start; gap: .8em; padding: .85em 1.05em .9em .85em; }
.k-toast-i { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--k-good-soft); color: var(--k-good); flex: none; }
.k-toast-i .k-i { stroke-width: 2.6; width: 1.05em; height: 1.05em; }
.k-toast-t b { display: block; font-weight: 600; line-height: 1.35; }
.k-toast-t span { display: block; color: var(--k-mute); font-size: .9em; margin-top: .15em; line-height: 1.4; }

/* ---------- loan card ---------- */
.k-loan-h { display: flex; justify-content: space-between; align-items: center; gap: .8em; padding: .9em 1.15em; border-bottom: 1px solid var(--k-line); }
.k-status { display: inline-flex; align-items: center; gap: .4em; padding: .3em .65em; border-radius: 999px; font-size: .82em; font-weight: 600; background: var(--k-info-soft); color: var(--k-info); white-space: nowrap; }
.k-loan[data-tone="warn"] .k-status { background: var(--k-warn-soft); color: var(--k-warn); }
.k-loan[data-tone="amber"] .k-status { background: var(--k-amber-soft); color: var(--k-amber); }
.k-loan-m { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1.15em 1.15em .9em; }
.k-loan-b { font-size: 2.3em; font-weight: 650; letter-spacing: -.025em; line-height: 1; }
.k-loan-u { display: flex; align-items: center; gap: .5em; margin-top: .65em; color: var(--k-mute); font-size: .9em; white-space: nowrap; }
.k-loan-u .k-use-i { width: 1.8em; height: 1.8em; }
.k-loan-o { display: flex; align-items: center; gap: .6em; }
.k-ring { flex: none; width: 3.3em; height: 3.3em; }
.k-ring-bg { fill: none; stroke: var(--k-line); stroke-width: 4; }
.k-ring-fg { fill: none; stroke: var(--k-accent); stroke-width: 4; stroke-linecap: round; }
.k-loan[data-tone="warn"] .k-ring-fg { stroke: var(--k-warn); }
.k-loan[data-tone="amber"] .k-ring-fg { stroke: var(--k-amber); }
.k-loan-o span { display: flex; flex-direction: column; font-size: .82em; color: var(--k-mute); line-height: 1.25; }
.k-loan-o b { font-size: 1.4em; color: var(--k-ink); }
.k-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--k-line); }
.k-flags { display: flex; flex-wrap: wrap; gap: .35em; padding: 0 1.15em 1em; }
.k-flags span { padding: .22em .55em; border-radius: 5px; font-size: .8em; background: var(--k-warn-soft); color: var(--k-warn); font-weight: 600; }
@media (max-width: 480px) { .k-loan-m { flex-wrap: wrap; } }
@media (max-width: 370px) { .k-loan-u { white-space: normal; } .k-loan .k-facts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.k-loan-f { padding: .7em 1.15em; border-top: 1px solid var(--k-line); background: var(--k-bg-2); color: var(--k-mute); font-size: .78em; }

/* ---------- charts ---------- */
[data-kit="wall"], [data-kit="proof"] { display: block; width: 100%; }
.k-svg { display: block; max-width: 100%; height: auto; overflow: visible; font-family: var(--k-font); }
.k-svg text { fill: var(--k-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.k-axis { stroke: var(--k-line-2); stroke-width: 1; }
.k-w-rest { fill: var(--k-w-rest, var(--k-line-2)); }
.k-w-thin { fill: var(--k-amber); }
.k-w-trouble { fill: var(--k-warn); }
.k-w-v { font-weight: 600; font-size: 12.5px !important; }
.k-w-l { fill: var(--k-mute) !important; }
.k-w-n { fill: var(--k-mute) !important; font-size: 11px !important; }
.k-p-top { fill: var(--k-accent); }
.k-p-rest { fill: var(--k-accent); fill-opacity: .22; }
.k-p-base { stroke: var(--k-ink); stroke-dasharray: 3 3; stroke-width: 1; }
.k-p-v { font-weight: 650; font-size: 12.5px !important; }
.k-p-bl, .k-p-ax { fill: var(--k-mute) !important; font-size: 11px !important; }
.k-legend { display: flex; flex-wrap: wrap; gap: .5em 1.4em; font-size: .86em; color: var(--k-mute); }
.k-legend span { display: inline-flex; align-items: center; gap: .45em; }
.k-sw { width: .8em; height: .8em; border-radius: 2px; display: inline-block; }
.k-sw-trouble { background: var(--k-warn); }
.k-sw-thin { background: var(--k-amber); }
.k-sw-rest { background: var(--k-w-rest, var(--k-line-2)); }

/* ---------- dot map ---------- */
.k-dots { position: relative; display: block; }
.k-dots-cv, .k-dots-ov { position: absolute; left: 0; top: 0; }
.k-dl-p { fill: transparent; stroke: var(--k-dl, rgba(0, 0, 0, .16)); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: all; transition: stroke .15s; }
.k-dl-ghost { stroke: transparent; }
.k-dl-p.on { stroke: var(--k-dl-on, var(--k-accent)); stroke-width: 2; }
.k-dl-p:hover { stroke: var(--k-dl-on, var(--k-accent)); stroke-width: 1.6; }
.k-dlab text { fill: var(--k-dlab, var(--k-mute)); font-family: var(--k-font); font-weight: 500; pointer-events: none; paint-order: stroke; stroke: var(--k-dlab-halo, var(--k-bg)); stroke-linejoin: round; }
.k-dlab text.on { fill: var(--k-ink); font-weight: 650; }

/* ---------- reasons table ---------- */
.k-sigt { font-size: var(--k-fs); }
.k-sigt-h, .k-sigt-r { display: grid; grid-template-columns: minmax(10.5em, 1.15fr) 1fr 6.6em; gap: 1em; align-items: center; }
.k-sigt-h { font-size: .76em; color: var(--k-mute); padding-bottom: .65em; border-bottom: 1px solid var(--k-line); }
.k-sigt-r { padding: .62em 0; border-bottom: 1px solid var(--k-line); }
.k-sigt-r:last-child { border-bottom: 0; }
.k-sigt-l { font-weight: 500; white-space: nowrap; }
.k-sigt-b { display: flex; align-items: center; gap: .6em; }
.k-sigt-b i { height: .55em; border-radius: 999px; background: var(--k-accent); flex: none; max-width: 78%; }
.k-sigt-b em { font-style: normal; font-size: .84em; color: var(--k-mute); }
.k-sigt .r { text-align: right; font-family: var(--k-mono); font-weight: 400; color: var(--k-accent); }
.k-sigt-h .r { font-family: inherit; color: inherit; white-space: nowrap; }

/* ---------- ledger certificate ---------- */
.k-cert { padding: 1.15em 1.2em 1.2em; }
.k-cert-h { display: flex; align-items: center; gap: .8em; padding-bottom: .95em; border-bottom: 1px solid var(--k-line); }
.k-cert-seal { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--k-accent-soft); color: var(--k-accent); flex: none; }
.k-cert-seal .k-i { width: 1.45em; height: 1.45em; }
.k-cert-h b { display: block; font-size: 1.04em; }
.k-cert-h small { color: var(--k-mute); }
.k-cert-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5em, 1fr)); gap: .9em 1em; margin: .95em 0 1.1em; }
.k-cert-dl dt { font-size: .76em; color: var(--k-mute); }
.k-cert-dl dd { margin: .12em 0 0; font-weight: 600; }
.k-cert-t { width: 100%; margin: .55em 0 1em; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.k-cert-t th, .k-cert-t td { padding: .55em 0; border-bottom: 1px solid var(--k-line); text-align: right; font-weight: 600; white-space: nowrap; vertical-align: top; }
.k-cert-t th:first-child { text-align: left; }
.k-cert-t th + th, .k-cert-t td { padding-left: 1em; }
.k-cert-t thead th { font-size: .76em; font-weight: 400; color: var(--k-mute); }
@media (max-width: 389px) { .k-cert-t th, .k-cert-t td { white-space: normal; } .k-cert-t th + th, .k-cert-t td { padding-left: .7em; } }
.k-cert-t small { display: block; margin-top: .1em; font-size: .86em; font-weight: 400; color: var(--k-mute); }
.k-cert-sha { padding: .75em .85em; border-radius: 10px; background: var(--k-bg-2); border: 1px dashed var(--k-line-2); }
.k-cert-sha small { display: flex; align-items: center; gap: .4em; color: var(--k-mute); font-size: .76em; margin-bottom: .35em; }
.k-cert-sha code { display: block; font-family: var(--k-mono); font-size: .84em; line-height: 1.6; overflow-wrap: anywhere; color: var(--k-ink-2); }
.k-cert-sha code span { display: inline-block; }

/* ---------- tenants, mix ---------- */
.k-ten-n { font-size: 3.4em; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.k-ten p { margin: .65em 0; color: var(--k-ink-2); }
.k-ten small { color: var(--k-mute); font-size: .8em; }
.k-mix { list-style: none; margin: 0; padding: 0; display: grid; gap: .42em; }
.k-mix li { display: grid; grid-template-columns: .7em 1fr auto; gap: .6em; align-items: center; font-size: .9em; }
.k-mix i { width: .7em; height: .7em; border-radius: 50%; }
.k-mix-rest { background: var(--k-use-other); }
.k-mix b { font-weight: 500; color: var(--k-mute); font-variant-numeric: tabular-nums; }

/* ---------- offer ---------- */
[data-kit="offer"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25em; align-items: stretch; }
.k-plan { padding: 1.6em 1.5em 1.5em; display: flex; flex-direction: column; }
.k-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.k-plan h4 { margin: 0; font-size: 1.22em; font-weight: 600; }
.k-plan-tag { font-size: .76em; color: var(--k-mute); border: 1px solid var(--k-line); padding: .25em .6em; border-radius: 999px; white-space: nowrap; }
.k-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em .45em; margin: 1.3em 0 .35em; }
.k-price b { font-size: 2.6em; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.k-price span { color: var(--k-mute); white-space: nowrap; }
.k-plan-n { margin: 0 0 1.15em; color: var(--k-mute); font-size: .92em; min-height: 2.9em; }
.k-plan ul { list-style: none; margin: 0 0 1.6em; padding: 1.15em 0 0; border-top: 1px solid var(--k-line); display: grid; gap: .7em; }
.k-plan li { display: flex; gap: .6em; align-items: flex-start; }
.k-plan li .k-i { color: var(--k-accent); margin-top: .12em; stroke-width: 2.2; }
.k-btn { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; gap: .5em; padding: .85em 1.2em; border-radius: 10px; background: var(--k-accent); color: var(--k-accent-ink); font-weight: 600; }
a.k-btn:hover { filter: brightness(.93); }
a.k-btn-2:hover { filter: none; background: rgba(20, 20, 20, .05); }
.k-btn-2 { background: transparent; color: var(--k-ink); border: 1px solid var(--k-line-2); }
.k-plan-feat { background: var(--k-feat-bg, var(--k-ink)); color: var(--k-feat-ink, #fff); border-color: transparent; }
.k-plan-feat .k-plan-tag { color: inherit; border-color: rgba(255, 255, 255, .28); }
.k-plan-feat .k-price span, .k-plan-feat .k-plan-n { color: rgba(255, 255, 255, .72); }
.k-plan-feat ul { border-color: rgba(255, 255, 255, .16); }
.k-plan-feat li .k-i { color: var(--k-feat-acc, #fff); }
.k-plan-feat .k-btn { background: var(--k-feat-btn, #fff); color: var(--k-feat-btn-ink, var(--k-ink)); }

/* ---------- district board ---------- */
.k-bd { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); column-gap: 2.6em; font: 400 var(--k-fs)/1.4 var(--k-font); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.k-bd-h, .k-bd-r { display: grid; grid-template-columns: minmax(0, 1fr) 4.4em 5.2em minmax(9em, 1.5fr); align-items: center; column-gap: 1em; }
.k-bd-h { padding: 0 .75em .6em; border-bottom: 1px solid var(--k-line-2); color: var(--k-mute); white-space: nowrap; }
.k-bd-h > * { font-size: .8em; }          /* on the labels, so the columns keep the rows' widths */
.k-bd .r { text-align: right; }
.k-bd-r { position: relative; padding: .62em .75em; border-bottom: 1px solid var(--k-line); border-radius: 8px; transition: background-color .15s; }
button.k-bd-r { width: 100%; border-width: 0 0 1px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.k-bd-r:last-child { border-bottom-color: transparent; }
.k-bd-r:hover { background: var(--k-bg-2); }
.k-bd-on { background: var(--k-accent-soft); border-bottom-color: transparent; }
.k-bd-on:hover { background: var(--k-accent-soft); }
.k-bd-n { min-width: 0; }
.k-bd-n b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-bd-n small { display: block; color: var(--k-mute); font-size: .84em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-bd-l { font-weight: 600; }
.k-bd-x { display: flex; align-items: center; gap: .6em; }
.k-bd-x b { font-family: var(--k-mono); font-weight: 400; font-size: .9em; color: var(--k-accent); min-width: 3.1em; text-align: right; }
.k-bd-t { position: relative; flex: 1; height: .42em; border-radius: 99px; background: var(--k-bg-3); }
.k-bd-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--k-accent); }
.k-bd-t u { position: absolute; top: -.32em; bottom: -.32em; width: 2px; margin-left: -1px; background: var(--k-ink); opacity: .45; }
.k-bd-na { font-style: normal; font-size: .84em; color: var(--k-mute); white-space: nowrap; }
@media (max-width: 900px) { .k-bd { grid-template-columns: minmax(0, 1fr); } .k-bd-c + .k-bd-c .k-bd-h { display: none; } }
/* the brief on a phone: rank, type and the reasons; the redacted names and the score step aside */
@media (max-width: 560px) {
  .k-head { flex-wrap: wrap; row-gap: .6em; }
  .k-head-l { flex-wrap: wrap; white-space: normal; }
  .k-head-r, .k-legend { flex-wrap: wrap; }
  .k-tabs { overflow-x: auto; scrollbar-width: none; }
  .k-tabs::-webkit-scrollbar { display: none; }
  .k-brief .k-tbl th:nth-child(2), .k-brief .k-tbl td:nth-child(2), .k-brief .k-tbl th:nth-child(5), .k-brief .k-tbl td:nth-child(5) { display: none; }
  .k-brief .k-tbl td:nth-child(3) { white-space: nowrap; }
  .k-brief .k-sigs { flex-direction: column; align-items: flex-start; }
  .k-brief .k-sig { display: block; white-space: normal; line-height: 1.5; }
  .k-brief .k-sig b { margin-left: .5em; }
  .k-brief .k-foot { flex-wrap: wrap; }
  /* the reasons table: the label gets the room, the bar a short track */
  .k-sigt-h, .k-sigt-r { grid-template-columns: minmax(0, 1fr) 5.6em 3.2em; gap: .7em; }
  .k-sigt-l { white-space: normal; line-height: 1.3; }
  .k-sigt-h span:nth-child(2), .k-sigt-h .r { white-space: normal; line-height: 1.25; }
  /* a loan's status drops under its kicker rather than running off the card */
  .k-loan-h { flex-wrap: wrap; row-gap: .5em; }
  .k-status { white-space: normal; }
}
@media (max-width: 345px) { .k-brief .k-usew { white-space: normal; } }
.k-bd-sh { display: none; }
@media (max-width: 560px) {
  .k-bd-h, .k-bd-r { grid-template-columns: minmax(0, 1fr) 5.2em 4.6em; }
  .k-bd-h > :nth-child(2), .k-bd-r > :nth-child(2) { display: none; }
  .k-bd-h > :nth-child(4) { text-align: right; }
  .k-bd-lg, .k-bd-t { display: none; }
  .k-bd-sh { display: inline; }
  .k-bd-x { justify-content: flex-end; }
  .k-bd-na { white-space: normal; text-align: right; line-height: 1.25; }
}
