/* x-theme.css — theme layer extracted verbatim from the original inline
   <style> block of index.html (skin variables, component styles, RTL
   overrides). The new design layer lives in design.css, loaded after
   this file. Skins: peak (default), night, nature, sport. */
      :root { --sans: Vazirmatn, Tahoma, sans-serif; }
      /* Themes: only variables change */
      body {
        color-scheme: light;
        --fill-primary-on: #fff; --text-primary: #111; --text-secondary: #575757;
        --fill-primary: #111; --text-primary-on: #fff; --fill-tertiary: #f2f2f2;
        --stroke-primary: #0000002a; --stroke-secondary: #00000014; --text-tertiary: #0000004d;
        --mat-agent: #ffffffee;
        --acc: #0B7A3B; --acc2: #D7192A; --on-acc: #fff;
        --r-s: 0.125rem; --r-m: 0.25rem; --r-l: 0.375rem; --r-xl: 0.5rem; --x-btn-r: 0.125rem;
        --x-hw: 700; --x-skew: 0deg; --x-hbg: transparent; --x-hfg: var(--text-primary); --x-hpad: 0;
        --hark-shadow: 0 1px 2px #0000001a, 0 4px 16px #00000010;
        --x-glass: none; --x-bg: none;
      }
      body[data-skin="night"] {
        color-scheme: dark;
        --fill-primary-on: #0E1116; --text-primary: #fff; --text-secondary: #a8b0bb;
        --fill-primary: #fff; --text-primary-on: #0E1116; --fill-tertiary: #ffffff0f;
        --stroke-primary: #ffffff2e; --stroke-secondary: #ffffff17; --text-tertiary: #ffffff59;
        --mat-agent: #161b23ee;
        --acc: #1FA55A; --acc2: #ff5a66; --on-acc: #fff;
        --r-s: 0.75rem; --r-m: 1.125rem; --r-l: 1.5rem; --r-xl: 1.75rem; --x-btn-r: 0.75rem;
        --x-hw: 600; --hark-shadow: 0 10px 40px #00000080;
        --x-glass: blur(14px) saturate(1.4);
        --x-bg: radial-gradient(circle at 85% 0%, #0B7A3B33, transparent 45%), radial-gradient(circle at 10% 60%, #1d4ed822, transparent 40%);
      }
      body[data-skin="nature"] {
        --fill-primary-on: #F3EDE2; --text-primary: #2a2a20; --text-secondary: #625b4d;
        --fill-primary: #1F4D2B; --text-primary-on: #F3EDE2; --fill-tertiary: #E9E0CF;
        --stroke-primary: #2a2a2030; --stroke-secondary: #2a2a2018; --mat-agent: #F3EDE2ee;
        --acc: #1F5E35; --acc2: #C2603A; --on-acc: #fff;
        --r-s: 1rem; --r-m: 1.75rem; --r-l: 2rem; --r-xl: 2.5rem; --x-btn-r: 6.25rem;
        --x-hw: 600; --hark-shadow: 0 6px 24px #5a3f1f1f;
      }
      body[data-skin="sport"] {
        --fill-primary-on: #fff; --text-primary: #000; --text-secondary: #4a4a4a;
        --fill-primary: #000; --text-primary-on: #fff; --fill-tertiary: #f0f0f0;
        --acc: #D7192A; --acc2: #000; --on-acc: #fff;
        --r-s: 0; --r-m: 0; --r-l: 0; --r-xl: 0; --x-btn-r: 0;
        --x-hw: 900; --x-skew: -10deg; --x-hbg: #000; --x-hfg: #fff; --x-hpad: 0.375rem 1rem;
        --hark-shadow: 6px 6px 0 #000;
      }
      body { background-image: var(--x-bg); background-attachment: fixed; transition: background-color .3s, color .3s; }
      #top :is(h1, h2, h3) { font-weight: var(--x-hw); }
      #top .head h2 { justify-self: start; transform: skewX(var(--x-skew)); background: var(--x-hbg); color: var(--x-hfg); padding: var(--x-hpad); }
      #top .cards > div { backdrop-filter: var(--x-glass); -webkit-backdrop-filter: var(--x-glass); }
      body[data-skin="night"] #top .cards > div { border: 1px solid var(--stroke-secondary); }
      /* RTL alignment for the library's physical sides */
      [dir="rtl"] :is(th, td, caption) { text-align: right; }
      [dir="rtl"] .head__sub { text-align: left; }
      [dir="rtl"] .stat { border-left: 0; border-right: 1px solid var(--stroke-secondary); }
      [dir="rtl"] .stat:first-child { border-right: 0; padding-right: 0; padding-left: 1.5rem; }
      [dir="rtl"] .timeline__what ul { padding: 0 1.125rem 0 0; }
      @media (max-width: 760px) { [dir="rtl"] .stat { border-right: 0; } }
      @media (max-width: 599px) { [dir="rtl"] .stat:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 1rem; border-right: 1px solid var(--stroke-secondary); } }
      @media (max-width: 899px) { [dir="rtl"] .timeline__what, [dir="rtl"] .timeline > li > p:last-child { padding-left: 0; padding-right: 1.25rem; } }
      .x-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

      .x-banner { background: var(--acc2); color: #fff; text-align: center; font: var(--type-caption); padding: 0.375rem var(--gutter); }
      .x-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--fill-primary-on) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--stroke-secondary); }
      .x-nav__in { max-width: var(--page-max); margin: 0 auto; padding: 0.5rem var(--gutter); display: flex; align-items: center; gap: 0.75rem; }
      .x-brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; flex: none; font: var(--type-label); }
      .x-brand b { font-weight: var(--x-hw); }
      .x-tile { flex: none; display: grid; place-items: center; background: #fff; border-radius: var(--r-s); padding: 0.25rem; box-shadow: 0 0 0 1px #0000001a; }
      .x-tile img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
      .x-links { display: flex; gap: 0.125rem; overflow-x: auto; scrollbar-width: none; margin-inline-start: auto; }
      .x-links a { flex: none; display: flex; align-items: center; min-height: var(--tap); padding: 0 0.75rem; border-radius: var(--x-btn-r); font: var(--type-label); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
      .x-links a:hover { color: var(--text-primary); }
      .x-links a[aria-current="true"] { color: var(--acc); box-shadow: inset 0 -2px var(--acc); }
      @media (max-width: 699px) { .x-brand span { display: none; } }

      .x-cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: var(--tap); padding: 0 1.125rem; border: 0; border-radius: var(--x-btn-r); background: var(--acc); color: var(--on-acc); font: var(--type-body-strong); font-weight: var(--x-hw); text-decoration: none; cursor: pointer; transition: filter var(--dur-quick); }
      .x-cta:hover { filter: brightness(1.1); }
      .x-cta:disabled { background: var(--fill-tertiary); color: var(--text-secondary); cursor: not-allowed; }
      .x-cta--red { background: var(--acc2); }
      .x-ghost { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border-radius: var(--x-btn-r); border: 1px solid var(--stroke-primary); background: var(--fill-primary-on); color: var(--text-primary); font: var(--type-label); text-decoration: none; cursor: pointer; }
      .hero .x-ghost { background: var(--hero-surface); color: var(--hero-text); border-color: var(--hero-glass-stroke); }
      .hero .x-tile { justify-self: start; }
      .hero .x-tile img { width: 3.5rem; height: 3.5rem; }

      .x-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
      .x-filter { min-height: var(--tap); padding: 0 1rem; border-radius: var(--x-btn-r); border: 1px solid var(--stroke-primary); background: none; color: var(--text-primary); font: var(--type-label); cursor: pointer; }
      .x-filter[aria-pressed="true"] { background: var(--fill-primary); color: var(--text-primary-on); border-color: var(--fill-primary); }
      .x-prog { display: flex; flex-direction: column; gap: 0.625rem; }
      .x-prog h3 { margin: 0 !important; }
      .x-prog ul { flex: 1; }
      .x-price { font: var(--type-heading); color: var(--acc); font-weight: var(--x-hw); }
      .pill--acc { background: var(--acc); color: var(--on-acc); }

      .x-panel { padding: clamp(1.125rem, 3vw, 1.75rem); border-radius: var(--r-l); background: var(--fill-tertiary); border: 1px solid var(--stroke-secondary); backdrop-filter: var(--x-glass); -webkit-backdrop-filter: var(--x-glass); }
      .x-bar { height: 0.375rem; border-radius: var(--r-pill); background: var(--stroke-secondary); overflow: hidden; }
      .x-bar i { display: block; height: 100%; width: 33%; background: var(--acc); transition: width .4s var(--ease-out); }
      .x-steps { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0.625rem 0 1.25rem; font: var(--type-tag); color: var(--text-secondary); }
      .x-steps .on { color: var(--acc); }
      .x-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.875rem 1rem; }
      .x-field { display: grid; gap: 0.375rem; font: var(--type-label); }
      .x-field.wide { grid-column: 1 / -1; }
      .x-field input, .x-field select, .x-field textarea { font: var(--type-body); color: var(--text-primary); background: var(--fill-primary-on); border: 1px solid var(--stroke-primary); border-radius: var(--r-s); min-height: var(--tap); padding: 0.5rem 0.75rem; width: 100%; }
      .x-field textarea { min-height: 5.625rem; resize: vertical; }
      .x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
      .x-field.bad input { border-color: var(--acc2); }
      .x-err { min-height: 1.3em; font: var(--type-caption); color: var(--acc2); }
      .x-nav-row { display: flex; justify-content: space-between; gap: 0.625rem; margin-top: 1.25rem; flex-wrap: wrap; }
      .x-drops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.75rem; }
      .x-drop { position: relative; display: grid; place-items: center; gap: 0.375rem; min-height: 9.375rem; padding: 1rem; text-align: center; border: 1.5px dashed var(--stroke-primary); border-radius: var(--r-m); background: var(--fill-primary-on); cursor: pointer; font: var(--type-small); }
      .x-drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--fill-primary-on)); }
      .x-drop.has { border-style: solid; border-color: var(--acc); }
      .x-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
      .x-drop b { font-weight: var(--x-hw); }
      .x-drop small { color: var(--text-secondary); overflow-wrap: anywhere; }
      .x-drop .x-thumb { width: 4rem; height: 4rem; object-fit: cover; border-radius: var(--r-s); }
      .x-drop .x-file { font: var(--type-tag); padding: 1.125rem 0.625rem; border-radius: var(--r-s); background: var(--fill-tertiary); }
      .x-rm { position: relative; z-index: 2; min-height: 2rem; padding: 0 0.75rem; border: 1px solid var(--acc2); color: var(--acc2); background: none; border-radius: var(--x-btn-r); font: var(--type-tag); cursor: pointer; }
      .x-check { display: flex; gap: 0.625rem; align-items: center; min-height: var(--tap); font: var(--type-body); }
      .x-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--acc); }
      .x-mail { margin-top: 1.25rem; border: 1px solid var(--stroke-primary); border-radius: var(--r-m); background: var(--fill-primary-on); overflow: hidden; max-width: 35rem; }
      .x-mail header { padding: 0.75rem 1rem; background: var(--fill-tertiary); font: var(--type-caption); color: var(--text-secondary); display: grid; gap: 0.125rem; }
      .x-mail div { padding: 1rem; display: grid; gap: 0.5rem; }
      .timeline > li.x-done .timeline__when::before { background: var(--acc); box-shadow: none; }
      .timeline > li.x-wait { opacity: .45; }

      .x-athlete { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }
      .x-av { flex: none; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--acc); color: var(--on-acc); font: var(--type-heading); font-weight: var(--x-hw); }
      .x-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
      .x-charts svg { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; }
      .x-charts text { fill: var(--text-secondary); font: 0.75rem var(--sans); }
      .x-cap { font: var(--type-label); margin-bottom: 0.5rem; }
      .x-cap small { display: block; color: var(--text-secondary); font: var(--type-caption); }
      .x-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.375rem 1.5rem; }
      .x-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 0.625rem; font: var(--type-label); min-height: var(--tap); }
      .x-slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--acc); min-height: 1.75rem; }
      .x-slider output { color: var(--acc); font-weight: var(--x-hw); }
      .ok { color: var(--acc); font-weight: var(--weight-bold); }
      .no { color: var(--acc2); font-weight: var(--weight-bold); }

      .x-coach { display: flex; gap: 0.875rem; align-items: center; }
      .x-coach h3 { margin: 0 !important; }

      .x-modal { width: min(28.75rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--stroke-primary); border-radius: var(--r-l); background: var(--fill-primary-on); color: var(--text-primary); box-shadow: var(--hark-shadow); }
      .x-modal::backdrop { background: #0009; backdrop-filter: blur(4px); }
      .x-modal__in { padding: 1.375rem; display: grid; gap: 0.875rem; }
      .x-modal__top { display: flex; justify-content: space-between; align-items: start; gap: 0.625rem; }
      .x-x { width: var(--tap); height: var(--tap); flex: none; border: 0; background: var(--fill-tertiary); color: var(--text-primary); border-radius: var(--x-btn-r); font-size: 1.25rem; cursor: pointer; }
      .x-row { display: flex; gap: 0.5rem; align-items: end; }
      .x-row .x-field { flex: 1; }
      .x-gws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
      .x-gws .x-filter { padding: 0 0.375rem; }
      .x-center { text-align: center; display: grid; gap: 0.75rem; justify-items: center; padding: 1.125rem 0; }
      .x-spin { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid var(--stroke-primary); border-top-color: var(--acc); animation: x-spin .8s linear infinite; }
      @keyframes x-spin { to { transform: rotate(360deg); } }
      .x-okmark { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font-size: 1.75rem; }
      .x-track { font: var(--type-heading); letter-spacing: 1px; }
      .x-toast { position: fixed; bottom: 5rem; left: 50%; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 0.75rem 1.125rem; border-radius: var(--x-btn-r); background: var(--fill-primary); color: var(--text-primary-on); font: var(--type-label); box-shadow: var(--hark-shadow); transition: .3s var(--ease-out); max-width: calc(100% - 2rem); }
      .x-toast.on { opacity: 1; transform: translate(-50%, 0); }

      .x-skins { position: fixed; left: 1rem; bottom: 1rem; z-index: 50; }
      .x-skins > button { min-height: var(--tap); padding: 0 1.125rem; border: 0; border-radius: var(--r-pill); background: var(--fill-primary); color: var(--text-primary-on); font: var(--type-label); box-shadow: var(--hark-shadow); cursor: pointer; display: flex; gap: 0.5rem; align-items: center; }
      .x-skins > button::before { content: ""; width: 0.875rem; height: 0.875rem; border-radius: 50%; background: conic-gradient(var(--acc) 0 50%, var(--acc2) 0); }
      .x-skins__menu { position: absolute; bottom: calc(100% + 0.5rem); left: 0; width: 12.5rem; padding: 0.375rem; display: grid; gap: 0.125rem; border-radius: var(--r-m); background: var(--mat-agent); border: 1px solid var(--stroke-primary); box-shadow: var(--hark-shadow); backdrop-filter: blur(20px); }
      .x-skins__menu[hidden] { display: none; }
      .x-skins__menu button { display: flex; align-items: center; gap: 0.625rem; min-height: var(--tap); padding: 0 0.625rem; border: 0; border-radius: var(--r-s); background: none; color: var(--text-primary); font: var(--type-label); text-align: right; cursor: pointer; }
      .x-skins__menu button:hover, .x-skins__menu button[aria-pressed="true"] { background: var(--fill-tertiary); }
      .x-skins__menu i { width: 1.375rem; height: 1.375rem; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px #0002; }
      .x-foot { display: flex; align-items: center; gap: 0.75rem; }
      .x-toast[popover] { inset: auto auto 5rem 50%; margin: 0; border: 0; overflow: visible; }
      .x-toast--bad { background: var(--acc2); color: #fff; }

      /* ---------- Mobile app shell (under 768px) ---------- */
      .x-appbar, .x-tabbar, .x-dash, .x-greet, .x-handle, .x-plus { display: none; }
      body { --x-soft: 0 1px 2px #0000000d, 0 6px 20px #00000012; }
      body[data-skin="night"] { --x-soft: 0 1px 2px #00000040, 0 8px 24px #00000059; }
      @media (max-width: 767px) {
        body { --x-tabh: 4rem; --x-barh: 3.5rem; -webkit-tap-highlight-color: transparent; background-attachment: scroll; padding-bottom: calc(var(--x-tabh) + env(safe-area-inset-bottom) + 0.75rem); }
        html, body { overflow-x: clip; max-width: 100%; }
        button, a, input, label, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
        .x-nav, .x-skins { display: none; }
        .page { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

        /* top app bar */
        .x-appbar { display: flex; align-items: center; gap: 0.625rem; position: sticky; top: 0; z-index: 40; height: calc(var(--x-barh) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); background: color-mix(in srgb, var(--fill-primary-on) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--stroke-secondary); }
        .x-appbar__brand { display: flex; align-items: center; gap: 0.5rem; min-height: var(--tap); color: var(--text-primary); text-decoration: none; font: var(--type-heading); font-weight: var(--x-hw); }
        .x-appbar__brand .x-tile { padding: 0.125rem; border-radius: 0.625rem; }
        .x-appbar__brand .x-tile img { width: 1.875rem; height: 1.875rem; }
        .x-appbar__acts { display: flex; gap: 0.25rem; margin-inline-start: auto; }
        .x-icon { position: relative; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: none; color: var(--text-primary); cursor: pointer; }
        .x-icon:active { background: var(--fill-tertiary); }
        .x-icon svg { width: 1.375rem; height: 1.375rem; }
        .x-badge { position: absolute; top: 0.625rem; left: 0.688rem; width: 0.562rem; height: 0.562rem; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 0 2px var(--fill-primary-on); }
        .x-badge[hidden] { display: none; }

        /* bottom tab bar */
        .x-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45; padding: 0.25rem max(0.375rem, env(safe-area-inset-right)) calc(0.25rem + env(safe-area-inset-bottom)) max(0.375rem, env(safe-area-inset-left)); background: color-mix(in srgb, var(--fill-primary-on) 92%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid var(--stroke-secondary); }
        .x-tabbar button { display: grid; justify-items: center; align-content: center; gap: 0.125rem; min-height: 3.5rem; padding: 0.25rem 0; border: 0; background: none; color: var(--text-secondary); font: var(--type-tag); cursor: pointer; }
        .x-tabbar svg { width: 1.375rem; height: 1.375rem; padding: 0.188rem 0.875rem; box-sizing: content-box; border-radius: var(--r-pill); transition: background-color var(--dur-quick), color var(--dur-quick); }
        .x-tabbar button[aria-current="page"] { color: var(--acc); font-weight: var(--weight-bold); }
        .x-tabbar button[aria-current="page"] svg { background: color-mix(in srgb, var(--acc) 16%, transparent); }

        /* one screen at a time */
        body[data-tab="home"] [data-tab]:not([data-tab="home"]),
        body[data-tab="programs"] [data-tab]:not([data-tab="programs"]),
        body[data-tab="join"] [data-tab]:not([data-tab="join"]),
        body[data-tab="panel"] [data-tab]:not([data-tab="panel"]),
        body[data-tab="more"] [data-tab]:not([data-tab="more"]) { display: none !important; }
        .page.x-anim [data-tab] { animation: x-screen .28s var(--ease-out) both; }
        @keyframes x-screen { from { opacity: 0; transform: translateX(var(--x-from, 0)); } }
        .section { padding-top: 0.5rem; }

        /* home dashboard */
        .hero { border-radius: 1rem; min-height: 0; box-shadow: var(--x-soft); }
        .hero__copy { padding-top: 5.75rem; padding-bottom: 1.125rem; gap: 0.375rem; }
        .hero h1 { font: var(--type-title); font-weight: var(--x-hw); }
        .hero .links, .hero .x-tile { display: none; }
        .x-greet { display: block; font: var(--type-body-strong); color: var(--hero-text); }
        .x-dash { display: grid; gap: 0.875rem; }
        .x-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; }
        .x-quick button { display: grid; justify-items: center; align-content: center; gap: 0.5rem; min-height: 5.75rem; padding: 0.75rem 0.25rem; border: 0; border-radius: 1rem; background: var(--fill-tertiary); color: var(--text-primary); font: var(--type-tag); box-shadow: var(--x-soft); cursor: pointer; transition: transform var(--dur-quick); }
        .x-quick button:active, .x-car:active { transform: scale(.97); }
        .x-quick span { display: grid; place-items: center; width: 2.625rem; height: 2.625rem; border-radius: 0.875rem; background: var(--acc); color: var(--on-acc); }
        .x-quick svg { width: 1.375rem; height: 1.375rem; }
        .x-dash__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.375rem; }
        .x-dash__head h2 { font: var(--type-heading); font-weight: var(--x-hw); }
        .x-dash__head button { min-height: var(--tap); padding: 0 0.375rem; border: 0; background: none; color: var(--acc); font: var(--type-label); cursor: pointer; }
        .x-carousel { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0.125rem var(--gutter) 0.875rem; scrollbar-width: none; overscroll-behavior-x: contain; }
        .x-carousel::-webkit-scrollbar { display: none; }
        .x-car { flex: 0 0 78%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-radius: 1rem; background: var(--fill-tertiary); box-shadow: var(--x-soft); transition: transform var(--dur-quick); }
        .x-car h3 { font: var(--type-label); font-weight: var(--x-hw); font-size: var(--size-body); }
        .x-car p { font: var(--type-small); color: var(--text-secondary); }
        .x-car .x-price { font: var(--type-body-strong); color: var(--acc); font-weight: var(--x-hw); margin-top: auto; }
        .x-car .x-cta { min-height: 3rem; }

        /* cards and panels */
        .cards > div, .x-panel { border-radius: 1rem; box-shadow: var(--x-soft); }
        .x-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0.125rem var(--gutter); }
        .x-filters::-webkit-scrollbar { display: none; }
        .x-filter { flex: none; border-radius: var(--r-pill); min-height: 2.75rem; }
        #prog-grid { gap: 0.875rem; }
        .x-prog { padding: 1.25rem !important; gap: 0.75rem; }
        .x-prog h3 { font: var(--type-heading); font-weight: var(--x-hw); }
        .x-prog .x-cta { width: 100%; min-height: 3.25rem; border-radius: 0.875rem; }
        .x-prog.x-flash { outline: 2px solid var(--acc); outline-offset: 3px; }

        /* forms */
        .x-field input, .x-field select, .x-field textarea { min-height: 3rem; font-size: 1rem; border-radius: 0.75rem; padding: 0.625rem 0.875rem; }
        .x-cta, .x-ghost { min-height: 3rem; border-radius: 0.875rem; }
        .x-check { min-height: 3rem; }
        .x-check input { width: 1.5rem; height: 1.5rem; }
        .x-slider input { min-height: 2.75rem; }

        /* registration, one step per screen */
        #wizard { padding: 1.125rem; }
        .x-wiztop { position: sticky; top: calc(var(--x-barh) + env(safe-area-inset-top)); z-index: 5; margin: -1.125rem -1.125rem 1rem; padding: 0.875rem 1.125rem 0.125rem; border-radius: 1rem 1rem 0 0; background: color-mix(in srgb, var(--fill-primary-on) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--stroke-secondary); }
        .x-wiztop .x-steps { margin: 0.625rem 0 0.625rem; }
        .x-steps span { flex: 1; text-align: center; }
        .x-steps span:first-child { text-align: right; }
        .x-steps span:last-child { text-align: left; }
        #wizard .x-nav-row { position: sticky; bottom: calc(var(--x-tabh) + env(safe-area-inset-bottom) + 0.25rem); z-index: 5; flex-wrap: nowrap; margin: 1.25rem -1.125rem -1.125rem; padding: 0.75rem 1.125rem; border-radius: 0 0 1rem 1rem; background: color-mix(in srgb, var(--fill-primary-on) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--stroke-secondary); }
        #wizard .x-nav-row .x-cta { flex: 1; min-height: 3.25rem; }
        #wizard .x-nav-row .x-ghost { min-height: 3.25rem; }
        .x-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
        .x-drop { min-height: 10.5rem; border-radius: 1rem; padding: 0.875rem 0.625rem; border-width: 2px; }
        .x-drop:active { background: var(--fill-tertiary); }
        .x-plus { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); font-size: 1.75rem; line-height: 1; }
        .x-rm { min-height: 2.5rem; }

        /* bottom sheets */
        .x-modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border: 0; border-radius: 1.25rem 1.25rem 0 0; overscroll-behavior: contain; }
        .x-modal[open] { animation: x-up .32s var(--ease-out); }
        .x-modal[open]::backdrop { animation: x-fade .32s ease; }
        .x-modal.x-dragging { transition: none; }
        .x-modal.x-back { transition: transform .25s var(--ease-out); }
        @keyframes x-up { from { transform: translateY(100%); } }
        @keyframes x-fade { from { opacity: 0; } }
        .x-handle { display: block; position: sticky; top: 0; z-index: 2; height: 1.625rem; margin-bottom: -0.625rem; background: var(--fill-primary-on); cursor: grab; touch-action: none; }
        .x-handle::before { content: ""; position: absolute; top: 0.625rem; left: 50%; width: 2.5rem; height: 0.312rem; margin-left: -1.25rem; border-radius: 0.188rem; background: var(--stroke-primary); }
        .x-modal__in { padding: 1rem 1.125rem calc(1.125rem + env(safe-area-inset-bottom)); }
        .x-modal .x-cta { min-height: 3.25rem; }
        .x-sheet-list { display: grid; gap: 0.375rem; }
        .x-sheet-list button { display: flex; align-items: center; gap: 0.875rem; min-height: 3.5rem; padding: 0 0.875rem; border: 1px solid var(--stroke-secondary); border-radius: 0.875rem; background: var(--fill-primary-on); color: var(--text-primary); font: var(--type-body-strong); text-align: right; cursor: pointer; }
        .x-sheet-list button[aria-pressed="true"] { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
        .x-sheet-list button[aria-pressed="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--acc); font-weight: var(--weight-bold); }
        .x-sheet-list i { width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px #0002; }
        .x-notes { list-style: none; margin: 0; padding: 0; }
        .x-notes li { display: grid; gap: 0.125rem; padding: 0.75rem 0; border-bottom: 1px solid var(--stroke-secondary); }
        .x-notes li:last-child { border-bottom: 0; }
        .x-notes small { color: var(--text-secondary); }

        /* toast above the tab bar */
        .x-toast, .x-toast[popover] { bottom: calc(var(--x-tabh) + env(safe-area-inset-bottom) + 0.875rem); border-radius: 0.875rem; width: max-content; text-align: center; }
      }
      @media (max-width: 767px) and (prefers-reduced-motion: reduce) {
        .page.x-anim [data-tab], .x-modal[open], .x-modal[open]::backdrop { animation: none; }
      }

      /* ---------- Gallery, education, athlete reports and goals ---------- */
      .x-assets { display: none; }
      .x-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
      .x-toolbar .fineprint { flex: 1 1 220px; }
      .x-search { flex: 1 1 220px; max-width: 21.25rem; }
      .photo-card { cursor: pointer; backdrop-filter: var(--x-glass); -webkit-backdrop-filter: var(--x-glass); transition: box-shadow var(--dur-quick), transform var(--dur-quick) var(--ease-out); }
      .photo-card:hover { box-shadow: var(--hark-shadow); }
      body[data-skin="night"] .photo-card { border: 1px solid var(--stroke-secondary); }
      [dir="rtl"] .photo-card__rank { left: auto; right: 0.875rem; }
      .photo-card__body > .x-cta { order: 1; margin-top: auto; width: 100%; }
      .x-meta-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }
      .x-empty { padding: 1.75rem; text-align: center; border: 1.5px dashed var(--stroke-primary); border-radius: var(--r-l); color: var(--text-secondary); font: var(--type-body); }
      @media (min-width: 768px) { .x-modal--wide { width: min(53.75rem, calc(100% - 3rem)); } }
      .x-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.875rem; }
      .x-pgrid figure { margin: 0; display: grid; gap: 0.375rem; align-content: start; }
      .x-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--fill-tertiary); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; }
      .x-zoom img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease-out); }
      .x-zoom:hover img { transform: scale(1.04); }
      .x-pgrid figcaption, .x-article figcaption { font: var(--type-caption); color: var(--text-secondary); }
      .x-article { display: grid; gap: 0.875rem; }
      .x-article h4 { font: var(--type-heading); font-weight: var(--x-hw); margin-top: 0.5rem; }
      .x-article p { font: var(--type-body); line-height: 1.95; }
      .x-article figure { margin: 0.25rem 0; display: grid; gap: 0.5rem; }
      .x-article figure img { display: block; width: 100%; max-height: 27.5rem; object-fit: cover; border-radius: var(--r-m); }
      .x-h4 { font: var(--type-body-strong); font-weight: var(--x-hw); }

      /* lightbox */
      .x-lb { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #000000f2; color: #fff; }
      .x-lb::backdrop { background: #000c; }
      .x-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
      .x-lb__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: calc(0.625rem + env(safe-area-inset-top)) 1rem 0.625rem; font: var(--type-label); }
      .x-lb .x-x { background: #ffffff24; color: #fff; }
      .x-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem; touch-action: pan-y; }
      .x-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: var(--r-s); }
      .x-lb__cap { margin: 0; padding: 0.875rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); text-align: center; font: var(--type-body); color: #ffffffe0; min-height: 3.4em; }
      .x-lb__nav { position: absolute; top: 50%; width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; border: 0; border-radius: 50%; background: #ffffff24; color: #fff; font-size: 1.625rem; line-height: 1; cursor: pointer; }
      .x-lb__nav:hover { background: #ffffff40; }
      .x-lb__nav[hidden] { display: none; }
      .x-lb__prev { right: 0.625rem; }
      .x-lb__next { left: 0.625rem; }
      @media (max-width: 767px) { .x-lb__stage { padding: 0 0.375rem; } .x-lb__nav { width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; background: #00000066; } }

      /* uploads */
      .x-drop--slim { min-height: 6rem; }
      .x-ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0.625rem; }
      .x-ups:empty { display: none; }
      .x-up { display: grid; gap: 0.375rem; padding: 0.5rem; border: 1px solid var(--stroke-secondary); border-radius: var(--r-m); background: var(--fill-primary-on); }
      .x-up img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); }
      .x-up input { width: 100%; min-height: 2.5rem; padding: 0.375rem 0.625rem; font: var(--type-small); color: var(--text-primary); background: var(--fill-primary-on); border: 1px solid var(--stroke-primary); border-radius: var(--r-s); }
      .x-up b { font: var(--type-tag); color: var(--acc); }
      .x-up .x-rm { justify-self: start; }
      .x-help { font: var(--type-caption); color: var(--text-secondary); }

      /* athlete sub-tabs */
      .x-subtabs { margin-top: 0.25rem; }
      .x-pt { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); }
      .x-pt[hidden] { display: none; }
      .x-subtabs .x-n { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-inline-start: 0.375rem; padding: 0 0.375rem; border-radius: var(--r-pill); background: var(--acc2); color: #fff; font: var(--type-tag); }
      .x-subtabs .x-n[hidden] { display: none; }
      .x-panel h3 + .fineprint { margin-top: 0.25rem; }
      .x-timeline-wrap { padding: clamp(1.125rem, 3vw, 1.75rem); border-radius: var(--r-l); border: 1px solid var(--stroke-secondary); }
      .x-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; }
      .x-thumbs .x-zoom { width: 4.75rem; }
      .x-thumbs .x-zoom img { aspect-ratio: 1; }

      /* coach thread */
      .x-thread { display: grid; gap: 0.625rem; margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px dashed var(--stroke-primary); }
      .x-cmt { display: flex; gap: 0.625rem; align-items: flex-start; }
      .x-cmt .x-av { width: 2.125rem; height: 2.125rem; font: var(--type-tag); font-weight: var(--x-hw); }
      .x-cmt p { font: var(--type-small); }
      .x-cmt small { display: block; font: var(--type-caption); color: var(--text-secondary); }
      .x-cform { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 0.5rem; align-items: end; }
      @media (max-width: 599px) { .x-cform { grid-template-columns: minmax(0, 1fr); } }

      /* goals */
      .x-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1rem; }
      .x-goal { display: grid; gap: 0.75rem; align-content: start; }
      .x-goal__top { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 0.625rem; }
      .x-goal__top h3 { margin-top: 0.375rem; }
      .x-goal__fig { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.375rem 0.75rem; font: var(--type-small); color: var(--text-secondary); }
      .x-goal__fig b { font: var(--type-heading); font-weight: var(--x-hw); color: var(--text-primary); }
      .x-bar--goal { height: 0.625rem; }
      .x-bar--goal i { width: 0; }
      .x-bar--late i { background: var(--acc2); }
      .chip.x-late { color: var(--acc2); border-color: var(--acc2); }
      .chip.x-late::before { background: var(--acc2); box-shadow: none; }
      .x-stale { background: color-mix(in srgb, var(--acc2) 14%, transparent); color: var(--acc2); font-weight: var(--weight-medium); }
      .x-logs { list-style: none; margin: 0; padding: 0; }
      .x-logs li { display: grid; grid-template-columns: 9em 7em minmax(0, 1fr); gap: 0.125rem 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-logs li:last-child { border-bottom: 0; }
      .x-logs small { color: var(--text-secondary); }
      @media (max-width: 599px) { .x-logs li { grid-template-columns: auto 1fr; } .x-logs li small { grid-column: 1 / -1; } }
      .x-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 0.5rem; align-items: end; }
      .x-det > summary { display: flex; align-items: center; gap: 0.5rem; min-height: var(--tap); cursor: pointer; font: var(--type-body-strong); font-weight: var(--x-hw); list-style: none; }
      .x-det > summary::-webkit-details-marker { display: none; }
      .x-det > summary::before { content: "+"; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--acc); color: var(--on-acc); }
      .x-det[open] > summary::before { content: "−"; }
      .x-det[open] > summary { margin-bottom: 0.875rem; }

      /* mobile-only bits */
      .x-backbtn, .x-moremenu { display: none; }
      .x-car--btn { border: 0; text-align: right; color: var(--text-primary); font: inherit; cursor: pointer; }
      @media (max-width: 767px) {
        body[data-tab="gallery"] [data-tab]:not([data-tab="gallery"]),
        body[data-tab="learn"] [data-tab]:not([data-tab="learn"]),
        body[data-tab="rent"] [data-tab]:not([data-tab="rent"]) { display: none !important; }
        .x-backbtn { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); padding: 0 0.25rem; border: 0; background: none; color: var(--acc); font: var(--type-label); cursor: pointer; }
        .x-car img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.75rem; }
        .x-moremenu { display: grid; gap: 0.625rem; padding-top: 0.5rem; }
        .x-moremenu h2 { font: var(--type-heading); font-weight: var(--x-hw); }
        .x-moremenu .x-sheet-list button { min-height: 4.25rem; background: var(--fill-tertiary); border: 0; box-shadow: var(--x-soft); }
        .x-moremenu .x-sheet-list button::after { content: "‹"; margin-inline-start: auto; font-size: 1.375rem; color: var(--text-secondary); }
        .x-moremenu .x-mi { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.75rem; background: var(--acc); color: var(--on-acc); }
        .x-moremenu .x-mi svg { width: 1.375rem; height: 1.375rem; }
        .x-moremenu small { display: block; font: var(--type-caption); color: var(--text-secondary); }
        .x-toolbar .x-cta { width: 100%; }
        .x-search { max-width: none; }
        .photo-cards { gap: 0.875rem; }
        .photo-card { border-radius: 1rem; box-shadow: var(--x-soft); }
        .x-subtabs { position: sticky; top: calc(var(--x-barh) + env(safe-area-inset-top)); z-index: 6; padding-block: 0.5rem; background: color-mix(in srgb, var(--fill-primary-on) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
        .x-subtabs .x-filter { flex: 1; }
      }

      /* ---------- Terms & acceptance step ---------- */
      .x-field.bad select { border-color: var(--acc2); }
      .x-bdate { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.5rem; }
      .x-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0.75rem; align-items: start; margin-top: 0.875rem; }
      .x-doc { padding: 0.25rem 1rem; border: 1px solid var(--stroke-secondary); border-radius: var(--r-m); background: var(--fill-primary-on); transition: border-color var(--dur-quick); }
      .x-doc.is-ok { border-color: var(--acc); }
      .x-doc > summary { display: flex; align-items: center; gap: 0.625rem; min-height: 3.5rem; cursor: pointer; list-style: none; font: var(--type-body-strong); font-weight: var(--x-hw); }
      .x-doc > summary::-webkit-details-marker { display: none; }
      .x-doc > summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-weight: var(--weight-regular); }
      .x-doc[open] > summary::before { content: "−"; }
      .x-doc > summary > span:first-of-type { flex: 1; }
      .x-doc > summary .chip { flex: none; }
      .x-doc.is-ok > summary .chip { color: var(--acc); border-color: var(--acc); }
      .x-doc__ver { font: var(--type-caption); color: var(--text-secondary); margin: -0.375rem 0 0.5rem; padding-inline-start: 2.375rem; }
      .x-doc__body { max-height: 13.125rem; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.875rem; border-radius: var(--r-s); background: var(--fill-tertiary); border: 1px solid var(--stroke-secondary); }
      .x-doc__body:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
      .x-doc__intro { font: var(--type-small); color: var(--text-secondary); margin-bottom: 0.5rem; }
      .x-clauses { margin: 0; padding-inline-start: 1.375rem; display: grid; gap: 0.5rem; font: var(--type-small); line-height: 1.9; }
      .x-clauses--full { font: var(--type-body); line-height: 2; gap: 0.625rem; }
      .x-end { height: 0.062rem; }
      .x-doc__foot { display: grid; gap: 0.125rem; padding: 0.375rem 0 0.625rem; }
      .x-linkbtn { justify-self: start; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--acc); font: var(--type-label); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
      .x-check--top { align-items: flex-start; padding: 0.5rem 0; min-height: 0; font: var(--type-small); line-height: 1.8; }
      .x-check--top input { flex: none; margin-top: 0.188rem; }
      .x-check input:disabled + span { color: var(--text-secondary); }
      .x-check input:disabled { cursor: not-allowed; }
      .x-hint { font: var(--type-caption); color: var(--acc2); }
      .x-hint[hidden] { display: none; }
      .x-box { display: grid; gap: 0.625rem; margin-top: 0.875rem; padding: 1rem; border: 1px solid var(--stroke-secondary); border-radius: var(--r-m); background: var(--fill-primary-on); }
      .x-box[hidden] { display: none; }
      .x-box .x-h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
      .x-field input[readonly] { background: var(--fill-tertiary); color: var(--text-secondary); }
      /* marital status: segmented radios */
      .x-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--stroke-primary); border-radius: var(--x-btn-r); background: var(--fill-primary-on); }
      .x-seg label { position: relative; display: block; cursor: pointer; }
      .x-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
      .x-seg span { display: grid; place-items: center; min-height: calc(var(--tap) - 0.625rem); padding: 0 0.75rem; border-radius: calc(var(--x-btn-r) - 0.125rem); font: var(--type-label); color: var(--text-secondary); transition: background var(--dur-quick), color var(--dur-quick); }
      .x-seg input:checked + span { background: var(--fill-primary); color: var(--text-primary-on); }
      .x-seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 1px; }
      .x-field.bad .x-seg { border-color: var(--acc2); }
      .x-span { grid-column: 1 / -1; margin-top: 0; }
      .x-box .x-drops { margin-top: 0.125rem; }
      @media (max-width: 767px) { .x-seg { border-radius: 0.875rem; } .x-seg span { min-height: 2.625rem; border-radius: 0.625rem; } }
      .x-ok-msg { color: var(--acc); }
      .x-cta[aria-disabled="true"] { background: var(--fill-tertiary); color: var(--text-secondary); cursor: not-allowed; filter: none; }
      .x-acc { display: grid; gap: 0.875rem; }
      #acc-flow { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--stroke-secondary); }
      .x-print { display: none; }
      @media (max-width: 767px) {
        .x-doc { padding: 0.125rem 0.875rem; border-radius: 1rem; }
        .x-doc__body { max-height: 15rem; }
        .x-box { border-radius: 1rem; }
        .x-check--top input { width: 1.5rem; height: 1.5rem; margin-top: 0; }
      }
      @media print {
        body > :not(.x-print) { display: none !important; }
        body { background: #fff !important; color: #000; padding: 0 !important; }
        .x-print { display: block; color: #000; font: 0.781rem/1.9 Vazirmatn, Tahoma, sans-serif; }
        .x-print h1 { font-size: 1.25rem; margin: 0 0 0.25rem; }
        .x-print h2 { font-size: 0.938rem; margin: 1.125rem 0 0.25rem; }
        .x-print p { margin: 0.125rem 0; }
        .x-print table { width: 100%; border-collapse: collapse; margin: 0.625rem 0; }
        .x-print th, .x-print td { border: 1px solid #999; padding: 0.25rem 0.5rem; text-align: right; }
        .x-print ol { margin: 0.25rem 0; padding-inline-start: 1.375rem; }
        .x-print section { break-inside: avoid; }
      }

      /* ---------- Certificates & program eligibility ---------- */
      .x-field[hidden], .x-apane[hidden] { display: none; }
      .x-vh { position: absolute; width: 0.062rem; height: 0.062rem; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
      .chip.x-ok { color: var(--acc); border-color: var(--acc); }
      .chip.x-ok::before { background: var(--acc); box-shadow: none; }
      .x-rqbox { display: grid; gap: 0.375rem; }
      .x-rqs { display: flex; flex-wrap: wrap; gap: 0.375rem; }
      .x-rq { display: inline-flex; align-items: center; gap: 0.312rem; min-height: 1.75rem; padding: 0.125rem 0.625rem; border: 1px solid var(--stroke-primary); border-radius: var(--r-pill); background: var(--fill-primary-on); color: var(--text-primary); font: var(--type-tag); }
      .x-rq b { font-weight: var(--weight-bold); }
      .x-rq small { font: inherit; color: var(--text-secondary); }
      .x-rq--ok { border-color: var(--acc); }
      .x-rq--ok b { color: var(--acc); }
      .x-rq--no { border-color: var(--acc2); }
      .x-rq--no b { color: var(--acc2); }
      .x-rq--rec { border-style: dashed; }
      .x-miss { display: grid; gap: 0.5rem; padding: 0.75rem 0.875rem; border: 1px solid color-mix(in srgb, var(--acc2) 45%, transparent); border-radius: var(--r-m); background: color-mix(in srgb, var(--acc2) 7%, var(--fill-primary-on)); font: var(--type-small); }
      .x-miss > p { font: var(--type-label); font-weight: var(--weight-bold); }
      .x-miss ul { margin: 0; padding-inline-start: 1.125rem; display: grid; gap: 0.25rem; }
      .x-miss li small { color: var(--text-secondary); font: var(--type-caption); }
      .x-miss .x-ghost { justify-self: start; }
      .x-miss li .x-linkbtn { min-height: 2rem; margin-inline-start: 0.375rem; font: var(--type-caption); }
      .x-soft { font: var(--type-caption); color: var(--text-secondary); padding-inline-start: 0.625rem; border-inline-start: 2px solid var(--fill-system-orange); }
      .x-prog .x-linkbtn { justify-self: center; align-self: center; }
      .x-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
      .x-cert { display: grid; gap: 0.625rem; align-content: start; }
      .x-cert .x-goal__top h3 { margin-top: 0.375rem; }
      .x-cert .links { margin: 0.125rem 0 0; }
      .x-cert--rej, .x-cert--exp { border-color: color-mix(in srgb, var(--acc2) 40%, transparent); }
      .x-reason { padding: 0.625rem 0.75rem; border-radius: var(--r-s); background: color-mix(in srgb, var(--acc2) 8%, transparent); font: var(--type-small); }
      .x-reason b { color: var(--acc2); }
      #cu-det { scroll-margin-top: 90px; }
      .x-modal--adm, #pd { overflow-y: auto; }
      @media (min-width: 768px) { .x-modal--adm { width: min(61.25rem, calc(100% - 3rem)); } }
      .x-apane { display: grid; gap: 0.875rem; }
      #adm-tabs .x-n { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-inline-start: 0.375rem; padding: 0 0.375rem; border-radius: var(--r-pill); background: var(--acc2); color: #fff; font: var(--type-tag); }
      #adm-tabs .x-n[hidden] { display: none; }
      .x-reqrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 0.375rem 0.75rem; align-items: center; padding: 0.25rem 0; border-bottom: 1px solid var(--stroke-secondary); }
      .x-reqrow:last-child { border-bottom: 0; }
      .x-reqrow .x-check { font: var(--type-small); }
      .x-reqrow .x-check small { display: block; color: var(--text-secondary); font: var(--type-caption); }
      .x-reqrow .x-field select:disabled { opacity: .45; }
      .x-rev .links { margin: 0; }
      .x-adminbtns { margin: 0 0 0 0; margin-inline-start: auto; }
      .x-grpbar .x-check { font: var(--type-label); }
      .x-filter:disabled { opacity: .45; cursor: not-allowed; }
      .x-tbl-sel { min-width: 8.75rem; }
      /* fitness */
      .x-fitintro { display: grid; gap: 0.75rem; }
      .x-fitbody { display: grid; gap: clamp(1.25rem, 2.4vw, 1.75rem); }
      .x-weeks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
      .x-weeks .x-filter { flex: none; min-width: 3.25rem; padding: 0 0.75rem; }
      .x-weeks .x-filter.is-now { box-shadow: inset 0 -3px var(--acc); }
      .x-exl { list-style: none; margin: 0.625rem 0; padding: 0; }
      .x-exl li { display: flex; justify-content: space-between; align-items: center; gap: 0.625rem; padding: 0.438rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-exl li:last-child { border-bottom: 0; }
      .x-exl .pill { flex: none; }
      .step .x-det { margin-top: 0.625rem; }
      .x-fb { display: grid; gap: 0.5rem; margin-top: 0.625rem; }
      .x-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.75rem; }
      .x-tcard { padding: 0.875rem 1rem; }
      .x-tgrid svg, .x-wbars svg { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; }
      .x-tgrid text, .x-wbars text { fill: var(--text-secondary); font: 0.75rem var(--sans); }
      .x-tgrid text.v, .x-wbars text.v { fill: var(--text-primary); }
      .x-adh { display: grid; gap: 0.25rem; min-width: 5.625rem; font: var(--type-small); }
      .x-flags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
      .x-cm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem; }
      @media (max-width: 767px) {
        #adm-tabs { flex-wrap: nowrap; }
        .x-reqrow { grid-template-columns: minmax(0, 1fr) 124px; }
        .x-cert { border-radius: 1rem; box-shadow: var(--x-soft); }
      }
      /* ---------- Federation form (کاربرگ ثبت نام و پذیرش) ---------- */
      .x-fednote { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.875rem; padding: 0.625rem 0.75rem; border-inline-start: 3px solid var(--acc); background: var(--fill-tertiary); border-radius: var(--r-s); font: var(--type-small); }
      .x-steps .x-sn { font-weight: var(--x-hw); }
      .x-photo-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
      .x-photo-row .x-help { flex: 1; min-width: 11.25rem; font: var(--type-small); color: var(--text-secondary); }
      .x-drop.x-photo { width: 8.25rem; min-height: 0; aspect-ratio: 3 / 4; padding: 0.5rem; border-radius: var(--r-s); }
      .x-drop.x-photo .x-thumb { width: 100%; height: 100%; position: absolute; inset: 0; border-radius: inherit; }
      .x-drop.x-photo.has { border-style: solid; }
      .x-drop.x-photo .x-rm { position: absolute; bottom: 0.375rem; inset-inline: 6px; z-index: 1; background: var(--fill-primary-on); }
      .x-drop.x-photo small { font: var(--type-caption); }
      .x-drop.x-photo.bad { border-color: var(--acc2); }
      .x-hq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); column-gap: 1.5rem; }
      .x-hq li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 132px; align-items: center; gap: 0.625rem; padding: 0.5rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-hq li > b { font: var(--type-tag); color: var(--text-secondary); }
      .x-hq li.bad > span { color: var(--acc2); }
      .x-hq li.bad .x-seg { border-color: var(--acc2); }
      .x-hq .x-seg span { min-height: 2.25rem; padding: 0 0.5rem; }
      .x-hq li.is-yes > span { font-weight: var(--weight-bold); }
      .x-flagbox { display: grid; gap: 0.375rem; margin-top: 0.875rem; padding: 0.75rem 0.875rem; border: 1px solid color-mix(in srgb, var(--fill-system-orange) 55%, transparent); border-radius: var(--r-m); background: color-mix(in srgb, var(--fill-system-orange) 9%, var(--fill-primary-on)); font: var(--type-small); }
      .x-flagbox[hidden] { display: none; }
      .x-decl { font: var(--type-body); line-height: 2.2; }
      .x-decl input { font: var(--type-body); width: min(100%, 13.75rem); padding: 0.25rem 0.625rem; border: 0; border-bottom: 1.5px dashed var(--stroke-primary); background: var(--fill-tertiary); color: var(--text-primary); border-radius: var(--r-s) var(--r-s) 0 0; }
      .x-decl input:focus { outline: 2px solid var(--acc); }
      .x-decl.bad input { border-bottom-color: var(--acc2); }
      .x-sumh { font: var(--type-tag); color: var(--text-secondary); padding-top: 0.625rem; }
      .x-admbox { display: grid; gap: 0.625rem; padding: 0.875rem; border: 1.5px solid var(--stroke-primary); border-radius: var(--r-m); }
      .x-admbox .x-seg { max-width: 26.25rem; }
      .x-hyes { margin: 0; padding-inline-start: 1.125rem; font: var(--type-small); display: grid; gap: 0.125rem; }
      /* membership type picker */
      .x-mtpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.625rem; }
      .x-mtopt { position: relative; display: block; cursor: pointer; }
      .x-mtopt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
      .x-mtopt > span { display: grid; gap: 0.25rem; height: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--stroke-primary); border-radius: var(--r-m); background: var(--fill-primary-on); font: var(--type-small); }
      .x-mtopt small { color: var(--text-secondary); font: var(--type-caption); }
      .x-mtopt em { font-style: normal; font-weight: var(--weight-bold); }
      .x-mtopt input:checked + span { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
      .x-mtopt input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
      .x-mtopt input:disabled + span { opacity: .5; cursor: not-allowed; }
      /* ---------- Equipment rental ---------- */
      .x-gearwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 1.25rem; align-items: start; }
      .x-gears { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.75rem; }
      .x-gear { display: grid; gap: 0.5rem; align-content: start; padding: 0.875rem; border: 1px solid var(--stroke-secondary); border-radius: var(--r-m); background: var(--fill-tertiary); }
      .x-gear h3 { font: var(--type-label); font-weight: var(--x-hw); }
      .x-gicon { display: grid; place-items: center; height: 5.25rem; border-radius: var(--r-s); background: var(--fill-primary-on); color: var(--acc); }
      .x-gicon svg { width: 2.5rem; height: 2.5rem; }
      .x-gear .x-field select { min-height: 2.5rem; padding: 0.375rem 0.625rem; }
      .x-gear .x-gfacts { font: var(--type-caption); color: var(--text-secondary); display: grid; gap: 0.125rem; }
      .x-gear .x-gfacts b { color: var(--text-primary); font-weight: var(--weight-medium); }
      .x-cart { position: sticky; top: 5.25rem; display: grid; gap: 0.75rem; max-height: calc(100vh - 6.25rem); overflow-y: auto; }
      .x-cart h3 { font: var(--type-heading); }
      .x-cline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.625rem; padding: 0.5rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-cline small { color: var(--text-secondary); font: var(--type-caption); }
      .x-cline .x-field select { min-height: 2.25rem; padding: 0.25rem 0.5rem; font: var(--type-small); }
      .x-cline .x-rm { min-height: 2rem; }
      .x-period { padding: 0.625rem 0.75rem; border-radius: var(--r-s); background: var(--fill-primary-on); font: var(--type-small); border: 1px solid var(--stroke-secondary); }
      .x-period b { font-weight: var(--weight-bold); }
      .x-gtype { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
      .x-gtype .x-mtopt > span { padding: 0.625rem 0.75rem; }
      .x-insp { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; gap: 0.5rem; align-items: end; padding: 0.5rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-insp .x-field select, .x-insp .x-field input { min-height: 2.375rem; padding: 0.25rem 0.5rem; font: var(--type-small); }
      .x-gearreq { display: grid; gap: 0.375rem; }
      .x-gearreq li { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 0.5rem; align-items: center; padding: 0.375rem 0; border-bottom: 1px solid var(--stroke-secondary); font: var(--type-small); }
      .x-gearreq ul { list-style: none; margin: 0; padding: 0; }
      .x-gearreq .x-seg span { min-height: 2.125rem; font: var(--type-caption); }
      .x-dayrow { display: grid; grid-template-columns: repeat(15, minmax(34px, 1fr)); gap: 0.25rem; overflow-x: auto; }
      .x-day { display: grid; gap: 0.125rem; justify-items: center; padding: 0.375rem 0.125rem; border-radius: var(--r-s); background: var(--fill-tertiary); font: var(--type-caption); }
      .x-day b { font-size: 0.938rem; }
      .x-day.is-today { outline: 2px solid var(--acc); }
      .x-day i { display: block; width: 70%; border-radius: 0.125rem; background: var(--acc); }
      @media (max-width: 900px) { .x-gearwrap { grid-template-columns: 1fr; } .x-cart { position: static; max-height: none; } }
      @media (max-width: 767px) {
        .x-insp { grid-template-columns: 1fr 1fr; } .x-insp > span:first-child { grid-column: 1 / -1; }
        .x-gearreq li { grid-template-columns: 1fr; }
        .x-gtype { grid-template-columns: 1fr; }
      }
      @media (max-width: 767px) {
        .x-steps .x-sl { display: none; }
        .x-steps .cur .x-sl { display: inline; }
        .x-steps span { flex: 0 1 auto; }
        .x-steps span.cur { flex: 1 1 auto; text-align: center !important; }
        .x-hq li { grid-template-columns: 24px minmax(0, 1fr); row-gap: 0.5rem; padding: 0.75rem 0; }
        .x-hq li .x-seg { grid-column: 2; }
        .x-hq .x-seg span { min-height: 2.625rem; }
        .x-drop.x-photo { width: 7.5rem; }
      }
      @media print {
        .x-print .x-fh { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid #000; padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
        .x-print .x-fphoto { flex: none; width: 3cm; height: 4cm; border: 1px solid #000; display: grid; place-items: center; text-align: center; font-size: 0.625rem; overflow: hidden; }
        .x-print .x-fphoto img { width: 100%; height: 100%; object-fit: cover; }
        .x-print .x-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
        .x-print .x-fgrid table { margin: 0.25rem 0; }
        .x-print .x-fgrid td, .x-print .x-fgrid th { padding: 0.125rem 0.375rem; font-size: 0.688rem; }
        .x-print .x-fck { text-align: center !important; width: 2.125rem; }
        .x-print .x-fbox { border: 1.5px solid #000; padding: 0.5rem 0.625rem; margin-top: 0.625rem; break-inside: avoid; }
        .x-print .x-fline { display: inline-block; min-width: 10rem; border-bottom: 1px dotted #000; padding: 0 0.375rem; }
        .x-print .x-fnote { font-size: 0.656rem; color: #333; }
      }
      /* ---------- Health profile, alerts & considerations ---------- */
      .x-sev--crit { --x-sev: var(--fill-system-red); }
      .x-sev--imp { --x-sev: var(--fill-system-orange); }
      .x-sev--info { --x-sev: var(--text-secondary); }
      .x-sevtag { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 1.625rem; padding: 0 0.625rem; border: 1px solid var(--x-sev); border-radius: var(--r-pill); background: color-mix(in srgb, var(--x-sev) 12%, var(--fill-primary-on)); color: var(--text-primary); font: var(--type-tag); font-weight: var(--weight-medium); white-space: nowrap; }
      .x-sevtag::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--x-sev); flex: none; }
      .x-alerts { display: grid; gap: 0.75rem; padding: 1rem; border: 2px solid var(--x-sev); border-radius: var(--r-m); background: var(--fill-primary-on); }
      .x-alerts__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 0.75rem; }
      .x-alerts__head h4 { font: var(--type-heading); font-weight: var(--x-hw); }
      .x-alerts__head small { display: block; color: var(--text-secondary); font: var(--type-caption); margin-top: 0.125rem; }
      .x-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
      .x-al > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem; align-items: start; padding: 0.625rem 0.75rem; border-radius: var(--r-s); border-inline-start: 4px solid var(--x-sev); background: color-mix(in srgb, var(--x-sev) 8%, var(--fill-primary-on)); font: var(--type-small); }
      .x-al > li b { font: var(--type-label); font-weight: var(--weight-bold); }
      .x-al > li small { display: block; color: var(--text-secondary); font: var(--type-caption); margin-top: 0.125rem; }
      .x-al--tight > li { padding: 0.5rem 0.625rem; }
      .x-legend { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; font: var(--type-caption); color: var(--text-secondary); }
      .x-hp { display: grid; gap: 1.25rem; }
      .x-hpsec { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.625rem; }
      .x-hpsec > legend { padding: 0; margin-bottom: 0.5rem; font: var(--type-body-strong); font-weight: var(--x-hw); }
      .x-hpsec > legend small { font: var(--type-caption); color: var(--text-secondary); font-weight: var(--weight-regular); margin-inline-start: 0.375rem; }
      .x-togs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
      .x-tog { position: relative; display: inline-flex; }
      .x-tog input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
      .x-tog span { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); padding: 0 0.875rem; border: 1px solid var(--stroke-primary); border-radius: var(--r-pill); background: var(--fill-primary-on); color: var(--text-primary); font: var(--type-label); transition: background var(--dur-quick), color var(--dur-quick); }
      .x-tog input:checked + span { background: var(--fill-primary); border-color: var(--fill-primary); color: var(--text-primary-on); }
      .x-tog input:checked + span::before { content: "✓"; }
      .x-tog input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
      .x-meds { display: grid; gap: 0.625rem; }
      .x-medrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr auto; gap: 0.5rem; align-items: end; padding: 0.625rem; border: 1px solid var(--stroke-secondary); border-radius: var(--r-s); }
      .x-medrow .x-x { align-self: end; }
      .x-hpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0.875rem 1rem; }
      .x-derived { display: grid; gap: 0.5rem; padding: 0.75rem 0.875rem; border: 1px dashed var(--stroke-primary); border-radius: var(--r-m); }
      .x-viewer { display: grid; gap: 0.5rem; padding: 0.75rem 0.875rem; border: 1px dashed var(--stroke-primary); border-radius: var(--r-m); }
      .x-viewer .x-inline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
      .x-con { display: grid; gap: 0.375rem; padding: 0.875rem; border: 1px solid var(--stroke-secondary); border-inline-start: 4px solid var(--x-sev); border-radius: var(--r-m); background: var(--fill-primary-on); font: var(--type-small); }
      .x-con--arch { background: var(--fill-tertiary); border-inline-start-style: dashed; }
      .x-con__text { font: var(--type-body); }
      .x-con__act { padding: 0.5rem 0.625rem; border-radius: var(--r-s); background: var(--fill-tertiary); }
      .x-con__acts { display: flex; flex-wrap: wrap; gap: 0.875rem; }
      .x-con details summary { cursor: pointer; min-height: 2rem; display: flex; align-items: center; font: var(--type-caption); color: var(--text-secondary); }
      .x-ack { display: grid; gap: 0.375rem; padding: 0.875rem; border: 1.5px solid var(--x-sev, var(--stroke-primary)); border-radius: var(--r-m); background: var(--fill-primary-on); }
      .x-ack--ok { --x-sev: var(--fill-system-green); }
      .x-lead { display: grid; gap: 0.625rem; }
      .x-stack { display: grid; gap: 0.875rem; }
      #coach-tabs { margin-bottom: 0.875rem; }
      #coach-tabs .x-n, #adm-tabs .x-n.x-n--crit { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-inline-start: 0.375rem; padding: 0 0.375rem; border-radius: var(--r-pill); background: var(--acc2); color: #fff; font: var(--type-tag); }
      #coach-tabs .x-n[hidden] { display: none; }
      @media (max-width: 767px) {
        .x-medrow { grid-template-columns: 1fr 1fr; }
        .x-medrow .x-x { grid-column: 1 / -1; justify-self: end; }
        .x-tog span { min-height: 2.75rem; }
      }
      @media print {
        .x-print .x-psev { font-weight: bold; white-space: nowrap; }
        .x-print ul { margin: 0; padding-inline-start: 1rem; }
      }
