/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt). No third-party font requests. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/sora.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); }
/* Pocket Mirror: phone-first single column. One big preview card, pill controls, friendly check cards, thumb bar on phones. */
:root {
  --bg: #f2f4fa; --paper: var(--bg); --card: #ffffff; --ink: #1b1e2b; --muted: #555b70; --line: #dfe3ee;
  --accent: #c0341a; --accent-ink: #ffffff; --soft: #ffe6df; --live: #c0341a;
  --good: #187a4f; --warn: #a65d08; --bad: #c8322f; --unknown: #8a90a5;
  --display: "Sora", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10121c; --card: #1a1d2b; --ink: #eceef6; --muted: #a3a9be; --line: #2a2e40;
    --accent: #ff7a5c; --accent-ink: #2a0d05; --soft: #3a2220; --live: #ff6a5c;
    --good: #5fd59a; --warn: #f5b454; --bad: #ff7d78; --unknown: #8e94aa; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10121c; --card: #1a1d2b; --ink: #eceef6; --muted: #a3a9be; --line: #2a2e40;
  --accent: #ff7a5c; --accent-ink: #2a0d05; --soft: #3a2220; --live: #ff6a5c;
  --good: #5fd59a; --warn: #f5b454; --bad: #ff7d78; --unknown: #8e94aa; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--accent); }
.wrap { max-width: 820px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.brand { font: 700 21px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 700; }
.cc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; font-size: 15px; }
.cc-nav::-webkit-scrollbar { display: none; }
.cc-nav a { flex: none; color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.cc-nav a:hover { border-color: var(--accent); }
@media (max-width: 719px) { .top { padding-bottom: 6px; } .cc-nav { width: 100%; } }

.hero { padding-block: 6px 24px; display: grid; gap: 16px; }
.eyebrow { margin: 0; display: inline-block; justify-self: start; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--soft); padding: 5px 11px; border-radius: 999px; }
h1 { font: 700 clamp(28px, 6vw, 44px)/1.1 var(--display); margin: 8px 0 8px; text-wrap: balance; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--muted); max-width: 60ch; }

.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.preview { display: grid; gap: 12px; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 600 15px/1 var(--body); border: 0; background: none; color: var(--muted); padding: 10px 15px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
button:focus-visible, a:focus-visible, .chip:focus-within, .pill:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.card { background: var(--card); border-radius: 26px; padding: 10px; box-shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 20px 50px -30px rgba(20, 24, 40, .35); }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; background: #0d0f16; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.stage canvas { display: block; max-width: 100%; }
[data-portrait="true"] .card .stage { aspect-ratio: 4 / 5; }
[data-portrait="true"][data-view="crop"][data-shape="16:9"] .card .stage { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { [data-portrait="true"] .stage { aspect-ratio: 3 / 4; } }
.tally, .badge { position: absolute; top: 12px; right: 12px; font: 600 13px/1 var(--body); color: #fff; background: rgba(13,15,22,.6); padding: 7px 11px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.tally::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa1b5; }
[data-live="true"] .tally::before { background: #ff5a3c; }
.tally .on { display: none; } [data-live="true"] .tally .on { display: inline; } [data-live="true"] .tally .off { display: none; }
.cta { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; background: linear-gradient(transparent, rgba(13, 15, 22, .78)); color: #fff; }
.cta p { margin: 0; font-size: 14px; max-width: 34ch; opacity: .95; }
[data-live="true"] .cta { display: none; }
.btn { font: 700 16px/1 var(--display); border: 0; border-radius: 999px; padding: 15px 22px; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cta .btn, .btn--big { font-size: 18px; padding: 18px 28px; box-shadow: 0 10px 30px -10px var(--accent); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); font: 600 15px/1 var(--body); padding: 11px 16px; }
[data-busy="true"] [data-cc="start"] { opacity: .6; pointer-events: none; }

.controls { display: grid; gap: 10px; }
.chips, .scroller { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 719px) {
  .scroller { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; margin-inline: -2px; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: none; }
}
.chip, .pill { font: 600 15px/1 var(--body); border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 11px 15px; border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; }
.chip[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.pill--alt[aria-pressed="true"] { background: var(--soft); color: var(--ink); border-color: var(--accent); }
[data-live="true"] [data-cc="demo-orient"] { display: none; }
.chip--file input, .pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
label.select { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
select { font: 15px var(--body); min-width: 150px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); max-width: 220px; }
.orient { margin: 0 4px; font-size: 14px; color: var(--muted); }
.orient[data-state="warn"] { color: var(--warn); }

.error { border-radius: 16px; background: var(--soft); padding: 12px 14px; }
.error strong { display: block; color: var(--bad); }
.error p { margin: 4px 0 0; font-size: 15px; }

.checks { background: var(--card); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.checks h2, .checks h3 { font: 700 20px/1.2 var(--display); margin: 0; }
.checks h3 { font-size: 17px; }
.score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .score { grid-template-columns: minmax(0, 1fr); } }
.tick { background: var(--card); border-radius: 18px; padding: 14px; display: grid; gap: 4px; align-content: start; border: 2px solid transparent; }
.tick[data-state="good"] { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.tick[data-state="warn"] { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.tick[data-state="bad"] { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.tick small { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.tick b { font: 700 17px/1.25 var(--display); }
.tick b[data-state="good"]::before { content: "✓ "; color: var(--good); }
.tick b[data-state="warn"]::before, .tick b[data-state="bad"]::before { content: "! "; color: var(--warn); }
.tick span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.microw { background: var(--card); border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.microw p { margin: 0; grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.meter, .level { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter::after, .level::after { content: ""; display: block; height: 100%; width: calc(var(--level, 0) * 100%); background: var(--accent); border-radius: inherit; transition: width .08s linear; }
.thumbbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.thumbbar button { flex: 1 1 0; font: 600 14px/1.2 var(--body); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; cursor: pointer; }
.thumbbar button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
@media (min-width: 720px) { .thumbbar { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; } .thumbbar button { flex: 0 1 auto; padding: 11px 16px; border-radius: 999px; } }

.ad-slot { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 120px; margin-block: 12px; }
.ad-slot--leader { margin-block: 0 20px; }
.ad-slot__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot ins.adsbygoogle[data-ad-format] { width: 100%; }
.content { display: grid; gap: 14px; padding-block: 8px 40px; }
.cc-section { background: var(--card); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); }
.cc-section h2 { font: 700 clamp(21px, 4.5vw, 27px)/1.2 var(--display); margin: 0 0 12px; text-wrap: balance; letter-spacing: -.01em; }
.cc-section p, .cc-section li { max-width: 66ch; }
.cc-section p { margin: 10px 0; }
.cc-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.cc-steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.cc-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font: 700 14px/1 var(--display); }
.cc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.cc-facts div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.cc-facts dt { font-weight: 700; } .cc-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.cc-tips, .cc-fixes { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.cc-faq { display: grid; gap: 0; }
.cc-faq__item { border-top: 1px solid var(--line); padding-block: 12px; }
.cc-faq__item:first-of-type { border-top: 0; }
.cc-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.cc-faq__item summary::-webkit-details-marker { display: none; }
.cc-faq__item summary::after { content: "⌄"; color: var(--accent); font-size: 20px; line-height: 1; }
.cc-faq__item[open] summary::after { transform: rotate(180deg); }
.cc-faq__item h3 { margin: 0; font: 700 17px/1.4 var(--body); }
.cc-faq__item p { color: var(--muted); margin: 8px 0 0; }
.cc-more { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cc-footer { padding-block: 24px 40px; font-size: 14px; color: var(--muted); }
.cc-footer p { margin: 4px 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .meter::after, .level::after { transition: none; } }

/* ---------- Multi-tool site additions ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-block: 4px 0; }
.crumbs a { color: var(--muted); }
.panel { background: var(--card); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.panel h2 { font: 700 20px/1.2 var(--display); margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--danger { background: var(--live); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th, .kv td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 400; width: 44%; padding-right: 12px; }
.kv td { font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
.restable { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.restable th, .restable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.restable th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ok { color: var(--good); font-weight: 700; } .no { color: var(--muted); }
.scope { width: 100%; height: 160px; display: block; background: #0d0f16; border-radius: 14px; }
.bigmeter { height: 22px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.bigmeter span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--good) 0 70%, var(--warn) 70% 90%, var(--bad) 90%); transition: width .06s linear; }
.readout { font: 700 clamp(28px, 5vw, 44px)/1 var(--display); font-variant-numeric: tabular-nums; }
.readout small { font-size: 15px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.verdict { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--unknown) 12%, var(--card)); }
.verdict[data-state="good"] { background: color-mix(in srgb, var(--good) 14%, var(--card)); }
.verdict[data-state="warn"] { background: color-mix(in srgb, var(--warn) 14%, var(--card)); }
.verdict[data-state="bad"] { background: color-mix(in srgb, var(--bad) 14%, var(--card)); }
.verdict b { display: block; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.toggles label { display: inline-flex; gap: 6px; align-items: center; }
.vid { width: 100%; display: block; background: #0d0f16; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: contain; }
.vid.mirror { transform: scaleX(-1); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pad { font: 700 18px/1.2 var(--display); border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 22px 10px; cursor: pointer; }
.pad small { display: block; font: 400 13px var(--body); color: var(--muted); margin-top: 4px; }
.pad[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pad[aria-pressed="true"] small { color: var(--paper); opacity: .8; }
.range { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.range input { width: 100%; accent-color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shots figure { margin: 0; display: grid; gap: 4px; }
.shots img { border-radius: 10px; display: block; width: 100%; }
.shots a { font-size: 14px; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px/1 var(--display); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); pointer-events: none; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.flash.on { opacity: .9; transition: none; }
.ring { padding: 0; transition: padding .2s; border-radius: 22px; }
.ring[data-ring="on"] { padding: clamp(18px, 6vw, 60px); background: var(--ring, #fff6ec); }
.stage:fullscreen, .ring:fullscreen { max-height: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.spark { width: 100%; height: 90px; display: block; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.tools-grid a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); text-decoration: none; color: var(--ink); height: 100%; }
.tools-grid a:hover { border-color: var(--accent); }
.tools-grid b { font-weight: 700; }
.tools-grid span { font-size: 14px; color: var(--muted); }
.article { background: var(--card); border-radius: var(--radius); padding: clamp(18px, 4vw, 44px); }
.article > * { max-width: 70ch; }
.article h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--display); margin: 32px 0 10px; text-wrap: balance; }
.article h3 { font: 700 19px/1.3 var(--body); margin: 22px 0 6px; }
.article p, .article li { margin: 8px 0; }
.article .cta-box { max-width: none; margin-top: 28px; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 18px; }
.footer-tools h2 { font: 700 14px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; color: var(--ink); }
.footer-tools ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-tools a { color: var(--muted); text-decoration: none; }
.footer-tools a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bigmeter span, .ring { transition: none; } }
.tool--one { grid-template-columns: minmax(0, 1fr); }
.tool--one > * { min-width: 0; }
.hero--guide { padding-bottom: 8px; }

/* ---------- Device tests ---------- */
.kb { display: grid; gap: 6px; overflow-x: auto; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.kb-row { display: flex; gap: 6px; min-width: 640px; }
.kb-key { flex: 1 1 0; min-width: 0; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--paper); white-space: nowrap; overflow: hidden; }
.kb-key.is-done { background: color-mix(in srgb, var(--accent) 18%, var(--card)); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.kb-key.is-down { background: var(--accent); color: var(--accent-ink); transform: translateY(2px); }
.log { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.mpad { position: relative; height: 320px; border-radius: 18px; border: 2px dashed var(--line); background: var(--card); display: grid; place-items: center; text-align: center; color: var(--muted); user-select: none; -webkit-user-select: none; touch-action: none; padding: 16px; }
.mbtns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .mbtns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mbtn { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: var(--card); font-size: 14px; color: var(--muted); }
.mbtn b { display: block; font: 700 22px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mbtn.is-done { border-color: var(--accent); }
.mbtn.is-down { background: var(--accent); color: var(--accent-ink); }
.mbtn.is-down b { color: var(--accent-ink); }
.screenstage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; border: 1px solid var(--line); cursor: pointer; outline-offset: 3px; }
.screenstage:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; cursor: none; }
.screenstage span { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.screenstage:fullscreen span { opacity: .0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.touchwrap { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.touchwrap:fullscreen { border-radius: 0; }
.touchwrap canvas { display: block; width: 100%; height: 420px; touch-action: none; }
.touchwrap:fullscreen canvas { height: 100vh; }
.gp-sticks { display: flex; flex-wrap: wrap; gap: 20px; }
.gp-stick { width: 110px; display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.gp-stick::before { content: ""; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--line); grid-area: 1 / 1; }
.gp-stick i { grid-area: 1 / 1; align-self: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.gp-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.gp-btn { display: flex; justify-content: space-between; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-btn.is-done { border-color: var(--accent); }
.gp-btn.is-down { background: var(--accent); color: var(--accent-ink); }
.speed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.speed div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.speed small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* Reserve space for AdSense units so the page doesn't jump when an ad loads (CLS). */
.ad-slot--side { min-height: 280px; }
.ad-slot--leader { min-height: 120px; }
.ad-slot--mid { min-height: 280px; }
.ad-slot--leader ins.adsbygoogle, .ad-slot--mid ins.adsbygoogle { min-height: 90px; }
/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.updated { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Record and present tools ---------- */
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 12px; }
kbd { font: 600 12px/1 var(--body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; background: var(--card); }
.script { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.script textarea { font: 16px/1.5 var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical; width: 100%; box-sizing: border-box; }
.prompter { position: relative; height: min(56vh, 520px); background: #0d0f16; color: #fff; border-radius: 18px; overflow: hidden; cursor: pointer; }
.prompter:fullscreen { height: 100vh; border-radius: 0; }
.prompter__cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.prompter__cam.mirror { transform: scaleX(-1); }
.prompter__text { position: relative; padding: 18% 8% 60vh; font: 600 44px/1.45 var(--body); white-space: pre-wrap; will-change: transform; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.prompter__cue { position: absolute; left: 0; right: 0; top: 18%; height: 0; border-top: 2px solid rgba(255, 122, 92, .8); z-index: 1; pointer-events: none; }
.prompter__cue::before { content: ""; position: absolute; left: 0; top: -9px; border: 8px solid transparent; border-left: 12px solid #ff7a5c; }
.qcard { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); display: grid; gap: 6px; }
.qcard p { margin: 0; }
.qcard__phase { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qcard__q { font: 700 clamp(20px, 3vw, 28px)/1.25 var(--display); }
.qcard__clock { font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.stage--rec { aspect-ratio: 16 / 9; }
.stage--rec .vid { border-radius: 0; height: 100%; }
.stage video:not([hidden]) ~ .cta { display: none; }
.recdot { position: absolute; top: 12px; left: 12px; display: none; font: 700 12px/1 var(--body); color: #fff; background: #d93a3a; padding: 6px 9px; border-radius: 99px; letter-spacing: .08em; }
[data-rec="on"] .recdot { display: inline-block; animation: recblink 1.2s steps(2) infinite; }
@keyframes recblink { 50% { opacity: .35; } }
.two--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .two--three { grid-template-columns: minmax(0, 1fr); } }
.cc-tips--small { grid-template-columns: 1fr; font-size: 15px; gap: 6px; }
.note { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--warn) 14%, var(--card)); }
.note p { margin: 6px 0 0; }
.light { --light: #fff; --dim: 0; position: relative; height: min(60vh, 560px); border-radius: 18px; background: var(--light); box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, var(--dim)); overflow: hidden; }
.light[data-mode="ring"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(52%, 52vh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #0d0f16; box-shadow: 0 0 40px 10px rgba(0,0,0,.25) inset; }
.light:fullscreen { height: 100vh; border-radius: 0; }
.light__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 13px; color: #333; background: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 99px; opacity: 0; transition: opacity .3s; z-index: 1; }
.light:fullscreen .light__hint { opacity: 1; animation: fadehint 4s forwards; }
@keyframes fadehint { 75% { opacity: 1; } 100% { opacity: 0; } }
.dbmeter { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.readout--xl { font-size: clamp(56px, 12vw, 104px); }
.dbmeter__label { margin: 0; font-weight: 700; }
.dbchart { width: 100%; height: 160px; display: block; }
.kv--small { font-size: 14px; }
.kv--small th, .kv--small td { padding: 5px 0; }
.clickpad { width: 100%; min-height: min(52vh, 420px); border: 2px dashed var(--line); border-radius: 18px; background: var(--card); color: var(--ink); font: 700 clamp(20px, 3vw, 28px)/1.3 var(--display); cursor: pointer; user-select: none; touch-action: manipulation; padding: 20px; }
.clickpad[data-state="running"] { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.clickpad[data-state="done"] { border-style: solid; border-color: var(--good); }
.clickpad:active { transform: scale(.995); }
@media (prefers-reduced-motion: reduce) { [data-rec="on"] .recdot, .light:fullscreen .light__hint { animation: none; } }
