:root {
  --bg: #100f0e;
  --surface: #191715;
  --raise: #24211e;
  --line: #2f2b27;
  --ink: #efe8de;
  --muted: #9b9389;
  --faint: #6c655d;
  --accent: #ff5b38;
  --accent-ink: #1a0905;
  --accent-soft: #3a1d15;
  --ok: #8fd18a;
  --f-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-ja: "Zen Kaku Gothic New", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 69px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--f-ui);
  font-variation-settings: "wdth" 100;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

button, input, select { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

code, kbd { font-family: var(--f-mono); font-size: 0.86em; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; }

h2 {
  font-size: 22px;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--top-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }

.mark {
  font-size: 26px;
  font-weight: 850;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mark-ja { font-family: var(--f-ja); color: var(--accent); font-size: 15px; }

.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }

.search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.search input:focus { border-color: var(--accent); }

.search input::-webkit-search-cancel-button { display: none; }

.search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.sug {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 5px;
  text-decoration: none;
}

.sug img, .sug .ph { width: 38px; height: 54px; object-fit: cover; border-radius: 3px; background: var(--raise); display: block; }

.sug b { display: block; font-weight: 650; font-size: 14px; line-height: 1.25; }

.sug small { color: var(--muted); font-size: 12px; }

.sug[aria-selected="true"], .sug:hover { background: var(--raise); }

.sug-all { display: block; padding: 8px 6px 4px; color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }

.hdr { flex: none; }

.view { padding: 28px var(--gutter) 80px; max-width: 1480px; margin: 0 auto; }

.shelf + .shelf { margin-top: 44px; }

.shelf[hidden] + .shelf { margin-top: 0; }

.shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }

.hint { color: var(--faint); font-size: 13px; }

.hometabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.hometabs button {
  flex: none;
  padding: 0 0 10px;
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 21px;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.hometabs button:hover { color: var(--ink); }

.hometabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.tab-hint { margin: 0 0 16px; }

.genres button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.more-row { display: flex; justify-content: center; margin-top: 28px; }

.more-row .btn { min-width: 180px; height: 42px; }

.days { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 18px; padding-bottom: 4px; scrollbar-width: none; }

.days button {
  flex: none;
  height: 34px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.days button span { color: var(--faint); font: 500 12px var(--f-mono); margin-left: 6px; }

.days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.days button[aria-pressed="true"] span { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px 18px;
}

.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 180px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.card { display: block; text-decoration: none; min-width: 0; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--tint, var(--raise));
  border-radius: 4px;
  overflow: hidden;
}

.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }

.card:hover .poster img { transform: scale(1.035); }

.card.dim .poster img { filter: saturate(0.35) brightness(0.7); }

.card:focus-visible { outline: none; }

.card:focus-visible .poster { outline: 2px solid var(--accent); outline-offset: 2px; }

.badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 3px;
  font: 600 11.5px/1.5 var(--f-mono);
}

.tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  font: 700 10.5px/1.6 var(--f-mono);
  letter-spacing: 0.02em;
}

.tag.jp { background: var(--accent); color: var(--accent-ink); }

.tag.dub { background: var(--bg); color: var(--muted); }

.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, 0.6); }

.card-progress i { display: block; height: 100%; background: var(--accent); }

.card-title {
  margin-top: 10px;
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card-title { color: var(--accent); }

.card-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.card-meta b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }

.skel .poster { animation: pulse 1.4s ease-in-out infinite; background: var(--surface); }

.skel .card-title { height: 14px; width: 80%; background: var(--surface); border-radius: 3px; }

@keyframes pulse { 50% { opacity: 0.55; } }

.empty { color: var(--muted); padding: 40px 0; }

.error { color: #ffb4a3; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--faint); }

.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn.primary:hover { filter: brightness(1.08); }

.btn.ghost { background: transparent; }

.btn.big { height: 46px; padding: 0 22px; font-size: 15.5px; }

.btn.wide { width: 100%; margin-top: 8px; }

.btn:disabled { opacity: 0.55; cursor: progress; }

.select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
}

.banner {
  height: clamp(130px, 21vw, 290px);
  margin: -28px calc(-1 * var(--gutter)) 0;
  background: var(--tint, var(--raise));
  overflow: hidden;
}

.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.banner + .detail .detail-poster { margin-top: calc(-1 * clamp(60px, 8vw, 120px)); position: relative; box-shadow: 0 0 0 4px var(--bg); }

.banner + .detail { margin-top: 0; }

.detail {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  grid-template-areas: "poster head" "poster syn";
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.banner + .detail .detail-head { padding-top: 24px; }

.detail-head { grid-area: head; }

.detail-syn { grid-area: syn; }

.detail-poster { grid-area: poster; aspect-ratio: 2 / 3; background: var(--tint, var(--raise)); border-radius: 5px; overflow: hidden; }

.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 850;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.alt { margin: 10px 0 0; color: var(--muted); }

.alt [lang="ru"] { color: var(--faint); }

.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; }

.facts li b { font-family: var(--f-mono); font-weight: 600; margin-right: 5px; }

.facts li span { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }

.actions .hint { font-size: 13px; }

.synopsis {
  margin-top: 24px;
  max-width: 68ch;
  color: #d7cfc4;
  white-space: pre-line;
}

.synopsis.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.more { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--accent); cursor: pointer; font-weight: 600; }

.block { margin-top: 44px; }

.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.teams { display: flex; flex-wrap: wrap; gap: 8px; }

.team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 13px;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}

.team b { font-weight: 650; font-size: 14px; }

.team small { color: var(--muted); font-size: 12px; }

.team:hover { border-color: var(--faint); }

.team[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.dubs { margin-top: 12px; }

.dubs summary { cursor: pointer; color: var(--muted); font-size: 14px; }

.dubs .teams { margin-top: 10px; }

.note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; max-width: 70ch; }

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.ep {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font: 600 16px var(--f-mono);
  overflow: hidden;
}

.ep:hover { border-color: var(--accent); color: var(--accent); }

.ep.seen { color: var(--faint); }

.ep.missing { opacity: 0.35; }

.ep.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.ep > i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }

.ep.current > i { background: var(--accent-ink); }

.ai-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.ai-dot.working { background: transparent; border: 1.5px solid var(--ok); animation: pulse 1.2s ease-in-out infinite; }

.eplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 16px; }

.epc { display: block; text-decoration: none; min-width: 0; }

.epc-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--raise);
  border-radius: 4px;
  overflow: hidden;
}

.epc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }

.epc:hover .epc-thumb img { transform: scale(1.03); }

.epc-thumb .ai-dot { top: 8px; right: 8px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--bg); }

.epc-thumb .card-progress { height: 4px; }

.epc-num {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 1px 7px;
  background: var(--bg);
  border-radius: 3px;
  font: 600 12.5px/1.6 var(--f-mono);
}

.epc-title { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.epc:hover .epc-title { color: var(--accent); }

.epc.seen .epc-title { color: var(--muted); }

.epc.missing { opacity: 0.4; }

.legend { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; }

.legend .ai-dot { position: static; }

.watch { background: #000; }

.stage {
  position: relative;
  width: 100%;
  height: min(calc(100vh - var(--top-h)), 56.25vw);
  height: min(calc(100dvh - var(--top-h)), 56.25vw);
  min-height: 220px;
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  --rx: 0px;
  --ry: 0px;
  --rw: 100%;
  --rh: 100%;
  --band-top: 0.8;
  --band-bottom: 0.965;
  --sub-size: 0.045;
}

.stage:fullscreen { height: 100vh; height: 100dvh; }

.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

.stage.idle { cursor: none; }

.veil {
  position: absolute;
  left: var(--rx);
  width: var(--rw);
  top: calc(var(--ry) + var(--rh) * var(--band-top));
  height: calc(var(--rh) * (var(--band-bottom) - var(--band-top)));
  pointer-events: none;
}

.veil.blur { backdrop-filter: blur(11px) saturate(0.7); -webkit-backdrop-filter: blur(11px) saturate(0.7); background: rgba(10, 9, 8, 0.42); }

.veil.solid { background: rgba(6, 6, 6, 0.95); }

.cues {
  position: absolute;
  left: calc(var(--rx) + var(--rw) * 0.06);
  width: calc(var(--rw) * 0.88);
  bottom: calc(100% - var(--ry) - var(--rh) * var(--band-bottom) + var(--rh) * 0.035);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  font-size: max(14px, calc(var(--rh) * var(--sub-size)));
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 0 2px #000, 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.6);
}

.cues.upper { bottom: auto; top: calc(var(--ry) + var(--rh) * 0.04); }

.stage:not(.idle) .cues:not(.upper) { transform: translateY(calc(-1 * var(--lift, 0px))); }

.cues span { display: block; }

.stage.subs-off .cues, .stage.subs-off .signs, .stage.subs-off .veil { display: none; }

.signs { position: absolute; left: var(--rx); top: var(--ry); width: var(--rw); height: var(--rh); pointer-events: none; }

.sign {
  position: absolute;
  max-width: 80%;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 2px #000, 0 0 4px #000;
}

.chip {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 6px 11px 6px 9px;
  background: rgba(16, 15, 14, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.chip.busy i { background: transparent; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }

.chip.warn i { background: var(--accent); }

.stage.idle .chip.quiet { opacity: 0; }

.msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 6;
}

.msg p { margin: 0; max-width: 46ch; }

.msg-actions { display: flex; gap: 10px; }

.spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.2s 0.25s;
  pointer-events: none;
}

.stage.waiting .spinner { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: none;
  z-index: 3;
}

.big-play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }

.stage.paused.ready:not(.waiting) .big-play { display: block; }

.tap {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 74px;
  height: 74px;
  margin-top: -37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 15, 14, 0.7);
  font: 700 17px var(--f-mono);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}

.tap.left { left: 12%; }

.tap.right { right: 12%; }

.tap.on { opacity: 1; transform: scale(1); transition: none; }

.skip {
  position: absolute;
  right: 22px;
  bottom: 92px;
  z-index: 4;
  height: 42px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.skip:hover { background: var(--accent); color: var(--accent-ink); }

.toast {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -8px);
  max-width: 80%;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 8;
}

.toast.on { opacity: 1; transform: translate(-50%, 0); }

.toast button { margin-left: 10px; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; pointer-events: auto; }

.next-card {
  position: absolute;
  right: 22px;
  bottom: 92px;
  z-index: 5;
  display: flex;
  gap: 14px;
  width: min(420px, calc(100% - 44px));
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.next-thumb { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--raise) center / cover; }

.next-thumb:empty { display: flex; align-items: center; justify-content: center; font: 700 22px var(--f-mono); color: var(--muted); }

.next-body { min-width: 0; }

.next-label { margin: 0; color: var(--muted); font-size: 12.5px; }

.next-label b { font-family: var(--f-mono); color: var(--accent); }

.next-title { margin: 2px 0 10px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.next-actions { display: flex; gap: 8px; }

.next-actions .btn { height: 32px; font-size: 13px; }

.drop-hint {
  position: absolute;
  inset: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: rgba(16, 15, 14, 0.75);
  font-size: 20px;
  font-weight: 700;
  z-index: 9;
  pointer-events: none;
}

.bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 14px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(10, 9, 8, 0.82);
  transition: opacity 0.25s, transform 0.25s;
}

.stage.idle .bar { opacity: 0; transform: translateY(8px); pointer-events: none; }

.seek { position: relative; height: 20px; cursor: pointer; touch-action: none; }

.seek-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; overflow: hidden; transition: height 0.12s, top 0.12s; }

.seek:hover .seek-track, .seek.drag .seek-track { top: 6px; height: 6px; }

.seek-buf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, 0.3); }

.seek-ready { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--ok); opacity: 0.8; }

.seek-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }

.seek-marks i { position: absolute; top: 7px; height: 4px; background: rgba(255, 255, 255, 0.55); pointer-events: none; }

.seek-knob {
  position: absolute;
  top: 4px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.12s;
}

.seek:hover .seek-knob, .seek.drag .seek-knob { transform: scale(1); }

.seek-tip {
  position: absolute;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 2px 7px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  font: 600 12px var(--f-mono);
  pointer-events: none;
  white-space: nowrap;
}

.row { display: flex; align-items: center; gap: 4px; }

.grow { flex: 1; }

.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
}

.ic:hover { background: rgba(255, 255, 255, 0.08); }

.ic svg { width: 24px; height: 24px; fill: currentColor; }

.ic text { font: 700 6.6px var(--f-ui); fill: currentColor; }

.ic.small { width: 32px; height: 32px; }

.ic.small svg { width: 18px; height: 18px; }

.stage .i-pause, .stage.paused .i-play { display: block; }

.stage .i-play, .stage.paused .i-pause { display: none; }

.i-muted, .stage.muted .i-vol { display: none; }

.stage.muted .i-muted { display: block; }

.cc { min-width: 30px; font: 700 12px/1 var(--f-mono); padding: 4px 5px; border: 1.6px solid currentColor; border-radius: 3px; text-align: center; }

.stage.has-sub #b-sub { color: var(--accent); }

.stage.has-sub.subs-off #b-sub { color: var(--ink); }

.vol { display: flex; align-items: center; }

.vol input { width: 0; opacity: 0; transition: width 0.18s, opacity 0.18s; accent-color: var(--accent); }

.vol:hover input, .vol:focus-within input { width: 84px; opacity: 1; margin-right: 6px; }

.time { font: 13px var(--f-mono); color: #d8d0c5; margin-left: 6px; white-space: nowrap; }

.quality {
  height: 32px;
  padding: 0 6px;
  margin: 0 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font: 13px var(--f-mono);
}

.quality option, .select option { background: var(--surface); }

.sheet {
  position: absolute;
  z-index: 7;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.ccmenu { right: 12px; bottom: 74px; width: 300px; padding: 14px; }

.sheet-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }

.cc-source { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.cc-source b { color: var(--ink); font-weight: 600; }

.panel {
  right: 12px;
  top: 12px;
  bottom: 74px;
  width: min(370px, calc(100% - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 16px 18px;
}

.drawer {
  right: 12px;
  top: 12px;
  bottom: 74px;
  width: min(380px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  padding: 10px 6px 6px 16px;
}

.drawer .panel-head { padding-right: 8px; }

.drawer-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 8px 0; display: grid; gap: 4px; align-content: start; }

.dep {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  text-decoration: none;
}

.dep:hover { background: var(--raise); }

.dep.current { background: var(--accent-soft); }

.dep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--raise) center / cover; overflow: hidden; display: flex; align-items: center; justify-content: center; font: 700 18px var(--f-mono); color: var(--muted); }

.dep-thumb .card-progress { height: 3px; }

.dep-thumb .ai-dot { top: 4px; right: 4px; }

.dep b { display: block; font: 600 12px var(--f-mono); color: var(--muted); }

.dep span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }

.dep.current span { color: var(--accent); }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; min-height: 36px; }

.sheet h3 { font-size: 17px; font-weight: 800; font-variation-settings: "wdth" 110; }

.sheet h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }

.tabs { display: flex; gap: 2px; }

.tabs button {
  height: 34px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.tabs button[aria-selected="true"] { color: var(--ink); background: var(--raise); }

.pgroup { padding: 14px 0; border-top: 1px solid var(--line); }

[data-pane] > .pgroup:first-child { border-top: 0; padding-top: 8px; }

.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.phint { margin: 8px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.45; }

.phint.first { margin-top: 0; margin-bottom: 10px; }

.sub-status { margin: 0 0 8px; word-break: break-word; }

.sub-status b { color: var(--accent); font-weight: 650; }

.sub-status small { color: var(--muted); }

.sheet .btn { height: 32px; padding: 0 11px; font-size: 13px; }

.offset output { min-width: 62px; text-align: center; font: 600 13.5px var(--f-mono); }

.offset .btn { font-family: var(--f-mono); }

.results { margin-top: 10px; display: grid; gap: 4px; }

.res {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 7px 8px;
  background: var(--raise);
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.35;
}

.res:hover { border-color: var(--accent); }

.res .lang { font: 700 11px var(--f-mono); color: var(--accent); padding-top: 1px; }

.res span { word-break: break-word; }

.res small { display: block; color: var(--faint); }

.res-pick { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px 42px; }

.res-pick .btn { height: 28px; font-size: 12.5px; padding: 0 9px; }

.progress { display: grid; gap: 6px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }

.progress-track { height: 6px; background: var(--raise); border-radius: 3px; overflow: hidden; }

.progress-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.4s; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }

.seg.wide { display: flex; }

.seg.wide button { flex: 1; }

.seg button { height: 34px; padding: 0 14px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; }

.seg button + button { border-left: 1px solid var(--line); }

.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

.slider { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }

.slider input { flex: 1; max-width: 190px; accent-color: var(--accent); }

.watch-info { background: var(--bg); padding: 22px var(--gutter) 80px; }

.watch-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.watch-head .crumb { color: var(--muted); text-decoration: none; font-size: 14px; }

.watch-head .crumb:hover { color: var(--accent); }

.watch-head h1 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 850;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.02em;
}

.watch-head h1 span { color: var(--accent); font-family: var(--f-mono); font-weight: 600; font-size: 0.72em; margin-left: 10px; letter-spacing: 0; }

.ep-title { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.variant { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

.variant select {
  height: 38px;
  padding: 0 10px;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
}

.watch-info .block { margin-top: 28px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 7, 6, 0.82);
  overflow-y: auto;
}

.modal-card {
  width: min(520px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-mark { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; }

.modal-card h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 850; letter-spacing: -0.02em; }

.modal-sub { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.choice button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  background: var(--raise);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.choice b { font-size: 19px; font-weight: 800; font-variation-settings: "wdth" 110; }

.choice small { color: var(--muted); font-size: 12.5px; }

.choice button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }

.switch { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.switch-ui { flex: none; position: relative; width: 40px; height: 24px; margin-top: 1px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); transition: background 0.15s; }

.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }

.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }

.switch input:checked + .switch-ui::after { transform: translateX(16px); background: var(--accent-ink); }

.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

.switch input:disabled ~ * { opacity: 0.5; }

.switch-text b { display: block; font-weight: 700; }

.switch-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.modal-warn { margin: 10px 0 0; color: #ffb4a3; font-size: 13px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 720px) {
  :root { --top-h: 60px; }
  .top { gap: 10px; }
  .mark { font-size: 23px; }
  .search kbd { display: none; }
  .mark-ja { display: none; }
  .modal-mark .mark-ja { display: inline; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 20px 12px; }
  .hometabs { gap: 18px; }
  .hometabs button { font-size: 17px; }
  .detail { grid-template-columns: 116px 1fr; grid-template-areas: "poster head" "syn syn"; column-gap: 16px; }
  .banner + .detail .detail-poster { margin-top: -50px; }
  .banner + .detail .detail-head { padding-top: 14px; }
  .detail h1 { font-size: 24px; }
  .facts { margin-top: 12px; }
  .actions { margin-top: 16px; }
  .eplist { grid-template-columns: 1fr; gap: 10px; }
  .epc { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
  .epc-title { margin-top: 0; }
  .stage { height: 56.25vw; min-height: 0; }
  .stage:fullscreen { height: 100vh; height: 100dvh; }
  .desk { display: none !important; }
  .ic { width: 44px; height: 44px; }
  .time { font-size: 11.5px; margin-left: 2px; }
  .bar { padding: 0 6px 4px; }
  .chip { left: 8px; top: 8px; font-size: 11.5px; padding: 4px 9px 4px 7px; }
  .skip { right: 10px; bottom: 64px; height: 36px; padding: 0 12px; font-size: 13px; }
  .next-card { right: 8px; bottom: 64px; width: calc(100% - 16px); }
  .next-thumb { width: 96px; }
  .stage:not(:fullscreen) .sheet {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 78vh;
    z-index: 60;
    border-radius: 14px 14px 0 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .stage:not(:fullscreen) .drawer { height: 78vh; }
  .variant select { min-width: 0; width: 100%; }
  .variant { width: 100%; }
  .choice b { font-size: 17px; }
  .modal-card { padding: 22px 18px; }
}

body:not(.authed) .search, body:not(.authed) .usermenu { visibility: hidden; }

.usermenu { position: relative; flex: none; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--raise);
  font: 700 15px var(--f-ui);
  cursor: pointer;
}

.avatar:hover, .avatar[aria-expanded="true"] { border-color: var(--accent); }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.menu-head { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }

.menu-head b { display: block; }

.menu-head small { color: var(--muted); }

.menu-budget { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); }

.menu button, .menu a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  margin-top: 2px;
  background: none;
  border: 0;
  border-radius: 5px;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.menu button:hover, .menu a:hover { background: var(--raise); }

.auth {
  min-height: calc(100vh - var(--top-h));
  min-height: calc(100dvh - var(--top-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 60px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auth-card h1 { font-size: 28px; font-weight: 850; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; }

.auth-card .modal-sub b { color: var(--ink); }

.auth-form { display: grid; gap: 14px; }

.auth-form label, .stack-form label, .inline-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

.auth-form input, .stack-form input, .stack-form select, .inline-form input, .inline-form select, .budget-form input {
  height: 40px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
}

.auth-form input:focus, .stack-form input:focus, .stack-form select:focus, .inline-form input:focus, .inline-form select:focus, .budget-form input:focus { border-color: var(--accent); }

.auth-form small, .stack-form small { font-weight: 400; color: var(--faint); font-size: 12px; }

.form-error { margin: 0; min-height: 1em; color: #ffb4a3; font-size: 13.5px; }

.form-error:empty { display: none; }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }

.admin-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 850; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }

.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }

.admin-tabs a {
  flex: none;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.admin-tabs a:hover { color: var(--ink); }

.admin-tabs a[aria-current="page"] { background: var(--raise); color: var(--ink); }

.admin-body { display: grid; gap: 18px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }

.box { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; min-width: 0; }

.box h2 { font-size: 18px; margin-bottom: 14px; }

.box h3 { font-size: 14px; color: var(--muted); margin: 18px 0 8px; }

.box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.box-head h2 { margin: 0; }

.count { font: 600 14px var(--f-mono); color: var(--muted); margin-left: 6px; }

.muted { color: var(--muted); font-size: 13px; }

.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }

.inline-form label { min-width: 120px; }

.inline-form label:first-child { flex: 1; min-width: 180px; }

.inline-form .btn { height: 40px; }

.stack-form { display: grid; gap: 14px; }

.stack-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.money-in { display: flex; align-items: center; gap: 0; }

.money-in > span { height: 40px; display: flex; align-items: center; padding: 0 10px; background: var(--raise); border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; color: var(--muted); }

.money-in input { flex: 1; min-width: 0; border-radius: 0 6px 6px 0; }

.check { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: center; gap: 10px !important; color: var(--ink) !important; font-weight: 500 !important; }

.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.linkbox { margin-top: 14px; padding: 12px; background: var(--bg); border: 1px dashed var(--accent); border-radius: 7px; }

.linkbox p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }

.linkbox small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }

.linkrow { display: flex; gap: 8px; }

.linkrow input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font: 12.5px var(--f-mono); color: var(--ink); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--raise); border-radius: 6px; }

.rows li > span { min-width: 0; }

.rows b { display: block; font-weight: 650; }

.rows small { color: var(--muted); font-size: 12.5px; }

.rows details { flex: 1; min-width: 0; }

.rows summary { cursor: pointer; }

.rows summary b { display: inline; margin-right: 8px; }

.rows .meter { width: 120px; flex: none; }

.epchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.epchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font: 600 12px var(--f-mono); }

.epchip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }

.epchip button:hover { background: var(--accent-soft); color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }

.tbl th { padding: 8px 10px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }

.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }

.tbl tr:last-child td { border-bottom: 0; }

.tbl.compact td { padding: 7px 10px; }

.tbl .num { text-align: right; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }

.tbl small { color: var(--muted); }

.tbl tr.off td { color: var(--faint); }

.tbl .acts { white-space: nowrap; text-align: right; }

.tbl .acts .btn { height: 30px; padding: 0 9px; font-size: 12.5px; }

.tbl th.num { font-family: var(--f-ui); font-size: 12.5px; }

.tbl .link-row td { padding-top: 0; }

.tbl .link-row .linkbox { margin-top: 0; }

.tbl .err { display: block; max-width: 260px; color: #ffb4a3; white-space: normal; }

.btn.danger { border-color: var(--accent); color: var(--accent); }

.budget-form { display: flex; align-items: center; gap: 6px; }

.budget-form .dollar { color: var(--muted); }

.budget-form input { width: 86px; height: 32px; font-family: var(--f-mono); font-size: 13px; }

.budget-form .btn { height: 32px; padding: 0 10px; font-size: 12.5px; }

.pill { display: inline-block; padding: 1px 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }

.pill.warn { background: #3a2a14; color: #f2b45c; }

.pill.soft { background: var(--raise); color: var(--muted); }

.meter { display: block; height: 4px; margin-top: 6px; background: var(--raise); border-radius: 2px; overflow: hidden; }

.meter i { display: block; height: 100%; background: var(--ok); border-radius: 2px; }

.meter.high i { background: #f2b45c; }

.meter.full i { background: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.tile { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 2px; align-content: start; }

.tile span { color: var(--muted); font-size: 13px; }

.tile b { font: 650 28px/1.15 var(--f-mono); letter-spacing: -0.02em; margin-top: 4px; }

.tile small { color: var(--faint); font-size: 12.5px; }

.chart { position: relative; }

.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.chart .grid { stroke: var(--line); stroke-width: 1; }

.chart .base { stroke: var(--faint); stroke-width: 1; }

.chart .tick { fill: var(--muted); font: 11px var(--f-mono); }

.chart .bar { fill: var(--accent); }

.chart .hit { fill: transparent; cursor: default; }

.chart .hit.on { fill: rgba(255, 255, 255, 0.05); }

.chart .tip {
  position: absolute;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: 12.5px;
  pointer-events: none;
  white-space: nowrap;
}

.as-table { margin-top: 12px; }

.as-table summary { cursor: pointer; color: var(--muted); font-size: 13px; }

.as-table table { margin-top: 8px; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }

.feed a { color: var(--ink); text-decoration-color: var(--faint); }

.feed a:hover { color: var(--accent); }

.feed small { display: block; color: var(--faint); font-size: 12.5px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }

.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }

.status.done::before { background: var(--ok); }

.status.error::before { background: var(--accent); }

.status.working::before { background: #f2b45c; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.checks li { display: grid; grid-template-columns: 76px 110px 1fr; gap: 10px; align-items: baseline; font-size: 14px; }

.checks small { color: var(--muted); font-size: 12.5px; word-break: break-word; }

.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }

.facts-list dt { color: var(--muted); }

.facts-list dd { margin: 0; font-family: var(--f-mono); font-size: 13px; }

.legend .btn { margin-left: 12px; height: 30px; font-size: 12.5px; }

@media (max-width: 720px) {
  .auth-card { padding: 22px 18px; }
  .stack-form .two { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .checks li { grid-template-columns: 64px 1fr; }
  .checks small { grid-column: 1 / -1; }
  .tile b { font-size: 22px; }
  .block-head { align-items: flex-start; }
  .legend { flex-wrap: wrap; }
  .legend .btn { margin: 6px 0 0; }
}
