/* Blutspende — Universitäts-Aktion */

:root {
  --bg: oklch(0.985 0.005 60);
  --bg-elev: oklch(0.995 0.003 60);
  --ink: oklch(0.18 0.012 250);
  --ink-soft: oklch(0.42 0.012 250);
  --ink-faint: oklch(0.62 0.01 250);
  --line: oklch(0.88 0.008 250);
  --line-soft: oklch(0.93 0.006 250);
  --accent: oklch(0.52 0.14 25);
  --accent-ink: oklch(0.32 0.10 25);
  --accent-soft: oklch(0.95 0.025 25);
  --ok: oklch(0.55 0.10 150);
  --ok-soft: oklch(0.95 0.03 150);
  --warn: oklch(0.65 0.12 70);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ============ TOP BAR ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}
.brand small {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 6px;
}
.topnav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topnav button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background .15s, color .15s;
}
.topnav button:hover { color: var(--ink); background: var(--line-soft); }
.topnav button.is-admin {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============ COMMON LAYOUT ============ */
.view {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 96px;
}
.view-narrow {
  max-width: 640px;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
h1.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  text-wrap: balance;
}
h1.display em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: oklch(0.10 0.012 250); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-ink); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Prominent primary call-to-action */
.btn-cta {
  background: var(--accent);
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 32px;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px -8px oklch(0.52 0.14 25 / 0.45);
  position: relative;
  overflow: visible;
}
.btn-cta:hover {
  background: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 28px -8px oklch(0.52 0.14 25 / 0.55);
  transform: translateY(-1px);
}
.btn-cta .cta-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: cta-pulse 2.4s ease-out infinite;
}
@keyframes cta-pulse {
  0%   { transform: scale(0.96); opacity: 0.5; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* Google Maps pin link */
.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  vertical-align: -3px;
  transition: transform .15s, background .15s;
}
.map-pin:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ============ LANDING ============ */
.landing-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .landing-grid { grid-template-columns: 1fr; gap: 48px; }
}
.facts {
  margin: 36px 0 32px;
  border-top: 1px solid var(--line);
}
.facts dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.facts dt, .facts dd {
  margin: 0;
  padding: 16px 0;
  font-size: 14px;
}
.facts dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: center;
}
.facts dd {
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}
.facts dl:first-child dd,
.facts dl:first-child dt {
  border-top: none;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Side card on landing */
.side-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  background: var(--bg-elev);
}
.side-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checklist .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.checklist b { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}
.stats div {
  background: var(--bg-elev);
  padding: 16px;
}
.stats .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
}
.stats .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 4px;
}

/* ============ SLOT PICKER ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
.section-head .meta b { color: var(--ink); font-weight: 600; }

/* Layout A — Linear list with progress bars */
.slots-linear {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.slot-row {
  display: grid;
  grid-template-columns: 110px 1fr 180px 130px;
  align-items: center;
  gap: 24px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .12s, padding .12s;
  cursor: pointer;
}
.slot-row:hover {
  background: var(--bg-elev);
  padding-left: 14px;
}
.slot-row.is-full {
  cursor: not-allowed;
  opacity: 0.5;
}
.slot-row .time {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.slot-row .time .end {
  color: var(--ink-faint);
  font-size: 13px;
}
.slot-row .bar {
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.slot-row .bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s;
}
.slot-row .availability {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.slot-row .availability b { color: var(--ink); font-weight: 600; }
.slot-row .pick {
  text-align: right;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.slot-row:hover .pick { color: var(--accent); }
.slot-row.is-full .pick { color: var(--ink-faint); }

/* Layout B — Grid of cards */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.slot-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  background: var(--bg-elev);
  text-align: left;
  transition: border-color .15s, transform .12s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
}
.slot-card:hover { border-color: var(--ink); }
.slot-card.is-full {
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
}
.slot-card.is-full:hover { border-color: var(--line); }
.slot-card .time {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.slot-card .pip-row {
  display: flex;
  gap: 4px;
  margin-top: auto;
}
.slot-card .pip {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: var(--line-soft);
}
.slot-card .pip.taken { background: var(--accent); }
.slot-card .label {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Layout C — Schedule column */
.slots-schedule {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.slots-schedule .hour-cell {
  padding: 18px 0 18px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line);
  align-self: stretch;
}
.slots-schedule .hour-slots {
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.sched-slot {
  background: var(--bg);
  padding: 14px 12px;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 90px;
  transition: background .15s;
}
.sched-slot:hover { background: var(--bg-elev); }
.sched-slot.is-full { cursor: not-allowed; background: transparent; }
.sched-slot .t {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}
.sched-slot.is-full .t { color: var(--ink-faint); text-decoration: line-through; }
.sched-slot .seats {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.sched-slot .seat {
  width: 10px; height: 10px;
  border: 1px solid var(--line);
  border-radius: 1px;
}
.sched-slot .seat.filled {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============ FORM ============ */
.form-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
  background: var(--bg-elev);
  margin-top: 28px;
}
.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid oklch(0.88 0.04 25);
  border-radius: 4px;
  margin-bottom: 28px;
}
.summary-strip .when {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent-ink);
}
.summary-strip .when b { color: var(--ink); }
.summary-strip button {
  border: none;
  background: transparent;
  color: var(--accent-ink);
  text-decoration: underline;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-bottom-color: var(--ink); }
.field .err {
  color: var(--accent);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  margin-top: 4px;
  min-height: 14px;
}
.toggle-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.toggle-row button {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle-row button:hover { border-color: var(--ink-soft); }
.toggle-row button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.toggle-row button .sub {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: uppercase;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.consent input { margin-top: 3px; }

/* ============ CONFIRM ============ */
.confirm-hero {
  text-align: center;
  padding: 24px 0 8px;
}
.confirm-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  margin: 0 auto 24px;
  position: relative;
  background: var(--ok-soft);
}
.confirm-mark::after {
  content: "";
  position: absolute;
  left: 16px; top: 22px;
  width: 8px; height: 14px;
  border-right: 1.5px solid var(--ok);
  border-bottom: 1.5px solid var(--ok);
  transform: rotate(45deg);
}
.ticket {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  margin-top: 36px;
  overflow: hidden;
}
.ticket-head {
  padding: 22px 28px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-head .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ticket-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ticket-body .big {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.ticket-body .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ticket-actions {
  padding: 18px 28px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg);
}

.tips {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.tips h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.tips ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.tips li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.tips li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ============ ADMIN ============ */
.admin-shell { padding: 36px 28px 96px; max-width: 1400px; margin: 0 auto; }
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
  gap: 24px;
}
.admin-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.admin-stats {
  display: flex;
  gap: 36px;
}
.admin-stats .stat .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.admin-stats .stat .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.admin-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
}
.chip-group {
  display: flex;
  gap: 4px;
  background: var(--line-soft);
  padding: 3px;
  border-radius: 999px;
}
.chip-group button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--ink-soft);
}
.chip-group button.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev);
}
table.bookings {
  width: 100%;
  border-collapse: collapse;
}
table.bookings th, table.bookings td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.bookings th {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.bookings th:hover { color: var(--ink); }
table.bookings th .sort {
  display: inline-block;
  margin-left: 4px;
  font-family: "JetBrains Mono", monospace;
}
table.bookings tr:last-child td { border-bottom: none; }
table.bookings td.t {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
table.bookings tr:hover td { background: var(--bg); }
.tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.tag.first { background: var(--accent-soft); border-color: oklch(0.88 0.04 25); color: var(--accent-ink); }
.tag.checkin { background: var(--ok-soft); border-color: oklch(0.85 0.06 150); color: oklch(0.40 0.10 150); }
.checkbtn {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all .15s;
}
.checkbtn:hover { border-color: var(--ink); color: var(--ink); }
.checkbtn.checked {
  background: oklch(0.55 0.10 150);
  color: white;
  border-color: oklch(0.55 0.10 150);
}
.deletebtn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-faint);
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
}
.deletebtn:hover {
  background: var(--accent-soft);
  border-color: oklch(0.85 0.08 25);
  color: var(--accent);
}
.cell-delete { text-align: right; }
.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-faint);
}
.empty .em-mark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 48px;
  color: var(--line);
  margin-bottom: 8px;
}

/* ============ PASSWORD GATE ============ */
.gate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 24px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
  background: var(--bg-elev);
}
.gate-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.gate-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 24px;
}
.hint {
  margin-top: 16px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.hint code {
  background: var(--line-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  body { font-size: 15px; }

  .topbar { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 16px; gap: 8px; }
  .brand small { display: none; }
  .topnav { gap: 0; }
  .topnav button { padding: 6px 8px; font-size: 11px; }
  .topnav button.is-admin { font-size: 9px; padding: 6px 6px; letter-spacing: 0.06em; }

  .view { padding: 28px 18px 64px; }
  .view-narrow { padding: 28px 18px 64px; }

  h1.display { font-size: clamp(34px, 9vw, 48px); margin: 14px 0 12px; }
  .lede { font-size: 16px; }

  /* Landing */
  .landing-grid { gap: 36px; }
  .facts dl {
    grid-template-columns: 1fr;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .facts dl:last-of-type { border-bottom: none; }
  .facts dt, .facts dd {
    padding: 2px 0;
    font-size: 14px;
    border-top: none;
  }
  .facts dt { padding-top: 0; }
  .facts dd { padding-bottom: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; width: 100%; }
  .btn-cta { font-size: 16px; padding: 16px 24px; }
  .stats { grid-template-columns: 1fr; }
  .stats .num { font-size: 24px; }
  .side-card { padding: 22px; }

  /* Section heads */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }
  .section-head h2 { font-size: 28px; }
  .section-head .meta { text-align: left; }

  /* Slot picker — linear */
  .slot-row {
    grid-template-columns: 84px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 14px 4px;
  }
  .slot-row:hover { padding-left: 8px; }
  .slot-row .time { font-size: 16px; grid-row: 1; }
  .slot-row .availability { font-size: 11px; grid-row: 1; grid-column: 2 / 4; text-align: right; }
  .slot-row .bar { grid-column: 1 / 4; grid-row: 2; }
  .slot-row .pick { display: none; }

  /* Slot picker — grid */
  .slots-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .slot-card { padding: 14px; min-height: 100px; }
  .slot-card .time { font-size: 16px; }

  /* Slot picker — schedule */
  .slots-schedule { grid-template-columns: 56px 1fr; }
  .slots-schedule .hour-cell { font-size: 11px; padding: 12px 0 12px 2px; }
  .slots-schedule .hour-slots { grid-template-columns: repeat(2, 1fr); }
  .sched-slot { padding: 10px 8px; min-height: 70px; }
  .sched-slot .t { font-size: 11px; }

  /* Form */
  .form-card { padding: 20px; }
  .summary-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
  }
  .summary-strip .when { font-size: 12px; }
  .toggle-row { flex-direction: column; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] { font-size: 16px; /* prevent iOS zoom */ }

  /* Confirmation */
  .ticket-head { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ticket-body { padding: 20px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ticket-body .big { font-size: 26px; }
  .ticket-actions { padding: 14px 18px; flex-direction: column; }
  .ticket-actions .btn { width: 100%; justify-content: center; }
  .tips ul { grid-template-columns: 1fr; gap: 10px; }

  /* Admin */
  .admin-shell { padding: 20px 14px 64px; }
  .admin-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .admin-head h2 { font-size: 26px; }
  .admin-stats { gap: 22px; flex-wrap: wrap; }
  .admin-stats .stat .v { font-size: 18px; }

  .admin-toolbar { gap: 10px; }
  .search-box { max-width: none; min-width: 0; flex: 1 1 100%; }
  .chip-group { flex-wrap: wrap; flex: 1 1 100%; }
  .chip-group button { padding: 6px 10px; font-size: 11px; }

  /* Table → card list */
  .table-wrap { border: none; background: transparent; }
  table.bookings, table.bookings tbody, table.bookings tr, table.bookings td {
    display: block;
    width: 100%;
  }
  table.bookings thead { display: none; }
  table.bookings tr {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 14px 16px;
  }
  table.bookings tr:hover td { background: transparent; }
  table.bookings td {
    border: none;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
  }
  table.bookings td::before {
    content: attr(data-label);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  table.bookings td.t { font-size: 14px; }
  .checkbtn { font-size: 11px; padding: 5px 10px; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    font-size: 10px;
    text-align: left;
  }

  /* Gate */
  .gate-card { padding: 24px; }
}

@media (max-width: 380px) {
  .slots-grid { grid-template-columns: 1fr; }
  .ticket-body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* ============ LANDING MODERN ============ */
.landing-modern {
  width: auto;
  max-width: none;
  padding: 0;
  margin: -32px -28px 0;
}
@media (max-width: 720px) {
  .landing-modern { margin: -16px -18px 0; }
}

/* HERO */
.lm-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 28px 96px;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(0.97 0.01 25) 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.lm-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--ink);
  overflow: hidden;
}
.lm-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.lm-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.lm-blob-1 {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, oklch(0.85 0.13 25), transparent 70%);
}
.lm-blob-2 {
  width: 460px; height: 460px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, oklch(0.88 0.07 30), transparent 70%);
  opacity: 0.5;
}
.lm-hero-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.lm-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.lm-tag-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px oklch(0.93 0.06 25);
  animation: lm-pulse 2s ease-in-out infinite;
}
@keyframes lm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.lm-tag-sep {
  width: 1px; height: 12px; background: var(--line);
}
.lm-tag-mute { color: var(--ink-soft); }

.lm-h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 26px 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.lm-h1-accent {
  font-style: italic;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.lm-h1-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: oklch(0.92 0.08 25);
  z-index: -1;
  border-radius: 2px;
}
.lm-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
.lm-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.lm-cta {
  font-size: 16px;
  padding: 16px 32px;
}
.lm-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.lm-link:hover { color: var(--accent); border-color: var(--accent); }
.lm-link-arrow { font-family: "JetBrains Mono", monospace; }

.lm-metrics {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 64px auto 0;
  max-width: 760px;
  flex-wrap: wrap;
}
.lm-metric {
  flex: 1;
  min-width: 120px;
  padding: 0 18px;
  text-align: center;
}
.lm-metric-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lm-metric-num .u {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--ink-faint);
  margin-left: 2px;
  letter-spacing: 0;
}
.lm-metric-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.lm-metric-sep {
  width: 1px;
  background: var(--line);
  flex: 0 0 1px;
  align-self: stretch;
}

/* INFO STEPS */
.lm-info {
  padding: 96px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.lm-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.lm-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.lm-h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.lm-h2-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.lm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lm-step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.lm-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,0.15);
}
.lm-step-accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.lm-step-accent .lm-step-text { color: oklch(0.78 0.012 250); }
.lm-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 22px;
}
.lm-step-accent .lm-step-num { color: oklch(0.85 0.12 25); }
.lm-step-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.lm-step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* INFO STRIP */
.lm-strip {
  background: var(--ink);
  color: var(--bg);
  padding: 44px 28px;
}
.lm-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.lm-strip-cell {
  border-left: 1px solid oklch(0.30 0.012 250);
  padding-left: 18px;
}
.lm-strip-cell:first-child { border-left: none; padding-left: 0; }
.lm-strip-key {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 250);
  margin-bottom: 8px;
}
.lm-strip-val {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: white;
}
.lm-strip-val-sm { font-size: 17px; line-height: 1.35; }
.lm-strip-link {
  display: block;
  margin-top: 4px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 13px;
  color: oklch(0.85 0.10 25);
  text-decoration: none;
  letter-spacing: 0;
}
.lm-strip-link:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }

/* FACTS */
.lm-facts {
  padding: 96px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.lm-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.lm-facts-head { text-align: left; }
.lm-facts-head .lm-h2-sub { max-width: 40ch; }
.lm-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lm-facts-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.lm-facts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.lm-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* FINAL CTA */
.lm-final {
  background: linear-gradient(135deg, oklch(0.96 0.02 25) 0%, var(--bg-elev) 100%);
  border-top: 1px solid var(--line);
  padding: 96px 28px 104px;
  text-align: center;
}
.lm-final-inner {
  max-width: 640px;
  margin: 0 auto;
}
.lm-final-h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.lm-final-p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.lm-cta-final { font-size: 17px; padding: 18px 36px; }

@media (max-width: 880px) {
  .lm-steps { grid-template-columns: 1fr; }
  .lm-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .lm-strip-cell:nth-child(3) { border-left: none; padding-left: 0; }
  .lm-facts-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .lm-hero { padding: 56px 18px 64px; }
  .lm-info, .lm-facts { padding: 64px 18px; }
  .lm-final { padding: 64px 18px 72px; }
  .lm-strip { padding: 32px 18px; }
  .lm-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .lm-strip-cell, .lm-strip-cell:nth-child(3) { border-left: none; padding-left: 0; border-top: 1px solid oklch(0.30 0.012 250); padding-top: 16px; }
  .lm-strip-cell:first-child { border-top: none; padding-top: 0; }
  .lm-metrics { gap: 4px; }
  .lm-metric { min-width: 90px; padding: 0 10px; }
  .lm-metric-num { font-size: 32px; }
}

/* ============ LANDING BOLD ============ */
.landing-bold {
  width: auto;
  max-width: none;
  padding: 0;
  margin: -32px -28px 0;
  background: var(--bg);
}
@media (max-width: 720px) {
  .landing-bold { margin: -16px -18px 0; }
}

/* MASTHEAD */
.lb-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 2px solid var(--ink);
  border-top: 1px solid var(--ink);
  background: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.lb-mast-left { text-align: left; }
.lb-mast-center {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
}
.lb-mast-right { text-align: right; }

/* HERO POSTER GRID */
.lb-poster {
  padding: 0;
  border-bottom: 2px solid var(--ink);
}
.lb-poster-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "numeral headline time"
    "numeral headline place"
    "stats stats stats";
  min-height: 640px;
}
.lb-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.lb-cell:last-child { border-right: none; }

.lb-cell-numeral {
  grid-area: numeral;
  background: var(--accent);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: none;
}
.lb-numeral {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(160px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin-top: -10px;
}
.lb-numeral-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.lb-numeral-label b { font-weight: 600; }
.lb-numeral-label span { opacity: 0.85; }
.lb-tick {
  width: 28px; height: 2px;
  background: white;
  margin-top: 9px;
  flex-shrink: 0;
}

.lb-cell-headline {
  grid-area: headline;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-bottom: none;
  padding: 56px 48px;
}
.lb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lb-kicker-bar {
  width: 24px; height: 2px;
  background: var(--accent);
}
.lb-h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(54px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.lb-h1 em {
  font-style: italic;
  color: var(--accent);
}
.lb-h1-mute { color: var(--ink-faint); font-style: italic; }
.lb-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}
.lb-cta { align-self: flex-start; font-size: 16px; padding: 16px 30px; }

.lb-cell-time {
  grid-area: time;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 24px;
}
.lb-time-label, .lb-place-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}
.lb-time-day {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: oklch(0.85 0.10 25);
}
.lb-time-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(72px, 11vw, 128px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 4px 0;
}
.lb-time-month {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.lb-time-window {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid oklch(0.30 0.012 250);
  width: 100%;
  letter-spacing: 0.04em;
  color: oklch(0.78 0.012 250);
}

.lb-cell-place {
  grid-area: place;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px;
  border-right: none;
  border-bottom: none;
}
.lb-place-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.lb-place-school {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
  margin-bottom: 14px;
}
.lb-place-addr {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  letter-spacing: 0.02em;
}
.lb-place-addr:hover { color: var(--accent); }
.lb-arrow-out { color: var(--accent); }

.lb-cell-stats {
  grid-area: stats;
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  border-right: none;
  border-bottom: none;
}
.lb-stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lb-stat-item:last-child { border-right: none; }
.lb-stat-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.lb-stat-num sup {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  vertical-align: super;
  color: var(--ink-faint);
  margin-left: 2px;
  letter-spacing: 0;
}
.lb-stat-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* TICKER */
.lb-ticker {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.lb-ticker-inner {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: lb-ticker-scroll 32s linear infinite;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.lb-ticker-piece {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  font-style: italic;
}
.lb-ticker-bullet { color: var(--accent); font-size: 14px; }
@keyframes lb-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* MANIFESTO */
.lb-manifesto {
  padding: 96px 32px;
  border-bottom: 1px solid var(--line);
}
.lb-manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.lb-tag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.lb-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.lb-tag-light { border-color: var(--bg); color: var(--bg); }
.lb-tag-line {
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.lb-tag-line-light { background: var(--bg); }
.lb-h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.lb-h2 em { font-style: italic; color: var(--accent); }
.lb-h2-light { color: var(--bg); }
.lb-h2-light em { color: oklch(0.85 0.12 25); }

.lb-manifesto-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.lb-drop {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-style: italic;
  color: var(--ink) !important;
}
.lb-drop-cap {
  float: left;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: normal;
  font-size: 88px;
  line-height: 0.8;
  padding: 8px 14px 0 0;
  color: var(--accent);
}
.lb-bullets {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lb-bullets li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.lb-bullet-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* PREP CARDS */
.lb-prep {
  padding: 96px 32px;
  border-bottom: 1px solid var(--line);
}
.lb-prep-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.lb-prep-head .lb-tag-row { justify-content: center; }
.lb-prep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1300px;
  margin: 0 auto;
  border: 1px solid var(--ink);
}
.lb-prep-card {
  padding: 32px 26px 28px;
  border-right: 1px solid var(--ink);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  position: relative;
}
.lb-prep-card:last-child { border-right: none; }
.lb-prep-card-dark { background: var(--ink); color: var(--bg); }
.lb-prep-card-dark p { color: oklch(0.78 0.012 250); }
.lb-prep-card-accent { background: var(--accent); color: white; }
.lb-prep-card-accent p { color: rgba(255,255,255,0.85); }
.lb-prep-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.lb-prep-rule {
  width: 36px; height: 2px;
  background: currentColor;
  opacity: 0.5;
  margin: 8px 0 12px;
}
.lb-prep-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.lb-prep-card p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

/* COLOPHON */
.lb-colophon {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 32px 104px;
}
.lb-colophon-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.lb-colophon-meta .lb-h2 { color: var(--bg); margin-bottom: 22px; }
.lb-colophon-p {
  font-size: 17px;
  line-height: 1.65;
  color: oklch(0.78 0.012 250);
  margin: 0 0 32px;
  max-width: 50ch;
}
.lb-cta-light {
  font-size: 17px;
  padding: 18px 36px;
}
.lb-colophon-side {
  border-left: 1px solid oklch(0.30 0.012 250);
  padding-left: 32px;
}
.lb-colophon-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid oklch(0.30 0.012 250);
  font-size: 14px;
}
.lb-colophon-row:last-child { border-bottom: none; }
.lb-colophon-row span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 250);
}
.lb-colophon-row b {
  font-weight: 600;
  color: white;
  text-align: right;
}

@media (max-width: 1000px) {
  .lb-poster-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "numeral headline"
      "time place"
      "stats stats";
    min-height: 0;
  }
  .lb-cell-headline { padding: 40px 32px; }
  .lb-manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
  .lb-prep-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prep-card:nth-child(2) { border-right: none; }
  .lb-prep-card:nth-child(1), .lb-prep-card:nth-child(2) { border-bottom: 1px solid var(--ink); }
  .lb-colophon-inner { grid-template-columns: 1fr; gap: 48px; }
  .lb-colophon-side { border-left: none; padding-left: 0; border-top: 1px solid oklch(0.30 0.012 250); padding-top: 24px; }
}
@media (max-width: 640px) {
  .lb-masthead { grid-template-columns: 1fr; gap: 4px; text-align: center; padding: 12px 18px; }
  .lb-mast-left, .lb-mast-right { text-align: center; }
  .lb-poster-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "numeral" "headline" "time" "place" "stats";
  }
  .lb-cell { padding: 28px 20px; border-right: none; }
  .lb-cell-headline { padding: 36px 20px; }
  .lb-cell-stats { grid-template-columns: repeat(2, 1fr); }
  .lb-stat-item:nth-child(2) { border-right: none; }
  .lb-stat-item:nth-child(1), .lb-stat-item:nth-child(2) { border-bottom: 1px solid var(--ink); }
  .lb-manifesto, .lb-prep, .lb-colophon { padding: 56px 18px; }
  .lb-prep-grid { grid-template-columns: 1fr; }
  .lb-prep-card { border-right: none; border-bottom: 1px solid var(--ink); min-height: 0; }
  .lb-prep-card:last-child { border-bottom: none; }
  .lb-ticker-inner { font-size: 20px; }
}

/* ============ LANDING BOLD END ============ */
.sched-availability {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.sched-slot.is-full .sched-availability { color: var(--ink-faint); }

/* ============ ADMIN TABS ============ */
.admin-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 0;
}
.admin-tabs > button:not(.btn) {
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.admin-tabs > button:not(.btn):hover { color: var(--ink); }
.admin-tabs > button.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ============ ADMIN CALENDAR ============ */
.cal-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.cal-legend {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leg-dot {
  width: 10px; height: 10px; border-radius: 2px;
  border: 1px solid var(--line);
  display: inline-block;
}
.leg-empty { background: var(--bg); }
.leg-some  { background: oklch(0.95 0.04 25); border-color: oklch(0.85 0.06 25); }
.leg-full  { background: var(--accent); border-color: var(--accent); }
.leg-checked { background: oklch(0.55 0.10 150); border-color: oklch(0.55 0.10 150); }

.cal-grid {
  display: block;
}
.cal-head, .cal-row {
  display: grid;
  grid-template-columns: 110px repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.cal-head {
  background: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.cal-head > div { padding: 10px 12px; }
.cal-time-col {
  padding: 14px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cal-time-col b { color: var(--ink); font-weight: 600; }
.cal-time-end { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.cal-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 56px;
  cursor: pointer;
  transition: background .15s;
}
.cal-cell:last-child { border-right: none; }
.cal-cell-empty {
  color: var(--ink-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
  background: repeating-linear-gradient(135deg, transparent, transparent 6px, var(--line-soft) 6px, var(--line-soft) 7px);
}
.cal-cell-booked {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.cal-cell-booked:hover { background: oklch(0.92 0.04 25); }
.cal-cell-booked.checked {
  background: var(--ok-soft);
  color: oklch(0.32 0.10 150);
}
.cal-cell-booked.checked:hover { background: oklch(0.90 0.05 150); }
.cal-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-tags { display: flex; gap: 4px; margin-top: 4px; }
.mini-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  background: white;
  border: 1px solid currentColor;
  letter-spacing: 0.04em;
}
.mini-tag.check {
  background: oklch(0.55 0.10 150);
  color: white;
  border-color: oklch(0.55 0.10 150);
}
.cal-row-empty .cal-time-col { color: var(--ink-faint); }
.cal-row-full .cal-time-col { background: oklch(0.97 0.02 25); }
.cal-row-checked .cal-time-col { background: var(--ok-soft); }
.cal-hint {
  position: sticky;
  bottom: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.cal-hint b { color: white; }

/* ============ EXCEL-LIKE TABLE ============ */
.xl-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: auto;
  background: white;
  max-width: 100%;
}
table.xl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
table.xl-table thead th {
  background: oklch(0.96 0.005 250);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: none;
  border-left: none;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
table.xl-table thead th:first-child { border-left: 1px solid var(--line); }
table.xl-table thead th:hover { background: oklch(0.93 0.008 250); }
table.xl-table th .sort {
  margin-left: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
table.xl-table tbody td {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-left: none;
  border-top: none;
  vertical-align: middle;
  white-space: nowrap;
  background: white;
}
table.xl-table tbody td:first-child { border-left: 1px solid var(--line-soft); }
table.xl-table tbody tr:nth-child(even) td { background: oklch(0.985 0.003 250); }
table.xl-table tbody tr:hover td { background: oklch(0.96 0.02 25) !important; }
table.xl-table .rownum {
  background: oklch(0.96 0.005 250) !important;
  color: var(--ink-faint);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  width: 38px;
  border-right: 1px solid var(--line);
}
table.xl-table th.rownum { cursor: default; }
table.xl-table .cell-email {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
table.xl-table .cell-phone {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
table.xl-table .cell-created {
  color: var(--ink-soft);
  font-size: 12px;
}
table.xl-table .t { font-family: "JetBrains Mono", monospace; font-size: 13px; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.35);
  animation: cookie-rise .3s ease-out;
}
@keyframes cookie-rise {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 26px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.cookie-text h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 6px;
  color: white;
  letter-spacing: -0.01em;
}
.cookie-text p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: oklch(0.78 0.012 250);
  max-width: 78ch;
}
.cookie-text p b { color: white; font-weight: 600; }
.cookie-list {
  list-style: none;
  padding: 10px 14px;
  margin: 10px 0 6px;
  background: oklch(0.25 0.012 250);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: oklch(0.82 0.012 250);
}
.cookie-list b {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: white;
}
.cookie-detail-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(0.7 0.05 25);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-detail-toggle:hover { color: white; }
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 220px;
}
.cookie-decline {
  border-color: oklch(0.45 0.012 250) !important;
  color: white !important;
  background: transparent !important;
}
.cookie-decline:hover { border-color: white !important; }
.cookie-accept { white-space: nowrap; }

@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .cookie-actions { flex-direction: row; min-width: 0; }
  .cookie-actions .btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 14px; }
  .cookie-banner { bottom: 8px; left: 8px; right: 8px; }

  .cal-head, .cal-row { grid-template-columns: 84px repeat(4, 1fr); }
  .cal-head > div { font-size: 9px; padding: 8px 6px; }
  .cal-cell { padding: 8px 6px; min-height: 50px; font-size: 12px; }
  .cal-name { font-size: 11px; }
  .cal-time-col { padding: 10px 8px; font-size: 11px; }

  .admin-tabs { overflow-x: auto; }
  .admin-tabs > button:not(.btn) { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

  .xl-wrap { overflow-x: auto; }
  table.xl-table tbody td, table.xl-table thead th { font-size: 12px; padding: 6px 8px; }
}
