/* Token scanner (block-elements/token_scanner.html.twig, js/token-scanner.js).
   Same language as the 0x swap (swap-0x.scss): Poppins, white cards, soft blue panels, pill network bar, segmented tabs.
   Plain CSS: partner sites recolour it through their theme variables (--pj-*), SafeSwap uses the fallbacks. */
.tsc {
    --tsc-blue: var(--pj-primary, #0a54e0);
    --tsc-blue-rgb: var(--pj-primary-rgb, 10, 84, 224);
    --tsc-ink: var(--pj-ink, #073997);
    --tsc-text: var(--pj-text, #212529);
    --tsc-muted: var(--pj-muted, #5b6b8c);
    --tsc-card: var(--pj-card, #fff);
    --tsc-soft: rgba(var(--tsc-blue-rgb), .07);
    --tsc-soft2: rgba(var(--tsc-blue-rgb), .11);
    --tsc-line: rgba(var(--tsc-blue-rgb), .16);
    --tsc-r: calc(16px * var(--pj-rk, 1));
    --tsc-good: #12805c; --tsc-good-bg: #e6f6ef;
    --tsc-warn: #a15c00; --tsc-warn-bg: #fff4e0; --tsc-warn-c: #e8930c;
    --tsc-bad: #c0263b; --tsc-bad-bg: #fdecef;
    --tsc-shadow: 0 6px 24px rgba(9, 18, 48, .08);
    font-family: Poppins, system-ui, sans-serif;
    color: var(--tsc-text);
    padding: 40px 0 60px;
}
.tsc .container { max-width: 1180px; }
.tsc button { font-family: inherit; }

/* heading, as on /swap and /orders */
.tsc-head { text-align: center; margin: 0 0 18px; }
.tsc-head h1 { margin: 0 0 6px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; color: var(--tsc-ink); }
.tsc-head h1 span { color: var(--tsc-blue); }
.tsc-head p { margin: 0 auto; max-width: 640px; font-size: 14.5px; color: var(--tsc-muted); }

.tsc-card { background: var(--tsc-card); border-radius: var(--tsc-r); box-shadow: var(--tsc-shadow); padding: 18px 20px; animation: tsc-in .35s ease-out both; }
@keyframes tsc-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- scan card */
.tsc-scan { margin: 0 0 16px; background: var(--tsc-card); border-radius: var(--tsc-r); box-shadow: 0 4px 15px rgba(0, 0, 0, .12); padding: 8px; }
.tsc-nets { display: flex; gap: 4px; padding: 4px; margin-bottom: 8px; border-radius: 999px; background: var(--tsc-soft); overflow-x: auto; scrollbar-width: none; }
.tsc-nets::-webkit-scrollbar { display: none; }
.tsc-net { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--tsc-ink); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, box-shadow .15s; }
.tsc-net img { width: 22px; height: 22px; border-radius: 50%; }
.tsc-net span { display: none; }
.tsc-net > i { width: 22px; text-align: center; color: var(--tsc-blue); }
.tsc-net:hover { background: rgba(255, 255, 255, .7); }
.tsc-net.is-on { background: var(--tsc-blue); color: #fff; box-shadow: 0 4px 12px rgba(var(--tsc-blue-rgb), .3); }
.tsc-net.is-on > i { color: #fff; }
.tsc-net.is-on img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.tsc-net.is-on span, .tsc-net[data-net="auto"] span { display: inline; }
.tsc-form { display: flex; gap: 8px; }
.tsc-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 16px; border-radius: 12px; background: var(--tsc-soft); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.tsc-field:focus-within { border-color: var(--tsc-blue); background: var(--tsc-card); }
.tsc-field > i { color: var(--tsc-blue); font-size: 18px; }
.tsc-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--tsc-ink); }
.tsc-field input::placeholder { font-family: Poppins, system-ui, sans-serif; font-weight: 500; color: #8aa4d6; }
.tsc-paste { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--tsc-line); border-radius: 999px; background: var(--tsc-card); color: var(--tsc-ink); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tsc-paste:hover { border-color: var(--tsc-blue); color: var(--tsc-blue); }
.tsc-go { flex: 0 0 auto; height: 58px; padding: 0 24px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--tsc-blue), color-mix(in srgb, var(--tsc-blue) 70%, #6aa6ff)); color: var(--pj-on-primary, #fff); font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(var(--tsc-blue-rgb), .28); transition: transform .12s, box-shadow .12s; }
.tsc-go:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(var(--tsc-blue-rgb), .35); }
.tsc-go i { margin-right: 6px; }
.tsc-tryrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 8px 4px; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-try button { margin-left: 4px; padding: 3px 10px; border: 1px solid var(--tsc-line); border-radius: 999px; background: var(--tsc-card); color: var(--tsc-ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.tsc-try button:hover { border-color: var(--tsc-blue); color: var(--tsc-blue); }
.tsc-stats { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.tsc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.tsc-stats i { color: var(--tsc-blue); font-size: 11px; }
.tsc-stats b { color: var(--tsc-ink); }
.tsc-stats .is-bad i, .tsc-stats .is-bad b { color: var(--tsc-bad); }

/* ---- intro (before a scan) */
.tsc-intro { display: grid; gap: 16px; }
.tsc-intro[hidden] { display: none; }
.tsc-steps-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tsc-steps-preview > div { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: var(--tsc-r); background: var(--tsc-card); box-shadow: var(--tsc-shadow); }
.tsc-steps-preview b { position: absolute; top: 12px; right: 14px; font-size: 26px; font-weight: 800; color: var(--tsc-soft2); }
.tsc-steps-preview i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--tsc-soft2); color: var(--tsc-blue); font-size: 15px; margin-bottom: 4px; }
.tsc-steps-preview strong { color: var(--tsc-ink); font-size: 14.5px; }
.tsc-steps-preview span { font-size: 13px; color: var(--tsc-muted); line-height: 1.45; }

/* ---- live scan */
.tsc-out { display: grid; gap: 16px; }
.tsc-out:empty { display: none; }
.tsc-scanning { width: 100%; }
.tsc-scanning__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tsc-scanning__top b { display: block; color: var(--tsc-ink); font-size: 15px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.tsc-scanning__top small { color: var(--tsc-muted); font-size: 12.5px; }
.tsc-radar { position: relative; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, var(--tsc-soft2) 0 30%, transparent 31%), var(--tsc-soft); flex: none; overflow: hidden; }
.tsc-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--tsc-blue-rgb), .35); }
.tsc-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--tsc-blue-rgb), .55), transparent 28%); animation: tsc-spin 1.1s linear infinite; }
@keyframes tsc-spin { to { transform: rotate(360deg); } }
.tsc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tsc-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--tsc-muted); transition: background .2s; }
.tsc-steps li > i { width: 18px; margin-top: 2px; text-align: center; }
.tsc-steps li span { display: grid; gap: 1px; }
.tsc-steps li small { font-size: 12.5px; }
.tsc-steps .is-run { background: var(--tsc-soft); color: var(--tsc-ink); font-weight: 600; }
.tsc-steps .is-run > i { color: var(--tsc-blue); }
.tsc-steps .is-done { color: var(--tsc-ink); animation: tsc-pop .3s ease-out; }
.tsc-steps .is-done > i { color: var(--tsc-good); }
.tsc-steps .is-warn > i { color: var(--tsc-warn-c); }
.tsc-steps .is-warn { color: var(--tsc-ink); }
.tsc-steps .is-fail { background: var(--tsc-bad-bg); color: var(--tsc-bad); font-weight: 600; animation: tsc-pop .3s ease-out; }
.tsc-steps .is-skip { opacity: .75; }
@keyframes tsc-pop { 0% { transform: scale(.98); } 60% { transform: scale(1.01); } }

.tsc-msg { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--tsc-soft); color: var(--tsc-ink); font-size: 14px; }
.tsc-msg.is-warn { background: var(--tsc-warn-bg); color: var(--tsc-warn); }
.tsc-msg.is-bad { background: var(--tsc-bad-bg); color: var(--tsc-bad); font-weight: 600; }
.tsc-msg i { margin-top: 3px; }

/* ---- report: identity */
.tsc-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-also button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--tsc-line); border-radius: 999px; background: var(--tsc-card); color: var(--tsc-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tsc-also img { width: 16px; height: 16px; border-radius: 50%; }
.tsc-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tsc-ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 22px; box-shadow: 0 6px 16px rgba(9, 18, 48, .15); overflow: hidden; }
.tsc-ava.is-img { background: #fff; }
.tsc-ava img { width: 100%; height: 100%; object-fit: cover; }
.tsc-id__txt { flex: 1; min-width: 200px; display: grid; gap: 1px; }
.tsc-id__txt b { font-size: 21px; font-weight: 800; color: var(--tsc-ink); line-height: 1.2; }
.tsc-id__txt > span { font-size: 13.5px; color: var(--tsc-muted); }
.tsc-id__txt small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-ci { width: 16px; height: 16px; border-radius: 50%; }
.tsc-ci.is-xs { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.tsc-addr { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 2px 8px; border: 0; border-radius: 999px; background: var(--tsc-soft); color: var(--tsc-blue); font: 600 12px ui-monospace, Menlo, Consolas, monospace; cursor: pointer; }
.tsc-addr.is-done i::before, .tsc-btn.is-done i::before { content: "\f00c"; }
.tsc-id__act { display: flex; flex-wrap: wrap; gap: 8px; }
.tsc-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--tsc-blue); color: var(--pj-on-primary, #fff); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 6px 14px rgba(var(--tsc-blue-rgb), .25); }
.tsc-btn:hover { color: var(--pj-on-primary, #fff); filter: brightness(1.07); }
.tsc-btn.is-ghost { background: var(--tsc-card); color: var(--tsc-ink); border: 1px solid var(--tsc-line); box-shadow: none; }
.tsc-btn.is-ghost:hover { color: var(--tsc-blue); border-color: var(--tsc-blue); }

/* ---- report: layout */
.tsc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tsc-main { display: grid; gap: 16px; min-width: 0; }
.tsc-side { display: grid; gap: 16px; position: sticky; top: 90px; min-width: 0; }
.tsc-side > * { min-width: 0; }

/* verdict with the score ring */
.tsc-verdict { display: flex; align-items: center; gap: 22px; position: relative; overflow: hidden; }
.tsc-verdict::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.tsc-verdict.is-ok::before { background: radial-gradient(600px 200px at 0% 0%, var(--tsc-good-bg), transparent 70%); }
.tsc-verdict.is-warn::before { background: radial-gradient(600px 200px at 0% 0%, var(--tsc-warn-bg), transparent 70%); }
.tsc-verdict.is-bad::before { background: radial-gradient(600px 220px at 0% 0%, var(--tsc-bad-bg), transparent 70%); opacity: 1; }
.tsc-verdict.is-bad { box-shadow: 0 0 0 1.5px rgba(192, 38, 59, .35), var(--tsc-shadow); }
.tsc-ring { position: relative; width: 128px; height: 128px; flex: none; }
.tsc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tsc-ring circle { fill: none; stroke-width: 10; }
.tsc-ring__bg { stroke: var(--tsc-soft2); }
.tsc-ring__fg { stroke-linecap: round; stroke: var(--tsc-blue); animation: tsc-ring 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tsc-ring { from { stroke-dashoffset: var(--tsc-c); } }
.tsc-ring.is-ok .tsc-ring__fg { stroke: #19a974; }
.tsc-ring.is-warn .tsc-ring__fg { stroke: var(--tsc-warn-c); }
.tsc-ring.is-bad .tsc-ring__fg { stroke: var(--tsc-bad); }
.tsc-ring.is-unknown .tsc-ring__fg { stroke: #b8c4dc; }
.tsc-ring__in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tsc-ring__in b { font-size: 34px; font-weight: 800; color: var(--tsc-ink); line-height: 1; }
.tsc-ring.is-bad .tsc-ring__in b { color: var(--tsc-bad); }
.tsc-ring__in small { font-size: 11.5px; color: var(--tsc-muted); }
.tsc-ring__in > i { font-size: 38px; color: #19a974; }
.tsc-verdict__txt { position: relative; min-width: 0; display: grid; gap: 4px; }
.tsc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tsc-muted); }
.tsc-verdict h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--tsc-ink); }
.tsc-verdict.is-ok h2 { color: var(--tsc-good); }
.tsc-verdict.is-warn h2 { color: var(--tsc-warn); }
.tsc-verdict.is-bad h2 { color: var(--tsc-bad); }
.tsc-verdict p { margin: 0; font-size: 14px; color: var(--tsc-text); }
.tsc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tsc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.tsc-chip.is-good { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-chip.is-warn { background: var(--tsc-warn-bg); color: var(--tsc-warn); }
.tsc-chip.is-bad { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-chip.is-info { background: var(--tsc-soft2); color: var(--tsc-ink); }
.tsc-note { margin: 8px 0 0; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-note i { margin-right: 4px; }

/* tabs (segmented, as in the swap) */
.tsc-tabs { padding: 10px; }
.tsc-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--tsc-soft); overflow-x: auto; scrollbar-width: none; }
.tsc-seg::-webkit-scrollbar { display: none; }
.tsc-seg button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; background: none; padding: 8px 12px; font-size: 13.5px; font-weight: 700; color: var(--tsc-muted); cursor: pointer; white-space: nowrap; }
.tsc-seg button i { font-size: 12px; }
.tsc-seg button em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--tsc-soft2); color: var(--tsc-blue); }
.tsc-seg button:hover { color: var(--tsc-ink); }
.tsc-seg button.is-on { background: var(--tsc-card); color: var(--tsc-blue); box-shadow: 0 2px 6px rgba(9, 18, 48, .1); }
.tsc-pane { padding: 14px 8px 6px; animation: tsc-in .25s ease-out; }
.tsc-h { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--tsc-ink); }
.tsc-h span { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--tsc-soft2); color: var(--tsc-blue); }

.tsc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tsc-tile { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--tsc-soft); }
.tsc-tile i { grid-row: 1 / 4; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--tsc-card); color: var(--tsc-blue); font-size: 13px; }
.tsc-tile small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tsc-muted); }
.tsc-tile b { font-size: 19px; font-weight: 800; color: var(--tsc-ink); line-height: 1.25; overflow-wrap: anywhere; }
.tsc-tile { min-width: 0; }
.tsc-tile span { font-size: 11.5px; color: var(--tsc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-tile.is-warn { background: var(--tsc-warn-bg); }
.tsc-tile.is-warn b, .tsc-tile.is-warn i { color: var(--tsc-warn); }

.tsc-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tsc-finding { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--tsc-line); border-radius: 12px; background: var(--tsc-card); color: var(--tsc-text); font-size: 14px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.tsc-finding:disabled { cursor: default; }
.tsc-finding:not(:disabled):hover { border-color: var(--tsc-blue); }
.tsc-finding > span { flex: 1; }
.tsc-finding.is-bad { border-color: rgba(192, 38, 59, .35); background: var(--tsc-bad-bg); color: var(--tsc-bad); font-weight: 600; }
.tsc-finding.is-bad > i:first-child { color: var(--tsc-bad); }
.tsc-finding.is-warn > i:first-child { color: var(--tsc-warn-c); }
.tsc-finding.is-info > i:first-child { color: #8aa4d6; }
.tsc-finding__chev { font-size: 11px; color: var(--tsc-muted); transition: transform .2s; }
.tsc-finding.is-open .tsc-finding__chev { transform: rotate(180deg); }
.tsc-findings li > p { display: none; margin: 4px 4px 4px 38px; font-size: 13px; color: var(--tsc-muted); line-height: 1.5; }
.tsc-finding.is-open + p { display: block; animation: tsc-in .2s ease-out; }

.tsc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tsc-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.tsc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.tsc-list li > i { margin-top: 2px; width: 16px; text-align: center; }
.tsc-list li span { display: grid; gap: 2px; }
.tsc-list small { color: var(--tsc-muted); font-size: 12.5px; }
.tsc-list .is-good > i { color: var(--tsc-good); }
.tsc-list .is-warn > i { color: var(--tsc-warn-c); }
.tsc-list .is-bad > i { color: var(--tsc-bad); }
.tsc-list .is-info > i { color: #8aa4d6; }

/* blocks in a tab never touch: tiles, empty states, messages and notes keep their distance */
.tsc-pane > .tsc-tiles + *, .tsc-pane > .tsc-flow + .tsc-msg, .tsc-pane > .tsc-empty + .tsc-note, .tsc-pane > .tsc-empty + .tsc-msg { margin-top: 16px; }
.tsc-empty { display: grid; justify-items: center; gap: 4px; padding: 22px 10px; text-align: center; border-radius: 14px; background: var(--tsc-soft); }
.tsc-empty i { font-size: 26px; color: var(--tsc-blue); margin-bottom: 4px; }
.tsc-empty b { color: var(--tsc-ink); }
.tsc-empty span { font-size: 13px; color: var(--tsc-muted); max-width: 420px; }

/* test trade: buy -> later -> sell */
.tsc-flow { display: grid; grid-template-columns: 1fr minmax(80px, 1.2fr) 1fr; align-items: center; gap: 4px; padding: 6px 0 4px; }
.tsc-flow__node { display: grid; justify-items: center; gap: 4px; text-align: center; }
.tsc-flow__node > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-size: 21px; background: var(--tsc-soft2); color: var(--tsc-blue); }
.tsc-flow__node.is-ok > span { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-flow__node.is-bad > span { background: var(--tsc-bad-bg); color: var(--tsc-bad); animation: tsc-shake .5s ease-in-out .4s; }
.tsc-flow__node.is-skip { opacity: .5; }
.tsc-flow__node b { color: var(--tsc-ink); font-size: 14px; }
.tsc-flow__node small { font-size: 12.5px; color: var(--tsc-muted); }
.tsc-flow__node.is-bad small { color: var(--tsc-bad); font-weight: 600; }
@keyframes tsc-shake { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.tsc-flow__link { position: relative; height: 40px; display: grid; place-items: end center; }
.tsc-flow__link i { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--tsc-line) 0 8px, transparent 8px 14px); }
.tsc-flow__link.is-live i { background: repeating-linear-gradient(90deg, rgba(var(--tsc-blue-rgb), .55) 0 8px, transparent 8px 14px); background-size: 28px 3px; animation: tsc-march 0.9s linear infinite; }
@keyframes tsc-march { to { background-position: 28px 0; } }
.tsc-flow__link small { font-size: 11.5px; font-weight: 600; color: var(--tsc-muted); }
.tsc-rt { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tsc-soft); }
.tsc-rt > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--tsc-ink); }
.tsc-rt b { font-size: 20px; font-weight: 800; color: var(--tsc-good); }
.tsc-rt small { display: block; margin-top: 6px; font-size: 12px; color: var(--tsc-muted); }
.tsc-bar { position: relative; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--tsc-soft2); overflow: hidden; }
.tsc-bar.is-thin { height: 7px; margin: 0; flex: 1; }
.tsc-bar.is-none { background: repeating-linear-gradient(90deg, var(--tsc-soft2) 0 6px, transparent 6px 10px); }
.tsc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.2, .8, .2, 1); background: var(--tsc-blue); }
.tsc-bar i.is-good { background: linear-gradient(90deg, #19a974, #3fd19a); }
.tsc-bar i.is-warn { background: linear-gradient(90deg, var(--tsc-warn-c), #f5b84a); }
.tsc-bar i.is-blue { background: linear-gradient(90deg, var(--tsc-blue), color-mix(in srgb, var(--tsc-blue) 60%, #8ab8ff)); }
.tsc-bar i.is-grey { background: #b8c4dc; }
.tsc-cmp { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--tsc-line); font-size: 13px; }
.tsc-cmp:last-of-type { border-bottom: 0; }
.tsc-cmp b { color: var(--tsc-ink); }
.tsc-cmp > div { display: flex; align-items: center; gap: 8px; }
.tsc-cmp > div > span { width: 58px; color: var(--tsc-muted); font-size: 12px; }
.tsc-cmp em { font-style: normal; font-weight: 700; color: var(--tsc-ink); min-width: 44px; text-align: right; }

/* contract */
.tsc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; font-size: 13px; }
.tsc-sum > span b { font-size: 16px; margin-right: 3px; }
.tsc-sum .is-good { color: var(--tsc-good); }
.tsc-sum .is-warn { color: var(--tsc-warn); }
.tsc-filter { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--tsc-soft); }
.tsc-filter button { border: 0; border-radius: 8px; background: none; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--tsc-muted); cursor: pointer; }
.tsc-filter button.is-on { background: var(--tsc-card); color: var(--tsc-blue); box-shadow: 0 1px 4px rgba(9, 18, 48, .1); }
.tsc-owner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tsc-soft); }
.tsc-owner > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--tsc-card); color: var(--tsc-blue); }
.tsc-owner span { flex: 1; display: grid; }
.tsc-owner b { color: var(--tsc-ink); font-size: 14px; }
.tsc-owner small { color: var(--tsc-muted); font-size: 12.5px; }

/* holders */
.tsc-holders { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.tsc-donut { position: relative; width: 112px; height: 112px; flex: none; }
.tsc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tsc-donut circle { fill: none; stroke-width: 14; }
.tsc-donut__bg { stroke: var(--tsc-soft2); }
.tsc-donut__fg { stroke: var(--tsc-blue); stroke-linecap: round; animation: tsc-donut 1s cubic-bezier(.2, .8, .2, 1); }
.tsc-donut__fg.is-warn { stroke: var(--tsc-warn-c); }
@keyframes tsc-donut { from { stroke-dasharray: 0 999; } }
.tsc-donut > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tsc-donut b { font-size: 18px; font-weight: 800; color: var(--tsc-ink); }
.tsc-donut small { font-size: 11px; color: var(--tsc-muted); }
.tsc-holders__txt { display: grid; gap: 4px; }
.tsc-holders__txt b { color: var(--tsc-ink); font-size: 16px; }
.tsc-holders__txt span { font-size: 13px; color: var(--tsc-muted); }
.tsc-hbar { padding: 10px 0; border-top: 1px dashed var(--tsc-line); }
.tsc-hbar > div:first-child { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--tsc-ink); }
.tsc-hbar small { display: block; margin-top: 4px; font-size: 12px; color: var(--tsc-muted); }

/* history */
.tsc-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--tsc-soft2); display: grid; gap: 14px; }
.tsc-timeline li { position: relative; display: grid; gap: 1px; font-size: 13.5px; }
.tsc-timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--tsc-card); border: 3px solid var(--tsc-blue); }
.tsc-timeline time { font-size: 12px; color: var(--tsc-muted); }
.tsc-timeline b { color: var(--tsc-ink); }
.tsc-timeline span i { font-size: 10px; margin: 0 4px; color: var(--tsc-muted); }

/* side: market + feed */
.tsc-market { display: grid; gap: 4px; }
.tsc-market__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tsc-muted); }
.tsc-market__top em { font-style: normal; letter-spacing: 0; text-transform: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tsc-market__top em.is-up { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-market__top em.is-down { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-market__price { font-size: 28px; font-weight: 800; color: var(--tsc-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.tsc-spark { width: 100%; height: 76px; margin-top: 4px; }
.tsc-spark.is-up { color: #19a974; }
.tsc-spark.is-down { color: var(--tsc-bad); }
.tsc-spark.is-loading { border-radius: 10px; background: linear-gradient(90deg, var(--tsc-soft), transparent, var(--tsc-soft)); background-size: 200% 100%; animation: tsc-sk 1.2s linear infinite; }
@keyframes tsc-sk { to { background-position: -200% 0; } }
.tsc-market__range { font-size: 11px; color: var(--tsc-muted); text-align: right; }
.tsc-market dl { margin: 8px 0 0; display: grid; gap: 6px; }
.tsc-market dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--tsc-line); }
.tsc-market dt { font-weight: 500; color: var(--tsc-muted); }
.tsc-market dd { margin: 0; font-weight: 700; color: var(--tsc-ink); text-align: right; }
.tsc-market.is-empty { justify-items: center; text-align: center; }
.tsc-market.is-empty i { font-size: 24px; color: var(--tsc-blue); }
.tsc-market.is-empty b { color: var(--tsc-ink); }
.tsc-market.is-empty span { font-size: 13px; color: var(--tsc-muted); }
.tsc-link { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--tsc-blue); text-decoration: none; }
.tsc-link:hover { text-decoration: underline; }

.tsc-recent { background: var(--tsc-card); border-radius: var(--tsc-r); box-shadow: var(--tsc-shadow); padding: 16px 18px; }
.tsc-recent[hidden] { display: none; }
.tsc-recent.is-side { padding: 16px; }
.tsc-recent h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14.5px; font-weight: 700; color: var(--tsc-ink); }
.tsc-live { width: 9px; height: 9px; border-radius: 50%; background: var(--tsc-bad); box-shadow: 0 0 0 0 rgba(192, 38, 59, .5); animation: tsc-live 1.6s ease-out infinite; }
@keyframes tsc-live { 70% { box-shadow: 0 0 0 8px rgba(192, 38, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 38, 59, 0); } }
.tsc-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 12px; }
.tsc-recent.is-side .tsc-feed { grid-template-columns: 1fr; }
.tsc-feed button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, auto) minmax(0, 1fr) 10px; gap: 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.tsc-feed button:hover { background: var(--tsc-bad-bg); }
.tsc-feed .tsc-ava { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
.tsc-feed__id { display: grid; }
.tsc-feed__id b { font-size: 13.5px; color: var(--tsc-ink); }
.tsc-feed__id small { font-size: 11px; color: var(--tsc-muted); white-space: nowrap; }
.tsc-feed__why { font-size: 12px; color: var(--tsc-bad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsc-feed button > i { font-size: 10px; color: var(--tsc-muted); }
.tsc-recent.is-side .tsc-feed__why { display: none; }
.tsc-recent p { margin: 10px 0 0; font-size: 11.5px; color: var(--tsc-muted); }

.tsc-src { margin: 0; font-size: 12px; color: var(--tsc-muted); text-align: center; }
.tsc-src a { color: var(--tsc-blue); }
.tsc-fine { text-align: center; color: var(--tsc-muted); font-size: 12px; margin: 22px 0 0; }

/* ---- market overview (before a scan) */
.tsc-skel { display: grid; gap: 10px; min-height: 120px; align-content: center; }
.tsc-skel span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--tsc-soft), var(--tsc-soft2), var(--tsc-soft)); background-size: 200% 100%; animation: tsc-sk 1.2s linear infinite; }
.tsc-skel span:nth-child(2) { width: 70%; }
.tsc-skel span:nth-child(3) { width: 45%; }
.tsc-dash { display: grid; gap: 16px; }
.tsc-dash__head { text-align: center; margin: 10px 0 2px; }
.tsc-dash__head h2, .tsc-howto { margin: 0 0 4px; font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; color: var(--tsc-ink); letter-spacing: -.01em; }
.tsc-dash__head h2 span { color: var(--tsc-blue); }
.tsc-dash__head p { margin: 0; font-size: 14px; color: var(--tsc-muted); }
.tsc-howto { text-align: center; margin: 14px 0 0; font-size: 19px; }
.tsc-linkbtn { border: 0; padding: 0; background: none; color: var(--tsc-blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.tsc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tsc-kpi { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--tsc-r); background: var(--tsc-card); box-shadow: var(--tsc-shadow); animation: tsc-in .35s ease-out both; }
.tsc-kpi i { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--tsc-soft2); color: var(--tsc-blue); font-size: 15px; }
.tsc-kpi b { font-size: 22px; font-weight: 800; color: var(--tsc-ink); line-height: 1.1; align-self: end; }
.tsc-kpi span { font-size: 12px; color: var(--tsc-muted); align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-kpi.is-bad i { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-kpi.is-bad b { color: var(--tsc-bad); }
.tsc-kpi.is-new i { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-dash__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tsc-dash__lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tsc-dash h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 15.5px; font-weight: 700; color: var(--tsc-ink); }
.tsc-dash h3 > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--tsc-soft2); color: var(--tsc-blue); font-size: 12.5px; }
.tsc-lead { margin: 0 0 12px; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-list-card.is-bad h3 > i { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-list-card.is-warn h3 > i { background: var(--tsc-warn-bg); color: var(--tsc-warn-c); }
.tsc-list-card.is-ok h3 > i { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-list-card.is-bad { box-shadow: inset 0 3px 0 rgba(192, 38, 59, .7), var(--tsc-shadow); }
.tsc-list-card.is-warn { box-shadow: inset 0 3px 0 rgba(232, 147, 12, .8), var(--tsc-shadow); }
.tsc-list-card.is-ok { box-shadow: inset 0 3px 0 rgba(25, 169, 116, .8), var(--tsc-shadow); }
.tsc-empty.is-small { padding: 14px 10px; }
.tsc-empty.is-small span { font-size: 12.5px; }

/* risk map */
.tsc-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--tsc-soft2); }
.tsc-stack i { display: block; width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.tsc-stack .is-ok, .tsc-mini .is-ok, .tsc-legend .is-ok i { background: #19a974; }
.tsc-stack .is-caution, .tsc-mini .is-caution, .tsc-legend .is-caution i { background: var(--tsc-warn-c); }
.tsc-stack .is-high, .tsc-mini .is-high, .tsc-legend .is-high i { background: var(--tsc-bad); }
.tsc-stack .is-unknown, .tsc-mini .is-unknown, .tsc-legend .is-unknown i { background: #c6d2ea; }
.tsc-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--tsc-muted); }
.tsc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tsc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tsc-legend b { color: var(--tsc-ink); }
.tsc-nets-mini { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.tsc-nets-mini button { width: 100%; display: grid; grid-template-columns: 18px 110px 1fr 56px; gap: 10px; align-items: center; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font-size: 13px; color: var(--tsc-ink); }
.tsc-nets-mini button:hover { background: var(--tsc-soft); }
.tsc-nets-mini img { width: 18px; height: 18px; border-radius: 50%; }
.tsc-nets-mini span:not(.tsc-mini) { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-nets-mini em { font-style: normal; font-size: 12px; color: var(--tsc-muted); text-align: right; }
.tsc-mini { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--tsc-soft2); }
.tsc-mini i { display: block; }

/* right column: red flags, new launches per hour, our test trade (fills the height of the risk map) */
.tsc-bar i.is-bad { background: linear-gradient(90deg, var(--tsc-bad), #e45a6c); }
.tsc-flags { display: flex; flex-direction: column; }
.tsc-flaglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1 0 auto; align-content: space-around; }
.tsc-flaglist li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background .15s; animation: tsc-in .35s ease-out both; animation-delay: var(--d, 0ms); }
.tsc-flaglist li:hover { background: var(--tsc-soft); }
.tsc-flaglist li > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--tsc-warn-bg); color: var(--tsc-warn-c); font-size: 13.5px; }
.tsc-flaglist li.is-bad > i { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-flaglist__txt { display: grid; gap: 7px; min-width: 0; }
.tsc-flaglist__txt span { font-size: 13px; font-weight: 500; color: var(--tsc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-flaglist__txt .tsc-bar.is-thin { flex: none; height: 6px; }
.tsc-flaglist li b { display: grid; min-width: 46px; text-align: right; font-size: 14.5px; font-weight: 800; color: var(--tsc-ink); line-height: 1.15; }
.tsc-flaglist li b small { font-size: 11px; font-weight: 600; color: var(--tsc-muted); }
.tsc-flaglist li.is-bad b { color: var(--tsc-bad); }

.tsc-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 10px; }
.tsc-sub h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--tsc-ink); }
.tsc-sub h4 i { color: var(--tsc-blue); font-size: 12px; }
.tsc-hours, .tsc-tests { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--tsc-line); }
.tsc-hours__info { font-size: 12px; color: var(--tsc-muted); font-variant-numeric: tabular-nums; }
.tsc-hours__info b { color: var(--tsc-ink); }
.tsc-hours__info em { font-style: normal; font-weight: 700; color: var(--tsc-warn); }
.tsc-hours__bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px; border-radius: 12px; background: var(--tsc-soft); }
.tsc-hours__bars span { flex: 1; min-width: 0; height: var(--h); display: flex; flex-direction: column; border-radius: 4px 4px 2px 2px; overflow: hidden; cursor: default; transform-origin: bottom; animation: tsc-grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); transition: box-shadow .15s, opacity .15s; }
.tsc-hours__bars:hover span { opacity: .55; }
.tsc-hours__bars span:hover { opacity: 1; box-shadow: 0 0 0 2px rgba(var(--tsc-blue-rgb), .35); }
.tsc-hours__bars i { display: block; flex-grow: 0; flex-shrink: 0; }
.tsc-hours__bars .is-ok { background: #19a974; }
.tsc-hours__bars .is-caution { background: var(--tsc-warn-c); }
.tsc-hours__bars .is-high { background: var(--tsc-bad); }
.tsc-hours__bars .is-unknown { background: #c6d2ea; }
@keyframes tsc-grow { from { transform: scaleY(0); } }
.tsc-hours__axis { display: flex; justify-content: space-between; margin: 6px 4px 0; font-size: 11px; color: var(--tsc-muted); }
.tsc-legend.is-small { margin-top: 8px; gap: 4px 12px; font-size: 11.5px; }
.tsc-tests__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tsc-tt { display: grid; align-content: start; gap: 2px; padding: 12px; border-radius: 12px; background: var(--tsc-soft); animation: tsc-in .35s ease-out both; }
.tsc-tt i { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 9px; background: var(--tsc-card); color: var(--tsc-blue); font-size: 12px; }
.tsc-tt b { font-size: 19px; font-weight: 800; color: var(--tsc-ink); line-height: 1.1; }
.tsc-tt span { font-size: 11.5px; line-height: 1.3; color: var(--tsc-muted); }
.tsc-tt.is-ok i { color: var(--tsc-good); }
.tsc-tt.is-ok b { color: var(--tsc-good); }
.tsc-tt.is-warn i { color: var(--tsc-warn-c); }
.tsc-tt.is-bad i { color: var(--tsc-bad); }
.tsc-tt.is-bad b { color: var(--tsc-bad); }
.tsc-tt.is-ok { background: var(--tsc-good-bg); }
.tsc-tt.is-warn { background: var(--tsc-warn-bg); }
.tsc-tt.is-warn b { color: var(--tsc-warn); }
.tsc-tt.is-bad { background: var(--tsc-bad-bg); }

/* token lists */
.tsc-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tsc-trow { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.tsc-trow:hover { background: var(--tsc-soft); transform: translateX(2px); }
.tsc-trow .tsc-ava { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
.tsc-trow__id { display: grid; min-width: 0; }
.tsc-trow__id b { font-size: 13.5px; color: var(--tsc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-trow__id small { font-size: 11.5px; color: var(--tsc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsc-pill { min-width: 34px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center; }
.tsc-pill.is-ok { background: var(--tsc-good-bg); color: var(--tsc-good); }
.tsc-pill.is-warn { background: var(--tsc-warn-bg); color: var(--tsc-warn); }
.tsc-pill.is-bad { background: var(--tsc-bad-bg); color: var(--tsc-bad); }
.tsc-pill.is-unknown { background: var(--tsc-soft2); color: var(--tsc-muted); }
.tsc-tlist.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }

/* new tokens today */
.tsc-fresh__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 8px; }
.tsc-fresh__nums b { display: block; font-size: 24px; font-weight: 800; color: var(--tsc-ink); line-height: 1.1; }
.tsc-fresh__nums span { font-size: 12px; color: var(--tsc-muted); }
.tsc-fresh__nums .is-warn b { color: var(--tsc-warn); }

@media (max-width: 1080px) {
    .tsc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tsc-kpi:nth-child(4), .tsc-kpi:nth-child(5) { grid-column: span 1; }
    .tsc-dash__lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .tsc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tsc-kpi:nth-child(5) { grid-column: 1 / -1; }
    .tsc-dash__row, .tsc-dash__lists { grid-template-columns: minmax(0, 1fr); }
    .tsc-nets-mini button { grid-template-columns: 18px 90px 1fr 44px; }
    .tsc-tlist.is-compact { grid-template-columns: minmax(0, 1fr); }
    .tsc-tests__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tsc-hours__bars { gap: 2px; height: 100px; }
}

/* ---- responsive */
@media (max-width: 1080px) {
    .tsc-grid { grid-template-columns: minmax(0, 1fr); }
    .tsc-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 860px) {
    .tsc-steps-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tsc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tsc { padding: 24px 0 44px; }
    .tsc-form { flex-direction: column; }
    .tsc-go { height: 52px; }
    .tsc-paste span { display: none; }
    .tsc-tryrow { justify-content: flex-start; }
    .tsc-verdict { flex-direction: column; text-align: center; gap: 12px; }
    .tsc-verdict .tsc-chips { justify-content: center; }
    .tsc-list.is-grid { grid-template-columns: 1fr; }
    .tsc-id__act { width: 100%; }
    .tsc-id__act .tsc-btn { flex: 1; justify-content: center; }
    .tsc-cmp { grid-template-columns: 1fr; }
    .tsc-filter { margin-left: 0; }
    .tsc-seg button span { display: none; }
    .tsc-seg button.is-on span { display: inline; }
    .tsc-steps-preview { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .tsc *, .tsc *::before, .tsc *::after { animation: none !important; transition: none !important; }
}
