/* Studio: mobile-first, light/dark via prefers-color-scheme, no external assets.
   Shared class names other modules use: .card .grid .thumb-grid .stat .badge .badge-ok .badge-warn
   .badge-fail .table-wrap .muted .chip .page-head */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #15171a;
  --muted: #5d636d;
  --border: #dde1e6;
  --accent: #d93a3f;
  --accent-text: #ffffff;
  --link: #1f5fbf;
  --ok: #18794e;     --ok-bg: #dff3e8;
  --warn: #8a5300;   --warn-bg: #fdefd2;
  --fail: #b42318;   --fail-bg: #fde3e1;
  --info: #1e55a6;   --info-bg: #e0ebfb;
  --muted-bg: #eceef1;
  --focus: #2f6fde;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 1px 1px rgba(16, 18, 22, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --yt-bg: #ffffff; --yt-text: #0f0f0f; --yt-sub: #606060;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #181b20;
    --surface-2: #20242a;
    --text: #eceef1;
    --muted: #9aa1ab;
    --border: #2c3138;
    --accent: #f0585d;
    --link: #7fb0ff;
    --ok: #5fd39a;     --ok-bg: #12301f;
    --warn: #f5b84a;   --warn-bg: #3a2a0c;
    --fail: #ff8a80;   --fail-bg: #3d1513;
    --info: #8db8ff;   --info-bg: #142640;
    --muted-bg: #262a31;
    --focus: #7fb0ff;
    --shadow: none;
    --yt-bg: #0f0f0f; --yt-text: #f1f1f1; --yt-sub: #aaaaaa;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .5rem; }
ul, ol { margin: 0; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ---- layout ---- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem;
  padding: .5rem max(1rem, env(safe-area-inset-left)); background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--text); text-decoration: none; flex: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.topbar nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  color: var(--muted); text-decoration: none; padding: .45rem .7rem; border-radius: 999px; white-space: nowrap;
  font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center;
}
.topbar nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.container { max-width: 1180px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.container:focus { outline: none; }
.page-head { margin: .25rem 0 1rem; }
.page-head h1 { margin-bottom: .25rem; overflow-wrap: anywhere; }
.page-head .summary { margin-top: .4rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.section { margin: 1.25rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.section-head h2 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid > .card { margin: 0; }

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin: 0 0 .75rem; box-shadow: var(--shadow); min-width: 0;
}
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card-link:active { transform: scale(.99); }
.card-attention { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); box-shadow: inset 3px 0 0 var(--warn); }
.card-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .35rem; }
.card-title { font-size: 1.05rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; }
.sep { opacity: .6; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.text-fail { color: var(--fail); }
.empty { color: var(--muted); padding: .75rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); margin: 0; }
.count { display: inline-block; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; font-weight: 600; vertical-align: middle; }
details.collapsible > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.collapsible > summary::-webkit-details-marker { display: none; }
details.collapsible > summary::after { content: "▸"; color: var(--muted); transition: transform .15s; }
details.collapsible[open] > summary::after { transform: rotate(90deg); }
details.collapsible > summary h2 { margin: 0; }
details.collapsible[open] > summary { margin-bottom: .75rem; }

/* ---- badges and chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--muted-bg); color: var(--muted);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-fail { background: var(--fail-bg); color: var(--fail); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--muted-bg); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; padding: 0; }
.dot.badge-ok { background: var(--ok); } .dot.badge-warn { background: var(--warn); } .dot.badge-fail { background: var(--fail); }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); text-decoration: none; white-space: nowrap;
}
a.chip { min-height: 36px; padding: .2rem .8rem; }
.chip-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }

/* ---- buttons and forms ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.05); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: .25rem .7rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-big { width: 100%; min-height: 56px; font-size: 1.05rem; justify-content: flex-start; text-align: left; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
label { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem .7rem; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.select-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.select-label select { width: auto; min-height: 40px; padding: .3rem .5rem; }
.inline-form { display: flex; gap: .5rem; margin-top: .5rem; }
.inline-form input { flex: 1; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; margin-top: .5rem; }
.actions form { margin: 0; }
.actions details.edit { flex-basis: 100%; }
.actions details.edit[open] { padding-top: .25rem; }
.actions details.edit > form { margin-top: .5rem; }
.counter:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
.callout { padding: .65rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); margin: .5rem 0; }
.callout ul { margin-top: .25rem; }
.callout-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.callout-warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.callout-fail { background: var(--fail-bg); border-color: transparent; color: var(--fail); }
.flash { padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info); margin-bottom: 1rem; font-weight: 500; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; padding: 0 .25rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.error-pre { white-space: pre-wrap; font-size: .78rem; max-height: 240px; overflow: auto; background: var(--surface-2); padding: .5rem; border-radius: 6px; }

/* ---- stats ---- */
.stat { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .6rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .88rem; }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.meter-warn { background: var(--warn); } .meter-fail { background: var(--fail); }

/* ---- key/value lists ---- */
.kv { display: grid; grid-template-columns: 1fr; gap: .15rem .9rem; margin: 0; }
.kv dt { font-weight: 600; font-size: .85rem; color: var(--muted); margin-top: .55rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .kv { grid-template-columns: 9rem 1fr; } .kv dt { margin-top: 0; } .kv dt, .kv dd { padding: .35rem 0; border-bottom: 1px solid var(--border); } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .15rem 0; }

/* ---- review page ---- */
.version-switch { margin: -.25rem 0 .5rem; }
.jump {
  position: sticky; top: 57px; z-index: 10; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 -1rem .75rem; padding: .35rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border);
}
.jump::-webkit-scrollbar { display: none; }
.jump a { color: var(--muted); text-decoration: none; padding: .3rem .65rem; border-radius: 999px; font-size: .88rem; white-space: nowrap; }
.jump a:hover { background: var(--surface-2); color: var(--text); }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 1000px) {
  .review-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .jump { display: none; }
}
.player-card { padding: 0; overflow: hidden; }
.player-card > .meta { padding: .5rem 1rem 0; }
.player-wrap { background: #000; }
.player-wrap video { width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; background: #000; }
.player-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--surface-2); }
.note-form { padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.note-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1rem; }
.note-form .btn-primary { font-variant-numeric: tabular-nums; }
.notes { list-style: none; padding: 0; margin: 0; }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.note:last-child { border-bottom: 0; }
.note-text { margin: 0 0 .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-fixed .note-text, .note-wontfix .note-text { color: var(--muted); }
.note-wontfix .note-text { text-decoration: line-through; }
.resolution { margin: .2rem 0 0; color: var(--ok); }
.seek {
  font: 600 .85rem/1 var(--mono); min-width: 3.4rem; min-height: 36px; padding: .3rem .45rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--link); cursor: pointer; font-variant-numeric: tabular-nums;
}
.seek:hover { border-color: var(--link); }
.seek-none { color: var(--muted); cursor: default; display: inline-flex; align-items: center; justify-content: center; border-style: dashed; white-space: nowrap; }
.seek-inline { min-width: 0; min-height: 30px; padding: .15rem .35rem; margin: .1rem 0; }
details.earlier { margin-top: .75rem; }
details.earlier > summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.decision { padding: .5rem 0 .75rem; border-bottom: 1px solid var(--border); }
.decision:last-of-type { border-bottom: 0; }
.question { font-weight: 600; font-size: 1.05rem; }
.decision-options { display: grid; gap: .5rem; margin: .5rem 0; }
.gates { list-style: none; padding: 0; margin: 0; }
.gates > li { border-bottom: 1px solid var(--border); }
.gates > li:last-child { border-bottom: 0; }
.gates summary { cursor: pointer; padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.issues { list-style: none; padding: 0 0 .6rem; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.issues li { display: flex; gap: .45rem; align-items: baseline; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; font-size: .82rem; color: var(--muted); margin: 0 0 .6rem; }
.metrics dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.description { white-space: normal; overflow-wrap: anywhere; font-size: .92rem; max-height: 22rem; overflow-y: auto; padding: .5rem; background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: .25rem; }
.events { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.events li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.sub { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 1rem 0 .5rem; }
.thumb-missing { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; color: var(--muted); font-size: .8rem; background: var(--surface-2); }

/* thumbnails in a mock YouTube feed */
.thumb-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 999px) { .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feed-mock[data-theme="light"] { --yt-bg: #ffffff; --yt-text: #0f0f0f; --yt-sub: #606060; }
.feed-mock[data-theme="dark"] { --yt-bg: #0f0f0f; --yt-text: #f1f1f1; --yt-sub: #aaaaaa; }
.feed-mock .thumb-grid, .feed-mock .yt-side-list, ul.feed-mock { background: var(--yt-bg); color: var(--yt-text); border-radius: var(--radius-sm); padding: .6rem; }
.yt-card { margin: 0; max-width: 420px; font-family: Roboto, Arial, sans-serif; }
.yt-thumb, .yt-side-thumb { position: relative; border-radius: 12px; overflow: hidden; background: #222; }
.yt-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #fff; font: 500 12px/1 Roboto, Arial, sans-serif; padding: 3px 4px; border-radius: 4px; }
.yt-duration:empty { display: none; }
.yt-meta { display: flex; gap: .7rem; padding: .7rem 0 .2rem; }
.yt-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.yt-title { margin: 0 0 .2rem; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--yt-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-sub { margin: 0; font-size: 13px; line-height: 1.4; color: var(--yt-sub); }
.yt-card figcaption { color: var(--yt-sub); margin-top: .1rem; }
.yt-side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.yt-side { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: .6rem; align-items: start; font-family: Roboto, Arial, sans-serif; }
.yt-side a { color: inherit; text-decoration: none; display: contents; }
.yt-side-thumb { width: 168px; height: 94px; border-radius: 8px; }
.yt-side-thumb img { width: 168px; height: 94px; object-fit: cover; }
.yt-side .yt-title { font-size: 14px; }
.yt-side .yt-sub { font-size: 12px; }
.yt-ours { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.variant-pick .variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.variant { display: flex; flex-direction: column; gap: .3rem; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: .35rem; cursor: pointer; font-weight: 500; position: relative; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.variant:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.variant:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.variant-label { font-size: .88rem; }
details.confirm > summary { margin-top: .25rem; }
details.confirm[open] > summary { display: none; }
.confirm-body { border: 2px solid var(--accent); border-radius: var(--radius-sm); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.upload-status { margin-top: .5rem; }

/* ---- rules / digests ---- */
.rule .rule-text { font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence { white-space: pre-wrap; }
.prose { overflow-wrap: anywhere; }
.prose h1 { font-size: 1.4rem; } .prose h2 { font-size: 1.15rem; margin-top: 1.25rem; } .prose h3 { margin-top: 1rem; }
.prose p, .prose ul, .prose ol { margin-bottom: .75rem; }
.prose li { margin: .2rem 0; }
.prose table { display: block; overflow-x: auto; margin-bottom: .75rem; }
.prose pre { background: var(--surface-2); padding: .75rem; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 .75rem; padding-left: .8rem; border-left: 3px solid var(--border); color: var(--muted); }
.prose img { border-radius: var(--radius-sm); }

/* ---- login ---- */
.login { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; }
.login-card h1 { display: flex; align-items: center; gap: .5rem; }

/* ---- toast, spinner ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  max-width: min(92vw, 520px); background: var(--text); color: var(--bg); padding: .7rem 1rem; border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-weight: 500;
}
.toast.toast-error { background: var(--fail); color: #fff; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }
.htmx-request.btn, .htmx-request .btn[type="submit"] { opacity: .7; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 640px) { .container { padding: 1.25rem 1.5rem 3rem; } h1 { font-size: 1.75rem; } }
