:root {
  color-scheme:dark;
  --background:#080d0b;
  --text:#a7eab5;
  --muted:#87a78e;
  --line:#2b4935;
  --green:#7de59a;
  --raised:#14291b;
  --accent:#b2ffc5;
  --surface:#0d1711;
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  color:var(--text);
  background:var(--background);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input {
  font:inherit;
}

button,a,input {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}

[hidden] {
  display:none!important;
}

.page {
  max-width:1120px;
  margin:auto;
  padding:0 40px;
}

.masthead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:30px 0;
  border-bottom:1px solid var(--line);
}

.wordmark {
  display:flex;
  align-items:center;
  gap:13px;
  color:var(--text);
  text-decoration:none;
  font-family:inherit;
  font-size:23px;
}

.seal {
  border:1px solid var(--accent);
  color:var(--accent);
  font-size:18px;
  line-height:1.2;
  padding:5px 7px;
  font-weight:600;
  white-space:nowrap;
}

.wordmark-sub {
  display:block;
  font-family:ui-monospace,monospace;
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
  letter-spacing:.04em;
}

.edition,.eyebrow {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:10px;
  letter-spacing:.13em;
  color:var(--muted);
}

.edition {
  font-size:9px;
}

main {
  min-height:calc(100svh - 205px);
  padding-top:55px;
}

.room-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:32px;
}

h1 {
  font-family:inherit;
  font-weight:400;
  font-size:clamp(30px,4vw,46px);
  letter-spacing:-.04em;
  margin:10px 0 12px;
  line-height:1.13;
}

.date-range {
  font-size:13px;
  color:var(--muted);
  margin:0;
}

.refresh-area {
  text-align:right;
}

.refresh-area p {
  font-family:ui-monospace,monospace;
  font-size:10px;
  color:var(--muted);
  margin:10px 0 0;
}

.button {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:0;
  background:var(--surface);
  padding:10px 17px;
  color:var(--text);
  font-size:13px;
  font-weight:500;
}

.button:hover:not(:disabled) {
  border-color:var(--green);
  background:var(--raised);
}

.primary {
  background:var(--green);
  border-color:var(--green);
  color:var(--background);
}

.primary:hover:not(:disabled) {
  background:#a0ffb7;
  color:var(--background);
}

.instructions {
  display:flex;
  gap:30px;
  font-size:11px;
  padding-bottom:18px;
  color:var(--muted);
}

.instruction-number {
  font-family:ui-monospace,monospace;
  color:var(--accent);
  font-size:10px;
  margin-right:6px;
}

.calendar-shell {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:0;
  background:var(--surface);
  scrollbar-color:#456a50 var(--background);
}

table {
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  width:100%;
  min-width:780px;
}

th,td {
  text-align:center;
  border-bottom:1px solid var(--line);
  border-right:1px solid #1d3225;
  padding:12px 2px;
}

th:last-child,td:last-child {
  border-right:0;
}

thead th {
  font-weight:400;
  padding-top:18px;
  padding-bottom:10px;
}

thead th:first-child {
  font-family:ui-monospace,monospace;
  font-size:10px;
  letter-spacing:.06em;
  color:var(--muted);
  text-align:left;
  padding-left:18px;
  vertical-align:top;
  padding-top:25px;
}

th:first-child {
  width:180px;
  position:sticky;
  left:0;
  z-index:1;
  background:var(--surface);
}

thead th:first-child {
  z-index:2;
}

tbody th {
  font-weight:500;
  text-align:left;
  padding:0 6px 0 16px;
}

tbody td {
  height:72px;
}

.day-label {
  display:block;
  font-family:ui-monospace,monospace;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.day-number {
  display:block;
  font-family:inherit;
  font-size:27px;
  margin:4px 0 2px;
}

.today .day-label {
  color:var(--accent);
}

.today .day-number {
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-decoration-thickness:1px;
  text-underline-offset:6px;
}

.star {
  font-size:23px;
  min-width:44px;
  min-height:44px;
  background:none;
  border:0;
  color:#86aa91;
  line-height:1;
}

.star[aria-pressed=true] {
  color:var(--accent);
}

.starred {
  background:#192f20;
}

.selected-row th {
  box-shadow:inset 3px 0 var(--green);
  background:#13271b;
}

.participant-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2px;
}

.select-person {
  font-size:13px;
  color:var(--text);
  border:0;
  background:transparent;
  padding:12px 0;
  text-align:left;
  overflow-wrap:anywhere;
  min-height:44px;
  flex:1;
}

.remove-person {
  background:none;
  border:0;
  color:var(--muted);
  font-size:19px;
  min-width:44px;
  min-height:44px;
}

.remove-person:hover {
  color:var(--accent);
}

.check-label {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  cursor:pointer;
  border-radius:0;
}

.check-label:hover {
  background:var(--raised);
}

input[type=checkbox] {
  appearance:none;
  width:25px;
  height:25px;
  margin:0;
  border:1px solid #658b70;
  border-radius:0;
  background:var(--surface);
  cursor:pointer;
  display:grid;
  place-content:center;
}

input[type=checkbox]:checked {
  background:var(--green);
  border-color:var(--green);
}

input[type=checkbox]:checked:after {
  content:'✓';
  font-size:17px;
  color:var(--background);
  font-weight:600;
}

.pending {
  outline:1px dashed var(--accent);
  outline-offset:3px;
}

.pending-cell {
  background:#192f20;
}

tfoot th,tfoot td {
  border-bottom:0;
  font-size:10px;
  padding:16px 2px;
  height:70px;
}

tfoot th {
  text-align:left;
  padding-left:18px;
  color:var(--muted);
  font-family:ui-monospace,monospace;
  font-weight:400;
}

tfoot strong {
  display:block;
  font-size:13px;
  font-weight:500;
}

.summary-label {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:4px;
}

.all-available {
  background:var(--raised);
}

.all-available .summary-label {
  color:var(--green);
}

.empty {
  padding:32px;
  text-align:center;
  border-bottom:1px solid var(--line);
}

.empty p {
  font-family:inherit;
  font-size:24px;
  margin:0 0 8px;
}

.empty span {
  font-size:13px;
  color:var(--muted);
}

.below-calendar {
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-family:ui-monospace,monospace;
  font-size:10px;
  color:var(--muted);
  padding:15px 0;
}

.legend {
  display:flex;
  gap:18px;
}

.join-form {
  margin:25px 0 35px;
  max-width:510px;
}

.join-form label {
  display:block;
  font-family:inherit;
  font-size:22px;
  margin-bottom:12px;
}

.join-controls {
  display:flex;
  gap:8px;
}

.join-controls input {
  min-width:0;
  flex:1;
  background:var(--surface);
  border:1px solid #456a50;
  border-radius:0;
  min-height:46px;
  padding:10px 13px;
  font-size:14px;
}

.join-controls button {
  white-space:nowrap;
}

.join-controls button span {
  margin-left:12px;
}

.quiet {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
}

.notice {
  border:1px solid #ab9c59;
  border-radius:0;
  background:#222318;
  padding:12px 12px 12px 16px;
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  margin:16px 0;
}

.notice>span {
  flex:1;
}

.notice .button {
  white-space:nowrap;
}

.dismiss {
  min-width:44px;
  min-height:44px;
  background:transparent;
  border:0;
  font-size:20px;
  color:var(--text);
}

.save-status {
  font-family:ui-monospace,monospace;
  font-size:10px;
  color:var(--muted);
  min-height:20px;
  margin-bottom:25px;
}

footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:25px;
  padding:22px 0 30px;
  font-size:10px;
  color:var(--muted);
  line-height:1.7;
}

footer>span:first-child {
  font-family:inherit;
  font-size:13px;
  white-space:nowrap;
}

.entry {
  position:relative;
  padding:28px 0 80px;
  max-width:610px;
}

.entry h1 {
  font-size:clamp(40px,6vw,64px);
  margin:22px 0;
}

.entry>p {
  max-width:400px;
  line-height:1.8;
  font-size:14px;
  color:var(--muted);
}

.entry-mark {
  font-family:inherit;
  font-size:13px;
  line-height:1;
  color:var(--accent);
  opacity:.8;
  margin:32px 0;
}

.entry .quiet {
  font-family:inherit;
  font-style:normal;
  font-size:16px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:650px) {
  .page {
    padding:0 18px;
  }
  .masthead {
    padding:21px 0;
  }
  .edition {
    max-width:85px;
    line-height:1.8;
    text-align:right;
  }
  main {
    padding-top:35px;
  }
  .room-heading {
    align-items:flex-start;
    gap:12px;
    margin-bottom:26px;
  }
  .refresh-area {
    padding-top:25px;
    min-width:120px;
  }
  .refresh-area p {
    max-width:145px;
    line-height:1.6;
  }
  .instructions {
    gap:12px;
    justify-content:space-between;
    font-size:10px;
    line-height:1.6;
  }
  .instruction-number {
    display:block;
  }
  table {
    min-width:690px;
  }
  th:first-child {
    width:145px;
  }
  thead th:first-child {
    padding-left:12px;
  }
  tbody th {
    padding-left:10px;
  }
  .join-form {
    margin-top:18px;
  }
  .join-controls {
    gap:6px;
  }
  .join-controls .button {
    padding:10px;
    font-size:12px;
  }
  .join-controls button span {
    display:none;
  }
  .legend {
    gap:10px;
  }
  footer {
    flex-direction:column;
    gap:6px;
  }
  .notice {
    gap:5px;
    padding-left:10px;
    font-size:12px;
  }
  .notice .button {
    padding:8px;
  }
  .eyebrow {
    font-size:8px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  button,input {
    transition:background-color .12s,border-color .12s;
  }
}

.room-heading>div:first-child {
  min-width:0;
}

h1 {
  overflow-wrap:anywhere;
}


.failed-save {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* A quiet phosphor terminal: no blinking or animated scanlines. */
body {
  background-image: radial-gradient(ellipse at 35% 0%, #102419 0%, transparent 60%);
  min-height: 100svh;
}

::selection {
  color: var(--background);
  background: var(--green);
}

.wordmark {
  font-size: 20px;
  letter-spacing: -.055em;
}

h1, .wordmark {
  text-shadow: 0 0 18px #7de59a20;
}

.entry-mark {
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  max-width: 320px;
  letter-spacing: .08em;
}

.entry .quiet {
  font-size: 12px;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.failed-save {
  outline-color: #d6c77e;
}

@media (max-width: 650px) {
  .wordmark { font-size: 17px; }
  .wordmark-sub { font-size: 9px; letter-spacing: 0; }
  .join-controls .button { font-size: 11px; }
}

/* On phones, keep seven dates down the page and stack participant names. */
@media (max-width: 650px) {
  .calendar-shell {
    max-height: 75svh;
    scroll-padding-top: 165px;
  }
  .calendar-compact {
    min-width: 0;
    table-layout: auto;
  }
  .calendar-compact th:first-child {
    width: 96px;
    min-width: 96px;
    padding: 0;
  }
  .calendar-compact thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    padding: 8px 0 0;
    vertical-align: bottom;
  }
  .calendar-compact thead th:first-child {
    padding: 12px 6px;
    z-index: 3;
    font-size: 9px;
    vertical-align: bottom;
  }
  .calendar-compact .person-heading,
  .calendar-compact td {
    min-width: 44px;
    padding: 0;
  }
  .calendar-compact tbody td {
    height: 60px;
  }
  .calendar-compact .participant-label {
    flex-direction: column;
    gap: 0;
  }
  .calendar-compact .select-person {
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-transform: uppercase;
    white-space: nowrap;
    max-height: 140px;
    min-width: 44px;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 1px;
    flex: none;
  }
  .calendar-compact .check-label {
    width: 44px;
    height: 48px;
  }
  .calendar-compact .mobile-day-content {
    display: flex;
    align-items: center;
    min-height: 60px;
  }
  .calendar-compact .star {
    flex: 0 0 44px;
    padding: 0;
  }
  .calendar-compact .date-label {
    flex: 1;
    text-align: center;
    padding: 5px 2px;
  }
  .calendar-compact .day-label {
    font-size: 9px;
  }
  .calendar-compact .day-number {
    font-size: 18px;
    line-height: 1.15;
    margin: 2px 0 3px;
  }
  .calendar-compact .date-summary {
    display: block;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.2;
  }
  .calendar-compact .all-available .date-summary {
    color: var(--green);
  }
  .calendar-compact .selected-column {
    background: #13271b;
    box-shadow: inset 1px 0 var(--line), inset -1px 0 var(--line);
  }
  .calendar-compact .person-heading.selected-column {
    box-shadow: inset 0 3px var(--green);
  }
}
