/* ============================================================
   F1 Paddock Invitation — design system
   Carbon black · champagne gold · restrained racing red
   Marcellus (display) · Archivo (body) · IBM Plex Mono (data)
   Single committed dark theme: every surface painted explicitly.
   ============================================================ */

:root {
  --carbon: #0a0a0e;
  --carbon-2: #101017;
  --panel: #14141c;
  --panel-2: #191922;
  --line: #272733;
  --line-soft: #1e1e28;
  --gold: #c9a86a;
  --gold-bright: #e6cc95;
  --gold-dim: rgba(201, 168, 106, 0.14);
  --red: #e10600;
  --green: #3ba55d;
  --ivory: #f2ede3;
  --muted: #8e8d99;
  --faint: #5c5b66;

  --display: "Marcellus", "Times New Roman", serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

/* the hidden attribute must always win, even over display:flex/grid rules */
[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--carbon);
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(201, 168, 106, 0.07),
      transparent 70%
    );
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 168, 106, 0.3); }

/* ---- shared primitives ---- */

/* white APS wordmark reads directly on carbon — no plate needed */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.logo-img.small { height: 30px; }
.logo-img.invite-logo { height: 58px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.35;
}

/* subtle checkered strip, used as a page footer motif */
.chequer {
  height: 8px;
  background: repeating-conic-gradient(
      rgba(242, 237, 227, 0.16) 0% 25%,
      transparent 0% 50%
    )
    0 0 / 16px 16px;
  opacity: 0.5;
}

/* start lights: five dots that read as the gantry */
.startlights {
  display: inline-flex;
  gap: 10px;
}
.startlights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c2c38;
}
.startlights i.lit { background: var(--red); box-shadow: 0 0 8px rgba(225, 6, 0, 0.7); }
.startlights i.gold { background: var(--gold); box-shadow: 0 0 8px rgba(201, 168, 106, 0.6); }

.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #171204;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover { background: transparent; color: var(--ivory); border-color: var(--muted); }

.btn-danger-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-danger-ghost:hover { background: transparent; color: var(--red); border-color: var(--red); }

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--carbon-2);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 0.9375rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; line-height: 1.55; }

.field-hint {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: 0.45rem 0 0;
}

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2);
  border: 1px solid var(--gold);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

/* ============================================================
   Guest pages (landing + invitation)
   ============================================================ */

.guest-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
}

.pass {
  width: 100%;
  max-width: 680px;
  /* the circuit scene lives on the pass itself, dimming toward the
     content so type stays legible over the darkest part of the image */
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 17, 0.42) 0%,
      rgba(11, 11, 16, 0.78) 42%,
      rgba(10, 10, 14, 0.95) 78%,
      rgba(10, 10, 14, 0.98) 100%
    ),
    url("/bg.jpg") center 30% / cover no-repeat,
    linear-gradient(175deg, var(--panel) 0%, var(--carbon-2) 100%);
  border: 1px solid var(--line);
  position: relative;
}
.pass::before {
  /* champagne top rail */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pass-inner { padding: 3rem 3rem 2.5rem; }

.pass-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

h1.event-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.venue-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.venue-detail {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: -0.4rem 0 0;
}

/* after-party numbered pass */
.ap-number-label {
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.ap-number {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4rem);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin: 0.3rem 0 0;
  font-variant-numeric: tabular-nums;
}
.ap-note {
  text-align: center;
  color: var(--muted);
  max-width: 44ch;
  margin: 1.6rem auto 0;
}
.ap-name-field {
  max-width: 340px;
  margin: 1.5rem auto 0;
  text-align: left;
}
.ap-name-field label { text-align: center; }
.ap-name-field input { text-align: center; }

.guest-name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold-bright);
  margin: 0.2rem 0 0;
  font-weight: 400;
}

.allowance-note {
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
}
.allowance-note strong { color: var(--gold); font-weight: 500; }

.deadline-note {
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0.9rem 0 0;
}
.deadline-note strong { color: var(--gold); font-weight: 500; }

/* ---- day selection cards ---- */

.days {
  display: grid;
  /* --day-count is set per guest: hidden days don't leave gaps */
  grid-template-columns: repeat(var(--day-count, 3), 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0;
}
@media (max-width: 560px) {
  .days { grid-template-columns: 1fr; }
}

.day-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--carbon-2);
  padding: 1.4rem 1.1rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.day-card:hover { border-color: var(--muted); }
.day-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.day-card .day-num {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.day-card .day-label {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--ivory);
}
.day-card .day-date {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.5;
}
.day-card .day-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.15s ease;
}

.day-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.day-card.selected .day-label { color: var(--gold-bright); }
.day-card.selected .day-tick {
  border-color: var(--gold);
  background: var(--gold);
  color: #171204;
}

.day-card.locked {
  cursor: not-allowed;
  opacity: 0.45;
}
.day-card.locked:hover { border-color: var(--line); }

/* race-day cards carry a fine red keel line */
.day-card.race::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  opacity: 0.65;
}

/* +1 companion */
#plusOneBlock { margin-top: 1.4rem; }
.day-card.plusone { width: 100%; padding: 1.1rem 1.1rem 1rem; }
#plusOneNameWrap { margin-top: 0.75rem; }

.select-hint {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-align: center;
  margin: 1rem 0 0;
  min-height: 1.2em;
}
.select-hint.warn { color: var(--red); }

.pass-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* ---- confirmed / declined states ---- */

.state-panel { text-align: center; padding: 0.5rem 0 0; }
.state-panel .big {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 1.2rem 0 0.4rem;
  color: var(--gold-bright);
}
.state-panel .sub { color: var(--muted); max-width: 42ch; margin: 0 auto; }

.confirmed-days {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 0.4rem;
}
.confirmed-days .chip {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
}

.amend-link {
  display: inline-block;
  margin-top: 1.9rem;
  background: none;
  border: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.amend-link:hover { color: var(--muted); }

/* ---- sub-company logos in the pass footer ---- */

.pass-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.6rem 2rem 1.8rem;
  border-top: 1px solid var(--line-soft);
}
.partners-eyebrow {
  font-family: var(--mono);
  font-size: 0.5938rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem 1.8rem;
  flex-wrap: wrap;
}
/* sized by a bounding box so square stacked marks and wide wordmarks
   carry similar visual weight */
.partner-logos img {
  height: auto;
  width: auto;
  max-height: 58px;
  max-width: 148px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px);
  animation: partnerIn 0.7s ease forwards;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
/* dark-text brand marks sit on a soft ivory chip to read on carbon */
.partner-logos img.chip {
  max-height: 52px;
  max-width: 172px;
  background: #f4f1ea;
  padding: 9px 15px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
/* staggered entrance, left to right; supports future additions */
.partner-logos img:nth-child(1) { animation-delay: 0.35s; }
.partner-logos img:nth-child(2) { animation-delay: 0.55s; }
.partner-logos img:nth-child(3) { animation-delay: 0.75s; }
.partner-logos img:nth-child(4) { animation-delay: 0.95s; }
.partner-logos img:nth-child(5) { animation-delay: 1.15s; }
.partner-logos img:nth-child(6) { animation-delay: 1.35s; }
.partner-logos img:hover { opacity: 1; }
@keyframes partnerIn {
  to { opacity: 0.85; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-logos img {
    animation: none;
    opacity: 0.85;
    transform: none;
  }
}

/* ---- landing (code entry) ---- */

.code-entry { max-width: 420px; width: 100%; text-align: center; }
.code-entry input {
  text-align: center;
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 1rem;
}
.code-entry .btn { width: 100%; margin-top: 0.9rem; }

.page-foot {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

/* ============================================================
   Admin
   ============================================================ */

.admin-shell { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }

.admin-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.75rem;
}
.admin-topbar h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
}
.admin-topbar .right { display: flex; gap: 0.6rem; align-items: center; }

.view-tabs {
  display: flex;
  gap: 0.4rem;
  margin: -0.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.view-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.view-tab:hover { color: var(--ivory); }
.view-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.view-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.view-toolbar {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1rem 1.2rem;
}
.stat .k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat .v {
  font-family: var(--display);
  font-size: 1.75rem;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 0.9rem; color: var(--faint); font-family: var(--mono); }
.stat.day-stat .v { color: var(--gold-bright); }

.section-title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.25rem 0 0.9rem;
}

.add-form {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.1rem 1.2rem 1.2rem;
}
@media (max-width: 760px) {
  .add-form { grid-template-columns: 1fr 1fr; }
}

.hod-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.1rem 1.2rem 1.2rem;
}
.hod-form { display: flex; gap: 0.75rem; align-items: end; }
.hod-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.hod-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem 0.35rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.hod-chip .count { color: var(--faint); }
.hod-chip button {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 0.2rem;
}
.hod-chip button:hover { color: var(--red); }

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.list-head .section-title { margin-bottom: 0.9rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201, 168, 106, 0.03); }

td .guest { font-weight: 500; }
td .guest-email { color: var(--faint); font-size: 0.75rem; display: block; }

.code-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.status-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-chip.confirmed { border-color: var(--green); color: var(--green); }
.status-chip.declined { border-color: var(--red); color: var(--red); }

.day-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.day-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 168, 106, 0.4);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

/* clickable eligibility chips in the admin table */
button.day-tag {
  appearance: none;
  background: transparent;
  cursor: pointer;
}
button.day-tag.off {
  color: var(--faint);
  border-color: var(--line-soft);
  text-decoration: line-through;
}
button.day-tag:hover { border-color: var(--gold); }
button.day-tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

select.allowance {
  width: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.6rem;
}

.row-actions { display: flex; gap: 0.4rem; }
.icon-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--ivory); border-color: var(--muted); }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.25rem;
}
@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
}
.settings-grid .full { grid-column: 1 / -1; }
.settings-days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
@media (max-width: 700px) {
  .settings-days { grid-template-columns: 1fr; }
}
.settings-day {
  border: 1px solid var(--line-soft);
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

/* WhatsApp send dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.75rem;
}
.modal-guest {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin: 0 0 1.1rem;
}
.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 520px) {
  .edit-grid { grid-template-columns: 1fr; }
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.report-list { display: flex; flex-direction: column; gap: 0.6rem; }
.report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-soft);
  padding: 0.9rem 1rem;
}
.report-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ivory);
}
.report-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.report-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* admin login */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.5rem 2.25rem;
  text-align: center;
}
.login-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 1rem 0 0.25rem;
}
.login-card p { color: var(--muted); font-size: 0.875rem; margin: 0 0 1.5rem; }
.login-card .btn { width: 100%; margin-top: 0.9rem; }
.login-error {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
  min-height: 1em;
}

.empty-note {
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
