:root {
  --bg: #0c0d10;
  --card: #15161a;
  --card-hover: #1b1c21;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #9a9a9a;
  --yellow: #ffed00;
  --yellow-dim: #cfc300;
  --available: #35d07f;
  --soldout: #5a5a5a;
  --unknown: #6b6b6b;
  --sold-out-red: #ff5c5c;
  --accent: #ffed00;      /* yellow as text/borders; darker in light mode */
  --heading: #ffed00;     /* card + modal titles */
  --border-strong: #444;
  --input-bg: #0a0a0a;
  --visual-bg: #0b0b0b;
  --tint: rgba(255,255,255,.04);
  --tint-strong: rgba(255,255,255,.06);
  --shadow: rgba(0,0,0,.4);
  --overlay: rgba(0,0,0,.75);
  --skel-a: #141414;
  --skel-b: #1d1d1d;
  --error: #ff6b6b;
  --selected-bg: rgba(255,237,0,.12);
  --selected-text: #ffed00;
  --selected-border: #ffed00;
  color-scheme: dark;
}

/* Light theme: picked in the footer switch, or by the device when the
   switch is on System (no data-theme). Keep both blocks identical. */
:root[data-theme="light"] {
  --bg: #f4f4f1; --card: #ffffff; --card-hover: #fafaf8; --border: #e0e0da;
  --text: #111214; --muted: #5d6067; --accent: #7a5c00; --heading: #111214;
  --available: #10814a; --soldout: #9a9a9a; --unknown: #8a8a8a; --sold-out-red: #c42b2b;
  --border-strong: #c4c4bc; --input-bg: #ffffff; --visual-bg: #e8e8e3;
  --tint: rgba(0,0,0,.035); --tint-strong: rgba(0,0,0,.06); --shadow: rgba(0,0,0,.12);
  --overlay: rgba(15,15,20,.5); --skel-a: #ebebe7; --skel-b: #f5f5f2; --error: #c62828;
  --selected-bg: #ffed00; --selected-text: #111214; --selected-border: #d9c800;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4f1; --card: #ffffff; --card-hover: #fafaf8; --border: #e0e0da;
    --text: #111214; --muted: #5d6067; --accent: #7a5c00; --heading: #111214;
    --available: #10814a; --soldout: #9a9a9a; --unknown: #8a8a8a; --sold-out-red: #c42b2b;
    --border-strong: #c4c4bc; --input-bg: #ffffff; --visual-bg: #e8e8e3;
    --tint: rgba(0,0,0,.035); --tint-strong: rgba(0,0,0,.06); --shadow: rgba(0,0,0,.12);
    --overlay: rgba(15,15,20,.5); --skel-a: #ebebe7; --skel-b: #f5f5f2; --error: #c62828;
  --selected-bg: #ffed00; --selected-text: #111214; --selected-border: #d9c800;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Phones must never pan sideways; clip (not hidden) keeps sticky working. */
html, body { overflow-x: hidden; overflow-x: clip; }

/* No double-tap-to-zoom wait on taps, and no grey tap flash — chips give
   their own instant feedback. */
a, button, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}

header {
  padding: 40px 24px 20px;
  max-width: 1320px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}
h1 {
  margin: 0 0 12px;
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 0.95;
}
h1 .accent { color: var(--accent); }
.sub {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  max-width: 560px;
}
.free-badge {
  display: inline-block;
  margin: 16px 0 0;
  padding: 7px 14px;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border-radius: 4px;
}
.trust-stats {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

main { max-width: 1320px; margin: 0 auto; padding: 0 24px 48px; }

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}
.controls input, .controls select {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.controls select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8d93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.controls select option { background: var(--card); color: var(--text); }
.controls input::placeholder { color: var(--muted); }
.controls input:focus, .controls select:focus {
  outline: none;
  border-color: var(--accent);
}

.status-line {
  min-height: 1.4em;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .events { grid-template-columns: repeat(2, 1fr); }
}

.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: card-in 0.3s ease backwards;
}
/* Only for a real mouse: on phones a tap triggers :hover too, and lifting
   and re-shadowing the whole card on every chip tap made taps feel slow. */
@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
  }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-card.skeleton { animation: none; }
.event-card.skeleton .event-visual {
  background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 37%, var(--skel-a) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-line {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 37%, var(--skel-a) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-title { width: 70%; margin-bottom: 10px; }
.sk-meta { width: 45%; height: 10px; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.event-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--visual-bg);
}
.skyline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.event-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}
.visual-code {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
}

.event-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.event-head h3 {
  margin: 0 0 6px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 1.7rem;
  color: var(--heading);
  line-height: 0.98;
  /* Always reserve 2 lines of height, even when the title only wraps
     to 1 — otherwise a short title leaves everything below it (meta,
     categories grid, button) sitting higher than on a card with a
     longer, wrapped title. Calculated from the actual font metrics
     here rather than guessed, so it can't drift if the type scale
     changes later. */
  min-height: calc(1.7rem * 0.98 * 2);
}
.event-meta .nowrap { white-space: nowrap; }
.event-meta {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  /* Same reasoning as .event-head h3's min-height: city/country/date
     text wraps to 1 line on some cards and 2 on others depending on
     length, which otherwise pushes the categories grid below it to a
     different height per card. Always reserve 2 lines. */
  min-height: calc(0.82rem * 1.4 * 2);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge.on_sale { background: var(--yellow); color: #000; }
.badge.not_on_sale,
.badge.ended,
.badge.unknown { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.badge.soldout { background: rgba(255,92,92,.14); color: var(--sold-out-red); border: 1px solid rgba(255,92,92,.4); }

.categories {
  margin-top: 14px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cat-chip {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: border-color 0.12s ease, background 0.12s ease;
}
@media (hover: hover) and (pointer: fine) { .cat-chip:hover { border-color: var(--muted); } }
.cat-chip.selected {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  color: var(--selected-text);
}

/* Cards only ever render chips for currently-available divisions (see
   renderEventCard) — everything is green/check by default since a chip
   that's visible at all on a card means it's open. The full status-dot
   list (available/soldout/unknown) still exists in the modal's picker,
   where someone is choosing which sold-out division to watch. */
.cat-chip-available {
  border-color: rgba(53,208,127,.5);
  color: var(--available);
}
@media (hover: hover) and (pointer: fine) { .cat-chip-available:hover { border-color: var(--available); } }
.cat-chip-available .check { font-weight: 700; }
.cat-chip-available.selected {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  color: var(--selected-text);
}

.categories-more {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--available);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 0 2px 14px;
  margin-top: -6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.categories-more:hover { color: var(--accent); }
.categories-soldout {
  flex: 1;
  margin-top: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255,92,92,.3);
  background: rgba(255,92,92,.05);
  border-radius: 4px;
}
.categories-soldout p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sold-out-red);
  font-weight: 600;
}
.categories-soldout p.sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.categories-empty {
  flex: 1;
  margin-top: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 4px;
}
.categories-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}
.categories-empty p.sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.categories-upcoming {
  border: 1px solid rgba(255,237,0,.35);
  background: rgba(255,237,0,.05);
}
.categories-upcoming p:first-child { color: var(--accent); font-weight: 600; }

.cta-bar {
  margin-top: auto;
  width: 100%;
  background: var(--yellow);
  color: #000;
  border: none;
  padding: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, opacity 0.12s ease;
}
.cta-bar:hover:not(:disabled) { background: var(--yellow-dim); }
.cta-bar:disabled { opacity: .3; cursor: not-allowed; }

footer {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  animation: overlay-in 0.15s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  animation: modal-in 0.2s ease;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.intro-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 40px 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  text-align: center;
  animation: modal-in 0.2s ease;
}
.intro-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.intro-modal h2 {
  margin: 0 0 16px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text);
}
.intro-modal h2 .accent { color: var(--accent); }
.intro-body {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal h3 {
  margin: 0 0 14px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--heading);
  font-size: 1.1rem;
  padding-right: 20px;
}
.modal-selections {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-selections li {
  font-size: 0.88rem;
  padding: 8px 10px;
  background: var(--tint);
  border-radius: 4px;
}
.modal-selections.picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
/* Both divisions in a row stretch to the taller one, so a selected
   one-line division and a selected two-line neighbour highlight as
   equal-height boxes. */
.modal-selections.picker li { padding: 0; background: none; display: flex; }
/* Lightweight rows instead of 14 individually-bordered boxes — a check
   or dot plus text color is enough to read status, no per-item outline
   needed. Lets the whole list fit without its own inner scrollbar; the
   modal itself scrolls as one unit on short viewports instead. */
.modal-selections.picker .cat-chip {
  width: 100%;
  min-height: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  padding: 8px;
  gap: 6px;
  font-size: 0.82rem;
}
@media (hover: hover) and (pointer: fine) {
  .modal-selections.picker .cat-chip:hover { border-color: transparent; background: var(--tint-strong); }
}
.modal-selections.picker .cat-chip-available { color: var(--available); }
.modal-selections.picker .cat-chip.selected {
  border-color: transparent;
  background: var(--selected-bg);
  color: var(--selected-text);
  font-weight: 600;
}
.modal-selections.picker .cat-chip.selected .dot { background: currentColor; }
.modal-selections.picker .cat-chip-available .check { font-weight: 700; }
.modal-selections.picker .cat-chip-soldout,
.modal-selections.picker .cat-chip-unknown { color: var(--muted); }
.modal-selections.picker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--unknown);
  flex-shrink: 0;
}
.modal-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal #modal-email {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.modal #modal-email:focus { outline: none; border-color: var(--accent); }
.modal-message {
  min-height: 1.3em;
  font-size: 0.85rem;
  margin: 10px 0 0;
}
.modal-message.error { color: var(--error); }
.modal-message.success { color: var(--available); }
.modal-confirm { margin-top: 14px; }

@media (max-width: 600px) {
  .events { grid-template-columns: 1fr; }
}

/* Feedback */
.feedback {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.feedback h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.05;
  margin: 0 0 12px;
}
.feedback h2 .accent { color: var(--accent); }
.feedback-sub { color: var(--muted); margin: 0; }
.feedback-kinds { border: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-kinds legend { width: 100%; }
.feedback-kinds label { cursor: pointer; }
.feedback-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-kinds span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}
.feedback-kinds input:checked + span { border-color: var(--selected-border); color: var(--selected-text); background: var(--selected-bg); }
.feedback-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.feedback-form textarea,
.feedback-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.feedback-form textarea:focus,
.feedback-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.feedback-form .modal-message { margin: 0 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer a { color: var(--text); }
footer a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .feedback { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
}
.feedback-flash { animation: feedback-flash 1.4s ease-out; }
@keyframes feedback-flash {
  0%, 30% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,237,0,.25); }
  100% { border-color: var(--border); box-shadow: 0 0 0 0 rgba(255,237,0,0); }
}
@media (prefers-reduced-motion: reduce) { .feedback-flash { animation: none; } }
.categories-soldout .sub strong { color: var(--text); font-weight: 600; }
.categories-soldout .soldout-arrow { color: var(--accent); font-size: 1.1rem; line-height: 1; margin-top: 6px; }

/* Phones: search + year on the first row (the search hint fits whole even
   at 360px), continent + country side by side below. Inputs stay at 16px
   so Safari doesn't zoom the page on focus. */
@media (max-width: 600px) {
  main, header { padding-left: 16px; padding-right: 16px; }
  .controls { gap: 8px; }
  .controls input, .controls select { min-width: 0; padding: 12px 10px; }
  .controls select { padding-right: 34px; background-position: right 10px center; }
  .controls .search-wrap { order: 1; flex: 1 1 200px; min-width: 0; }
  .controls #year-filter { order: 2; flex: 0 0 auto; }
  .controls #continent-filter { order: 3; flex: 1 1 calc(50% - 4px); }
  .controls #country-filter { order: 4; flex: 1 1 calc(50% - 4px); }
}
.cat-chip:active { transform: scale(0.97); }

/* Clear (×) button inside text fields. Browsers only draw their own on
   desktop search boxes, so phones got nothing; this one shows on every
   device as soon as there's text. */
.clearable { position: relative; }
.controls .search-wrap { flex: 1; min-width: 160px; }
.clearable #search,
.clearable #modal-email,
.clearable #feedback-email { width: 100%; min-width: 0; padding-right: 44px; }
.feedback-form .clearable { margin-bottom: 14px; }
.feedback-form .clearable input { margin-bottom: 0; }
#search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.clear-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.clear-btn[hidden] { display: none; }
.clear-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .clear-btn:hover { color: var(--text); } }
.clear-btn:active { color: var(--accent); }

/* Light mode: yellow text is unreadable on white, so the big accent
   words become black with a yellow highlighter stroke instead. */
:root[data-theme="light"] .accent {
  color: var(--text);
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 86%, transparent 86%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .accent {
    color: var(--text);
    background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 86%, transparent 86%);
  }
}

/* Theme switch (footer): System / Light / Dark */
.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin: 14px 0 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
.theme-switch button {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button svg { width: 18px; height: 18px; }
.theme-switch button[aria-pressed="true"] { background: var(--tint-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
@media (hover: hover) and (pointer: fine) { .theme-switch button:hover { color: var(--text); } }
