/* Portal v3, phase 1 (design/portal-v3/PHASE-1-PROMPT.md §5): the gym portal's tokens. Only under html.portal-v3 without
   data-skin (the portal's <html> never carries it; the trainee and trainer shells and the account pages do), so with
   USE_PORTAL_V3 off nothing here exists. Built on the shared XBAND tokens of css/tokens.css: where a token is the shared
   one (--p3-line is var(--line), --p3-text var(--ink), the status tokens), its dark value is the shared token's own dark
   value; the dark values below are set only for the tokens that have no shared dark value. Dark mode has the app's two
   selectors: [data-theme=dark], and the system's dark scheme unless the person chose light. */
html.portal-v3:not([data-skin]){
  --p3-bg:#FFFFFF;--p3-sidebar:#FAFBFE;--p3-surface:#FFFFFF;--p3-soft:#EEF0F4;--p3-nav-sel:#ECEEF3;--p3-hover:#F4F5F8;--p3-field:#FAFBFC;
  --p3-line:var(--line);--p3-text:var(--ink);--p3-muted:#636A7B;--p3-faint:#8A90A0;
  --p3-primary:var(--blue-500);--p3-primary-hover:var(--blue-600);--p3-primary-press:var(--blue-700);--p3-primary-disabled:#B4C6FF;
  --p3-link:var(--blue-600);--p3-tint:var(--blue-50);--p3-tint-2:var(--blue-100);--p3-tint-line:var(--blue-200);
  --p3-ok:var(--ok);--p3-ok-soft:var(--ok-soft);--p3-ok-fill:var(--ok-fill);--p3-bad:var(--bad);--p3-bad-soft:var(--bad-soft);
  --p3-dark:var(--blue-950);--p3-dark-sel:#1E2A4D;--p3-dark-text-2:#A9B4D0;--p3-veil:rgba(14,20,36,.32);
  /* space (only these), radii, depth, motion */
  --p3-s1:4px;--p3-s2:8px;--p3-s3:12px;--p3-s4:16px;--p3-s5:24px;--p3-s6:32px;--p3-s7:48px;
  --p3-r-xs:4px;--p3-r-badge:4px;--p3-r-field:8px;--p3-r-chip:10px;--p3-r-tile:12px;--p3-r-card:12px;--p3-r-card-lg:16px;--p3-r-pill:999px;
  --p3-shadow-card:0 1px 2px rgba(14,20,36,.04);--p3-shadow-pop:0 12px 32px rgba(14,20,36,.12),0 2px 6px rgba(14,20,36,.06);--p3-shadow-thumb:0 1px 2px rgba(14,20,36,.12);
  --p3-pop-line:transparent;
  --p3-ease:cubic-bezier(.2,.8,.2,1);--p3-fast:100ms;--p3-med:200ms;--p3-slow:500ms;
}
html.portal-v3:not([data-skin])[data-theme=dark]{
  --p3-bg:#0A0F1C;--p3-sidebar:#0D1322;--p3-surface:#111829;--p3-soft:#1A2236;--p3-nav-sel:#1C2539;--p3-hover:#161E30;--p3-field:#121A2C;
  --p3-muted:#9AA3B8;--p3-faint:#6B7489;
  --p3-primary-hover:var(--blue-400);--p3-primary-press:var(--blue-600);--p3-primary-disabled:#1A2F74;
  --p3-link:var(--blue-300);--p3-tint:#16224A;--p3-tint-2:#1C2C5E;--p3-tint-line:#2A3D7A;
  --p3-dark:#050A18;--p3-dark-sel:#24315A;--p3-veil:rgba(0,0,0,.55);
  --p3-shadow-card:none;--p3-shadow-pop:0 12px 32px rgba(0,0,0,.5);--p3-shadow-thumb:0 1px 2px rgba(0,0,0,.4);
  /* in dark mode every card and popover also has a 1px line */
  --p3-pop-line:var(--p3-line);
}
@media (prefers-color-scheme:dark){html.portal-v3:not([data-skin]):not([data-theme=light]){
  --p3-bg:#0A0F1C;--p3-sidebar:#0D1322;--p3-surface:#111829;--p3-soft:#1A2236;--p3-nav-sel:#1C2539;--p3-hover:#161E30;--p3-field:#121A2C;
  --p3-muted:#9AA3B8;--p3-faint:#6B7489;
  --p3-primary-hover:var(--blue-400);--p3-primary-press:var(--blue-600);--p3-primary-disabled:#1A2F74;
  --p3-link:var(--blue-300);--p3-tint:#16224A;--p3-tint-2:#1C2C5E;--p3-tint-line:#2A3D7A;
  --p3-dark:#050A18;--p3-dark-sel:#24315A;--p3-veil:rgba(0,0,0,.55);
  --p3-shadow-card:none;--p3-shadow-pop:0 12px 32px rgba(0,0,0,.5);--p3-shadow-thumb:0 1px 2px rgba(0,0,0,.4);
  --p3-pop-line:var(--p3-line);
}}
/* the page background, set on body in both themes */
html.portal-v3:not([data-skin]) body{background:var(--p3-bg)}
/* reduced motion: every transition and animation in the portal is instant */
@media (prefers-reduced-motion:reduce){
  html.portal-v3:not([data-skin]) *,html.portal-v3:not([data-skin]) *::before,html.portal-v3:not([data-skin]) *::after{transition-duration:0s!important;transition-delay:0s!important;animation-duration:0s!important;animation-delay:0s!important;animation-iteration-count:1!important}
}
