/* ============================================================
   Fiveserver — Public site stylesheet
   Colors match the existing admin panel for brand consistency.
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:       #131e2b;
  --surface:  #1e2a38;
  --surface2: #243347;
  --border:   #2d3f52;
  --accent:   #2563eb;
  --accent-h: #1d4ed8;
  --link:     #7dd3fc;
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --font:     Arial, Helvetica, sans-serif;
  --radius:   6px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Navigation ─────────────────────────────────────────── */
.pub-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pub-nav-logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--link);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: .02em;
}
.pub-nav-logo:hover { text-decoration: none; opacity: .85; }

.pub-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pub-nav-links a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.pub-nav-links a:hover,
.pub-nav-links a.active { background: var(--surface2); color: var(--text); text-decoration: none; }

.pub-nav-links .btn-register {
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius);
}
.pub-nav-links .btn-register:hover { background: var(--accent-h); }

/* hamburger hidden on desktop */
.pub-nav-hamburger { display: none; cursor: pointer; color: var(--muted); font-size: 1.4rem; }

/* ── Container ───────────────────────────────────────────── */
.pub-main { flex: 1; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 64px 20px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-h); text-decoration: none; }

/* ── Live stats strip ────────────────────────────────────── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stats-strip-item {
  flex: 1;
  max-width: 220px;
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-strip-item:last-child { border-right: none; }

.stats-strip-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--link);
  display: block;
}

.stats-strip-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}

/* ── Carousel (home live/recent matches) ─────────────────── */
.carousel-wrap {
  margin: 32px auto;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-header {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  gap: 8px;
}

.carousel-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.carousel-arrow {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.carousel-arrow:hover { background: var(--border); color: var(--text); }

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .15s;
}
.carousel-dot.active { background: var(--link); }

.carousel-refresh {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  transition: color .15s;
}
.carousel-refresh:hover { color: var(--text); }

.carousel-body { min-height: 120px; }

.carousel-slide { display: none; }
.carousel-slide.active { display: block; }

.carousel-table {
  width: 100%;
  border-collapse: collapse;
}
.carousel-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
}
.carousel-table tr:last-child td { border-bottom: none; }
.carousel-table .score { font-weight: 700; color: var(--link); text-align: center; }
.carousel-table .meta  { color: var(--muted); font-size: .8rem; text-align: right; }

.carousel-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ── Page sections ───────────────────────────────────────── */
.page-section {
  padding: 32px 0;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Tables ──────────────────────────────────────────────── */
.pub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.pub-table thead th {
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pub-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.pub-table thead th.sortable:hover { color: var(--text); }
.pub-table thead th.sort-active { color: var(--link); }

.pub-table tbody tr:nth-child(even) { background: var(--surface); }
.pub-table tbody tr:hover { background: var(--surface2); }

.pub-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.pub-table tbody tr:last-child td { border-bottom: none; }

/* ── Division badges ─────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.badge-1  { background: #78350f; color: #fbbf24; }   /* D1 — gold */
.badge-2  { background: #374151; color: #d1d5db; }   /* D2 — silver */
.badge-3a { background: #292524; color: #a78bfa; }   /* D3A — purple-bronze */
.badge-3b { background: #292524; color: #c084fc; }   /* D3B */
.badge-a  { background: #1c1917; color: #6b7280; }   /* A   — grey */

/* ── Stats cards grid ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--link);
  display: block;
}

.stat-card-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}

/* ── Profile search ──────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); }

.search-btn {
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
  font-family: var(--font);
  transition: background .15s;
}
.search-btn:hover { background: var(--accent-h); }

/* autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  min-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.autocomplete-item {
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
  font-size: .9rem;
}
.autocomplete-item:hover { background: var(--surface2); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-block;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .85rem;
  transition: background .15s;
  text-decoration: none;
}
.page-link:hover { background: var(--surface2); text-decoration: none; }
.page-link.disabled { opacity: .4; pointer-events: none; }

.page-info {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 4px;
}

/* ── Per-page selector ───────────────────────────────────── */
.per-page-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.per-page-label { color: var(--muted); font-size: .85rem; }

.per-page-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .85rem;
  cursor: pointer;
}

/* ── Division filter pills ───────────────────────────────── */
.div-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.div-pill {
  padding: 3px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.div-pill:hover,
.div-pill.active { background: var(--surface2); color: var(--text); text-decoration: none; }

/* ── Team flags ──────────────────────────────────────────── */
.flag {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ── Downloads file explorer ─────────────────────────────── */
.dl-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dl-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dl-panel-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.dl-breadcrumb {
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.dl-breadcrumb a { color: var(--link); }

.dl-panel-intro {
  padding: 24px 18px;
  color: var(--muted);
  font-size: .9rem;
}

.dl-panel-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.dl-panel-cta:hover { background: var(--accent-h); text-decoration: none; }

.dl-list { list-style: none; margin: 0; padding: 0; }

.dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
}
.dl-item:last-child { border-bottom: none; }

.dl-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.dl-item-name { flex: 1; }
.dl-item-name a { color: var(--text); }
.dl-item-name a:hover { color: var(--link); }

.dl-item-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.dl-item-action a,
.dl-item-action button {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .8rem;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: var(--font);
}
.dl-item-action a:hover,
.dl-item-action button:hover { background: var(--border); text-decoration: none; }

/* ── Social icons ────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .85rem;
  transition: color .15s;
  text-decoration: none;
}
.social-link:hover { color: var(--link); text-decoration: none; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Footer ──────────────────────────────────────────────── */
.pub-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

/* ── Registration form (public) ──────────────────────────── */
.register-wrap {
  max-width: 480px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
}

.register-wrap h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.4rem;
}

.register-wrap label {
  display: block;
  font-weight: bold;
  margin: 14px 0 4px;
  color: var(--muted);
}

.register-wrap input[type=text],
.register-wrap input[type=password] {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font);
}

.register-wrap input[type=text]:focus,
.register-wrap input[type=password]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

.register-wrap .btn { margin-top: 24px; width: 100%; }

.register-wrap .note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ── About page ──────────────────────────────────────────── */
.about-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-section h2 {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.about-section p { color: var(--muted); line-height: 1.7; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .pub-nav-links { display: none; }
  .pub-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 99;
  }
  .pub-nav-hamburger { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-panels  { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; }
  .stats-strip-item { max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stats-strip-item:last-child { border-bottom: none; }
  .hero h1 { font-size: 1.6rem; }
  .register-wrap { margin: 30px 16px; padding: 24px 20px; }
  .register-card { margin: 30px 16px; padding: 24px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-landing { grid-template-columns: 1fr; }
}

/* ── Profile search (new layout) ─────────────────────────── */
.profile-search-form { margin-bottom: 24px; }

.profile-search-wrap {
  display: flex;
  gap: 8px;
}

.profile-search-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.profile-search-input:focus { border-color: var(--accent); }

.search-notice {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Stats card section (profile page) ───────────────────── */
.stats-card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.stats-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stats-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.stat-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: .73rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--link);
}

.profile-matches-link {
  margin-top: 12px;
  font-size: .9rem;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.score-cell {
  font-weight: 700;
  color: var(--link);
  text-align: center;
}

.muted { color: var(--muted); }

/* ── Team flags (matches table) ──────────────────────────── */
.team-flag {
  width: 30px;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ── Downloads landing (two-panel cards) ─────────────────── */
.dl-landing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.dl-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.dl-section-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
  text-decoration: none;
}

.dl-section-icon { font-size: 2rem; }

.dl-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.dl-section-desc {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.5;
}

.dl-section-browse {
  font-size: .87rem;
  color: var(--link);
  margin-top: 4px;
}

/* Downloads breadcrumb */
.dl-crumb { color: var(--link); }
.dl-crumb-sep { color: var(--muted); }
.dl-crumb-current { color: var(--text); }

/* Downloads table extras */
.dl-table .dl-icon { font-size: 1rem; margin-right: 4px; }
.dl-btn {
  padding: 3px 10px;
  font-size: .8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.dl-btn:hover { background: var(--border); text-decoration: none; }
.dl-parent { color: var(--link); font-size: .87rem; }

/* ── Register card (public) ──────────────────────────────── */
.register-card {
  max-width: 480px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
}

.register-title {
  margin: 0 0 24px;
  font-size: 1.3rem;
  color: var(--text);
}

.register-success { color: #4ade80; }
.register-error   { color: #f87171; }

.register-message {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
}

.register-note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 14px;
}

.register-btn { width: 100%; margin-top: 20px; }

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}

/* ── About page ──────────────────────────────────────────── */
.about-page { max-width: 720px; }
.about-desc { color: var(--muted); line-height: 1.7; font-size: .95rem; margin-bottom: 20px; white-space: pre-wrap; }

/* ── Light theme ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:       #f0f4f8;
  --surface:  #ffffff;
  --surface2: #e8eef4;
  --border:   #c8d6e5;
  --link:     #1a56db;
  --text:     #1e2a38;
  --muted:    #475569;
}

[data-theme="light"] .badge-1  { background: #fef3c7; color: #92400e; }
[data-theme="light"] .badge-2  { background: #e2e8f0; color: #374151; }
[data-theme="light"] .badge-3a { background: #ede9fe; color: #5b21b6; }
[data-theme="light"] .badge-3b { background: #faf5ff; color: #7c3aed; }
[data-theme="light"] .badge-a  { background: #f1f5f9; color: #4b5563; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:       #f0f4f8;
    --surface:  #ffffff;
    --surface2: #e8eef4;
    --border:   #c8d6e5;
    --link:     #1a56db;
    --text:     #1e2a38;
    --muted:    #475569;
  }
  :root:not([data-theme="dark"]) .badge-1  { background: #fef3c7; color: #92400e; }
  :root:not([data-theme="dark"]) .badge-2  { background: #e2e8f0; color: #374151; }
  :root:not([data-theme="dark"]) .badge-3a { background: #ede9fe; color: #5b21b6; }
  :root:not([data-theme="dark"]) .badge-3b { background: #faf5ff; color: #7c3aed; }
  :root:not([data-theme="dark"]) .badge-a  { background: #f1f5f9; color: #4b5563; }
}

/* ── Theme toggle ─────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 8px;
}

.theme-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  font-size: .95rem;
  padding: 3px 7px;
  line-height: 1;
  transition: background .15s, border-color .15s;
}

.theme-btn:hover { border-color: var(--border); background: var(--surface2); }
.theme-btn.active { border-color: var(--accent); color: var(--accent); }
