/* ============================================================
   Биатлон · Контроль стрельбы: токены и базовые стили.
   Стиль C, палитра «Лёд» (выбрана 13.11.2026): нейтральный графит в
   тёмной теме, белый в светлой, акцент холодный синий, без градиента и
   свечения. Цвет несёт смысл: попадание, промах, главное действие;
   положение «стоя» и средняя точность нейтральные.
   Один шрифт Onest на текст и цифры, цифры табличные.
   Тёмная тема стоит по умолчанию в :root, светлая включается
   атрибутом data-theme="light" на <html> (ставит theme.js).
   ============================================================ */

/* Onest, SIL OFL 1.1 (fonts/OFL.txt). Вариативный, веса 100-900.
   Файлы лежат рядом со стилями, в сеть приложение за шрифтом не ходит. */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Тёмная тема (по умолчанию) */
:root {
  color-scheme: dark;
  /* фон */ --bg:#0f1012; --surface:#18191c; --surface-2:#212327; --surface-3:#2a2d32;
  /* фон оболочки: был градиент, теперь ровная заливка */ --bg-grad-1:#0f1012; --bg-grad-2:#0f1012;
  /* линии */ --border:#2e3136; --border-2:#4a4f57; --border-strong:#e8eaed;
  /* текст */ --text:#f2f3f5; --text-dim:#a9aeb6; --text-mute:#9aa0a8;

  /* акцент: заливка главной кнопки и текст на ней */ --accent:#5b9dff; --on-accent:#0b0d10;
  /* акцент как текст или линия на фоне */ --accent-ink:#7db0ff;
  /* нейтральная плашка (аватар, рамка заметки) и текст на ней */ --accent-soft:#2a2d32; --on-accent-soft:#f2f3f5;
  /* спутник акцента: тот же синий, что у акцента-текста */ --accent-2:#7db0ff;
  /* градиент и свечение убраны: имена оставлены, чтобы старый код не ломался */ --grad-accent: var(--accent); --glow-accent: 0 0 0 0 transparent; --accent-glow: transparent;

  /* смысл */ --hit:#3ddc84; --hit-soft:rgba(61,220,132,0.16); --miss:#ff6b5e; --miss-soft:rgba(255,107,94,0.16); --warn:#a9aeb6;
  /* положения: лёжа и стоя */ --prone:#7db0ff; --standing:#a9aeb6;
  /* мишень и текст на отметке */ --field:#18191c; --zone-fill:#08090a; --ring:#4a4f57; --on-mark:#08090a;
  /* затемнение под окном */ --scrim:rgba(0,0,0,0.72);
  /* теги типа тренировки: нейтральные, без радуги (общие для двух тем) */ --tag-bg: var(--surface-2); --tag-text: var(--text-dim); --tag-border: var(--border);

  /* радиусы: 16 контрол, 22 карточка */ --r-sm: 8px; --r: 16px; --r-lg: 22px; --r-xl: 22px; --r-ctl: var(--r); --r-card: var(--r-lg);
  /* тени */ --shadow: 0 6px 24px rgba(0,0,0,0.40); --shadow-lg: 0 18px 60px rgba(0,0,0,0.55); --shadow-card: 0 8px 26px rgba(0,0,0,0.26); --inner-hi: 0 0 0 0 transparent;

  /* шрифт: один на текст и цифры */ --font-ui: 'Onest', system-ui, sans-serif; --font-mono: 'Onest', system-ui, sans-serif;
  /* шкала размеров, 6 ступеней */ --fs-cap: 13px; --fs-sm: 15px; --fs-md: 17px; --fs-lg: 21px; --fs-xl: 30px; --fs-num: 60px;
  /* высота контролов и главной кнопки */ --ctl: 56px; --ctl-main: 60px;
}

/* Светлая тема */
:root[data-theme="light"] {
  color-scheme: light;
  /* фон */ --bg:#ffffff; --surface:#f2f3f5; --surface-2:#e7e9ec; --surface-3:#dadde1;
  /* фон оболочки */ --bg-grad-1:#ffffff; --bg-grad-2:#ffffff;
  /* линии */ --border:#d5d8dc; --border-2:#9aa0a8; --border-strong:#111214;
  /* текст */ --text:#111214; --text-dim:#4a4f57; --text-mute:#5a6068;

  /* акцент: синий, годится и заливкой, и текстом */ --accent:#1f62d6; --on-accent:#ffffff;
  /* акцент как текст или линия: чернила */ --accent-ink:#1f62d6;
  /* нейтральная плашка и текст на ней */ --accent-soft:#dadde1; --on-accent-soft:#111214;
  /* спутник акцента */ --accent-2:#1f62d6;

  /* смысл */ --hit:#0a7d43; --hit-soft:rgba(10,125,67,0.14); --miss:#c7281c; --miss-soft:rgba(199,40,28,0.12); --warn:#4a4f57;
  /* положения: лёжа и стоя */ --prone:#1f62d6; --standing:#4a4f57;
  /* мишень и текст на отметке */ --field:#f2f3f5; --zone-fill:#111214; --ring:#9aa0a8; --on-mark:#ffffff;
  /* затемнение под окном */ --scrim:rgba(17,18,20,0.45);

  /* тени */ --shadow: 0 6px 24px rgba(11,27,43,0.14); --shadow-lg: 0 18px 60px rgba(11,27,43,0.22); --shadow-card: 0 8px 26px rgba(11,27,43,0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* No scrollbar chrome anywhere. This ships as a phone/tablet app in a WebView,
   where a desktop scrollbar — track, thumb, arrow buttons — is painted over a
   dark UI and does nothing a finger needs. Scrolling itself is untouched:
   wheel, touch and keyboard all still work, only the widget is gone.
   .ss-row already did this for its horizontal strip; now it is uniform. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

#root { height: 100%; }

button { font-family: inherit; font-variant-numeric: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-variant-numeric: inherit; }

/* numbers / data readouts */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- app shell ---- */
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* targetSdk 36: Android 15+ always draws edge-to-edge, so the shell must keep
     itself out from under the status bar. Padding the shell (not .topbar) means
     the responsive `padding` shorthands on .topbar can't reset the inset. */
  padding-top: env(safe-area-inset-top);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-grad-1), var(--bg-grad-2) 70%);
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* the app's own logo — the snowflake-and-reticle mark the stores show */
.brand-mark {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}
.brand-sub { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }

.topbar-spacer { flex: 1 1 auto; }

/* athlete chip in topbar */
.athlete-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  max-width: 46vw;
}
.athlete-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--on-accent-soft);
  flex: 0 0 auto;
}
.athlete-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athlete-chip .caret { color: var(--text-mute); font-size: 12px; }

/* language menu */
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-btn:hover { border-color: var(--accent-soft); }
.lang-btn.icon-only { padding: 7px; }

/* П.1 — athlete quick-switch strip */
.athlete-strip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  backdrop-filter: blur(8px);
  z-index: 25;
}
.strip-scroll {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  scroll-snap-type: x proximity;
}
.strip-scroll::-webkit-scrollbar { display: none; }
.strip-chip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: all 0.15s;
  scroll-snap-align: start;
}
.strip-chip:hover { border-color: var(--border-2); }
.strip-chip.sel { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset; background: var(--surface-2); }
.strip-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--on-accent-soft);
}
.strip-chip.sel .avatar { background: var(--accent); color: var(--on-accent); }
.strip-chip .nm { font-size: 14px; font-weight: 500; white-space: nowrap; }
.strip-chip:not(.sel) .nm { color: var(--text-dim); }
.strip-add {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px dashed var(--border-2); background: var(--surface-2);
  color: var(--accent-ink); transition: all 0.15s;
}
.strip-add:hover { border-color: var(--accent-ink); background: var(--accent-glow); }

.menu {
  position: absolute; top: 56px; right: 12px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 60; min-width: 180px;
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; text-align: left;
}
.menu-item:hover { background: var(--surface-3); }
.menu-item.active { color: var(--accent-ink); }
.menu-item .flag { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* ---- main scroll area ---- */
.main {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page { max-width: 920px; margin: 0 auto; padding: 20px 16px 110px; }

.page-head { margin: 6px 2px 18px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.page-head p { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }

/* ---- bottom nav ---- */
.nav {
  flex: 0 0 auto;
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg);
  backdrop-filter: blur(14px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.nav button {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: var(--r-sm);
  color: var(--text-mute); font-size: 11px; letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav button .ico { width: 24px; height: 24px; transition: transform 0.15s; }
.nav button.active { color: var(--accent-ink); background: var(--accent-glow); }
.nav button.active .ico { transform: translateY(-1px); }
.nav button:not(.active):hover { color: var(--text-dim); }

/* ---- cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card), var(--inner-hi);
}
.card.tight { padding: 14px; }
.card-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute); font-family: var(--font-mono); margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-2);
  font-size: var(--fs-sm); font-weight: 500; transition: all 0.15s;
}
.btn:hover { border-color: var(--accent-soft); background: var(--surface-3); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600;
  box-shadow: none;
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:active { filter: brightness(0.96); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--miss); border-color: rgba(255,87,64,0.3); }
.btn.danger:hover { background: var(--miss-soft); }
.btn.lg { padding: 15px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* segmented control */
.seg {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px;
}
.seg button {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-dim); transition: all 0.15s; white-space: nowrap;
}
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow); }
.seg button.active.prone   { color: var(--prone);   box-shadow: inset 0 0 0 1px var(--prone); }
.seg button.active.standing{ color: var(--standing);box-shadow: inset 0 0 0 1px var(--standing); }

/* pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
  background: var(--surface-2); border: 1px solid var(--border);
}
.pill.hit  { color: var(--hit);  border-color: rgba(47,208,127,0.3);  background: var(--hit-soft); }
.pill.miss { color: var(--miss); border-color: rgba(255,87,64,0.3);   background: var(--miss-soft); }

/* stat tiles */
.stat-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
  box-shadow: var(--shadow-card), var(--inner-hi);
}
.stat-tile .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-family: var(--font-mono); }
.stat-tile .value { font-size: var(--fs-xl); font-weight: 600; margin-top: 6px; font-family: var(--font-mono); letter-spacing: -0.02em; }
.stat-tile .value .unit { font-size: var(--fs-sm); color: var(--text-dim); font-weight: 400; margin-left: 2px; }
.stat-tile .sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* empty state */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-mute);
}
.empty .big { font-size: var(--fs-md); color: var(--text-dim); margin-bottom: 6px; }

/* ---- athlete list ---- */
.athlete-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface);
  transition: all 0.15s; text-align: left; width: 100%;
}
.athlete-row:hover { border-color: var(--border-2); background: var(--surface-2); }
.athlete-row.sel { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset; }
.athlete-row .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
  background: var(--accent-soft); color: var(--on-accent-soft);
}
.athlete-row .meta { flex: 1 1 auto; min-width: 0; }
.athlete-row .meta .nm { font-size: 16px; font-weight: 500; }
.athlete-row .meta .sub { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); margin-top: 2px; }
.athlete-row .rate { font-family: var(--font-mono); font-size: 20px; font-weight: 600; }

/* ---- input ---- */
.field {
  width: 100%; padding: 13px 15px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text); font-size: 16px;
}
.field:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-glow); }
.field::placeholder { color: var(--text-mute); }

/* ---- modal ---- */
.scrim {
  position: fixed; inset: 0; background: var(--scrim);
  backdrop-filter: blur(4px); z-index: 80;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
  max-height: calc(100dvh - 40px); overflow-y: auto;
}
.modal h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  /* left:50% alone shrinks the box to half the screen; a longer message
     (promo confirmation) then broke into four lines on a 320 phone */
  width: max-content; max-width: calc(100vw - 32px);
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 11px 20px; font-size: 14px;
  box-shadow: var(--shadow-lg); z-index: 90;
  display: flex; align-items: center; gap: 9px;
  animation: toastIn 0.25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ============================================================
   SHOOTING SCREEN  (full-screen marking)
   ============================================================ */
.shoot {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.shoot-top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  /* .shoot is position:fixed — outside .app, so it carries its own top inset */
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
}
.shoot-top .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shoot-top .who .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: var(--fs-cap); font-weight: 600;
  background: var(--accent-soft); color: var(--on-accent-soft);
}
.shoot-top .who .nm { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shoot-top .who .pos { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; border: 1px solid var(--border-2);
  background: var(--surface-2);
}
.icon-btn:hover { border-color: var(--accent-soft); }

/* shot counter dots */
.shot-track { display: flex; gap: 7px; align-items: center; }
.shot-track .dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--border-2); transition: all 0.2s;
}
.shot-track .dot.hit  { background: var(--hit);  border-color: var(--hit); box-shadow: 0 0 8px var(--hit-soft); }
.shot-track .dot.miss { background: var(--miss); border-color: var(--miss); box-shadow: 0 0 8px var(--miss-soft); }

/* the target stage */
.target-stage {
  flex: 0 0 auto; position: relative;   /* fixed height (set inline = target size) so the target never moves */
  display: grid; place-items: center;
  touch-action: none; user-select: none;
  overflow: visible;
}

.target-wrap { position: relative; }
.target-svg { display: block; }
/* Планшетка мишени белая в обеих темах (просьба владелицы 13.11.2026: на
   чёрной отметки не видно). Цвета внутри svg берутся из этих токенов. */
.target-wrap, .target-svg {
  --field: #ffffff; --zone-fill: #ffffff; --border: #d5d8dc; --border-2: #9aa0a8;
  --prone: #1f62d6; --standing: #111214;
  --hit: #0a7d43; --miss: #c7281c; --on-mark: #ffffff;
  --text: #111214; --text-dim: #4a4f57; --text-mute: #5a6068;
}

.shot-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; pointer-events: none;
  animation: shotPop 0.28s cubic-bezier(.2,.9,.3,1.4);
}
/* попадание: заполненный круг; промах: заполненный ромб; номер внутри (REVIEW M2) */
.shot-marker .core {
  position: absolute; inset: 0; border-radius: 50%; background: currentColor;
}
.shot-marker.miss .core { inset: 1px; border-radius: 3px; transform: rotate(45deg); }
.shot-marker .ring { display: none; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.6; }
.shot-marker .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--on-mark);
}
.shot-marker.hit  { color: var(--hit); }
.shot-marker.miss { color: var(--miss); }
@keyframes shotPop { from { transform: translate(-50%,-50%) scale(0.2); opacity: 0; } }

/* live readout */
.readout {
  position: absolute; left: 14px; top: 14px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 13px; backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 12px; min-width: 132px;
}
.readout .ro-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.readout .ro-row .k { color: var(--text-mute); }
.readout .ro-row .v { font-weight: 600; }

/* margin-top:auto pins the stopwatch + hint + actions to the bottom, so the
   stopwatch band grows into the flexible gap above without shifting the target. */
.shoot-bottom {
  flex: 0 0 auto; margin-top: auto;
  padding: 7px 16px calc(9px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px;
}
.shoot-actions { display: flex; gap: 8px; }
.shoot-actions .btn { flex: 1 1 0; padding: 8px 10px; font-size: var(--fs-cap); gap: 6px; white-space: nowrap; min-width: 0; }
.shoot-actions .btn .ic { width: 14px !important; height: 14px !important; flex: 0 0 auto; }
.shoot-actions .act-undo { flex: 0 0 auto; width: 42px; padding: 8px 0; }
.shoot-actions .btn.primary { flex: 1.4 1 0; }

.hint-line {
  text-align: center; font-size: 9.5px; line-height: 1.25; color: var(--text-mute);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ---- heatmap / drift target ---- */
.viz-target { display: block; margin: 0 auto; }

/* bars */
.bar-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.bar-row .bl { width: 92px; flex: 0 0 auto; font-size: var(--fs-cap); color: var(--text-dim); }
.bar-track { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent-ink); transition: width 0.5s cubic-bezier(.2,.8,.3,1); }
.bar-row .bv { width: 52px; text-align: right; font-family: var(--font-mono); font-size: var(--fs-cap); font-weight: 600; }

/* recommendation card */
.rec {
  display: flex; gap: 14px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.rec .sev {
  width: 6px; flex: 0 0 auto; border-radius: 999px; align-self: stretch;
}
.rec.high .sev { background: var(--miss); }
.rec.med  .sev { background: var(--warn); }
.rec.low  .sev { background: var(--hit); }
.rec .body { flex: 1 1 auto; }
.rec .body h4 { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; }
.rec .body p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.rec .body .src {
  margin-top: 10px; font-size: 11px; font-family: var(--font-mono);
  color: var(--text-mute); display: flex; align-items: center; gap: 6px;
}

/* reference accordion */
.ref-item {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); overflow: hidden; margin-bottom: 10px;
}
.ref-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 16px; text-align: left;
}
.ref-head .dirtag {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 8px;
  border-radius: 6px; background: var(--surface-3); color: var(--text-dim);
  flex: 0 0 auto; letter-spacing: 0.04em;
}
.ref-head .t { flex: 1 1 auto; font-size: var(--fs-sm); font-weight: 500; }
.ref-head .chev { color: var(--text-mute); transition: transform 0.2s; }
.ref-item.open .ref-head .chev { transform: rotate(180deg); }
.ref-body { padding: 0 16px 16px 16px; }
.ref-body .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-family: var(--font-mono); margin: 12px 0 4px; }
.ref-body p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.ref-body .src { margin-top: 12px; font-size: 11px; font-family: var(--font-mono); color: var(--text-mute); }

.note-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--accent-soft);
  font-size: var(--fs-cap); color: var(--text-dim); line-height: 1.5; margin-bottom: 16px;
}
.note-banner b { color: var(--accent-ink); font-weight: 600; }

.divider { height: 1px; background: var(--border); margin: 22px 0; border: none; }
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute); font-family: var(--font-mono);
  margin: 26px 2px 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }

/* ============================================================
   PHONE ADAPTATION
   ============================================================ */

/* Nav: никогда не обрезать лейблы и не переполняться */
.nav button {
  min-width: 0;
}
.nav button > :not(.ico) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* range inputs: bigger touch target */
input[type="range"] { height: 30px; }

/* ---- ≤ 480px — обычные смартфоны ---- */
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: var(--fs-sm); gap: 8px; }
  .brand-sub { font-size: 10px; }
  .lang-btn { padding: 6px 9px; font-size: 11px; }
  .lang-btn.icon-only { padding: 6px; }

  .athlete-strip { padding: 7px 10px; gap: 6px; }
  .strip-chip { padding: 4px 11px 4px 4px; }
  .strip-chip .nm { font-size: var(--fs-cap); }
  .strip-chip .avatar { width: 28px; height: 28px; font-size: 11px; }
  .strip-add { width: 36px; height: 36px; }

  .page { padding: 16px 13px 108px; }
  .page-head { margin: 4px 2px 14px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: var(--fs-cap); }

  .nav { padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); }
  .nav button { font-size: 10px; gap: 2px; padding: 7px 2px; }
  .nav button .ico { width: 22px; height: 22px; }

  .card { padding: 14px; border-radius: var(--r); }
  .stat-tile { padding: 13px; }
  .stat-tile .value { font-size: 26px; }

  .btn.lg { padding: 13px 18px; font-size: var(--fs-sm); }

  .modal { padding: 18px; }
  .readout { left: 10px; top: 10px; padding: 8px 10px; min-width: 118px; font-size: 11px; }

  .athlete-row { gap: 10px; padding: 12px 13px; }
  .athlete-row .avatar { width: 38px; height: 38px; font-size: 14px; }
  .athlete-row .meta .nm { font-size: var(--fs-sm); }
  .athlete-row .rate { font-size: 18px; }

  .bar-row .bl { width: 72px; font-size: 12px; }

  .rec { padding: 13px; gap: 11px; }
  .rec .body h4 { font-size: 14px; }
  .rec .body p { font-size: var(--fs-cap); }

  .shoot-timer { padding: 9px 11px; }
  .sw-time { font-size: var(--fs-xl); }
  .sw-btn { padding: 10px 16px; font-size: 14px; min-width: 84px; }

  .seg button { padding: 8px 14px; font-size: var(--fs-cap); }
}

/* ---- ≤ 400px — небольшие смартфоны (iPhone SE, Moto G, Galaxy A) ---- */
@media (max-width: 400px) {
  .topbar { padding: 9px 10px; gap: 6px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.08em; }
  .brand-mark { width: 24px; height: 24px; }

  .page { padding: 14px 11px 104px; }
  .page-head h1 { font-size: 20px; }

  /* мишени — оставляем 2 колонки, но чуть компактнее */
  .grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px; }

  .btn.lg { padding: 12px 16px; font-size: 14px; }
  .btn { padding: 11px 14px; font-size: 14px; }

  .stat-tile { padding: 11px; }
  .stat-tile .value { font-size: 24px; }
  .stat-tile .label { font-size: 10px; }

  .sw-time { font-size: 28px; }
  .sw-btn { padding: 9px 14px; font-size: var(--fs-cap); min-width: 76px; }
  .sw-btn.reset { width: 40px; height: 40px; }

  .shoot-bottom { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }

  .modal { padding: 16px; border-radius: var(--r); }
  .modal h3 { font-size: var(--fs-md); }

  .athlete-row { gap: 9px; padding: 11px 11px; }
  .athlete-row .avatar { width: 34px; height: 34px; font-size: var(--fs-cap); }
  .athlete-row .meta .nm { font-size: 14px; }
  .athlete-row .rate { font-size: 16px; }

  .bar-row { gap: 8px; }
  .bar-row .bl { width: 64px; font-size: 11px; }
  .bar-row .bv { width: 44px; font-size: 12px; }

  .ref-head { padding: 13px 13px; }
  .ref-body { padding: 0 13px 13px; }
}

/* ---- ≤ 360px — самые узкие экраны (360 px, старые Android) ---- */
@media (max-width: 360px) {
  .topbar { padding: 8px 10px; gap: 5px; }
  .brand { gap: 6px; font-size: var(--fs-cap); }
  /* subheading скрываем — слишком узко */
  .brand-sub { display: none; }
  .brand-mark { width: 22px; height: 22px; }
  .lang-btn { padding: 5px 8px; font-size: 10px; gap: 4px; }
  .lang-btn.icon-only { padding: 5px; }

  .athlete-strip { padding: 6px 8px; gap: 5px; }
  .strip-chip { gap: 6px; padding: 4px 9px 4px 4px; }
  .strip-chip .nm { font-size: 12px; }
  .strip-chip .avatar { width: 26px; height: 26px; font-size: 10px; }
  .strip-add { width: 32px; height: 32px; }

  .page { padding: 12px 10px 100px; }
  .page-head { margin: 2px 0 12px; }
  .page-head h1 { font-size: 19px; }
  .page-head p { font-size: 12px; }

  .nav { padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
  .nav button { font-size: 9px; gap: 2px; padding: 6px 2px; }
  .nav button .ico { width: 20px; height: 20px; }

  /* мишени на 360px: две плотные колонки без лишних отступов */
  .grid { gap: 10px; }
  .grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 10px; border-radius: var(--r-sm); }
  .card-title { font-size: 11px; }

  /* кнопки — чуть компактнее */
  .btn { padding: 10px 12px; font-size: var(--fs-cap); gap: 6px; }
  .btn.lg { padding: 12px 14px; font-size: 14px; }

  .stat-tile { padding: 10px; }
  .stat-tile .value { font-size: 22px; }

  /* стоп-хронометр */
  .sw-time { font-size: 26px; }
  .sw-btn { padding: 9px 12px; font-size: 12px; min-width: 68px; }
  .sw-btn.reset { width: 36px; height: 36px; }
  .shoot-actions .btn { padding: 9px 8px; font-size: 12px; }
  .shoot-actions .act-undo { width: 40px; padding: 9px 0; }

  /* мишень на экране стрельбы — чуть меньше отступы */
  .shoot-bottom { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }

  .modal { padding: 14px; }
  .modal h3 { font-size: 16px; }
  .scrim { padding: 12px; }
  .field { padding: 11px 12px; font-size: var(--fs-sm); }

  .athlete-row { gap: 8px; padding: 10px 10px; border-radius: var(--r-sm); }
  .athlete-row .avatar { width: 32px; height: 32px; font-size: 12px; }
  .athlete-row .meta .nm { font-size: var(--fs-cap); }
  .athlete-row .meta .sub { font-size: 11px; }
  .athlete-row .rate { font-size: var(--fs-sm); }

  .rec { padding: 11px; gap: 9px; }
  .rec .body h4 { font-size: var(--fs-cap); }
  .rec .body p { font-size: 12px; }

  .bar-row .bl { width: 58px; font-size: 11px; }
  .bar-row .bv { width: 40px; font-size: 11px; }

  .seg button { padding: 7px 10px; font-size: 12px; }
  .pill { font-size: 11px; padding: 4px 9px; }

  .readout { left: 8px; top: 8px; padding: 7px 9px; min-width: 108px; font-size: 10px; }

  /* auth screen на 360px */
  .auth-card { padding: 20px 16px; border-radius: var(--r-lg); }
  .auth-title { font-size: 18px; }
  .plan-grid { grid-template-columns: 1fr; }

  .ref-head { padding: 11px 12px; }
  .ref-head .t { font-size: 14px; }
  .ref-body { padding: 0 12px 12px; }
}

/* ============================================================
   AUTH / REGISTRATION SCREEN
   ============================================================ */
.auth-stage {
  min-height: 100%;
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% -10%, var(--bg-grad-1), var(--bg-grad-2) 70%);
  overflow-y: auto;
}
.auth-lang { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 40; }
.auth-card {
  width: 100%; max-width: 420px; margin: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg), var(--inner-hi);
  padding: 28px 24px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -40%, var(--accent-glow), transparent 70%);
}
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand > div:last-child { min-width: 0; flex: 1 1 auto; }
.brand-mark.big { width: 52px; height: 52px; }
.auth-title { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.auth-tagline { margin: 16px 0 20px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.auth-seg { display: flex; width: 100%; margin-bottom: 18px; }
.auth-seg button { flex: 1; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); font-family: var(--font-mono); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 13px; border: 1px solid var(--border-2); border-radius: var(--r);
  background: var(--surface-2); transition: all 0.15s;
}
.plan-card:hover { border-color: var(--accent-soft); }
.plan-card.sel { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset; background: var(--accent-glow); }
.plan-card .radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-2); flex: 0 0 auto; margin-top: 2px; position: relative; }
.plan-card.sel .radio { border-color: var(--accent-ink); }
.plan-card.sel .radio::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent-ink); }
.plan-card .pl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-card .pl-title { font-size: var(--fs-cap); font-weight: 600; }
.plan-card .pl-sub { font-size: 11px; color: var(--text-dim); }
.auth-err { margin-top: 14px; padding: 10px 13px; border-radius: var(--r-sm); background: var(--miss-soft); border: 1px solid rgba(255,87,64,0.3); color: var(--miss); font-size: var(--fs-cap); }
.auth-switch { display: block; width: 100%; margin-top: 14px; padding: 8px; color: var(--accent-ink); font-size: 14px; text-align: center; background: none; }
.auth-switch:hover { text-decoration: underline; }
.auth-support-link { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 12px; padding: 9px; color: var(--text-dim); font-size: 12.5px; text-align: center; background: none; border-radius: var(--r-sm); transition: color 0.15s; cursor: pointer; }
.auth-support-link:hover { color: var(--accent-ink); }
.auth-terms { margin: 16px 0 0; font-size: 11px; color: var(--text-mute); line-height: 1.5; text-align: center; }
.legal-links {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; font-size: 12px;
}
.legal-links a { color: var(--accent-ink); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.legal-links span { color: var(--text-mute); }
.auth-demo { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--accent-soft); font-size: 11px; color: var(--text-dim); line-height: 1.5; }

/* account box in settings */
.acct-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); margin-bottom: 12px; }

/* ============================================================
   TABLET & DESKTOP ADAPTATION
   ============================================================ */
.tile-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.viz-pair { gap: 14px; }

/* tablet portrait and up */
@media (min-width: 720px) {
  .topbar { padding: 14px 24px; }
  .athlete-strip { padding: 9px 22px; }
  .page { max-width: 880px; padding: 26px 24px 120px; }
  .page-head h1 { font-size: var(--fs-xl); }

  .tile-grid.four { grid-template-columns: repeat(4, 1fr); }
  .viz-pair { grid-template-columns: 1fr 1fr; align-items: start; }

  /* center the bottom nav so buttons don't sprawl across the width */
  .nav { justify-content: center; gap: 6px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .nav button { flex: 0 1 148px; border-radius: var(--r); }
  .nav button:hover { background: var(--surface); }

  /* show fuller athlete names on the strip */
  .strip-chip .nm { font-size: var(--fs-sm); }
  .strip-chip .avatar { width: 32px; height: 32px; }
}

/* tablet landscape / small desktop */
@media (min-width: 1040px) {
  .page { max-width: 960px; }
  .topbar, .athlete-strip { padding-left: 32px; padding-right: 32px; }
  .nav button { flex: 0 1 160px; }
}

/* on big screens the shooting target can breathe a little wider */
@media (min-width: 720px) and (orientation: landscape) {
  .target-stage { padding: 8px 0; }
}

/* ============================================================
   PRICING — 3-tier plan selector (registration + upgrade)
   ============================================================ */
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 13px 14px; border: 1px solid var(--border-2); border-radius: var(--r);
  background: var(--surface-2); transition: all 0.15s;
}
.plan-opt:hover { border-color: var(--accent-soft); }
.plan-opt.sel { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink) inset; background: var(--accent-glow); }
.plan-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); flex: 0 0 auto; position: relative; }
.plan-opt.sel .radio { border-color: var(--accent-ink); }
.plan-opt.sel .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent-ink); }
.plan-opt .pl-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plan-opt .pl-title { font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-opt .pl-sub { font-size: 12px; color: var(--text-dim); }
.pl-tag {
  font-size: 9px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px; background: var(--accent-glow); color: var(--accent-ink); border: 1px solid var(--accent-soft);
}
.pl-price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.pp-main { font-size: var(--fs-md); font-weight: 700; font-family: var(--font-mono); }
.pp-unit { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }

/* plan summary card in coach settings */
.plan-summary {
  border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface-2);
  padding: 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px;
}
.plan-summary.team { border-color: var(--accent-soft); }
.plan-summary.fed { border-color: var(--standing); }
.ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ps-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-family: var(--font-mono); }
.ps-name { font-size: var(--fs-md); font-weight: 600; margin-top: 3px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ps-price { font-size: var(--fs-cap); color: var(--text-dim); font-weight: 500; }
.ps-usage { font-size: 12px; color: var(--text-dim); }
.pay-note {
  margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--accent-soft);
  font-size: 11px; color: var(--text-dim); line-height: 1.5;
}
/* ============================================================
   HINTED HEADINGS — section title + an "i" that reveals the explanation.
   Keeps long help text out of the way on a phone without deleting it.
   ============================================================ */
.hint-row { display: flex; align-items: center; gap: 8px; }
.hint-row > :first-child { flex: 1 1 auto; min-width: 0; }
.info-dot {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text-mute); font-family: var(--font-ui);
  font-size: 12px; font-weight: 700; font-style: italic; line-height: 1;
}
.info-dot:hover { border-color: var(--accent-soft); color: var(--text-dim); }
.info-dot[aria-expanded="true"] { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-glow); }
.hint-note {
  margin: 7px 0 12px; color: var(--text-mute);
  font-size: 12.5px; line-height: 1.55;
}
/* settings section title — matches what the inline styles used to do */
.set-head { font-size: 14px; font-weight: 600; }
.set-head-gap { margin-bottom: 10px; }
/* сегменты во всю ширину, поровну */
.seg.seg-fill { display: flex; width: 100%; }
.seg.seg-fill button { flex: 1 1 0; min-width: 0; padding-inline: 8px; overflow: hidden; text-overflow: ellipsis; }

/* modal title row with a close (×) on the right */
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.modal-head .icon-btn { width: 34px; height: 34px; color: var(--text-dim); }
.modal-head .icon-btn:hover { color: var(--text); }

.set-divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ============================================================
   STOPWATCH BAND (shooting screen)
   ============================================================ */
.shoot-timer {
  flex: 0 0 auto; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  display: flex; flex-direction: column; gap: 5px; transition: border-color 0.2s, box-shadow 0.2s;
}
.shoot-timer.st-running { border-color: var(--hit); box-shadow: inset 0 0 0 1px var(--hit), 0 0 26px rgba(47,208,127,0.12); }
.shoot-timer.st-stopped { border-color: var(--border-2); }

.st-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.st-clockwrap { order: 1; display: flex; flex-direction: column; flex: 0 0 auto; min-width: 88px; }
.st-caption { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); font-family: var(--font-mono); display: flex; align-items: center; gap: 6px; }
.st-live { width: 7px; height: 7px; border-radius: 50%; background: var(--hit); box-shadow: 0 0 8px var(--hit); animation: swblink 1s infinite; }
@keyframes swblink { 50% { opacity: 0.25; } }
.sw-time { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.st-idle .sw-time { color: var(--text-mute); }
.st-running .sw-time { color: var(--hit); }
.st-stopped .sw-time { color: var(--text); }
.sw-unit { font-size: var(--fs-cap); color: var(--text-mute); margin-left: 2px; font-weight: 400; }

.st-controls { order: 2; flex: 0 0 auto; margin-left: auto; }
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; min-width: 80px;
}
.sw-btn:active { transform: translateY(1px); }
.sw-btn.start { background: var(--hit); color: var(--on-mark); }
.sw-btn.stop  { background: var(--miss); color: var(--on-mark); }
.sw-btn.reset { background: var(--surface-2); border-color: var(--border-2); color: var(--text-dim); min-width: 0; width: 38px; height: 38px; padding: 0; }
.sw-btn.reset:hover { border-color: var(--accent-soft); }

.st-metrics { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px 16px; }
.st-metric { display: flex; flex-direction: column; gap: 0; min-width: 48px; }
.tm-k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); font-family: var(--font-mono); }
.tm-v { font-size: 14px; font-weight: 600; font-family: var(--font-mono); }
.tm-u { font-size: 10px; color: var(--text-mute); margin-left: 1px; font-weight: 400; }

.st-splits { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 5px; }
.ss-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-family: var(--font-mono); flex: 0 0 auto; }
.ss-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ss-row::-webkit-scrollbar { display: none; }
.ss-chip { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* draggable shot markers (mis-tap correction) */
.shot-marker.draggable { cursor: grab; touch-action: none; }
.shot-marker.draggable::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
.shot-marker.dragging { cursor: grabbing; z-index: 5; }
.shot-marker.dragging .ring { display: block; opacity: 0.95; inset: -8px; }
.shot-marker.dragging .core { box-shadow: 0 0 12px currentColor; }
.shot-marker.untimed .ring { display: block; border-style: dashed; }

.hint-line .hint-drag { color: var(--text-mute); }

/* timing tags in session history */
.series-timing { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.st-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; color: var(--text-dim);
}

/* ============================================================
   DUAL-ATHLETE MODE (wide tablet, landscape)
   All rules scoped to .shoot.dual / .dual-* so the single-athlete
   phone flow is untouched.
   ============================================================ */

/* two-column setup on the shoot tab */
.dual-setup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 18px; align-items: start;
}
@media (max-width: 899px) { .dual-setup { grid-template-columns: 1fr; } }
.lane-setup { min-width: 0; }
.lane-setup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lane-setup-head .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: var(--fs-cap); font-weight: 600;
  background: var(--accent-soft); color: var(--on-accent-soft);
}
.lane-setup-head .nm { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.second-picker .avatar { font-family: var(--font-ui); }

/* one-or-two switch, right under the heading so the pair mode is impossible to miss */
.shoot-mode { margin-bottom: 14px; }
.shoot-mode .seg button { padding: 10px 22px; font-size: var(--fs-sm); }

/* the chosen pair — a single compact line, so the start button stays on screen */
.dual-pair {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 14px;
}
.dual-pair-one { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dual-pair-one .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: var(--fs-cap); font-weight: 600;
  font-family: var(--font-ui); background: var(--accent-soft); color: var(--on-accent-soft);
}
.dual-pair-one .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dual-pair-sep { flex: 0 0 auto; color: var(--text-mute); font-size: 18px; }
.dual-pair .btn { margin-left: auto; flex: 0 0 auto; padding: 8px 14px; }

/* full-screen dual shooting surface */
.shoot.dual { padding: 0; }
.shoot.dual .dual-exit {
  flex: 0 0 auto; align-self: flex-end;
  margin: calc(6px + env(safe-area-inset-top)) 12px 2px 12px;
}
.dual-lanes {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr);
  align-items: stretch; gap: 8px;
  padding: 0 10px calc(6px + env(safe-area-inset-bottom));
}
@media (orientation: portrait) {
  .dual-lanes { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}

/* each lane is a self-contained mini shooting screen inside its column */
.shoot-lane {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.012); overflow: hidden;
}
.shoot-lane .shoot-top { padding: 8px 12px; }
.shoot-lane .shoot-top .who .nm { font-size: var(--fs-sm); }
/* Target height is FIXED (inline = computed size), the bottom band is pinned via
   margin-top:auto, so the target never resizes when the stopwatch expands —
   the lane's box only changes on rotation/resize (ResizeObserver on the lane). */
.shoot-lane .target-stage { flex: 0 0 auto; padding: 2px 0; }
.shoot-lane .shoot-bottom { margin-top: auto; padding: 6px 12px 10px; gap: 6px; }



/* icons: see icons.js */
.ic{display:inline-flex;flex:none;line-height:0}
.ic svg{width:100%;height:100%;display:block}

/* ============================================================
   РАСКЛАДКА B «Стрельба в центре» (контракт docs/design-tasks/app-layout).
   Общие детали всех экранов: шапка экрана, поле-список, строки-списки,
   карточки, лист снизу, аккордеон, нижняя навигация с круглой кнопкой.
   ============================================================ */

/* шапка экрана: заголовок слева, значки справа, стрелка назад у вложенных */
.b-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
.b-head h1 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: var(--fs-lg); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-ib { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; }
.b-ib:hover { color: var(--text); }
.b-ib:disabled { opacity: 0.4; cursor: default; }
.b-ib.b-ib-main { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.b-headbtn { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--text); cursor: pointer; }
.b-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3);
  font-size: 12px; display: grid; place-items: center; }

/* тело экрана под шапкой */
.b-body { max-width: 920px; margin: 0 auto; padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
/* поле-список прямо в колонке держит высоту контрола 56 px (в колонке flex-basis 0 его сжимал, REVIEW M3) */
.b-body > .b-field { flex: 0 0 auto; }

/* поле-список: подпись сверху, значение, шеврон; нативный select поверх */
.b-field { position: relative; flex: 1 1 0; min-width: 0; height: var(--ctl); display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.b-field:focus-within { border-color: var(--accent-ink); }
.b-field.b-dis { opacity: 0.5; }
.b-ft { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-fl { font-size: var(--fs-cap); color: var(--text-mute); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-fv { font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.b-chev { flex: 0 0 auto; color: var(--text-mute); display: inline-flex; }
.b-field select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.b-selrow { display: flex; gap: 8px; }
/* поле внутри строки списка: значение справа */
.b-field.b-inline { flex: 0 1 auto; height: auto; padding: 0; background: none; border: 0; gap: 6px; }
.b-field.b-inline .b-fv { font-weight: 500; color: var(--text-dim); }

/* аватар нейтральный */
.b-av { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--on-accent-soft); font-size: var(--fs-sm); font-weight: 700; }
.b-av.b-av-sm { width: 30px; height: 30px; font-size: 12px; }

/* подписи разделов и списки-строки */
.b-sec { font-size: var(--fs-cap); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin: 8px 2px 0; }
.b-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; flex: 0 0 auto; }
.b-li { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px 8px 14px;
  text-align: left; color: var(--text); background: none; cursor: pointer; }
button.b-li:hover { background: var(--surface-2); }
.b-list > * + * { border-top: 1px solid var(--border); }
.b-li-main { flex: 1 1 auto; min-width: 0; }
.b-li .b-ic-l { color: var(--text-dim); display: inline-flex; flex: 0 0 auto; }
.b-t1 { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-t2 { font-size: var(--fs-cap); color: var(--text-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-val { font-size: var(--fs-sm); color: var(--text-dim); white-space: nowrap; }
.b-li.b-danger { color: var(--miss); font-weight: 600; justify-content: center; }

/* карточки и цифры */
.b-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; flex: 0 0 auto; }
.b-card > h3 { margin: 0 0 10px; font-size: var(--fs-cap); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
.b-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 0 0 auto; }
.b-big { font-size: var(--fs-xl); font-weight: 700; line-height: 1.1; }
.b-pct { font-size: var(--fs-md); font-weight: 700; white-space: nowrap; }
.b-hi { color: var(--hit); }
.b-lo { color: var(--miss); }

/* кнопки раскладки */
.b-btn { height: var(--ctl); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border-radius: var(--r); font-size: var(--fs-md); font-weight: 600; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); cursor: pointer; }
.b-btn.b-main { background: var(--accent); border-color: transparent; color: var(--on-accent); flex: 1 1 auto; }
.b-btn.b-tall { height: var(--ctl-main); }
.b-btn:disabled { opacity: 0.45; cursor: default; }

/* лист снизу */
.b-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.b-sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; }
.b-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border-2); margin: 0 auto 4px; flex: 0 0 auto; }
.b-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.b-sheet-h h3 { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.b-sheet .b-field { flex: 0 0 auto; background: var(--surface-2); }
.b-sheet-foot { display: flex; gap: 8px; margin-top: 4px; }

/* аккордеон на details/summary */
.b-acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px 8px 14px; cursor: pointer; }
.b-acc > summary::-webkit-details-marker { display: none; }
.b-acc > summary .b-t1 { white-space: normal; }
.b-acc > summary .b-chev { margin-left: auto; transition: transform 0.2s; }
.b-acc[open] > summary .b-chev { transform: rotate(180deg); }
.b-acc-b { padding: 0 14px 14px; font-size: var(--fs-cap); line-height: 1.5; color: var(--text-dim); }
.b-acc-b b { display: block; color: var(--text); font-weight: 600; margin-top: 8px; }
.b-acc-b b:first-child { margin-top: 0; }

/* нижняя навигация B: 5 ячеек, в центре круглая «Стрельба» */
.b-nav { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border);
  background: var(--bg); padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.b-tab { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  font-size: 11px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-mute); white-space: nowrap; cursor: pointer; background: none; }
.b-tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.b-tab.b-on { color: var(--accent-ink); }
.b-fabcell { position: relative; font-weight: 600; color: var(--text-dim); }
/* The round button floats above the bar, so an empty block takes the icon's
   place: the label then lines up with its neighbours at any size. */
.b-fabcell::before { content: ''; flex: none; height: 22px; }
.b-fab { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: var(--ctl-main); height: var(--ctl-main);
  border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; border: 4px solid var(--bg); }

/* мини-мишень карточки сессии: белая планшетка в обеих темах */
.b-mini { --hit: #0a7d43; --miss: #c7281c; flex: 0 0 auto; width: 48px; height: 48px; display: block;
  background: #ffffff; border: 1px solid #d5d8dc; border-radius: 12px; }

/* ==== B: Сессии (sessions.jsx) ==== */
/* шапка остаётся наверху, пока список прокручивается */
.bs-page > .b-head { position: sticky; top: 0; z-index: 20; }
.bs-page .b-headbtn:disabled { opacity: 0.45; cursor: default; }
/* карточка сессии: мини-мишень, дата, тип, серии и выстрелы, точность */
.bs-card { width: 100%; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer; }
.bs-card:hover { background: var(--surface-2); }
.bs-card:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.bs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bs-main .b-t1, .bs-main .b-t2 { display: block; }
.bs-date { font-size: var(--fs-md); }
/* мини-мишень: цвета из области .target-svg (белая планшетка в обеих темах) */
.bs-ring { fill: none; stroke: var(--border-2); stroke-width: 0.8; stroke-dasharray: 2 2; }
.bs-zone { fill: var(--zone-fill); stroke-width: 1.6; }
.bs-zone-pr { stroke: var(--prone); }
.bs-zone-st { stroke: var(--standing); }
.bs-dh { fill: var(--hit); }
.bs-dm { fill: var(--miss); }
/* пустые состояния */
.bs-empty { flex: 0 0 auto; padding: 28px 16px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bs-empty .b-t1 { white-space: normal; }
.bs-wrap { white-space: normal; }
.bs-empty-btn { margin-top: 12px; }
/* деталь сессии под шапкой B */
.bs-detail { display: block; }
.bs-detail-sub { font-size: var(--fs-cap); color: var(--text-mute); margin: 0 2px 12px; }
/* ==== /B: Сессии ==== */

/* ==== B: Статистика (stats.jsx) ==== */
/* экран: шапка, два списка, две KPI-карточки, один крупный график */
.bt-page { min-height: 100%; }
.bt-kpi { padding: 12px 14px; min-width: 0; }
.bt-kpi .bt-kl { margin: 0 0 4px; }
.bt-main > h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-note { text-transform: none; letter-spacing: 0; font-weight: 500; }
/* кнопка фильтра в шапке: подсвечена и с числом, когда фильтр включён */
.bt-fbtn { position: relative; }
.bt-fbtn.bt-on { color: var(--accent-ink); border-color: var(--accent-ink); }
.bt-fbadge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; }
/* график динамики: сетка, столбики по смыслу, подписи */
.bt-chart { display: block; overflow: visible; }
.bt-chart text { font-family: var(--font-ui); font-size: 11px; fill: var(--text-mute); }
.bt-grid { stroke: var(--border); stroke-width: 1; }
.bt-bar-hi { fill: var(--hit); }
.bt-bar-mid { fill: var(--surface-3); }
.bt-bar-lo { fill: var(--miss); }
.bt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-cap); color: var(--text-mute); margin-top: 8px; }
.bt-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.bt-legend-c { justify-content: center; margin-top: 10px; }
.bt-dates { justify-content: space-between; margin-top: 6px; padding-left: 28px; }
.bt-dot-hit { background: var(--hit); }
.bt-dot-mid { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
/* в светлой теме серый столбик светлее карточки почти не виден: берём линию потемнее */
:root[data-theme="light"] .bt-bar-mid { fill: var(--border-2); }
:root[data-theme="light"] .bt-dot-mid { background: var(--border-2); box-shadow: none; }
.bt-dot-lo { background: var(--miss); }
.bt-dot-warn { background: var(--warn); }
/* мишень и роза по центру карточки */
.bt-heat { display: flex; flex-direction: column; align-items: center; }
/* полосы: по положениям и сравнение спортсменов */
.bt-bars { display: flex; flex-direction: column; gap: 14px; }
.bt-bars-pos { gap: 16px; }
.bt-posblock + .bt-posblock { padding-top: 16px; border-top: 1px solid var(--border); }
.bt-barrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: baseline; font-size: var(--fs-sm); }
.bt-bl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-bl .b-t2 { display: inline; }
.bt-bv { font-size: var(--fs-md); font-weight: 700; }
.bt-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bt-fill { height: 100%; border-radius: 4px; background: var(--text-dim); }
.bt-me .bt-bl { font-weight: 700; }
.bt-me .bt-bl .b-t2 { font-weight: 400; }
.bt-me .bt-fill { background: var(--accent-ink); }
.bt-prone .bt-fill { background: var(--prone); }
.bt-standing .bt-fill { background: var(--standing); }
/* кучность и центр группы под полосой или под мишенью */
.bt-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bt-metrics .b-t2 { margin: 0 0 2px; }
.bt-mv { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-empty { padding: 24px 8px; text-align: center; color: var(--text-dim); font-size: var(--fs-sm); }
/* ==== /B: Статистика ==== */

/* ==== B: Настройки (settings.jsx) ==== */
/* строка со списком: нативный select растянут на всю строку, «i» поверх него */
.bn-sel .b-field.b-inline { position: static; flex-shrink: 0; max-width: 55%; }
.bn-sel .info-dot { position: relative; z-index: 1; }
.bn-sel .hint-note { margin: 6px 0 2px; font-size: var(--fs-cap); }
.b-li .hint-row .b-t1 { white-space: normal; }
a.b-li { text-decoration: none; }
a.b-li:hover { background: var(--surface-2); }
.b-li .b-chev, .b-li .b-val { flex: 0 0 auto; }
/* пояснение внутри списка: переносится, без цвета */
.bn-note { padding: 10px 14px 12px; font-size: var(--fs-cap); line-height: 1.5; color: var(--text-mute); }
/* промокод внутри списка «Подписка» */
.bn-promo { padding: 12px 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.bn-promo-row { display: flex; gap: 8px; }
.bn-promo-in { flex: 1 1 auto; min-width: 0; height: var(--ctl); text-transform: uppercase; }
.bn-promo-row .b-btn { flex: 0 0 auto; }
.bn-msg { display: flex; align-items: center; gap: 7px; font-size: var(--fs-cap); line-height: 1.45; }
.bn-ok { color: var(--hit); }
.bn-err { color: var(--miss); }
.bn-err-box { margin: 0; }
/* поддержка и удаление: карточки с полем */
.bn-support, .bn-del { display: flex; flex-direction: column; gap: 10px; }
.bn-ta { width: 100%; min-height: 96px; resize: vertical; line-height: 1.5; font-family: inherit; }
.bn-support .b-btn { width: 100%; }
.bn-del p { margin: 0; }
.bn-del-title { font-size: var(--fs-sm); font-weight: 600; }
.bn-del-body { font-size: var(--fs-cap); line-height: 1.55; color: var(--text-dim); }
.bn-del-team { font-size: var(--fs-cap); line-height: 1.55; color: var(--text-mute); }
.bn-del-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-del-btns .b-btn { flex: 1 1 130px; }
.b-btn.bn-danger-btn { color: var(--miss); }
.bn-page .b-li.b-danger { font-size: var(--fs-sm); }
/* временная обёртка SettingsModal: страница внутри модалки без своих полей */
.modal.bn-modal { padding: 0; }
.modal.bn-modal .b-head { position: sticky; top: 0; z-index: 2; }
/* ==== /B: Настройки ==== */

/* ==== B: оболочка, спортсмены, стрельба, ещё, справочник ==== */
/* шапка экрана прилипает к верху прокрутки */
.main > .b-head, .main > * > .b-head { position: sticky; top: 0; z-index: 5; }
.b-head + .b-body { padding-top: 12px; }
.b-sec + .bo-note { margin: -4px 2px 0; }
.bo-note { margin: 0 2px; font-size: var(--fs-cap); color: var(--text-mute); line-height: 1.45; }
.bo-src { margin-top: 10px; color: var(--text-mute); }

/* Спортсмены: понятный «+» с подписью в шапке */
.bo-add { color: var(--accent-ink); border-color: var(--border-2); }
.bo-add .ic { color: var(--accent-ink); }
.bo-acard { padding: 0; overflow: hidden; }
.bo-acard.bo-cur { border-color: var(--border-2); }
.bo-acard-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px 10px 14px; text-align: left; color: var(--text); background: none; cursor: pointer; }
.bo-acard-h .b-t1, .bo-acard-h .b-t2 { display: block; }
.bo-a3 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 14px; padding: 10px 0 12px; border-top: 1px solid var(--border); }
.bo-a3 span { display: block; font-size: var(--fs-cap); color: var(--text-mute); }
.bo-a3 b { font-size: var(--fs-md); font-weight: 600; }
.bo-a3 b.b-hi { color: var(--hit); }
.bo-a3 b.b-lo { color: var(--miss); }
.bo-del { position: absolute; right: -6px; bottom: 8px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r); color: var(--text-mute); background: none; cursor: pointer; }
.bo-del:hover { color: var(--miss); }
.bo-invite { border-radius: var(--r-lg); }
.bo-invite > * + * { border-top: 0; } /* это одна строка, а не список: без разделителей внутри */
.bo-invite .b-t1, .bo-invite .b-t2 { display: block; }
.bo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; text-align: center; color: var(--text); cursor: pointer; }
.bo-empty-plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--border-2); color: var(--accent-ink); margin-bottom: 6px; }
.b-list .b-li .b-t1, .b-list .b-li .b-t2 { display: block; }
.b-acc .b-t1, .b-acc .b-t2 { display: block; }
.b-nav .b-tab { padding: 0; margin: 0; border-radius: 0; }
.b-nav .b-tab > span:last-child { padding: 0; }

/* условия на планшетной странице старта */
.bo-cond { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bo-cond .card-title { margin: 0; }
.bo-cond-sub { margin: -4px 0 2px; color: var(--text-mute); font-size: var(--fs-cap); }
.bo-cond .b-field { flex: 0 0 auto; background: var(--surface-2); }

/* поле пульса в листе условий */
.sh-pulse { width: 100%; border: 0; background: none; padding: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text); outline: none; }
.sh-pulse::placeholder { color: var(--text-mute); font-weight: 500; }

/* Стрельба B: полноэкранно, без вкладок */
.shoot.sh-b { gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.sh-b > * { flex: 0 0 auto; }
.sh-b > .sh-row1, .sh-b > .sh-row2, .sh-b > .sh-stage, .sh-b > .sh-timer, .sh-b > .sh-splits, .sh-b > .sh-save { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.sh-row1 { display: flex; align-items: center; gap: 8px; }
.sh-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sh-zone { font-size: var(--fs-cap); color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sh-dots { display: inline-flex; gap: 6px; }
.sh-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border-2); }
.sh-dots i.h { background: var(--hit); border-color: var(--hit); }
.sh-dots i.m { background: var(--miss); border-color: var(--miss); }
.sh-row2 .b-field:nth-child(2) { flex: 0 0 128px; } /* узкое «Положение»: имя спортсмена целиком */
.sh-like { margin: -4px 2px 2px; font-size: var(--fs-cap); color: var(--text-mute); line-height: 1.4; }
.b-sheet .b-selrow .b-field { flex: 1 1 0; }
.b-field .ex-date { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; font-size: 16px; }
.b-fv.sh-empty { color: var(--text-mute); font-weight: 500; }
.ex-list .b-t2 { white-space: normal; } /* пояснение к формату целиком */
.ex-count { margin-top: 0; }
.sh-stage { flex: 1 1 0 !important; min-height: 0; position: relative; display: grid; place-items: center;
  background: #ffffff; border: 1px solid #d5d8dc; border-radius: var(--r); overflow: hidden; touch-action: none; cursor: crosshair; }
.sh-splits > span.sh-tip { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
/* время 60 px, метрики 2x2 и сброс в одну строку: на 360 px при ~30 с подписи
   «Стрельба», «На рубеже» целиком (колонки по содержимому, зазоры 8/6 px) */
.sh-timer { height: 76px; display: flex; align-items: center; gap: 8px; }
.sh-time { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 6px; }
.sh-time .sw-time { font-size: var(--fs-num); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; }
.sh-time .sw-unit { font-size: var(--fs-md); font-weight: 500; }
.sh-time .st-live { margin-top: 8px; animation: none; box-shadow: none; }
.sh-m22 { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 6px; }
.sh-m22 div { display: flex; flex-direction: column; min-width: 0; }
.sh-m22 span { font-size: var(--fs-cap); color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-m22 b { font-size: var(--fs-md); font-weight: 600; line-height: 1.2; }
.sh-m22 b small { font-size: var(--fs-cap); font-weight: 500; color: var(--text-mute); margin-left: 2px; }
.sh-m22.sh-m1 { grid-template-columns: 1fr; }
.sh-tbtn { flex: 1 1 auto; margin-left: auto; max-width: 200px; }
.sh-m1 + .sh-tbtn { flex: 0 0 auto; }
.sh-treset { width: 38px; height: 38px; align-self: center; }
.sh-splits { height: 34px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.sh-splits > span { flex: 1 1 auto; min-width: 0; font-size: var(--fs-cap); color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-splits b { flex: 0 0 auto; font-size: var(--fs-sm); font-weight: 600; padding: 5px 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.sh-b > .sh-save.b-btn { flex: 0 0 auto; width: 100%; }
.sh-stage .target-wrap, .sh-stage .target-svg { --border: #ffffff; }
.sh-save .ic { width: 20px; height: 20px; }
/* Планшет в альбоме: «Режим» и «Условия на рубеже» сверху, дорожки как телефонный экран B */
.sh-tab > .sh-top, .sh-tab > .sh-lanes { width: 100%; }
.sh-top { display: flex; align-items: center; gap: 8px; }
button.b-field.sh-fbtn { font: inherit; text-align: left; color: inherit; cursor: pointer; flex: 1 1 auto; }
.sh-lanes { flex: 1 1 0 !important; min-height: 0; display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; grid-template-rows: minmax(0, 1fr); }
.sh-lanes.sh-two { grid-template-columns: 1fr 1fr; justify-content: stretch; }
.sh-lane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-lane > * { flex: 0 0 auto; }
.sh-two .sh-lane:first-child { padding-right: 12px; }
.sh-two .sh-lane + .sh-lane { padding-left: 12px; border-left: 1px solid var(--border); }
.sh-lane .sh-ib { width: var(--ctl); height: var(--ctl); }
.sh-zd { height: 22px; display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.sh-zd .sh-zone { flex: 1 1 auto; }
.sh-lane > .sh-save.b-btn { flex: 0 0 auto; width: 100%; }
.sh-lane .sh-m22 { grid-template-columns: 1fr 1fr; gap: 4px 10px; } /* в дорожке места хватает, как в эталоне */
/* низкий экран (телефон лёжа или маленький): плотнее, мишень остаётся главной */
@media (max-height: 700px) {
  .shoot.sh-b { gap: 6px; }
  .sh-time .sw-time { font-size: 44px; }
  .sh-b > .sh-save.b-btn { height: var(--ctl); }
}
/* узкий телефон 320-340 px: подписи вкладок 11 px помещаются целиком,
   длинные строки карточек переносятся, а не режутся */
@media (max-width: 340px) {
  .b-nav { grid-template-columns: 1fr 1fr 58px 1fr 1fr; }
  .b-tab { letter-spacing: -0.04em; }
  .b-body { padding-left: 10px; padding-right: 10px; }
  .bo-acard .b-t2, .bo-invite .b-t2, .b-list .b-li .b-t2 { white-space: normal; }
  .bs-date { font-size: var(--fs-sm); }
  .bs-main .b-t2 { white-space: normal; }
  .b-kpis .b-t2 { white-space: normal; }
  .shoot.sh-b { padding-left: 10px; padding-right: 10px; }
  .sh-row2 .b-field, .bt-page .b-selrow .b-field { padding: 0 6px 0 10px; gap: 4px; }
  .bt-bl { white-space: normal; }
  .bt-bl .bt-bn, .bt-bl .b-t2 { white-space: nowrap; }
  .sh-timer { gap: 6px; }
  .sh-m22 { gap: 4px 6px; }
}
/* ==== /B: оболочка ==== */

/* ==== ТУР (tour.jsx): затемнение с вырезом, рамка, карточка со стрелкой ==== */
/* Слой выше листов (.b-scrim 90) и тоста. Глотает все тапы: приложение под ним
   не нажимается, тап по вырезу tour.jsx считает как «Далее». */
.tour-layer { position: fixed; inset: 0; z-index: 200; pointer-events: auto; touch-action: none;
  font-family: var(--font-ui); -webkit-tap-highlight-color: transparent; }
.tour-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour-ring { position: absolute; border-radius: var(--r); box-shadow: 0 0 0 2px var(--accent-ink); pointer-events: none; }
.tour-card { position: absolute; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.tour-card h4 { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.25; }
.tour-card p { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-dim); }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-2); }
.tour-dots i.on { width: 18px; background: var(--text); }
.tour-count { font-size: var(--fs-cap); color: var(--text-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-skip { background: none; border: 0; color: var(--text-dim); font: inherit; font-size: var(--fs-sm);
  padding: 0 4px; min-height: 44px; cursor: pointer; }
/* пузырь у элемента */
.tour-pop { border-radius: var(--r-lg); padding: 16px; }
.tour-pop .tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface);
  border: 1px solid var(--border); transform: rotate(45deg); }
.tour-pop .tour-foot .b-btn { margin-left: auto; height: 44px; padding: 0 20px; flex: 0 0 auto; }
/* приветствие окном по центру */
.tour-center { left: 24px; right: 24px; top: 50%; transform: translateY(-50%); max-width: 400px; margin: 0 auto;
  border-radius: var(--r-lg); padding: 20px; }
.tour-center h4 { font-size: var(--fs-lg); }
.tour-center .tour-foot .b-btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
/* ==== /ТУР ==== */
