/* Trade Counter demo: one stylesheet, system fonts, no external assets. */
:root {
  --felt: #1d4233;
  --felt-dark: #143125;
  --felt-line: #2c5a46;
  --manila: #f3ead7;
  --slip: #fffdf6;
  --ink: #20251f;
  --ink-soft: #5d655e;
  --ink-mute: #8a918a;
  --rule: #dcd8cc;
  --stamp: #b3402e;
  --tag: #ffd84d;
  --on-felt: #ecfdf5;
  --on-felt-soft: rgba(209, 250, 229, .72);
  --on-felt-mute: rgba(209, 250, 229, .5);
  --ok: #1f7a4d;
  --warn: #a15c07;
  --tile: #f3f4f1;
  --display: "Rockwell", "Roboto Slab", "Clarendon", "Georgia", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --bar-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--on-felt);
  font: 400 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding-bottom: var(--bar-h);
  background-color: var(--felt);
  background-image:
    radial-gradient(45% 40% at 20% 25%, rgba(46, 139, 110, .5), transparent 70%),
    radial-gradient(40% 35% at 80% 15%, rgba(23, 90, 99, .45), transparent 70%),
    radial-gradient(50% 45% at 70% 85%, rgba(17, 60, 46, .85), transparent 72%),
    radial-gradient(35% 30% at 30% 80%, rgba(64, 145, 108, .3), transparent 70%);
  background-attachment: fixed;
}
@media (max-width: 720px) { :root { --bar-h: 190px; } }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.muted { color: var(--on-felt-soft); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 14px; }
.shop { font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; color: #fff; }
.top .tagline { color: var(--on-felt-soft); font-size: 14px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--on-felt-soft); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.top nav a:hover { color: #fff; }
.top nav a.on { background: var(--manila); color: var(--ink); }
.top .who { font-size: 13px; color: var(--on-felt-soft); }
.top .who b { color: #fff; font-weight: 600; }
.brandline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brandline .area { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-felt-mute); }

/* ---- steps */
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 18px; }
.steps span { padding: 5px 14px; border-radius: 999px; color: var(--on-felt-soft); font-size: 16px; }
.steps span.on { background: var(--manila); color: var(--ink); }
.steps i { color: var(--on-felt-mute); font-style: normal; }

/* ---- layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; align-items: start; padding-bottom: 32px; }
.split > * { min-width: 0; }
.slip-col { position: sticky; top: 18px; }
@media (max-width: 920px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .slip-col { position: static; }
}
.mat { border: 2px dashed var(--felt-line); border-radius: 14px; padding: 28px 30px 30px; }
@media (max-width: 600px) { .mat { padding: 18px 14px 20px; } }
.mat h1, .page-title { font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; }
@media (max-width: 600px) { .mat h1, .page-title { font-size: 24px; } }
.lede { color: var(--on-felt-soft); font-size: 16px; margin: 8px 0 4px; max-width: 70ch; }
.asof { font-family: var(--mono); font-size: 13px; color: #8fd9b6; margin: 0 0 16px; }

/* ---- search */
.search { width: 100%; border: 0; border-radius: 10px; background: #fff; color: var(--ink); padding: 14px 16px; font-size: 17px; }
.search:focus { outline: 3px solid rgba(255, 216, 77, .6); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 22px; }
.filters select { background: transparent; color: var(--on-felt); border: 1px solid rgba(209, 250, 229, .35); border-radius: 999px; padding: 5px 12px; max-width: 100%; }
.filters select option { color: var(--ink); }
.filters .clear { background: none; border: 0; color: var(--on-felt-soft); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 14px; }

.shelf-head { margin: 4px 0 10px; font-size: 16px; color: var(--on-felt-soft); }
.shelf-head b { color: #a7f3d0; text-transform: uppercase; font-weight: 600; margin-right: 8px; letter-spacing: .02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--tile); color: var(--ink); border: 2px solid transparent; border-radius: 10px;
  padding: 12px 14px; cursor: pointer; min-height: 78px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile.hot { border-color: #e8903a; }
.tile.added { box-shadow: inset 0 0 0 2px var(--ok); }
@media (hover: hover) { .tile:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); } }
.tile .ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: #e7e9e4; color: #9aa09a; }
.tile .ico svg { width: 24px; height: 24px; }
.tile .nm { flex: 1; min-width: 0; }
.tile .nm b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.tile .nm small { display: block; color: var(--ink-soft); font-size: 14px; }
.tile .side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hot-tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; padding: 2px 9px; border-radius: 999px; background: linear-gradient(100deg, #d9480f, #e8590c 50%, #f08c00); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); white-space: nowrap; }
.price-tag { background: var(--tag); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 12px; border-radius: 3px; padding: 1px 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); white-space: nowrap; }
.on-slip { font-size: 12px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.more { margin: 10px 0 26px; background: transparent; border: 1px solid rgba(209, 250, 229, .35); color: var(--on-felt); border-radius: 6px; padding: 6px 14px; cursor: pointer; font-weight: 500; }
.more:hover { border-color: #fff; }
.none { padding: 20px; border: 1px dashed rgba(209, 250, 229, .3); border-radius: 10px; color: var(--on-felt-soft); }

/* ---- deal slip */
.slip { background: var(--slip); color: var(--ink); font-family: var(--mono); font-size: 14px; border-radius: 8px 8px 0 0; padding: 22px 22px 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.tear { height: 12px; background: var(--slip); clip-path: polygon(0 0, 100% 0, 100% 35%, 97.5% 100%, 95% 35%, 92.5% 100%, 90% 35%, 87.5% 100%, 85% 35%, 82.5% 100%, 80% 35%, 77.5% 100%, 75% 35%, 72.5% 100%, 70% 35%, 67.5% 100%, 65% 35%, 62.5% 100%, 60% 35%, 57.5% 100%, 55% 35%, 52.5% 100%, 50% 35%, 47.5% 100%, 45% 35%, 42.5% 100%, 40% 35%, 37.5% 100%, 35% 35%, 32.5% 100%, 30% 35%, 27.5% 100%, 25% 35%, 22.5% 100%, 20% 35%, 17.5% 100%, 15% 35%, 12.5% 100%, 10% 35%, 7.5% 100%, 5% 35%, 2.5% 100%, 0 35%); }
@media (max-width: 480px) { .slip { padding: 18px 14px 14px; } }
.slip-head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed #cfcabd; }
.slip-head b { display: block; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 15px; }
.slip-head small { color: var(--ink-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; margin: 14px 0 4px; }
.seg button { background: transparent; border: 0; padding: 8px 6px; cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--slip); }
.seg-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 6px; text-align: center; }
.slip-sec { padding: 12px 0; border-bottom: 1px dashed #cfcabd; }
.slip-label { font-size: 13px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: .03em; }
.slip-label em { font-style: normal; text-transform: none; color: var(--ink-mute); }
.slip-empty { font-style: italic; color: var(--ink-mute); margin: 6px 0 0; }
.slip-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.slip-lines li { padding: 8px 0; border-top: 1px solid #eee9dc; }
.slip-lines li:first-child { border-top: 0; }
.ln-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ln-top .nm { min-width: 0; flex: 1; line-height: 1.35; }
.ln-top .amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln-sub { font-size: 12px; color: var(--ink-mute); }
.ln-sub .bonus { color: #c2410c; font-weight: 700; }
.ln-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfcabd; border-radius: 6px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: #f4f0e4; cursor: pointer; font-size: 16px; font-weight: 700; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.ln-ctl select { font-family: var(--mono); font-size: 16px; border: 1px solid #cfcabd; border-radius: 6px; background: #fff; padding: 3px 6px; height: 34px; }
.x { margin-left: auto; border: 0; background: none; color: #a8a29a; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px; font-family: var(--mono); }
.x:hover { color: var(--stamp); }
.tot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tot .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tot.alt { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.tot.alt .v { font-size: 14px; }
.holo { margin-top: 14px; padding: 2px; border-radius: 7px; background: linear-gradient(100deg, #7ee7ff 0%, #9b8cff 30%, #ff9bd6 55%, #ffe27a 80%, #7ee7ff 100%); background-size: 200% 100%; animation: holo 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .holo { animation: none; } }
@keyframes holo { from { background-position: 0 0; } to { background-position: 200% 0; } }
.holo > div { background: var(--slip); border-radius: 5px; padding: 12px 14px; }
.holo .tot .v { font-size: 24px; }
.holo small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; line-height: 1.2; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.btn.go { background: var(--felt); color: #fff; }
.btn.go:hover { background: var(--felt-dark); }
.btn.gold { background: var(--tag); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #bdb8aa; }
.btn.red { background: var(--stamp); color: #fff; }
.btn.light { background: transparent; color: var(--on-felt); border: 1px solid rgba(209, 250, 229, .4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 14px; }
.slip-foot { text-align: center; color: var(--ink-mute); font-size: 12px; margin: 12px 0 0; }

/* ---- paper panels (send form, owner screens) */
.paper { background: var(--slip); color: var(--ink); border-radius: 12px; padding: 22px 24px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); margin-bottom: 18px; }
@media (max-width: 480px) { .paper { padding: 18px 14px; } }
.paper h2 { font-family: var(--display); font-size: 21px; margin-bottom: 6px; }
.paper .sub { color: var(--ink-soft); margin: 0 0 14px; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field span em { font-weight: 400; color: var(--ink-mute); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfcabd; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--felt); border-color: var(--felt); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.err { color: var(--stamp); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stamp { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--stamp); border: 3px solid var(--stamp); border-radius: 6px; padding: 2px 10px; transform: rotate(-3deg); display: inline-block; font-size: 15px; }
.stamp.ok { color: var(--ok); border-color: var(--ok); }
.stamp.wait { color: var(--warn); border-color: var(--warn); }
.nextlist { margin: 10px 0 18px; padding-left: 20px; }
.nextlist li { margin: 6px 0; }
.back { display: inline-block; color: var(--on-felt-soft); text-decoration: none; margin: 0 0 12px; font-size: 14px; }
.back:hover { color: #fff; }

/* ---- owner: queue */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; margin: 6px 0 18px; }
.page-head .lede { margin: 6px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: rgba(8, 28, 20, .45); border: 1px solid rgba(209, 250, 229, .15); border-radius: 10px; padding: 14px 16px; }
.kpi .v { font-family: var(--mono); font-size: 26px; font-weight: 700; color: #fff; }
.kpi .l { font-size: 13px; color: var(--on-felt-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { background: transparent; border: 1px solid rgba(209, 250, 229, .3); color: var(--on-felt); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 14px; }
.chips button.on { background: var(--manila); color: var(--ink); border-color: var(--manila); }
.chips button b { font-weight: 700; margin-left: 4px; }
.queue { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1.4fr) 120px 110px 110px; align-items: center; gap: 12px; background: var(--slip); color: var(--ink); border-radius: 10px; padding: 14px 16px; text-decoration: none; border-left: 5px solid transparent; }
.prow:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.prow.st-pending { border-left-color: var(--warn); }
.prow.st-countered { border-left-color: #6d5bd0; }
.prow.st-accepted { border-left-color: var(--ok); }
.prow.st-declined { border-left-color: #9a9a9a; }
.prow.mine { outline: 2px solid var(--tag); }
.prow .id { font-family: var(--mono); font-weight: 700; }
.prow .who b { display: block; }
.prow .who small, .prow .what small { color: var(--ink-soft); font-size: 13px; display: block; }
.prow .what { font-size: 14px; }
.prow .amt { font-family: var(--mono); font-weight: 700; font-size: 17px; text-align: right; }
.prow .amt small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; text-transform: uppercase; }
.prow .age { font-size: 13px; color: var(--ink-soft); text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.pending { background: #fdecc8; color: #7a4504; }
.pill.countered { background: #e7e3fb; color: #3f3294; }
.pill.accepted { background: #d8f0e2; color: #145c38; }
.pill.declined { background: #ebebeb; color: #555; }
.newtag { display: inline-block; background: var(--tag); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 860px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amt" "what age" "id st"; gap: 6px 12px; }
  .prow .id { grid-area: id; font-size: 13px; color: var(--ink-soft); }
  .prow .who { grid-area: who; }
  .prow .what { grid-area: what; }
  .prow .amt { grid-area: amt; }
  .prow .age { grid-area: age; }
  .prow .st { grid-area: st; text-align: right; }
}

/* ---- owner: proposal detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 30px; }
.detail > * { min-width: 0; }
@media (max-width: 920px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 12px 0 4px; font-size: 14px; }
.meta div small { display: block; color: var(--ink-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.quote { border-left: 3px solid var(--manila); background: #f7f1e3; padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 14px 0 0; font-size: 15px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid #e8e3d6; text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl tfoot tr.sub td { font-weight: 400; color: var(--ink-soft); }
.tbl small { color: var(--ink-mute); display: block; }
.big { font-family: var(--mono); font-size: 32px; font-weight: 700; }
.strike { text-decoration: line-through; color: var(--ink-mute); font-size: 16px; margin-left: 8px; font-family: var(--mono); }
.panel-sub { color: var(--ink-soft); font-size: 14px; margin: 2px 0 12px; }
.decide { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.decide .btn { padding: 11px 8px; }
.box { border: 1px solid #e3ddcf; border-radius: 10px; padding: 14px; margin-top: 14px; background: #fff; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hist li { position: relative; padding: 0 0 12px 20px; }
.hist li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--felt); }
.hist li small { display: block; color: var(--ink-mute); }
.flash { background: #d8f0e2; color: #145c38; border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }

/* ---- owner: pricing */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .rates { grid-template-columns: 1fr; } }
.rate-in { display: flex; align-items: center; gap: 8px; }
.rate-in input { width: 100px; }
.example { font-family: var(--mono); background: #f7f1e3; border-radius: 8px; padding: 12px 14px; margin: 4px 0 14px; font-size: 14px; }

/* ---- demo bar (required on every page) */
#tkbsDemoBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  padding: 9px 16px; background: #0F1720; color: #E6EDF5;
  font: 500 13px/1.35 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; border-top: 2px solid #3DDC97;
}
#tkbsDemoBar b { color: #3DDC97; letter-spacing: .06em; font-weight: 700; }
#tkbsDemoBar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#tkbsDemoBar a.cta { background: #3DDC97; color: #0F1720; text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
#tkbsDemoBar .role { display: inline-flex; align-items: center; white-space: nowrap; }
#tkbsDemoBar .role span { margin-right: 8px; color: #9FB0C3; }
#tkbsDemoBar .role button { font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; background: transparent; color: #E6EDF5; border: 1px solid #3A4A5C; padding: 6px 11px; cursor: pointer; }
#tkbsDemoBar .role button:first-of-type { border-radius: 999px 0 0 999px; }
#tkbsDemoBar .role button:last-of-type { border-radius: 0 999px 999px 0; border-left: 0; }
#tkbsDemoBar .role button.on { background: #E6EDF5; color: #0F1720; border-color: #E6EDF5; }
#tkbsDemoBar .role button:not(.on):hover { border-color: #3DDC97; color: #3DDC97; }

/* ---- small-screen refinements */
.jump { display: none; }
@media (max-width: 920px) {
  .jump:not([hidden]) { display: inline-block; margin: -10px 0 18px; background: var(--manila); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 14px; }
}
.tscroll .tbl { min-width: 480px; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px; }
  .kpi .v { font-size: 17px; }
  .kpi .l { font-size: 12px; line-height: 1.3; }
}
.tscroll .tbl td:first-child { min-width: 170px; }
