@font-face {
  font-family: Geist;
  src: url('/type/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/type/plex.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --forest: #14362b;
  --deep: #102a22;
  --line-dark: #4f7163;
  --cream: #f6f5e7;
  --lime: #e1edac;
  --soft: #d1e4d3;
  --white: #fffdf1;
  --ink: #1b3229;
  --muted: #45594e;
  --line: #b9c7b5;
  font: 16px/1.5 Geist, system-ui, sans-serif;
  color: var(--cream);
  background: var(--forest);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.04; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--lime); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b27448; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1; top: 8px; left: 8px; padding: 8px; background: var(--deep); }
.wrap { width: min(1300px, calc(100% - 64px)); margin-inline: auto; }
.mast { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.23rem; font-weight: 780; letter-spacing: -.033em; text-decoration: none; white-space: nowrap; }
.brand i { display: inline-block; width: 17px; height: 17px; border: 1px solid var(--lime); background: repeating-linear-gradient(90deg, var(--lime) 0 1px, transparent 1px 6px); border-radius: 4px 4px 1px 1px; }
.mast nav { font-size: .87rem; font-weight: 670; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .43fr); gap: clamp(13px, 4vw, 49px); align-items: end; padding: 29px 0 24px; }
.eyebrow { font: .73rem/1.32 Plex, monospace; text-transform: uppercase; letter-spacing: .088em; color: var(--lime); }
.intro h1 { margin-top: 8px; font-size: clamp(3.75rem, 6.5vw, 6.35rem); line-height: .9; font-weight: 740; letter-spacing: -.034em; }
.intro h1 span { color: var(--lime); }
.intro-copy p { color: var(--soft); font-size: 1.01rem; line-height: 1.37; }
.intro-copy a { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 670; }
.lab { padding-bottom: 29px; scroll-margin-top: 12px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px 20px; align-items: flex-end; padding: 11px 12px; border: 1px solid var(--line-dark); background: var(--deep); border-radius: 3px; }
.toolbar .motion { width: min(100%, 495px); }
.case-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.case-controls label { min-width: 145px; }
label { display: grid; gap: 3px; margin: 0; min-width: 0; font-size: .81rem; font-weight: 670; }
input, select, textarea { width: 100%; min-width: 0; min-height: 41px; border: 1px solid #849583; border-radius: 3px; padding: 5px 8px; background: #fffdf6; color: var(--ink); font-size: 1rem; font-weight: 450; }
select { padding-right: 21px; }
textarea { resize: vertical; }
.outline, .outline-dark, .light-button, .dark-button {
  min-height: 41px; padding: 6px 10px; background: transparent; border: 1px solid #7e8e7d; border-radius: 3px;
  font-weight: 685; font-size: .84rem; line-height: 1.2; white-space: nowrap;
}
.outline:hover { background: #e2e8d5; }
.outline-dark { border-color: #93ad99; }
.outline-dark:hover { background: #325243; }
.light-button { background: var(--lime); color: var(--deep); border-color: var(--lime); }
.light-button:hover { background: #f3f9d5; }
.dark-button { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.dark-button:hover { background: #275444; }
.board { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 12px; align-items: start; margin-top: 12px; }
.sheet { background: #f0f0df; color: var(--ink); border: 1px solid #bfd0b7; border-radius: 3px; }
.room { padding: 13px; min-width: 0; }
.room .eyebrow { color: #3a594a; }
.panel-head, .compare-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 13px; }
.panel-head h3, .compare-head h3 { font-size: clamp(1.81rem, 3.4vw, 3.1rem); letter-spacing: -.039em; margin-top: 3px; }
.size-form { display: flex; align-items: flex-end; gap: 5px; }
.size-form input { max-width: 68px; }
.quick-results { display: none; }
.seat-tools { margin: 13px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
#mark-label { margin-bottom: 4px; font-size: .85rem; font-weight: 685; }
.marks { display: flex; flex-wrap: wrap; gap: 4px; }
.mark-control { border: 1px solid #869786; border-radius: 3px; min-height: 37px; padding: 3px 7px; font-size: .77rem; font-weight: 700; }
.mark-control[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #547564; }
.tint-yes { background: #cae8c0; color: #2c5b3f; }
.tint-no { background: #f2d6be; color: #7b381c; }
.tint-abstain { background: #e9e0ab; color: #624d1e; }
.tint-absent { background: #e5e7df; color: #4d6157; }
.tint-recused { background: #ddd9ef; color: #574575; }
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 7px; background: #e1e7d6; border: 1px solid #acbcab; border-radius: 4px; padding: 10px; }
.seat { position: relative; min-height: 70px; padding: 9px 6px; border: 1px solid #7b907e; border-radius: 5px 5px 2px 2px; }
.seat:hover { filter: saturate(1.27); outline: 2px solid #58705c; outline-offset: -2px; }
.seat-number { position: absolute; left: 5px; top: 4px; font: .65rem/1.2 Plex, monospace; }
.seat-symbol { font: 1.48rem/1.16 Plex, monospace; }
.room-foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; padding-top: 6px; }
#room-summary { font: .75rem/1.35 Plex, monospace; color: var(--muted); }
.plain { text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; min-height: 34px; padding: 3px 0; font-size: .82rem; font-weight: 660; }
.plain:hover { color: #a95030; }
.danger { color: #933d22; }
.compare { min-width: 0; }
.compare-head { margin: 2px 0 4px; }
#comparison-status { color: var(--soft); font-size: .84rem; line-height: 1.38; margin-bottom: 8px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rule-card { min-width: 0; background: var(--cream); color: var(--ink); padding: 10px; border: 1px solid #bfceb7; border-radius: 3px; }
.result-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 7px; min-height: 29px; }
.result-head h4 { font-size: 1.24rem; letter-spacing: -.022em; }
.result-pill { border-radius: 2px; padding: 3px 6px; font: .72rem/1.25 Plex, monospace; }
.result-passes { background: #d0e9ba; color: #315530; }
.result-short { background: #f3d4bd; color: #803e24; }
.result-quorum { background: #eadfb8; color: #6d5116; }
.result-noVotes { background: #e4e7d9; color: #495647; }
.result-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 6px 0; padding: 5px 0 6px; border-block: 1px solid var(--line); }
.result-list div + div { border-left: 1px solid var(--line); padding-left: 5px; }
.result-list dt { color: var(--muted); font-size: .71rem; line-height: 1.28; }
.result-list dd { color: var(--ink); font: 1.32rem/1.24 Plex, monospace; }
.headcount { font-size: .8rem; font-weight: 680; }
.result-help { color: var(--muted); font-size: .77rem; line-height: 1.35; margin-top: 3px; min-height: 33px; }
.rule-form { display: grid; gap: 5px; padding-top: 7px; border-top: 1px solid var(--line); margin-top: 4px; }
.rule-form select, .rule-form input { font-size: .9rem; min-height: 37px; }
.rule-form .helper { min-height: 34px; }
.helper { color: var(--muted); font-size: .77rem; line-height: 1.34; }
.checkbox { display: flex; align-items: center; gap: 5px; font-size: .76rem; min-height: 32px; }
.checkbox input { width: 17px; height: 17px; min-height: auto; padding: 0; accent-color: #396a52; flex: none; }
.notice { background: #e6edce; color: #35513d; border-left: 3px solid #7c9a6b; padding: 6px 8px; margin-bottom: 8px; font-size: .84rem; }
.notice.error { background: #f2d5bb; color: #6b311b; border-color: #8a421f; }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; padding: 13px 0 21px; border-top: 1px solid var(--line-dark); font-size: .83rem; color: var(--soft); }
.foot .brand { font-size: 1.06rem; }
dialog { width: min(580px, calc(100% - 23px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #738c77; border-radius: 4px; padding: 15px; background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #0d211ab0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; margin-bottom: 8px; }
.modal-head h2 { font-size: clamp(1.8rem, 5vw, 2.91rem); letter-spacing: -.036em; }
.close { min-width: 40px; min-height: 40px; border: 1px solid #7b907e; border-radius: 3px; background: none; font-size: 1.39rem; }
.close:hover { background: #d5e6ce; }
dialog p { margin-bottom: 8px; }
dialog label { margin-bottom: 8px; }
.modal-actions { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
#summary-copy { font: .81rem/1.4 Plex, monospace; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.article { max-width: 750px; margin: 30px auto 36px; padding: clamp(13px, 3vw, 32px); }
.article h1 { font-size: clamp(3.05rem, 7vw, 5.6rem); letter-spacing: -.044em; margin: 5px 0 9px; }
.article h2 { font-size: clamp(1.8rem, 4.5vw, 3.1rem); letter-spacing: -.034em; margin: 16px 0 5px; }
.article .eyebrow { color: #3a594a; }
.article .lead { color: var(--muted); font-size: 1.09rem; }
.article a:hover { color: #8e4128; }
.article p + p { margin-top: 6px; }
.article ul { padding-left: 22px; }
.article a.dark-button { display: inline-flex; align-items: center; text-decoration: none; margin: 8px 0; }
.article a.dark-button:hover { color: var(--cream); }
.case-math { background: #dde8d3; border-left: 3px solid #638660; padding: 8px 10px; font: .91rem/1.4 Plex, monospace; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 40px); }
  .board { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .seats { grid-template-columns: repeat(auto-fit,minmax(63px,1fr)); }
  .seat { min-height: 62px; }
}
@media (max-width: 770px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 18px 0 17px; }
  .intro h1 { font-size: clamp(3.15rem, 9.4vw, 6rem); }
  .intro-copy { max-width: 39rem; }
  .intro-copy a { margin-top: 4px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .toolbar .motion { width: 100%; }
  .board { grid-template-columns: minmax(0,1fr); }
  .quick-results { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
  .seat-tools { margin-top: 6px; }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 23px); }
  .mast { min-height: 57px; }
  .brand { font-size: 1.11rem; }
  .mast nav { font-size: .76rem; }
  .intro h1 { font-size: clamp(2.8rem, 9.3vw, 4.2rem); }
  .intro-copy p { font-size: .92rem; }
  .room { padding: 9px; }
  .seats { grid-template-columns: repeat(auto-fit,minmax(46px,1fr)); gap: 4px; padding: 6px; }
  .seat { min-height: 47px; }
  .seat-symbol { font-size: 1.11rem; }
  .seat-number { font-size: .56rem; }
  .rule-grid { grid-template-columns: minmax(0,1fr); }
  .rule-card { padding: 8px; }
  .result-help, .rule-form .helper { min-height: 0; }
  .case-controls label { width: 100%; }
}
