/* ClassMaster — dark theme, ported from the wrestling-club.html prototype.
   Shared variables + base; then component blocks for landing/auth/app. */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1f232c;
  --border: #2a303c;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #e63946;
  --accent-2: #ffb703;
  --kids: #4cc9f0;
  --adults: #f77f00;
  --good: #2ecc71;
  --bad: #ff6b6b;
  --soft: #252a34;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

code {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ================ Site header / footer ================ */
.site-header {
  background: linear-gradient(135deg, #1c1f28, #0f1115);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.brand:hover { color: var(--text); }

.top-nav {
  display: flex; align-items: center; gap: 14px;
}
.top-nav a { color: var(--muted); font-size: 14px; }
.top-nav a:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; padding: 0; }

.site-main { min-height: calc(100vh - 140px); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-links .sep { opacity: 0.4; margin: 0 4px; }

/* ================ Buttons ================ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: filter 0.15s, background 0.15s;
  text-align: center;
}
.btn:hover { filter: brightness(1.1); color: #fff; }
.btn.large { padding: 12px 22px; font-size: 15px; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.block { display: block; width: 100%; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--panel-2); filter: none; }

/* ================ Landing ================ */
.hero {
  padding: 80px 22px 60px;
  background: radial-gradient(ellipse at top, rgba(230,57,70,0.12), transparent 60%);
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}
.hero-sub { font-size: 17px; color: var(--muted); margin: 0 auto 28px; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }

.features { padding: 40px 22px; max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature-card h3 { margin: 10px 0 8px; font-size: 17px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.feature-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 14px;
}
.feature-icon.kids { background: var(--kids); color: #0f1115; }
.feature-icon.adults { background: var(--adults); }
.feature-icon.accent { background: var(--accent); }

.cta-band {
  padding: 60px 22px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.cta-band h2 { font-size: 28px; margin: 0 0 6px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

/* ================ Pricing ================ */
.pricing { padding: 60px 22px; max-width: 520px; margin: 0 auto; text-align: center; }
.pricing h1 { font-size: 34px; margin: 0 0 6px; }
.pricing-card {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.price-head { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-head .price { font-size: 56px; font-weight: 800; letter-spacing: -1px; }
.price-head .per { color: var(--muted); font-size: 16px; }
.price-list {
  text-align: left;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.price-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "✓";
  color: var(--good);
  font-weight: 700;
  margin-right: 10px;
}

/* ================ Auth pages ================ */
.auth { padding: 60px 22px; display: flex; justify-content: center; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
}
.auth-card.wide { max-width: 560px; }
.auth-card.center { text-align: center; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

form.stacked label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 4px;
  font-weight: 500;
}
form.stacked input {
  width: 100%;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
}
form.stacked input:focus { outline: none; border-color: var(--accent); }
form.stacked button { margin-top: 18px; }

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin: 10px 0;
}
.alert.error { background: rgba(255, 107, 107, 0.15); color: var(--bad); }
.alert.success { background: rgba(46, 204, 113, 0.15); color: var(--good); }

/* ================ App shell ================ */
.app-shell { max-width: 1100px; margin: 0 auto; padding: 28px 22px; }
.app-welcome { margin-bottom: 22px; }
.app-welcome h1 { margin: 0 0 4px; font-size: 24px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat .value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat.accent { border-top: 3px solid var(--accent); }
.stat.kids { border-top: 3px solid var(--kids); }
.stat.adults { border-top: 3px solid var(--adults); }
.stat.bal { border-top: 3px solid var(--accent-2); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 10px; font-size: 16px; }

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.placeholder {
  background: var(--soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}
.placeholder h3 { margin: 0 0 6px; font-size: 14px; }
.placeholder p { margin: 0; font-size: 12px; color: var(--muted); }

.join-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 2px;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(154, 163, 178, 0.15);
  color: var(--muted);
}
.pill.warn { background: rgba(255, 183, 3, 0.18); color: var(--accent-2); }
.pill.ok { background: rgba(46, 204, 113, 0.15); color: var(--good); }

.club-choice { margin: 10px 0; }
.club-choice-btn {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}
.club-choice-btn:hover { border-color: var(--accent); }

/* ================ Phase 1b: page head, tables, forms, kiosk ================ */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0 0 4px 0; }
.page-actions { display: flex; gap: 10px; align-items: center; }

.top-nav a.on { color: var(--accent); }

.filter-row { margin: 12px 0; }
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filter-bar select, .filter-bar input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.data-table tr.dim { opacity: 0.5; }
.data-table td.right, .data-table th.right { text-align: right; }
.data-table tfoot td { border-top: 2px solid var(--border); border-bottom: none; padding-top: 14px; }

.row-actions a { font-size: 13px; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
}
.pill.kids { background: rgba(76, 201, 240, 0.15); border-color: var(--kids); color: var(--kids); }
.pill.adults { background: rgba(247, 127, 0, 0.15); border-color: var(--adults); color: var(--adults); }
.pill.ok { background: rgba(46, 204, 113, 0.15); border-color: var(--good); color: var(--good); }
.pill.warn { background: rgba(255, 107, 107, 0.15); border-color: var(--bad); color: var(--bad); }

.stack-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 70px; }
.field .err { color: var(--bad); font-size: 12px; }
.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.field-set {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.field-set legend { padding: 0 6px; color: var(--muted); font-size: 13px; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.form-actions.sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 16px 0;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }

.detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.detail-grid dt { color: var(--muted); font-size: 13px; }
.detail-grid dd { margin: 0; }

.empty { text-align: center; padding: 40px 20px; }
.empty h2 { margin-top: 0; }

.placeholder.link { cursor: pointer; text-decoration: none; display: block; }
.placeholder.link:hover { border-color: var(--accent); }
.placeholder.link h3 { color: var(--text); }

.banner {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.banner.ok { background: rgba(46, 204, 113, 0.1); border-color: var(--good); color: var(--good); }

/* Kiosk grid of tap tiles */
.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kiosk-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
  min-height: 76px;
  justify-content: center;
}
.kiosk-tile:hover { border-color: var(--muted); }
.kiosk-tile input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.kiosk-tile .tile-name { font-weight: 600; }
.kiosk-tile .tile-meta { font-size: 12px; color: var(--muted); }
.kiosk-tile.on {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--good);
}
.kiosk-tile:has(input:checked) {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--good);
}

.small { font-size: 12px; }

.inline-record { position: relative; display: inline-block; }
.inline-record > summary {
  list-style: none;
  cursor: pointer;
}
.inline-record > summary::-webkit-details-marker { display: none; }
.inline-record[open] > .stack-form.mini {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  width: 260px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.stack-form.mini label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.stack-form.mini input, .stack-form.mini select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 13px;
}

/* ================ Pricing / plans ================ */
.pricing-section { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-badge {
  position: absolute;
  top: -11px; right: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-card h2 { margin: 0; font-size: 22px; }
.plan-card .small { font-size: 13px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-size: 32px; font-weight: 700; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-card ul.price-list { flex: 1; padding-left: 18px; }
.plan-card ul.price-list li { font-size: 14px; margin-bottom: 6px; color: var(--text); }
.btn.block { display: block; text-align: center; }

.usage-grid { display: flex; flex-direction: column; gap: 10px; }
.usage-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.usage-label { color: var(--muted); }
.usage-bar { height: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--good); }
.usage-fill.warn { background: var(--accent-2); }
.usage-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }

/* ================ Landing extras ================ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-note { margin-top: 12px; font-size: 13px; }
.value-strip {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.value-strip-inner div { display: flex; flex-direction: column; gap: 4px; }
.value-strip-inner strong { font-size: 20px; color: var(--text); }
.value-strip-inner span { color: var(--muted); font-size: 13px; }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: 28px; margin: 0 0 8px 0; }
.how-it-works { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px 0; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ================ Legal / feedback pages ================ */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-inner h1 { font-size: 30px; margin-top: 0; }
.legal-inner h2 { font-size: 18px; margin-top: 28px; }
.legal-inner p, .legal-inner li { color: var(--text); font-size: 15px; line-height: 1.6; }
.legal-inner ul { padding-left: 22px; }
.legal-inner .muted { color: var(--muted); }
.req { color: var(--accent); font-weight: 700; }
small.muted { display: block; margin-top: 4px; font-size: 12px; }

/* ================ Report-a-bug header link ================ */
.report-link {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.report-link:hover { color: var(--text); border-color: var(--accent); }

/* ================ Shared bits ================ */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.flash.success { background: rgba(46, 204, 113, 0.14); border: 1px solid rgba(46, 204, 113, 0.5); color: var(--good); }
.flash.error { background: rgba(230, 57, 70, 0.12); border: 1px solid rgba(230, 57, 70, 0.5); color: var(--bad); }
.flash.info { background: rgba(76, 201, 240, 0.14); border: 1px solid rgba(76, 201, 240, 0.5); color: var(--kids); }

.std-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.std-table th, .std-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
.std-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.std-table tr:last-child td { border-bottom: none; }

.legal-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checkbox input { margin-top: 3px; }

/* ================ Calendar ================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border);
  gap: 1px;
}
.cal-header {
  background: var(--panel);
  padding: 8px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
}
.cal-cell {
  background: var(--panel);
  min-height: 96px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell.out { background: var(--bg); opacity: 0.55; }
.cal-day { font-size: 12px; color: var(--muted); font-weight: 500; }
.cal-slot {
  font-size: 12px;
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(76, 201, 240, 0.12);
  border-left: 3px solid var(--kids);
  color: var(--text);
}
.cal-slot.adults { background: rgba(247, 127, 0, 0.12); border-left-color: var(--adults); }
.cal-slot .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-slot .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-slot a.n { color: var(--text); text-decoration: none; }
.cal-slot a.n:hover { text-decoration: underline; }

/* ================ Messages ================ */
.msg {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 10px;
}
.msg-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.msg-body { margin-top: 8px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }

/* ================ Invite page ================ */
.invite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: flex-start;
}
.qr-wrap { text-align: center; }
.qr-wrap svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 6px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.template-block { margin-bottom: 20px; }
.template-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.template-block textarea,
.template-block input[type=text] {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}

/* ================ Responsive ================ */
@media (max-width: 700px) {
  .hero h1 { font-size: 34px; }
  .site-header-inner { flex-wrap: wrap; }
  .top-nav { flex-wrap: wrap; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dt { margin-top: 8px; }
  .invite-grid { grid-template-columns: 1fr; }
}
