:root {
  --bg: #f7f6f3;
  --bg-warm: #fff8ef;
  --panel: #ffffff;
  --panel-tint: #fffcf8;
  --text: #22212b;
  --muted: #746f7d;
  --muted-strong: #575162;
  --line: #e3ded8;
  --line-strong: #cfc6bd;
  --navy: #252033;
  --accent: #d95757;
  --accent-strong: #b83f50;
  --accent-soft: #fff0ed;
  --accent-wash: #fff8f6;
  --teal: #0f766e;
  --teal-strong: #0b5f59;
  --teal-soft: #e5f6f1;
  --teal-wash: #f4fbf8;
  --plum: #6d4aff;
  --plum-soft: #f0edff;
  --success: #287a46;
  --success-soft: #ebf7ef;
  --warning: #b36b16;
  --warning-soft: #fff3dd;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --archive: #5c6470;
  --archive-soft: #f0f2f4;
  --focus: #f7a5a2;
  --shadow-sm: 0 1px 2px rgba(50, 42, 36, .06);
  --shadow-md: 0 14px 38px rgba(50, 42, 36, .11);
  --shadow-lg: 0 28px 76px rgba(50, 42, 36, .15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(217, 87, 87, .16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(15, 118, 110, .15), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 239, .92) 0, rgba(247, 246, 243, 0) 310px),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal-strong); text-decoration: none; font-weight: 750; }
a:hover { text-decoration: underline; }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 20px 14px;
  background: rgba(255, 252, 248, .78);
  border-right: 1px solid rgba(227, 222, 216, .82);
  backdrop-filter: blur(18px);
}
.brand {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-weight: 850;
  letter-spacing: 0;
  font-size: 20px;
}
.brand:hover { text-decoration: none; }
.brand::before {
  content: "";
  width: 14px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.side-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}
.side-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 760;
}
.side-nav a:hover {
  background: rgba(255, 255, 255, .74);
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}
.nav-dot.coral { background: var(--accent); }
.nav-dot.teal { background: var(--teal); }
.nav-dot.gray { background: var(--archive); }
.nav-dot.plum { background: var(--plum); }
.nav-dot.amber { background: var(--warning); }
.side-foot {
  display: grid;
  gap: 10px;
}
.user-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-tint);
  box-shadow: var(--shadow-sm);
}
.user-card strong, .user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card strong { color: var(--navy); font-size: 14px; }
.user-card small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  font-weight: 850;
  text-transform: uppercase;
}
.content { width: min(1180px, calc(100% - 48px)); margin: 34px auto 72px; }
.page-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.board-switcher select {
  min-width: 220px;
  background: rgba(255,255,255,.82);
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.help-text { max-width: 720px; margin: 0; color: var(--muted-strong); line-height: 1.55; font-size: 16px; }
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(217, 87, 87, .20), transparent 32%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, .18), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 239, .95), rgba(229, 246, 241, .76) 52%, rgba(255, 240, 237, .7)),
    var(--bg);
}
.login {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.login .title { font-size: 42px; }
.login-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 14px 34px rgba(184, 63, 80, .20);
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.sidebar { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); align-items: start; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 16px;
  align-items: start;
}
.panel {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(227, 222, 216, .86);
  border-radius: 13px;
  padding: 21px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.panel.emphasis {
  border-color: #f3bbb6;
  background: linear-gradient(180deg, #ffffff, var(--accent-wash));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.panel.emphasis .big-number {
  color: var(--navy);
  letter-spacing: -.02em;
}
.panel.emphasis::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.panel.emphasis:has(.status.open_discussion)::before { background: var(--teal); }
.panel.emphasis:has(.status.vote_open), .panel.emphasis:has(.status.deferred) { border-color: #edcb91; background: linear-gradient(180deg, #fff, #fff8ee); }
.panel.emphasis:has(.status.vote_open)::before, .panel.emphasis:has(.status.deferred)::before { background: var(--warning); }
.panel.emphasis:has(.status.approved), .panel.emphasis:has(.status.archived) { border-color: #b8dcc4; background: linear-gradient(180deg, #fff, #f5fbf7); }
.panel.emphasis:has(.status.approved)::before, .panel.emphasis:has(.status.archived)::before { background: var(--success); }
.panel.emphasis:has(.status.rejected), .panel.emphasis:has(.status.pending_info) { border-color: #f3b8b2; background: linear-gradient(180deg, #fff, #fff7f5); }
.panel.emphasis:has(.status.rejected)::before, .panel.emphasis:has(.status.pending_info)::before { background: var(--danger); }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.stack.loose { gap: 18px; }
.muted { color: var(--muted); }
.title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 850;
}
.section-title { margin: 0; color: var(--navy); font-size: 18px; line-height: 1.25; font-weight: 820; }
.big-number { font-size: 34px; line-height: 1; font-weight: 800; margin: 8px 0 0; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.55);
}
.status.open_discussion { background: var(--teal-soft); color: var(--teal-strong); border-color: #b8ded8; }
.status.vote_open, .status.deferred { background: var(--warning-soft); color: #8a5a12; border-color: #efd28b; }
.status.archived { background: var(--archive-soft); color: var(--archive); border-color: #cbd5e1; }
.status.approved { background: var(--success-soft); color: var(--success); border-color: #b8dec2; }
.status.rejected, .status.pending_info { background: var(--danger-soft); color: var(--danger); border-color: #f1bbb5; }
.callout {
  border: 1px solid #f1bcb8;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 14px 16px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.callout.info { border-color: #b8ded8; border-left-color: var(--teal); background: var(--teal-soft); }
.callout.warning { border-color: #efd28b; border-left-color: var(--warning); background: var(--warning-soft); }
.callout.success { border-color: #b8dec2; border-left-color: var(--success); background: var(--success-soft); }
.callout strong { display: block; margin-bottom: 3px; }
.empty {
  border: 1px dashed #cfc6bd;
  border-radius: 10px;
  padding: 18px;
  background: rgba(255,255,255,.52);
  color: var(--muted-strong);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.step {
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.step.active { border-color: #f0aaa5; background: var(--accent-soft); color: var(--accent-strong); box-shadow: 0 10px 26px rgba(217, 87, 87, .13); }
.step.done { border-color: #acd9bf; background: var(--success-soft); color: var(--success); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.choice-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.choice-card:hover { border-color: #90d0c6; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 10px 26px rgba(217, 87, 87, .13); }
.choice-card input { width: auto; min-height: auto; }
.choice-card span { color: var(--text); font-weight: 750; }
.meta-list { display: grid; gap: 9px; }
.meta-list div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1f6; padding-bottom: 8px; }
.meta-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list dt, .meta-list span:first-child { color: var(--muted); }
.list-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,.58);
}
a.list-card:hover { text-decoration: none; background: rgba(229, 246, 241, .42); }
.action-list {
  display: grid;
  gap: 10px;
}
.action-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.action-card.teal::before { background: var(--teal); }
.action-card.warning::before { background: var(--warning); }
.action-card.danger::before { background: var(--danger); }
.action-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.88);
}
.action-card strong,
.action-card span,
.action-card small {
  display: block;
}
.action-card strong { color: var(--navy); font-size: 16px; }
.action-card span span { color: var(--muted-strong); margin-top: 2px; font-weight: 650; }
.action-card small { color: var(--muted); margin-top: 6px; font-weight: 650; }
.queue-board {
  display: grid;
  gap: 14px;
}
.queue-section {
  padding: 18px;
}
.queue-list,
.attention-grid {
  display: grid;
  gap: 10px;
}
.attention-panel {
  margin-bottom: 16px;
  border-color: #edcb91;
  background: linear-gradient(180deg, #fff, #fff8ee);
}
.queue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.queue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.queue-card.teal::before { background: var(--teal); }
.queue-card.warning::before { background: var(--warning); }
.queue-card.danger::before { background: var(--danger); }
.queue-card.overdue {
  border-color: #f1bbb5;
  background: linear-gradient(180deg, #fff, #fff7f5);
}
.queue-card.overdue::before { background: var(--danger); }
.queue-card.due-today {
  border-color: #f1bcb8;
  background: linear-gradient(180deg, #fff, var(--accent-soft));
}
.queue-card.due-today::before { background: var(--accent); }
.queue-card.due-soon {
  border-color: #efd28b;
  background: linear-gradient(180deg, #fff, #fff8ee);
}
.queue-card.due-soon::before { background: var(--warning); }
.queue-card.due-later {
  border-color: #cfe6dc;
  background: linear-gradient(180deg, #fff, rgba(245, 251, 247, .76));
}
.queue-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.9);
}
.queue-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
}
.queue-main:hover { text-decoration: none; }
.queue-main strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}
.queue-main > span:last-child {
  color: var(--muted-strong);
  font-size: 14px;
}
.queue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1px;
}
.due-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}
.due-inline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
}
.due-inline.overdue { color: var(--danger); }
.due-inline.overdue::before { background: var(--danger); }
.due-inline.due-today { color: var(--accent-strong); }
.due-inline.due-today::before { background: var(--accent); }
.due-inline.due-soon { color: #8a5a12; }
.due-inline.due-soon::before { background: var(--warning); }
.due-inline.due-later { color: var(--success); }
.due-inline.due-later::before { background: var(--success); }
.due-inline.no-due { color: var(--muted); }
.queue-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.queue-card.teal .queue-label { color: var(--teal-strong); }
.queue-card.warning .queue-label { color: #8a5a12; }
.queue-card.danger .queue-label { color: var(--danger); }
.queue-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.compact-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.empty.compact {
  padding: 14px;
}
.quick-action {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.56);
  color: var(--navy);
}
.quick-action:hover {
  text-decoration: none;
  background: var(--teal-soft);
  border-color: #b8ded8;
}
.quick-action.primary {
  background: linear-gradient(180deg, #ec7468, var(--accent-strong));
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 87, 87, .18);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric-strip div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.56);
}
.metric-strip strong { color: var(--navy); font-size: 26px; line-height: 1; }
.metric-strip span { color: var(--muted); font-size: 13px; font-weight: 760; }
.minutes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr);
  gap: 16px;
  align-items: start;
}
.minutes-report {
  gap: 20px;
  padding: 26px;
  background: rgba(255,255,255,.9);
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.report-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}
.report-section {
  display: grid;
  gap: 10px;
}
.report-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.report-section p {
  margin: 0;
  line-height: 1.62;
}
.report-lede {
  font-size: 18px;
  color: var(--navy);
}
.report-grid,
.vote-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.report-grid div,
.vote-totals div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.62);
}
.report-grid span,
.vote-totals span,
.report-defs dt,
.minute-notes span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.report-grid strong,
.vote-totals strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}
.report-defs {
  display: grid;
  gap: 8px;
  margin: 0;
}
.report-defs div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.report-defs div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.report-defs dd {
  margin: 0;
  color: var(--navy);
  font-weight: 780;
  text-align: right;
}
.motion-block {
  margin: 0;
  padding: 16px 18px;
  border-left: 5px solid var(--teal);
  border-radius: 0 11px 11px 0;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 680;
}
.vote-roll,
.minute-notes {
  display: grid;
  gap: 8px;
}
.vote-roll > div,
.minute-notes > div {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.58);
}
.vote-roll > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
}
.vote-roll span,
.minute-notes strong {
  color: var(--navy);
  font-weight: 780;
}
.vote-roll strong {
  color: var(--accent-strong);
  text-align: right;
}
.vote-roll small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.vote-roll p,
.minute-notes p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
}
.download-card {
  border-color: #b8dcc4;
  background: linear-gradient(180deg, #fff, #f5fbf7);
}
.comment {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,.58);
}
label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 14px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 1px rgba(18, 35, 52, .03);
}
input:focus, select:focus, textarea:focus, button:focus, .button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
textarea { min-height: 110px; resize: vertical; }
button, .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #ec7468, var(--accent-strong));
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(217, 87, 87, .20);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.button:hover, button:hover { filter: brightness(1.01); text-decoration: none; transform: translateY(-1px); }
.button.secondary, button.secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.button.danger, button.danger { background: linear-gradient(180deg, #c73a2d, var(--danger)); border-color: var(--danger); box-shadow: 0 8px 18px rgba(180, 35, 24, .14); }
.button.full, button.full { width: 100%; }
.check-label { display: flex; gap: 9px; align-items: center; color: var(--text); }
.check-label input { width: auto; min-height: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted-strong); font-size: 12px; font-weight: 820; background: rgba(255,248,239,.66); text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: rgba(229, 246, 241, .38); }
tr:last-child td { border-bottom: 0; }
.error { color: var(--danger); background: var(--danger-soft); border: 1px solid #ffd0d0; padding: 10px; border-radius: 8px; }
.timeline { display: grid; gap: 8px; }
.timeline div { padding: 11px 12px; border-left: 4px solid var(--line-strong); border-radius: 0 8px 8px 0; background: rgba(255,255,255,.58); }
.history-list {
  display: grid;
  gap: 0;
}
.history-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 0 0 18px;
}
.history-item::before {
  content: "";
  position: absolute;
  top: 21px;
  bottom: -1px;
  left: 9px;
  width: 2px;
  background: var(--line);
}
.history-item:last-child {
  padding-bottom: 0;
}
.history-item:last-child::before {
  display: none;
}
.history-marker {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line), 0 8px 16px rgba(18, 35, 52, .08);
  z-index: 1;
}
.history-item.teal .history-marker { background: var(--teal); }
.history-item.warning .history-marker { background: var(--warning); }
.history-item.success .history-marker { background: var(--success); }
.history-item.neutral .history-marker { background: var(--line-strong); }
.history-content {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  background: rgba(255,255,255,.62);
}
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.history-meta strong {
  color: var(--navy);
}
.history-meta span,
.system-event span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.history-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.system-event {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.58);
}
.system-event strong {
  color: var(--navy);
  font-size: 14px;
}
@media (max-width: 760px) {
  .grid.two, .grid.three, .grid.sidebar, .choice-grid, .steps, .dashboard-hero, .minutes-layout, .report-grid, .vote-totals { grid-template-columns: 1fr; }
  .queue-card { grid-template-columns: 1fr; }
  .queue-side { justify-items: start; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    min-height: auto;
    position: static;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .side-foot { display: none; }
  .content { width: min(100% - 24px, 1180px); margin-top: 22px; }
  .title { font-size: 30px; }
}
