/* ---- base.css ---- */
/* Shared styles for generated tool pages + the site-wide directory footer.
   Builds on styles.css (same palette, fonts, panels). Group-specific styles live in sibling files. */

/* ---------- Page frame ---------- */
.tool-zone { min-height: 0; padding-bottom: 72px; }
.site-topbar { width: min(960px, calc(100% - 32px)); gap: 14px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 11px;
  border-radius: 4px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(0,0,0,.16); font-weight: 800; }

.tool-hero { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 26px; text-align: center; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 16px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; }
.breadcrumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.tool-hero h1 { margin: 0; color: #fff; font: 800 clamp(30px, 6vw, 44px)/1.15 var(--font); letter-spacing: -.8px; }
.tool-lede { max-width: 560px; margin: 13px auto 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.55; }

.tool-wrap { width: min(560px, calc(100% - 32px)); margin: 0 auto; }
.tool-wrap.wide { width: min(860px, calc(100% - 32px)); }

/* ---------- Tool card (translucent panel on the color zone, like the main timer) ---------- */
.tool-card {
  position: relative;
  padding: 24px;
  border-radius: 7px;
  color: #fff;
  text-align: center;
  background: var(--panel);
}
.tool-card + .tool-card, .tool-card + .tool-panel, .tool-panel + .tool-card, .tool-panel + .tool-panel { margin-top: 16px; }
.tool-card h2, .tool-card h3 { margin: 0 0 12px; font: 800 18px/1.25 var(--font); }
.tool-card .fullscreen-button { top: 13px; right: 13px; }

/* White panel for forms/results that need dark text */
.tool-panel {
  padding: 22px;
  border-radius: 7px;
  color: #5d5252;
  text-align: left;
  background: #fff;
  box-shadow: 0 2px 4px rgba(40, 20, 20, .12);
}
.tool-panel h2, .tool-panel h3 { margin: 0 0 12px; color: var(--bg); font: 800 18px/1.25 var(--font); }

.big-display {
  margin: 14px 0 20px;
  font: 700 clamp(64px, 14vw, 120px)/.95 var(--font);
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.big-display.md { font-size: clamp(44px, 10vw, 76px); letter-spacing: -2px; }
.big-display.sm { font-size: clamp(30px, 7vw, 46px); letter-spacing: -1px; }
.display-label { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 700; }

/* Countdown unit boxes: days / hours / minutes / seconds */
.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 6px; }
.unit-grid > div { padding: 16px 6px 13px; border-radius: 7px; background: rgba(0,0,0,.12); }
.unit-grid strong { display: block; font: 800 clamp(30px, 8vw, 52px)/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.unit-grid span { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.btn {
  min-width: 150px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  color: var(--bg);
  background: #fff;
  box-shadow: 0 6px 0 rgba(235,235,235,.95);
  font: 800 20px/1 var(--font);
  letter-spacing: .2px;
  text-transform: uppercase;
  transition: transform 100ms ease, box-shadow 100ms ease, color 420ms ease;
}
.btn:active, .btn.running { transform: translateY(5px); box-shadow: 0 1px 0 rgba(235,235,235,.95); }
.btn.sm { min-width: 0; min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(255,255,255,.15);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-ghost:active { transform: translateY(1px); }
/* Solid button for use inside white .tool-panel */
.btn-solid {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--bg);
  font-weight: 800;
  font-size: 15px;
  transition: filter .15s ease, transform .1s ease;
}
.btn-solid:hover { filter: brightness(1.06); }
.btn-solid:active { transform: translateY(1px); }
.btn-solid.secondary { color: #6b6060; background: #f1ecea; }

/* ---------- Chips (preset buttons / tabs) ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip {
  padding: 7px 12px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.chip:hover { background: rgba(255,255,255,.2); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: rgba(0,0,0,.18); font-weight: 800; }
.tool-panel .chip { color: #6b6060; background: #f3eeec; }
.tool-panel .chip.active, .tool-panel .chip[aria-pressed="true"], .tool-panel .chip[aria-selected="true"] { color: #fff; background: var(--bg); }

/* ---------- Form fields ---------- */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; text-align: left; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .3px; color: rgba(255,255,255,.82); text-align: left; }
.tool-panel .field { color: #8a7b7b; }
.field input, .field select, .field textarea, .input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  color: #4d4545;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}
.tool-panel .field input, .tool-panel .field select, .tool-panel .field textarea, .tool-panel .input { background: #f4f0ee; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 3px solid rgba(255,255,255,.4); outline-offset: 1px; }
.tool-panel .field input:focus, .tool-panel .field select:focus, .tool-panel .field textarea:focus, .tool-panel .input:focus { outline: 2px solid color-mix(in srgb, var(--bg) 45%, transparent); }
.field, .field input, .field select, .field textarea { min-width: 0; }
.field small { font-weight: 600; letter-spacing: 0; opacity: .8; }
.check-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.check-row input { width: 18px; height: 18px; accent-color: var(--bg); }

/* ---------- Results ---------- */
.result {
  margin-top: 16px;
  padding: 20px;
  border-radius: 7px;
  color: #5d5252;
  text-align: center;
  background: #fff;
}
.result-value { display: block; color: var(--bg); font: 800 clamp(30px, 7vw, 46px)/1.1 var(--font); letter-spacing: -.8px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-label { display: block; margin-top: 6px; color: #8a7b7b; font-size: 13px; font-weight: 700; }
.result-sub { margin: 10px 0 0; color: #7a6d6d; font-size: 14px; line-height: 1.5; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.stat-grid article { padding: 16px 10px; border-radius: 7px; text-align: center; background: #fff5f2; background: color-mix(in srgb, var(--bg) 8%, #fff); }
.stat-grid strong { display: block; color: var(--bg); font: 800 26px/1.1 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-grid span { display: block; margin-top: 6px; color: #856f6f; font-size: 11px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .3px; }
.tool-card .stat-grid article { background: rgba(0,0,0,.12); }
.tool-card .stat-grid strong { color: #fff; }
.tool-card .stat-grid span { color: rgba(255,255,255,.72); }

.tool-note { margin: 14px 0 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.5; }
.tool-panel .tool-note { color: #998a8a; }

/* ---------- Tables (inside panels and article content) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #f0e8e5; text-align: left; }
.data-table th { color: var(--bg); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong { color: #4d4545; }

/* ---------- Article content below the tool ---------- */
.tool-about .about-inner { padding-top: 64px; }
.tool-about .copy-block:first-child { margin-top: 0; }
.copy-block ul { padding-left: 25px; }
.copy-block a { color: var(--bg); font-weight: 700; }
.copy-block .data-table { font-size: 16px; }
.faq-item { border-bottom: 1px solid #f0e8e5; }
.faq-item summary {
  position: relative;
  padding: 16px 34px 16px 0;
  color: #5a4c4c;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--bg); font: 800 24px/1 var(--font); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; }

.related-block { margin-top: 56px; }
.related-block h2, .hub-section h2 { margin: 0 0 18px; color: var(--ink); font: 800 22px/1.25 var(--font); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.link-card {
  display: block;
  padding: 15px 16px;
  border: 1px solid #f0e3de;
  border-radius: 9px;
  color: var(--body-ink);
  background: #fffaf7;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.link-card:hover { border-color: color-mix(in srgb, var(--bg) 45%, #f0e3de); background: #fff; transform: translateY(-2px); }
.link-card strong { display: block; color: var(--ink); font: 800 15px/1.3 var(--font); }
.link-card span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; }

/* ---------- Hub pages ---------- */
.about-inner.wide { width: min(960px, calc(100% - 40px)); }
.hub-jump { margin-top: 22px; }
.hub-section { margin-top: 48px; scroll-margin-top: 20px; }
.hub-section:first-child { margin-top: 0; }
.hub-section h2 span { margin-left: 6px; padding: 2px 8px; border-radius: 20px; color: var(--bg); background: color-mix(in srgb, var(--bg) 12%, #fff); font-size: 13px; vertical-align: 3px; }
.hub-section .link-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- Directory footer (all pages) ---------- */
.site-footer { padding: 54px 20px 44px; border-top: 1px solid var(--line); color: var(--body-ink); background: #fffaf7; text-align: left; }
.footer-directory { width: min(1080px, 100%); margin: 0 auto; columns: 4 200px; column-gap: 36px; }
.footer-group { break-inside: avoid; margin-bottom: 26px; }
.footer-group .footer-heading { margin: 0 0 9px; font: 800 13px/1.3 var(--font); letter-spacing: .6px; text-transform: uppercase; }
.footer-group .footer-heading a { margin: 0; color: var(--ink); font-size: inherit; }
.footer-group ul { margin: 0; padding: 0; list-style: none; }
.footer-group li { margin: 0; }
.site-footer .footer-group li a { display: inline-block; margin: 0; padding: 3px 0; color: var(--body-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-footer .footer-group li a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { width: min(1080px, 100%); margin: 14px auto 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.footer-base a { display: inline-block; white-space: nowrap; margin: 0 8px; color: var(--body-ink); text-decoration: none; font-size: 13px; font-weight: 800; }
.site-footer > p { margin: 22px 0 0; font-size: 14px; text-align: center; }

/* ---------- Fullscreen tool ---------- */
.tool-card:fullscreen { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 0; background: var(--bg); }
.tool-card:fullscreen .big-display { font-size: min(26vw, 40vh); }

/* ---------- Bare (embed) pages ---------- */
.bare-page { min-width: 0; min-height: 100vh; margin: 0; display: grid; place-items: center; color: #fff; background: var(--bg); }

/* ---------- Toast reused from styles.css ---------- */
.toast:empty { display: none; }

@media (max-width: 700px) {
  .site-topbar { height: auto; min-height: 58px; flex-wrap: wrap; padding: 10px 0; row-gap: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; overflow-x: auto; }
  .site-nav a { padding: 7px 9px; font-size: 13px; white-space: nowrap; }
  .site-topbar .product-badge { margin-left: auto; }
}
@media (max-width: 560px) {
  .tool-hero { padding-top: 26px; }
  .tool-lede { font-size: 15px; }
  .tool-card { padding: 20px 14px; }
  .tool-panel { padding: 18px 14px; }
  .unit-grid { gap: 6px; }
  .unit-grid span { font-size: 10px; }
  .btn { min-width: 130px; min-height: 50px; font-size: 18px; }
  .site-topbar .product-badge span { display: none; }
  .footer-directory { columns: 2 140px; column-gap: 20px; }
}
[hidden] { display: none !important; }
@media (max-width: 360px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 6px; font-size: 12px; }
}

/* ---------- Footer brand row ---------- */
.footer-brand { width: min(1080px, 100%); margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.footer-product { display: inline-flex; align-items: center; gap: 9px; color: var(--body-ink); font-size: 14px; font-weight: 600; text-decoration: none; }

.footer-product strong { color: var(--ink); font-weight: 800; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0;
  border: 1px solid #efe2dc; border-radius: 50%; color: var(--body-ink); background: #fff;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-social a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--bg) 45%, #efe2dc); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .fill { fill: currentColor; stroke: none; }

.footer-maker { display: block; margin: 0; border-radius: 50%; transition: transform .15s ease; }
.footer-maker:hover { transform: translateY(-2px) rotate(-4deg); }
.footer-maker img { display: block; width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(60, 30, 30, .18); object-fit: cover; }
/* Stuon's logo is white with padding: show it on a dark tile, scaled up */


.footer-logo-tile { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: #2b2a28; }
.footer-logo-tile img { width: 30px; height: 30px; transform: scale(1.6); background: none; border-radius: 0; }
/* Favicon as the brand icon in the top bar */
.brand-icon { display: block; width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }

/* ---------- Main page "explore" section ---------- */
.home-explore { border-top: 1px solid var(--line); }
.home-explore .about-inner { padding: 64px 0 60px; }
.home-explore h2 { margin: 0 0 26px; color: var(--ink); font: 800 clamp(26px, 5vw, 34px)/1.2 var(--font); letter-spacing: -.6px; }
.home-explore h3 { margin: 36px 0 14px; color: var(--ink); font: 800 18px/1.25 var(--font); }
.home-explore .hub-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.home-popular { justify-content: flex-start; }
.home-popular .chip { color: var(--body-ink); background: #fbf3ef; border: 1px solid #f0e3de; }
.home-popular .chip:hover { color: var(--ink); background: #fff; }

/* ---- calc-date.css ---- */
/* calc-date group: date & age calculators (.dc-) */
.dc-result { background: color-mix(in srgb, var(--bg) 7%, #fff); }
.dc-result .result-value.dc-long, .result-value.dc-long { font-size: clamp(22px, 5.4vw, 32px); letter-spacing: -.4px; line-height: 1.2; }
.dc-stats strong { font-size: clamp(17px, 4.2vw, 22px); }
.dc-two { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 10px; }
.dc-quick { justify-content: flex-start; margin-top: 14px; }
.dc-check, .dc-checks { margin-top: 14px; }
.dc-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.dc-note a, .tool-panel .tool-note a { color: var(--bg); font-weight: 800; }
.dc-hint { margin: -6px 0 12px; color: #998a8a; font-size: 13px; }
.dc-sub { margin: 22px 0 6px; }
.dc-left { justify-content: flex-start; margin-top: 12px; }
.dc-err { margin: 8px 0 0; color: #b4433c; font-size: 13px; font-weight: 700; }
.dc-err:empty, .tool-note:empty { display: none; }

/* Year progress */
.dc-progress { height: 14px; margin: 20px 0 8px; border-radius: 99px; overflow: hidden; background: rgba(0,0,0,.16); }
.dc-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .6s ease; }
.dc-progress-label { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dc-progress-label strong { color: #fff; }

/* Tables */
.dc-scroll { max-height: 420px; overflow-y: auto; margin-top: 4px; }
.dc-scroll thead th { position: sticky; top: 0; background: #fff; }
.data-table tr.dc-now td, .data-table td.dc-now { color: #fff; background: var(--bg); }
.data-table tr.dc-now td strong { color: #fff; }
.data-table tr.dc-past td { opacity: .55; }
.dc-tablehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dc-tablehead h2 { margin: 0; }
.dc-tablehead small { color: #998a8a; font: 700 13px/1 var(--body-font); }
.dc-yearpick { width: 110px; }
.dc-holtable .dc-yearpick { margin-bottom: 10px; }
.copy-block .dc-yearpick { color: #8a7b7b; }
.copy-block .dc-yearpick input { background: #f4f0ee; }
.dc-mile { font-size: 14px; }
.dc-doy { font-size: 13px !important; text-align: center; }
.dc-doy th, .dc-doy td { padding: 5px 6px; text-align: center; }
.dc-doy tbody th { color: #8a7b7b; }

/* Julian */
.dc-jgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 10px; }
.dc-jgrid .big-display { margin: 8px 0 4px; }
.dc-jgrid .stat-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.dc-jfields { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Age difference pairs */
.dc-pair + .dc-pair { margin-top: 12px; }

/* Life in weeks */
.dc-life-wrap { margin-top: 16px; width: 100%; }
.dc-life-wrap canvas { display: block; }
.dc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: #8a7b7b; font-size: 13px; font-weight: 700; }
.dc-key { display: inline-block; width: 11px; height: 11px; margin-right: -8px; border-radius: 2px; vertical-align: -1px; }
.dc-key-lived { background: var(--bg); }
.dc-key-now { background: #e2a03f; }
.dc-key-open { background: #ece4e0; }

@media (prefers-reduced-motion: reduce) { .dc-progress span { transition: none; } }
.dc-quad { grid-template-columns: repeat(2, 1fr); }
.dc-tri { grid-template-columns: repeat(3, 1fr); }
.dc-mile td:last-child { white-space: nowrap; }

/* ---- calc-time.css ---- */
/* ---------- calc-time: time calculators & converters ---------- */
.ct-panel [hidden] { display: none !important; }
.ct-panel .result { margin-top: 16px; padding: 18px 14px; border: 2px solid color-mix(in srgb, var(--bg) 16%, #fff); }
.ct-panel h2 { font-size: 17px; }
.ct-panel .field small { font-weight: 600; text-transform: none; }
.ct-chips { justify-content: flex-start; }
.ct-panel .ct-chips + .field-grid, .ct-panel .ct-chips + div:not(.ct-sleep-grid) { margin-top: 14px; }
.ct-mt { margin-top: 14px; }
.ct-grid-wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ct-panel .field-grid > *, .ct-panel .field input { min-width: 0; }
.ct-panel .field-grid { align-items: end; }
.ct-stat3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-stat3 strong { font-size: clamp(18px, 5vw, 26px); }
.ct-sublabel { margin: 16px 0 8px; color: #8a7b7b; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.ct-panel > .ct-chips:first-child, .ct-panel > input[type="hidden"]:first-child + .ct-chips { margin-bottom: 14px; }
.ct-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 5px; color: #8c3d2e; background: #fdf0ec; font-size: 14px; font-weight: 700; line-height: 1.45; }
.ct-msg:empty { display: none; }
.ct-work { margin: 12px 0 0; color: #7a6d6d; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; text-align: center; }
.ct-work:empty { display: none; }
.ct-work::before { content: "How: "; color: var(--bg); font-weight: 800; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ct-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-link { padding: 0; border: 0; color: var(--bg); background: none; font-size: 12px; font-weight: 800; text-decoration: underline; }
.ct-live { margin-top: 24px; padding-top: 20px; border-top: 2px dashed #f0e8e5; }
.ct-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0; }
.ct-upper { text-transform: uppercase; }
.ct-more { margin-top: 12px; }
.ct-more summary { padding: 6px 0; color: var(--bg); font-size: 14px; font-weight: 800; cursor: pointer; }
.ct-more .field-grid { margin-top: 8px; }
.ct-scroll { max-height: 340px; overflow-y: auto; }
.ct-hl td { background: color-mix(in srgb, var(--bg) 8%, #fff); }
.ct-panel .data-table td, .ct-panel .data-table th { padding: 8px 10px; }

/* Time addition rows */
.ct-add-row { display: grid; grid-template-columns: 54px 1fr 1fr 1fr 34px; gap: 6px; align-items: center; margin-top: 6px; }
.ct-add-row select, .ct-add-row input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 5px; color: #4d4545; background: #f4f0ee; font-size: 16px; font-weight: 700; }
.ct-add-row select { padding: 8px 4px; text-align: center; }
.ct-add-row input:focus, .ct-add-row select:focus { outline: 2px solid color-mix(in srgb, var(--bg) 45%, transparent); }
.ct-add-head { margin: 0 0 2px; color: #8a7b7b; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.ct-add-head span:first-child { text-align: center; }
.ct-x { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #9b8b8b; background: transparent; font-size: 22px; line-height: 1; }
.ct-x:hover { color: var(--bg); background: #f4f0ee; }

/* Sleep options */
.ct-rtitle { margin: 16px 0 0; color: #5d5252; font-weight: 800; }
.ct-rtitle:empty { display: none; }
.ct-sleep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.ct-sleep-grid article { position: relative; padding: 16px 8px 14px; border: 2px solid transparent; border-radius: 7px; text-align: center; background: color-mix(in srgb, var(--bg) 7%, #fff); }
.ct-sleep-grid article.ct-best { border-color: color-mix(in srgb, var(--bg) 45%, #fff); }
.ct-sleep-grid strong { display: block; color: var(--bg); font: 800 21px/1.1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-sleep-grid span { display: block; margin-top: 6px; color: #856f6f; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ct-sleep-grid em { display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 20px; color: #fff; background: var(--bg); font-size: 11px; font-style: normal; font-weight: 800; }

/* Time card */
.ct-tc-row { display: grid; grid-template-columns: 54px 1fr 1fr 96px 76px; gap: 8px; align-items: center; margin-top: 6px; }
.ct-tc-head { margin-top: 18px; color: #8a7b7b; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.ct-tc-row input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 5px; color: #4d4545; background: #f4f0ee; font-size: 16px; font-weight: 700; }
.ct-tc-row input:focus { outline: 2px solid color-mix(in srgb, var(--bg) 45%, transparent); }
.ct-tc-day { color: var(--bg); font: 800 15px/1 var(--font); }
.ct-tc-total { color: #4d4545; font: 800 17px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.ct-tc > .field-grid:not(:first-child) { margin-top: 18px; }

/* Overtime daily inputs */
.ct-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.ct-days .field input { padding: 8px 4px; text-align: center; }

/* Military converter */
.ct-mil { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-conv-out { margin-top: 10px; padding: 12px; border-radius: 7px; text-align: center; background: color-mix(in srgb, var(--bg) 8%, #fff); }
.ct-conv-out strong { display: block; color: var(--bg); font: 800 28px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.ct-conv-out span { display: block; min-height: 1em; margin-top: 4px; color: #856f6f; font-size: 12px; font-weight: 700; }

/* Epoch */
.ct-inline { display: flex; align-items: flex-end; gap: 8px; }
.ct-inline .field { flex: 1; min-width: 0; }
.ct-inline .btn-solid { min-height: 46px; }
.ct-dl { margin: 12px 0 0; }
.ct-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0e8e5; }
.ct-dl div:last-child { border-bottom: 0; }
.ct-dl dt { color: #8a7b7b; font-size: 13px; font-weight: 800; }
.ct-dl dd { margin: 0; color: #4d4545; font-weight: 700; overflow-wrap: anywhere; }
[data-widget="ct-epoch"] .chips { margin-top: 12px; }
[data-widget="ct-epoch"] .big-display { margin: 10px 0 12px; }

@media (max-width: 560px) {
  .ct-add-row { grid-template-columns: 46px 1fr 1fr 1fr 30px; gap: 4px; }
  .ct-x { width: 30px; }
  .ct-tc-row { grid-template-columns: 1fr 1fr 72px; grid-template-areas: "day day total" "in out brk"; gap: 6px; margin-top: 12px; }
  .ct-tc-row .ct-tc-day { grid-area: day; }
  .ct-tc-row .ct-tc-total { grid-area: total; }
  .ct-tc-row input[data-k^="in"] { grid-area: in; }
  .ct-tc-row input[data-k^="out"] { grid-area: out; }
  .ct-tc-row input[data-k^="brk"] { grid-area: brk; }
  .ct-tc-head { display: none; }
  .ct-days { grid-template-columns: repeat(4, 1fr); }
  .ct-mil { grid-template-columns: 1fr; }
  .ct-dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* Printable time card */
@media print {
  body:has([data-widget="ct-timecard"]) .site-topbar,
  body:has([data-widget="ct-timecard"]) .breadcrumbs,
  body:has([data-widget="ct-timecard"]) .tool-lede,
  body:has([data-widget="ct-timecard"]) .tool-about,
  body:has([data-widget="ct-timecard"]) .stuon-showcase,
  body:has([data-widget="ct-timecard"]) .site-footer,
  body:has([data-widget="ct-timecard"]) .toast,
  .ct-noprint { display: none !important; }
  body:has([data-widget="ct-timecard"]) .focus-zone { background: #fff !important; padding: 0; transition: none; }
  body:has([data-widget="ct-timecard"]) .tool-hero { padding: 0 0 12px; }
  body:has([data-widget="ct-timecard"]) .tool-hero h1 { color: #222; font-size: 24px; }
  body:has([data-widget="ct-timecard"]) .tool-wrap { width: 100%; }
  .ct-tc { box-shadow: none; padding: 0; }
  .ct-tc input { background: #fff !important; border: 1px solid #ccc !important; }
}

/* ---- classroom.css ---- */
/* Classroom tools, games & random, timer extras, /embed/ widget. All classes prefixed .cr- */

/* ---------- Shared bits ---------- */
.cr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cr-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cr-split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cr-split > .tool-card + .tool-panel, .cr-split > .tool-panel + .cr-embed-right { margin-top: 0; }
.cr-stack { display: grid; gap: 14px; align-content: start; }
.cr-left { justify-content: flex-start; }
.cr-mt { margin-top: 14px; }
.cr-row-center, .cr-row-left { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 16px; }
.cr-row-left { justify-content: flex-start; margin-top: 12px; color: #6b6060; }
.cr-inline-select { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; }
.cr-inline-select select { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 4px; color: #4d4545; background: #fff; font-weight: 700; }
.cr-inline-select input[type="range"] { width: 110px; accent-color: #fff; }
.cr-range { margin: 18px auto 0; max-width: 360px; }
.cr-range input { min-height: 0; padding: 0; background: transparent; accent-color: #fff; }
.tool-panel .field input[type="range"] { min-height: 0; padding: 0; background: transparent; accent-color: var(--bg); }
.cr-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; color: #7a2323; background: #ffe9e6; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: left; }
.cr-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; min-height: 0; }
.cr-history:empty { display: none; }
.cr-history-label { align-self: center; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.cr-tag { padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.14); font-size: 13px; font-weight: 700; }
.cr-tag:first-of-type { background: rgba(255,255,255,.24); }
.cr-btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.tool-note kbd, .copy-block kbd { padding: 1px 5px; border-radius: 3px; background: rgba(0,0,0,.07); font: 700 12px/1.4 var(--body-font); }

/* ---------- Random name picker ---------- */
.cr-picker-card { min-height: 100%; }
.cr-picked { min-height: 1.2em; margin: 18px 0 22px; display: grid; place-items: center; cursor: pointer; overflow-wrap: anywhere; letter-spacing: -.5px; }
.cr-picked.cr-spinning { opacity: .78; }
.cr-pop { animation: cr-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cr-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.tool-card:fullscreen .cr-picked { font-size: min(13vw, 24vh); }

/* ---------- Groups ---------- */
.cr-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.cr-group { padding: 16px; border-radius: 7px; color: #fff; background: var(--panel); animation: cr-rise .35s ease both; animation-delay: var(--d, 0ms); }
.cr-group h3 { margin: 0 0 8px; font: 800 17px/1.2 var(--font); display: flex; justify-content: space-between; }
.cr-group h3 span { padding: 1px 8px; border-radius: 20px; background: rgba(0,0,0,.16); font-size: 13px; }
.cr-group ul { margin: 0; padding: 0; list-style: none; }
.cr-group li { padding: 5px 0; border-top: 1px solid rgba(255,255,255,.14); font-weight: 700; overflow-wrap: anywhere; }
@keyframes cr-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Bingo ---------- */
.cr-bingo-now { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 20px 0 16px; }
.cr-ball {
  flex: none; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  color: var(--bg); background: radial-gradient(circle at 35% 30%, #fff 0 45%, #f1e8e2 100%);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.18);
}
.cr-ball span { font: 800 22px/1 var(--font); opacity: .8; }
.cr-ball strong { font: 800 60px/1 var(--font); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.cr-roll { animation: cr-ball-in .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cr-ball-in { from { transform: scale(.4) rotate(-120deg); opacity: .2; } to { transform: none; opacity: 1; } }
.cr-bingo-side { text-align: left; }
.cr-recent { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 220px; }
.cr-mini-ball { min-width: 40px; padding: 7px 6px; border-radius: 20px; background: rgba(0,0,0,.15); font: 800 14px/1 var(--font); text-align: center; }
.cr-board { display: grid; gap: 4px; margin-top: 20px; }
.cr-board-75 { grid-template-columns: 30px repeat(15, minmax(0, 1fr)); }
.cr-board-90 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cr-board-letter { display: grid; place-items: center; font: 800 18px/1 var(--font); }
.cr-cell {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  color: rgba(255,255,255,.45); background: rgba(0,0,0,.1);
  font: 800 clamp(10px, 1.6vw, 15px)/1 var(--font); font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease;
}
.cr-cell.on { color: var(--bg); background: #fff; }
.cr-cell.last { box-shadow: 0 0 0 3px #ffd166; }
.tool-card:fullscreen .cr-board { width: min(96vw, 150vh); }
.tool-card:fullscreen .cr-cell { font-size: min(1.8vw, 3vh); }
@media (max-width: 600px) {
  .cr-board-75 { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(16, auto); grid-auto-flow: column; max-width: 300px; margin-inline: auto; }
  .cr-board-75 .cr-cell { aspect-ratio: auto; height: 26px; border-radius: 13px; font-size: 13px; }
  .cr-board-90 .cr-cell { font-size: 11px; }
  .cr-bingo-now { gap: 14px; }
  .cr-ball { width: 104px; height: 104px; }
  .cr-ball strong { font-size: 46px; }
}

/* ---------- Noise meter ---------- */
.cr-noise { transition: background .4s ease; }
.cr-noise[data-zone="calm"] { background: color-mix(in srgb, #3fae6a 30%, var(--panel)); }
.cr-noise[data-zone="ok"] { background: color-mix(in srgb, #e0b43a 32%, var(--panel)); }
.cr-noise[data-zone="loud"] { background: color-mix(in srgb, #e04848 45%, var(--panel)); }
.cr-noise-face { font-size: 72px; line-height: 1; margin-top: 6px; }
.cr-noise-status { margin: 8px 0 18px; }
.cr-meter { position: relative; height: 34px; border-radius: 17px; overflow: hidden; background: rgba(0,0,0,.18); }
.cr-meter-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 40fr 30fr 30fr; opacity: .3; }
.z-calm { background: #6fe39a; } .z-ok { background: #ffd166; } .z-loud { background: #ff6b6b; }
.cr-meter-fill {
  position: absolute; inset: 0; clip-path: inset(0 100% 0 0);
  background: linear-gradient(90deg, #6fe39a 0 40%, #ffd166 40% 70%, #ff6b6b 70% 100%);
  background-size: 100% 100%;
}
.cr-meter-peak { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #fff; opacity: .8; }
.cr-meter-labels { display: grid; grid-template-columns: 40fr 30fr 30fr; margin: 7px 0 4px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.cr-meter-labels span:nth-child(2) { text-align: center; } .cr-meter-labels span:last-child { text-align: right; }
.tool-card:fullscreen.cr-noise { padding: 5vh 6vw; }
.tool-card:fullscreen .cr-noise-face { font-size: 22vh; }
.tool-card:fullscreen .cr-noise-status { font-size: min(12vw, 14vh); }
.tool-card:fullscreen .cr-meter { width: 100%; height: 8vh; border-radius: 4vh; }
.tool-card:fullscreen .cr-meter-labels { width: 100%; font-size: 2.4vh; }
.tool-card:fullscreen.cr-noise[data-zone="calm"] { background: color-mix(in srgb, #2f8a52 70%, var(--bg)); }
.tool-card:fullscreen.cr-noise[data-zone="ok"] { background: color-mix(in srgb, #b58a1c 70%, var(--bg)); }
.tool-card:fullscreen.cr-noise[data-zone="loud"] { background: color-mix(in srgb, #c23030 80%, var(--bg)); }
.tool-card:fullscreen.cr-noise .field, .tool-card:fullscreen.cr-noise .stat-grid, .tool-card:fullscreen.cr-noise .tool-note { width: min(100%, 560px); }

/* ---------- Seating chart ---------- */
.cr-chart { margin-top: 16px; }
.cr-chart-title { text-align: center; }
.cr-front { width: min(260px, 70%); margin: 0 auto 16px; padding: 8px; border-radius: 5px; color: #fff; background: var(--bg); font: 800 13px/1 var(--font); text-align: center; text-transform: uppercase; letter-spacing: .6px; }
.cr-seats { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 8px; }
.cr-seat {
  position: relative; min-height: 62px; padding: 18px 4px 8px; border: 2px solid transparent; border-radius: 7px;
  color: #4d4545; background: color-mix(in srgb, var(--bg) 10%, #fff);
  font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; cursor: grab;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.cr-seat small { position: absolute; top: 4px; left: 6px; color: #a0928f; font-size: 10px; font-weight: 700; }
.cr-seat.empty { color: #b6aaa7; border: 2px dashed #e6dcd8; background: #fff; font-weight: 600; cursor: pointer; }
.cr-seat:hover { border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.cr-seat.sel { border-color: var(--bg); background: color-mix(in srgb, var(--bg) 22%, #fff); transform: translateY(-2px); }
.cr-seat.over { border-color: var(--bg); border-style: solid; transform: scale(1.04); }
.cr-seat.dragging { opacity: .4; }
.cr-warn { color: #b0442d !important; font-weight: 800; }
@media (max-width: 560px) {
  .cr-seats { gap: 5px; }
  .cr-seat { min-height: 54px; padding: 16px 2px 6px; font-size: 12px; }
}
@media print {
  .tool-page:has(.cr-chart) .site-topbar, .tool-page:has(.cr-chart) .tool-hero, .tool-page:has(.cr-chart) .tool-about,
  .tool-page:has(.cr-chart) .stuon-showcase, .tool-page:has(.cr-chart) .site-footer, .tool-page:has(.cr-chart) .toast,
  .cr-seat-controls, .cr-noprint { display: none !important; }
  .tool-page:has(.cr-chart) .focus-zone { min-height: 0; padding: 0; background: #fff; }
  .tool-page:has(.cr-chart) .tool-wrap { width: 100%; }
  .cr-chart { margin: 0; box-shadow: none; color: #000; }
  .cr-chart-title { color: #000; font-size: 22px; }
  .cr-front { color: #000; background: #fff; border: 2px solid #000; }
  .cr-seat { border: 1.5px solid #000; background: #fff; color: #000; break-inside: avoid; }
  .cr-seat.empty { border: 1.5px dashed #999; color: #999; }
  .cr-seat small { color: #555; }
}

/* ---------- Scoreboard ---------- */
.cr-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.cr-teams[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cr-teams[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cr-teams[data-n="5"], .cr-teams[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cr-team {
  position: relative; padding: 16px 10px 14px; border-radius: 9px;
  background: color-mix(in srgb, var(--team) 55%, rgba(0,0,0,.25));
  border-top: 6px solid var(--team);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cr-team.lead { box-shadow: 0 0 0 3px #ffd166; }
.cr-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) scale(0); font-size: 26px; transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.cr-team.lead .cr-crown { transform: translateX(-50%) scale(1); }
.cr-team-name { width: 100%; padding: 4px; border: 0; border-radius: 4px; color: #fff; background: transparent; font: 800 17px/1.2 var(--font); text-align: center; text-overflow: ellipsis; }
.cr-team-name:hover, .cr-team-name:focus { background: rgba(0,0,0,.16); outline: none; }
.cr-team-score { display: block; margin: 8px 0 12px; font: 800 clamp(48px, 9vw, 84px)/1 var(--font); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.cr-bump { animation: cr-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.cr-team-btns { display: flex; justify-content: center; gap: 8px; }
.cr-pm { width: 52px; height: 46px; border: 0; border-radius: 6px; color: #fff; background: rgba(0,0,0,.2); font: 800 26px/1 var(--font); transition: transform .1s ease, background .15s ease; }
.cr-pm.plus { color: var(--team); background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.cr-pm:active { transform: translateY(3px); box-shadow: none; }
.tool-card:fullscreen.cr-score-card { padding: 4vh 3vw; }
.tool-card:fullscreen .cr-teams { width: 100%; flex: 1; align-content: center; gap: 2vw; }
.tool-card:fullscreen .cr-team-score { font-size: min(14vw, 22vh); }
.tool-card:fullscreen .cr-teams[data-n="5"] .cr-team-score, .tool-card:fullscreen .cr-teams[data-n="6"] .cr-team-score { font-size: min(11vw, 15vh); }
.tool-card:fullscreen .cr-team-name { font-size: min(4vw, 5vh); }
.tool-card:fullscreen .cr-pm { width: 9vh; height: 8vh; font-size: 5vh; }
@media (max-width: 700px) {
  .cr-teams[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-teams[data-n="3"], .cr-teams[data-n="5"], .cr-teams[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-teams[data-n="3"] .cr-team:last-child, .cr-teams[data-n="5"] .cr-team:last-child { grid-column: 1 / -1; }
}

/* ---------- Times tables ---------- */
.cr-times-head .big-display { margin: 18px 0 4px; }
.cr-times-head .big-display strong { color: #ffd166; }
.cr-times-panel { margin-top: 16px; }
.cr-tgrid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; outline: none; user-select: none; }
.cr-tgrid:focus-visible { outline: 2px solid color-mix(in srgb, var(--bg) 50%, transparent); outline-offset: 4px; }
.cr-th, .cr-tc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; font: 800 clamp(10px, 2.1vw, 16px)/1 var(--font); font-variant-numeric: tabular-nums; }
.cr-th { color: #fff; background: var(--bg); }
.cr-corner { background: color-mix(in srgb, var(--bg) 70%, #000); }
.cr-tc { color: #6b5f5f; background: #f6f2f0; cursor: pointer; transition: background .1s ease; }
.cr-tc.sq { background: color-mix(in srgb, var(--bg) 9%, #fff); }
.cr-tc.hl { color: #3d3535; background: color-mix(in srgb, var(--bg) 22%, #fff); }
.cr-th.hl { background: color-mix(in srgb, var(--bg) 70%, #000); }
.cr-tc.hit { color: #fff; background: var(--bg); transform: scale(1.12); box-shadow: 0 3px 8px rgba(0,0,0,.2); position: relative; z-index: 1; }
.cr-tlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.cr-tlist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 6px; background: #f6f2f0; color: #5d5252; font: 800 22px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.cr-tlist li.cr-tlist-tools { grid-column: 1 / -1; background: transparent; padding: 6px 0 0; font: inherit; }
.cr-ans { min-width: 58px; padding: 4px 10px; border: 0; border-radius: 5px; color: #fff; background: var(--bg); font: inherit; }
.cr-ans.hidden { color: transparent; background: color-mix(in srgb, var(--bg) 25%, #fff); }
.cr-ans.hidden::after { content: "?"; color: var(--bg); position: absolute; }
.cr-ans { position: relative; }
.cr-ans.hidden::after { inset: 0; display: grid; place-items: center; }
@media (max-width: 560px) {
  .cr-tgrid { gap: 2px; }
  .cr-times-panel { padding: 12px 8px; }
  .cr-tlist { grid-template-columns: 1fr; }
  .cr-tlist li { font-size: 19px; }
}

/* ---------- Multiplication game ---------- */
.cr-mult-chips { margin: 8px 0 4px; }
.cr-mult-chips .chip { min-width: 40px; }
.cr-locked { opacity: .5; pointer-events: none; }
.cr-mult-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 4px; }
.cr-mult-stats div { padding: 10px 4px; border-radius: 7px; background: rgba(0,0,0,.12); }
.cr-mult-stats strong { display: block; font: 800 28px/1 var(--font); font-variant-numeric: tabular-nums; }
.cr-mult-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.cr-hurry .cr-mult-stats div:first-child { background: rgba(255,80,80,.35); }
.cr-mult-q { margin: 20px 0 14px; }
.cr-mult-form { display: flex; justify-content: center; }
.cr-mult-input { width: 160px; min-height: 64px; text-align: center; font: 800 36px/1 var(--font); border: 3px solid transparent; }
.cr-mult-input:disabled { opacity: .5; }
.cr-mult-input.bad { border-color: #ff8a8a; }
.cr-mult-feedback { min-height: 1.5em; margin: 12px 0 4px; color: rgba(255,255,255,.88); font-size: 16px; font-weight: 700; }
.cr-good { animation: cr-flash-good .35s ease; }
.cr-bad { animation: cr-shake .35s ease; }
@keyframes cr-flash-good { 0% { box-shadow: inset 0 0 0 999px rgba(111,227,154,.28); } 100% { box-shadow: inset 0 0 0 999px rgba(111,227,154,0); } }
@keyframes cr-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tool-card:fullscreen .cr-mult-q { font-size: min(16vw, 22vh); }
.tool-card:fullscreen .cr-mult-input { width: 30vh; min-height: 12vh; font-size: 7vh; }

/* ---------- Teleprompter ---------- */
.cr-prompt-card { padding: 0; overflow: hidden; background: #1f1f22; }
.cr-prompt-view { height: min(56vh, 440px); overflow-y: auto; scrollbar-width: none; outline: none; cursor: pointer; }
.cr-prompt-view::-webkit-scrollbar { display: none; }
.cr-prompt-text { padding: 24% 7% 80%; color: #fff; font: 700 44px/1.45 var(--body-font); text-align: left; overflow-wrap: anywhere; }
.cr-prompt-text p { margin: 0 0 .9em; }
.cr-prompt-text.mirrored { transform: scaleX(-1); }
.cr-prompt-guide { position: absolute; left: 0; right: 0; top: calc(min(56vh, 440px) * .22); height: 0; border-top: 2px dashed rgba(255,209,102,.5); pointer-events: none; }
.cr-prompt-guide::before { content: "▶"; position: absolute; left: 8px; top: -12px; color: #ffd166; font-size: 16px; }
.cr-prompt-controls { margin: 0; padding: 12px; background: var(--bg); }
.cr-speed { min-width: 72px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 800; }
.cr-prompt-count { position: absolute; inset: 0 0 66px; display: grid; place-items: center; color: #ffd166; background: rgba(0,0,0,.45); font: 800 120px/1 var(--font); pointer-events: none; }
.cr-playing .cr-prompt-view { cursor: default; }
.tool-card:fullscreen.cr-prompt-card { display: flex; justify-content: stretch; align-items: stretch; background: #111; }
.tool-card:fullscreen .cr-prompt-view { flex: 1; height: auto; width: 100%; }
.tool-card:fullscreen .cr-prompt-guide { top: 22vh; }
.tool-card:fullscreen .cr-prompt-controls { width: 100%; }
@media (max-width: 560px) {
  .cr-prompt-card { padding: 0; }
  .cr-prompt-controls .btn-ghost { padding: 8px 10px; font-size: 13px; }
}

/* ---------- Dice ---------- */
.cr-dice { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; min-height: 86px; margin: 22px 0 4px; cursor: pointer; }
.cr-die { position: relative; width: 82px; height: 82px; display: grid; place-items: center; color: var(--bg); background: #fff; font: 800 32px/1 var(--font); }
.cr-die.d6 { grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12px; border-radius: 14px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.15); }
.cr-die.d6 i { width: 14px; height: 14px; border-radius: 50%; place-self: center; }
.cr-die.d6 i.p { background: var(--bg); }
.cr-die.d4 { clip-path: polygon(50% 4%, 97% 92%, 3% 92%); padding-top: 20px; }
.cr-die.d8 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.cr-die.d10 { clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); padding-bottom: 8px; }
.cr-die.d12 { clip-path: polygon(50% 0, 98% 36%, 80% 95%, 20% 95%, 2% 36%); padding-top: 8px; }
.cr-die.d20 { clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); }
.cr-die:not(.d6) { filter: drop-shadow(0 5px 0 rgba(0,0,0,.12)); }
.cr-rolling .cr-die { animation: cr-tumble .56s ease; }
@keyframes cr-tumble { 0% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-25deg) translateY(-18px); } 60% { transform: rotate(18deg) translateY(4px); } 100% { transform: rotate(0) translateY(0); } }
.cr-total { min-height: 52px; margin: 6px 0 10px; color: rgba(255,255,255,.85); font-size: 16px; font-weight: 700; }
.cr-total strong { display: block; color: #fff; font: 800 44px/1.05 var(--font); }
.cr-total span { font-variant-numeric: tabular-nums; }
.tool-card:fullscreen .cr-die { width: 16vh; height: 16vh; font-size: 7vh; }
.tool-card:fullscreen .cr-die.d6 i { width: 3vh; height: 3vh; }
.tool-card:fullscreen .cr-total strong { font-size: 12vh; }
@media (max-width: 400px) { .cr-die { width: 70px; height: 70px; } .cr-die.d6 i { width: 12px; height: 12px; } .cr-dice { gap: 10px; } }

/* ---------- Coin ---------- */
.cr-coin-btn { display: block; margin: 16px auto 0; padding: 0; border: 0; background: transparent; perspective: 900px; }
.cr-coin { position: relative; display: block; width: 168px; height: 168px; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.25, .9, .3, 1); }
.cr-face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font: 800 76px/1 var(--font);
  color: #8a5a1f; background: radial-gradient(circle at 35% 30%, #ffe8a3, #f2c14e 55%, #d39a2c);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.35), inset 0 0 0 12px rgba(150,95,20,.35), 0 8px 18px rgba(0,0,0,.2);
}
.cr-tails { transform: rotateY(180deg); color: #5e6670; background: radial-gradient(circle at 35% 30%, #ffffff, #d5dbe1 55%, #a9b2bb); box-shadow: inset 0 0 0 8px rgba(255,255,255,.4), inset 0 0 0 12px rgba(80,90,100,.3), 0 8px 18px rgba(0,0,0,.2); }
.cr-tossing .cr-coin-btn { animation: cr-toss 1.2s cubic-bezier(.3, .7, .4, 1); }
@keyframes cr-toss { 0% { transform: translateY(0); } 40% { transform: translateY(-70px) scale(1.08); } 75% { transform: translateY(6px); } 100% { transform: translateY(0); } }
.tool-card:fullscreen .cr-coin { width: 40vh; height: 40vh; }
.tool-card:fullscreen .cr-face { font-size: 18vh; }

/* ---------- Rock paper scissors ---------- */
.cr-rps-arena { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 22px 0 6px; }
.cr-rps-arena > div { display: grid; justify-items: center; gap: 4px; }
.cr-rps-arena small { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.cr-rps-hand { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: rgba(0,0,0,.14); font-size: 60px; line-height: 1; }
.cr-rps-vs { font: 800 18px/1 var(--font); opacity: .75; }
.cr-shaking .cr-rps-hand { animation: cr-shake-hand .25s ease-in-out 3; }
@keyframes cr-shake-hand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.cr-rps-result { min-height: 1.1em; margin: 12px 0 16px; font-size: clamp(22px, 5vw, 32px); letter-spacing: -.4px; }
.cr-rps-moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cr-rps-move {
  display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border: 0; border-radius: 8px;
  color: var(--bg); background: #fff; box-shadow: 0 5px 0 rgba(235,235,235,.95); font-size: 40px; line-height: 1;
  transition: transform .1s ease, box-shadow .1s ease;
}
.cr-rps-move span { font: 800 14px/1 var(--font); text-transform: uppercase; }
.cr-rps-move:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(235,235,235,.95); }
.cr-rps-move:disabled { opacity: .5; cursor: not-allowed; }
.cr-match-over [data-reset] { background: #fff; color: var(--bg); font-weight: 800; }

/* ---------- Random numbers ---------- */
.cr-rng-out { min-height: 1em; margin: 14px 0 18px; }
.cr-rng-out.cr-rng-many { font-size: clamp(26px, 6vw, 40px); letter-spacing: -.5px; line-height: 1.25; }
.cr-rng-out.cr-rng-lots { max-height: 260px; overflow-y: auto; font-size: 18px; letter-spacing: 0; line-height: 1.6; text-align: left; }

/* ---------- Reaction time ---------- */
.cr-react {
  display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; min-height: 300px; padding: 28px 18px;
  border: 0; border-radius: 9px; color: #fff; background: var(--panel); text-align: center; touch-action: manipulation; user-select: none;
  -webkit-user-select: none; transition: background-color .08s linear;
}
.cr-react:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; }
.cr-react[data-state="wait"] { background: #c8423c; }
.cr-react[data-state="go"] { background: #2fae5f; }
.cr-react[data-state="early"] { background: #d98a2b; }
.cr-react[data-state="result"], .cr-react[data-state="done"] { background: rgba(0,0,0,.18); }
.cr-react-icon { font-size: 56px; line-height: 1; }
.cr-react-main { font: 800 clamp(34px, 8vw, 60px)/1.05 var(--font); letter-spacing: -1px; }
.cr-react-sub { max-width: 380px; color: rgba(255,255,255,.85); font-size: 16px; font-weight: 700; line-height: 1.4; }
.cr-react-stats { margin-top: 16px; }
.cr-tries { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cr-tries span { padding: 9px 2px; border-radius: 6px; color: rgba(255,255,255,.55); background: rgba(0,0,0,.1); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-tries span.done { color: #fff; background: rgba(255,255,255,.18); }

/* ---------- Typing test ---------- */
.cr-type { text-align: left; }
.cr-type-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cr-type-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; text-align: center; }
.cr-type-stats div { padding: 10px 4px; border-radius: 7px; background: rgba(0,0,0,.12); }
.cr-type-stats strong { display: block; font: 800 30px/1 var(--font); font-variant-numeric: tabular-nums; }
.cr-type-stats span { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.cr-type-live .cr-type-stats div:first-child { background: rgba(255,255,255,.18); }
.cr-passage {
  position: relative; height: calc(1.7em * 4 + 28px); overflow: hidden; padding: 14px 16px; border-radius: 7px;
  color: rgba(255,255,255,.5); background: rgba(0,0,0,.14);
  font: 600 21px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; cursor: text; scroll-behavior: smooth;
}
.cr-passage span.ok { color: #fff; }
.cr-passage span.bad { color: #fff; background: rgba(255,90,90,.75); border-radius: 2px; }
.cr-passage span.cur { box-shadow: inset 0 -3px 0 #ffd166; color: #fff; }
.cr-type-input { display: block; margin-top: 12px; min-height: 56px; resize: none; font: 600 18px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.cr-type-input:focus { outline: 3px solid rgba(255,255,255,.4); }
.cr-type-result { margin-top: 16px; padding: 18px; border-radius: 7px; text-align: center; background: rgba(0,0,0,.14); }
.cr-type-result p { margin: 0 0 10px; color: rgba(255,255,255,.88); font-weight: 700; line-height: 1.5; }
.cr-type-big { font-size: 20px; }
.cr-type-big strong { font: 800 60px/1 var(--font); letter-spacing: -2px; color: #fff; }
@media (max-width: 560px) { .cr-passage { font-size: 17px; } .cr-type-stats strong { font-size: 24px; } }

/* ---------- Metronome ---------- */
.cr-beats { display: flex; justify-content: center; gap: 12px; min-height: 30px; margin: 10px 0 0; }
.cr-beats span { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.18); transition: background .06s linear, transform .06s linear; }
.cr-beats span.accent { box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.cr-beats span.semi { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.cr-beats span.on { background: #fff; transform: scale(1.18); }
.cr-beats span.accent.on { background: #ffd166; }
.cr-metro .big-display { margin: 14px 0 4px; }
.cr-pulse { animation: cr-pulse var(--beat-ms, 300ms) ease-out; }
@keyframes cr-pulse { 0% { transform: scale(1.06); } 30% { transform: scale(1); } }
.cr-bpm-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.cr-slider { flex: 1; min-width: 0; accent-color: #fff; height: 28px; }
.cr-round { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 24px; flex: none; }
.cr-tapped { animation: cr-pop .2s ease; }
.tool-card:fullscreen.cr-metro .big-display { font-size: min(24vw, 34vh); }
.tool-card:fullscreen .cr-beats span { width: 7vh; height: 7vh; }
.tool-card:fullscreen .cr-bpm-row { width: min(90vw, 700px); }

/* ---------- Timer emoji ---------- */
.cr-emoji-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.cr-emoji-label { color: #8a7b7b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.cr-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cr-emoji {
  display: grid; justify-items: center; gap: 6px; padding: 14px 6px 10px; border: 1px solid #f0e8e5; border-radius: 8px;
  color: #6b5f5f; background: #fffaf8; transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.cr-emoji:hover { border-color: color-mix(in srgb, var(--bg) 45%, #f0e8e5); background: #fff; transform: translateY(-2px); }
.cr-emoji-glyph { font-size: 38px; line-height: 1.1; }
.cr-emoji-name { font-size: 11.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.cr-copied { animation: cr-copied .5s ease; }
@keyframes cr-copied { 0% { background: color-mix(in srgb, var(--bg) 25%, #fff); transform: scale(.94); } 100% { background: #fffaf8; transform: none; } }
.cr-emoji-table td, .cr-emoji-table th { white-space: nowrap; }
.cr-emoji-cell { font-size: 24px; }
.cr-emoji-table code { font-size: 13px; }
@media (max-width: 400px) { .cr-emoji-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cr-emoji-glyph { font-size: 32px; } }

/* ---------- Embed builder ---------- */
.cr-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-swatch { width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px #e7dedb; transition: transform .12s ease; }
.cr-swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--sw); transform: scale(1.08); }
.cr-embed-right { display: grid; gap: 16px; }
.cr-preview-card { padding: 16px; }
.cr-preview-frame { display: grid; place-items: center; margin-top: 10px; padding: 12px; border-radius: 7px; background: repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%) 0 0 / 20px 20px; overflow: hidden; }
.cr-preview-frame iframe { width: var(--fw, 400px); max-width: 100%; height: var(--fh, 260px); border: 0; border-radius: 12px; background: transparent; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.cr-embed-right textarea { min-height: 100px; font: 600 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }

/* ---------- /embed/ widget (bare page) ---------- */
.bare-page:has(.cr-embed) { min-width: 0; overflow: hidden; }
.cr-embed { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: min(3vh, 14px); padding: 18px 14px 30px; text-align: center; }
.cr-embed-title { max-width: 100%; margin: 0; overflow: hidden; color: rgba(255,255,255,.9); font: 800 clamp(13px, 6vmin, 30px)/1.2 var(--font); text-overflow: ellipsis; white-space: nowrap; }
.cr-embed-time { font: 800 min(26vw, 40vh)/.95 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cr-embed-time.long { font-size: min(18vw, 36vh); }
.cr-embed.done .cr-embed-time { font-size: min(15vw, 26vh); animation: cr-blink 1s steps(2) 4; }
@keyframes cr-blink { 50% { opacity: .35; } }
.cr-embed-bar { width: min(80%, 420px); height: 6px; border-radius: 3px; overflow: hidden; background: rgba(0,0,0,.18); }
.cr-embed-bar span { display: block; height: 100%; background: rgba(255,255,255,.85); transform-origin: left; transition: transform .2s linear; }
.cr-embed-actions { display: flex; gap: 8px; }
.cr-embed-btn {
  min-width: min(40vw, 150px); min-height: clamp(34px, 12vh, 52px); padding: 0 18px; border: 0; border-radius: 4px;
  color: var(--bg); background: #fff; box-shadow: 0 5px 0 rgba(235,235,235,.95);
  font: 800 clamp(14px, 6vmin, 20px)/1 var(--font); text-transform: uppercase; transition: transform .1s ease, box-shadow .1s ease;
}
.cr-embed-btn:active, .cr-embed.running .cr-embed-btn:not(.ghost) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(235,235,235,.95); }
.cr-embed-btn.ghost { min-width: 0; padding: 0 14px; color: #fff; background: rgba(255,255,255,.16); box-shadow: none; }
.cr-embed-credit { position: absolute; right: 8px; bottom: 6px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; text-decoration: none; }
.cr-embed-credit:hover { color: #fff; text-decoration: underline; }
@media (max-height: 220px) { .cr-embed { gap: 6px; padding: 8px 10px 22px; } .cr-embed-bar { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cr-split, .cr-split-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cr-rps-hand { width: 88px; height: 88px; font-size: 46px; }
  .cr-rps-arena { gap: 12px; }
  .cr-mult-stats strong { font-size: 22px; }
  .cr-mult-stats span { font-size: 10px; }
  .cr-coin { width: 140px; height: 140px; }
  .cr-face { font-size: 62px; }
  .cr-react { min-height: 260px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cr-pop, .cr-roll, .cr-bump, .cr-good, .cr-bad, .cr-rolling .cr-die, .cr-tossing .cr-coin-btn, .cr-shaking .cr-rps-hand,
  .cr-pulse, .cr-tapped, .cr-copied, .cr-group, .cr-embed.done .cr-embed-time { animation: none !important; }
  .cr-coin, .cr-crown, .cr-seat, .cr-embed-bar span { transition: none !important; }
}

/* keep top chips clear of the fullscreen button */
.tool-card > .fullscreen-button + .chips { padding-inline: 40px; }
.cr-react-stats .stat-grid, [data-widget="rps"] .stat-grid, [data-widget="coin"] .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- countdowns.css ---- */
/* Countdown pages (holidays, seasons, personal, sports). Prefix: .cd- */
.cd-card { padding-top: 26px; }
.cd-chips { margin: 4px 44px 14px; }
.cd-label { margin: 6px 0 0; color: rgba(255,255,255,.86); font: 800 clamp(17px, 4vw, 21px)/1.3 var(--font); }
.cd-units[hidden] { display: none; }
.cd-msg { margin: 8px 0 12px; color: #fff; font: 800 clamp(34px, 9vw, 60px)/1.1 var(--font); letter-spacing: -1px; }
.cd-msg[hidden] { display: none; }
.cd-date { margin: 14px 0 0; color: #fff; font-size: 17px; font-weight: 800; }
.cd-date:empty, .cd-note:empty { display: none; }
.cd-note { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.5; }
.cd-extras { margin-top: 18px; }
.cd-extras[hidden] { display: none; }
.cd-extras strong { font-size: 24px; }
.cd-on .cd-label { color: rgba(255,255,255,.75); }

/* Day progress (countdown to midnight) */
.cd-progress { margin-top: 18px; }
.cd-bar { height: 10px; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.16); }
.cd-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width .9s linear; }
.cd-progress b { display: block; margin-top: 8px; color: rgba(255,255,255,.75); font-size: 13px; }

/* Settings inside the card (weekend) */
.cd-settings, .cd-calc { margin-top: 18px; text-align: left; }
.cd-settings summary, .cd-calc summary { cursor: pointer; font-size: 14px; font-weight: 800; }
.cd-settings summary { color: rgba(255,255,255,.85); text-align: center; }
.cd-settings .field-grid { margin-top: 12px; }
.cd-calc { padding: 12px 14px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 6%, #fff); }
.cd-calc summary { color: var(--bg); }
.cd-calc .field-grid { margin-top: 12px; }

/* Personal form */
.cd-form { margin-top: 16px; }
.cd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.cd-share .tool-note { margin: 0; flex: 1 1 200px; }

/* Schedule: several mini countdowns */
.cd-schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cd-schedule .tool-card + .tool-card { margin-top: 0; }
.cd-mini { height: 100%; padding: 22px 16px; }
.cd-mini .unit-grid strong { font-size: clamp(26px, 6vw, 38px); }
.cd-mini .cd-label { font-size: 17px; }

/* Fullscreen */
.cd-card:fullscreen { padding: 4vh 5vw; }
.cd-card:fullscreen .unit-grid { width: min(1100px, 92vw); gap: 2vw; }
.cd-card:fullscreen .unit-grid strong { font-size: min(11vw, 22vh); }
.cd-card:fullscreen .unit-grid span { font-size: min(2.2vw, 3vh); }
.cd-card:fullscreen .cd-label { font-size: min(4vw, 5vh); }
.cd-card:fullscreen .cd-msg { font-size: min(9vw, 16vh); }
.cd-card:fullscreen .cd-date { font-size: min(2.6vw, 3.6vh); }
.cd-card:fullscreen .cd-extras, .cd-card:fullscreen .cd-settings { width: min(900px, 90vw); }

@media (max-width: 560px) {
  .cd-chips { margin: 2px 36px 12px; }
  .cd-chips .chip { font-size: 13px; padding: 7px 10px; }
  .cd-date { font-size: 15px; }
  .cd-schedule { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-bar i { transition: none; }
}
.cd-mini .cd-date { font-size: 15px; }
.cd-wrap .field, .cd-wrap .field input, .cd-wrap .field select { min-width: 0; max-width: 100%; }
.cd-wrap .field input[type="date"], .cd-wrap .field input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }

/* ---- international.css ---- */
/* International / time zone pages (.tz-) */

/* Pair pages: two live clocks with the gap between */
.tz-clocks { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.tz-clocks .tool-card + .tool-card { margin-top: 0; }
.tz-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 20px 14px; }
.tz-clock-name { margin: 0; font: 800 16px/1.25 var(--font); }
.tz-clock-name span { display: block; margin-top: 3px; color: rgba(255,255,255,.7); font: 700 12px/1.3 var(--body-font); }
.tz-clock-time { margin: 12px 0 6px; font: 800 clamp(30px, 5.4vw, 50px)/1 var(--font); letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-clock-date { margin: 0 0 10px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 700; }
.tz-abbr { display: inline-block; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,.16); font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.tz-gap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; text-align: center; }
.tz-gap strong { font: 800 26px/1 var(--font); white-space: nowrap; }
.tz-gap span { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.tz-alt { margin-top: 14px; }
.tz-live-note, .tz-next { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.tz-next { margin-top: 6px; color: #fff; font-weight: 700; }
.tz-pair .tz-conv { margin-top: 18px; }
.tz-conv .result { background: color-mix(in srgb, var(--bg) 7%, #fff); }
.tz-conv-actions { justify-content: flex-start; margin-top: 14px; }
.tz-swap { text-decoration: none; display: inline-flex; align-items: center; }
.tz-day { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 10px; color: var(--bg); background: color-mix(in srgb, var(--bg) 10%, #fff); font-size: 11px; font-weight: 800; white-space: nowrap; }
.tz-table { max-width: 100%; }
.tz-table .data-table td, .tz-table .data-table th { white-space: nowrap; }
.tz-caption { caption-side: top; padding: 0 0 6px; color: var(--bg); font: 800 15px/1.3 var(--font); text-align: left; }

/* Any-to-any converter */
.tz-tzc .field-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.tz-span2 { grid-column: 1 / -1; }
.tz-scrub { margin-top: 14px; }
.tz-scrub > span { display: flex; justify-content: space-between; gap: 8px; }
.tz-scrub output { color: var(--bg); font: 800 14px/1 var(--font); }
.tz-scrub input[type="range"] { min-height: 32px; padding: 0; background: transparent; accent-color: var(--bg); }
.tz-tzc-actions { justify-content: flex-start; margin-top: 10px; }
.tz-rows { margin: 16px 0 0; padding: 0; list-style: none; }
.tz-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 32px; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 6px; border-bottom: 1px solid #f0e8e5; }
.tz-row-src { background: color-mix(in srgb, var(--bg) 8%, #fff); border-bottom: 0; }
.tz-row.tz-night { background: #f3f1f4; }
.tz-row.tz-night .tz-row-time strong { color: #7b7383; }
.tz-row-name { min-width: 0; }
.tz-row-name strong { display: block; color: #4d4545; font: 800 16px/1.25 var(--font); overflow-wrap: anywhere; }
.tz-row-name span { display: block; margin-top: 3px; color: #998a8a; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.tz-row-time { text-align: right; }
.tz-row-time strong { display: block; color: var(--bg); font: 800 24px/1.1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-row-time span { display: block; color: #8a7b7b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tz-row-diff { color: #8a7b7b; font-size: 13px; font-weight: 800; text-align: right; white-space: nowrap; }
.tz-row-x { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #8a7b7b; background: transparent; font-size: 20px; line-height: 1; }
button.tz-row-x:hover { color: var(--bg); background: #f3eeec; }
.tz-add { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.tz-add .field { flex: 1; min-width: 0; }
.tz-add .btn-solid { min-height: 46px; }

/* World clock */
.tz-world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tz-wc { min-width: 0; padding: 16px; border-radius: 7px; color: #fff; background: var(--panel); text-align: left; transition: background .3s ease; }
.tz-wc-local { background: var(--panel-strong); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.tz-wc.tz-night { background: rgba(0,0,0,.16); }
.tz-wc header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.tz-wc h3 { margin: 0; font: 800 16px/1.25 var(--font); overflow-wrap: anywhere; }
.tz-wc-x { flex: none; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; color: rgba(255,255,255,.75); background: transparent; font-size: 19px; line-height: 1; }
.tz-wc-x:hover { color: #fff; background: rgba(255,255,255,.16); }
.tz-wc-time { margin: 10px 0 4px; font: 800 clamp(32px, 4.6vw, 42px)/1 var(--font); letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-wc-time small { margin-left: 2px; color: rgba(255,255,255,.7); font-size: .42em; letter-spacing: 0; }
.tz-wc-date { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; }
.tz-wc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 800; }
.tz-world-bar { margin-top: 16px; }
.tz-world-bar .tz-add { margin: 0 0 12px; }
.tz-world-bar .btn.sm { min-height: 46px; box-shadow: 0 4px 0 rgba(235,235,235,.95); }
.tz-world .tz-wc:fullscreen { background: var(--bg); }

/* UTC */
.tz-utc-time { margin-bottom: 10px; white-space: nowrap; }
.tz-utc-time small { font-size: .42em; letter-spacing: 0; opacity: .75; }
.tz-iso { margin: 16px 0 8px; }
.tz-iso code, .tz-dtg code { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 5px; background: rgba(0,0,0,.14); font: 700 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* Zulu */
.tz-dtg { margin: 0; }
.tz-dtg span { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; }
.tz-zulu .tool-panel .chips { justify-content: flex-start; margin-bottom: 14px; }
.data-table tr.tz-hl td { background: color-mix(in srgb, var(--bg) 12%, #fff); }

/* How many time zones */
.tz-count-stats { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tz-offsets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.tz-off { padding: 5px 9px; border-radius: 4px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tz-off.odd { background: rgba(0,0,0,.2); }

/* DST */
.tz-dst-status { margin: 10px 0 12px; }
.tz-dst-next { max-width: 520px; margin: 0 auto; color: rgba(255,255,255,.88); font-size: 15px; font-weight: 700; line-height: 1.5; }
.tz-dst .tool-panel .chips { justify-content: flex-start; margin-bottom: 12px; }
.tz-dst .tool-panel .data-table { font-size: 14px; }

@media (max-width: 640px) {
  .tz-clocks { grid-template-columns: 1fr; gap: 8px; }
  .tz-gap { flex-direction: row; gap: 10px; min-width: 0; padding: 4px 0; }
  .tz-gap span { margin-top: 0; }
  .tz-row { grid-template-columns: minmax(0, 1fr) auto 28px; gap: 6px 8px; padding: 10px 6px; }
  .tz-row-diff { grid-column: 2; grid-row: 2; }
  .tz-row-x { grid-column: 3; grid-row: 1; width: 28px; height: 28px; }
  .tz-row-time strong { font-size: 20px; }
  .tz-world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tz-wc { padding: 12px; }
  .tz-wc-time { font-size: 28px; }
  .tz-add { flex-wrap: wrap; }
  .tz-add .btn-solid, .tz-add .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tz-wc { transition: none; }
}

/* Keep native date/time inputs from overflowing narrow grids */
.tz-pair .field, .tz-tzc .field, .tz-zulu .field, .tz-add .field { min-width: 0; }
.tz-pair .field input, .tz-tzc .field input, .tz-zulu .field input { min-width: 0; }

/* ---- sky-clocks.css ---- */
/* Clocks (.clk-) and Sun & Sky (.sky-) tools */

/* ---------- Clocks ---------- */
.clk-card { padding-top: 30px; }
.clk-big { margin: 10px 0 8px; font: 700 clamp(58px, 15vw, 132px)/1 var(--font); letter-spacing: -3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clk-big.md { font-size: clamp(46px, 12vw, 84px); letter-spacing: -2px; }
.clk-ampm { margin-left: .18em; font-size: .3em; letter-spacing: 0; vertical-align: .9em; opacity: .85; }
.clk-ampm:empty { display: none; }
.clk-date { margin: 0 0 18px; color: rgba(255,255,255,.82); font-size: 17px; font-weight: 700; }
.clk-opts { margin-top: 10px; }
.clk-next { min-height: 20px; margin: -6px 0 0; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 700; }
.clk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clk-left { justify-content: flex-start; }
.tool-card:fullscreen .clk-big { font-size: min(20vw, 40vh); }
.tool-card:fullscreen .clk-date { font-size: min(4vw, 30px); }

/* Seven-segment digital clock */
.clk-digital { --clk-led: #ff4d4d; }
.clk-led-wrap { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 12px auto 14px; padding: clamp(14px, 3vw, 26px) clamp(10px, 3vw, 28px); max-width: 100%; border-radius: 10px; background: #12100f; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), inset 0 8px 30px rgba(0,0,0,.6); --u: clamp(5px, 1.45vw, 13px); }
.clk-face { display: flex; align-items: center; gap: calc(var(--u) * .9); }
.clk-digit { position: relative; flex: none; width: calc(var(--u) * 5.4); height: calc(var(--u) * 10); transform: skewX(-6deg); }
.clk-s { position: absolute; border-radius: calc(var(--u) * .5); background: var(--clk-led); opacity: .07; transition: opacity .12s; }
.clk-s.on { opacity: 1; box-shadow: 0 0 calc(var(--u) * 1.2) color-mix(in srgb, var(--clk-led) 70%, transparent); }
.clk-a, .clk-d, .clk-g { left: calc(var(--u) * .7); right: calc(var(--u) * .7); height: var(--u); }
.clk-a { top: 0; } .clk-g { top: calc(50% - var(--u) / 2); } .clk-d { bottom: 0; }
.clk-b, .clk-c, .clk-e, .clk-f { width: var(--u); height: calc(50% - var(--u) * .5); }
.clk-b, .clk-f { top: calc(var(--u) * .5); } .clk-c, .clk-e { bottom: calc(var(--u) * .5); }
.clk-b, .clk-c { right: 0; } .clk-e, .clk-f { left: 0; }
.clk-colon { display: grid; gap: calc(var(--u) * 2.4); }
.clk-colon i { width: var(--u); height: var(--u); border-radius: 50%; background: var(--clk-led); box-shadow: 0 0 calc(var(--u) * 1.2) var(--clk-led); }
.clk-led-wrap .clk-ampm { color: var(--clk-led); font: 800 calc(var(--u) * 2.2)/1 var(--font); margin: 0 0 0 4px; vertical-align: 0; opacity: .95; }
.clk-plain { display: none; color: var(--clk-led); font: 700 clamp(52px, 13vw, 120px)/1 var(--font); letter-spacing: -2px; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 18px color-mix(in srgb, var(--clk-led) 55%, transparent); }
.clk-digital[data-look="plain"] .clk-face { display: none; }
.clk-digital[data-look="plain"] .clk-plain { display: block; }
.clk-digital[data-look="plain"] .clk-ampm { font-size: clamp(16px, 3vw, 26px); }
.clk-swatches { margin-top: 10px; }
.clk-swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--sw) !important; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.clk-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, inset 0 0 0 2px rgba(0,0,0,.25); }
.tool-card:fullscreen .clk-led-wrap { --u: min(2.6vw, 5vh); }
.tool-card:fullscreen .clk-plain { font-size: min(22vw, 40vh); }

/* Analog + teaching clock */
.clk-svg { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 8px; touch-action: none; user-select: none; -webkit-user-select: none; }
.clk-dial { fill: #fff; stroke: rgba(0,0,0,.08); stroke-width: 2; }
.clk-tick { stroke: #b9adab; stroke-width: 1; stroke-linecap: round; }
.clk-tick-b { stroke: #5d5252; stroke-width: 2.6; stroke-linecap: round; }
.clk-num { fill: #4d4545; font: 800 15px var(--font); text-anchor: middle; dominant-baseline: central; }
.clk-num.roman { font-size: 12px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.clk-hand-h { stroke: #3f3838; stroke-width: 6; stroke-linecap: round; }
.clk-hand-m { stroke: #5d5252; stroke-width: 4; stroke-linecap: round; }
.clk-hand-s { stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.clk-hub { fill: #3f3838; }
.clk-hub-s { fill: var(--bg); }
.clk-analog-dig { margin: 6px 0 4px; }
.tool-card:fullscreen .clk-svg { width: min(80vw, 76vh); }
.clk-teach-svg .clk-hand-h { stroke: var(--bg); stroke-width: 8; }
.clk-teach-svg .clk-hand-m { stroke: #3f3838; stroke-width: 5; }
.clk-hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; cursor: grab; outline: none; }
.clk-hit:focus-visible { stroke: rgba(255,210,80,.45); }
.clk-teach-svg.dragging .clk-hit { cursor: grabbing; }
.clk-minlabel { fill: rgba(255,255,255,.85); font: 800 9px var(--font); text-anchor: middle; dominant-baseline: central; }
.clk-teach-read { display: grid; gap: 4px; min-height: 30px; margin-bottom: 8px; }
.clk-teach-dig { font: 800 clamp(34px, 8vw, 48px)/1 var(--font); font-variant-numeric: tabular-nums; }
.clk-words { color: rgba(255,255,255,.85); font: 800 20px/1.3 var(--font); }
.clk-steps .btn-ghost { min-width: 0; padding: 8px 11px; }
.clk-quiz .clk-task { margin: 14px 0 10px; font-size: 18px; line-height: 1.4; }
.clk-quiz .clk-task strong { color: var(--bg); font: 800 26px var(--font); }
.clk-quiz .clk-task span { color: #8a7b7b; font-size: 15px; }
.clk-feedback { min-height: 22px; margin: 12px 0 0; font-weight: 800; }
.clk-feedback.ok { color: #2f7d4a; }
.clk-feedback.no { color: #b2493c; }

/* Alarm clock */
.clk-ring { margin-top: 18px; padding: 20px 14px; border-radius: 7px; background: rgba(0,0,0,.18); animation: clk-pulse 1.2s ease-in-out infinite; }
.clk-ring[hidden] { display: none; }
.clk-ring-icon { display: block; font-size: 40px; line-height: 1; }
.clk-ring strong { display: block; margin-top: 8px; font: 800 26px/1.2 var(--font); overflow-wrap: anywhere; }
.clk-ring > span { display: block; margin: 4px 0 8px; color: rgba(255,255,255,.8); font-weight: 700; }
.clk-snooze-sel select { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 4px; color: #4d4545; font-weight: 700; }
@keyframes clk-pulse { 50% { background: rgba(0,0,0,.3); } }
.clk-quick { justify-content: flex-start; align-items: center; margin: 14px 0 4px; }
.clk-quick > span { color: #8a7b7b; font-size: 13px; font-weight: 800; }
.clk-fmt { margin-left: auto; }
.clk-list { margin: 16px 0 0; padding: 0; list-style: none; }
.clk-alarm { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0e8e5; }
.clk-alarm > div { flex: 1; min-width: 0; }
.clk-alarm strong { display: block; color: var(--bg); font: 800 26px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.clk-alarm span { display: block; overflow: hidden; color: #8a7b7b; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.clk-alarm.off strong { color: #b5aaa8; }
.clk-empty { padding: 12px 0; border-top: 1px solid #f0e8e5; color: #8a7b7b; font-size: 14px; }
.clk-switch { position: relative; flex: none; width: 46px; height: 26px; }
.clk-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.clk-switch i { position: absolute; inset: 0; border-radius: 13px; background: #ddd3d0; pointer-events: none; transition: background .15s; }
.clk-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.clk-switch input:checked + i { background: var(--bg); }
.clk-switch input:checked + i::after { transform: translateX(20px); }
.clk-switch input:focus-visible + i { outline: 2px solid var(--bg); outline-offset: 2px; }
.clk-del { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #8a7b7b; background: #f4f0ee; font-size: 20px; line-height: 1; }
.clk-del:hover { color: #fff; background: #b2493c; }
.tool-panel input[type="range"] { padding: 0; accent-color: var(--bg); }

/* ---------- Sun & Sky ---------- */
.sky-hero .display-label { overflow-wrap: anywhere; }
.sky-hero-label { margin: 12px 0 0; font: 800 20px/1.2 var(--font); }
.sky-time { margin: 8px 0 10px; }
.sky-time.sm { white-space: normal; }
.sky-sub { min-height: 21px; margin: 0; color: rgba(255,255,255,.85); font-size: 15px; font-weight: 700; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sky-hero .stat-grid { margin-top: 18px; }
.sky-hero .stat-grid strong { font-size: 20px; }
.sky-hero .stat-grid:empty { display: none; }
.sky-hero .stat-grid strong { overflow-wrap: normal; }

.sky-bar { margin-top: 20px; text-align: left; }
.sky-bar:empty { display: none; }
.sky-bar-track { position: relative; height: 34px; overflow: hidden; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.sky-bar-track svg { display: block; width: 100%; height: 100%; }
.sky-now { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.sky-bar-ticks { position: relative; height: 18px; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }
.sky-bar-ticks span { position: absolute; top: 0; white-space: nowrap; }
.sky-bar-ticks span:not(:first-child) { transform: translateX(-50%); }
.sky-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.sky-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.sky-loc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.sky-loc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sky-daystep { display: inline-flex; gap: 6px; }
.sky-daystep .btn-solid { min-width: 44px; padding: 10px 14px; }
.sky-manual { margin-top: 14px; border-top: 1px solid #f0e8e5; }
.sky-manual summary { padding: 12px 0 4px; color: var(--bg); font-size: 14px; font-weight: 800; cursor: pointer; }
.sky-manual .field-grid { margin: 10px 0 12px; }
.sky-manual select { min-width: 0; }

.sky-table td:not(:first-child) { text-align: right; }
.sky-nowrap { white-space: nowrap; }
.sky-table thead th:not(:first-child) { text-align: right; }
.sky-table td em { color: #8a7b7b; font-style: normal; font-weight: 700; }
.sky-table small { color: #998a8a; font-weight: 700; }
.sky-table tr.sky-hl td { background: color-mix(in srgb, var(--bg) 10%, #fff); }
.sky-table tr.sky-hl td strong { color: var(--bg); }
.sky-h2-gap { margin-top: 24px !important; }
.sky-mini { display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -6px; }
.sky-mini svg { display: block; }

/* Moon */
.sky-moon { display: grid; place-items: center; margin: 16px 0 6px; }
.sky-moon-svg { max-width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(255,250,225,.18)); }
.sky-moon-hero .big-display { margin: 8px 0 8px; }
.sky-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sky-cal-head h2 { margin: 0 !important; text-align: center; }
.sky-cal-head .btn-solid { min-width: 44px; }
.sky-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sky-cal-h { padding: 4px 0; color: #998a8a; font-size: 12px; font-weight: 800; text-align: center; }
.sky-cal-day { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 6px 2px; border-radius: 6px; background: #f8f4f2; text-align: center; }
.sky-cal-day b { color: #6b6060; font-size: 12px; }
.sky-cal-day svg { width: 26px; height: 26px; filter: none; }
.sky-cal-day small { overflow: hidden; max-width: 100%; color: #998a8a; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sky-cal-ev { background: color-mix(in srgb, var(--bg) 14%, #fff); }
.sky-cal-ev small { color: var(--bg); font-weight: 800; }
.sky-cal-today { box-shadow: inset 0 0 0 2px var(--bg); }

@media (max-width: 560px) {
  .sky-loc-grid { grid-template-columns: 1fr; }
  .sky-hero .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sky-hero .stat-grid strong { font-size: 17px; }
  .sky-cal-day small { font-size: 9px; }
  .clk-fmt { margin-left: 0; }
  .clk-steps { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .clk-ring { animation: none; }
  .clk-s { transition: none; }
}
.sky-moon-hero .stat-grid strong { font-size: 22px; white-space: nowrap; }

/* ---- timers.css ---- */
/* ---------- Timers group (.tm-) ---------- */
.tm-card { padding-top: 22px; }
.tm-time {
  margin: 16px 0 18px;
  font: 700 clamp(70px, 14vw, 116px)/.95 var(--font);
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tm-time-xl { margin: 18px 0 21px; font-size: clamp(76px, 14vw, 120px); letter-spacing: -5px; }
.tm-status { min-height: 1.4em; margin: 0 0 14px; color: rgba(255,255,255,.86); font-size: 16px; font-weight: 700; line-height: 1.4; }
.tm-actions { margin-top: 4px; }
.tm-presets { margin: 0 34px 4px; }
.tm-opt-label { margin: 0 0 8px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.tm-options { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.tm-options .tm-presets { margin: 0 0 14px; }
.tm-custom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.tm-custom .btn-ghost { min-height: 46px; }
.tm-fields { margin-top: 4px; }
.tm-toggles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 14px; }
.tm-sound { min-width: 92px; }
.tm-sound[aria-pressed="false"] { opacity: .7; }
.tm-keys kbd, .copy-block kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font: 700 12px/1.5 var(--body-font);
  color: inherit;
  background: rgba(255,255,255,.16);
}
.copy-block kbd { font-size: .85em; color: #5d5252; background: #f3eeec; box-shadow: 0 1px 0 #e3d9d5; }
.tm-dim { opacity: .45; pointer-events: none; }
.tm-count { margin: 12px 0 0; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 700; }
.tm-count strong { color: #fff; font-size: 18px; }
.tm-label-input { display: block; margin: 0 34px 14px; }
.tm-label-input .input { text-align: center; color: #fff; background: rgba(0,0,0,.12); font-weight: 800; }
.tm-label-input .input::placeholder { color: rgba(255,255,255,.6); }
.tm-label-input .input:focus { outline: 3px solid rgba(255,255,255,.35); }
.tm-msg-field { min-width: 210px; flex: 1 1 210px; }

/* states */
.tm-card.tm-done .tm-status { color: #fff; font: 800 clamp(20px, 4vw, 26px)/1.3 var(--font); }
.tm-card.tm-done .tm-time { animation: tm-blink 1s ease-in-out 3; }
.tm-card.tm-warned .tm-time { color: #ffe08a; }
.tm-card.tm-hurry .tm-time { color: #ffe08a; }
@keyframes tm-blink { 50% { opacity: .35; } }

/* progress ring */
.tm-ring-face { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 16px auto 14px; display: grid; place-items: center; }
.tm-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-ring circle { fill: none; stroke-width: 5; }
.tm-ring-track { stroke: rgba(255,255,255,.16); }
.tm-ring-fill { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.tm-ring-face .tm-time { position: relative; margin: 0; font-size: clamp(54px, 14vw, 84px); letter-spacing: -3px; }

/* progress bar */
.tm-bar { height: 8px; margin: 0 0 16px; overflow: hidden; border-radius: 9px; background: rgba(0,0,0,.16); }
.tm-bar span { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left center; transform: scaleX(1); }
.tm-bar-thin { height: 4px; margin: 18px 0 0; }

/* visual (pie) */
.tm-pie-face { width: min(340px, 100%); margin: 14px auto 6px; }
.tm-pie { display: block; width: 100%; height: auto; }
.tm-pie-bg { fill: rgba(255,255,255,.14); }
.tm-pie-fill { fill: var(--tm-pie, #e53935); }
.tm-pie-ticks line { stroke: rgba(255,255,255,.55); stroke-width: 2.5; stroke-linecap: round; }
.tm-pie-hub { fill: #fff; }
.tm-visual .tm-time { margin-top: 8px; font-size: clamp(48px, 11vw, 72px); letter-spacing: -2px; }
.tm-visual.tm-hide-num .tm-time { visibility: hidden; height: 0; margin: 0; }
.tm-colors { gap: 8px; }
.tm-swatch { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--sw) !important; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); }
.tm-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(255,255,255,.95); }

/* pomodoro */
.tm-tabs { flex-wrap: wrap; margin: 0 34px; }
.tm-pomo-actions { position: relative; display: flex; align-items: center; justify-content: center; min-height: 67px; }
.tm-start-xl { width: 200px; min-height: 61px; font-size: 22px; }
.tm-skip {
  position: absolute;
  left: calc(50% + 112px);
  padding: 10px 8px;
  border: 0;
  color: rgba(255,255,255,.76);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: color .15s ease, transform .15s ease;
}
.tm-skip span { font-size: 21px; vertical-align: -2px; }
.tm-skip:hover { color: #fff; transform: translateX(2px); }
.tm-round { margin: 18px 0 0; }
.tm-round span { display: block; color: rgba(255,255,255,.6); font-size: 15px; }
.tm-round strong { display: block; margin-top: 3px; font-size: 18px; }
.tm-today { margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }
.tm-settings { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); text-align: left; }
.tm-settings summary { width: fit-content; margin: 0 auto; padding: 6px 12px; border-radius: 4px; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.tm-settings summary::-webkit-details-marker { display: none; }
.tm-settings summary::after { content: " ▾"; font-size: 11px; }
.tm-settings[open] summary::after { content: " ▴"; }
.tm-settings summary:hover { background: rgba(255,255,255,.12); }
.tm-settings .field-grid { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

/* quiz */
.tm-q { margin: 0 34px; color: rgba(255,255,255,.86); font: 800 17px/1.35 var(--font); }
.tm-quiz .tm-time { font-size: clamp(80px, 18vw, 140px); }
.tm-quiz .tm-actions .btn-ghost { min-height: 46px; }

/* jeopardy */
.tm-jeo { background: rgba(0,0,40,.18); }
.tm-lights { display: flex; gap: 6px; max-width: 420px; margin: 22px auto 0; }
.tm-lights span { flex: 1; height: 18px; border-radius: 3px; background: rgba(255,255,255,.12); transition: background .12s ease, box-shadow .12s ease; }
.tm-lights span.on { background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.75); }
.tm-jeo .tm-time { font-size: clamp(96px, 24vw, 170px); }
.tm-jeo.tm-done .tm-lights span { background: rgba(255,90,90,.5); }

/* turns / chess clock */
.tm-turn-info { margin: 0 34px 14px; color: rgba(255,255,255,.88); font: 800 16px/1.35 var(--font); }
.tm-players { display: grid; grid-template-columns: repeat(var(--tm-cols, 2), minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tm-player {
  min-height: 118px;
  padding: 14px 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--pc);
  opacity: .55;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.tm-player:hover { opacity: .75; }
.tm-player.active { opacity: 1; transform: scale(1.02); box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(0,0,0,.25); }
.tm-pname { overflow: hidden; font: 800 15px/1.2 var(--font); text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tm-ptime { font: 800 clamp(28px, 6vw, 46px)/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -1px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tm-psub { min-height: 1.2em; font-size: 12px; font-weight: 700; opacity: .9; }
.tm-player.tm-flag { background: #b3261e; }
.tm-player.tm-flag .tm-psub { font-weight: 800; }
.tm-setup .tm-mode-chips { justify-content: flex-start; margin-bottom: 14px; }
.tm-setup .tm-toggles { justify-content: flex-start; }
.tm-names-title { margin-top: 18px !important; font-size: 15px !important; }
.tm-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tm-name-row { display: grid; grid-template-columns: 46px 1fr; gap: 6px; }
.tm-name-row input[type="color"] { width: 46px; height: 46px; padding: 3px; border: 0; border-radius: 5px; background: #f4f0ee; cursor: pointer; }
.tm-name-row .input { min-height: 46px; padding: 10px 12px; border: 0; border-radius: 5px; color: #4d4545; background: #f4f0ee; font-size: 16px; font-weight: 700; }
.tm-turns [hidden] { display: none !important; }

/* stopwatch */
.tm-sw-time .tm-hs { font-size: .42em; letter-spacing: -1px; opacity: .85; }
.tm-laps { max-height: 340px; margin-top: 18px; overflow-y: auto; border-radius: 7px; background: rgba(0,0,0,.1); }
.tm-laps .data-table th { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.tm-laps .data-table td { color: #fff; border-color: rgba(255,255,255,.1); }
.tm-laps .data-table small { margin-left: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; opacity: .85; }
.tm-laps tr.tm-fast td { color: #b9f6ca; }
.tm-laps tr.tm-slow td { color: #ffcdd2; }
.tm-copy { margin-top: 12px; }

/* presentation */
.tm-pres { transition: background-color .5s ease, color .5s ease; }
.tm-pres[data-phase="green"], .tm-pres[data-phase="green"]:fullscreen { background: #2e8b57; }
.tm-pres[data-phase="yellow"], .tm-pres[data-phase="yellow"]:fullscreen { color: #3b2f05; background: #e7b416; }
.tm-pres[data-phase="red"], .tm-pres[data-phase="red"]:fullscreen { background: #cc3b3b; }
.tm-pres[data-phase="over"], .tm-pres[data-phase="over"]:fullscreen { background: #a51f1f; animation: tm-pulse 1.6s ease-in-out infinite; }
@keyframes tm-pulse { 50% { background-color: #c62828; } }
.tm-phase { margin: 0 34px; font: 800 20px/1.3 var(--font); letter-spacing: .3px; text-transform: uppercase; }
.tm-pres .tm-time { font-size: clamp(80px, 17vw, 140px); }
.tm-pres[data-phase="yellow"] .tm-status, .tm-pres[data-phase="yellow"] .field, .tm-pres[data-phase="yellow"] .tool-note { color: rgba(59,47,5,.8); }
.tm-pres[data-phase="yellow"] .btn-ghost, .tm-pres[data-phase="yellow"] .chip, .tm-pres[data-phase="yellow"] .fullscreen-button { color: #3b2f05; background: rgba(0,0,0,.1); }
.tm-pres[data-phase="yellow"] .chip.active { background: rgba(0,0,0,.2); }
.tm-pres[data-phase="yellow"] .tm-options { border-color: rgba(0,0,0,.14); }
.tm-pres[data-phase="yellow"] .tm-keys kbd { background: rgba(0,0,0,.1); }

/* video */
.tm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: var(--tm-stage-fg, #fff);
  background: var(--tm-stage-bg, var(--bg));
  container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.tm-stage-time { font: 700 calc(var(--tm-scale, 22) * 1cqw)/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; }
.tm-stage .fullscreen-button { color: currentColor; opacity: .55; }
.tm-show {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,.55);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}
.tm-video.tm-clean .tm-show { display: block; }
.tm-video.tm-clean .tm-stage:hover .tm-show, .tm-show:focus-visible { opacity: 1; }
.tm-video.tm-clean [data-controls], .tm-video.tm-clean .tm-stage .fullscreen-button { display: none; }
.tm-stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.tm-stage:fullscreen .fullscreen-button { opacity: 0; }
.tm-stage:fullscreen:hover .fullscreen-button { opacity: .55; }
.tm-video-controls { margin-top: 16px; }
.tm-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 12px; }
.tm-video-grid .chips { justify-content: flex-start; }
.tm-video-grid > div { text-align: left; }
.tm-video .field input[type="range"] { padding: 0 4px; accent-color: #fff; background: transparent; }

/* rubik's cube */
.tm-scramble-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0 34px; }
.tm-scramble { margin: 0; font: 700 clamp(17px, 3.4vw, 22px)/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-spacing: 3px; }
.tm-pad {
  margin: 16px 0 8px;
  padding: 18px 10px 10px;
  border-radius: 7px;
  background: rgba(0,0,0,.08);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}
.tm-pad:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.tm-cube-time { margin: 8px 0 14px; font-size: clamp(72px, 16vw, 150px); transition: color .08s ease; }
.tm-pad[data-phase="holding"] .tm-cube-time, .tm-pad[data-phase="inspHolding"] .tm-cube-time { color: #ff8a80; }
.tm-pad[data-phase="ready"] .tm-cube-time, .tm-pad[data-phase="inspReady"] .tm-cube-time { color: #69f0ae; }
.tm-pad[data-phase="inspecting"] .tm-cube-time { color: #ffe08a; }
.tm-cube-stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); margin-top: 0; }
.tm-times-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 8px; }
.tm-times-head h2 { margin: 0 !important; }
.tm-times-head .btn-solid { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.tm-times { max-height: 360px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.tm-times li { display: flex; align-items: center; gap: 6px; padding: 8px 2px; border-bottom: 1px solid #f0e8e5; font-variant-numeric: tabular-nums; }
.tm-times li:last-child { border-bottom: 0; }
.tm-times li.tm-best .tm-solve-t { color: var(--bg); }
.tm-times .tm-empty { justify-content: center; color: #998a8a; font-size: 14px; }
.tm-solve-n { min-width: 2.2em; color: #a79797; font-size: 13px; font-weight: 700; }
.tm-solve-t { flex: 1; color: #4d4545; font-size: 17px; font-weight: 800; }
.tm-solve-t small { color: #a79797; font-weight: 700; }
.tm-mini { min-width: 38px; min-height: 30px; padding: 3px 8px; border: 1px solid #eadfdb; border-radius: 4px; color: #7a6d6d; background: #fff; font-size: 12px; font-weight: 800; }
.tm-mini:hover { border-color: var(--bg); color: var(--bg); }
.tm-mini[aria-pressed="true"] { border-color: var(--bg); color: #fff; background: var(--bg); }

/* ---------- Fullscreen ---------- */
.tm-card:fullscreen { overflow-y: auto; padding: 32px; }
.tm-card:fullscreen .tm-options, .tm-card:fullscreen .tm-keys, .tm-card:fullscreen .tm-settings, .tm-card:fullscreen .tm-today { display: none; }
.tm-card:fullscreen .tm-time { font-size: min(24vw, 40vh); }
.tm-card:fullscreen .tm-ring-face { width: min(72vh, 86vw); }
.tm-card:fullscreen .tm-ring-face .tm-time { font-size: min(15vw, 17vh); }
.tm-card:fullscreen .tm-pie-face { width: min(62vh, 86vw); }
.tm-card:fullscreen.tm-visual .tm-time { font-size: min(10vw, 12vh); }
.tm-card:fullscreen .tm-bar { width: min(900px, 90vw); }
.tm-card:fullscreen .tm-status { font-size: min(4vw, 30px); }
.tm-card:fullscreen .tm-label-input { width: min(700px, 90vw); }
.tm-card:fullscreen .tm-label-input .input { font-size: min(5vw, 40px); min-height: 0; }
.tm-card:fullscreen .tm-players { width: 100%; max-width: 1400px; }
.tm-card:fullscreen .tm-player { min-height: 26vh; }
.tm-card:fullscreen .tm-ptime { font-size: min(9vw, 11vh); }
.tm-card:fullscreen .tm-pname { font-size: min(4vw, 30px); }
.tm-card:fullscreen .tm-cube-time { font-size: min(22vw, 36vh); }
.tm-card:fullscreen .tm-pad { width: 100%; }
.tm-card:fullscreen .tm-laps { width: min(700px, 90vw); }

@media (max-width: 480px) {
  .tm-time { letter-spacing: -3px; }
  .tm-start-xl { width: 170px; min-height: 56px; }
  .tm-skip { left: calc(50% + 90px); }
  .tm-custom { grid-template-columns: 1fr 1fr; }
  .tm-custom .btn-ghost { grid-column: 1 / -1; }
  .tm-actions .btn { min-width: 120px; }
  .tm-player { min-height: 100px; }
  .tm-scramble-row, .tm-turn-info, .tm-q, .tm-phase, .tm-presets, .tm-tabs, .tm-label-input { margin-left: 30px; margin-right: 30px; }
  .tm-options .tm-presets { margin-left: 0; margin-right: 0; }
}
@media (max-width: 360px) {
  .tm-skip { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-card.tm-done .tm-time, .tm-pres[data-phase="over"] { animation: none; }
  .tm-player, .tm-pres, .tm-lights span { transition: none; }
}
@media (max-width: 420px) {
  .tm-tabs { flex-wrap: nowrap; gap: 2px; margin: 30px 0 0 !important; }
  .tm-tabs .mode-tab { padding: 6px 7px; font-size: 13px; white-space: nowrap; }
}
