/* TrueRuntime design system: one radius, one stroke, 4px spacing scale. build.py appends calculator.css to this file. */
@font-face { font-family: Heebo; font-weight: 400; font-display: swap; src: url(/fonts/heebo-400.woff2) format("woff2"); }
@font-face { font-family: Heebo; font-weight: 700; font-display: swap; src: url(/fonts/heebo-700.woff2) format("woff2"); }
@font-face { font-family: Heebo; font-weight: 900; font-display: swap; src: url(/fonts/heebo-900.woff2) format("woff2"); }

:root {
  --c-bg: #ffffff;
  --c-surface: #f7f8fa;
  --c-ink: #0f172a;
  --c-ink-2: #475569;
  --c-accent: #0e7c66;
  --c-accent-ink: #ffffff;
  --c-warn: #b45309;
  --c-fail: #b91c1c;
  --c-line: #e2e8f0;
  --c-night: #0b1424;
  --c-mint: #8ce5cb;
  --c-amber: #fbbf24;

  --font: Heebo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-14: 0.9375rem;
  --fs-16: 1.0625rem;
  --fs-20: 1.25rem;
  --fs-28: 1.75rem;
  --fs-40: 2.5rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;

  --radius: 8px;
  --stroke: 1px solid var(--c-line);
  --btn-h: 44px;
  --max-w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--s-6); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 var(--fs-16)/1.55 var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 900; }
a { color: var(--c-accent); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--c-mint); outline-offset: 2px; }
main :focus-visible { outline-color: var(--c-accent); }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-4); }
.sec { padding: var(--s-16) 0; }
.wrap.sec { padding: var(--s-16) var(--s-4); }
.calc { padding-top: var(--s-12); padding-bottom: var(--s-16); }
.band { background: var(--c-surface); border-block: var(--stroke); }
.lead { color: var(--c-ink-2); max-width: 60ch; margin-top: var(--s-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); padding: 0 var(--s-6); border: 0; border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-ink); font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #0a6553; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 9; background: #fff; color: var(--c-ink); padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: var(--s-2); }

/* logo: the channel icon and the name, side by side */
.logo { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--btn-h); text-decoration: none; font-weight: 900; font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo span span { color: var(--c-mint); }
footer .logo { color: var(--c-ink); }
footer .logo span span { color: var(--c-accent); }

/* header */
.night { position: relative; background: var(--c-night); color: #fff; }
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.nav { display: flex; gap: var(--s-6); }
.nav a { color: #e2e8f0; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: var(--btn-h); }
.nav a:hover, .nav a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--c-mint); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: var(--btn-h); display: inline-flex; align-items: center; padding: 0 var(--s-4); border: 1px solid #475569; border-radius: var(--radius); font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu div { position: absolute; right: 0; top: 52px; background: #fff; border-radius: var(--radius); padding: var(--s-2) 0; min-width: 230px; box-shadow: 0 12px 32px #0006; }
.menu a { display: block; padding: var(--s-3) var(--s-4); color: var(--c-ink); text-decoration: none; font-weight: 700; }
.ph { padding-top: var(--s-6); padding-bottom: var(--s-12); }
.ph h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 900; max-width: 24ch; }
.ph p { color: #cbd5e1; font-size: 1.1875rem; max-width: 56ch; margin-top: var(--s-3); }

/* home hero */
.hero { overflow: hidden; background: linear-gradient(#070d1a, #14223c 78%); min-height: 660px; }
.pitch { position: relative; z-index: 2; padding-top: var(--s-12); max-width: 600px; }
.pitch h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.pitch h1 em { font-style: normal; color: var(--c-mint); }
.pitch p { margin-top: var(--s-4); font-size: 1.1875rem; color: #cbd5e1; max-width: 46ch; }
.go { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; margin-top: var(--s-6); }
.go a:not(.btn) { color: #fff; font-weight: 700; text-underline-offset: 5px; }
.scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 470px; }
.flow { stroke-dasharray: 4 16; animation: flow 1.1s linear infinite; }
.led { animation: led 10s steps(1) infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes led { 0%, 70% { fill: #19b394; } 71%, 100% { fill: #334155; } }
@media (prefers-reduced-motion: reduce) { .flow, .led { animation: none; } }

/* one-number answer */
.quick { position: relative; z-index: 3; margin-top: -40px; background: #fff; border: var(--stroke); border-radius: var(--radius); box-shadow: 0 18px 48px #0f172a1f; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ask { padding: var(--s-8); }
.ask h2 { font-size: 1.625rem; }
.label { margin-top: var(--s-6); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.tag { background: #fde047; border: 3px solid var(--c-ink); border-radius: var(--radius); padding: var(--s-2) var(--s-4); text-align: center; font-weight: 700; line-height: 1.1; min-width: 132px; }
.tag b { display: block; font-size: 2.25rem; font-weight: 900; letter-spacing: -0.02em; }
.tag small { font-size: 0.875rem; }
input[type="range"] { width: 100%; height: var(--btn-h); accent-color: var(--c-accent); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.chips button { height: var(--btn-h); padding: 0 var(--s-4); border: var(--stroke); border-radius: var(--radius); background: #fff; font: 700 1rem/1 var(--font); color: var(--c-ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.ans { padding: var(--s-8); background: var(--c-surface); border-left: var(--stroke); border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column; justify-content: center; }
.ans output { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--c-accent); display: block; margin: var(--s-1) 0 var(--s-2); }
.ans p { color: var(--c-ink-2); }
.ans .fine { margin-top: var(--s-3); font-size: var(--fs-14); }
.ans .btn { margin-top: var(--s-4); align-self: flex-start; }

/* guide cards */
.guides { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.g { border: var(--stroke); border-radius: var(--radius); padding: var(--s-6); text-decoration: none; color: inherit; background: #fff; display: flex; flex-direction: column; gap: var(--s-3); }
.g:hover { border-color: var(--c-accent); }
.g h3 { font-size: 1.375rem; font-weight: 900; }
.g p { color: var(--c-ink-2); }
.g .more { color: var(--c-accent); font-weight: 700; margin-top: auto; }
.g.big { grid-row: span 2; background: var(--c-surface); }
.g.big h3 { font-size: 1.875rem; }
.g.big svg { width: 100%; height: auto; margin-top: var(--s-2); }
.pair { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pair span { font-weight: 700; font-size: var(--fs-14); padding: var(--s-1) var(--s-3); border-radius: var(--radius); color: #fff; background: var(--c-accent); }
.pair .alt { background: #1d4ed8; }

/* steps */
.steps { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6); }
.steps li { display: grid; gap: var(--s-2); align-content: start; }
.steps svg { width: 72px; height: 72px; }
.steps b { font-weight: 900; font-size: 1.125rem; line-height: 1.2; }
.steps span { color: var(--c-ink-2); font-size: 1rem; line-height: 1.45; }
.after { margin-top: var(--s-8); }

/* videos */
.vids { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 200px); gap: var(--s-6); align-items: start; }
.vids .btn { margin-top: var(--s-6); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-8) var(--s-6); margin-top: var(--s-8); }
.v[hidden] { display: none; }
.v .p { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--c-ink); cursor: pointer; }
.v img, .v iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.v i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #0f172ae6; }
.v i::after { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.v .p:hover i { background: var(--c-accent); }
.v .len { position: absolute; right: var(--s-2); bottom: var(--s-2); background: #0f172ae6; color: #fff; font: 700 0.875rem/1 var(--font); padding: var(--s-1) var(--s-2); border-radius: var(--radius); }
.v h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin-top: var(--s-2); text-wrap: pretty; }
.v .links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); font-size: var(--fs-14); }
.v .links a { min-height: var(--btn-h); display: inline-flex; align-items: center; }
.note { color: var(--c-ink-2); font-size: var(--fs-14); margin-top: var(--s-6); }

/* trust */
.trust { background: var(--c-night); color: #fff; }
.trust h2 { max-width: 20ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); margin-top: var(--s-8); }
.facts b { display: block; font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--c-mint); }
.facts .w b { color: var(--c-amber); }
.facts p { color: #cbd5e1; margin-top: var(--s-2); }
.trust .links { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.trust .links a { color: #fff; font-weight: 700; text-underline-offset: 5px; min-height: var(--btn-h); display: inline-flex; align-items: center; }

/* articles */
.art { max-width: 720px; padding: var(--s-12) 0 var(--s-16); }
.art > * + * { margin-top: var(--s-4); }
.art h2 { font-size: 1.625rem; margin-top: var(--s-12); }
.art h3 { font-size: 1.25rem; margin-top: var(--s-8); }
.art ul { margin-bottom: 0; padding-left: 1.2em; }
.art li + li { margin-top: var(--s-2); }
.art table { border-collapse: collapse; width: 100%; }
.art th, .art td { border-bottom: var(--stroke); padding: var(--s-3); text-align: left; vertical-align: top; }
.art th { background: var(--c-surface); font-weight: 700; }
.art .tr-scroll { overflow-x: auto; border: var(--stroke); border-radius: var(--radius); }
.art .tr-scroll tr:last-child td { border-bottom: 0; }
.art pre { background: var(--c-surface); border: var(--stroke); padding: var(--s-4); border-radius: var(--radius); white-space: pre-wrap; }
.art .tr-disclosure { background: var(--c-surface); border-radius: var(--radius); padding: var(--s-4); margin-top: 0; }
.art figure img { display: block; width: 100%; height: auto; border: var(--stroke); border-radius: var(--radius); }
.art figcaption { color: var(--c-ink-2); font-size: var(--fs-14); margin-top: var(--s-2); }
.art .tr-model, .art .tr-model:first-of-type { border: var(--stroke); border-radius: var(--radius); padding: var(--s-6); }
.art .tr-model-name { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.01em; }
.art .tr-links { margin-top: var(--s-3); }
.art .tr-links a { display: inline-flex; align-items: center; min-height: var(--btn-h); padding: 0 var(--s-4); border: 2px solid var(--c-accent); border-radius: var(--radius); font: 700 1rem/1.2 var(--font); text-decoration: none; }
.art .tr-links a:hover { background: var(--c-accent); color: #fff; }

/* footer */
footer { border-top: var(--stroke); padding: var(--s-8) 0 var(--s-12); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-12); align-items: flex-start; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); max-width: 640px; }
footer nav a { color: var(--c-ink); min-height: var(--btn-h); display: inline-flex; align-items: center; }
footer p { color: var(--c-ink-2); font-size: var(--fs-14); width: 100%; max-width: 72ch; }

@media (max-width: 1280px) { .pole { display: none; } }
@media (max-width: 1180px) {
  .scene { height: 360px; }
  .pitch { max-width: 47vw; }
}
@media (max-width: 900px) {
  .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vids > div:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero { min-height: 0; padding-bottom: 318px; }
  .scene { height: 310px; }
  .pitch { padding-top: var(--s-6); max-width: none; }
  .quick { grid-template-columns: minmax(0, 1fr); margin-top: -24px; }
  .ans { border-left: 0; border-top: var(--stroke); border-radius: 0 0 var(--radius) var(--radius); }
  .ask, .ans { padding: var(--s-6); }
  .label { gap: var(--s-4); }
  .tag { min-width: 116px; padding: var(--s-2); }
  .sec { padding: var(--s-12) 0; }
  .wrap.sec, .calc { padding-top: var(--s-8); padding-bottom: var(--s-12); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .vids, .vgrid { gap: var(--s-6) var(--s-3); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vids .v h3 { font-size: var(--fs-14); }
  .vids .v i { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .vids .v i::after { left: 18px; top: 13px; border-width: 9px; border-left-width: 13px; }
  .vids .v .links { display: none; }
  .ph { padding-top: var(--s-2); padding-bottom: var(--s-8); }
  .art { padding: var(--s-8) 0 var(--s-12); }
  .art th, .art td { padding: var(--s-2); }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 var(--s-4); }
  .steps svg { grid-row: span 2; }
}

/* social links: grey icon, then a ring, a glow and a name on hover */
.social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-4); margin: 0; padding: 0; }
.social a { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #7c8aa0; transition: color 0.25s ease; }
.social a::before { content: ""; position: absolute; inset: 4px; border: 2px solid var(--c-accent); border-radius: 50%; opacity: 0; transform: scale(0.6); transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.25s ease, box-shadow 0.35s ease; }
.social a::after { content: attr(data-name); position: absolute; top: 100%; left: 50%; padding: 2px var(--s-2); border-radius: var(--radius); background: var(--c-ink); color: #fff; font-size: 0.875rem; line-height: 1.5; white-space: nowrap; opacity: 0; transform: translate(-50%, -6px); transition: transform 0.25s ease, opacity 0.2s ease; pointer-events: none; z-index: 2; }
.social svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1); }
.social a:hover, .social a:focus-visible { color: var(--c-accent); outline: none; }
.social a:hover::before, .social a:focus-visible::before { opacity: 1; transform: none; box-shadow: 0 0 0 6px #8ce5cb40; }
.social a:hover::after, .social a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.social a:hover svg, .social a:focus-visible svg { transform: scale(1.12); }
footer .social { margin: 0 -16px; gap: 0; }

/* contact form: one open corner per field, alternating sides */
.contact { max-width: 720px; }
.form { display: grid; gap: var(--s-6); position: relative; overflow-x: clip; }
.form .f { position: relative; }
.form .f input, .form .f textarea { display: block; width: 100%; padding: 30px var(--s-6) var(--s-3); border: 0 solid var(--c-accent); border-width: 0 0 2px 2px; border-radius: 0 0 0 24px; background: transparent; color: var(--c-ink); font: 400 1.0625rem/1.5 var(--font); transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.form .f.alt input { border-width: 0 2px 2px 0; border-radius: 0 0 24px 0; }
.form .f textarea { min-height: 190px; resize: vertical; border-width: 0 0 2px 2px; border-radius: 0 0 24px 24px; }
.form .f label { position: absolute; left: calc(var(--s-6) + 2px); top: 21px; color: var(--c-ink-2); font-size: 1.125rem; line-height: 1.5; pointer-events: none; transform-origin: left top; transition: transform 0.22s ease, color 0.22s ease; }
.form .f.alt label { left: var(--s-6); }
.form .f input:focus + label, .form .f textarea:focus + label, .form .f input:not(:placeholder-shown) + label, .form .f textarea:not(:placeholder-shown) + label { transform: translateY(-15px) scale(0.8); color: var(--c-accent); font-weight: 700; }
.form .f input:hover, .form .f textarea:hover { background-color: #0e7c660a; }
.form .f input:focus, .form .f textarea:focus { outline: none; background-color: #0e7c660f; box-shadow: 0 14px 28px -18px #0e7c66b3; }
.form .f [aria-invalid] { border-color: var(--c-fail); }
.form .f [aria-invalid] + label { color: var(--c-fail); }
.form .check { display: flex; gap: var(--s-3); align-items: center; min-height: var(--btn-h); cursor: pointer; }
.form .check input { width: 24px; height: 24px; margin: 0; accent-color: var(--c-accent); flex: none; }
.form .check input[aria-invalid] { outline: 2px solid var(--c-fail); outline-offset: 2px; }
.send { position: relative; overflow: hidden; min-height: 60px; border: 0; border-radius: 12px; background: var(--c-ink); color: #fff; font: 700 1.1875rem/1 var(--font); cursor: pointer; box-shadow: 0 5px 0 var(--c-accent); transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.25s ease; }
.send::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #8ce5cb4d 50%, transparent 70%); transform: translateX(-100%); }
.send:hover { background: #14223c; transform: translateY(2px); box-shadow: 0 3px 0 var(--c-mint); }
.send:hover::before { transform: translateX(100%); transition: transform 0.8s ease; }
.send:active { transform: translateY(5px); box-shadow: none; }
.send span { position: relative; }
.is-sending .send { opacity: 0.7; cursor: progress; }
.is-sent .send { box-shadow: 0 5px 0 var(--c-mint); }
.status { min-height: 1.55em; font-weight: 700; text-align: center; }
.status.is-ok { color: var(--c-accent); }
.status.is-bad { color: var(--c-fail); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact .or { text-align: center; color: var(--c-ink-2); margin: var(--s-4) 0 var(--s-8); }

/* notes under each video */
.v details { margin-top: var(--s-2); font-size: var(--fs-14); }
.v summary { min-height: var(--btn-h); display: flex; align-items: center; gap: var(--s-2); cursor: pointer; color: var(--c-accent); font-weight: 700; list-style: none; }
.v summary::-webkit-details-marker { display: none; }
.v summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-surface); line-height: 1; }
.v details[open] summary::before { content: "\2212"; }
.v details p { color: var(--c-ink-2); overflow-wrap: anywhere; }
.v details ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.v details li + li { margin-top: var(--s-1); }
.v video { width: 100%; height: 100%; background: #000; display: block; }

@media (prefers-reduced-motion: reduce) {
  .social a::before, .social a::after, .social svg, .send, .form .f label { transition: none; }
  .send:hover::before { transform: translateX(-100%); transition: none; }
}

/* Calculator and unit-card parts. Tokens and page frame: theme/site.css. */
.tr-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }
@media (min-width: 840px) {
  .tr-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .tr-results { position: sticky; top: var(--s-4); }
}

.tr-step h2 { font-size: var(--fs-20); line-height: 1.2; margin: 0 0 var(--s-3); }
.tr-step + .tr-step { margin-top: var(--s-8); }
.tr-muted { color: var(--c-ink-2); font-size: var(--fs-14); }

/* Buttons & chips share one size system */
.tr-btn,
.tr-chip {
  height: var(--btn-h);
  padding: 0 var(--s-4);
  border: var(--stroke);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-ink);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
}
.tr-chip:hover,
.tr-btn:hover { border-color: var(--c-accent); }
.tr-chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.tr-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }

.tr-input,
.tr-select {
  height: var(--btn-h);
  padding: 0 var(--s-3);
  border: var(--stroke);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-ink);
  font: inherit;
  width: 100%;
}

/* Device rows */
.tr-rows { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.tr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px 64px var(--btn-h);
  gap: var(--s-2);
  align-items: start;
  padding: var(--s-3);
  border: var(--stroke);
  border-radius: var(--radius);
  background: var(--c-surface);
}
.tr-row-head { padding: 0 var(--s-3); border: 0; background: none; color: var(--c-ink-2); font-size: var(--fs-14); }
.tr-row-name { font-weight: 600; }
.tr-row-note { display: block; font-weight: 400; color: var(--c-ink-2); font-size: var(--fs-14); margin-top: var(--s-1); }
.tr-row .tr-input { padding: 0 var(--s-2); }
.tr-remove { width: var(--btn-h); padding: 0; }
.tr-field { display: grid; gap: var(--s-1); }
.tr-field-cap { display: none; font-size: var(--fs-14); color: var(--c-ink-2); }
@media (max-width: 560px) {
  .tr-row { grid-template-columns: 1fr 1fr 1fr var(--btn-h); align-items: end; }
  .tr-row > .tr-row-name { grid-column: 1 / -1; }
  .tr-row-head { display: none; }
  .tr-field-cap { display: block; }
}
.tr-empty { padding: var(--s-6); border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-ink-2); text-align: center; }

.tr-custom { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-3); }
.tr-custom .tr-input { width: 120px; }

details.tr-adv { margin-top: var(--s-8); border-top: var(--stroke); padding-top: var(--s-4); }
details.tr-adv summary { cursor: pointer; font-weight: 600; }
.tr-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.tr-adv label { display: grid; gap: var(--s-1); font-size: var(--fs-14); color: var(--c-ink-2); }

/* Results */
.tr-card { border: var(--stroke); border-radius: var(--radius); background: var(--c-surface); padding: var(--s-6); }
.tr-need-label { font-size: var(--fs-14); color: var(--c-ink-2); margin: 0; }
.tr-need { font-size: var(--fs-40); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: var(--s-1) 0 var(--s-2); }
.tr-need small { font-size: var(--fs-20); font-weight: 600; color: var(--c-ink-2); }
.tr-out { margin: 0 0 var(--s-4); color: var(--c-ink-2); }

.tr-bar { height: 8px; border-radius: var(--radius); background: var(--c-line); overflow: hidden; }
.tr-bar > span { display: block; height: 100%; background: var(--c-accent); }
.tr-bar.is-low > span { background: var(--c-warn); }
.tr-share { margin: var(--s-2) 0 0; font-size: var(--fs-14); color: var(--c-ink-2); }

.tr-tip { margin-top: var(--s-4); padding: var(--s-3); border-radius: var(--radius); background: var(--c-bg); border: var(--stroke); font-size: var(--fs-14); }
.tr-tip strong { color: var(--c-warn); }

.tr-matches { margin-top: var(--s-6); }
.tr-matches h3 { font-size: var(--fs-16); margin: 0 0 var(--s-3); }
.tr-model { padding: var(--s-4) 0; border-top: var(--stroke); }
.tr-model:first-of-type { border-top: 0; padding-top: 0; }
.tr-model-name { font-weight: 700; margin: 0; }
.tr-model-spec { margin: var(--s-1) 0; color: var(--c-ink-2); font-size: var(--fs-14); }
.tr-model-run { margin: var(--s-1) 0; }
.tr-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0; padding: 0; list-style: none; font-size: var(--fs-14); }
.tr-badge { padding: 2px var(--s-2); border: var(--stroke); border-radius: var(--radius); background: var(--c-bg); }
.tr-badge.is-ok { color: var(--c-accent); }
.tr-badge.is-unknown { color: var(--c-warn); }
.tr-badge.is-fail { color: var(--c-fail); }
.tr-links { display: flex; gap: var(--s-4); font-size: var(--fs-14); }
.tr-toggle { margin-top: var(--s-4); width: 100%; }

.tr-disclosure { margin-top: var(--s-4); font-size: var(--fs-14); color: var(--c-ink-2); }

.tr-formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--c-surface); padding: var(--s-1) var(--s-2); border-radius: var(--radius); }

.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
