/* Member Support Portal: mobile first, enhanced for wide screens. */

:root {
  --ink: #1c2127;
  --slate: #586273;
  --line: #d7dce2;
  --canvas: #eef1f4;
  --surface: #ffffff;
  --red: #a3141d;
  --red-ink: #ffffff;
  --red-wash: #f8e8e9;
  --focus: #1d5fd1;

  /* Confidence ramp: the portal's one bold device. */
  --r1: #c0392b;
  --r2: #e07b39;
  --r3: #e3b341;
  --r4: #7dae48;
  --r5: #2f8a57;

  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.333rem;
  --step-3: 1.777rem;
  --nav-h: 64px;
  --tap: 48px;
}

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

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

body {
  margin: 0;
  font: 400 var(--step-0)/1.55 var(--font);
  color: var(--ink);
  background: var(--canvas);
  min-height: 100dvh;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: var(--step-3); letter-spacing: -.01em; }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-0); margin-top: 1rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--red); text-underline-offset: .15em; }
small { font-size: .875rem; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 14px; height: 32px; flex: none;
  background: var(--red);
  border-radius: 2px 2px 2px 10px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--step-1); line-height: 1.2; }
.brand-text small { color: var(--slate); line-height: 1.2; }

.who { display: flex; align-items: center; gap: .75rem; flex: none; }
.who-name { display: none; color: var(--slate); }
.who form { margin: 0; }

/* Bottom tab bar on phones: thumb reach. */
.areas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.area-link {
  flex: 1; min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--slate); text-decoration: none; font-size: .8rem;
  border-top: 3px solid transparent;
}
.area-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area-link[aria-current="page"] { color: var(--red); border-top-color: var(--red); font-weight: 700; }

.main { padding: 1.25rem 1rem 2rem; max-width: 72rem; margin: 0 auto; }
.with-nav .main { padding-bottom: calc(var(--nav-h) + 2rem + env(safe-area-inset-bottom)); }

.lede { font-size: var(--step-1); color: var(--slate); }
.muted, .hint { color: var(--slate); }
.hint { font-size: .9rem; }
.narrow, .auth { max-width: 28rem; margin: 2rem auto; }
.back { display: inline-block; margin-bottom: .75rem; color: var(--slate); text-decoration: none; }
.back::before { content: "‹ "; }

.flash {
  background: var(--surface); border-left: 4px solid var(--r5);
  padding: .75rem 1rem; margin: 0 0 1.25rem; max-width: none;
}
.alert {
  background: var(--red-wash); border-left: 4px solid var(--red);
  padding: .75rem 1rem; margin: 0 0 1.25rem;
}
.alert ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.alert p { margin: 0; }
.note { background: var(--surface); border: 1px solid var(--line); padding: .6rem .9rem; border-radius: 6px; }
.empty { color: var(--slate); padding: 1.25rem; border: 1px dashed var(--line); border-radius: 8px; }

/* ------------------------------------------------------------ buttons & fields */

.btn, .btn-secondary, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .5rem 1.25rem;
  font: 700 var(--step-0)/1.2 var(--font);
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn { background: var(--red); color: var(--red-ink); }
.btn:hover { background: #8a1018; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--slate); }
.btn-danger { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn-block { width: 100%; }
.btn-quiet {
  background: none; border: 0; padding: .5rem; min-height: 40px;
  font: inherit; color: var(--slate); text-decoration: underline; cursor: pointer;
}
.btn-quiet.danger { color: var(--red); }

.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.opt { font-weight: 400; font-style: normal; color: var(--slate); font-size: .875rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input:not([type]), textarea {
  width: 100%; min-height: var(--tap);
  font: inherit; color: inherit;
  padding: .6rem .75rem;
  background: var(--surface);
  border: 1.5px solid #b8c0ca; border-radius: 8px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgb(29 95 209 / .2); }
.input-short { max-width: 9rem; }
.error { display: block; color: var(--red); font-size: .9rem; margin-top: .3rem; }
.error:empty { display: none; }

.code-input { font-size: 1.75rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; align-items: center; margin-top: 1rem; }

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

.choices { display: grid; gap: .75rem; }
.choice {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  width: 100%; min-height: 72px; padding: .9rem 1rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; cursor: pointer;
}
.choice:hover { border-color: var(--red); }
.choice svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--slate); }
.help { margin-top: 2rem; color: var(--slate); font-size: .95rem; }

/* ------------------------------------------------------------ member area */

.tools { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.tool {
  display: grid; gap: .35rem; padding: 1.1rem 1.2rem;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 4px 10px 10px 4px;
}
.tool:hover { border-color: var(--slate); border-left-color: var(--red); }
.tool-title { font-weight: 700; font-size: var(--step-2); }
.tool-desc { color: var(--slate); }

.status { display: inline-block; font-size: .85rem; padding: .1rem .55rem; border-radius: 999px; justify-self: start; white-space: nowrap; }
.status-todo { background: var(--canvas); color: var(--slate); border: 1px solid var(--line); }
.status-draft { background: #fdf3dc; color: #7a5a06; }
.status-done { background: #e3f1e8; color: #1f6040; }

/* The form */
.tna { margin-top: 1rem; }
.progress { position: sticky; top: 58px; z-index: 4; height: 5px; background: var(--line); margin: 0 -1rem 1rem; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s ease; }

.q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1rem 1.25rem; margin-bottom: 1rem; }
.q h2 { display: flex; align-items: baseline; gap: .6rem; font-size: var(--step-2); }
.qn { color: var(--red); font-variant-numeric: tabular-nums; }
.q-ask { color: var(--slate); }

.pills, .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pill, .chip { position: relative; }
.pill input, .chip input, .rating-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span, .chip span {
  display: flex; align-items: center; min-height: var(--tap); padding: .4rem 1rem;
  border: 1.5px solid #b8c0ca; border-radius: 999px; background: var(--surface); cursor: pointer;
}
.chip span::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-right: .55rem;
  border: 1.5px solid #8d97a3; border-radius: 4px; background: var(--surface);
}
.pill input:checked + span, .chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff; background: #fff;
  background-image: linear-gradient(45deg, transparent 45%, var(--ink) 45% 58%, transparent 58%), linear-gradient(-45deg, transparent 47%, var(--ink) 47% 60%, transparent 60%);
  background-size: 60% 60%, 100% 100%; background-repeat: no-repeat; background-position: 15% 75%, 0 0;
}
.pill input:focus-visible + span, .chip input:focus-visible + span, .rating-opts input:focus-visible + span {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.scale-key { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--slate); margin-bottom: .5rem; }
.scale-key b { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 4px; color: #fff; font-size: .8rem; margin-right: .2rem; }
.scale-key .r1 { background: var(--r1); } .scale-key .r3 { background: var(--r3); color: var(--ink); } .scale-key .r5 { background: var(--r5); }

.ratings { display: grid; margin-bottom: 1.25rem; }
.rating { display: grid; gap: .45rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.rating-label { font-weight: 700; }
.rating-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.rating-opts label { position: relative; }
.rating-opts span {
  display: grid; place-items: center; min-height: var(--tap);
  border: 1.5px solid #b8c0ca; border-radius: 8px; background: var(--surface);
  font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.rating-opts .r1 input:checked + span { background: var(--r1); border-color: var(--r1); color: #fff; }
.rating-opts .r2 input:checked + span { background: var(--r2); border-color: var(--r2); color: #fff; }
.rating-opts .r3 input:checked + span { background: var(--r3); border-color: var(--r3); color: var(--ink); }
.rating-opts .r4 input:checked + span { background: var(--r4); border-color: var(--r4); color: #fff; }
.rating-opts .r5 input:checked + span { background: var(--r5); border-color: var(--r5); color: #fff; }
.rating.unanswered .rating-label::after { content: " · needed"; color: var(--red); font-weight: 400; }

.sticky-actions {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  margin: 0 -1rem; padding: .75rem 1rem; z-index: 3;
}
.no-nav .sticky-actions { bottom: 0; }
.sticky-actions .btn, .sticky-actions .btn-secondary { flex: 1; }
.save-state { flex-basis: 100%; font-size: .85rem; color: var(--slate); text-align: right; }
.save-state:empty { display: none; }

/* ------------------------------------------------------------ committee */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1rem; margin-bottom: 1rem; min-width: 0; }
.split { display: grid; gap: 0 1rem; }

.people { list-style: none; padding: 0; margin: 0; }
.people li + li { border-top: 1px solid var(--line); }
.person {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem .75rem;
  padding: .75rem 0; color: inherit; text-decoration: none;
}
a.person:hover .person-name { color: var(--red); }
.person-name { font-weight: 700; }
.person .status { grid-column: 1; }
.person .muted { grid-column: 1; font-size: .9rem; }
.avg { grid-column: 2; grid-row: 1 / span 2; font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--slate); }

.dist { list-style: none; padding: 0; margin: 0; }
.dist li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.dist-label { font-size: .95rem; }
.dist-avg { font-weight: 700; font-variant-numeric: tabular-nums; }
.dist-bar { grid-column: 1 / -1; width: 100%; height: 12px; border-radius: 3px; background: var(--canvas); }
.f1 { fill: var(--r1); background: var(--r1); color: #fff; }
.f2 { fill: var(--r2); background: var(--r2); color: #fff; }
.f3 { fill: var(--r3); background: var(--r3); color: var(--ink); }
.f4 { fill: var(--r4); background: var(--r4); color: #fff; }
.f5 { fill: var(--r5); background: var(--r5); color: #fff; }

.counts { padding: 0; margin: 0; list-style: none; }
.counts li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.counts b { font-variant-numeric: tabular-nums; }

.wide-only { display: none; }
.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: separate; border-spacing: 3px; font-size: .9rem; }
.matrix th { font-weight: 400; text-align: left; padding: .25rem .5rem .25rem 0; white-space: nowrap; }
.matrix thead th { writing-mode: vertical-rl; transform: rotate(180deg); padding: .5rem 0; vertical-align: bottom; }
.matrix thead th:first-child { writing-mode: horizontal-tb; transform: none; }
.matrix td { width: 2rem; height: 2rem; text-align: center; font-weight: 700; border-radius: 4px; }
:where(.matrix td) { background: var(--canvas); } /* zero specificity so .f1–.f5 win */
.matrix thead a { text-decoration: none; color: var(--ink); }

.contact { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.history { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; color: var(--slate); }
.history a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); }
.history a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.answers .priority { border-left: 5px solid var(--red); }
.question { color: var(--slate); font-size: .95rem; margin: 1rem 0 .3rem; }
.panel h2 + .question { margin-top: 0; }
.no-answer { color: var(--slate); font-style: italic; margin: 0; }

.written + .written { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.written h3 { margin: 0 0 .5rem; font-size: var(--step-0); }
.written h3 .muted { display: block; font-weight: 400; font-size: .85rem; }
.written-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.written-list li { padding: .6rem .8rem; background: var(--canvas); border-radius: 8px; }
.written-who { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: .15rem; }
.quote { white-space: pre-line; margin: 0; }
.scores { list-style: none; padding: 0; margin: 0; }
.scores li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.scores b { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 6px; }
:where(.scores b) { background: var(--canvas); }
.tags { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .25rem .7rem; border-radius: 999px; background: var(--canvas); font-size: .95rem; }

/* ------------------------------------------------------------ admin */

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search] { flex: 1 1 14rem; width: auto; }
.toggle { margin-left: auto; }

/* Tables become stacked records on phones. */
.list { width: 100%; border-collapse: collapse; }
.list thead { display: none; }
.list tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin-bottom: .6rem; }
.list td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .2rem 0; overflow-wrap: anywhere; }
.list td::before { content: attr(data-k); color: var(--slate); font-size: .9rem; }
.list td:first-child { font-weight: 700; }

.badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge { font-size: .8rem; padding: .1rem .5rem; border-radius: 4px; background: var(--canvas); border: 1px solid var(--line); }
.badge-admin { background: var(--red-wash); border-color: #ecc4c7; color: var(--red); }
.badge-committee { background: #e6eefb; border-color: #c4d4f1; color: #234f9c; }

.form-grid { display: grid; gap: 0 1rem; }
.switches { display: grid; gap: .5rem; }
.switch { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.switch input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--red); }
.switch span { display: flex; flex-direction: column; }
.switch small { color: var(--slate); }

.danger-zone { margin-top: 2.5rem; padding: 1rem; border: 1.5px solid #ecc4c7; border-radius: 12px; background: var(--surface); }

.steps { padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.steps h2::before { content: counter(step) ". "; color: var(--red); }
.upload { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.upload input[type=file] { flex: 1 1 14rem; font: inherit; }

.summary { display: flex; flex-wrap: wrap; gap: .5rem; }
.tally { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .9rem; background: var(--canvas); }
.tally-add { background: #e3f1e8; color: #1f6040; }
.tally-update, .tally-restore { background: #e6eefb; color: #234f9c; }
.tally-skip { background: var(--red-wash); color: var(--red); }
.commit { margin-top: 1.25rem; }

.domains { list-style: none; padding: 0; margin: 0 0 1rem; }
.domains li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.domain-name { font-weight: 700; display: flex; gap: .5rem; align-items: center; overflow-wrap: anywhere; }
.domain-actions { display: flex; margin-left: auto; }
.domain-actions form { margin: 0; }
.inline-add { display: grid; gap: .5rem; }

/* ------------------------------------------------------------ wide screens */

@media (min-width: 40rem) {
  .who-name { display: inline; }
  .rating-opts { max-width: 22rem; }
  .sticky-actions .btn, .sticky-actions .btn-secondary { flex: none; }
  .save-state { flex-basis: auto; margin-right: auto; text-align: left; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}

@media (min-width: 60rem) {
  /* Side rail replaces the bottom tab bar. */
  .with-nav .areas {
    top: 0; right: auto; bottom: 0; width: 6.5rem;
    flex-direction: column; justify-content: flex-start;
    padding: 5.5rem 0 1rem; border-top: 0; border-right: 1px solid var(--line);
    z-index: 4;
  }
  .with-nav .area-link { flex: none; min-height: 76px; border-top: 0; border-left: 3px solid transparent; }
  .with-nav .area-link[aria-current="page"] { border-left-color: var(--red); background: var(--red-wash); }
  .with-nav .topbar { padding-left: 1.5rem; z-index: 6; }
  .with-nav .main { margin-left: 6.5rem; padding: 2rem 2.5rem 3rem; max-width: calc(72rem + 6.5rem); }
  .with-nav .sticky-actions { bottom: 0; }
  .progress { top: 61px; margin: 0 0 1.25rem; border-radius: 3px; }
  .sticky-actions { margin: 0; border: 1px solid var(--line); border-radius: 12px; }

  .split { grid-template-columns: 1fr 1fr; }
  .wide-only { display: block; }

  /* The rating rows become a proper grid: label left, 1–5 right. */
  .rating { grid-template-columns: 1fr 22rem; align-items: center; gap: 1.5rem; }
  .q { padding: 1.5rem 1.75rem; }
  .tools { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }

  .list thead { display: table-header-group; }
  .list tr { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  .list th { text-align: left; font-size: .9rem; color: var(--slate); font-weight: 400; padding: .5rem .75rem; border-bottom: 1.5px solid var(--line); }
  .list td { display: table-cell; padding: .7rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface); }
  .list td::before { content: none; }
  .list tbody tr:hover td { background: #f7f8fa; }
  .inline-add { grid-template-columns: 1fr auto; align-items: end; }
  .inline-add .field { margin: 0; }
}

/* ------------------------------------------------------------ activity log */

select, input[type=date] {
  width: 100%; min-height: var(--tap);
  font: inherit; color: inherit;
  padding: .5rem .75rem;
  background: var(--surface);
  border: 1.5px solid #b8c0ca; border-radius: 8px;
}
select:focus, input[type=date]:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgb(29 95 209 / .2); }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; align-items: end; margin-bottom: 1rem; }
.filters .field { margin-bottom: .75rem; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }

.activity-day h2 { font-size: var(--step-0); color: var(--slate); margin: 1.5rem 0 .5rem; }
.activity { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.act {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: .1rem .75rem;
  padding: .65rem .9rem; border-left: 4px solid var(--line);
}
.act + .act { border-top: 1px solid var(--line); }
.act time { color: var(--slate); font-variant-numeric: tabular-nums; font-size: .9rem; }
.act-who { font-weight: 700; }
.act-what { grid-column: 2; }
.act-what small { display: block; color: var(--slate); }
.act-ip { display: none; }
.act-signed, .act-code { border-left-color: #8fb0e6; }
.act-sign { border-left-color: var(--r1); }
.act-form, .act-committee { border-left-color: var(--r5); }
.act-member, .act-members, .act-chapter, .act-domain { border-left-color: var(--r3); }
.pager { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; }

@media (min-width: 60rem) {
  .filters { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; }
  .filter-actions { grid-column: auto; }
  .act { grid-template-columns: 5rem 14rem 1fr 8.5rem; align-items: baseline; }
  .act-what { grid-column: 3; }
  .act-ip { display: block; color: var(--slate); font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
