/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── NPC Brand Tokens ────────────────────────────────────────── */
:root {
  /* Core NPC palette */
  --npc-navy:      #00467F;
  --npc-navy-mid:  #132040;
  --npc-navy-soft: #1e3160;
  --npc-gold:      #c9a84c;
  --npc-gold-lt:   #e8c96a;
  --npc-gold-bg:   #fdf6e3;
  --npc-red:       #9b1c1c;
  --npc-red-lt:    #fef2f2;
  --npc-teal:      #1a6b63;
  --npc-teal-lt:   #e6f4f2;

  /* Neutrals */
  --ink:    #111827;
  --muted:  #6b7280;
  --border: #d1d5db;
  --paper:  #f9fafb;
  --white:  #ffffff;

  /* Shadows */
  --shadow:    0 2px 12px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
}

/* ── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--npc-navy);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 6px 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 3px solid var(--npc-gold);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 200;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* NPC logo */
.npc-logo-img {
  height: 44px; width: auto;
  display: block;
  object-fit: contain;
}
.npc-logo-fallback {
  display: none; /* shown via JS onerror */
  align-items: center;
}
.npc-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--npc-navy);
  text-transform: uppercase;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--npc-navy); background: var(--paper); }
.nav-links a.nav-active { color: var(--npc-navy); font-weight: 600; }

.btn-logout {
  background: var(--paper); border: 1.5px solid var(--border);
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.85rem !important; color: var(--muted) !important;
  cursor: pointer;
}
.btn-logout:hover { border-color: var(--npc-navy); color: var(--npc-navy) !important; }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: var(--npc-navy);
  cursor: pointer; padding: 4px;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 0.75rem 2rem 1rem;
  gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ── Pages ───────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }
.page.active { display: block; }
.page.active { display: block; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--npc-navy);
  color: var(--white);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(201,168,76,0.18) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 1.5rem; position: relative;
}
.hero-rule-line {
  width: 60px; height: 1px; background: var(--npc-gold); opacity: 0.6;
}
.hero-rule-owl { font-size: 1.1rem; color: var(--npc-gold); }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--npc-gold); margin-bottom: 1.2rem; position: relative;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.12; margin-bottom: 1.25rem; position: relative;
  font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--npc-gold-lt); }
.hero-sub {
  color: rgba(255,255,255,0.6); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 2.5rem; position: relative;
  font-weight: 300;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.925rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.18s; white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--npc-gold); color: var(--npc-navy);
}
.btn-primary:hover {
  background: var(--npc-gold-lt); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}
.btn-navy { background: var(--npc-navy); color: var(--white); }
.btn-navy:hover { background: var(--npc-navy-soft); transform: translateY(-1px); }
.btn-teal { background: var(--npc-teal); color: var(--white); }
.btn-teal:hover { background: #155e57; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--npc-navy); color: var(--npc-navy); }
.btn-danger { background: var(--npc-red); color: var(--white); }
.btn-danger:hover { background: #7f1d1d; }
.btn-sm { padding: 7px 16px; font-size: 0.84rem; }

/* ── How it works ────────────────────────────────────────────── */
.how-section {
  max-width: 1100px; margin: 0 auto; padding: 4.5rem 2rem;
}
.section-label {
  text-align: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--npc-gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700;
  text-align: center; color: var(--npc-navy); margin-bottom: 0.5rem;
}
.section-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 3rem;
}
.section-rule-line { width: 40px; height: 1px; background: var(--npc-gold); }

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card-how {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--npc-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-how:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-how-num {
  font-family: var(--font-serif); font-size: 3.5rem;
  color: rgba(201,168,76,0.12);
  position: absolute; top: -8px; right: 14px;
  line-height: 1; user-select: none; font-weight: 700;
}
.card-how-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.card-how h3 { font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; color: var(--npc-navy); }
.card-how p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-page { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.form-header { margin-bottom: 2.5rem; }
.form-header .tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.tag-lost { background: var(--npc-red-lt); color: var(--npc-red); }
.tag-found { background: var(--npc-teal-lt); color: var(--npc-teal); }
.form-header h2 {
  font-family: var(--font-serif); font-size: 2rem;
  color: var(--npc-navy); font-weight: 700;
}
.form-header p { color: var(--muted); margin-top: 0.5rem; }

.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--npc-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.span2 { grid-column: span 2; }
@media (max-width: 600px) { .field.span2 { grid-column: span 1; } }

label { font-size: 0.85rem; font-weight: 600; color: var(--npc-navy); }
label .req { color: var(--npc-red); margin-left: 2px; }

input, select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--npc-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
textarea { resize: vertical; min-height: 100px; }

/* Photo upload */
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--paper); position: relative;
}
.photo-upload-area:hover {
  border-color: var(--npc-gold); background: var(--npc-gold-bg);
}
.photo-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; padding: 0; border: none; background: none;
}
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { font-weight: 600; color: var(--npc-navy); }
.upload-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.camera-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 18px;
  background: var(--npc-navy); color: var(--white); border: none;
  border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.camera-btn:hover { background: var(--npc-navy-soft); }

.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.photo-preview-wrap { position: relative; }
.photo-preview {
  width: 80px; height: 80px; border-radius: 6px;
  object-fit: cover; border: 2px solid var(--border);
}
.photo-preview-wrap button {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--npc-red); color: var(--white); border: none;
  cursor: pointer; font-size: 11px; line-height: 20px; text-align: center;
}

/* Camera modal video */
#camera-stream { width: 100%; border-radius: 8px; display: block; }
.camera-controls { display: flex; gap: 1rem; margin-top: 1rem; justify-content: center; }

/* ── Staff Login ──────────────────────────────────────────────── */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 120px); padding: 2rem;
  background: linear-gradient(160deg, var(--npc-navy) 0%, var(--npc-navy-soft) 100%);
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 3rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-card-logo {
  text-align: center; margin-bottom: 2rem;
}
.login-card-logo img {
  height: 48px; width: auto; object-fit: contain;
}
.login-card-logo-fallback {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.1em;
  color: var(--npc-navy); text-transform: uppercase;
}
.login-divider {
  width: 40px; height: 2px; background: var(--npc-gold);
  margin: 1rem auto;
}
.login-card h2 {
  font-family: var(--font-serif); font-size: 1.6rem;
  text-align: center; color: var(--npc-navy);
}
.login-card p {
  color: var(--muted); text-align: center;
  font-size: 0.875rem; margin-top: 0.3rem;
}
.login-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.login-form .btn { width: 100%; justify-content: center; padding: 14px; }
.error-msg {
  background: var(--npc-red-lt); color: var(--npc-red);
  padding: 10px 14px; border-radius: 6px; font-size: 0.875rem;
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-wrap { max-width: 1240px; margin: 0 auto; padding: 2.5rem 2rem; }
.dash-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 2rem;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--npc-gold);
}
.dash-header-left h2 {
  font-family: var(--font-serif); font-size: 1.8rem;
  color: var(--npc-navy); font-weight: 700;
}
.dash-welcome { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .stat-num {
  font-family: var(--font-serif); font-size: 2.6rem;
  line-height: 1; color: var(--npc-navy); font-weight: 700;
}
.stat-card .stat-label {
  font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px;
  font-weight: 600;
}
.stat-card.lost   { border-top: 3px solid var(--npc-red); }
.stat-card.found  { border-top: 3px solid var(--npc-teal); }
.stat-card.match  { border-top: 3px solid var(--npc-gold); }
.stat-card.total  { border-top: 3px solid var(--npc-navy); }

/* Tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border); margin-bottom: 1.5rem;
}
.tab {
  padding: 12px 22px; cursor: pointer; font-weight: 600; font-size: 0.875rem;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; background: none;
  border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--npc-navy); }
.tab.active { color: var(--npc-navy); border-bottom-color: var(--npc-gold); }

/* Filters */
.filter-bar { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-bar input  { flex: 1; max-width: 280px; }
.filter-bar select { max-width: 200px; }

/* Item cards grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.item-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.15s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.item-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.item-card-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.5rem;
}
.item-name { font-weight: 700; font-size: 1rem; color: var(--npc-navy); }
.item-cat  { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.item-badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase;
  letter-spacing: 0.06em; white-space: nowrap;
}
.badge-open     { background: #ecfdf5; color: #065f46; }
.badge-resolved { background: #eff6ff; color: #1e40af; }
.badge-closed   { background: var(--paper); color: var(--muted); }

.item-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  font-size: 0.8rem; color: var(--muted);
}
.item-meta span { display: flex; align-items: center; gap: 4px; }
.item-desc { font-size: 0.875rem; color: #374151; line-height: 1.55; }
.item-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.item-photo {
  width: 58px; height: 58px; border-radius: 6px;
  object-fit: cover; cursor: pointer; border: 1px solid var(--border);
  transition: opacity 0.2s;
}
.item-photo:hover { opacity: 0.85; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Match cards */
.match-card {
  background: var(--white); border: 1px solid var(--npc-gold);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.match-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.match-score {
  background: var(--npc-gold); color: var(--npc-navy);
  font-weight: 700; padding: 4px 14px;
  border-radius: 20px; font-size: 0.84rem;
}
.match-pair {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 1rem; align-items: start;
}
.match-item { padding: 1rem; border-radius: 8px; }
.match-item.lost  { background: var(--npc-red-lt); }
.match-item.found { background: var(--npc-teal-lt); }
.match-divider {
  display: flex; align-items: center;
  font-size: 1.4rem; color: var(--npc-gold); padding-top: 1rem;
}
.match-reasons { margin-top: 1rem; }
.match-reason-tag {
  display: inline-block; margin: 3px;
  padding: 3px 10px; background: var(--npc-gold-bg);
  color: #78350f; border-radius: 20px; font-size: 0.78rem;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1000;
  background: var(--npc-navy); color: var(--white);
  padding: 14px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s; pointer-events: none; max-width: 340px;
}
.toast.show  { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--npc-teal); }
.toast.error   { background: var(--npc-red); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,22,40,0.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 700px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 2rem; position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--paper); border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 0.9rem; color: var(--muted);
}
.modal-close:hover { background: var(--border); }

/* ── Success page ────────────────────────────────────────────── */
.success-page {
  max-width: 560px; margin: 0 auto;
  padding: 5rem 2rem; text-align: center;
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page h2 {
  font-family: var(--font-serif); font-size: 2rem;
  color: var(--npc-navy); margin-bottom: 0.75rem;
}
.success-page p { color: var(--muted); margin-bottom: 1rem; }
.success-ref {
  display: inline-block;
  background: var(--npc-gold-bg); border: 1px solid var(--npc-gold);
  border-radius: 6px; padding: 8px 20px;
  font-family: monospace; font-size: 0.85rem;
  color: var(--npc-navy); margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--npc-navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: auto;
  font-size: 0.825rem;
  line-height: 1.8;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo {
  height: 36px; width: auto;
  filter: brightness(0) invert(1); opacity: 0.5;
  margin-bottom: 1rem;
  display: block; margin-left: auto; margin-right: auto;
}

/* ── Misc ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.loading { text-align: center; padding: 3rem; color: var(--muted); }

@media (max-width: 768px) {
  .match-pair { grid-template-columns: 1fr; }
  .match-divider { justify-content: center; transform: rotate(90deg); }
  .dash-header { flex-direction: column; }
  .topbar { display: none; }
}

input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}


/* Fix mobile empty space after footer */
#app {
  min-height: 100dvh;
}

.page.active {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: 0;
}
