/* ═══════════════════════════════════════════════════════════════════
   اپ پنل کاربران — Design System
   رنگ‌ها از لوگو: سرمه‌ای #0b1220 · سبز #22a548→#3fd968 · قرمز
   ساختار: ۱) توکن‌ها ۲) پایه ۳) پوسته (نوار بالا/پایین/کناری) ۴) اجزا ۵) صفحه‌ها
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ── ۱) توکن‌ها ─────────────────────────────────────────────────── */
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef1f8;
  --ink: #0b1220;
  --ink-2: #3c4660;
  --muted: #6f7894;
  --line: #e3e7f0;
  --brand: #0b1220;
  --brand-ink: #ffffff;
  --accent: #1f9d45;
  --accent-2: #3fd968;
  --accent-soft: #e5f7eb;
  --danger: #dc3c42;
  --danger-soft: #fdecec;
  --warn: #c77700;
  --warn-soft: #fff4dd;
  --info: #2563eb;
  --info-soft: #e8efff;
  --gold: #e0a100;
  --silver: #8d97aa;
  --bronze: #b8692f;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 1px rgba(11, 18, 32, .04);
  --shadow-2: 0 8px 24px rgba(11, 18, 32, .08), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-3: 0 24px 60px rgba(11, 18, 32, .22);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --tap: 48px;
  --topbar-h: 60px;
  --bnav-h: 66px;
  --side-w: 264px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c18;
    --surface: #101829;
    --surface-2: #151f34;
    --surface-3: #1b2741;
    --ink: #eef2fb;
    --ink-2: #c3cbe0;
    --muted: #8e98b3;
    --line: #22304d;
    --brand: #0b1220;
    --accent: #34c768;
    --accent-soft: #12301f;
    --danger: #f06469;
    --danger-soft: #3a1619;
    --warn: #f2a93b;
    --warn-soft: #3a2a10;
    --info: #6b9bff;
    --info-soft: #15244a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070c18; --surface: #101829; --surface-2: #151f34; --surface-3: #1b2741;
  --ink: #eef2fb; --ink-2: #c3cbe0; --muted: #8e98b3; --line: #22304d;
  --accent: #34c768; --accent-soft: #12301f; --danger: #f06469; --danger-soft: #3a1619;
  --warn: #f2a93b; --warn-soft: #3a2a10; --info: #6b9bff; --info-soft: #15244a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ── ۲) پایه ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.75 "Vazirmatn", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--info); text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-feature-settings: "tnum"; }

/* boot screen (before Vue): styled inline in templates/app/shell.html */
.boot__msg { max-width: 420px; margin: 30vh auto 0; padding: 0 20px; text-align: center; color: var(--ink-2); }

/* ── ۳) پوسته ───────────────────────────────────────────────────── */
.shell { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__logo { height: 30px; width: auto; display: block; }
.topbar__title { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0;
  display: inline-grid; place-items: center; position: relative;
  background: transparent; color: var(--ink-2); font-size: 18px;
}
.icon-btn:active { background: var(--surface-3); }
.icon-btn .dot { position: absolute; top: -1px; left: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), #24345c); color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }

.main { padding: 8px 16px calc(var(--bnav-h) + var(--safe-b) + 28px); max-width: 760px; margin: 0 auto; }

.bnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  height: calc(var(--bnav-h) + var(--safe-b));
  padding: 6px 6px var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.bnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 14px; position: relative;
}
.bnav a i { font-size: 19px; height: 26px; width: 52px; display: grid; place-items: center; border-radius: 13px; transition: background .2s var(--ease), color .2s; }
.bnav a.router-link-active { color: var(--ink); }
.bnav a.router-link-active i { background: var(--accent-soft); color: var(--accent); }
.bnav .dot { position: absolute; top: 2px; inset-inline-start: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }

.snav { display: none; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .snav {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100dvh; padding: 22px 14px;
    background: var(--surface); border-inline-end: 1px solid var(--line);
  }
  .snav__logo { height: 38px; margin: 0 8px 22px; align-self: flex-start; }
  .snav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 700; }
  .snav a i { width: 22px; text-align: center; color: var(--muted); }
  .snav a:hover { background: var(--surface-2); }
  .snav a.router-link-active, .snav a.router-link-active:hover { background: var(--accent); color: #fff; }
  .snav a.router-link-active i { color: #fff; }
  .bnav { display: none; }
  .main { padding: 18px 32px 48px; max-width: 980px; }
  .topbar__logo { display: none; }
}

/* ── ۴) اجزا ────────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.card__pad { padding: 16px; }
.section { margin-top: 22px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.section__title { margin: 0; font-size: 16px; font-weight: 900; }
.section__link { font-size: 13.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 24px; padding: 20px 18px 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(63, 217, 104, .28), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(220, 60, 66, .22), transparent 60%),
    linear-gradient(160deg, #0b1220, #18264a);
  box-shadow: var(--shadow-2);
}
.hero::after { content: ""; position: absolute; inset: auto -40px -70px auto; width: 200px; height: 200px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .05); }
.hero__row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.hero__hi { font-size: 13px; opacity: .75; margin: 0; }
.hero__name { font-size: 21px; font-weight: 900; margin: 0; line-height: 1.5; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.hero .chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .14); }
.hero .chip--ready { background: rgba(63, 217, 104, .2); border-color: rgba(63, 217, 104, .45); color: #b9f5cb; }
.hero .chip--notready { background: rgba(245, 179, 1, .18); border-color: rgba(245, 179, 1, .45); color: #ffe08a; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid transparent;
}
.chip--ok { background: var(--accent-soft); color: var(--accent); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad { background: var(--danger-soft); color: var(--danger); }
.chip--info { background: var(--info-soft); color: var(--info); }

.btn {
  min-height: var(--tap); padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; transition: transform .12s var(--ease), background .2s, opacity .2s;
  background: var(--surface-3); color: var(--ink);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #178a3b); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
/* spinners: static/loader.css (shared with the public site and the scoring pages) */

/* کارت اقدام: «الان باید چه کنم» */
.actions { display: grid; gap: 10px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 14px; width: 100%; text-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); color: var(--ink); transition: transform .12s var(--ease);
}
.action:active { transform: scale(.99); }
.action__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; flex: none; }
.action__body { flex: 1; min-width: 0; }
.action__title { font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.action__desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.action__go { color: var(--muted); font-size: 14px; }
.tone-bad .action__ic { background: var(--danger-soft); color: var(--danger); }
.tone-warn .action__ic { background: var(--warn-soft); color: var(--warn); }
.tone-info .action__ic { background: var(--info-soft); color: var(--info); }
.tone-ok .action__ic { background: var(--accent-soft); color: var(--accent); }
.tone-bad { border-inline-start: 4px solid var(--danger); }
.tone-warn { border-inline-start: 4px solid var(--warn); }

.all-good { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.all-good i { font-size: 26px; }

/* آمار */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 14px 8px; text-align: center; min-width: 0; }
.stat__val { font-size: 26px; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }
.stat__val--sm { font-size: 17px; }
/* گوشی: آمار ۴تایی دو ردیف ۲تایی؛ اعداد کوچک‌تر تا در یک خط بمانند */
@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px 6px; border-radius: 16px; }
  .stat__val { font-size: 22px; }
  .stat__val--sm { font-size: 14.5px; }
  .stat__lbl { font-size: 11.5px; }
}
.stat__lbl { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat__ic { font-size: 18px; margin-bottom: 4px; }
.medal-gold { color: var(--gold); } .medal-silver { color: var(--silver); } .medal-bronze { color: var(--bronze); }

/* کارت مسابقه */
.tlist { display: grid; gap: 12px; }
.tcard { padding: 16px; display: grid; gap: 12px; text-align: start; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); color: var(--ink); }
.tcard__top { display: flex; gap: 12px; align-items: flex-start; }
.tcard__ic { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), #2b3f70); }
.tcard__name { font-weight: 900; font-size: 15.5px; line-height: 1.6; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.tcard__meta i { margin-inline-end: 4px; }
.tcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* گام‌شمار وضعیت ثبت‌نام */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.steps li::before { content: ""; width: 100%; height: 5px; border-radius: 3px; background: var(--line); }
.steps li.done { color: var(--accent); } .steps li.done::before { background: var(--accent); }
.steps li.now { color: var(--ink); } .steps li.now::before { background: linear-gradient(90deg, var(--line), var(--accent)); }
.steps li.bad { color: var(--danger); } .steps li.bad::before { background: var(--danger); }

/* Attendance: day switcher + roll call rows with big tap targets */
.daybar { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 12px; }
.daybar__mid { flex: 1; text-align: center; display: grid; line-height: 1.6; }
.daybar__mid small { color: var(--accent); font-weight: 700; font-size: 12px; }
.icon-btn:disabled { opacity: .35; }
.roll { padding: 12px 14px; }
.roll + .roll { border-top: 1px solid var(--line); }
.roll__who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.roll__who b { font-size: 14.5px; }
.roll__who small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.roll__btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.roll__btn { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; font-size: 12.5px; }
.roll__btn.is-on.tone-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.roll__btn.is-on.tone-warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.roll__btn.is-on.tone-bad { background: var(--danger); border-color: var(--danger); color: #fff; }
.roll__btn.is-on.tone-info { background: var(--info); border-color: var(--info); color: #fff; }
@media (max-width: 380px) { .roll__btn span { display: none; } .roll__btn i { font-size: 16px; } }

/* Schedule: time column of a slot, colored by class */
.slot-time { display: grid; text-align: center; min-width: 54px; padding: 4px 6px; border-inline-start: 4px solid var(--accent);
  border-radius: 8px; background: var(--surface-2); font-weight: 900; font-size: 14px; line-height: 1.4; flex: none; }
.slot-time small { font-weight: 700; color: var(--muted); font-size: 11.5px; }

/* Horizontal, swipeable row of filter chips */
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; margin: 0 -2px; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row .chip { height: 34px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
.chips-row .chip b { font-weight: 900; color: var(--muted); }
.chips-row .chip--on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips-row .chip--on b { color: var(--surface); opacity: .75; }

/* فهرست — minmax(0,1fr): متن یک‌خطیِ بلند نباید ستون را از عرض صفحه بیرون ببرد */
.list, .tlist, .actions { grid-template-columns: minmax(0, 1fr); }
.list { display: grid; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 58px; border: 0; background: none; width: 100%; text-align: start; color: var(--ink); }
.list__item + .list__item { border-top: 1px solid var(--line); }
.list__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.list__body { flex: 1; min-width: 0; }
.list__title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__end { font-size: 12px; color: var(--muted); flex: none; }
.list__item.is-unread .list__title { font-weight: 900; }
.list__item.is-unread .list__ic { background: var(--info-soft); color: var(--info); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: end; word-break: break-word; }

/* تاریخ شمسی */
.jdate { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 8px; }
.jdate .input { padding: 0 10px; }
select.input { appearance: none; -webkit-appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e98b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 12px 50%; padding-left: 32px; padding-right: 12px; }
.jdate select.input { padding-right: 10px; }
.input:disabled, .input[readonly] { background-color: var(--surface-2); color: var(--muted); }

/* انتخاب دوگزینه‌ای (مثلاً جنسیت) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg button { min-height: var(--tap); border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); }
.seg button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.seg button:disabled { opacity: .6; }

/* مدرک */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc + .doc { border-top: 1px solid var(--line); }
.doc__thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 20px; }
.doc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc__thumb--pdf { color: var(--danger); background: var(--danger-soft); }
.doc.is-missing .doc__thumb--empty { color: var(--warn); background: var(--warn-soft); }
.doc__body { flex: 1; min-width: 0; }
.doc__actions { display: flex; gap: 6px; flex: none; }
.doc__label { font-weight: 700; font-size: 14.5px; }
.doc__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.doc__state .chip { height: 24px; font-size: 11.5px; }
.doc__hint { font-size: 12px; color: var(--muted); }

/* نوار وضعیت بالای صفحه (قفل/برگشتی/کامل) */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 14px; font-size: 14px; line-height: 1.9; }
.banner i { font-size: 20px; margin-top: 3px; }
.banner b { display: block; font-size: 14.5px; }
.banner--info { background: var(--info-soft); color: var(--info); }
.banner--warn { background: var(--warn-soft); color: var(--warn); }
.banner--bad { background: var(--danger-soft); color: var(--danger); }
.banner--ok { background: var(--accent-soft); color: var(--accent); }
.banner p { margin: 0; color: var(--ink-2); }

/* چک‌لیست ارسال */
.checks { list-style: none; margin: 0; padding: 4px 16px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.checks li + li { border-top: 1px dashed var(--line); }
.checks i { width: 22px; text-align: center; }
.checks .ok i { color: var(--accent); } .checks .no i { color: var(--muted); } .checks .no { color: var(--ink-2); }

/* جستجوی فهرست داخل برگه */
.pick-list { max-height: 52dvh; overflow: auto; margin: 10px -4px 0; }
.pick-list button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; border: 0; background: none; border-radius: 12px; text-align: start; color: var(--ink); }
.pick-list button:hover, .pick-list button.is-on { background: var(--accent-soft); }
.pick-list small { color: var(--muted); display: block; }

/* نوار پیشرفت */
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(270deg, var(--accent-2), var(--accent)); transition: width .5s var(--ease); margin-inline-start: 0; }
.bar--danger span { background: var(--danger); }

/* کمربند */
.belt { width: 46px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .1); position: relative; }
.belt::after { content: ""; position: absolute; inset: 0 40% 0 40%; background: rgba(0, 0, 0, .18); }
.belt--sm { width: 30px; height: 9px; }
.belt-chain { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.belt-step { display: grid; justify-items: center; gap: 6px; padding: 10px 2px; border-radius: 12px; opacity: .45; }
.belt-step small { font-size: 11px; font-weight: 700; color: var(--muted); }
.belt-step.is-done { opacity: 1; }
.belt-step.is-now { background: var(--accent-soft); }
.belt-step.is-now small { color: var(--ink); }

/* زبانه‌ها */
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-3); border-radius: 14px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; padding: 0 12px; }
.tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
/* گوشی باریک: زبانه‌های زیاد در عرض جا شوند (آیکون فقط روی زبانهٔ فعال) */
@media (max-width: 480px) {
  .tabs button { padding: 0 6px; font-size: 12.5px; min-width: 0; }
  .tabs button:not(.is-on) i { display: none; }
}

/* فرم */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input {
  width: 100%; min-height: var(--tap); padding: 0 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--surface); outline: none; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input--ltr { direction: ltr; text-align: left; letter-spacing: .5px; }
.input.is-bad { border-color: var(--danger); }
.field__err { font-size: 12.5px; color: var(--danger); font-weight: 700; }
.field__hint { font-size: 12px; color: var(--muted); }

/* حالت‌های خالی/خطا/بارگذاری */
.state { text-align: center; padding: 34px 20px; color: var(--muted); }
.state i { font-size: 40px; margin-bottom: 10px; display: block; opacity: .6; }
.state__title { font-weight: 900; color: var(--ink); font-size: 15.5px; margin: 0 0 4px; }
.state__desc { margin: 0 0 14px; font-size: 13.5px; }
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; border-radius: 12px; opacity: 0; animation: skel 1.3s ease infinite, appear .25s ease .35s forwards; }   /* skeletons only for loads slower than ~350ms */
@keyframes skel { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* برگهٔ پایین (Bottom Sheet) — روی دسکتاپ پنجرهٔ وسط */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(7, 12, 24, .45); backdrop-filter: blur(2px); }
.sheet {
  position: fixed; z-index: 61; inset-inline: 0; bottom: 0; max-height: 88dvh; overflow: auto;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-3);
  padding: 8px 18px calc(18px + var(--safe-b)); overscroll-behavior: contain;
}
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.sheet__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet__title { flex: 1; margin: 0; font-size: 17px; font-weight: 900; line-height: 1.6; }
.sheet__actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) {
  .sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(520px, 92vw); border-radius: 22px; max-height: 84dvh; padding: 18px 22px 22px; }
  .sheet__grip { display: none; }
  .sheet-enter-from, .sheet-leave-to { transform: translate(-50%, -46%) !important; }
}
.fade-enter-active, .fade-leave-active { transition: opacity .22s var(--ease); }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.sheet-enter-active, .sheet-leave-active { transition: transform .3s var(--ease), opacity .3s var(--ease); }
.sheet-enter-from, .sheet-leave-to { transform: translateY(100%); opacity: .6; }

/* اعلان کوتاه (Toast) */
.toasts { position: fixed; z-index: 80; inset-inline: 12px; top: calc(var(--safe-t) + 12px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: 480px; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: var(--shadow-3);
  font-size: 14px; font-weight: 700;
}
.toast--bad i { color: #ff8a8e; } .toast--ok i { color: var(--accent-2); }
.toast-enter-active, .toast-leave-active { transition: all .28s var(--ease); }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-14px); }

/* نوار پیشرفت بالای صفحه */
.topprogress { position: fixed; z-index: 90; inset-inline: 0; top: 0; height: 3px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.topprogress span { display: block; height: 100%; width: 0; margin-inline-start: auto; background: linear-gradient(270deg, var(--accent-2), var(--accent)); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 0 3px 3px 0; }
.topprogress.is-run { opacity: 1; }
.topprogress.is-run span { animation: tp-run 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.topprogress.is-done { opacity: 0; transition-delay: .15s; }
.topprogress.is-done span { width: 100%; transition: width .2s; }
@keyframes tp-run { from { width: 0; } 20% { width: 45%; } to { width: 88%; } }

/* ورود نرم اپ پس از بارگذاری اولیه
   ⚠️ فقط opacity — انیمیشن transform روی پوسته آن را «ظرف» position:fixed می‌کرد
      ⇒ منوی پایین به ته محتوا می‌چسبید، نه ته صفحه (نیاز به اسکرول) */
.shell, .auth { animation: app-in .35s var(--ease) both; }
@keyframes app-in { from { opacity: 0; } to { opacity: 1; } }

.offline { position: fixed; z-index: 70; inset-inline: 0; top: 0; padding: calc(var(--safe-t) + 6px) 12px 6px; background: var(--warn); color: #fff; text-align: center; font-size: 13px; font-weight: 700; }

/* ── ۵) صفحه‌ها ─────────────────────────────────────────────────── */
.page-enter-active { transition: opacity .2s var(--ease), transform .2s var(--ease); }
.page-enter-from { opacity: 0; transform: translateY(6px); }

/* ورود */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px calc(24px + var(--safe-b)); }
.auth__box { width: 100%; max-width: 420px; }
.auth__brand { text-align: center; margin-bottom: 22px; }
.auth__logo { width: 150px; height: auto; }
.auth__title { font-size: 22px; font-weight: 900; margin: 12px 0 2px; }
.auth__sub { color: var(--muted); margin: 0; font-size: 14px; }
.auth__card { padding: 20px; }
.auth__foot { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* «من» */
.me-head { display: flex; align-items: center; gap: 14px; padding: 18px; }
.me-head__name { font-weight: 900; font-size: 17px; margin: 0; }
.me-head__sub { color: var(--muted); font-size: 13px; margin: 0; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.role-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); }
.role-btn i { color: var(--muted); }
.role-btn.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.role-btn.is-on i { color: var(--accent); }

.msg-body { white-space: pre-wrap; line-height: 2; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /* Loading indicators are the one motion people still need: with them cut to .01ms the boot bar
     flickered at full speed or froze. Keep them, just calmer; decorative motion stays off. */
  .boot__bar span { animation-duration: 3.2s !important; }
  .skel { animation-duration: 2.4s !important; }
  .topprogress.is-run span { animation-duration: 8s !important; }
  .boot__logo { animation: none !important; }
}

/* messages: type + sender line, two-line preview, coloured type icon */
.ic--ok { background: var(--accent-soft); color: var(--accent); }
.ic--warn { background: var(--warn-soft); color: var(--warn); }
.ic--info { background: var(--info-soft); color: var(--info); }
.ic--bad { background: var(--danger-soft); color: var(--danger); }
.msg { align-items: flex-start; }
.msg__meta { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg__kind { font-weight: 700; color: var(--ink-2); }
.msg__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.msg__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* member documents: thumbnail grid with view + download */
.mdocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mdoc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mdoc.is-missing { border-style: dashed; }
.mdoc__thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 26px; }
.mdoc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mdoc__thumb--pdf { color: var(--danger); }
.mdoc__label { font-size: 13px; font-weight: 700; }
.mdoc__acts { display: flex; gap: 6px; }
.mdoc__acts a { flex: 1; min-height: 36px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.mdoc__none { font-size: 12px; color: var(--muted); }

/* send wizard: picked athlete row with style / weight / belt pickers */
.pick + .pick { border-top: 1px solid var(--line); }
.pick.is-on { background: var(--accent-soft); }
.pick__opts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 0 14px 12px; }
.pick__opts .input { min-height: 40px; padding: 0 10px; font-size: 13px; }

/* annual report: one row per month — name, income/expense bars, net */
.yrow { display: grid; grid-template-columns: 4.6em 1fr auto; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.yrow.is-empty { opacity: .55; }
.yrow__bars { display: grid; gap: 3px; }
.yrow__bars .bar { height: 6px; }
.yrow__net { min-width: 4.5em; text-align: end; white-space: nowrap; }
/* setup guide */
.guide-step.is-done .list__title { color: var(--muted); text-decoration: line-through; }
.guide-step__how { display: block; white-space: normal; }

/* family: one card per child */
.kid { display: block; padding: 14px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.kid__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kid__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.kid__stats small { display: block; font-size: 11.5px; color: var(--muted); }
.kid__stats b { font-size: 14px; }
.kid__warn { margin: 10px 0 0; font-size: 12.5px; color: var(--warn); }

/* ── Admin app shell ───────────────────────────────────────────── */
.ashell { min-height: 100dvh; }
.aside { display: none; }
.atop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.atop__title { margin: 0; font-size: 17px; font-weight: 900; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atop__tour { max-width: 46%; overflow-x: auto; overflow-y: hidden; white-space: nowrap;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.atop__tour::-webkit-scrollbar { display: none; }   /* long name: swipe sideways to read it */
.acontent { padding: 14px 16px 48px; max-width: 1100px; }
.aside__grp { font-size: 11.5px; font-weight: 800; color: var(--muted); margin: 16px 8px 6px; letter-spacing: .2px; }
.ahello h2 { margin: 2px 0 2px; font-size: 20px; font-weight: 900; }
.ahello p { margin: 0 0 14px; font-size: 13.5px; }
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.astat { display: flex; flex-direction: column; gap: 2px; padding: 14px; color: var(--ink); }
.astat i { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.astat b { font-size: 24px; font-weight: 900; line-height: 1.2; }
.astat span { font-size: 12.5px; color: var(--muted); }
.astat--warn { background: var(--warn-soft); border-color: transparent; }
.astat--warn i, .astat--warn b { color: var(--warn); }
.list__item.is-sel { background: var(--accent-soft); box-shadow: inset -4px 0 0 var(--accent); font-weight: 800; }
.list__item.is-sel .list__ic { background: var(--accent); color: #fff; }
.auth--admin { background: radial-gradient(900px 480px at 85% -10%, rgba(220, 60, 66, .14), transparent 60%), var(--bg); }
@media (min-width: 640px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .ashell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .amain { min-width: 0; }
  /* desktop: every chip visible (wrap) instead of a hidden side-scroll */
  .chips-row { flex-wrap: wrap; overflow-x: visible; }
  .aside { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 18px 12px 12px;
    background: var(--surface); border-inline-end: 1px solid var(--line); }
  .aside__brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 14px; font-weight: 900; }
  .aside__brand img { height: 38px; width: auto; }
  .aside__tour { display: block; margin: 0 6px 4px; }
  .aside__tour span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
  .aside__nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
  .aside__it { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
  .aside__it > i:first-child { width: 20px; text-align: center; color: var(--muted); }
  .aside__it:hover { background: var(--surface-2); }
  .aside__it.is-on, .aside__it.is-on:hover { background: var(--accent); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
  .aside__it.is-on > i:first-child, .aside__it.is-on .aside__old { color: #fff; opacity: 1; }
  .aside__it span { flex: 1; min-width: 0; }
  .aside__old { font-size: 10.5px; color: var(--muted); opacity: .55; }
  .aside__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
  .aside__me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
  .aside__me > div { flex: 1; min-width: 0; }
  .aside__me b, .aside__me small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .aside__me small { color: var(--muted); font-size: 12px; }
  .aside__out { border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 10px; cursor: pointer; }
  .aside__out:hover { background: var(--surface-2); color: var(--danger); }
  .atop__menu { display: none; }
  .acontent { padding: 20px 32px 56px; }
  .agrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* admin people sheets: header, documents, action rows */
.pp-head { display: flex; align-items: center; gap: 14px; margin: 2px 2px 14px; }
.pp-head b { display: block; font-size: 17px; margin-bottom: 6px; }
.pp-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 2px; }
.pp-docs .chip { height: 34px; padding: 0 12px; gap: 6px; }
.pp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-acts > * { flex: 1 1 140px; }
.pp-acts--minor { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pp-del { color: var(--danger); }

/* admin: tournament cards, settings forms, rings */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard { overflow: hidden; display: flex; flex-direction: column; }
.tcard.is-sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.tcard__media { position: relative; height: 128px; background: linear-gradient(135deg, #0b1220, #1d3f6f) center / cover no-repeat; }
.tcard__badges { position: absolute; inset: auto 10px 10px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tcard__badges .chip { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tcard__body { padding: 14px 16px 16px; }
.tcard__body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; line-height: 1.5; }
.tcard__body > p { margin: 0 0 12px; font-size: 12.5px; }
.tcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.tcard__stats span { background: var(--surface-2); border-radius: 12px; padding: 8px 4px; font-size: 11.5px; color: var(--muted); }
.tcard__stats b { display: block; font-size: 16px; color: var(--ink); }
.tcard__bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.tcard__bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sform { margin-bottom: 14px; }
.sform__h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15.5px; font-weight: 900; }
.sform__h i { color: var(--accent); }
.sform__h small { font-weight: 400; font-size: 12px; }
.sform__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 720px) { .sform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sform__check { display: flex; align-items: center; gap: 10px; margin: 6px 2px 14px; font-size: 14px; cursor: pointer; }
.sform__check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sform__media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.smedia { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.smedia__box { width: 100%; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2) center / cover no-repeat;
  display: grid; place-items: center; color: var(--muted); font-size: 12.5px; }
.smedia__box--poster { aspect-ratio: 3 / 4; }
.smedia__box--logo { aspect-ratio: 1; background-size: contain; background-origin: content-box; padding: 10px; }
.smed { padding: 12px 0; border-top: 1px solid var(--line); }
.smed:first-of-type { border-top: 0; }
.smed > b { display: block; margin-bottom: 8px; font-size: 14px; }
.smed__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.smed__chips .chip { gap: 6px; }
.smed__chips .chip button { border: 0; background: none; color: inherit; padding: 0 2px; cursor: pointer; }
.smed__add { display: flex; gap: 8px; }
.rcard.is-off { opacity: .65; }
.rcard__head { display: flex; align-items: center; gap: 12px; }
.rcard__head > div { flex: 1; min-width: 0; }
.rcard__head h3 { margin: 0; font-size: 16px; font-weight: 900; }
.rcard__no { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px;
  background: var(--accent-soft); color: var(--accent); flex: none; }
.rcard__fm { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 14px; }

/* admin toolbar: the action button first, so it sits on the right (start) in RTL; its note follows */
.atool { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.atool > p { margin: 0; font-size: 13px; flex: 1 1 160px; }
.atool > .btn { flex: none; }

/* admin categories: compact editable tables */
.ctitle { font-size: 14px; font-weight: 800; margin: 18px 2px 8px; }
.ctitle small { font-weight: 400; }
.ctab { display: flex; flex-direction: column; gap: 6px; }
.ctab__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 6px; align-items: center; font-size: 14px; }
.ctab__row--h { font-size: 12px; color: var(--muted); font-weight: 700; }
.ctab__row--style { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 36px; }
.ctab__row .input { min-height: 40px; padding: 0 10px; }
.crules { display: flex; flex-direction: column; gap: 8px; }
.crule { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.crule__head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 36px; gap: 6px; }
.crule__head .input { min-height: 40px; padding: 0 8px; }
.crule__title { font-size: 13.5px; }
.crule__w { display: flex; flex-wrap: wrap; gap: 6px; }
.crule__w .chip { direction: ltr; }

/* scrollbars: thin, rounded, theme-coloured; the track stays invisible until hovered */
:root { --sb: color-mix(in srgb, var(--muted) 38%, transparent); --sb-hover: color-mix(in srgb, var(--muted) 65%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--sb) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-hover); border-width: 2px; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
/* horizontal chip / tab rows keep the bar hidden but fade at the far edge, so "there is more" shows */
.chips-row { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px);
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding-inline-end: 24px; }
.chips-row > * { scroll-snap-align: start; }
@media (min-width: 960px) { .chips-row { -webkit-mask-image: none; mask-image: none; padding-inline-end: 0; } }
/* scrolling inside sheets and the admin side menu never drags the page behind */
.aside__nav, .sheet { overscroll-behavior: contain; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* admin registrations / competitors */
.rgroup { margin-bottom: 12px; }
.rgroup__head { display: flex; align-items: flex-start; gap: 10px; }
.rgroup__head > div { flex: 1; min-width: 0; }
.rgroup__head h3 { margin: 0 0 2px; font-size: 16px; font-weight: 900; }
.rgroup__pay { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.rgroup__pay i { color: var(--muted); margin-inline-end: 4px; }
.rgroup__pay a { color: var(--info); font-weight: 700; }
.rgroup .list__item .btn { flex: none; }
.rdirect { flex-wrap: wrap; }
.rdirect__acts { display: flex; gap: 6px; align-items: center; }
.cfilt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .cfilt { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cfilt .input { min-height: 42px; }

/* weigh-in desk */
.wi__w { flex: none; min-width: 52px; height: 34px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); font-weight: 900; font-size: 13.5px; direction: ltr; }
.wi__class { font-size: 14px; color: var(--muted); margin: 0 2px 10px; }
.wi__class b { color: var(--ink); font-size: 18px; margin-inline-start: 6px; }
.wi__input { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 18px; padding: 6px 16px; background: var(--surface); }
.wi__input:focus-within { border-color: var(--accent); }
.wi__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 900 40px/1.2 inherit; text-align: center; direction: ltr; color: var(--ink); }
.wi__input span { color: var(--muted); font-size: 14px; }
.wi__verdict { margin-top: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; }
.wi__verdict.is-ok { background: var(--accent-soft); color: var(--accent); }
.wi__verdict.is-bad { background: var(--danger-soft); color: var(--danger); }

/* admin brackets: tree view (rounds as columns, scrolls sideways) and the draw editor */
.bk { display: flex; gap: 14px; overflow-x: auto; padding: 12px 2px 6px; margin-top: 12px; }
.bk__col { flex: none; width: 168px; display: flex; flex-direction: column; }
.bk__title { font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; margin-bottom: 8px; }
.bk__cards { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 2px; }
.bk__card { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12.5px; background: var(--surface-2);
  border-inline-start: 4px solid var(--line); border-radius: 8px; min-height: 30px; }
.bk__card.is-red { border-inline-start-color: #dc3c42; } .bk__card.is-blue { border-inline-start-color: #2563eb; }
.bk__card.is-pair-end { margin-bottom: 10px; }
.bk__card.is-win { background: var(--accent-soft); font-weight: 700; }
.bk__card.is-empty { opacity: .55; }
.bk__card.is-champ { justify-content: center; font-weight: 900; background: #fff4dd; color: #8a5a00; border-inline-start-color: #e8be5c; }
.bk__n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk__s { font-weight: 900; }
.draw { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.draw__m { display: flex; align-items: stretch; gap: 6px; }
.draw__no { flex: none; width: 26px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.draw__slot { flex: 1; min-width: 0; text-align: start; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 2px solid transparent; border-inline-start: 5px solid var(--line); font: inherit; color: inherit; }
.draw__slot.is-red { border-inline-start-color: #dc3c42; } .draw__slot.is-blue { border-inline-start-color: #2563eb; }
.draw__slot.is-pick { border-color: var(--accent); background: var(--accent-soft); }
.draw__slot.is-empty b { color: var(--muted); font-weight: 400; }
.draw__slot b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draw__slot small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* admin schedule */
.shero { margin-bottom: 12px; }
.shero__main { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.shero__main small { display: block; font-size: 12px; color: var(--muted); }
.shero__main b { font-size: 24px; font-weight: 900; }
.sring { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; align-items: center; padding: 6px 0; }
.sring b { font-size: 14px; }
.sring__bar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.sring__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.sring small { grid-column: 2; color: var(--muted); font-size: 12px; }
.splan__t { flex: none; width: 48px; font-weight: 900; font-size: 15px; }
.splan__r { flex: none; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.splan__r small { color: var(--muted); font-weight: 400; }

/* admin results / medals */
.mres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .mres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mres__c { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.mres__meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.mres__meta span { margin-inline-start: auto; }
.mres__p { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px;
  padding: 6px 10px; border-radius: 10px; border-inline-start: 4px solid var(--line); background: var(--surface-2); }
.mres__p.is-red { border-inline-start-color: #dc3c42; } .mres__p.is-blue { border-inline-start-color: #2563eb; }
.mres__p b { font-size: 14.5px; } .mres__p small { grid-row: 2; color: var(--muted); font-size: 12px; }
.mres__p em { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-weight: 900; font-size: 18px; }
.mres__p.is-win { background: var(--accent-soft); } .mres__p.is-win b::after { content: " 🏆"; }
.mres__p.is-lose { opacity: .65; }
.mres__how { font-size: 12px; color: var(--accent); font-weight: 700; }
.mwin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mwin__b { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  text-align: start; font: inherit; color: inherit; cursor: pointer; border-inline-start-width: 6px; }
.mwin__b.is-red { border-inline-start-color: #dc3c42; } .mwin__b.is-blue { border-inline-start-color: #2563eb; }
.mwin__b.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mwin__b small { color: var(--muted); font-size: 12px; }
.medal--g i, .medal--g.mtab__m { color: #b7860b; } .medal--s i, .medal--s.mtab__m { color: #7b8794; } .medal--b i, .medal--b.mtab__m { color: #a0522d; }
.mtab__rank { flex: none; width: 28px; text-align: center; font-weight: 900; color: var(--muted); }
.mtab__m { flex: none; width: 30px; text-align: center; font-weight: 900; }
.mpod { margin-bottom: 10px; }
.mpod__t { display: block; margin-bottom: 8px; font-size: 14px; }
.mpod__r { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }

/* admin match-day hub */
.lcode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 12px; }
.lcode > div:first-child { flex: 1 1 220px; }
.lcode small { display: block; color: var(--muted); font-size: 12.5px; }
.lcode b { font-size: 34px; font-weight: 900; letter-spacing: 4px; }
.lcode p { margin: 4px 0 0; font-size: 12.5px; }
.lcode__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lscreens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .lscreens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lscr { display: flex; flex-direction: column; gap: 2px; padding: 14px; color: var(--ink); }
.lscr i { color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.lscr b { font-size: 14px; } .lscr small { color: var(--muted); font-size: 12px; }
.lring { display: flex; flex-direction: column; gap: 6px; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.lring__h { display: flex; align-items: center; justify-content: space-between; }
.lring__h b { font-size: 16px; }
.lring__p { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border-inline-start: 4px solid; }
.lring__p.is-red { border-inline-start-color: #dc3c42; } .lring__p.is-blue { border-inline-start-color: #2563eb; }
.lring__p span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.lring__p b { font-size: 20px; font-weight: 900; }

/* admin news */
.nlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .nlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nitem { display: flex; overflow: hidden; }
.nitem__cover { flex: none; width: 96px; background: linear-gradient(135deg, #0b1220, #1d3f6f) center / cover no-repeat; }
.nitem__body { flex: 1; min-width: 0; padding: 12px 14px; }
.nitem__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.nitem h3 { margin: 0 0 2px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.nitem p { margin: 0 0 8px; font-size: 12.5px; }
.nitem__acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ntool { display: flex; gap: 4px; margin-bottom: 6px; }
.ntool button, .ntool label { width: 38px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; }
.nbody { min-height: 260px; line-height: 1.9; font-size: 14.5px; }
.nprev { line-height: 2; font-size: 14.5px; overflow-wrap: anywhere; }
.nprev img { max-width: 100%; border-radius: 10px; }
/* admin reports: kinds, table, print only the report */
.rkinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .rkinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rkind { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: start; }
.rkind i { color: var(--muted); }
.rkind.is-on { border-color: var(--accent); background: var(--accent-soft); } .rkind.is-on i { color: var(--accent); }
.rprint__h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 4px 2px 10px; }
.rprint__h b { font-size: 17px; } .rprint__h span { color: var(--muted); font-size: 13px; }
.rtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th, .rtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.rtable th { background: var(--surface-2); font-weight: 800; position: sticky; top: 0; }
.rtable tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
@media print {
  .aside, .atop, .no-print, .toast-host, .bnav { display: none !important; }
  .ashell { display: block !important; } .acontent { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; }
  .rtable-wrap { overflow: visible; border: 0; } .rtable th, .rtable td { white-space: normal; font-size: 11px; padding: 5px 6px; }
  .rtable th { position: static; }
}

/* club: style / weight / belt chosen for an athlete's pending entry */
.pick3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.pick3 .field { margin: 0; }

/* admin menu: cascading groups (header folds its items) */
.aside__grp--btn { display: flex; align-items: center; gap: 8px; width: calc(100% - 8px); margin: 6px 4px 2px; padding: 9px 8px; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; text-align: start; }
.aside__grp--btn:hover { background: var(--surface-2); color: var(--ink); }
.aside__grp--btn > span { flex: 1; }
.aside__grp--btn.has-on { color: var(--accent); }
.aside__caret { font-size: 10px; transition: transform .2s var(--ease, ease); }
.aside__grp--btn.is-open .aside__caret { transform: rotate(180deg); }
.aside__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ease, ease); }
.aside__fold > div { overflow: hidden; min-height: 0; }
.aside__fold.is-open { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .aside__fold, .aside__caret { transition: none; } }

/* password field with show / hide */
.pwin { position: relative; }
.pwin .input { padding-left: 46px; }
.pwin__eye { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.pwin__eye:hover { color: var(--ink); background: var(--surface-2); }

/* registrations: entry details */
.rlink { background: none; border: 0; padding: 0; text-align: start; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.rlink:hover .list__title { color: var(--accent); }
.rdet__top { display: flex; align-items: center; gap: 14px; }
.rdet__top b { font-size: 17px; }
.rdet__photo { width: 76px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.rdet__photo img { width: 100%; height: 100%; object-fit: cover; }
.rdet__photo--none i { font-size: 30px; color: var(--muted); }

.pp-ups { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }

/* club money guide (templates/club_guide_body.html): folding sections */
.gd { font-size: 14px; line-height: 2; }
.gd-note { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--info-soft, var(--surface-2)); margin-bottom: 10px; }
.gd-sec { border-top: 1px solid var(--line); }
.gd-sec:first-of-type { border-top: 0; }
.gd-head { display: flex; align-items: center; gap: 10px; padding: 12px 2px; font-weight: 800; cursor: pointer; user-select: none; }
.gd-head .gd-arrow { margin-inline-start: auto; font-size: 12px; color: var(--muted); transition: transform .2s; }
.gd-sec.open .gd-arrow { transform: rotate(180deg); }
.gd-body { display: none; padding: 0 2px 14px; color: var(--ink-2); }
.gd-sec.open .gd-body { display: block; }
.gd-steps, .gd-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.gd-tip { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }

/* Reports: sortable headers */
.rsort button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: inherit; }
.rsort button i { font-size: 11px; opacity: .55; }
.rsort[aria-sort="ascending"] button i, .rsort[aria-sort="descending"] button i { opacity: 1; color: var(--brand, #2563eb); }

/* Schedule settings: running-order rows (number · style · stage · up · down · remove) */
.prio-row { display: grid; grid-template-columns: auto 1fr 1fr auto auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.prio-row .input { min-width: 0; }
@media (max-width: 520px) { .prio-row { grid-template-columns: auto 1fr auto auto auto; } .prio-row select:nth-of-type(2) { grid-column: 2 / -1; grid-row: 2; } }

/* Officials: referees' requests to judge the tournament */
.rreq { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.rreq:first-of-type { border-top: 0; }
.rreq__ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--soft, #eef1f6); }
.rreq__body { flex: 1; min-width: 0; }
.rreq__docs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.rreq__acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.rreq__rej { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rreq__rej .input { flex: 1; min-width: 160px; }

/* Schedule: running order card */
.sorder { margin: 12px 0; }
.sorder__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* light/dark logo pairs (.th-l / .th-d) and the theme button icons — follow <html data-theme>
   set by static/theme.js, else the device setting */
@media not (prefers-color-scheme: dark) { :root:not([data-theme="dark"]) .th-d { display: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .th-l { display: none !important; } }
:root[data-theme="light"] .th-d, :root[data-theme="dark"] .th-l { display: none !important; }
[data-theme-toggle] .tt-i { display: none; }
:root:not([data-theme-mode]) [data-theme-toggle] .tt-auto,
:root[data-theme-mode="auto"] [data-theme-toggle] .tt-auto,
:root[data-theme-mode="light"] [data-theme-toggle] .tt-light,
:root[data-theme-mode="dark"] [data-theme-toggle] .tt-dark { display: inline-block; }

/* schedule planner rows */
.pblock { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); }
.pblock__top { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px; align-items: center; }
.pblock__top .pblock__at, .pblock__top .pblock__day { grid-column: auto; }
.pblock__no { min-width: 22px; text-align: center; }
.pblock__bot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.pblock__bot .chip { font-size: 12px; }
.pblock__n { font-size: 12px; color: var(--muted); margin-inline-start: auto; }
.pblock__n.is-empty { color: var(--warn); }
.pblock__acts { display: inline-flex; gap: 4px; align-items: center; }
@media (min-width: 720px) { .pblock__top { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) 110px 110px minmax(0, 1fr); } }
.pblock__top .pblock__fld { grid-column: auto; }
.pblock__excl { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pblock__excl input { width: 16px; height: 16px; }
/* schedule: the three steps */
.ssteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.sstep { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: inherit; font: inherit; text-align: start; cursor: pointer; min-width: 0; }
.sstep:hover { border-color: var(--ink); }
.sstep__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(127,127,127,.15); }
.sstep.is-done .sstep__n { background: #16a34a; color: #fff; }
.sstep__b { display: flex; flex-direction: column; min-width: 0; }
.sstep__b b { font-size: 13.5px; }
.sstep__b small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .ssteps { grid-template-columns: 1fr; } }
/* schedule: collapsible sections */
.sacc { margin-bottom: 12px; padding: 0; overflow: hidden; }
.sacc__h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: start; }
.sacc__h:hover { background: rgba(127,127,127,.06); }
.sacc__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(127,127,127,.12); flex: none; }
.sacc__t { font-weight: 900; font-size: 15px; white-space: nowrap; }
.sacc__s { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sacc__dirty { color: var(--warn); }
.sacc__chev { transition: transform .2s; color: var(--muted); flex: none; }
.sacc.is-open .sacc__chev { transform: rotate(180deg); }
.sacc__b { padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sacc__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sacc__help { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
/* discipline kinds: tatami / ring / forms */
.skinds { display: flex; gap: 6px; margin: 0 0 10px; font-size: 11.5px; }
.skinds span { padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); }
.skinds .k-tatami, .pblock.k-tatami { border-inline-start: 4px solid #0d9488; }
.skinds .k-ring, .pblock.k-ring { border-inline-start: 4px solid #dc2626; }
.skinds .k-forms, .pblock.k-forms { border-inline-start: 4px solid #d97706; }
.pblock.k-all { border-inline-start: 4px solid var(--line); }
.pblock__fld.is-bad { border-color: #dc2626; }
.pblock__bad { margin: 6px 0 0; font-size: 12.5px; color: #dc2626; font-weight: 700; }
.sfgrid__k { display: block; font-size: 10.5px; font-weight: 700; }
.sfgrid__k.k-tatami { color: #0d9488; } .sfgrid__k.k-ring { color: #dc2626; }
.sload__bar.k-tatami span { background: #0d9488; } .sload__bar.k-ring span { background: #dc2626; }
.splan__d { display: block; font-size: 10.5px; color: var(--muted); }
/* schedule: unsaved changes */
.sdirty { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--warn); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.sdirty__t { flex: 1; min-width: 180px; font-weight: 800; font-size: 13.5px; color: var(--warn); }
/* schedule: load of each field, day by day */
.sload { margin-bottom: 10px; }
.sload__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sload__h span { font-size: 13px; color: var(--muted); }
.sload__r { display: grid; grid-template-columns: minmax(70px, 110px) 1fr; gap: 4px 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); }
.sload__r small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.sload__r small b { color: var(--ink); }
.sload__bar { position: relative; height: 10px; border-radius: 99px; background: rgba(127,127,127,.15); }
.sload__bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--ink); }
/* schedule: fields × days grid */
.sfgrid__wrap { overflow-x: auto; }
.sfgrid__t { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 420px; }
.sfgrid__t th { font-size: 12.5px; color: var(--muted); font-weight: 700; text-align: center; white-space: nowrap; }
.sfgrid__t tbody th { text-align: start; }
.sfcell { width: 100%; min-height: 64px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; justify-content: center;
  padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.sfcell:hover { border-color: var(--ink); }
.sfcell.is-off { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 6px, rgba(127,127,127,.12) 6px, rgba(127,127,127,.12) 12px);
  color: var(--muted); align-items: center; font-weight: 700; }
.sfcell.is-excl { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.sfcell__tag { font-size: 11px; font-weight: 800; color: var(--warn); }
.sfcell__pin { font-size: 11.5px; font-weight: 700; background: var(--ink); color: var(--surface); border-radius: 6px; padding: 0 6px; }
.sfcell__st { font-size: 12.5px; font-weight: 700; }
.sfcell small { font-size: 11.5px; color: var(--muted); }
.pblock__bot .chip { cursor: pointer; }
.pblock__bot .chip--on, .splanner .chips-row .chip--on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* schedule settings: bout slot from the console rules */
.sdur{display:grid;gap:6px;margin-bottom:12px}.sdur__r{border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:8px 10px}
.sdur__h{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.sdur__f{margin-top:4px;font-size:13px;color:var(--muted,#64748b)}
.sdur__f i{font-style:normal;opacity:.7}.sdur__t{color:var(--ink,#0f172a);margin-inline-start:6px}
/* entry cards: this tournament's people */
.acc-ppl{margin:12px 0}.acc-ppl__hd{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.acc-ppl__g{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.acc-ppl__c{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.acc-ppl__t{display:flex;justify-content:space-between;align-items:baseline}
.acc-ppl__bar{height:7px;border-radius:99px;background:var(--line,#e5e7eb);overflow:hidden}.acc-ppl__bar i{display:block;height:100%;background:var(--brand,#16a34a)}
.acc-ppl__a{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
/* reports: filters of the club medal table · the winner's cell */
.rfilt{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:end;margin-bottom:10px}
.rfilt label{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--muted);font-weight:700}
.rfilt .input{min-width:150px}
.rtable td.rwin{font-weight:900;color:#15803d}
/* medals: club table with sortable headings */
.mtbl th button{all:unset;cursor:pointer;display:inline-flex;gap:5px;align-items:center;font-weight:800}
.mtbl td.num,.mtbl th.num{text-align:center}
.mtbl .medal--g{color:#b7860b}.mtbl .medal--s{color:#7b8794}.mtbl .medal--b{color:#a0522d}
/* entry card: optional photo in single issue */
.acc-ph__row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.acc-ph__box{width:64px;height:80px;border-radius:10px;border:1px dashed var(--line);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface-2);color:var(--muted);font-size:24px}
.acc-ph__box img{width:100%;height:100%;object-fit:cover}
/* tournament settings: start · end of every day */
.dhours{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:6px 0 12px;display:grid;gap:8px}
.dhours__hd{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.dhours__hd label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);font-weight:700}
.dhours__hd .input{width:70px}
.dhours__t{display:grid;gap:6px}
.dhours__r{display:grid;grid-template-columns:70px 110px 110px 1fr;gap:8px;align-items:center}
.dhours__r--h{font-size:12px;color:var(--muted);font-weight:800}
.dhours__r .input{padding-block:6px}
/* «مدارک و تأیید» card (club owner · coach · referee homes) */
.mydocs{margin-bottom:14px;display:grid;gap:10px;border-inline-start:4px solid var(--warn,#b45309)}
.mydocs--ok{border-inline-start-color:var(--ok,#15803d)}.mydocs--rejected,.mydocs--inactive{border-inline-start-color:var(--danger,#dc2626)}
.mydocs__hd{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.mydocs__tg{margin-inline-start:auto}
.mydocs__p{margin:0;font-size:13px}
.mydocs__list{display:grid;gap:8px}
.mydocs__why{margin:0}.mydocs__why p{margin:4px 0 0;font-size:12.5px}
.mydocs__more{font-size:13px;justify-self:start}
/* admin: each document — view + download */
.pp-doc{display:inline-flex;align-items:center;gap:2px;margin:0 0 6px 6px}
