:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg-soft: #eef0fb;
  --surface: #ffffff;
  --surface-soft: #f8f8fe;
  --text: #17184f;
  --muted: #686b97;
  --border: #e3e4f2;
  --primary: #6d45e8;
  --primary-strong: #5330ca;
  --primary-soft: #eee9ff;
  --mint: #dff8f1;
  --mint-text: #0b735f;
  --success: #12806a;
  --danger: #a63255;
  --danger-soft: #fff0f4;
  --warning: #9b6500;
  --warning-soft: #fff7df;
  --shadow: 0 12px 30px rgba(43, 39, 98, .08);
  --shadow-soft: 0 6px 18px rgba(43, 39, 98, .06);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --tap: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;
  --bg-soft: #172033;
  --surface: #1b2438;
  --surface-soft: #202b43;
  --text: #f5f4ff;
  --muted: #bcc0dc;
  --border: #323d59;
  --primary: #aa8cff;
  --primary-strong: #bea8ff;
  --primary-soft: #332857;
  --mint: #173e3b;
  --mint-text: #99efdd;
  --success: #86dec9;
  --danger: #ff9eb7;
  --danger-soft: #492439;
  --warning: #ffd483;
  --warning-soft: #493a1f;
  --shadow: 0 14px 34px rgba(0, 0, 0, .28);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, .2);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #111827;
    --bg-soft: #172033;
    --surface: #1b2438;
    --surface-soft: #202b43;
    --text: #f5f4ff;
    --muted: #bcc0dc;
    --border: #323d59;
    --primary: #aa8cff;
    --primary-strong: #bea8ff;
    --primary-soft: #332857;
    --mint: #173e3b;
    --mint-text: #99efdd;
    --success: #86dec9;
    --danger: #ff9eb7;
    --danger-soft: #492439;
    --warning: #ffd483;
    --warning-soft: #493a1f;
    --shadow: 0 14px 34px rgba(0, 0, 0, .28);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, .2);
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--mint) 62%, transparent) 0 8rem, transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
  outline-offset: 2px;
}
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.app-shell { width: min(100%, 1040px); min-height: 100vh; margin: 0 auto; padding: 0 16px calc(102px + env(safe-area-inset-bottom)); }
.app-header {
  min-height: calc(70px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { min-height: var(--tap); display: flex; align-items: center; gap: 12px; padding: 0; background: transparent; font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.brand img { width: 44px; height: 44px; border-radius: 14px; box-shadow: var(--shadow-soft); }
.icon-button { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.icon-button svg { width: 22px; height: 22px; }
.main-content { padding: 8px 0 28px; }
.main-content:focus { outline: none; }
.loading, .empty-state { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: var(--muted); }
.loading img { border-radius: 22px; box-shadow: var(--shadow); }
.page-head { margin: 10px 2px 22px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 8vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}
.button:hover { background: var(--primary-strong); }
.button:active { transform: scale(.985); }
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.button.ghost { background: transparent; color: var(--primary-strong); border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--border)); }
.button.danger { background: var(--danger); color: white; }
.button.small { min-height: 44px; padding: 9px 13px; border-radius: 13px; font-size: 14px; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button svg { width: 20px; height: 20px; }
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--primary-soft) 42%, var(--surface)));
  box-shadow: var(--shadow);
}
.hero-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -55px; top: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--mint) 92%, transparent), transparent 70%); pointer-events: none; }
.hero-mark { position: absolute; z-index: 0; right: -42px; top: 54px; width: 220px; height: 220px; border-radius: 50px; opacity: .16; object-fit: cover; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.hero-label { margin: 0 0 4px; color: var(--muted); font-size: 16px; font-weight: 700; }
.hero-code { margin: 0; font-size: clamp(74px, 24vw, 110px); line-height: .92; letter-spacing: -.07em; }
.hero-meta { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.hero-progress { height: 8px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
.hero-progress span { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: linear-gradient(90deg, var(--primary), #916dff); }
.hero-card .button { width: 100%; min-height: 58px; font-size: 18px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.quick-card { min-height: 118px; padding: 16px 12px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.quick-card svg { width: 28px; height: 28px; color: var(--primary); }
.quick-card strong, .quick-card span { display: block; }
.quick-card strong { margin-top: 13px; font-size: 15px; }
.quick-card span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.panel { margin-top: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-head h2, .panel h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.panel-head p, .panel > p { margin: 4px 0 0; color: var(--muted); }
.status-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border-radius: 999px; background: var(--mint); color: var(--mint-text); font-size: 13px; font-weight: 750; }
.route-rail { display: flex; gap: 9px; overflow-x: auto; padding: 4px 1px 10px; scrollbar-width: none; }
.route-rail::-webkit-scrollbar { display: none; }
.route-stop { min-width: 54px; min-height: 60px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); font-weight: 780; }
.route-stop.current { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 7px 16px color-mix(in srgb, var(--primary) 28%, transparent); }
.route-stop.completed { background: var(--mint); color: var(--mint-text); }
.route-caption { color: var(--muted); font-size: 13px; }
.privacy-note { margin: 18px 0 2px; color: var(--muted); font-size: 13px; text-align: center; }
.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 760px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.bottom-nav button { min-height: 58px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 5px; border-radius: 16px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.bottom-nav button[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
.bottom-nav svg { width: 23px; height: 23px; }
.live-status { display: none; position: fixed; z-index: 60; top: calc(12px + env(safe-area-inset-top)); left: 50%; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 10px 16px; border-radius: 13px; background: var(--text); color: var(--surface); font-size: 14px; font-weight: 700; box-shadow: var(--shadow); }
.live-status.visible { display: block; }
.live-status.error { background: var(--danger); color: white; }

/* Workout */
body.workout-active .bottom-nav { display: none; }
body.workout-active .app-shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.workout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 2px 20px; }
.workout-head h1 { margin: 0; font-size: clamp(31px, 9vw, 42px); line-height: 1.06; letter-spacing: -.04em; }
.workout-head p { margin: 6px 0 0; color: var(--muted); }
.workout-meta { display: grid; justify-items: end; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.timer { color: var(--text); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800; }
.block-stack { display: grid; gap: 12px; }
.block-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.block-card.base { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 12%, transparent); }
.block-toggle { width: 100%; min-height: 78px; display: grid; grid-template-columns: 46px 1fr auto 22px; align-items: center; gap: 12px; padding: 14px 16px; background: transparent; text-align: left; }
.block-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--primary-soft); color: var(--primary-strong); font-size: 20px; font-weight: 900; }
.block-title strong, .block-title span { display: block; }
.block-title strong { font-size: 19px; letter-spacing: -.02em; }
.block-title span { color: var(--muted); font-size: 13px; }
.block-count { min-height: 32px; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-text); font-size: 13px; font-weight: 750; white-space: nowrap; }
.chevron { width: 20px; height: 20px; transition: transform 180ms ease; }
.block-card.expanded .chevron { transform: rotate(180deg); }
.block-body { display: none; padding: 0 12px 12px; }
.block-card.expanded .block-body { display: grid; gap: 10px; }
.core-empty { display: grid; gap: 10px; padding: 4px; text-align: center; }
.core-empty p { margin: 4px 0; color: var(--muted); }
.exercise-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-soft); }
.exercise-card[data-status="completed"] { border-color: color-mix(in srgb, var(--success) 48%, var(--border)); }
.exercise-card[data-status="partial"] { border-color: color-mix(in srgb, var(--warning) 52%, var(--border)); }
.exercise-card[data-status="not_completed"] { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.exercise-toggle { width: 100%; min-height: 72px; display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 10px; padding: 15px; background: transparent; text-align: left; }
.exercise-title strong { display: block; font-size: 17px; letter-spacing: -.018em; }
.exercise-title span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.exercise-state { font-size: 12px; font-weight: 780; color: var(--muted); }
.exercise-card.expanded .exercise-toggle .chevron { transform: rotate(180deg); }
.exercise-body { display: none; padding: 0 14px 15px; }
.exercise-card.expanded .exercise-body { display: block; }
.plan-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.info-box { min-height: 82px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.info-box span, .info-box strong { display: block; }
.info-box span { color: var(--muted); font-size: 12px; }
.info-box strong { margin-top: 5px; font-size: 15px; }
.calibration-note { margin: 0 0 12px; padding: 11px 12px; border-radius: 13px; background: var(--warning-soft); color: var(--warning); font-size: 13px; }
.phase-title { margin: 14px 0 8px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.set-table { display: grid; gap: 8px; }
.set-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px; }
.set-row.bulgarian { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.set-no { align-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary-strong); font-size: 13px; font-weight: 800; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea, .select-field, .search-input {
  width: 100%; min-height: 48px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 17px; font-weight: 730; font-variant-numeric: tabular-nums;
}
.field textarea { min-height: 76px; resize: vertical; font-size: 15px; font-weight: 500; }
.set-row .field input { text-align: center; }
.status-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.status-button { min-height: 54px; padding: 8px 7px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 760; }
.status-button.active[data-status="completed"] { background: var(--mint); border-color: var(--success); color: var(--mint-text); }
.status-button.active[data-status="partial"] { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.status-button.active[data-status="not_completed"] { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.comment-field { margin-top: 12px; }
.exercise-complete { width: 100%; margin-top: 12px; }
.next-stage-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.backoff-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.core-card { padding: 14px; }
.core-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.core-card-head strong { font-size: 16px; }
.icon-actions { display: flex; gap: 5px; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.mini-icon svg { width: 18px; height: 18px; }
.core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.workout-finish { position: fixed; z-index: 18; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 760px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.finish-count { padding-left: 6px; font-size: 14px; font-weight: 780; white-space: nowrap; }
.workout-finish .button { min-height: 54px; }

/* Program, history, data */
.route-list, .history-list, .data-grid { display: grid; gap: 10px; }
.route-session, .history-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.route-session button, .history-toggle { width: 100%; min-height: 66px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 11px; padding: 12px; background: transparent; text-align: left; }
.route-session button > *, .route-copy { min-width: 0; }
.route-code { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-soft); font-weight: 850; }
.route-session.current .route-code { background: var(--primary); color: white; }
.route-session.completed .route-code { background: var(--mint); color: var(--mint-text); }
.route-copy strong, .route-copy span { display: block; }
.route-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.route-detail { display: none; padding: 0 14px 14px 77px; }
.route-session.expanded .route-detail { display: block; }
.route-exercise { min-width: 0; padding: 9px 0; border-top: 1px solid var(--border); }
.route-exercise strong, .route-exercise span { display: block; overflow-wrap: anywhere; }
.route-exercise strong { color: var(--text); font-size: 14px; line-height: 1.3; }
.route-exercise span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.history-toggle { grid-template-columns: 1fr auto; }
.history-toggle strong, .history-toggle span { display: block; }
.history-toggle span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.history-detail { display: none; padding: 0 14px 14px; }
.history-card.expanded .history-detail { display: block; }
.history-result { padding: 11px 0; border-top: 1px solid var(--border); }
.history-result strong, .history-result span { display: block; }
.history-result span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.data-panel { padding: 19px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.data-panel h2 { margin: 0; font-size: 19px; }
.data-panel p { color: var(--muted); }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.theme-options label { position: relative; }
.theme-options input { position: absolute; opacity: 0; pointer-events: none; }
.theme-options span { min-height: 46px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); font-size: 13px; font-weight: 730; }
.theme-options input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.storage-line { color: var(--muted); font-size: 13px; }

/* Dialogs */
.dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; align-items: end; padding: 18px; background: rgba(15, 17, 44, .48); }
.dialog { width: min(100%, 560px); max-height: min(82vh, 720px); overflow-y: auto; margin: 0 auto; padding: 20px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 26px 70px rgba(10, 9, 31, .3); }
.dialog h2 { margin: 0 36px 8px 0; font-size: 23px; }
.dialog p { color: var(--muted); }
.dialog-close { float: right; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.catalog-options { display: grid; gap: 8px; margin-top: 12px; }
.catalog-option { min-height: 54px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); text-align: left; }
.catalog-option strong, .catalog-option span { display: block; }
.catalog-option span { color: var(--muted); font-size: 12px; }
.import-summary { margin: 12px 0; padding: 12px; border-radius: 14px; background: var(--surface-soft); }
.import-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.import-summary dt { color: var(--muted); }
.import-summary dd { margin: 0; font-weight: 760; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (min-width: 760px) {
  .app-shell { padding-inline: 28px; }
  .home-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: start; }
  .home-layout > * { min-width: 0; }
  .quick-card { min-width: 0; }
  .hero-card { min-height: 470px; display: flex; align-items: center; }
  .quick-grid { margin-top: 0; }
  .panel.route-panel { margin-top: 0; }
  .block-toggle { padding-inline: 22px; }
  .block-body { padding: 0 20px 20px; }
  .exercise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dialog-backdrop { align-items: center; }
}

@media (max-width: 430px) {
  .app-shell { padding-inline: 12px; }
  .app-header { min-height: calc(64px + env(safe-area-inset-top)); }
  .brand { font-size: 18px; }
  .hero-card { padding: 22px 18px; border-radius: 24px; }
  .quick-card { min-height: 105px; padding: 13px 10px; }
  .quick-card strong { font-size: 13px; }
  .quick-card span { display: none; }
  .panel { padding: 17px; }
  .block-toggle { grid-template-columns: 42px 1fr auto 18px; gap: 9px; padding: 13px 12px; }
  .block-icon { width: 42px; height: 42px; }
  .block-title strong { font-size: 17px; }
  .block-count { padding-inline: 8px; font-size: 12px; }
  .plan-history-grid { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); }
  .set-row.bulgarian { grid-template-columns: 26px repeat(3, minmax(0, 1fr)); gap: 5px; }
  .set-row.bulgarian .field input { padding-inline: 4px; }
  .status-actions { grid-template-columns: 1fr; }
  .status-button { min-height: 46px; }
  .workout-finish { grid-template-columns: 1fr; gap: 6px; }
  .finish-count { display: none; }
  .filters { grid-template-columns: 1fr; }
  .privacy-note { visibility: hidden; height: 0; margin: 0; }
}

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