/* RafTV: blue-slate "projection room" with one lamp-amber action color. Motion only responds to user actions. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/vendor/fonts/bricolage-grotesque-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0c111b;
  --panel: #121a29;
  --raised: #1b2538;
  --line: #2a364d;
  --text: #eef1f6;
  --dim: #9ba8c0;
  --faint: #6c7a96;
  --lamp: #ffb02e;
  --lamp-hi: #ffc65c;
  --lamp-ink: #1a1204;
  --mint: #47d7b5;
  --rose: #ff6b6b;
  --r-btn: 10px;
  --r-card: 6px;
  --r-sheet: 18px;
  --pad: clamp(14px, 3.4vw, 44px);
  --topbar-h: 56px;
  --card-w: 38vw;
  color-scheme: dark;
}
@media (min-width: 560px) { :root { --card-w: 24vw; } }
@media (min-width: 820px) { :root { --card-w: 17vw; --topbar-h: 64px; } }
@media (min-width: 1280px) { :root { --card-w: 12.5vw; } }
@media (min-width: 1800px) { :root { --card-w: 10vw; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.5 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lamp); color: var(--lamp-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; outline: none; min-width: 0; }
.noscript { padding: 24px; text-align: center; }

/* ---------- top bar + tab bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  background: rgba(12, 17, 27, .94); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--dim); font-weight: 500; }
.nav a[aria-current='page'] { color: var(--text); background: var(--raised); }
.nav a:hover { color: var(--text); }
.topbar .grow { flex: 1; }
.searchbox { display: none; position: relative; width: min(320px, 28vw); }
.searchbox input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.searchbox input::placeholder { color: var(--faint); }
.searchbox svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
@media (min-width: 768px) { .nav, .searchbox { display: flex; } .tabbar { display: none !important; } }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(12, 17, 27, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; min-height: 56px; color: var(--faint); font-size: 12px; background: none; border: 0; cursor: pointer; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar [aria-current='page'] { color: var(--lamp); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--raised); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #3a4a68; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.btn.primary:hover { background: var(--lamp-hi); border-color: var(--lamp-hi); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); cursor: pointer; flex: none; }
.iconbtn:hover { border-color: #3a4a68; }
.iconbtn.on { color: var(--lamp); border-color: var(--lamp); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 44vh; max-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--panel); }
@media (min-width: 820px) { .hero { min-height: 52vh; } }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 2%, rgba(12, 17, 27, .55) 38%, rgba(12, 17, 27, .05) 70%), linear-gradient(to right, rgba(12, 17, 27, .8), transparent 60%); }
.hero-body { position: relative; z-index: 1; padding: 0 var(--pad) clamp(20px, 5vw, 56px); max-width: 760px; }
.hero h1 { font-size: clamp(34px, 7vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero p.lede { margin-top: 14px; color: #d5dbe8; font-size: clamp(15px, 1.6vw, 18px); max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--dim); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(27, 37, 56, .85); border: 1px solid var(--line); }
.chip.star { color: var(--lamp); }

/* ---------- rails + cards ---------- */
.rail { margin-top: clamp(22px, 3vw, 36px); }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); margin-bottom: 12px; }
.rail-head h2 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.rail-ctrl { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 820px) { .rail-ctrl { display: flex; } }
.rail-ctrl .iconbtn { width: 36px; height: 36px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: clamp(8px, 1.2vw, 16px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px var(--pad) 6px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; min-width: 0; }
.card { display: block; position: relative; }
.card .poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--raised); border: 1px solid transparent; }
.card .poster img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .poster, .card:focus-visible .poster { border-color: var(--lamp); }
.card .rate { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; border-radius: 999px; background: rgba(12, 17, 27, .85); color: var(--lamp); }
.card .meta { padding: 8px 2px 0; }
.card .t { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .y { color: var(--faint); font-size: 13px; }
.card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .6); }
.card .bar i { display: block; height: 100%; background: var(--lamp); }
.card-wrap { position: relative; }
.card-wrap > .resume { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lamp); color: var(--lamp-ink); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: var(--raised); }
.card.person .poster { aspect-ratio: 1 / 1; border-radius: 50%; }
.card.person .t { text-align: center; font-size: 13px; }
.card.person .y { text-align: center; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.skel .poster, .skel .line { background: var(--panel); }
.skel .line { height: 12px; border-radius: 4px; margin-top: 10px; width: 70%; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 30vw, 180px), 1fr)); gap: clamp(10px, 1.6vw, 20px); padding: 0 var(--pad); }
.page-head { padding: clamp(18px, 3vw, 36px) var(--pad) 16px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; font-weight: 800; }
.page-head p { color: var(--dim); margin-top: 4px; }
.empty { padding: 48px var(--pad); color: var(--dim); text-align: center; max-width: 560px; margin: 0 auto; }
.empty h2 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.notice { margin: 24px var(--pad); padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.notice.warn { border-color: #6b4d12; background: #1f1a0e; }
.notice h2, .notice h3 { font-size: 17px; margin-bottom: 6px; }
.notice p, .notice li { color: var(--dim); font-size: 15px; }
.notice ol, .notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice code, .code { background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font: 13px ui-monospace, Menlo, Consolas, monospace; color: var(--text); }

/* ---------- details ---------- */
.dhead { position: relative; overflow: hidden; background: var(--panel); }
.dhead img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: .55; }
.dhead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 3%, rgba(12, 17, 27, .7) 55%, rgba(12, 17, 27, .35)); }
.dwrap { position: relative; z-index: 1; display: grid; gap: 20px; padding: clamp(40px, 9vw, 120px) var(--pad) 24px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 700px) { .dwrap { grid-template-columns: clamp(150px, 20vw, 260px) 1fr; gap: 32px; } }
.dposter { display: none; border-radius: 10px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--raised); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.dposter img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .dposter { display: block; } }
.dinfo h1 { font-size: clamp(30px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.tagline { color: var(--dim); margin-top: 8px; font-style: italic; }
.overview { margin-top: 14px; max-width: 70ch; color: #d5dbe8; }
.dbody { padding: 8px 0 0; }
.dbody > :not(.rail) { margin-left: var(--pad); margin-right: var(--pad); }
.section-title { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; margin: 28px 0 12px; }
.seasonbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
select, .field { height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--raised); color: var(--text); font: inherit; }
select { padding-right: 8px; }
.eps { display: grid; gap: 10px; margin-top: 12px; }
.ep { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid transparent; }
.ep:hover { border-color: var(--line); }
.ep .still { position: relative; width: clamp(110px, 22vw, 200px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--raised); }
.ep .still img { width: 100%; height: 100%; object-fit: cover; }
.ep .still .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .6); }
.ep .still .bar i { display: block; height: 100%; background: var(--lamp); }
.ep h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.ep .sub { color: var(--faint); font-size: 13px; margin-top: 2px; }
.ep p { color: var(--dim); font-size: 14px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .acts { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .ep { grid-template-columns: auto 1fr; }
  .ep .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .ep p { display: none; }
}

/* ---------- sheet / dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: var(--panel); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 8, 14, .72); }
dialog.sheet { margin: auto 0 0; width: 100%; max-height: 88dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
dialog.sheet[open] { animation: rise .18s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 900px) {
  dialog.sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 92vw); border-radius: 0; border-top: 0; border-left: 1px solid var(--line); }
  dialog.sheet[open] { animation: slide .18s ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: .6; } }
}
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; font-size: 18px; line-height: 1.2; }
.sheet-head .sub { display: block; color: var(--dim); font-size: 13px; font-weight: 400; margin-top: 2px; }
.sheet-body { padding: 14px 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-body h3 { font-size: 15px; margin: 20px 0 8px; color: var(--dim); font-weight: 600; }
.sheet-body h3:first-child { margin-top: 0; }

.pstat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pstat .chip { font-size: 13px; }
.pstat .ok { color: var(--mint); }
.pstat .bad { color: var(--rose); }
.pstat .run { color: var(--dim); }

/* source "tickets": the stub on the left carries the quality, the dashed perforation separates it from the details */
.tickets { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ticket { display: grid; grid-template-columns: 84px 1fr; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); position: relative; overflow: hidden; }
.ticket.sel { border-color: var(--lamp); }
.stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; border-right: 2px dashed var(--line); position: relative; }
.stub::before, .stub::after { content: ''; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); }
.stub::before { top: -9px; } .stub::after { bottom: -9px; }
.stub b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stub small { color: var(--dim); font-size: 12px; }
.tbody { padding: 10px 12px; min-width: 0; }
.tbody .name { font-size: 14px; font-weight: 600; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbody .from { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.tag.good { color: var(--mint); border-color: #1f6b5a; }
.tag.warn { color: var(--lamp); border-color: #6b4d12; }
.tag.bad { color: var(--rose); border-color: #7a2f2f; }
.tbody .why { color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.tact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.menu { display: grid; gap: 6px; margin-top: 8px; }

/* ---------- watch page + player ---------- */
.watch { display: flex; flex-direction: column; min-height: calc(100dvh - var(--topbar-h)); }
.watch-top { display: flex; align-items: center; gap: 12px; padding: 10px var(--pad); }
.watch-top h1 { font-size: 17px; font-weight: 700; line-height: 1.2; flex: 1; min-width: 0; }
.watch-top h1 small { display: block; color: var(--dim); font-weight: 400; font-size: 13px; }
.stage { position: relative; width: 100%; background: #000; aspect-ratio: 16 / 9; max-height: calc(100dvh - var(--topbar-h) - 70px); margin: 0 auto; }
.stage .art-video-player { width: 100% !important; height: 100% !important; }
.stage .loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 14px; padding: 20px; color: var(--dim); }
.stage .loading h2 { color: var(--text); font-size: 20px; }
.spin { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--lamp); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch-below { padding: 14px var(--pad) 40px; display: grid; gap: 14px; max-width: 1100px; width: 100%; margin: 0 auto; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid #6b4d12; background: #1f1a0e; }
.banner.bad { border-color: #7a2f2f; background: #241315; }
.banner h3 { font-size: 15px; } .banner p { color: var(--dim); font-size: 14px; margin-top: 2px; }
.banner .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toolrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; max-width: 560px; }
.toolrow .btn { padding: 0 12px; }
.art-video-player { --art-theme: var(--lamp); font-family: inherit !important; }
.art-subtitle { transition: none; }

/* settings */
.set-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--raised); }
.set-group h3 { margin: 0 0 8px; color: var(--text); font-size: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.row label { flex: 1; }
.row small { display: block; color: var(--faint); font-size: 12.5px; }
.field { width: 100%; }
.stack { display: grid; gap: 8px; }
input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--lamp); }
input[type='range'] { width: 100%; accent-color: var(--lamp); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; background: var(--panel); }
.langs input { width: 16px; height: 16px; }
.preview { margin-top: 10px; height: 84px; border-radius: 10px; display: grid; place-items: end center; padding-bottom: 8px; background: linear-gradient(120deg, #2b3b5e, #14202f 60%, #3a2c1a); overflow: hidden; }
.diag { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.diag div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--panel); }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 768px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 12px; background: #263350; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); font-size: 15px; }
.toast.err { border-color: #7a2f2f; background: #3a1c20; }

.foot { padding: 28px var(--pad) 36px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot p { max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.mobile-only { display: block; }
@media (min-width: 768px) { .mobile-only { display: none; } }
body.is-watch .foot { display: none; }

/* subtitle "box" background: the player sets --rh-sub-bg; each caption line gets its own tight box */
.art-subtitle .art-subtitle-line { background: var(--rh-sub-bg, transparent); padding: 0 .4em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* notices inside sheets: full width, bright heading (the generic sheet h3 style is for section labels) */
.sheet-body .notice { margin: 14px 0 0; }
.sheet-body .notice h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; }

/* ---- remove buttons on cards, rail "See all", toast action, lists, forms, admin rows ---- */
.card-wrap > .remove { position: absolute; left: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(12, 17, 27, .82); color: var(--text); cursor: pointer; }
.card-wrap > .remove::before { content: ''; position: absolute; inset: -4px; } /* 44px touch target */
.card-wrap > .remove:hover { border-color: var(--rose); color: var(--rose); }
.card-wrap > .remove .icon { width: 18px; height: 18px; }
.rail-head .more { margin-left: auto; margin-right: 12px; color: var(--dim); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.rail-head .more:hover { color: var(--text); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast button { min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--lamp); background: transparent; color: var(--lamp); font: inherit; font-weight: 600; cursor: pointer; }
.btn.danger { background: transparent; border-color: #7a2f2f; color: var(--rose); }
.btn.danger:hover { border-color: var(--rose); }
.sheet-body .lead { color: var(--dim); }
.listsec { margin-top: 28px; }
.listsec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 var(--pad); margin-bottom: 12px; }
.listsec-head h2 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; margin-right: auto; }
.listsec-head .count { color: var(--faint); font-weight: 400; font-size: 15px; margin-left: 8px; }
.listsec .hint { padding: 0 var(--pad); color: var(--faint); }
.page-head .actions { margin-top: 14px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form label small { color: var(--faint); font-weight: 400; }
.form .err-text { color: var(--rose); font-size: 14px; margin: 0; }
.form .ok-text { color: var(--mint); font-size: 14px; margin: 0; }
.admin { padding: 0 var(--pad) 32px; max-width: 920px; }
.admin .set-group { margin-top: 18px; }
.admin .row { border-top: 1px solid var(--line); flex-wrap: wrap; }
.admin .row:first-of-type { border-top: 0; }
.admin .row .who { flex: 1; min-width: 180px; }
.admin .row .who small { display: block; color: var(--faint); font-size: 13px; }
.admin .row .actions { margin-top: 0; }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.secret code { font-size: 18px; letter-spacing: .06em; padding: 6px 10px; }
.status-ok { color: var(--mint); }
.status-bad { color: var(--rose); }
.admin .set-group > .lead { margin: 0 0 14px; }
.admin .set-group > h2 { margin: 0 0 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.admin .lead { color: var(--dim); }
.admin .set-group .notice { margin: 10px 0 0; }
.admin .set-group .notice h3 { font-size: 15px; }
.toast .dismiss { border-color: var(--line); color: var(--dim); min-width: 44px; padding: 0; display: grid; place-items: center; }
.toast .dismiss .icon { width: 18px; height: 18px; }
