/* Rotation Coach OS — shared design system.
   The tokens below are the ones both sport applications already use (identical values in the Soccer and
   Volleyball builds). Shell and Meta are styled from these tokens so the OS looks like the same product as
   the sports. Sport modules ship their own complete stylesheets (loaded only while mounted); they redefine
   the same tokens with the same values, so nothing shifts when a sport mounts. */
:root{
  --bg:#f7f8fa; --bg2:#f4f6f8; --panel:#ffffff; --panel2:#f1f4f2; --panel3:#edf2ef;
  --line:#e6e9ed; --line2:#d8dee3; --text:#1f2937; --muted:#6b7280;
  --accent:#b8f06b; --accent-dark:#e8f6d5; --green:#54b95f; --yellow:#d9a91d; --orange:#df7a2e; --red:#d95445;
  --shadow:0 10px 28px rgba(31,41,55,.07);
  --rc-font:"Helvetica Neue",Helvetica,Arial,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --rc-radius:14px;
}
:root[data-theme="gray"]{
  --bg:#d9dde1; --bg2:#e3e6e9; --panel:#f7f8f9; --panel2:#e8ecef; --panel3:#e2e7ea;
  --line:#cbd2d8; --line2:#bcc5cc; --text:#202a33; --muted:#63707a;
  --accent:#ace665; --accent-dark:#dcefc6; --green:#4ba958; --yellow:#bf941c; --orange:#cf6d27; --red:#c94c40;
  --shadow:0 10px 28px rgba(31,41,55,.12);
}
:root[data-theme="dark"]{
  --bg:#081115; --bg2:#0b151a; --panel:#0e181d; --panel2:#132127; --panel3:#17272e;
  --line:#24363e; --line2:#31474f; --text:#f4f7f8; --muted:#95a6ae;
  --accent:#b8ee7d; --accent-dark:#253b24; --green:#77df7b; --yellow:#f2c74e; --orange:#f39545; --red:#ef6a58;
  --shadow:0 20px 50px rgba(0,0,0,.28);
}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:var(--rc-font)}
body{-webkit-tap-highlight-color:transparent}
/* ===== Chic-family Surfaces (Chic, Organic): shared semantic roles =======================================
   Review-only profiles; core/appearance.js makes them selectable only under a review policy. One vocabulary for the
   Shell, Meta and both sports: the --rcs-<role> colour roles below are generated from, and tested against,
   frontend/host/surface-profiles.ts (the names follow surface-semantics.ts). Mode modulates the profile; it never
   inverts or replaces it. The recipes after the colour roles are derived (material, depth, edges, interaction
   tints) so calibration tunes the few named roles and the rest follows. Classic and Atmosphere never match here. */
:root[data-surface="chic"]{--rcs-workspace-plane:#dfdede;--rcs-structure-plane:#cdcdcd;--rcs-content-plane:#e3e2e3;--rcs-ink-primary:#222222;--rcs-ink-secondary:#5c5c5c;--rcs-ink-inverse:#f7f7f7;--rcs-control-plane:#d1d0d0;--rcs-control-ink:#222222;--rcs-control-selected-plane:#444747;--rcs-control-selected-ink:#f7f7f7;--rcs-focus-ink:#222222;--rcs-state-success-ink:#3a7449;--rcs-state-warning-ink:#9a5b07;--rcs-state-error-ink:#b3321d;--rcs-state-disabled-ink:#8f8e8a;--rcs-information-time:#222222;--rcs-information-score:#222222;--rcs-information-next:#222222;--rcs-playing-area-plane:#5a5b5c;--rcs-playing-area-markings:#f1f0ed;--rcs-playing-card-plane:#c7c8c8;--rcs-playing-card-ink:#202020;--rcs-edge-chrome:#c9c8c8;--rcs-edge-playing-area:#525251;--rcs-edge-playing-card:#ffffff}
:root[data-surface="chic"][data-theme="dark"]{--rcs-workspace-plane:#181817;--rcs-structure-plane:#1f1f1e;--rcs-content-plane:#252524;--rcs-ink-primary:#ecebe7;--rcs-ink-secondary:#a8a6a1;--rcs-ink-inverse:#181817;--rcs-control-plane:#30302e;--rcs-control-ink:#ecebe7;--rcs-control-selected-plane:#ecebe7;--rcs-control-selected-ink:#181817;--rcs-focus-ink:#ecebe7;--rcs-state-success-ink:#86c493;--rcs-state-warning-ink:#e3ad55;--rcs-state-error-ink:#f2836e;--rcs-state-disabled-ink:#77756f;--rcs-information-time:#ecebe7;--rcs-information-score:#ecebe7;--rcs-information-next:#ecebe7;--rcs-playing-area-plane:#3d3d3c;--rcs-playing-area-markings:#d6d5d0;--rcs-playing-card-plane:#dcdbd6;--rcs-playing-card-ink:#181817;--rcs-edge-chrome:#353533;--rcs-edge-playing-area:#0f0f0f;--rcs-edge-playing-card:#f0efeb}
:root[data-surface="organic"]{--rcs-workspace-plane:#e0dcd9;--rcs-structure-plane:#c2a78b;--rcs-content-plane:#ddd9d5;--rcs-ink-primary:#24211f;--rcs-ink-secondary:#625b55;--rcs-ink-inverse:#faf8f4;--rcs-control-plane:#cec9c6;--rcs-control-ink:#24211f;--rcs-control-selected-plane:#464443;--rcs-control-selected-ink:#faf8f4;--rcs-focus-ink:#24211f;--rcs-state-success-ink:#3a7449;--rcs-state-warning-ink:#9a5b07;--rcs-state-error-ink:#b3321d;--rcs-state-disabled-ink:#8f8e8a;--rcs-information-time:#24211f;--rcs-information-score:#24211f;--rcs-information-next:#24211f;--rcs-playing-area-plane:#968f87;--rcs-playing-area-markings:#f2efe9;--rcs-playing-card-plane:#d2cecb;--rcs-playing-card-ink:#24211f;--rcs-edge-chrome:#cbc5c0;--rcs-edge-playing-area:#5f574d;--rcs-edge-playing-card:#ffffff}
:root[data-surface="organic"][data-theme="dark"]{--rcs-workspace-plane:#1c1a17;--rcs-structure-plane:#544433;--rcs-content-plane:#272420;--rcs-ink-primary:#ede9e2;--rcs-ink-secondary:#aca59a;--rcs-ink-inverse:#1c1a17;--rcs-control-plane:#332f29;--rcs-control-ink:#ede9e2;--rcs-control-selected-plane:#ede9e2;--rcs-control-selected-ink:#1c1a17;--rcs-focus-ink:#ede9e2;--rcs-state-success-ink:#86c493;--rcs-state-warning-ink:#e3ad55;--rcs-state-error-ink:#f2836e;--rcs-state-disabled-ink:#77756f;--rcs-information-time:#ede9e2;--rcs-information-score:#ede9e2;--rcs-information-next:#ede9e2;--rcs-playing-area-plane:#403d38;--rcs-playing-area-markings:#d8d3c9;--rcs-playing-card-plane:#ddd8cf;--rcs-playing-card-ink:#1c1a17;--rcs-edge-chrome:#39342d;--rcs-edge-playing-area:#2a251f;--rcs-edge-playing-card:#f0efeb}
/* -- recipes shared by the family (derived from the roles above) ------------------------------------------ */
:root:is([data-surface="chic"],[data-surface="organic"]){
  --rcs-material-structure:none;--rcs-material-structure-h:none;--rcs-material-size:auto;--rcs-material-size-h:auto;--rcs-material-height:720px;
  --rcs-structure-ink:var(--rcs-ink-primary);--rcs-structure-ink-secondary:var(--rcs-ink-secondary);
  --rcs-structure-hover:color-mix(in srgb,var(--rcs-ink-primary) 7%,transparent);
  --rcs-structure-selected-plane:var(--rcs-control-selected-plane);--rcs-structure-selected-ink:var(--rcs-control-selected-ink);
  --rcs-structure-match-ring:color-mix(in srgb,var(--rcs-ink-primary) 38%,transparent);
  --rcs-structure-rule:color-mix(in srgb,var(--rcs-ink-primary) 12%,transparent);
  --rcs-structure-control-plane:var(--rcs-control-plane);
  --rcs-structure-edge:none;
  --rcs-control-hover:color-mix(in srgb,var(--rcs-ink-primary) 7%,transparent);
  --rcs-control-plane-soft:color-mix(in srgb,var(--rcs-control-plane) 30%,transparent);
  --rcs-control-selected-hover:color-mix(in srgb,var(--rcs-control-selected-plane) 88%,var(--rcs-control-selected-ink));
  --rcs-edge-chrome-strong:color-mix(in srgb,var(--rcs-edge-chrome) 70%,var(--rcs-ink-primary));
  --rcs-state-due-ink:color-mix(in srgb,var(--rcs-state-warning-ink) 40%,var(--rcs-state-error-ink));
  --rcs-ink-on-state:#ffffff;
  --rcs-avatar-plane:color-mix(in srgb,var(--rcs-ink-secondary) 82%,var(--rcs-workspace-plane));--rcs-avatar-ink:var(--rcs-ink-inverse);
  --rcs-depth-chrome:0 1px 2px rgba(20,20,19,.05),0 6px 18px -12px rgba(20,20,19,.18);
  --rcs-depth-control:0 1px 2px rgba(20,20,19,.10),0 4px 12px -6px rgba(20,20,19,.22);
  /* a soft overhead light: brighter toward the far end, a quiet vignette toward the edges (the reference's lit graphite) */
  --rc-light-depth-stops:rgba(255,255,255,.03),rgba(0,0,0,0) 40%,rgba(0,0,0,0) 80%,rgba(0,0,0,.10);--rc-light-pool-size:130% 82%;--rc-light-pool-stops:rgba(248,250,255,.25),rgba(248,250,255,.21) 36%,rgba(248,250,255,.10) 66%,rgba(248,250,255,0) 94%;--rc-light-pool-focus:.44;--rc-light-vignette:radial-gradient(60% 96% at 50% 50%,rgba(0,0,0,0) 40%,rgba(0,0,0,.36) 100%);
  --rcs-playing-area-rim:color-mix(in srgb,var(--rcs-edge-playing-area) 70%,var(--rcs-playing-area-plane));
  --rcs-playing-area-line:color-mix(in srgb,var(--rcs-playing-area-markings) 74%,transparent);
  --rcs-playing-area-lane:color-mix(in srgb,var(--rcs-playing-area-markings) 82%,transparent);
  --rcs-playing-area-lane-soft:color-mix(in srgb,var(--rcs-playing-area-markings) 50%,transparent);
  /* the board: a soft contact shadow when flat; in 3D a visible edge (the slab) plus a long ambient shadow */
  --rcs-depth-playing-area-flat:0 2px 0 0 var(--rcs-edge-playing-area),0 22px 40px -22px rgba(0,0,0,.55);
  --rcs-depth-playing-area:0 1px 0 0 color-mix(in srgb,var(--rcs-edge-playing-area) 70%,#ffffff),0 9px 0 0 var(--rcs-edge-playing-area),0 30px 46px -18px rgba(0,0,0,.5);
  --rcs-playing-card-material:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,0) 62%);
  --rcs-playing-card-ink-secondary:color-mix(in srgb,var(--rcs-playing-card-ink) 84%,var(--rcs-playing-card-plane));
  --rcs-playing-card-selected:var(--rcs-playing-card-plane);
  /* state ink on the light card islands: the card stays light in Night, so its state inks are card-relative */
  --rcs-playing-card-warning-ink:color-mix(in srgb,var(--rcs-state-warning-ink) 68%,var(--rcs-playing-card-ink));--rcs-playing-card-due-ink:color-mix(in srgb,var(--rcs-state-due-ink) 74%,var(--rcs-playing-card-ink));--rcs-playing-card-error-ink:color-mix(in srgb,var(--rcs-state-error-ink) 78%,var(--rcs-playing-card-ink));
  --rcs-depth-card:0 1px 0 0 color-mix(in srgb,var(--rcs-edge-playing-card) 70%,transparent) inset,0 0 0 1px rgba(255,255,255,.22) inset,0 1px 2px rgba(0,0,0,.14),0 12px 22px -12px rgba(0,0,0,.42);
  color-scheme:light;
}
:root:is([data-surface="chic"],[data-surface="organic"])[data-theme="dark"]{
  --rcs-ink-on-state:#151514;
  --rcs-playing-card-warning-ink:color-mix(in srgb,var(--rcs-state-warning-ink) 42%,var(--rcs-playing-card-ink));--rcs-playing-card-due-ink:color-mix(in srgb,var(--rcs-state-due-ink) 48%,var(--rcs-playing-card-ink));--rcs-playing-card-error-ink:color-mix(in srgb,var(--rcs-state-error-ink) 55%,var(--rcs-playing-card-ink));
  --rcs-depth-chrome:0 1px 0 rgba(255,255,255,.03) inset,0 10px 24px -14px rgba(0,0,0,.6);
  --rcs-depth-control:0 1px 2px rgba(0,0,0,.4),0 6px 14px -8px rgba(0,0,0,.6);
  --rc-light-depth-stops:transparent,transparent;--rc-light-pool-size:110% 85%;--rc-light-pool-stops:rgba(255,255,255,.06),rgba(255,255,255,0) 60%;--rc-light-pool-focus:.15;--rc-light-vignette:radial-gradient(140% 110% at 50% 50%,rgba(0,0,0,0) 55%,rgba(0,0,0,.38) 100%);
  --rcs-playing-card-material:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 62%);
  --rcs-depth-card:0 1px 0 0 color-mix(in srgb,var(--rcs-edge-playing-card) 45%,transparent) inset,0 0 0 1px rgba(255,255,255,.12) inset,0 1px 2px rgba(0,0,0,.42),0 14px 24px -12px rgba(0,0,0,.7);
  color-scheme:dark;
}
:root[data-surface="chic"]:not([data-theme="dark"]){--rcs-structure-ink-secondary:color-mix(in srgb,var(--rcs-ink-primary) 75%,var(--rcs-structure-plane))}
:root[data-surface="chic"]{--rcs-material-structure:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,0) 42%,rgba(0,0,0,.035));--rcs-material-structure-h:linear-gradient(90deg,rgba(255,255,255,.26),rgba(255,255,255,0) 42%,rgba(0,0,0,.035))}
:root[data-surface="chic"][data-theme="dark"]{--rcs-material-structure:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 42%,rgba(0,0,0,.12));--rcs-material-structure-h:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,0) 42%,rgba(0,0,0,.12))}
/* Organic: Chic + controlled natural material. Oak on the structural rail and the Bench frame only (the board sits on a
   warm-stone edge); selected places on the wood are light, like an inlay. */
:root[data-surface="organic"]{
  --rcs-material-structure:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='720'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12 0.003' numOctaves='4' seed='4' stitchTiles='stitch' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.004' numOctaves='2' seed='5' stitchTiles='stitch' result='d'/%3E%3CfeDisplacementMap in='g' in2='d' scale='40' xChannelSelector='R' yChannelSelector='G' result='gd'/%3E%3CfeColorMatrix in='gd' type='matrix' values='0 0 0 0 0.47 0 0 0 0 0.33 0 0 0 0 0.18 1.25 0 0 0 -0.5625'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.0025' numOctaves='2' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.47 0 0 0 0 0.33 0 0 0 0 0.18 1.1 0 0 0 -0.49500000000000005'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8 0.015' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 0.96 0 0 0 0 0.88 0.5 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23c2a78b'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23s%29'/%3E%3C/svg%3E");--rcs-material-size:240px 720px;
  --rcs-material-structure-h:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.12' numOctaves='4' seed='4' stitchTiles='stitch' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.012' numOctaves='2' seed='5' stitchTiles='stitch' result='d'/%3E%3CfeDisplacementMap in='g' in2='d' scale='40' xChannelSelector='R' yChannelSelector='G' result='gd'/%3E%3CfeColorMatrix in='gd' type='matrix' values='0 0 0 0 0.47 0 0 0 0 0.33 0 0 0 0 0.18 1.25 0 0 0 -0.5625'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.035' numOctaves='2' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.47 0 0 0 0 0.33 0 0 0 0 0.18 1.1 0 0 0 -0.49500000000000005'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 0.96 0 0 0 0 0.88 0.5 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23c2a78b'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23s%29'/%3E%3C/svg%3E");--rcs-material-size-h:720px 240px;
  --rcs-structure-ink-secondary:color-mix(in srgb,var(--rcs-ink-primary) 78%,var(--rcs-structure-plane));
  --rcs-structure-hover:rgba(255,255,255,.28);
  --rcs-structure-selected-plane:var(--rcs-content-plane);--rcs-structure-selected-ink:var(--rcs-ink-primary);
  --rcs-structure-match-ring:color-mix(in srgb,var(--rcs-ink-primary) 45%,transparent);
  --rcs-structure-rule:rgba(60,40,20,.18);
  --rcs-structure-control-plane:rgba(255,255,255,.42);
  --rcs-structure-edge:inset -1px 0 0 rgba(60,40,20,.12),6px 0 18px -14px rgba(60,40,20,.45);
  --rcs-depth-playing-area-flat:0 2px 0 0 var(--rcs-edge-playing-area),0 22px 40px -22px rgba(40,25,10,.45);
  --rcs-depth-playing-area:0 1px 0 0 color-mix(in srgb,var(--rcs-edge-playing-area) 70%,#f2e6d6),0 9px 0 0 var(--rcs-edge-playing-area),0 30px 46px -18px rgba(40,25,10,.4);
}
:root[data-surface="organic"][data-theme="dark"]{
  --rcs-material-structure:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='720'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12 0.003' numOctaves='4' seed='4' stitchTiles='stitch' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.004' numOctaves='2' seed='5' stitchTiles='stitch' result='d'/%3E%3CfeDisplacementMap in='g' in2='d' scale='40' xChannelSelector='R' yChannelSelector='G' result='gd'/%3E%3CfeColorMatrix in='gd' type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 1.2 0 0 0 -0.54'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.0025' numOctaves='2' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 1.0 0 0 0 -0.45'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8 0.015' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0 0.52 0.5 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23544433'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23s%29'/%3E%3C/svg%3E");--rcs-material-structure-h:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.12' numOctaves='4' seed='4' stitchTiles='stitch' result='g'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.012' numOctaves='2' seed='5' stitchTiles='stitch' result='d'/%3E%3CfeDisplacementMap in='g' in2='d' scale='40' xChannelSelector='R' yChannelSelector='G' result='gd'/%3E%3CfeColorMatrix in='gd' type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 1.2 0 0 0 -0.54'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0025 0.035' numOctaves='2' seed='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 1.0 0 0 0 -0.45'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0 0.52 0.5 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23544433'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23b%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23w%29'/%3E%3Crect width='100%25' height='100%25' filter='url%28%23s%29'/%3E%3C/svg%3E");
  --rcs-structure-ink:var(--rcs-ink-primary);
  /* Native-font integration: existing Night ink mix 80% → 81% for the oak navigation label. */
  --rcs-structure-ink-secondary:color-mix(in srgb,var(--rcs-ink-primary) 81%,var(--rcs-structure-plane));
  --rcs-structure-hover:rgba(255,240,220,.10);
  --rcs-structure-selected-plane:var(--rcs-ink-primary);--rcs-structure-selected-ink:var(--rcs-ink-inverse);
  --rcs-structure-rule:rgba(255,235,210,.14);
  --rcs-structure-control-plane:rgba(255,240,220,.10);
  --rcs-structure-edge:inset -1px 0 0 rgba(0,0,0,.3),6px 0 18px -14px rgba(0,0,0,.7);
  --rcs-depth-playing-area-flat:0 2px 0 0 var(--rcs-edge-playing-area),0 22px 40px -22px rgba(0,0,0,.7);
  --rcs-depth-playing-area:0 1px 0 0 color-mix(in srgb,var(--rcs-edge-playing-area) 75%,#d9c3a5),0 9px 0 0 var(--rcs-edge-playing-area),0 30px 46px -18px rgba(0,0,0,.7);
}
@media (prefers-reduced-transparency:reduce){:root:is([data-surface="chic"],[data-surface="organic"]){--rcs-playing-card-material:linear-gradient(transparent,transparent)}}
/* the shared tokens every renderer already reads (Shell, Meta, both sports), resolved from the roles; [data-theme] keeps
   this above the sports' own :root / :root[data-theme] token blocks, which load later */
:root:is([data-surface="chic"],[data-surface="organic"])[data-theme]{
  --bg:var(--rcs-workspace-plane);--bg2:var(--rcs-structure-plane);--panel:var(--rcs-content-plane);
  --panel2:color-mix(in srgb,var(--rcs-control-plane) 60%,var(--rcs-content-plane));--panel3:var(--rcs-control-plane);
  --line:var(--rcs-edge-chrome);--line2:var(--rcs-edge-chrome-strong);--text:var(--rcs-ink-primary);--muted:var(--rcs-ink-secondary);
  --accent:var(--rcs-control-selected-plane);--accent-dark:var(--rcs-control-plane);
  --green:var(--rcs-state-success-ink);--yellow:var(--rcs-state-warning-ink);--orange:var(--rcs-state-due-ink);--red:var(--rcs-state-error-ink);
  --shadow:var(--rcs-depth-chrome);
}
/* BEGIN VDS1 TYPOGRAPHY COMPONENT TOKENS v1 */
/* VDS-1 first visual candidate: the finite typography and component vocabulary, declared once here and consumed by the
   Shell (shell/shell.css) and Soccer (legacy/soccer.html) VDS1 consumer blocks. Values are the owner-authorised
   PROVISIONAL first-candidate starting values from CALIBRATION.md; they are not final numerical or visual acceptance.
   The family itself stays the one --rc-font declaration above. Weights use only the approved Helvetica Neue faces
   (300/400/500, 700 for rare strong emphasis): there is no 600 face and no font file is shipped. Geometry tokens are
   component dimensions; the canonical fitter measures the rendered border boxes (rcfCardMetrics), never these values. */
:root{
  /* weights */
  --rc-weight-light:300;--rc-weight-regular:400;--rc-weight-medium:500;--rc-weight-strong:700;
  --rc-numeric:tabular-nums;
  /* semantic type roles: size / leading / weight (tracking only where the calibration names it) */
  --rc-type-identity-size:20px;--rc-type-identity-leading:24px;--rc-type-identity-weight:500;
  --rc-type-heading-size:18px;--rc-type-heading-leading:22px;--rc-type-heading-weight:500;
  --rc-type-nav-size:16px;--rc-type-nav-leading:20px;--rc-type-nav-weight:400;--rc-type-nav-match-weight:500;
  --rc-type-match-value-size:22px;--rc-type-match-value-leading:26px;--rc-type-match-value-weight:500;
  --rc-type-button-size:14px;--rc-type-button-leading:18px;--rc-type-button-weight:500;
  --rc-type-secondary-size:12px;--rc-type-secondary-leading:16px;--rc-type-secondary-weight:400;
  --rc-type-micro-size:11px;--rc-type-micro-leading:14px;--rc-type-micro-weight:400;--rc-type-micro-tracking:.02em;
  --rc-type-status-size:12px;--rc-type-status-leading:14px;--rc-type-status-weight:500;
  --rc-type-card-name-size:16px;--rc-type-card-name-leading:19px;--rc-type-card-name-weight:500;
  --rc-type-card-number-size:16px;--rc-type-card-number-leading:19px;--rc-type-card-number-weight:500;
  --rc-type-card-position-size:11px;--rc-type-card-position-leading:14px;--rc-type-card-position-weight:500;
  --rc-type-card-time-size:16px;--rc-type-card-time-leading:19px;--rc-type-card-time-weight:500;
  --rc-type-bench-name-size:14px;--rc-type-bench-name-leading:18px;--rc-type-bench-name-weight:500;
  /* player card: REGULAR variant (the 120x74 candidate starting value, 3D boards), the sideways 2D board (established
     widths: 120x74 measurably overlaps there), the existing <=1200px landscape variant and the existing tablet-portrait variant. The compact landscape and phone variants keep their established geometry. */
  --rc-card-w:120px;--rc-card-min-h:74px;--rc-card-pad-y:10px;--rc-card-pad-x:12px;--rc-card-radius:12px;--rc-card-gap:6px;--rc-card-data-gap:10px;--rc-card-position-size:24px;
  --rc-card-flat-w:104px;--rc-card-flat-medium-w:94px;--rc-card-flat-min-h:65px;--rc-card-flat-pad-y:8px;--rc-card-flat-pad-x:10px;--rc-card-flat-position-size:22px;--rc-card-flat-data-gap:6px;
  --rc-card-medium-w:108px;--rc-card-medium-min-h:68px;--rc-card-medium-pad-y:8px;--rc-card-medium-pad-x:10px;--rc-card-medium-position-size:22px;
  --rc-card-portrait-w:78px;--rc-card-portrait-min-h:42px;--rc-card-portrait-pad-y:5px;--rc-card-portrait-pad-x:7px;--rc-card-portrait-radius:10px;--rc-card-portrait-gap:3px;--rc-card-portrait-data-gap:5px;--rc-card-portrait-position-size:18px;
  --rc-type-card-portrait-name-size:12px;--rc-type-card-portrait-name-leading:14px;--rc-type-card-portrait-data-size:12px;--rc-type-card-portrait-position-size:9px;
  --rc-card-compact-radius:10px;
  /* Bench rows (regular, non-phone): 54-56px stride with the established 6px list gap */
  --rc-bench-row-pad-y:7px;
  /* position badge paint: Classic and Atmosphere use the dark stop of their existing avatar gradient (.av), so neither
     palette gains a colour; white on it is 6.4:1 at the badge's 11px */
  --rc-card-position-plane:#2f6b3f;--rc-card-position-ink:#ffffff;
}
/* Chic / Organic bind the component paint to their card roles: the card stays light in both Modes, so the position badge
   is the card ink with the card plane as its ink (one source: the --rcs roles above). */
:root:is([data-surface="chic"],[data-surface="organic"]){--rc-card-position-plane:var(--rcs-playing-card-ink);--rc-card-position-ink:var(--rcs-playing-card-plane)}
/* VDS-1 second visual continuation: HEADER-L identity (wordmark + descriptor) inside the existing rail, HEADER-R context.
   Provisional calibration against R01/R02 at the canonical 168px rail (the reference rail is ~218px). */
:root{
  --rc-identity-mark-size:26px;--rc-identity-mark-tracking:-.015em;--rc-identity-rota-weight:700;--rc-identity-coach-weight:300;
  --rc-identity-inset:12px;--rc-identity-margin-top:20px;--rc-identity-margin-bottom:24px;
  --rc-nav-icon-size:20px;--rc-nav-icon-col:24px;--rc-nav-icon-gap:12px;--rc-nav-inset:12px;--rc-nav-radius:14px;
  --rc-type-hud-control-size:17px;--rc-type-hud-control-leading:20px;--rc-hud-readout-pad-x:16px;
  --rc-type-bench-count-size:13px;--rc-type-bench-count-leading:16px;--rc-plan-action-h:44px;--rc-type-plan-action-size:15px;--rc-type-plan-action-leading:18px;
  --rc-type-bench-heading-size:15px;--rc-type-bench-heading-leading:19px;
  --rc-type-card-dense-size:14px;--rc-type-card-dense-leading:17px;
  --rc-header-weather-w:58px;--rc-header-block-wide-max:330px;--rc-header-context-size:15px;--rc-header-context-leading:19px;--rc-header-context-weight:500;
}
/* The canonical <=1200px landscape rail is 150px wide: the identity and nav columns step down so the wordmark and
   one-line labels stay inside the rail (no rail overflow, no wrapped 'Game Plan'). */
@media (max-width:1200px){:root{--rc-identity-mark-size:22px;--rc-identity-inset:10px;--rc-nav-icon-size:18px;--rc-nav-icon-col:22px;--rc-nav-icon-gap:10px;--rc-nav-inset:10px}}
/* END VDS1 TYPOGRAPHY COMPONENT TOKENS v1 */

/* BEGIN VDS1 PITCH EDGE CALIBRATION v1
   Provisional geometry/calibration boundary, not reference-fidelity acceptance.
   Thickness in pre-projection CSS px. No relation to Scale/Z/camera or card fitting.
   VDS-1 second convergence calibration (R02 primary, R03 supplemental, R01 for Chic): the references show a thin dark
   crease where the playing area meets its perimeter (about 3-4 screen px at the near edge) and a soft spatial shadow
   that starts dark directly under the edge and fades over roughly 45 (R02) to 80 (R01) screen px. The geometry
   (depth/bevel) is ONE shared declaration for every Surface; materials stay per Surface. */
:root{
  --rc-edge-depth:4;--rc-edge-bevel:.5;
}
:root:is([data-surface="chic"],[data-surface="organic"]){
  --rc-edge-bevel-material:var(--rcs-playing-area-rim);
  --rc-edge-side-material:var(--rcs-edge-playing-area);
  --rc-edge-shadow:0 16px 24px -12px rgba(0,0,0,.35);
}
/* Classic and Atmosphere: the same shared geometry with each Surface's own material identity (Classic turf, Atmosphere
   glass-lit turf). All four use the same canonical edge mesh; only these material values differ. */
:root[data-surface="classic"]{
  --rc-edge-bevel-material:#3f7d44;
  --rc-edge-side-material:#2b5a30;
  --rc-edge-shadow:inset 0 0 0 3px var(--rc-edge-side-material),0 0 0 1.5px var(--rc-edge-side-material),0 3px 6px 0 rgba(0,0,0,.26),0 9px 30px 0 rgba(0,0,0,.24);
}
:root[data-surface="atmosphere"]{
  --rc-edge-bevel-material:#8fd08a;
  --rc-edge-side-material:#2f7a35;
  --rc-edge-shadow:inset 0 0 0 3px var(--rc-edge-side-material),0 0 0 1.5px var(--rc-edge-side-material),0 3px 8px 0 rgba(10,50,20,.24),0 10px 36px 0 rgba(10,50,20,.26);
}
/* Organic: walnut-grey crease (R03 frame #655548 / near face #4d433c) and a warm soft shadow (R02). */
:root[data-surface="organic"]{
  --rc-edge-bevel-material:#5f5246;
  --rc-edge-side-material:#4a4038;
  --rc-edge-shadow:inset 0 0 0 3px var(--rc-edge-side-material),0 0 0 1.5px var(--rc-edge-side-material),0 4px 8px 0 rgba(40,28,16,.46),0 16px 40px 8px rgba(48,34,20,.56);
}
/* Chic: graphite crease and a longer neutral shadow (R01). */
:root[data-surface="chic"]{
  --rc-edge-bevel-material:#4b4b4a;
  --rc-edge-side-material:#333332;
  --rc-edge-shadow:inset 0 0 0 3px var(--rc-edge-side-material),0 0 0 1.5px var(--rc-edge-side-material),0 4px 8px 0 rgba(0,0,0,.36),0 16px 64px 4px rgba(0,0,0,.42);
}
/* Night: the crease stays darker than the Night plane (#403d38 / #3d3d3c) and the shadow deepens; no Night reference
   exists, so these are provisional derived values. */
:root:is([data-surface="chic"],[data-surface="organic"])[data-theme="dark"]{
  --rc-edge-bevel-material:var(--rcs-playing-area-rim);
  --rc-edge-side-material:var(--rcs-edge-playing-area);
  --rc-edge-shadow:inset 0 0 0 3px var(--rc-edge-side-material),0 0 0 1.5px var(--rc-edge-side-material),0 3px 6px 0 rgba(0,0,0,.5),0 10px 40px 0 rgba(0,0,0,.55);
}
/* END VDS1 PITCH EDGE CALIBRATION v1 */

/* BEGIN RC-COMP-04 GROUNDED CARD MATERIAL v1
 * Claude calibration seam: --rc-card-ground-paint and bounded width/length/light ratios.
 * No paint is selected by the renderer prerequisite. Visual calibration is pending.
 */
:root{--rc-card-ground-width:1.2;--rc-card-ground-length:1.7;--rc-card-ground-light:.15;--rc-card-ground-flat-width:1.04;--rc-card-ground-flat-length:1.2;--rc-card-ground-flat-light:.2}
:root .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(0,0,0,.5),rgba(0,0,0,.38) 30%,rgba(0,0,0,.14) 65%,transparent 100%)}
:root[data-surface="organic"] .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(38,26,16,.5),rgba(38,26,16,.38) 30%,rgba(38,26,16,.14) 65%,transparent 100%)}
:root[data-surface="classic"] .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(14,46,20,.44),rgba(14,46,20,.32) 30%,rgba(14,46,20,.11) 65%,transparent 100%)}
:root[data-surface="atmosphere"]{--rc-card-ground-width:1.25;--rc-card-ground-length:1.8}
:root[data-surface="atmosphere"] .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(10,52,28,.34),rgba(10,52,28,.24) 32%,rgba(10,52,28,.08) 68%,transparent 100%)}
:root .pitch-card[data-rcf-view="2d"] #pitch .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(0,0,0,.3),rgba(0,0,0,.22) 55%,rgba(0,0,0,.08) 82%,transparent 100%)}
:root[data-surface="classic"] .pitch-card[data-rcf-view="2d"] #pitch .rcf-card-ground,:root[data-surface="atmosphere"] .pitch-card[data-rcf-view="2d"] #pitch .rcf-card-ground{--rc-card-ground-paint:radial-gradient(ellipse farthest-side at 50% var(--rc-card-contact-y,50%),rgba(14,46,20,.3),rgba(14,46,20,.22) 55%,rgba(14,46,20,.08) 82%,transparent 100%)}
/* END RC-COMP-04 GROUNDED CARD MATERIAL v1 */

/* BEGIN VDS1 ENVIRONMENTAL LIGHT CALIBRATION v1
 * Astra-owned local assembly prevents inherited custom-property resolution from
 * freezing renderer coordinates at :root. Claude owns only declared paint values.
 * Game Plan shares this material at its natural flat orientation (no extra renderer).
 * Neutral strengths/absent reflection preserve accepted material until calibration.
 */
:root{--rc-light-key-rgb:255,255,255;--rc-light-bevel-strength:0;--rc-light-side-strength:0;--rc-light-card-reflection:none}
:root[data-surface="chic"]:not([data-theme="dark"]){--rc-light-key-rgb:246,248,252;--rc-light-bevel-strength:.9;--rc-light-side-strength:.35;--rc-light-card-reflection:radial-gradient(closest-side,rgba(255,255,255,.78),rgba(255,255,255,.22) 60%,rgba(255,255,255,0))}
:root[data-surface="organic"]:not([data-theme="dark"]){--rc-light-depth-stops:rgba(255,246,232,.03),rgba(0,0,0,0) 40%,rgba(30,20,10,0) 76%,rgba(30,20,10,.18);--rc-light-pool-size:130% 80%;--rc-light-pool-stops:rgba(255,244,226,.40),rgba(255,244,226,.30) 34%,rgba(255,244,226,.11) 64%,rgba(255,244,226,0) 90%;--rc-light-pool-focus:.44;--rc-light-vignette:radial-gradient(66% 78% at 50% 50%,rgba(0,0,0,0) 40%,rgba(30,20,10,.26) 100%);--rc-light-key-rgb:255,240,220;--rc-light-bevel-strength:.9;--rc-light-side-strength:.35;--rc-light-card-reflection:radial-gradient(closest-side,rgba(255,248,236,.72),rgba(255,248,236,.2) 60%,rgba(255,248,236,0))}
:root:is([data-surface="chic"],[data-surface="organic"])[data-theme="dark"]{--rc-light-key-rgb:255,255,255;--rc-light-bevel-strength:0;--rc-light-side-strength:0;--rc-light-card-reflection:none}
:root:is([data-surface="chic"],[data-surface="organic"]) :is(.pitch-card #pitch,.gp-pitch2){--rcs-playing-area-light:linear-gradient(var(--rc-light-angle,180deg),var(--rc-light-depth-stops)),radial-gradient(var(--rc-light-pool-size) at var(--rc-light-x,50%) var(--rc-light-y,calc(50% - var(--rc-light-pool-focus) * 100%)),var(--rc-light-pool-stops)),var(--rc-light-vignette)}
/* END VDS1 ENVIRONMENTAL LIGHT CALIBRATION v1 */

/* Shared owner-approved Match Conclusion presentation (extracted unchanged from Soccer). */
.match-conclusion-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line2);border-radius:20px;padding:22px;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;box-shadow:0 20px 65px #0004}
.match-conclusion-dialog::backdrop{background:#10182038}
.match-conclusion-dialog h2{margin:0 0 8px;font-size:22px;line-height:1.25}
.match-conclusion-dialog p{font-size:13px;line-height:1.45}
.match-conclusion-dialog form>label{display:block;font-size:13px;font-weight:750;margin:12px 0 5px}
.match-conclusion-dialog input,.match-conclusion-dialog select,.match-conclusion-dialog textarea{width:100%;box-sizing:border-box;background:var(--panel2);color:var(--text);border:1px solid var(--line2);border-radius:8px;padding:8px;font:inherit;font-size:14px}
.match-conclusion-dialog fieldset{margin:14px 0;border:1px solid var(--line2);border-radius:12px;padding:12px}
.match-conclusion-dialog fieldset>label{display:block;font-size:12px;margin:10px 0 5px}
.match-conclusion-score-inputs{display:flex;gap:12px;margin-top:10px}.match-conclusion-score-inputs label{flex:1;min-width:0;font-size:12px}
.match-conclusion-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.match-conclusion-error{color:var(--red)}
.match-concluded-card{text-align:center;width:min(620px,calc(100vw - 32px))}
.match-concluded-card[open]{animation:matchConcludedReveal 1000ms cubic-bezier(.22,.8,.25,1) both}
.match-concluded-saved,.match-concluded-meta{color:var(--muted);margin:6px 0}
.match-concluded-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center;margin:22px 0 12px}
.match-concluded-score small{display:block;text-transform:uppercase;font-size:10px;color:var(--muted);margin-bottom:5px}
.match-concluded-score strong{font-size:17px;overflow-wrap:anywhere;line-height:1.25}
.match-concluded-score>b{white-space:nowrap;font-size:32px;font-variant-numeric:tabular-nums}.match-concluded-score>b span{color:var(--muted)}
.match-concluded-events{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line2);padding-top:10px;margin-top:15px;text-align:left}
.match-concluded-events h3{font-size:13px;margin:8px 0}.match-concluded-events ul{list-style:none;padding:0;margin:0;font-size:12px;line-height:1.8}.match-concluded-events li>span{color:var(--muted)}
.match-concluded-totals{font-weight:700}.match-concluded-card .match-conclusion-actions{justify-content:center}
@keyframes matchConcludedReveal{from{transform:translateY(24px) scale(.96);clip-path:inset(0 0 100% 0 round 20px)}to{transform:translateY(0) scale(1);clip-path:inset(0 round 20px)}}
@media(prefers-reduced-motion:reduce){.match-concluded-card[open]{animation:none}}
@media(max-width:500px){.match-conclusion-dialog{padding:16px}.match-concluded-score{gap:8px}.match-concluded-score strong{font-size:14px}.match-concluded-score>b{font-size:26px}.match-concluded-events{gap:12px}}
/* Same report card and controls in the Match dialog and authenticated receiving-coach route. */
.rc-match-report-page{height:100%;overflow:auto;box-sizing:border-box;background:var(--bg);color:var(--text);font-family:var(--rc-font)}
.rc-match-report-page>.match-concluded-card{margin:24px auto;max-height:none}
.rc-match-report-page>.rc-checkin-panel{margin-bottom:0}.rc-match-report-page>.rc-checkin-panel+.match-concluded-card{margin-top:16px}
.rc-match-report-page>.match-concluded-card[data-concluded="true"]{animation:matchConcludedReveal 1000ms cubic-bezier(.22,.8,.25,1) both}
.rc-match-report .match-conclusion-actions,.rc-checkin-panel .match-conclusion-actions{flex-wrap:wrap}
.rc-match-report .btn,.rc-checkin-panel .btn{min-height:44px;border:1px solid var(--line2);border-radius:12px;padding:8px 16px;font:inherit;font-size:14px;font-weight:850;background:var(--panel);color:var(--text);box-shadow:0 2px 7px #1f29370a;cursor:pointer}
.rc-match-report .btn.primary,.rc-checkin-panel .btn.primary{background:var(--accent);color:var(--rcs-control-selected-ink,#18320f);border-color:transparent}
.rc-match-report .btn:hover,.rc-checkin-panel .btn:hover{filter:brightness(.96)}
.rc-match-report .btn:focus-visible,.rc-match-report summary:focus-visible,.rc-checkin-panel .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rc-match-report .btn:disabled,.rc-checkin-panel .btn:disabled{opacity:.45;cursor:not-allowed}
:root:is([data-surface="chic"],[data-surface="organic"]) .rc-match-report .btn,:root:is([data-surface="chic"],[data-surface="organic"]) .rc-checkin-panel .btn{background:var(--rcs-control-plane);color:var(--rcs-control-ink);border-color:transparent;border-radius:999px;box-shadow:none}
:root:is([data-surface="chic"],[data-surface="organic"]) .rc-match-report .btn.primary,:root:is([data-surface="chic"],[data-surface="organic"]) .rc-checkin-panel .btn.primary{background:var(--rcs-control-selected-plane);color:var(--rcs-control-selected-ink);box-shadow:var(--rcs-depth-control)}
.rc-match-report form,.rc-match-report-note,.rc-match-report-details{text-align:left}
.rc-match-report .match-report-field-error{display:block;font-size:13px;line-height:1.45;font-weight:500;margin:6px 0 0;color:var(--red)}
.rc-match-report [aria-invalid="true"]{border-color:var(--red)}
.rc-match-report-note{margin-top:16px}.rc-match-report-note label{display:block;font-size:13px;font-weight:750;margin-bottom:10px}
.rc-match-report-note .btn{margin:4px 8px 0 0}
.rc-match-report-details{border-top:1px solid var(--line2);margin-top:20px;padding-top:12px;font-size:13px;overflow-wrap:anywhere}
.rc-match-report-details summary{cursor:pointer;padding:6px 0;font-weight:700}.rc-match-report-details li{margin:6px 0}
@media(prefers-reduced-motion:reduce){.rc-match-report-page>.match-concluded-card[data-concluded="true"]{animation:none}}
/* Match the native dialog's viewport margin on the same card mounted as a page section. */
.rc-match-report-page>.match-concluded-card{max-width:calc(100vw - 2em - 6px)}

/* Team development uses the selected Surface in the Soccer workspace and the scoped staff route. */
.tg-assistant{max-width:1100px;margin:auto;padding:clamp(12px,3vw,32px);height:100%;overflow:auto;box-sizing:border-box}
.tg{display:grid;gap:14px;min-width:0;max-width:1100px;color:var(--text);font-family:var(--rc-font);overflow-wrap:anywhere}
.tg header,.tg-actions{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.tg header p,.tg time{color:var(--muted)}
.tg h2,.tg h3,.tg p{margin:0}.tg p:empty{display:none}
.tg button{border:1px solid var(--line2);border-radius:11px;background:var(--panel);color:var(--text);font:inherit;font-weight:700;padding:8px 14px;min-height:40px;cursor:pointer}
.tg button.primary{background:var(--accent);color:var(--rcs-control-selected-ink,#18320f)}
.tg button:disabled{opacity:.55;cursor:default}.tg :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tg-card,.tg-table{min-width:0;border:1px solid var(--line2);border-radius:16px;background:var(--panel)}
.tg-card{padding:16px;display:grid;gap:12px}.tg details>summary{cursor:pointer;font-weight:700;padding:6px 0}
.tg-actions{justify-content:flex-start}.tg-editor fieldset{border:0;padding:0;margin:0;min-width:0}
.tg-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;margin:12px 0}
.tg-fields label{display:grid;gap:4px;font-weight:700;min-width:0}
.tg-fields :is(input,select,textarea){box-sizing:border-box;width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2);color:var(--text);font:inherit}
.tg-span{grid-column:1/-1}.tg textarea{min-height:68px;resize:vertical}
.tg-table table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}.tg-table caption{text-align:left;font-weight:800;padding:12px}
.tg-table :is(td,th){padding:10px 12px;border-bottom:1px solid var(--line)}.tg-table th{background:var(--panel2)}
.tg-permission{display:flex;align-items:center;gap:8px;padding:8px 0}
.tg ol{padding-inline-start:1.5rem}.tg li{margin-block:8px}.tg input[type=checkbox]{accent-color:var(--accent)}
@media(min-width:851px){.tg-table th,.tg-table td:nth-child(5){overflow-wrap:normal}}
@media(max-width:850px){.tg-table thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
 .tg .tg-table :is(table,caption,tbody,tr,td){display:block;width:100%;box-sizing:border-box}.tg-table tbody tr{padding:8px 12px;border-top:1px solid var(--line)}
 .tg-table tbody td{border:0;padding:4px 0}.tg-table td[data-label]::before{content:attr(data-label) ' · ';color:var(--muted);font-weight:650}
}
@media(prefers-reduced-motion:no-preference){.tg-editor{animation:rc-goal-enter .14s ease-out}@keyframes rc-goal-enter{from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:none}}}

.tg-editor .tg-fields:has(.tg-success){grid-template-columns:repeat(2,minmax(0,1fr))}
.tg-combo,.tg-guided-description{min-width:0;display:grid;gap:4px;align-content:start}
/* Roster field border and Game Plan chevron, with the existing input and toggle
   sharing one field. Native measurement selects keep their own hit area. */
.tg-combo-field,.tg-select-field{position:relative;display:block;min-width:0}
.tg-editor .tg-combo-field input,.tg-editor .tg-target-row :is(input:not([type=hidden]),select){
  height:42px;min-width:0;font:inherit;font-size:1rem;font-weight:400;line-height:1.25;
}
.tg-editor .tg-combo-field input,.tg-editor .tg-select-field select{padding-inline-end:42px}
.tg-editor .tg-select-field select{appearance:none;-webkit-appearance:none;cursor:pointer}
.tg-combo-field button{
  position:absolute;inset-block:1px;inset-inline-end:1px;width:40px;min-height:0;
  display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;
}
.tg-combo-field button::after,.tg-select-field::after{
  content:"";box-sizing:content-box;width:6px;height:6px;border:solid currentColor;
  border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);pointer-events:none;
}
.tg-select-field::after{position:absolute;inset-inline-end:17px;top:calc(50% - 3px);color:var(--muted)}
.tg-editor :focus-visible{outline:2px solid var(--rcs-focus-ink,var(--accent));outline-offset:2px}
.tg-combo-field button:focus-visible{outline-offset:-3px}
.tg-combo-field button:hover{color:var(--text)}
.tg-combo [role=listbox]{list-style:none;margin:0;padding:4px;max-height:12rem;overflow:auto;background:var(--panel);border:1px solid var(--line2);border-radius:10px}
.tg-combo [role=option],.tg-combo [role=presentation]{margin:0;padding:8px 10px;border-radius:6px}.tg-combo [role=option]{cursor:pointer}
.tg-combo [role=option]:is(:hover,[aria-selected=true]){background:var(--panel2);box-shadow:inset 0 0 0 1px var(--line2)}
.tg-guided-description>button{justify-self:start}.tg-suggested-copy p,.tg-hint{color:var(--muted);margin:6px 0}
.tg-success legend{font-weight:750;margin:0 0 6px}.tg-target-row{display:grid;grid-template-columns:minmax(6rem,9rem) minmax(0,22rem);gap:8px 12px;align-items:end}
.tg-target-row label{font-size:.92em}.tg-starting-values{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.tg-starting-values span{color:var(--muted);font-size:.9em}.tg-starting-values button{
  min-height:26px;padding:3px 9px;border:1px solid transparent;border-radius:999px;
  background:var(--panel2);color:var(--muted);box-shadow:none;font-size:12px;font-weight:700;line-height:1.4;
}
.tg-starting-values button:hover{border-color:var(--line);color:var(--text)}
@media(pointer:coarse){.tg-starting-values button{min-height:32px}}
@media(max-width:600px){.tg-editor .tg-fields:has(.tg-success),.tg-target-row{grid-template-columns:minmax(0,1fr)}}
.tg-context{display:grid;gap:4px;margin-top:10px}.tg-target-row>label:only-of-type{grid-column:1/-1}
