:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-control: 9px;
  --radius-surface: 12px;
  --control-height: 44px;
  --selection-height: 38px;
  --secondary-height: 40px;
}

/* Small local utility subset used by the server-rendered template. */
.hidden{display:none!important}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-2{gap:8px}.w-full{width:100%}.w-0{width:0}.h-2{height:8px}.h-full{height:100%}.min-h-screen{min-height:100vh}.min-w-0{min-width:0}.min-w-\[860px\]{min-width:860px}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:999px}.rounded-2xl{border-radius:16px}.border,.border-t,.border-b{border-style:solid}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:4px;padding-bottom:4px}.py-3{padding-top:12px;padding-bottom:12px}.p-3{padding:12px}.pb-1{padding-bottom:4px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-5{margin-top:20px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.ml-2{margin-left:8px}.text-left{text-align:left}.text-xs{font-size:12px;line-height:16px}.text-sm{font-size:14px;line-height:20px}.text-base{font-size:16px;line-height:24px}.font-semibold{font-weight:600}.font-medium{font-weight:500}.text-red-500{color:#ef4444}.transition{transition-duration:150ms}.space-y-6>:not([hidden])~:not([hidden]){margin-top:24px}
@media(min-width:640px){.sm\:hidden{display:none!important}.sm\:px-8{padding-left:32px;padding-right:32px}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}}

html[data-theme="light"] {
  --bg: #f4f4f1;
  --card: #ffffff;
  --surface: #f8f8f6;
  --surface-raised: #ffffff;
  --border: rgba(24, 24, 27, 0.10);
  --border-strong: rgba(24, 24, 27, 0.18);
  --text: #151515;
  --muted: #62625f;
  --muted2: #858580;
  --hover: rgba(24, 24, 27, 0.045);
  --activeBg: rgba(217, 117, 61, 0.10);
  --accent-border: rgba(217, 117, 61, 0.72);
  --disabled-bg: rgba(24, 24, 27, 0.025);
  --popup-shadow: 0 20px 60px rgba(18, 18, 16, 0.14);
}

html[data-theme="dark"] {
  --bg: #050505;
  --card: #080808;
  --surface: #0d0d0d;
  --surface-raised: #111111;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.68);
  --muted2: rgba(245, 245, 242, 0.46);
  --hover: rgba(255, 255, 255, 0.055);
  --activeBg: rgba(217, 117, 61, 0.13);
  --accent-border: rgba(217, 117, 61, 0.78);
  --disabled-bg: rgba(255, 255, 255, 0.025);
  --popup-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.012em;
}

h1, h2, h3,
.filter-label,
.pill,
.day-dot,
.btn-primary,
.btn-ghost,
.open-btn,
.custom-time-action,
.custom-time-reset,
.cal-month,
.state-title,
.site-footer-brand,
.seo-intro-links a {
  font-family: Raleway, Inter, sans-serif;
}
h1, h2, h3, .venue-name { font-weight: 600; }
.pill, .day-dot, .btn-primary, .btn-ghost, .open-btn { font-weight: 500; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-frame {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) var(--space-8);
}

.app-card {
  overflow: visible !important;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: none;
}

.hero-shell {
  border-radius: 16px 16px 0 0;
  background: var(--card) !important;
  padding: 0 var(--space-4) !important;
}

.header-row { min-height: 64px; gap: var(--space-3); }
.brand-link { margin-left: 0; }
.brand-logo {
  height: 80px;
  max-width: min(360px, 68vw);
}
#btnTheme {
  width: var(--control-height);
  height: var(--control-height);
  flex: 0 0 var(--control-height);
  border-radius: var(--radius-control);
}
.theme-icon { width: 28px; height: 28px; }

.body-shell {
  border-color: var(--border) !important;
  border-radius: 0 0 16px 16px;
  background: var(--card) !important;
}
.product-content { padding: var(--space-4); }
#btnOpenFilters,
#btnCloseFilters,
#filtersBackdrop,
.mobile-filter-trigger,
.mobile-filter-head { display: none !important; }

#filterBar {
  display: block !important;
  border: 0;
  border-radius: var(--radius-surface);
  background: var(--surface);
}
.filter-inner { padding: var(--space-4); }
.filter-stack { gap: var(--space-3); }
.filter-row {
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: center;
}
.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.filter-row.time-row .filter-label { margin-top: 14px; }
.pill-row { gap: var(--space-2); }

/* Deliberate control hierarchy: primary, secondary, selection, minor, icon. */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--secondary-height);
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.btn-primary {
  min-height: var(--control-height);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #17100b;
  font-weight: 600;
}
.btn-primary:hover { background: #e17b42; border-color: #e17b42; opacity: 1; filter: none; }
.btn-primary:active { background: #cc6b35; transform: none; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--hover); }
.btn-ghost:active { background: var(--surface); transform: none; opacity: 1; }

button:disabled,
[aria-disabled="true"] {
  border-color: var(--border) !important;
  background: var(--disabled-bg) !important;
  color: var(--muted2) !important;
  cursor: not-allowed !important;
  opacity: .62 !important;
}
.account-menu summary {
  min-height: var(--secondary-height);
  border-radius: 8px;
}
.account-menu button {
  min-height: var(--secondary-height);
  padding: 0 14px;
  border-radius: 8px;
  box-shadow: none;
}

.pill,
.day-dot,
.open-btn,
.cal-nav,
.custom-time-action,
.custom-time-reset {
  border-color: var(--border-strong);
  border-radius: var(--radius-control);
  background: transparent;
  box-shadow: none;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.pill {
  height: var(--selection-height);
  padding: 0 11px;
  border-color: var(--border);
  background: transparent;
  font-size: 12px;
  letter-spacing: .005em;
}
.pill:hover,
.day-dot:hover,
.btn-ghost:hover,
.open-btn:hover { background: var(--hover); }
.pill:active,
.day-dot:active,
.btn-ghost:active,
.open-btn:active { transform: none; opacity: 0.78; }
.pill.active,
.day-dot.active,
.chip.active {
  border-color: var(--accent-border);
  background: var(--activeBg);
  color: var(--text);
  font-weight: 600;
}
.day-dot {
  width: var(--selection-height);
  height: var(--selection-height);
  flex-basis: var(--selection-height);
  border-color: var(--border);
  font-size: 12px;
}
.weekday-label-full,
.filter-label-desktop { display: inline; }
.weekday-label-mobile,
.filter-label-mobile { display: none; }
.date-picker-pill:hover { transform: none; }
.date-picker-pill,
.time-preset-pill { gap: 5px; }
.date-picker-pill::after,
.time-preset-pill::after { width: 5px; height: 5px; opacity: .5; }
.focusable:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text) !important;
  outline-offset: 3px;
  border-radius: var(--radius-control);
}

.time-preset-card { gap: var(--space-2); }
.hint { font-size: 12px; line-height: 1.45; }
#tfRangeHint { color: var(--muted2); }
.custom-time-panel,
.modal-panel {
  border-color: var(--border-strong);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
  box-shadow: var(--popup-shadow);
}
.custom-time-panel { padding: var(--space-3); gap: var(--space-2); }
.custom-time-range {
  border-color: var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: var(--space-3);
}
.modal-header { padding: var(--space-4); }
.modal-body { padding: var(--space-4); }
.cal-wrap {
  border: 0;
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: var(--space-3);
}
.cal-cell { min-height: 42px; border-radius: var(--radius-control); }
.cal-nav {
  width: 38px;
  height: 38px;
  padding: 0;
  border-color: transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 22px;
}
.cal-nav:hover { border-color: var(--border); color: var(--text); }
.cal-cell { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.cal-cell:active { transform: none; }

.custom-time-reset,
.custom-time-action,
#btnSelectAllDates,
#btnClearAllDates,
#btnResetRules {
  min-height: 30px;
  padding: 0 7px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.custom-time-reset:hover,
.custom-time-action:hover,
#btnSelectAllDates:hover,
#btnClearAllDates:hover,
#btnResetRules:hover {
  border-color: transparent;
  background: var(--hover);
  color: var(--text);
}
#btnNext3,
#btnNext7,
#btnCloseDates,
#btnCloseRules,
#btnCloseShare {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

#resultsView {
  width: 100%;
  margin: var(--space-5) auto 0 !important;
}
.result-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.result-day { scroll-margin-top: 56px; }
.result-day-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
  padding: 10px 2px 9px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.result-day-title {
  margin: 0;
  color: var(--text);
  font-family: Raleway, Inter, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
}
.result-day-holiday {
  margin-left: 5px;
  color: var(--muted2);
  font-size: .82em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.result-day-count {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-day-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--card);
}
.result-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 180px) 72px auto;
  grid-template-areas: "venue time duration actions";
  align-items: center;
  gap: var(--space-3);
  min-height: 58px;
  padding: 10px 12px 10px 14px;
  border-top: 1px solid var(--border);
  transition: background-color 140ms ease;
}
.result-row:first-child { border-top: 0; }
@media (hover: hover) {
  .result-row:hover { background: var(--hover); }
}
.result-row-venue {
  grid-area: venue;
  display: flex;
  min-width: 0;
  align-items: center;
}
.result-row-venue-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.venue-name {
  font-family: Raleway, Inter, sans-serif;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-mark {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-right: var(--space-2);
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  vertical-align: middle;
}
.venue-mark-fallback {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
}
.venue-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.result-row-court {
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-row-time {
  grid-area: time;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.result-row-duration {
  grid-area: duration;
  color: var(--muted2);
  font-size: 12px;
  white-space: nowrap;
}
.result-row-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.open-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.open-btn.booking-action {
  border-color: var(--accent-border);
  background: var(--activeBg);
  color: var(--accent);
  font-weight: 600;
}
.open-btn:not(.booking-action) {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.open-btn:not(.booking-action):hover { color: var(--text); }
.loading-sentinel { min-height: 1px; }
.state-box { border: 0; border-radius: var(--radius-surface); background: var(--surface); }

@media (min-width: 900px) {
  #resultsView { max-width: 960px; }
  .result-row {
    grid-template-columns: 210px 190px 82px minmax(16px, 1fr) auto;
    grid-template-areas: "venue time duration spacer actions";
    column-gap: 14px;
  }
}

.share-body { padding-top: var(--space-2); }
.share-preview {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  background: var(--surface);
}
.share-preview-title {
  font-family: Raleway, Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.share-preview-details {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.share-destination {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.share-destination span {
  display: block;
  margin-bottom: var(--space-1);
  font-family: Raleway, Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.share-destination a {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-destination-primary {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgba(217, 117, 61, .42);
  border-radius: var(--radius-control);
  background: rgba(217, 117, 61, .08);
}
.share-destination-primary span,
.share-destination-primary a { color: var(--accent); }
.share-destination-secondary { margin-top: var(--space-2); }
.share-destination a:hover { text-decoration: underline; text-underline-offset: 3px; }
.share-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.share-actions button { min-height: var(--control-height); padding: 0 var(--space-4); }

.site-bottom {
  max-width: 880px;
  margin: var(--space-12) auto 0;
  padding: 0 var(--space-4);
}
.site-bottom-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: var(--space-12);
  align-items: start;
  max-width: none;
  margin: 0;
  padding: 0;
}
.site-bottom-copy { max-width: 560px; }
.site-bottom .seo-intro h1 {
  font-family: Raleway, Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.site-bottom .seo-intro-copy {
  max-width: 540px;
  margin-top: var(--space-2);
  font-size: 12px;
  line-height: 1.6;
}
.site-bottom .seo-intro-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 1px 0 0;
}
.site-bottom .seo-intro-links a {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.site-bottom .seo-intro-links a span { color: var(--accent); transition: transform 150ms ease; }
.site-bottom .seo-intro-links a:hover span { transform: translateX(2px); }
.site-bottom .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: var(--space-4) 0 var(--space-1);
  border-top: 1px solid var(--border);
  text-align: left;
}
.site-bottom .site-footer-brand {
  font-family: Raleway, Inter, sans-serif;
  font-weight: 600;
}
.site-bottom .site-footer-contact,
.site-bottom .site-footer-contact a {
  color: var(--muted2);
  font-size: 11px;
}
.site-bottom .site-footer-contact a:hover { color: var(--accent); }

@media (max-width: 639px) {
  .app-frame { padding: var(--space-2) var(--space-2) var(--space-6); }
  .app-card { border-radius: var(--radius-surface); }
  .hero-shell { border-radius: var(--radius-surface) var(--radius-surface) 0 0; padding: 0 var(--space-3) !important; }
  .header-row { min-height: 60px; }
  .brand-logo { height: 60px; max-width: 66vw; }
  #btnTheme { width: 42px; height: 42px; flex-basis: 42px; }
  .theme-icon { width: 27px; height: 27px; }
  .product-content { padding: var(--space-3); }
  .filter-inner { padding: var(--space-3); }
  .filter-stack { gap: var(--space-4); }
  .filter-row,
  .filter-row.time-row {
    display: block;
  }
  .filter-label,
  .filter-row.time-row .filter-label {
    display: block;
    margin: 0 0 var(--space-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .055em;
  }
  .pill-row {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .pill {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 42px;
    max-width: 100%;
    padding-inline: var(--space-2);
    font-size: 12px;
    line-height: 1.2;
  }
  .location-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .location-pills .pill {
    width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .length-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-1);
  }
  .length-pills .pill { width: 100%; padding-inline: var(--space-1); white-space: nowrap; }
  .date-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .date-pills .pill { width: 100%; padding-inline: var(--space-1); white-space: nowrap; }
  .date-pills #btnOpenDates { order: -1; gap: var(--space-1); }
  .date-pills #dateSummary { margin-left: 0; }
  .day-pills { display: block; }
  .day-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--space-1);
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  .day-dot {
    width: 100%;
    min-width: 0;
    height: 42px;
    flex-basis: auto;
  }
  .weekday-label-full,
  .filter-label-desktop { display: none; }
  .weekday-label-mobile,
  .filter-label-mobile { display: inline; }
  #tfPresetButtons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  #tfPresetButtons .pill { width: 100%; padding-inline: var(--space-2); }
  .time-preset-pill { gap: var(--space-1); }
  .time-preset-pill::after { width: 5px; height: 5px; }
  #tfRangeHint { padding: var(--space-1) 0 0; }
  .custom-time-panel { grid-template-columns: 1fr; }
  .modal-center { padding: var(--space-2); }
  .modal-panel { border-radius: var(--radius-surface); }
  #resultsView { margin-top: var(--space-4) !important; }
  .result-groups { gap: var(--space-6); }
  .result-day { scroll-margin-top: 46px; }
  .result-day-heading {
    padding: 9px 2px 8px;
    gap: var(--space-2);
  }
  .result-day-title { font-size: 12px; letter-spacing: .03em; }
  .result-day-count { font-size: 11px; }
  .result-day-card { border-radius: 9px; }
  .result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time actions"
      "venue duration";
    gap: 3px var(--space-2);
    min-height: 72px;
    padding: 6px 9px 6px 11px;
  }
  .result-row-time { font-size: 16px; line-height: 1.2; }
  .result-row-venue { min-width: 0; }
  .result-row-venue-copy {
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
  }
  .result-row-venue-copy .venue-name,
  .result-row-court { font-size: 11px; }
  .result-row-court::before { content: "·"; margin: 0 4px; }
  .result-row-duration { align-self: center; font-size: 11px; text-align: right; }
  .result-row-actions { gap: 0; }
  .result-row-actions .open-btn {
    min-height: 34px;
    height: 34px;
    padding-inline: 8px;
    font-size: 11px;
  }
  .result-row .venue-mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    margin-right: 6px;
  }
  .result-row .venue-mark-fallback {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 10px;
  }
  .share-actions button { flex: 1 1 0; }
  .site-bottom { margin-top: var(--space-8); padding: 0 var(--space-1); }
  .site-bottom-main { grid-template-columns: 1fr; gap: var(--space-4); }
  .site-bottom .seo-intro-links { gap: var(--space-3); margin-top: 0; }
  .site-bottom .site-footer { margin-top: var(--space-6); padding: var(--space-3) 0 0; }
}

@media (min-width: 390px) and (max-width: 639px) {
  #tfPresetButtons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
