:root {
  color-scheme: dark;
  --background: #17131d;
  --panel: #211b29;
  --panel-raised: #2a2232;
  --border: #3d3146;
  --border-strong: #58455e;
  --text: #f3ece3;
  --quiet: #c4b8c8;
  --muted: #a99cb0;
  --gold: #e9bc77;
  --gold-light: #f6d6a0;
  --gold-dark: #382932;
  --green: #a1d5ba;
  --green-bg: #233c36;
  --red: #f0abae;
  --red-bg: #442c38;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font: 15px/1.55 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 75% 0%, #291e31, transparent 34rem), var(--background);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }
h1, h2 { font: 400 2rem/1.1 var(--serif); }
.shell { width: min(100% - 64px, 1152px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: var(--background);
  background: var(--gold-light);
}
.site-header {
  background: #17131de0;
  border-bottom: 1px solid #372c3d;
}
.site-header__inner { display: flex; align-items: center; gap: 19px; min-height: 68px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 13px; font: 400 1.6rem/1 var(--serif); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  color: var(--gold);
  position: relative;
  isolation: isolate;
  font-size: .94rem;
}
.brand-mark::before { position: absolute; z-index: -1; inset: 4px; transform: rotate(45deg); border: 1px solid #ac855d; border-radius: 3px; background: #291f30; content: ""; }
.header-caption { padding-left: 19px; border-left: 1px solid var(--border); color: var(--muted); font-size: .81rem; }
.quiet-button {
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--quiet);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
}
.quiet-button:hover { border-color: var(--border-strong); background: var(--panel-raised); color: var(--text); }
.sign-out { margin-left: auto; }
.sign-out span { margin-left: 5px; color: var(--gold); }
.main { flex: 1; padding-block: 30px 28px; outline: none; }
.hero, .access--login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    linear-gradient(90deg, #231829 1%, #231829 12%, #231829e8 33%, #2117285e 63%, #20172514 100%),
    linear-gradient(0deg, #22182987, transparent 50%),
    url('/hero.jpg') right 49% / auto 145% no-repeat,
    radial-gradient(ellipse at 85% 50%, #60434f, #2b1d33 65%);
}
.hero {
  min-height: 190px;
  display: grid;
  align-items: center;
  box-shadow: 0 15px 45px #0c091127;
}
.hero__content { position: relative; z-index: 1; padding: 32px clamp(28px, 4.2vw, 60px); }
.hero__frame { position: absolute; inset: 8px; border: 1px solid #dfac722d; border-radius: 9px; pointer-events: none; }
.eyebrow {
  color: var(--gold);
  font-size: .68rem;
  line-height: 1.35;
  letter-spacing: .16em;
  font-weight: 750;
  text-transform: uppercase;
}
.ornament { color: var(--gold); margin-right: 4px; }
.hero h1 {
  margin: 10px 0 11px;
  color: #fff2df;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero__content > p:last-child { max-width: 344px; color: #f0dfdc; font-size: .98rem; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px #0c09111f; }
.calendar { margin-top: 18px; overflow: clip; }
.calendar-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.calendar-header h2 { font-size: 2.15rem; letter-spacing: -.04em; }
.vote-instructions { padding: 0 22px 15px; color: var(--quiet); font-size: .87rem; }
.quarter-controls { display: flex; gap: 5px; }
.quarter-controls button, input {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: #19141f;
}
.quarter-controls button { min-width: 48px; padding: 4px 10px; color: var(--quiet); font-size: .9rem; font-weight: 680; }
.quarter-controls button:hover { background: var(--panel-raised); color: var(--text); }
.quarter-controls button[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: var(--background); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { position: sticky; top: 0; z-index: 1; background: #1b1622; }
thead th {
  height: 40px;
  font-size: .88rem;
  font-weight: 680;
  color: var(--quiet);
  white-space: nowrap;
}
thead th:first-child { width: 15%; padding-left: 22px; text-align: left; }
thead th:last-child { width: 12%; padding-right: 18px; text-align: right; }
tbody tr:nth-child(even) { background: #241e2d; }
tbody tr.is-ready { background: #263833; }
tbody tr.is-ready th { box-shadow: inset 3px 0 #89cca8; }
tbody th, tbody td { height: 60px; padding: 6px 0; border-top: 1px solid var(--border); }
tbody th { padding-left: 22px; text-align: left; font-weight: 500; }
tbody th:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -3px; }
tbody td { text-align: center; }
tbody td:last-child { padding-right: 18px; text-align: right; }
.month-divider th {
  height: auto;
  padding-block: 6px;
  background: #302637;
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 700;
}
.date-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.date-day { color: var(--gold-light); font: 400 1.45rem/1 var(--serif); }
.date-month { color: var(--quiet); font-size: .8rem; }
.row-count, .row-ready { font-size: .82rem; font-weight: 650; white-space: nowrap; }
.row-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-ready { padding: 4px 8px; border-radius: 5px; background: #365449; color: #d5f3e2; }
label { display: block; margin-bottom: 6px; color: var(--quiet); font-size: .8rem; font-weight: 650; }
#password { width: 100%; padding-inline: 10px; }
.vote-pair { display: flex; justify-content: center; gap: 4px; }
.vote-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #19141f66;
  color: var(--quiet);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1;
}
.vote-button--yes[aria-pressed=true] { background: #346052; border-color: #70ac90; color: #f0fff7; }
.vote-button--no[aria-pressed=true] { background: #673747; border-color: #b97485; color: #fff1f3; }
.vote-button[aria-disabled=true] { opacity: .55; cursor: wait; }
.vote-button:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .vote-button--yes:hover:not([aria-pressed=true]) { background: var(--green-bg); border-color: #608971; color: var(--green); }
  .vote-button--no:hover:not([aria-pressed=true]) { background: var(--red-bg); border-color: #9d6677; color: var(--red); }
}
.form-status { min-height: 1.35em; margin-top: 8px; color: var(--muted); font-size: .76rem; }
.form-status.is-error, .page-status { color: var(--red); }
.page-status { margin-top: 12px; padding: 10px 14px; border: 1px solid #6b4450; border-radius: 7px; background: var(--red-bg); }
.ready-panel { margin-top: 12px; padding: 16px 22px; }
.ready-panel h2 { font-size: 1.3rem; }
.ready-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ready-list button {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #526c61;
  border-radius: 5px;
  color: var(--green);
  background: var(--green-bg);
  font-size: .82rem;
}
.ready-list button:hover { background: #365449; color: #d5f3e2; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 13px 19px;
  border-top: 1px solid #3a2e42;
  color: var(--muted);
  font-size: .71rem;
}
.access { padding: 24px; color: var(--quiet); }
.access .quiet-button { margin-top: 12px; }
.access--login { display: grid; min-height: 505px; align-items: center; padding: clamp(25px, 6vw, 78px); }
.login-panel { max-width: 420px; }
.login-panel h1 { margin: 10px 0 12px; color: var(--text); font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.055em; }
.login-panel h1 + p { max-width: 305px; margin-bottom: 20px; }
.login-panel form { max-width: 305px; }
.gold-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  align-items: center;
  margin-top: 11px;
  padding: 7px 12px;
  border: 1px solid var(--gold-light);
  border-radius: 7px;
  color: #241a25;
  background: var(--gold);
  font-size: .9rem;
  font-weight: 750;
}
.gold-button:hover:enabled { background: var(--gold-light); }
.gold-button:disabled { opacity: .65; }

@media (max-width: 920px) {
  .shell { width: min(100% - 44px, 1152px); }
  .calendar-header, .vote-instructions, .ready-panel { padding-inline: 15px; }
  .calendar-header h2 { font-size: 1.85rem; }
  thead th:first-child, tbody th { padding-left: 15px; }
  thead th:last-child, tbody td:last-child { padding-right: 12px; }
}
@media (max-width: 730px) {
  .vote-pair { flex-direction: column; align-items: center; gap: 3px; }
  .vote-button { width: 34px; height: 33px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .site-header__inner { min-height: 60px; gap: 13px; }
  .header-caption { padding-left: 13px; }
  .main { padding-top: 18px; }
  .hero, .access--login {
    background:
      linear-gradient(90deg, #231829 0%, #231829cd 37%, #21172863 100%),
      linear-gradient(0deg, #221829ad, transparent 60%),
      url('/hero.jpg') 64% 49% / cover no-repeat,
      #2b1d33;
  }
  .hero { min-height: 168px; }
  .hero__content { padding-block: 20px; }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 16px); }
  .site-header__inner { gap: 9px; }
  .brand { font-size: 1.35rem; gap: 8px; }
  .brand-mark { width: 25px; }
  .header-caption { display: none; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero__content { padding-inline: 22px; }
  .hero__content > p:last-child { max-width: 240px; font-size: .88rem; }
  .calendar-header { align-items: stretch; flex-direction: column; padding: 14px 10px 8px; gap: 10px; }
  .calendar-header h2 { font-size: clamp(1.45rem, 5.6vw, 1.85rem); }
  .quarter-controls button { flex: 1; }
  .vote-instructions { padding: 0 10px 12px; font-size: .8rem; }
  thead th { font-size: .74rem; }
  thead th:first-child { width: 16%; }
  thead th:first-child, tbody th { padding-left: 8px; }
  thead th:last-child { width: 14%; }
  thead th:last-child, tbody td:last-child { padding-right: 4px; }
  .date-label { gap: 3px; }
  .date-day { font-size: 1.25rem; }
  .date-month, .row-count, .row-ready { font-size: .71rem; }
  .row-ready { padding-inline: 3px; }
  .vote-button { width: min(34px, 96%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
