/* SmartAC Thermostats. Direction: night bedroom, remote LCD, infrared beam.
   Ink ramp, one LCD-lime accent, Geist + Geist Mono, seven-segment signature. */
@font-face { font-family: Geist; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }

:root {
  color-scheme: light dark;
  --font: Geist, 'Geist Fallback', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* light (ink ramp) */
  --l-bg: #f5f7fa; --l-deep: #eceff4; --l-card: #ffffff; --l-raised: #eceff4; --l-text: #111827; --l-sec: #4b5565; --l-muted: #5f6879;
  --l-accent-ink: #3f5500; --l-lcd: #1a1e28; --l-line: rgb(17 24 39 / 0.1);
  /* dark (ink ramp) */
  --d-bg: #0b0d14; --d-deep: #07080d; --d-card: #11141c; --d-raised: #1a1e28; --d-text: #eef0f5; --d-sec: #a3a9b8; --d-muted: #868ea1;
  --d-accent-ink: #c8f04a; --d-lcd: #07080d; --d-line: rgb(238 240 245 / 0.09);
  --accent: #c8f04a; --on-accent: #0b0d14;
  --bg: light-dark(var(--l-bg), var(--d-bg));
  --deep: light-dark(var(--l-deep), var(--d-deep));
  --card: light-dark(var(--l-card), var(--d-card));
  --raised: light-dark(var(--l-raised), var(--d-raised));
  --text: light-dark(var(--l-text), var(--d-text));
  --sec: light-dark(var(--l-sec), var(--d-sec));
  --muted: light-dark(var(--l-muted), var(--d-muted));
  --accent-ink: light-dark(var(--l-accent-ink), var(--d-accent-ink));
  --line: light-dark(var(--l-line), var(--d-line));
  --line-2: light-dark(rgb(17 24 39 / 0.18), rgb(238 240 245 / 0.16));
  --lcd-bg: light-dark(var(--l-lcd), var(--d-lcd));
  --ok: light-dark(#116b32, #4cc38a); --warn: light-dark(#8a4e05, #f0b45a); --bad: light-dark(#b42020, #f07070);
  --shadow: light-dark(0 1px 2px rgb(17 24 39 / 0.05), none);
  --r-s: 6px; --r: 10px; --r-c: 14px; --r-p: 20px;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); font-feature-settings: 'ss01'; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow > *, .narrow.prose > * { max-width: 760px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r); z-index: 30; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }
main { scroll-margin-top: 80px; }
:target { scroll-margin-top: 88px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { flex: none; min-width: max-content; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 28px; height: 28px; flex: none; max-width: none; }
.m-body { fill: var(--text); }
.m-wave { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; }
.m-far { opacity: 0.55; }
.links { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; }
.nl { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--r); color: var(--sec); text-decoration: none; font: inherit; font-size: 0.9375rem; background: none; border: 0; cursor: pointer; transition: color 0.15s var(--ease), background-color 0.15s var(--ease); }
.nl:hover, .nl[aria-current] { color: var(--text); background: var(--raised); }
.chev { width: 16px; height: 16px; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--sec); cursor: pointer; transition: color 0.15s var(--ease), border-color 0.15s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.t-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .t-dark { display: none; } :root:not([data-theme]) .t-light { display: block; } }
:root[data-theme='light'] .t-dark { display: none; }
:root[data-theme='light'] .t-light { display: block; }
.show-s { display: none; }

/* menus (popover) */
.menu { margin: 0; inset: auto; position: fixed; top: 64px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-c); background: var(--card); color: var(--text); box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); min-width: 240px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r); text-decoration: none; color: var(--text); background: none; border: 0; font: inherit; font-size: 0.9375rem; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover, .menu [aria-pressed='true'], .menu [aria-current] { background: var(--raised); }
.menu .i { color: var(--muted); }
.menu [aria-pressed='true'] .i { color: var(--accent-ink); }
.svc-menu { left: max(16px, calc(50% - 600px + 200px)); }
.theme-menu { right: max(16px, calc(50% - 600px)); left: auto; min-width: 180px; }
.mnav { left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 80px); overflow: auto; }
.mh { font-size: 0.8125rem; color: var(--muted); padding: 12px 12px 4px; }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: opacity 0.18s var(--ease), translate 0.18s var(--ease), display 0.18s allow-discrete, overlay 0.18s allow-discrete; opacity: 0; translate: 0 -6px; }
  .menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 -6px; } }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font: 500 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.12s var(--ease); }
.btn:hover { background: #d6f76f; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn.ghost:hover { border-color: var(--text); }
.btn.sm { min-height: 36px; padding: 0 16px; }
.btn.full { width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; max-width: 560px; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--sec); max-width: 36rem; }
.sub-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.875rem; }
.hero-fig { margin: 0; }
.hero-art { width: 100%; height: auto; border-radius: var(--r-p); }
.a-wall rect, rect.a-wall { fill: var(--deep); }
.a-grid path { stroke: var(--line); stroke-width: 1; }
.u-body { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; }
.u-line { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.u-slot { fill: var(--raised); }
.u-pipe { stroke: var(--muted); stroke-width: 6; stroke-linecap: round; }
.u-led { fill: var(--accent); }
.u-rx { fill: var(--raised); stroke: var(--line-2); }
.lcd-bg { fill: var(--lcd-bg); }
.seg-on { fill: var(--accent); stroke: var(--accent); }
path.seg-on { stroke: none; }
.seg-off { fill: rgb(200 240 74 / 0.08); }
.a-air path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; }
.beam-line { stroke: var(--accent-ink); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; opacity: 0.6; }
.beam .w { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; stroke-linecap: round; }
.w2 { opacity: 0.6; } .w3 { opacity: 0.3; }
.p-body { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; }
.ph-body { fill: var(--raised); stroke: var(--line-2); stroke-width: 1.5; }
.ph-screen { fill: var(--card); }
.ph-k { fill: var(--text); font: 500 15px var(--font); }
.ph-s { fill: var(--muted); font: 400 12px var(--font); }
.ph-chip { fill: var(--raised); }
.ph-chip.on { fill: var(--accent); }
.ph-c { fill: var(--sec); font: 500 12px var(--font); text-anchor: middle; }
.ph-c.on { fill: var(--on-accent); }
.lcd-big .seg-off { fill: var(--raised); }
.lcd-big .seg-on { fill: var(--text); stroke: var(--text); }
.lcd-big path.seg-on { stroke: none; }
.link { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 6; }
.a-wifi path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.a-wifi circle { fill: var(--muted); }
.lcd g, .lcd-num g { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .beam .w { animation: pulse 1.2s var(--ease) both; animation-iteration-count: 3; }
  .hero-art .w2 { animation-delay: 0.15s; } .hero-art .w3 { animation-delay: 0.3s; }
  .hero-art .beam-line { animation: travel 3.6s linear both; }
  @keyframes pulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: var(--o, 0.3); } }
  @keyframes travel { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
  .hero-copy > * { animation: rise 0.45s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; } .hero-copy > :nth-child(3) { animation-delay: 0.1s; } .hero-copy > :nth-child(4) { animation-delay: 0.15s; }
  @keyframes rise { from { opacity: 0; translate: 0 8px; } }
}
.w1 { --o: 1; } .w2 { --o: 0.6; } .w3 { --o: 0.3; }

/* ---------- blocks ---------- */
.block { padding-block: 48px; }
.head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 720px; }
.head.row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; gap: 16px; flex-wrap: wrap; }
.head p { color: var(--sec); }
.more-l { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.more-l .i { width: 16px; height: 16px; transition: translate 0.15s var(--ease); }
a:hover .more-l .i, .more-l:hover .i { translate: 3px 0; }

.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kinds a { display: grid; align-content: start; gap: 16px; height: 100%; padding: 12px 12px 20px; border-radius: var(--r-c); background: var(--card); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: border-color 0.15s var(--ease); }
.kinds a:hover { border-color: var(--line-2); }
.kinds a > div { display: grid; gap: 8px; padding-inline: 8px; }
.kinds p { color: var(--sec); font-size: 0.9375rem; }
.cover { width: 100%; height: auto; }
.cover .beam .w { stroke-width: 2; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 24px 0 0; border-top: 1px solid var(--line-2); }
.steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.steps .num { font: 500 0.8125rem var(--mono); color: var(--accent-ink); padding-top: 4px; }
.steps .i { position: absolute; top: 24px; right: 24px; color: var(--muted); }
.steps p { color: var(--sec); font-size: 0.9375rem; }

/* limits */
.limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.limits li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.limits li:nth-child(odd) { padding-right: 24px; }
.limits li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.limits .i { color: var(--warn); margin-top: 3px; }
.limits h3 { margin-bottom: 4px; }
.limits p { color: var(--sec); font-size: 0.9375rem; }

/* products */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pcard { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--r-c); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pcard header { display: grid; gap: 6px; }
.pcard h2 { font-size: 1.0625rem; letter-spacing: 0; }
.pk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 400 0.8125rem var(--mono); }
.pk .i { width: 16px; height: 16px; }
.why { color: var(--sec); font-size: 0.9375rem; }
.spec { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.8125rem; padding: 2px 8px; border-radius: var(--r-s); background: var(--raised); color: var(--sec); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fb { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); color: var(--sec); font: inherit; font-size: 0.9375rem; cursor: pointer; transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
.fb .i { width: 16px; height: 16px; }
.fb:hover { color: var(--text); }
.fb[aria-pressed='true'] { color: var(--text); border-color: var(--text); background: var(--raised); }
.note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.875rem; margin-top: 24px; }
.note .i { margin-top: 2px; }
.srcs { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.srcs summary, .more summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--sec); min-height: 32px; }
.srcs summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.srcs[open] .chev, .more[open] .chev { rotate: 180deg; }
.srcs ul { padding-left: 20px; }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 500; list-style: none; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--muted); transition: rotate 0.18s var(--ease); }
.faq details[open] summary .chev { rotate: 180deg; }
.faq p { padding: 0 0 20px; color: var(--sec); max-width: 64ch; }

/* band */
.band { margin-top: 48px; padding: 56px 0; background: var(--deep); border-top: 1px solid var(--line); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band-in > div:first-child { display: grid; gap: 8px; max-width: 600px; }
.band p { color: var(--sec); }

/* page head and prose */
.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head .lead { margin-top: 4px; }
.ph-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.ph-in > div { display: grid; gap: 16px; justify-items: start; }
.ph-art { margin: 0; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--sec); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.meta { color: var(--muted); font: 400 0.8125rem var(--mono); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-block: 48px; align-items: start; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; padding: 20px; border-radius: var(--r-c); border: 1px solid var(--line); background: var(--card); }
.aside .fh { margin: 0; }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--sec); font-size: 0.9375rem; }
.mini-steps li::marker { font-family: var(--mono); color: var(--accent-ink); }
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--sec); }
.prose b { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); rotate: -45deg; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-c); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: 0.875rem; background: var(--deep); }
tr:last-child td { border-bottom: 0; }
td { color: var(--sec); }
td:first-child { color: var(--text); }
.countries { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.countries li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text) !important; margin: 0 !important; }
.countries .i { color: var(--accent-ink); }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.learn-list a { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-c); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color 0.15s var(--ease); }
.learn-list a:hover { border-color: var(--line-2); }
.learn-list h2 { font-size: 1.25rem; }
.learn-list p { color: var(--sec); }

/* ---------- tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); border-radius: var(--r-p); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.tool-in { display: grid; gap: 20px; padding: 24px; align-content: start; }
.tool-out { display: grid; gap: 16px; align-content: start; padding: 24px; background: var(--deep); border-left: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 500; font-size: 0.9375rem; margin-bottom: 10px; padding: 0; }
.chips > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); color: var(--sec); font-size: 0.9375rem; line-height: 1.3; transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease); }
.chips label:hover span { color: var(--text); }
.chips input:checked + span { border-color: var(--text); color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 0.9375rem; }
.field > span { font-weight: 500; }
.field.wide { grid-column: 1 / -1; }
input[type='text'], input[type='number'], input:not([type]), select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color 0.15s var(--ease); }
textarea { field-sizing: content; min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 0; border-color: transparent; }
input[aria-invalid='true'] { border-color: var(--bad); }
input[type='range'] { width: 100%; accent-color: var(--accent-ink); min-height: 32px; }
.rv { font: 500 0.875rem var(--mono); color: var(--accent-ink); }
.row2, .row3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { color: var(--muted); font-size: 0.875rem; display: flex; gap: 8px; align-items: flex-start; }
.hint .i { margin-top: 2px; }
.more .row3 { margin-top: 12px; }
.smart { padding: 16px; border-radius: var(--r-c); border: 1px dashed var(--line-2); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-ink); }
.err { color: var(--bad); font-size: 0.9375rem; }

.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; }
.verdict.ok { color: var(--ok); } .verdict.warn { color: var(--warn); } .verdict.bad { color: var(--bad); }
.tool-out h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.sum { color: var(--sec); }
.oh { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.rps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp { display: grid; gap: 6px; padding: 12px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.rp > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap-reverse; }
.rp b { font-weight: 500; }
.rp p { color: var(--sec); font-size: 0.9375rem; }
.rps.alt .rp { background: transparent; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 8px; color: var(--sec); font-size: 0.875rem; }
.notes .i { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.tool-out .btn { justify-self: start; margin-top: 6px; }
.plate { list-style: none; margin: 0; padding: 12px 16px; border-radius: var(--r); background: var(--lcd-bg); display: grid; gap: 4px; }
.plate li { font: 400 0.875rem var(--mono); color: var(--accent); }
.plate li::before { content: '> '; opacity: 0.5; }

.readout { display: flex; align-items: flex-end; gap: 12px; padding: 16px 20px; border-radius: var(--r-c); background: var(--lcd-bg); color: #a3a9b8; }
.readout .cur, .readout .per { font: 500 0.875rem var(--mono); padding-bottom: 8px; }
.lcd-num { height: 60px; width: auto; flex: none; }
.lcd-num .seg-off { fill: rgb(200 240 74 / 0.07); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats div { padding: 12px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stats dt { font-size: 0.8125rem; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 500 1rem var(--mono); font-variant-numeric: tabular-nums; }
.stats .hl { border-color: var(--accent-ink); }
.stats .hl dd { color: var(--accent-ink); }
.bars { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.8125rem; }
.bl { color: var(--muted); }
.bv { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--sec); }
.track { position: relative; height: 12px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.fill.now { background: var(--muted); }
.fill.hi { background: rgb(200 240 74 / 0.35); }
.fill.lo { background: var(--accent); z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .fill { transition: width 0.3s var(--ease); } }
.fine-o { font-size: 0.8125rem; color: var(--muted); }
.req { white-space: pre-wrap; font: 400 0.875rem/1.6 var(--mono); padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin: 0; }
.quote-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.quote { grid-template-columns: 1fr; }
.quote .tool-out { border-left: 0; border-top: 1px solid var(--line); }
.quote .tool-out:empty { display: none; }

/* ---------- footer and dock ---------- */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid > div { display: grid; gap: 8px; align-content: start; }
.foot-grid a:not(.brand) { color: var(--sec); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 28px; }
.foot-grid a:hover { color: var(--text); }
.fh { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; max-width: 90ch; }
.dock { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links .nl:nth-child(4), .links .nl:nth-child(5) { display: none; }
  .tool { grid-template-columns: 1fr; }
  .tool-out { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .links, .hide-s { display: none; }
  .show-s { display: inline-grid; }
  .hero { padding: 40px 0 48px; }
  .hero-in, .ph-in { grid-template-columns: 1fr; gap: 32px; }
  .ph-art { display: none; }
  .kinds, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-aside, .quote-wrap { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 15; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border: 1px solid var(--line-2); background: var(--card); }
  .dock a.go { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  body { padding-bottom: 72px; }
  .menu { top: 64px; }
}
@media (max-width: 640px) {
  .block { padding-block: 36px; }
  .kinds, .steps, .limits, .row2, .row3, .stats { grid-template-columns: 1fr; }
  .limits li:nth-child(n) { padding: 16px 0; border-left: 0; }
  .tool-in, .tool-out { padding: 16px; }
  .readout { padding: 12px 16px; }
  .lcd-num { height: 48px; }
  .acts .btn { flex: 1 1 100%; }
  .lead { font-size: 1.0625rem; }
  .brand span { font-size: 0.9375rem; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .wrap { width: calc(100% - 24px); }
  .chips span { padding: 8px 10px; font-size: 0.875rem; }
  .dock .i { display: none; }
  .dock a { font-size: 0.875rem; white-space: nowrap; }
}
@media (forced-colors: active) { .btn, .chips span, .fb { border: 1px solid ButtonText; } }
@media print { .top, .dock, .band, .foot { display: none; } }
