/* Utah Bill Scanner — the visual language of a bill: struck language in red, new language
   underlined, set in a legal-document serif. Everything else stays quiet. */

:root {
  --page: #f3f5f8;
  --paper: #ffffff;
  --ink: #172231;
  --muted: #5a6577;
  --rule: #d3d9e1;
  --rule-soft: #e4e8ee;
  --accent: #1b4f8f;
  --accent-ink: #ffffff;
  --ins: #17734a;
  --del: #b42318;
  --soon: #8a4b00;
  --soon-bg: #fff3dc;
  --soon-rule: #f0c77a;
  --focus: #1b4f8f;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.19rem;
  --step-2: 1.5rem;
  --step-3: 2rem;

  --gutter: 16px;
  --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--step-0)/1.5 var(--sans);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-0); }

p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ the redline */

ins, del { text-decoration-thickness: 1.5px; }
ins { color: var(--ins); text-decoration: underline; text-decoration-color: var(--ins); text-underline-offset: 3px; background: none; }
del { color: var(--del); text-decoration: line-through; text-decoration-color: var(--del); }
.redline del + ins { margin-left: 0.15em; }

/* ------------------------------------------------------------------ chrome */

.topbar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px; min-height: 60px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); }
.brand-ins { color: var(--ins); stroke: var(--ins); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 18px 10px 16px; border-bottom: 3px solid transparent; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: var(--step--1); color: var(--muted); }
.who form { margin: 0; }
.who .user { color: var(--ink); text-decoration: none; font-weight: 600; }
.session-name { border: 1px solid var(--rule); border-radius: 4px; padding: 2px 8px; }
.session-pick select { font-size: var(--step--1); padding: 3px 6px; }

.page { max-width: 1120px; margin: 0 auto; padding: 36px var(--gutter) 80px; }

.page-head, .board-head { margin-bottom: 28px; }
.page-head .lede, .board-head .lede { margin-top: 8px; max-width: var(--measure); color: var(--muted); }
.crumbs { font-size: var(--step--1); margin-bottom: 6px; color: var(--muted); }

.meta { color: var(--muted); font-size: var(--step--1); }
.fine { color: var(--muted); font-size: var(--step--1); margin-top: 10px; max-width: var(--measure); }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; gap: 6px; font: 600 0.93rem/1 var(--sans);
  padding: 10px 16px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #163f73; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); }
.btn.small { padding: 6px 10px; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkish[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.linkish.danger { color: var(--del); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #b9c2ce; border-radius: 6px; padding: 9px 11px; width: 100%;
}
textarea { resize: vertical; font-family: var(--serif); line-height: 1.5; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 0.93rem; }
label.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: var(--step-0); }
label.check input { margin-top: 0.3em; width: 1.05em; height: 1.05em; accent-color: var(--accent); }
.stack { display: grid; gap: 16px; }
form.inline { display: inline; margin: 0; }

.notice, .alert, .saved {
  max-width: var(--measure); padding: 10px 14px; border-radius: 6px; margin-bottom: 20px; border-left: 4px solid;
}
.notice { background: #e9f0f9; border-color: var(--accent); }
.alert { background: #fdecea; border-color: var(--del); }
.saved { background: #e7f4ec; border-color: var(--ins); }

.empty { padding: 28px 0; max-width: var(--measure); }
.empty h2 { margin-bottom: 8px; }
.empty p + p { margin-top: 14px; }
.empty.quiet { color: var(--muted); }

.tag { display: inline-block; font-size: 0.76rem; font-weight: 600; border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; margin-left: 4px; color: var(--muted); vertical-align: 1px; }
.tag-struck { color: var(--del); border-color: #f1b8b2; }

/* ------------------------------------------------------------------ bill identity */

.billno { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
a.billno:hover { color: var(--accent); text-decoration: underline; }
.title { font-family: var(--serif); }
.legal { font-family: var(--serif); line-height: 1.6; max-width: var(--measure); }

/* ------------------------------------------------------------------ sign in */

.page-login { min-height: 100vh; display: grid; place-items: center; padding-top: 0; }
.login { width: min(400px, 100%); }
.login-mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.login h1 { font-size: var(--step-2); }
.login .lede { color: var(--muted); margin: 6px 0 26px; }
.login .btn { justify-content: center; padding: 12px; }

/* ------------------------------------------------------------------ update board */

.board-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.refresh-facts { display: flex; gap: 28px; margin: 0; font-size: var(--step--1); }
.refresh-facts dt { color: var(--muted); }
.refresh-facts dd { margin: 2px 0 0; font-weight: 600; }

.coming-up {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; margin-bottom: 36px;
}
.coming-up h2 { font-size: var(--step-0); margin-bottom: 10px; }
.coming-up ul { list-style: none; margin: 0; padding: 0; }
.coming-up li {
  display: grid; grid-template-columns: 13rem 5.5rem 1fr; gap: 4px 14px; padding: 8px 10px; border-radius: 5px; align-items: baseline;
}
.coming-up li + li { border-top: 1px solid var(--rule-soft); }
.coming-up li .committee { grid-column: 3; color: var(--muted); font-size: var(--step--1); }
.coming-up li.soon { background: var(--soon-bg); border-top-color: transparent; }
.coming-up li.soon .when strong { color: var(--soon); }
.coming-up .more { margin-top: 10px; font-size: var(--step--1); }

.refresh-group { display: grid; grid-template-columns: 7rem 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.refresh-time { font-family: var(--sans); font-size: var(--step-0); color: var(--muted); font-weight: 600; padding-top: 2px; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.change-bill { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.change-bill .title { font-size: var(--step-1); }
.change-lines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.change-lines li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; align-items: baseline; }
/* a status move: the location is the headline, the action underneath */
.move-action { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 1px; }

.kind { font-size: var(--step--1); font-weight: 600; color: var(--muted); }

.kind-hearingscheduled .kind, .kind-hearingremoved .kind { color: var(--soon); }
.kind-newversion .kind, .kind-statuschanged .kind { color: var(--accent); }
.kind-newmatch .kind, .kind-numbered .kind { color: var(--ins); }
.kind-nolongermatching .kind { color: var(--del); }

/* ------------------------------------------------------------------ bill list */

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.filters .filter-select { width: 15rem; }
.filters .filter-search { flex: 1 1 16rem; }
.filters .filter-sort { width: 12rem; }
.result-count { margin-bottom: 6px; }
.all-bills .list-cell { white-space: nowrap; }
.all-bills .list-cell form { display: inline-flex; gap: 8px; align-items: baseline; }
.on-list { display: block; font-size: var(--step--1); color: var(--ins); font-weight: 600; margin-bottom: 4px; }
.small-link { font-size: var(--step--1); }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: var(--step--1); color: var(--muted); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
td .meta, td .status { display: block; }

table.bills { background: transparent; }
.bills .bill-cell { width: 40%; }
.bills .bill-cell .title { display: block; font-size: 1.06rem; margin: 2px 0; }
.bills tr.soon td { background: var(--soon-bg); }
.bills tr.soon td:first-child { box-shadow: inset 4px 0 0 var(--soon-rule); padding-left: 12px; }
.bills tr.soon .countdown { color: var(--soon); }
.bills tr.dim { opacity: 0.6; }
.changed-tag { display: block; margin-top: 6px; font-size: var(--step--1); color: var(--accent); font-weight: 600; }
.countdown { display: block; }
.flag { display: inline-block; font-size: var(--step--1); font-weight: 700; }
.flag-priority { color: var(--del); }
.flag-watching { color: var(--accent); }
.flag-notrelevant { color: var(--muted); }
.note-snip { display: block; font-family: var(--serif); font-size: var(--step--1); color: var(--muted); margin-top: 4px; font-style: italic; }

/* ------------------------------------------------------------------ bill page */

.bill-head { margin-bottom: 30px; max-width: 60rem; }
.bill-head h1 { display: grid; gap: 4px; }
.billno-lg { font-family: var(--sans); font-size: var(--step-0); letter-spacing: 0.03em; color: var(--muted); }
.bill-title { font-size: var(--step-3); }
.sponsor { color: var(--muted); margin-top: 8px; }
.whereis { margin-top: 16px; display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.whereis-label { font-size: var(--step--1); color: var(--muted); width: 100%; }
.whereis strong { font-family: var(--serif); font-size: var(--step-1); }
.links { margin-top: 10px; font-size: var(--step--1); }

.bill-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 48px; align-items: start; }
.bill-section { padding: 22px 0; border-top: 1px solid var(--rule); }
.bill-section h2 { margin-bottom: 12px; }
.bill-section h3 { margin: 16px 0 6px; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }

.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: grid; grid-template-columns: 10rem 8.5rem 1fr; gap: 12px; align-items: baseline; }
.history time { font-size: var(--step--1); color: var(--muted); }

.matches .snippet { font-size: 0.95rem; }
.matches td:first-child { white-space: nowrap; font-weight: 600; }

.versions { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.versions > li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--rule); margin-left: 6px; }
.versions > li:last-child { border-left-color: transparent; }
.versions > li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.version-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.version-name { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; }
.step-summary { margin: 4px 0; color: var(--muted); font-size: 0.95rem; }
.delta { margin: 2px 0; font-weight: 600; font-size: 0.95rem; }
.delta-out { color: var(--del); }
.delta-in { color: var(--ins); }
.versions .btn { margin-top: 6px; }

.compare-pick { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0 24px; }
.compare-pick label:not(.check) { min-width: 14rem; }
.compare-pick .check { align-self: center; padding-top: 18px; }

.hearing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hearing-list li { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; }
.hearing-list .when { min-width: 13rem; font-weight: 600; }
.hearing-list li.upcoming .when { color: var(--soon); }

.actions td { font-size: 0.95rem; }
.docs { margin: 0; padding-left: 18px; }
.docs li { margin: 3px 0; }

.bill-side { position: sticky; top: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 18px; }
.bill-side h2 { font-size: var(--step-0); }
.bill-side .meta { margin: 2px 0 14px; }
.flag-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.choice input { accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #eef3fa; }
.choice.flag-priority:has(input:checked) { border-color: var(--del); background: #fdf0ee; }

/* ------------------------------------------------------------------ compare */

.compare-summary { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; display: grid; gap: 6px; margin-bottom: 26px; max-width: 60rem; }
.summary-line { font-family: var(--serif); font-size: var(--step-1); }
.legend { color: var(--muted); font-size: var(--step--1); margin-top: 4px; }

.diff { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.diff-item { padding: 16px 0 18px; border-top: 1px solid var(--rule-soft); }
.diff-item h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-family: var(--sans); font-size: 0.95rem; margin-bottom: 6px; }
.diff-where { font-weight: 700; }
.diff-item.touches { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
.diff-item .legal { font-size: 1.04rem; }

/* ------------------------------------------------------------------ hearings */

.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.agenda-day h2 { font-size: var(--step-1); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.agenda-day.soon h2 { color: var(--soon); border-bottom: 2px solid var(--soon-rule); }
.agenda-day ul { list-style: none; margin: 0; padding: 0; }
.agenda-day li { display: grid; grid-template-columns: 6rem 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.agenda-day .when { font-weight: 700; }
.agenda-body .title { font-size: 1.06rem; margin-left: 8px; }
.agenda-body .meta { display: block; margin-top: 2px; }
.sub-h { margin: 40px 0 10px; }
.past-hearings { list-style: none; padding: 0; margin: 0; }
.past-hearings li { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; padding: 6px 0; color: var(--muted); }

/* ------------------------------------------------------------------ watch list */

.watch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.watch-col h2 { margin-bottom: 6px; }
.watch-col > .meta { margin-bottom: 14px; max-width: 46ch; }
.terms { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--rule-soft); }
.terms li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); }
.toggle { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.toggle .box { width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 4px; flex: none; position: relative; }
.toggle[aria-pressed=true] .box { background: var(--accent); }
.toggle[aria-pressed=true] .box::after { content: ""; position: absolute; left: 4px; top: 0px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.terms li.off .term { color: var(--muted); }
.term { font-family: var(--serif); font-size: 1.04rem; }
.remove { font-size: var(--step--1); color: var(--muted); }
.add-term { display: flex; gap: 8px; }
.options { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: var(--measure); }
.options h2 { margin-bottom: 12px; }

/* ------------------------------------------------------------------ account and admin */

.narrow { max-width: 30rem; }
.narrow h2 { margin-bottom: 14px; }

.refresh-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; margin-bottom: 36px; }
.refresh-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }

/* The automatic-refresh switch */
.mode-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: start; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--rule-soft); }
.mode-form { margin: 0; }
.switch { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); cursor: pointer; }
.switch-track { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #b9c2ce; flex: none; transition: background 0.15s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(23, 34, 49, 0.3); transition: left 0.15s; }
.switch[aria-checked=true] .switch-track { background: var(--ins); }
.switch[aria-checked=true] .switch-thumb { left: 23px; }
.switch-label { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); }
.switch-state { font-weight: 700; font-size: var(--step--1); color: var(--muted); min-width: 2em; }
.switch[aria-checked=true] .switch-state { color: var(--ins); }
.mode-text { max-width: 60ch; color: var(--ink); padding-top: 6px; }
.mode-text .meta { display: block; margin-top: 4px; }

.session-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--rule-soft); max-width: 36rem; }
.session-list li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.session-list li form { margin-left: auto; }
.special-session { margin-top: 14px; max-width: 30rem; }
.special-session summary { cursor: pointer; color: var(--accent); font-size: var(--step--1); }
.special-session form { margin-top: 10px; }
.refresh-now h2 { margin-bottom: 8px; }
.refresh-now p { margin-bottom: 14px; max-width: 48ch; }
.running { font-weight: 600; color: var(--accent); }
.facts { margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

.admin-block { margin-bottom: 36px; }
.admin-block h2 { margin-bottom: 12px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; max-width: 30rem; }
.inline-form label { flex: 1; }
.runs td { font-size: 0.93rem; }
.run-msg { color: var(--muted); max-width: 32rem; }
.run-failed td:nth-child(3) { color: var(--del); font-weight: 700; }
.run-completedwithwarnings td:nth-child(3) { color: var(--soon); font-weight: 700; }

.users { margin-bottom: 36px; }
.row-actions { display: flex; gap: 16px; justify-content: flex-end; }
.handover { background: var(--paper); border: 2px solid var(--ins); border-radius: 8px; padding: 16px 18px; margin-bottom: 24px; max-width: 40rem; }
.handover .password { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1.25rem; margin-top: 8px; user-select: all; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .bill-layout { grid-template-columns: 1fr; }
  .bill-side { position: static; order: -1; }
  .refresh-cols, .watch-cols, .mode-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --step-3: 1.6rem; }
  .page { padding-top: 24px; }
  .topbar-inner { gap: 6px 16px; padding-top: 8px; }
  .who { margin-left: 0; width: 100%; order: 3; padding-bottom: 8px; }
  .nav { order: 2; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav { gap: 0; }
  .nav a { padding: 10px 6px 8px; white-space: nowrap; font-size: 0.9rem; }

  .refresh-group { grid-template-columns: 1fr; gap: 8px; }
  .change-lines li, .history li { grid-template-columns: 1fr; gap: 0; }
  .coming-up li { grid-template-columns: 1fr; }
  .coming-up li .committee { grid-column: 1; }
  .agenda-day li { grid-template-columns: 4.5rem 1fr; }
  .agenda-link { grid-column: 2; }

  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  td { border: 0; padding: 3px 0; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 0.76rem; color: var(--muted); font-weight: 600; }
  .bills td.bill-cell { width: auto; }
  .bills tr.soon { background: var(--soon-bg); padding-left: 10px; box-shadow: inset 4px 0 0 var(--soon-rule); }
  .bills tr.soon td { background: none; box-shadow: none; padding-left: 0; }
  .row-actions { justify-content: flex-start; }
  .add-term, .inline-form { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .switch-track, .switch-thumb { transition: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .topbar, .filters, .bill-side, .btn, form { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
}
