/* Briefcast — hand-written, no build step. Light + dark via prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1f21;
  --muted: #62666d;
  --border: #dcdcd8;
  --accent: #2f5fd0;
  --accent-text: #ffffff;
  --ok: #1f7a3d;
  --ok-bg: #e3f4e8;
  --warn: #8a5a00;
  --warn-bg: #fdf0d5;
  --bad: #b3261e;
  --bad-bg: #fbe4e2;
  --neutral-bg: #ececea;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b;
    --surface: #1f2226;
    --text: #e6e6e3;
    --muted: #9ba0a6;
    --border: #353a40;
    --accent: #7ea2ff;
    --accent-text: #0e1320;
    --ok: #7fd49a;
    --ok-bg: #1d3526;
    --warn: #f0c060;
    --warn-bg: #3a2f14;
    --bad: #ff8f86;
    --bad-bg: #3d1f1d;
    --neutral-bg: #2b2f34;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
}

a { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.9em; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ layout */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
.site-menu { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.topbar-section, .mobile-menu { display: none; }
.topbar nav a {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--text); background: var(--neutral-bg); }
.topbar nav a[aria-current="page"] { color: var(--text); background: var(--neutral-bg); font-weight: 600; }

main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head h1 { margin: 0 0 1rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-bottom: 1rem; }
.grid > .panel { margin-bottom: 0; }  /* the grid gap spaces them (no doubled gap) */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.flash {
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--ok-bg);
  color: var(--ok);
}
.flash.error { background: var(--bad-bg); color: var(--bad); }

/* ------------------------------------------------------------------ buttons */

button, .button {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
button:hover, .button:hover { border-color: var(--muted); }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.danger { color: var(--bad); }
button.danger { border-color: var(--bad); }
.htmx-request button, button.htmx-request { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
form.inline { display: inline; margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.delete-slot.confirm { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ forms */

.schema-form { max-width: 40rem; }
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem 1rem 0.25rem;
  margin: 0 0 1rem;
}
legend { font-weight: 600; padding: 0 0.3rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.9rem; }
.field label { font-weight: 500; }
.field label.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.req { color: var(--bad); }

input[type="text"], input[type="number"], input[type="password"], select, textarea {
  font: inherit;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
textarea { resize: vertical; }
.inline-form select { width: auto; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

.help, .secret-set { color: var(--muted); font-size: 0.85rem; }
.field label.check.secret-clear { font-weight: 400; font-size: 0.9rem; }
.error { color: var(--bad); font-size: 0.85rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }

.test-slot:empty { display: none; }
.test-result { margin-top: 0.75rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); }
.test-result.ok { background: var(--ok-bg); color: var(--ok); }
.test-result.fail { background: var(--bad-bg); color: var(--bad); }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.error-cell { color: var(--muted); font-size: 0.85rem; max-width: 22rem; overflow-wrap: anywhere; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .test-slot { white-space: normal; text-align: left; }
/* Inline delete confirm in a table row: wrap within the column instead of widening the table. */
.row-actions .delete-slot.confirm {
  display: flex; justify-content: flex-end; white-space: normal;
  max-width: 15rem; margin-left: auto; margin-top: 0.4rem;
}
.row-actions .delete-slot.confirm small { flex-basis: 100%; text-align: right; }

/* ------------------------------------------------------------------ badges, cards */

.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--neutral-bg);
  color: var(--muted);
  white-space: nowrap;
}
.badge.ok, .badge.job-done { background: var(--ok-bg); color: var(--ok); }
.badge.stale, .badge.never, .badge.job-running, .badge.job-queued { background: var(--warn-bg); color: var(--warn); }
.badge.error, .badge.missing, .badge.job-failed { background: var(--bad-bg); color: var(--bad); }
.summary { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
a.badge { text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.problems { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.problems li { margin-bottom: 0.3rem; }
.problems small { display: block; }

.cards { list-style: none; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  height: 100%;
}
.card:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------ sync, stats */

.sync-slot:empty { display: none; }
.learned-rules { list-style: none; padding: 0; margin: 0; }
.learned-rules li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  justify-content: space-between; padding: 0.4rem 0; border-top: 1px solid var(--border, #ddd); }
.learned-rules li .actions { margin-top: 0; }
.sync-result { font-size: 0.85rem; margin-left: 0.3rem; }
.sync-result.ok { color: var(--ok); }
.source-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 0.75rem; }
.stats dt { color: var(--muted); font-size: 0.8rem; }
.stats dd { margin: 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ items */

.filters {
  display: flex; flex-wrap: wrap; gap: 0 0.75rem; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem 0; margin-bottom: 1rem;
}
.filters .field { margin-bottom: 0.75rem; min-width: 9rem; flex: 1 1 9rem; }
.filters .field.grow { flex: 3 1 14rem; }
.filters .field label { font-size: 0.85rem; }
.filter-actions { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
input[type="search"], input[type="date"] {
  font: inherit;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.results-head { margin: 0 0 0.5rem; font-size: 0.9rem; }
@media (min-width: 721px) { .filter-box > summary { display: none; } }
table.items td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-cell { overflow-wrap: anywhere; }
.item-title { font-weight: 500; margin-right: 0.3rem; }
.item-sub { font-size: 0.85rem; }
.item-meta { display: none; font-size: 0.82rem; font-weight: 400; margin-bottom: 0.1rem; }
tr.cancelled .item-title { text-decoration: line-through; color: var(--muted); }
.kind { white-space: nowrap; color: var(--muted); font-size: 0.9rem; }
.badge.att-accepted { background: var(--ok-bg); color: var(--ok); }
.badge.att-declined { background: var(--bad-bg); color: var(--bad); }
.badge.att-tentative, .badge.att-needs-action { background: var(--warn-bg); color: var(--warn); }
.pager { display: flex; gap: 0.75rem; align-items: center; justify-content: center; margin-top: 1rem; }

.crumbs { margin: 0 0 0.5rem; font-size: 0.9rem; }
.item-heading { overflow-wrap: anywhere; margin-bottom: 0.5rem; }
.props { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; }
.props dt { color: var(--muted); font-size: 0.85rem; padding-top: 0.1rem; }
.props dd { margin: 0; }
.wrap { overflow-wrap: anywhere; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin-bottom: 0.2rem; }
.enrich-summary { margin-top: 0; font-size: 1.05rem; }
.item-body {
  font-family: var(--mono); font-size: 0.85rem;
  white-space: pre-wrap; overflow-wrap: anywhere;
  margin: 0; max-height: 40rem; overflow-y: auto;
}
details.raw summary { cursor: pointer; font-weight: 600; }
details.raw[open] summary { margin-bottom: 0.75rem; }
details.raw h3 { font-size: 1rem; margin: 1rem 0 0.5rem; }

@media (max-width: 720px) {
  .props { grid-template-columns: 1fr; gap: 0 0; }
  .props dd { margin-bottom: 0.4rem; }
  table.items td.when { white-space: normal; }
}

/* ------------------------------------------------------------------ connections */

.block { display: block; }
.notice {
  padding: 0.6rem 0.9rem;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn);
}
.notice a { color: inherit; }
.panel.warn { border-color: var(--warn); background: var(--warn-bg); }
.panel.warn h2, .panel.warn p { color: var(--warn); }
.panel.warn a { color: inherit; font-weight: 600; }
.steps { padding-left: 1.4rem; margin: 0 0 1rem; max-width: 48rem; }
.steps li { margin-bottom: 0.6rem; }
.connect-form { margin-top: 1rem; }
.connect-form h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.checks label.check { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.connect-form .help { margin-top: 0.5rem; max-width: 40rem; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Checkbox groups loaded from a plugin (e.g. Google calendars). */
.checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.25rem 0; }
.checkbox-group label.check.option { font-weight: 400; align-items: baseline; }
.checkbox-group label.check.option small { margin-left: 0.35rem; }
.checkbox-group .options-error { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ------------------------------------------------------------------ enrichment */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.dots { letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; font-size: 0.85rem; }
.dots.imp-3 { color: var(--warn); }
.dots.imp-4, .dots.imp-5 { color: var(--bad); }
.badge.action { background: var(--warn-bg); color: var(--warn); }
.badge.skipped { background: var(--neutral-bg); color: var(--muted); font-style: italic; }
.badge.disagree { background: var(--bad-bg); color: var(--bad); }
.item-summary { font-size: 0.9rem; margin: 0.15rem 0; }
tr.skipped .item-title, tr.skipped .item-summary { color: var(--muted); }
tr.skipped .item-title { font-weight: 400; }

.feedback { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin: 0; }
.feedback button { padding: 0.2rem 0.45rem; font-size: 0.85rem; }
.feedback .fb-text { font-size: 0.8rem; }
.feedback button[aria-pressed="true"].fb-keep { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.feedback button[aria-pressed="true"].fb-skip { background: var(--neutral-bg); border-color: var(--muted); font-weight: 600; }
.feedback.large button { padding: 0.4rem 0.75rem; font-size: 1rem; }
/* Triage's pick, not yet confirmed: same color, lighter weight, dashed outline. */
.feedback button[aria-pressed="true"].fb-auto { background: transparent; border-style: dashed; font-weight: 400; opacity: 0.85; }
.feedback .fb-auto-mark { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.confirm-page { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }
.feedback.disagree { outline: 2px solid var(--bad); outline-offset: 2px; border-radius: var(--radius); }
table.items .fb-cell { white-space: nowrap; }
table.items:not(.labeling) .fb-text { display: none; }
tr:has(.feedback.disagree) { background: var(--bad-bg); }
.detail-feedback { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin: 0 0 1rem; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 1rem; }
.label-count { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.label-help { margin-top: -0.5rem; }
.error-text { color: var(--bad); }
.llm-details details summary { cursor: pointer; font-size: 0.85rem; }
.llm-details pre { max-height: 20rem; margin-top: 0.4rem; }
table.llm-calls td.llm-details { min-width: 16rem; max-width: 40rem; overflow-wrap: anywhere; }

.stats.stats-wide { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.radio-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-card {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; font-weight: 400 !important;
}
.radio-card:has(input:checked) { border-color: var(--accent); }
.radio-card input { margin-top: 0.25rem; accent-color: var(--accent); }
.radio-card .badge { margin-left: 0.3rem; }
fieldset.nested { background: var(--bg); }
.notice.third-party { border: 1px solid var(--bad); background: var(--bad-bg); color: var(--bad); }
.notice.third-party .field { margin: 0.6rem 0 0.2rem; }
.panel.setup ol.checklist { list-style: none; padding: 0; margin: 0; }
.panel.setup ol.checklist li { margin-bottom: 0.3rem; color: var(--warn); }
.panel.setup ol.checklist li.done { opacity: 0.75; text-decoration: line-through; }

/* Source form: enrichment fields only matter when "Enrich items" is on. Without :has()
   support they're simply always shown. */
.schema-form:has(#f-source-enrich:not(:checked)) .enrich-only { display: none; }

/* ------------------------------------------------------------------ shows */

.subnav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: -0.25rem 0 1rem; border-bottom: 1px solid var(--border); }
.subnav a { padding: 0.35rem 0.7rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.seed-form { margin: 1rem 0 0.5rem; }
.seed-list { text-align: left; max-width: 36rem; margin: 0.75rem auto; padding-left: 1.2rem; }
.seed-list li { margin-bottom: 0.3rem; }
tr.disabled td { color: var(--muted); }
.badge.disabled { font-style: italic; }
.show-form .field .label, .rule-form .field .label { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chip { font-size: 0.8rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--neutral-bg); font-variant-numeric: tabular-nums; }
/* Settings → Pronunciation */
ul.suggestions { list-style: none; padding: 0; margin: 0; gap: 0.45rem; }
.suggestion { display: inline-flex; align-items: center; border-radius: 999px; background: var(--neutral-bg); }
.suggestion .chip { font-size: 0.9rem; padding: 0.25rem 0.2rem 0.25rem 0.7rem; background: none; color: var(--text); text-decoration: none; }
.suggestion .chip::before { content: "+ "; color: var(--muted); }
.suggestion .chip:hover { text-decoration: underline; }
button.chip-dismiss { border: 0; background: none; color: var(--muted); padding: 0.2rem 0.6rem 0.2rem 0.35rem; font-size: 1rem; line-height: 1; }
table.lexicon td { vertical-align: middle; }
table.lexicon .lexicon-match { white-space: nowrap; font-size: 0.85rem; }
table.lexicon .lexicon-match label.check { display: flex; align-items: center; gap: 0.35rem; font-weight: 400; }
table.lexicon td.row-actions label.check.remove { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; color: var(--bad); font-size: 0.85rem; }
.preview-with { margin: 0 0 0.75rem; }
.preview-slot audio { width: 100%; max-width: 20rem; margin-top: 0.5rem; }
.checks.days { gap: 0.4rem 0.9rem; }
details.advanced { margin: 0 0 0.75rem; }
details.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.cron-preview { margin: -0.25rem 0 0.9rem; }
.sub-label { margin-top: 0.5rem; font-size: 0.9rem; }
.sender-filter { margin: 0.25rem 0; max-width: 24rem; }
.sender-list { max-height: 22rem; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.6rem; background: var(--bg); }
.panel.rule .page-head h2 { margin: 0 0 0.5rem; }
.panel.rule .page-head h2 small { font-weight: 400; font-size: 0.8rem; }
.badge.si-done { background: var(--ok-bg); color: var(--ok); }
.badge.si-pending { background: var(--warn-bg); color: var(--warn); }
.badge.si-failed { background: var(--bad-bg); color: var(--bad); }
.sync-result.error { color: var(--bad); }

/* ------------------------------------------------------------------ episodes */

.badge.ep-published { background: var(--ok-bg); color: var(--ok); }
.badge.ep-pending, .badge.ep-selecting, .badge.ep-composing, .badge.ep-synthesizing, .badge.ep-mastering { background: var(--warn-bg); color: var(--warn); }
.badge.ep-failed { background: var(--bad-bg); color: var(--bad); }
.badge.ep-superseded { font-style: italic; }
tr.ep-superseded .item-title { color: var(--muted); font-weight: 400; }
.ep-status { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.ep-status progress { width: 6rem; height: 0.6rem; accent-color: var(--accent); }
.ep-log-line { flex-basis: 100%; font-family: var(--mono); font-size: 0.8rem; }
table.episodes td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ep-meta { align-items: center; }
.player audio { width: 100%; }
.player-controls { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.6rem; }
.speed { display: inline-flex; gap: 0.25rem; }
.speed button { padding: 0.25rem 0.55rem; font-variant-numeric: tabular-nums; }
.speed button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.keys { font-size: 0.8rem; }
.tablist { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.tablist [role="tab"] { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: 0.45rem 0.8rem; margin-bottom: -1px; }
.tablist [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.report { max-width: 48rem; line-height: 1.6; }
.report h3 { font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.report h3:first-child { margin-top: 0; }
.report h4 { font-size: 0.95rem; margin: 0.9rem 0 0.3rem; }
.report ul { padding-left: 1.2rem; margin: 0.3rem 0 0.75rem; }
.report li { margin-bottom: 0.25rem; }
.report p { margin: 0.4rem 0 0.75rem; }
.transcript { max-width: 48rem; }
.transcript .chapter h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.transcript .chapter:first-child h3 { margin-top: 0; }
.tline { margin: 0 0 0.3rem; padding: 0.3rem 0.5rem; border-radius: var(--radius); line-height: 1.55; }
.tline[data-start] { cursor: pointer; }
.tline[data-start]:hover { background: var(--neutral-bg); }
.tline.current { background: var(--warn-bg); }
.tline .ts, .transcript h3 .ts { padding: 0.05rem 0.35rem; font-size: 0.75rem; font-family: var(--mono); color: var(--muted); margin-right: 0.35rem; vertical-align: 1px; }
.item-ref { font-size: 0.75rem; margin-left: 0.3rem; text-decoration: none; padding: 0 0.3rem; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.items-used li { margin-bottom: 0.35rem; }

/* ------------------------------------------------------------------ per-show feedback */

.show-feedback { display: flex; flex-direction: column; gap: 0.3rem; }
.show-fb { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.show-fb .show-name { font-size: 0.8rem; color: var(--muted); min-width: 5.5rem; }
.show-status { margin-bottom: 0.9rem; }
.show-status:last-child { margin-bottom: 0; }
.show-status h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.show-status ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* ------------------------------------------------------------------ jobs (dashboard + /jobs) */
.sub-head { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin: 0.9rem 0 0.35rem; }
.job-list { list-style: none; margin: 0; padding: 0; }
.job-row { padding: 0.3rem 0; border-top: 1px solid var(--border); min-width: 0; }
.job-row:first-child { border-top: 0; }
.job-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; }
.job-kind { overflow-wrap: anywhere; }
.job-when { font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
.job-error-line { display: block; color: var(--bad); font-size: 0.85rem; overflow-wrap: anywhere; margin-top: 0.1rem; }
.job-meta { font-size: 0.85rem; }
.job-list.detailed .job-row { padding: 0.5rem 0.75rem; }
.job-list.detailed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.job-error summary { cursor: pointer; color: var(--bad); font-size: 0.85rem; overflow-wrap: anywhere; }
.job-error pre { font-family: var(--mono); font-size: 0.78rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow-y: auto; margin: 0.3rem 0 0; }
.panel .more { margin: 0.5rem 0 0; }
.job-filters .field { flex: 0 1 14rem; }

.dash-episodes li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: center; margin-bottom: 0.45rem; }
.play-link { text-decoration: none; }

/* Places & commute: a few short fields side by side (wraps on phones). */
.field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.field-row .field { flex: 1 1 9rem; min-width: 0; }

/* ------------------------------------------------------------------ sender discovery */
.discovery { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin: 0.6rem 0 1rem; }
.discovery h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.discovery-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.discovery-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; border-top: 1px solid var(--border); }
.discovery-list li:first-child { border-top: 0; }
.discovery-list .actions { display: flex; gap: 0.3rem; align-items: center; }
.sender-list .option { display: block; }
.sender-list .option label { display: inline-flex; gap: 0.4rem; align-items: baseline; }
.sender-list .sender-address, .sender-list .sender-addresses { display: block; margin-left: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.2rem 0 0.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.1rem 0.2rem 0.1rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; }
.chip-remove { padding: 0 0.4rem; border: 0; background: none; line-height: 1.2; }

/* ------------------------------------------------------------------ podcast feed panel */
.feed-url { display: flex; gap: 0.4rem; align-items: center; margin: 0.5rem 0; }
.feed-url input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.feed-panel .rotate-token { margin-top: 0.8rem; }
.feed-panel .rotate-token p { margin: 0.4rem 0; }
.feed-warning { margin: 0.5rem 0; }

/* ------------------------------------------------------------------ auth */

.site-menu form.logout { margin: 0 0 0 auto; }
.topbar form.logout button { font-size: 0.85rem; padding: 0.25rem 0.6rem; }
.auth-card { max-width: 26rem; margin: 3rem auto 0; }
.auth-card .field input { width: 100%; }
table.sessions td.current { font-weight: 600; }

/* ------------------------------------------------------------------ cover art + logo */
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark { display: block; width: 28px; height: 28px; }
.cover-thumb { display: inline-block; vertical-align: middle; border-radius: 8px; margin-right: 0.6rem; box-shadow: 0 0 0 1px var(--border); }
.show-link { display: inline-flex; align-items: center; }
.ep-heading { display: flex; align-items: center; gap: 0.9rem; }
.ep-heading .cover-thumb { margin-right: 0; }
.cover-current { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.cover-current > div { flex: 1 1 16rem; min-width: 0; }
.cover-thumb-large { border-radius: 12px; box-shadow: 0 0 0 1px var(--border); }
.cover-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem 1rem; margin: 0 0 1rem; }
.cover-mode label { margin-right: 1.25rem; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 0.9rem; }
.cover-card { border: 2px solid transparent; border-radius: 12px; padding: 0.4rem; }
.cover-card:has(input[name="preset"]:checked), .cover-card.is-chosen:not(:has(input[name="preset"])) { border-color: var(--accent); background: var(--neutral-bg); }
.cover-choice { display: flex; flex-direction: column; gap: 0.25rem; cursor: pointer; }
.cover-choice img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; box-shadow: 0 0 0 1px var(--border); }
.cover-name { display: flex; align-items: center; gap: 0.35rem; }
.swatches { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot { display: block; width: 1.4rem; height: 1.4rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); background: var(--muted); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--accent); outline-offset: 3px; }
.flash-error { border-color: var(--bad); color: var(--bad); }
.swatch-161616 { background: #161616; }
.swatch-1b2a47 { background: #1b2a47; }
.swatch-2e5aa8 { background: #2e5aa8; }
.swatch-7fc4b8 { background: #7fc4b8; }
.swatch-7fd1c7 { background: #7fd1c7; }
.swatch-9bd1b9 { background: #9bd1b9; }
.swatch-9c3b2a { background: #9c3b2a; }
.swatch-b8432a { background: #b8432a; }
.swatch-c8372d { background: #c8372d; }
.swatch-d9583b { background: #d9583b; }
.swatch-e07a5f { background: #e07a5f; }
.swatch-e86f4f { background: #e86f4f; }
.swatch-e8a33a { background: #e8a33a; }
.swatch-e8ad55 { background: #e8ad55; }
.swatch-ee7b30 { background: #ee7b30; }
.swatch-f08a5d { background: #f08a5d; }
.swatch-f2a541 { background: #f2a541; }
.swatch-f2c14e { background: #f2c14e; }

/* ------------------------------------------------------------------ card heads (all widths) */
.card-title { display: flex; align-items: center; gap: 0.75rem; }
.card-title .cover-thumb { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.card-title-text { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; min-width: 0; }
.card-title-text .block { flex-basis: 100%; }
.sub { display: block; font-size: 0.85rem; margin-top: 0.1rem; }
small.block, .block { display: block; }

/* ------------------------------------------------------------------ phones */
/* Everything below is for narrow screens (the UI is used on an iPhone): a compact header
   with a Menu disclosure, tables as cards with a fixed label gutter, 44 px touch targets,
   16 px form fields (iOS zooms into anything smaller), and safe-area padding so Safari's
   toolbars and the home indicator never cover content. */
@media (max-width: 720px) {
  body { -webkit-text-size-adjust: 100%; }

  /* header */
  .topbar {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: calc(0.45rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
             0.45rem max(1rem, env(safe-area-inset-left));
    min-height: 3.25rem;
  }
  .site-menu { display: none; }
  .brand { flex-shrink: 0; }
  .topbar-section {
    display: block; flex: 1 1 auto; min-width: 0;
    padding-left: 0.75rem; border-left: 1px solid var(--border);
    color: var(--muted); font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 44px; padding: 0 0.75rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); cursor: pointer; list-style: none; user-select: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: var(--neutral-bg); }
  .mobile-menu-panel {
    position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
    padding: 0.5rem max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  }
  .mobile-menu-panel nav { display: flex; flex-direction: column; gap: 0.15rem; }
  .mobile-menu-panel nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font-size: 1rem; }
  .mobile-menu-panel form.logout { margin: 0.5rem 0 0; }
  .mobile-menu-panel form.logout button { width: 100%; min-height: 44px; font-size: 1rem; }

  /* page frame */
  main {
    padding: 1rem max(0.9rem, env(safe-area-inset-right))
             calc(6rem + env(safe-area-inset-bottom)) max(0.9rem, env(safe-area-inset-left));
  }
  h1 { font-size: 1.35rem; }
  .page-head { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .page-head h1 { margin-bottom: 0.25rem; }
  .page-head { margin-bottom: 0.75rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 0.85rem; }
  .schema-form { max-width: none; }
  fieldset { padding: 0.6rem 0.8rem 0.1rem; min-width: 0; }
  .item-heading, .wrap, .item-cell, .report, .transcript { overflow-wrap: anywhere; }
  pre, code { overflow-wrap: anywhere; white-space: pre-wrap; }
  img, svg, video, audio { max-width: 100%; }

  /* touch targets + form fields */
  button, .button { min-height: 44px; padding: 0.55rem 0.9rem; white-space: normal; text-align: center;
                    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
  input[type="text"], input[type="number"], input[type="password"], input[type="search"],
  input[type="date"], input[type="email"], input[type="url"], select, textarea {
    font-size: 16px; min-height: 44px;
  }
  input[type="checkbox"], input[type="radio"] { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
  label.check, .checks label, .checkbox-group label.check.option, .radio-card { min-height: 44px; padding: 0.35rem 0; }
  .checkbox-group label.check.option { align-items: center; }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  }
  .inline-form select { width: 100%; }
  .inline-form > * { flex: 1 1 100%; }
  .actions > button, .actions > .button, .actions > form, .actions > a.button { flex: 1 1 auto; }
  .actions form button { width: 100%; }

  /* long forms: keep the main Save/Submit reachable */
  form.long-form > .actions:last-child {
    position: sticky; bottom: 0; z-index: 5;
    margin: 1rem 0 0;
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
    box-shadow: 0 -10px 12px -8px rgb(0 0 0 / 0.25);
  }
  .panel form.long-form > .actions:last-child { background: var(--surface); }
  details > summary { min-height: 44px; display: flex; align-items: center; gap: 0.4rem; }
  .chip-remove { min-width: 44px; min-height: 44px; }

  /* tables become cards: a head row, then label | value rows (the value wraps inside its own
     column, never back under the label), then a full-width action row */
  table:not(.compact) { border: 0; background: none; }
  table:not(.compact) thead { display: none; }
  table:not(.compact), table:not(.compact) tbody { display: block; width: 100%; }
  table:not(.compact) tr {
    display: flex; flex-direction: column; gap: 0.35rem;
    margin-bottom: 0.75rem; padding: 0.8rem 0.85rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  }
  table:not(.compact) tbody tr:last-child { margin-bottom: 0; }
  table:not(.compact) td, table:not(.compact) th { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
  table:not(.compact) td[data-label] {
    position: relative; padding-left: 6.75rem; min-height: 1.4rem;
    overflow-wrap: anywhere; line-height: 1.4;
  }
  table:not(.compact) td[data-label]::before {
    content: attr(data-label);
    position: absolute; left: 0; top: 0.1rem; width: 6.25rem;
    color: var(--muted); font-size: 0.78rem; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  table:not(.compact) td.card-head { order: -1; padding-left: 0; font-size: 1.02rem; font-weight: 600; margin-bottom: 0.15rem; }
  table:not(.compact) td.card-head::before { display: none; }
  table:not(.compact) td.card-head .item-sub, table:not(.compact) td.card-head .item-summary,
  table:not(.compact) td.card-head small { font-weight: 400; }
  .card-title .cover-thumb { width: 56px; height: 56px; border-radius: 10px; }
  table:not(.compact) td.num { text-align: left; }
  table.items td.when, table.episodes td.when { white-space: normal; }
  .error-cell { max-width: none; }
  table:not(.compact) td.row-actions {
    order: 99; display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--border);
    white-space: normal; text-align: left;
  }
  /* buttons share one row equally; forms/wrappers holding a button stretch it to fill */
  td.row-actions > * { flex: 1 1 0; min-width: max-content; }
  td.row-actions > form button, td.row-actions > span > button, td.row-actions > div > button,
  td.row-actions > span > form button, td.row-actions > div > form button { width: 100%; }
  td.row-actions .test-slot, td.row-actions .sync-slot { flex-basis: 100%; }
  .row-actions .delete-slot.confirm { max-width: none; margin: 0; justify-content: flex-start; flex-basis: 100%; }
  .row-actions .delete-slot.confirm small { text-align: left; }
  table.compact { font-size: 0.9rem; }
  table.compact th, table.compact td { padding: 0.4rem 0.5rem; }

  /* item rows: feedback buttons get full-size targets */
  .feedback button, .feedback.large button { min-height: 44px; min-width: 44px; padding: 0.4rem 0.7rem; font-size: 1rem; }
  table.items .fb-cell { white-space: normal; }
  /* item cards: "Gmail · email · 2h ago" + title/summary/badges + feedback, no label rows */
  table.items td.meta-col { display: none; }
  table.items .item-meta { display: block; }
  table.items tr { gap: 0.5rem; }
  table.items td.card-head { margin-bottom: 0; }
  table.items td.fb-cell[data-label] { padding-left: 0; }
  table.items td.fb-cell[data-label]::before { display: none; }
  .show-fb { gap: 0.4rem; }
  .show-fb .show-name { min-width: 0; flex-basis: 100%; }
  .detail-feedback, .page-head-actions { gap: 0.5rem; }

  /* items filters collapse (see items/list.html) */
  .filter-box { margin-bottom: 1rem; }
  .filter-box > summary {
    display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.85rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    font-weight: 600; cursor: pointer;
  }
  .filter-box[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .filter-box[open] > .filters { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .filters { padding: 0.6rem 0.8rem 0; }
  .filters .field, .filters .field.grow { flex: 1 1 100%; min-width: 0; }
  .filter-actions { flex: 1 1 100%; }
  .filter-actions > * { flex: 1 1 auto; }
  .job-filters .field { flex: 1 1 40%; }  /* two short selects side by side */

  /* shows: tabs, schedule chips, cover grid, sender lists */
  .subnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .subnav a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .cover-current { flex-direction: column; }
  .cover-thumb-large { width: min(100%, 220px); height: auto; }
  .swatches { gap: 0.25rem; flex-wrap: wrap; }
  .swatch { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .swatch-dot { width: 1.75rem; height: 1.75rem; }
  .sender-list { max-height: 60vh; padding: 0.25rem 0.5rem; }
  .sender-list .option label { min-height: 44px; align-items: center; }
  .sender-list .sender-address, .sender-list .sender-addresses { margin-left: 1.9rem; overflow-wrap: anywhere; }
  .sender-filter { max-width: none; }
  .discovery { padding: 0.5rem 0.65rem; }
  .discovery-list li { flex-direction: column; }
  .discovery-list .actions { width: 100%; margin: 0; }
  .discovery-list .actions > * { flex: 1 1 0; }
  .chip { min-height: 36px; font-size: 0.9rem; }
  .feed-url { flex-wrap: wrap; }
  .feed-url input { flex-basis: 100%; }
  .feed-url button { flex: 1 1 auto; }

  /* settings */
  .field-row .field { flex-basis: 100%; }
  .stats.stats-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-card { padding: 0.7rem 0.75rem; }

  /* episode page: the player stays on screen while you read the transcript */
  .player {
    position: sticky; top: 0; z-index: 10;
    margin-left: calc(-1 * max(0.9rem, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(0.9rem, env(safe-area-inset-right)));
    padding: calc(0.6rem + env(safe-area-inset-top)) max(0.9rem, env(safe-area-inset-right))
             0.6rem max(0.9rem, env(safe-area-inset-left));
    border-radius: 0; border-left: 0; border-right: 0;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.12);
  }
  .player-controls { gap: 0.5rem; }
  .speed { flex: 1 1 100%; }
  .speed button { flex: 1 1 0; min-height: 40px; }
  .player-controls .keys { display: none; }
  .tablist { overflow-x: auto; scrollbar-width: none; }
  .tablist [role="tab"] { flex-shrink: 0; min-height: 44px; }
  .tline { padding: 0.55rem 0.6rem; margin-bottom: 0.2rem; }
  .ep-heading { align-items: flex-start; }
  .ep-heading .cover-thumb { width: 56px; height: 56px; }
  .ep-status progress { width: 100%; flex-basis: 100%; }

  /* auth */
  .auth-card { margin-top: 1.5rem; }
}

@media (max-width: 380px) {
  table:not(.compact) td[data-label] { padding-left: 6rem; }
  table:not(.compact) td[data-label]::before { width: 5.6rem; }
  .brand { font-size: 0.95rem; }
  .cover-grid { gap: 0.45rem; }
}

/* ------------------------------------------------------------------ GPU pause (design §8.1) */
.gpu-pill { display: none; }
.gpu-pill.on {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
  padding: 0.15rem 0.2rem 0.15rem 0.6rem;
  border: 1px solid var(--warn); border-radius: 999px;
  background: var(--warn-bg); color: var(--warn); font-size: 0.85rem;
}
.gpu-pill-label { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; font-weight: 600; }
.gpu-pill form { margin: 0; }
.gpu-pill button { font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 999px; }
.gpu-short { display: none; }
.gpu-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.gpu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.gpu-actions form { margin: 0; }
.gpu-pause-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.gpu-pause-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gpu-pause-label { font-size: 0.9rem; }
.panel.warn .gpu-pause-label { color: var(--warn); }
.gpu-menu { margin: 0.5rem 0 0; padding: 0.5rem 0 0; border-top: 1px solid var(--border); }
.mobile-menu .gpu-menu { display: flex; flex-direction: column; gap: 0.5rem; }
.gpu-menu-status { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 600; }
.gpu-menu form { margin: 0; }

@media (max-width: 720px) {
  .gpu-long { display: none; }
  .gpu-short { display: inline; }
  .gpu-pill.on { padding: 0 0.6rem; min-height: 32px; }
  .gpu-pill form { display: none; }  /* Resume lives in the Menu on phones */
  .gpu-pause-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .gpu-pause-form { width: 100%; }
  .gpu-pause-buttons button, .gpu-menu button, .gpu-actions button { min-height: 44px; font-size: 1rem; }
  .gpu-menu form > button.primary { width: 100%; }
  .gpu-actions { flex-direction: column; align-items: stretch; }
}
