:root {
  color-scheme: light;
  --paper: #fffdf5;
  --surface: #ffffff;
  --ink: #24345d;
  --muted: #626c7b;
  --blue: #294da3;
  --blue-soft: #edf2ff;
  --yellow: #ffe895;
  --yellow-soft: #fff5d1;
  --line: #dedfd9;
  --line-strong: #b5bfd1;
  --danger: #9b332d;
  --shadow: 0 12px 36px #2937550d;
  --focus: #294da3;
  --font-display: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: var(--ink);
  background: var(--yellow);
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: transparent;
  border: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  transition:
    background-color 140ms,
    color 140ms,
    transform 140ms var(--ease);
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
input {
  caret-color: var(--blue);
  min-width: 0;
}
input,
select {
  font-size: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-style: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
svg {
  flex-shrink: 0;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  display: block;
  padding: 12px;
  background: var(--yellow);
}
.header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-dot {
  color: var(--blue);
}
.header nav {
  display: flex;
  gap: 4px;
}
.nav-button {
  padding: 10px 15px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-button.active {
  background: var(--yellow-soft);
}
#saved-count {
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
  font-size: 12px;
}
.family {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.page {
  max-width: 1112px;
  padding: 0 32px;
  margin: 52px auto 0;
  min-height: 65vh;
}
.page:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.highlight {
  background: linear-gradient(transparent 64%, var(--yellow) 64%, var(--yellow) 90%, transparent 90%);
}
.snapshot-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  font-variant-numeric: tabular-nums;
}
.term-stamp {
  width: 108px;
  height: 108px;
  border: 2px solid var(--blue);
  outline: 1px solid var(--blue);
  outline-offset: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--blue);
  transform: rotate(7deg);
  margin: 10px 26px;
  flex-shrink: 0;
}
.term-stamp span {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.term-stamp strong {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.12;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 9px 10px 9px 20px;
  box-shadow: var(--shadow);
}
.search-form svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  stroke-width: 1.7;
}
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 46px;
  outline-offset: 2px;
  width: 100%;
}
input::placeholder {
  color: var(--muted);
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  color: var(--surface);
  background: var(--blue);
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.quiet {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 26px;
  flex-wrap: wrap;
}
.select-wrap {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-left: 4px;
}
.select-wrap label {
  font-size: 13px;
  font-weight: 600;
}
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 30px 8px 10px;
  max-width: 100%;
  background: var(--surface);
}
.random {
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
}
.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
  box-shadow: var(--shadow);
}
.ledger-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 26px;
  background: var(--yellow-soft);
  border-bottom: 1px solid var(--line);
}
.ledger-heading h2 {
  font-family: var(--font-display);
  font-size: 22px;
}
#results-count {
  color: var(--muted);
  font-size: 13px;
}
.list-order {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.column-head,
.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(76px, 0.55fr) 114px;
  column-gap: 18px;
  align-items: center;
  padding: 16px 26px;
}
.column-head {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.member-row {
  border-bottom: 1px solid var(--line);
  min-height: 98px;
}
.member-row:last-child {
  border-bottom: 0;
}
.member-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-height: 54px;
  justify-content: center;
  color: var(--ink);
  min-width: 0;
}
.name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.term {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.district {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.party-text {
  color: var(--muted);
  font-size: 13px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.blind .party-text {
  visibility: hidden;
}
.row-count {
  display: flex;
  gap: 5px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.row-count strong {
  font-size: 24px;
  font-weight: 700;
}
.row-count span {
  font-size: 11px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
}
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7px;
  fill: none;
}
.icon-button.saved {
  color: var(--blue);
  background: var(--yellow-soft);
}
.icon-button.saved svg {
  fill: var(--yellow);
}
.compare-pick {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  min-width: 54px;
  font-size: 12px;
  padding: 8px;
  white-space: nowrap;
}
.compare-pick.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.print-note {
  display: none;
}
.pager {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.pager:has(button[hidden]) {
  display: none;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.empty p + button,
.empty > button {
  margin-top: 16px;
}
.empty-inline {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}
.scope-note {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 600;
}
.scope-note p {
  max-width: 78ch;
  margin: 8px 0;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: -16px 0 22px;
  flex-wrap: wrap;
  font-size: 13px;
}
.view-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.back {
  color: var(--blue);
}
.report-sheet {
  background: var(--surface);
  padding: 28px 38px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 3px;
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  gap: 16px;
}
.sheet-top time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.identity h1 {
  font-size: 44px;
}
.identity p {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 8px;
}
.identity .committees {
  color: var(--muted);
  font-size: 12px;
}
.paper-seal {
  border: 1px solid var(--blue);
  padding: 10px 14px;
  color: var(--blue);
  font-family: var(--font-display);
  text-align: center;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.paper-seal span {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
}
.paper-seal strong {
  font-size: 26px;
}
.identity-note {
  padding: 10px 14px;
  background: var(--yellow-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
.subjects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.subjects > div {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.subjects dt {
  font-weight: 700;
  font-size: 13px;
}
.subjects dd {
  margin: 6px 0 0;
}
.subjects dd strong {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.unit {
  margin-left: 4px;
  font-size: 12px;
  color: var(--muted);
}
.coverage-state {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.table-note,
.small-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}
.sheet-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 36px;
  margin: 42px 0;
}
.sheet-sections h2,
.activity-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
}
.small-note {
  margin-top: 4px;
}
.month-chart {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 20px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  align-items: end;
}
.month-chart button {
  min-width: 44px;
  padding: 4px 2px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.month-chart button svg {
  display: block;
  height: 80px;
  width: 24px;
  margin: 2px auto 8px;
  fill: var(--blue);
}
.month-chart .month-count {
  color: var(--muted);
}
.month-chart .chosen {
  background: var(--yellow-soft);
  outline: 1px solid var(--line-strong);
}
.status-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.status-list strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.status-list small {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
#activity-count {
  font-size: 12px;
  color: var(--muted);
}
.activity-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.activity-filters input {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.activity-filters select {
  max-width: 140px;
}
.activity-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.activity-date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.activity-date span {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
  align-items: center;
}
.processing {
  color: var(--ink);
  background: var(--yellow-soft);
  padding: 2px 7px;
  border-radius: 3px;
}
.activity-row h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}
.evidence {
  font-size: 12px;
  color: var(--muted);
}
.evidence summary {
  color: var(--blue);
  font-size: 11px;
}
.evidence dl {
  margin: 6px 0 16px;
}
.evidence dl > div {
  display: flex;
  gap: 12px;
}
.evidence dt {
  width: 70px;
  flex-shrink: 0;
}
.evidence dd {
  margin: 0;
}
.evidence ul {
  list-style: none;
  padding: 0;
}
.evidence li {
  margin-bottom: 14px;
}
.evidence li span,
.evidence li small {
  display: block;
  margin-top: 3px;
}
.evidence a {
  overflow-wrap: anywhere;
}
.sheet-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sheet-bottom span {
  font-weight: 800;
}
.comparison-heading {
  margin: 30px 0;
}
.comparison-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.compare-sheet {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.compare-sheet h2 {
  font-family: var(--font-display);
  font-size: 32px;
}
.compare-sheet p {
  font-size: 13px;
  color: var(--muted);
}
.compare-sheet .subjects {
  margin: 24px 0;
  display: block;
  border: 0;
}
.compare-sheet .subjects > div {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.compare-sheet .subjects dd {
  text-align: right;
  margin: 0;
}
.compare-tray {
  position: fixed;
  z-index: 10;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 36px #24345d26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#compare-names {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tray-name {
  padding: 8px 10px;
  background: var(--yellow-soft);
  border-radius: 6px;
  min-height: 44px;
  font-size: 13px;
}
.tray-name span[aria-hidden] {
  margin-left: 10px;
}
.tray-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
}
#compare-count {
  font-size: 11px;
  font-weight: 500;
}
.message {
  font-size: 13px;
  color: var(--ink);
  margin: 20px 0;
}
.share-link {
  display: block;
  width: 100%;
  max-width: 560px;
  margin-top: 10px;
  padding: 8px;
}
.footer {
  max-width: 1112px;
  padding: 26px 32px 125px;
  margin: 46px auto 0;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer > span:first-child {
  font-weight: 800;
  color: var(--ink);
}
.footer a {
  margin-left: auto;
}
@media (hover: hover) and (pointer: fine) {
  .member-row:hover {
    background: var(--blue-soft);
  }
  .member-link:hover .name {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .quiet:hover,
  .icon-button:hover,
  .nav-button:hover {
    background: var(--yellow-soft);
  }
  .primary:hover {
    background: var(--ink);
  }
  .secondary:hover,
  .compare-pick:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
  }
  .month-chart button:hover {
    background: var(--yellow-soft);
  }
}
@media (max-width: 768px) {
  .header {
    padding: 18px 24px;
    gap: 20px;
  }
  .family {
    display: none;
  }
  .header nav {
    margin-left: auto;
  }
  .page {
    padding: 0 24px;
    margin-top: 34px;
  }
  .term-stamp {
    width: 84px;
    height: 84px;
    margin-right: 12px;
  }
  .term-stamp strong {
    font-size: 35px;
  }
  .column-head,
  .member-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) 65px 104px;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .report-sheet {
    padding: 24px;
  }
  .sheet-sections {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }
  .status-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
  .compare-sheet {
    padding: 20px;
  }
  .comparison-heading h1 {
    font-size: 34px;
  }
}
@media (max-width: 560px) {
  .header {
    padding: 14px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 22px;
    gap: 6px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .nav-button {
    padding: 8px 9px;
    font-size: 12px;
  }
  .page {
    padding: 0 16px;
    margin-top: 30px;
  }
  h1 {
    font-size: 36px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .snapshot-date {
    font-size: 10px;
    line-height: 1.8;
    max-width: 235px;
    margin-top: 16px;
  }
  .term-stamp {
    width: 66px;
    height: 66px;
    margin: 0 8px 20px 0;
    outline-offset: 3px;
  }
  .term-stamp strong {
    font-size: 29px;
  }
  .term-stamp span {
    font-size: 7px;
  }
  .search-form {
    padding: 7px 7px 7px 12px;
    gap: 8px;
  }
  .search-form svg {
    width: 19px;
    height: 19px;
  }
  .search-form input {
    height: 42px;
    font-size: 16px;
  }
  .search-form input::placeholder {
    font-size: 13px;
  }
  .search-form .primary {
    padding: 8px 14px;
  }
  .filters {
    gap: 6px 8px;
    margin-bottom: 20px;
  }
  .select-wrap label {
    display: none;
  }
  .select-wrap {
    max-width: 150px;
    padding-left: 0;
  }
  .select-wrap select {
    font-size: 13px;
  }
  #blind,
  .random {
    font-size: 11px;
    padding: 8px;
  }
  .random {
    margin-left: auto;
  }
  .ledger-heading {
    padding: 16px;
  }
  .ledger-heading h2 {
    font-size: 19px;
  }
  .column-head {
    display: none;
  }
  .member-row {
    grid-template-columns: minmax(0, 1fr) 56px 99px;
    gap: 2px 10px;
    padding: 16px;
  }
  .member-row > .party-text {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
  }
  .member-link {
    grid-column: 1;
    grid-row: 1;
  }
  .member-row .row-count {
    grid-column: 2;
    grid-row: 1 / 3;
    gap: 3px;
  }
  .member-row .row-actions {
    grid-column: 3;
    grid-row: 1 / 3;
    gap: 1px;
  }
  .row-count strong {
    font-size: 21px;
  }
  .name {
    font-size: 18px;
    gap: 5px;
  }
  .district {
    font-size: 11px;
  }
  .compare-pick {
    min-width: 52px;
  }
  .report-sheet {
    padding: 18px 16px;
  }
  .view-toolbar {
    font-size: 11px;
    margin-top: -8px;
  }
  .view-toolbar .quiet {
    padding: 8px;
  }
  .sheet-top {
    font-size: 11px;
    gap: 6px;
  }
  .sheet-top time {
    font-size: 9px;
  }
  .identity {
    padding: 24px 0;
  }
  .identity h1 {
    font-size: 37px;
  }
  .identity p {
    gap: 4px 10px;
  }
  .paper-seal {
    padding: 8px 10px;
  }
  .subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subjects > div {
    padding: 16px;
  }
  .subjects dd strong {
    font-size: 27px;
  }
  .activity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .activity-date {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
  }
  .activity-date span {
    margin: 0;
  }
  .activity-filters input {
    flex-basis: 100%;
  }
  .activity-filters .secondary {
    padding: 8px 16px;
  }
  .activity-row h3 {
    font-size: 14px;
  }
  .sheet-sections {
    margin: 30px 0;
  }
  .compare-grid {
    gap: 10px;
  }
  .compare-sheet {
    padding: 14px 12px;
  }
  .compare-sheet h2 {
    font-size: 25px;
  }
  .compare-sheet p {
    font-size: 11px;
    min-height: 20px;
  }
  .compare-sheet .subjects > div {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 116px;
  }
  .compare-sheet .subjects dd {
    text-align: left;
  }
  .compare-sheet .secondary {
    font-size: 10px;
    padding: 8px;
    width: 100%;
  }
  .compare-tray {
    padding: 10px;
    flex-wrap: wrap;
    gap: 8px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .tray-actions {
    margin-left: auto;
  }
  .tray-actions .primary {
    padding: 10px 14px;
  }
  .tray-name {
    font-size: 12px;
    min-height: 44px;
  }
  .footer {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
}
@media (max-width: 359px) {
  .brand {
    font-size: 20px;
  }
  .nav-button {
    padding: 7px;
    font-size: 11px;
  }
  #saved-count {
    margin-left: 2px;
  }
  h1 {
    font-size: 32px;
  }
  .term-stamp {
    width: 56px;
    height: 56px;
  }
  .member-row {
    grid-template-columns: minmax(0, 1fr) 49px 95px;
    gap: 6px;
    padding: 14px 12px;
  }
  .icon-button {
    min-width: 44px;
  }
  .compare-pick {
    min-width: 50px;
  }
  .random {
    flex-basis: 100%;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .print-note {
    display: block;
    margin: 10px 0;
    font-size: 11px;
    color: var(--muted);
  }
  body {
    background: var(--surface);
    font-size: 11px;
  }
  .header,
  .footer,
  .view-toolbar,
  .compare-tray,
  .message,
  .activity-filters,
  .pager,
  .month-chart,
  .scope-note,
  .skip {
    display: none !important;
  }
  .page {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .report-sheet,
  .compare-sheet {
    box-shadow: none;
    border-color: var(--line);
  }
  .report-sheet {
    padding: 20px;
  }
  .activity-row {
    break-inside: avoid;
  }
  .identity h1 {
    font-size: 30px;
  }
  .blind .party-text {
    visibility: visible;
  }
  .compare-sheet .secondary {
    display: none;
  }
}
