/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Range Console — Paper & Ink tokens.
   Poster language inspired by tactical shooters; no Riot typeface, logo or
   in-game layout is copied. Display faces are self-hosted OFL with a separate
   Vietnamese subset so diacritics never fall back to a different family. */

@font-face {
  font-family: 'Range Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/anton-vietnamese-400.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Range Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/anton-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Range Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira-condensed-vietnamese-600.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Range Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira-condensed-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Range Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/saira-condensed-vietnamese-700.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Range Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/saira-condensed-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Gaming display family selected through UI UX Pro Max, with Vietnamese parity. */
@font-face {
  font-family: 'Training Aim Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-600.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Training Aim Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Training Aim Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-700.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Training Aim Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Reference palette. The live theme maps these colours onto surface roles. */
  --rc-paper: #ece8e1;
  --rc-paper-sunk: #e3ded5;
  --rc-paper-raise: #f7f4ee;
  --rc-ink: #0f1923;
  --rc-ink-soft: #1b2733;
  --rc-slate: #5a6672;
  --rc-rule: #c9c2b6;
  --rc-rule-strong: #9d9689;
  --rc-signal: #ff4655;
  --rc-signal-hover: #ff5c68;
  --rc-signal-text: #c4243a;
  --rc-on-signal: #141a20;
  --rc-alert: #ff4655;
  --rc-on-alert: #141a20;
  --rc-ice: #0e7c93;
  --rc-ocean: #3b9cff;
  --rc-ocean-hover: #64b2ff;
  --rc-ocean-text: #185fa8;
  --rc-danger: #c4243a;
  --rc-ok-text: #1c6b48;
  --rc-warn-text: #84590a;

  --rc-night: #090d12;
  --rc-night-2: #111923;
  --rc-night-3: #1c2d40;
  --rc-night-rule: #2a3641;
  --rc-night-rule-strong: #52616d;
  --rc-night-text: #ece8e1;
  --rc-night-text-soft: #ccd6de;
  --rc-night-muted: #a7b3be;
  --rc-night-signal-text: #79bbff;
  --rc-night-ice: #83c5ff;
  --rc-night-danger: #ff8a78;
  --rc-night-ok-text: #6ee0ac;
  --rc-night-warn-text: #f0c96b;
  --rc-color-scheme: light;
  --rc-selection-fill: var(--rc-ink);
  --rc-selection-text: var(--rc-paper-raise);

  --rc-font-display: 'Range Display', 'Range Condensed', 'Arial Narrow', system-ui, sans-serif;
  --rc-font-condensed: 'Range Condensed', 'Arial Narrow', system-ui, sans-serif;
  --rc-font-body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --rc-font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;

  --rc-fs-11: 0.6875rem;
  --rc-fs-12: 0.75rem;
  --rc-fs-13: 0.8125rem;
  --rc-fs-15: 0.9375rem;
  --rc-fs-17: 1.0625rem;
  --rc-fs-20: 1.25rem;
  --rc-fs-28: 1.75rem;
  --rc-fs-40: 2.5rem;
  --rc-fs-56: 3.5rem;
  --rc-fs-72: 4.5rem;

  --rc-lh-tight: 1.02;
  --rc-lh-hero: 1.18;
  --rc-lh-title: 1.14;
  --rc-lh-body: 1.55;
  --rc-track-display: 0.005em;
  --rc-track-label: 0;

  --rc-space-1: 4px;
  --rc-space-2: 8px;
  --rc-space-3: 12px;
  --rc-space-4: 16px;
  --rc-space-6: 24px;
  --rc-space-8: 32px;
  --rc-space-12: 48px;
  --rc-space-16: 64px;

  --rc-r: 0px;
  --rc-r-small: 2px;
  --rc-cut: 14px;
  --rc-cut-path: polygon(0 0, calc(100% - var(--rc-cut)) 0, 100% var(--rc-cut), 100% 100%, 0 100%);
  --rc-hairline: 1px solid var(--rc-rule);

  --rc-dur-1: 110ms;
  --rc-dur-2: 170ms;
  --rc-dur-3: 240ms;
  --rc-dur-4: 380ms;
  --rc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rc-ease-snap: var(--rc-ease-out);
  --rc-stagger: 38ms;

  --rc-focus-ring: 2px solid var(--rc-ice);
  --rc-focus-offset: 3px;
}

/* Bridge for the upstream component bundle: it already reads these names, so
   remapping them repaints the shell without editing captured selectors. */
html[data-aim-local] {
  --rc-font-body: system-ui, 'Segoe UI', sans-serif;
  --rc-font-display: 'Training Aim Display', system-ui, sans-serif;
  --rc-font-condensed: var(--rc-font-display);
  --rc-r: 8px;
  --rc-r-small: 6px;
  --rc-r-panel: 12px;
  --rc-elevation-card: 0 8px 24px color-mix(in srgb, var(--rc-night) 32%, transparent);
  --rc-cut-path: none;

  --sp-ink: var(--rc-paper);
  --sp-panel: var(--rc-paper-raise);
  --sp-raised: var(--rc-paper-sunk);
  --sp-line: var(--rc-rule);
  --sp-text: var(--rc-ink);
  --sp-muted: var(--rc-slate);
  --sp-signal: var(--rc-signal);
  --sp-ice: var(--rc-ice);
  --sp-body: var(--rc-font-body);
  --sp-display: var(--rc-font-condensed);
  --sp-radius: var(--rc-r);

  --h-accent: var(--rc-signal);
  --h-accent-deep: var(--rc-signal-text);
  --h-accent-mid: #ff8b93;
  --h-on-accent: var(--rc-on-signal);
  --h-danger: var(--rc-signal-text);
  --h-bg: var(--rc-paper);
  --h-panel: var(--rc-paper-raise);
  --h-surface: var(--rc-paper-sunk);
  --h-chrome: var(--rc-paper);
  --h-chrome-line: var(--rc-rule);
  --h-text: var(--rc-ink);
  --h-text-soft: #2b3a46;
  --h-text-muted: var(--rc-slate);
  --h-border: var(--rc-rule);
  --h-row-hover: #dcd6cb;
  --h-grid: #c9c2b6;

  --wk-red: var(--rc-signal-text);
  --wk-cyan: var(--rc-ice);
  --wk-paper: var(--rc-paper-raise);
  --wk-muted: var(--rc-slate);
  --wk-line: var(--rc-rule);
  --app-font: var(--rc-font-body);
  --Lewx-accent: var(--rc-signal);
  color-scheme: light;
}

/* The 3D stage, live HUD and pause overlays stay dark: a paper plane behind a
   viewmodel would wash out the scene and the crosshair. */
html[data-aim-local]:is(.aim-gameplay-active, .aim-trainer-open),
html[data-aim-local] body.al-training-active,
html[data-aim-local] .hall-portal.is-night {
  --h-bg: var(--rc-night);
  --h-panel: var(--rc-night-2);
  --h-surface: var(--rc-night-2);
  --h-chrome: var(--rc-night);
  --h-chrome-line: var(--rc-night-rule);
  --h-border: var(--rc-night-rule);
  --h-text: var(--rc-night-text);
  --h-text-soft: #c6ccd2;
  --h-text-muted: #93a0ab;
  --h-row-hover: #1d2933;
  color-scheme: dark;
}

html[data-aim-local] :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: var(--rc-focus-offset);
}

html[data-aim-local] ::selection {
  color: var(--rc-paper-raise);
  background: var(--rc-ink);
}

html[data-aim-local] :is(input, textarea) {
  caret-color: var(--rc-signal);
  font-variant-numeric: tabular-nums;
}

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Range Console — type roles.
   Context labels and Vietnamese sentences use normal case and tracking so
   diacritics stay legible alongside map imagery. */

.rc-hero,
.rc-display,
.rc-eyebrow,
.rc-label,
.rc-num {
  font-synthesis: none;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.rc-hero {
  margin: 0;
  font-family: var(--rc-font-condensed);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: var(--rc-lh-hero);
  letter-spacing: 0;
  color: var(--rc-ink);
  text-wrap: balance;
}

.rc-hero em {
  font-style: normal;
  color: var(--rc-ink);
}

.rc-display {
  margin: 0;
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-28);
  font-weight: 600;
  line-height: var(--rc-lh-title);
  letter-spacing: 0;
  color: var(--rc-ink);
  text-wrap: balance;
}

.rc-title {
  margin: 0;
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-20);
  font-weight: 600;
  line-height: var(--rc-lh-title);
  color: var(--rc-ink);
}

.rc-copy {
  margin: 0;
  max-inline-size: 68ch;
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-15);
  font-weight: 400;
  line-height: var(--rc-lh-body);
  color: var(--rc-ink);
}

.rc-muted {
  color: var(--rc-slate);
}

.rc-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--rc-space-2);
  margin: 0;
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-ink-soft);
}

.rc-eyebrow::before {
  content: none;
  inline-size: 14px;
  block-size: 2px;
  background: transparent;
}

.rc-label {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-slate);
}

.rc-num {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-40);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--rc-ink);
}

.rc-num-big {
  font-family: var(--rc-font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: var(--rc-ink);
}

.rc-mono {
  font-family: var(--rc-font-mono);
  font-size: var(--rc-fs-13);
  font-variant-numeric: tabular-nums;
  color: var(--rc-slate);
}

.rc-hairline {
  margin: 0;
  border: 0;
  border-block-start: var(--rc-hairline);
}

/* Registration marks: the only decorative chrome besides hairlines. */
.rc-marked {
  position: relative;
}

.rc-marked::before,
.rc-marked::after {
  content: "";
  position: absolute;
  inline-size: 10px;
  block-size: 10px;
  pointer-events: none;
}

.rc-marked::before {
  inset-block-start: 0;
  inset-inline-start: 0;
  border-block-start: 2px solid var(--rc-rule);
  border-inline-start: 2px solid var(--rc-rule);
}

.rc-marked::after {
  inset-block-end: 0;
  inset-inline-end: 0;
  border-block-end: 2px solid var(--rc-rule);
  border-inline-end: 2px solid var(--rc-rule);
}

/* The old light-theme class only changes the theme value, not the palette;
   paper is the default shell now, so it must render identically. */
html[data-aim-local] :is(.hall-root, .hall-portal).hall-light {
  --h-bg: var(--rc-paper);
  --h-panel: var(--rc-paper-raise);
  --h-surface: var(--rc-paper-sunk);
  --h-text: var(--rc-ink);
  --h-text-soft: var(--rc-ink-soft);
  --h-text-muted: var(--rc-slate);
  --h-border: var(--rc-rule);
  --h-on-accent: var(--rc-on-signal);
  --h-row-hover: var(--rc-paper-sunk);
}

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Range Console — primitives.
   Square geometry, hairline rules, one signal action per group. No shadows,
   no glass, no decorative gradients. */

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rc-space-2);
  min-block-size: 44px;
  margin: 0;
  padding: 0 var(--rc-space-6);
  border: 1px solid transparent;
  border-radius: var(--rc-r);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-15);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.rc-btn:disabled,
.rc-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
}

.rc-btn-primary:disabled,
.rc-btn-primary[aria-disabled="true"] {
  background: var(--rc-paper-sunk);
  color: var(--rc-slate);
  opacity: 1;
}

.rc-btn-primary {
  gap: var(--rc-space-3);
  padding-inline-end: var(--rc-space-8);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  clip-path: var(--rc-cut-path);
}

.rc-btn-secondary {
  border-color: var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}

.rc-btn-ghost {
  border-color: var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}

.rc-btn-danger {
  border-color: var(--rc-signal-text);
  background: transparent;
  color: var(--rc-signal-text);
}

.rc-btn-icon {
  inline-size: 42px;
  padding: 0;
}

.rc-btn-arrow {
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-17);
  line-height: 1;
}

.rc-field {
  display: grid;
  gap: var(--rc-space-2);
  min-inline-size: 0;
}

.rc-field > span,
.rc-field-label {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-slate);
}

.rc-field :is(input, select, textarea) {
  min-block-size: 44px;
  padding: 0 var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-15);
  font-variant-numeric: tabular-nums;
}

.rc-field :is(input, select, textarea):hover {
  border-color: var(--rc-ink);
}

.rc-field :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--rc-signal-text);
  border-inline-start-width: 3px;
}

.rc-field-hint {
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-12);
  line-height: 1.45;
  color: var(--rc-slate);
}

.rc-field-hint[data-state="error"] {
  color: var(--rc-signal-text);
}

.rc-check {
  display: flex;
  align-items: center;
  gap: var(--rc-space-3);
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-15);
  color: var(--rc-ink);
  cursor: pointer;
}

.rc-check input {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
  accent-color: var(--rc-ink);
}

.rc-tabs {
  display: flex;
  gap: var(--rc-space-6);
  border-block-end: var(--rc-hairline);
}

.rc-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--rc-space-2);
  min-block-size: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rc-slate);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-15);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.rc-tab[aria-selected="true"] {
  color: var(--rc-ink);
}

.rc-tab::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background: var(--rc-rule-strong);
  transform: scaleX(0);
  transform-origin: left center;
}

.rc-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.rc-seg {
  display: inline-flex;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}

.rc-seg > button {
  min-block-size: 40px;
  padding: 0 var(--rc-space-4);
  border: 0;
  border-inline-end: 1px solid var(--rc-rule);
  background: none;
  color: var(--rc-slate);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-13);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.rc-seg > button:last-child {
  border-inline-end: 0;
}

.rc-seg > button[aria-pressed="true"] {
  background: var(--rc-ink);
  color: var(--rc-paper-raise);
}

.rc-panel {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  padding: var(--rc-space-6);
  align-content: start;
}

.rc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rc-space-4);
  padding-block-end: var(--rc-space-3);
  border-block-end: var(--rc-hairline);
  margin-block-end: var(--rc-space-4);
}

.rc-card {
  display: grid;
  gap: var(--rc-space-3);
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  padding: var(--rc-space-4);
}

.rc-card[data-accent="signal"] {
  box-shadow: none;
}

.rc-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--rc-space-1);
  padding: var(--rc-space-1) var(--rc-space-2);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-slate);
}

.rc-tag[data-tone="signal"] {
  border-color: var(--rc-rule-strong);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink-soft);
}

.rc-tag[data-tone="ink"] {
  border-color: var(--rc-ink);
  background: var(--rc-ink);
  color: var(--rc-paper-raise);
}

.rc-stat {
  display: grid;
  gap: var(--rc-space-1);
  padding-inline-start: var(--rc-space-3);
  border-inline-start: 2px solid var(--rc-rule);
}

.rc-stat > small {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-slate);
}

.rc-stat > strong {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-20);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--rc-ink);
}

.rc-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-13);
  color: var(--rc-ink);
}

.rc-table :is(th, td) {
  padding: var(--rc-space-2) var(--rc-space-3);
  border-block-end: var(--rc-hairline);
  text-align: left;
}

.rc-table th {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-slate);
}

.rc-table :is(td[data-num], th[data-num]) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rc-kbd {
  display: inline-flex;
  align-items: center;
  min-block-size: 22px;
  padding: 0 var(--rc-space-2);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  font-family: var(--rc-font-mono);
  font-size: var(--rc-fs-12);
  color: var(--rc-ink);
}

.rc-toast {
  display: flex;
  align-items: center;
  gap: var(--rc-space-3);
  padding: var(--rc-space-3) var(--rc-space-4);
  border: var(--rc-hairline);
  border-inline-start: 3px solid var(--rc-ink);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-13);
  color: var(--rc-ink);
}

.rc-toast[data-state="error"] {
  border-inline-start-color: var(--rc-signal-text);
}

.rc-skeleton {
  block-size: 12px;
  border-radius: var(--rc-r);
  background: var(--rc-paper-sunk);
}

.rc-empty {
  display: grid;
  place-items: center;
  gap: var(--rc-space-2);
  min-block-size: 160px;
  border: 1px dashed var(--rc-rule-strong);
  border-radius: var(--rc-r);
  color: var(--rc-slate);
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs-13);
  text-align: center;
}

.rc-grid-lines {
  background-image:
    repeating-linear-gradient(to right, var(--rc-rule) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--rc-rule) 0 1px, transparent 1px 64px);
  background-position: -1px -1px;
}

.rc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rc-space-3);
}

.rc-stack {
  display: grid;
  gap: var(--rc-space-4);
}

/* Functional motion follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop
   Map art and the 3D scene carry the visual detail; chrome stays still. */
@keyframes rc-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rc-btn,
.rc-tab,
.rc-seg > button,
.rc-card,
.rc-tag,
.rc-field :is(input, select, textarea),
.rc-check input,
.rc-table tbody tr {
  transition:
    background-color var(--rc-dur-2) var(--rc-ease-out),
    border-color var(--rc-dur-2) var(--rc-ease-out),
    color var(--rc-dur-2) var(--rc-ease-out),
    opacity var(--rc-dur-2) var(--rc-ease-out);
}
.rc-btn-secondary:where(:not(:disabled, [aria-disabled="true"])):is(:hover, :focus-visible) { background: var(--rc-signal); border-color: var(--rc-signal); color: var(--rc-on-signal); }
.rc-btn-ghost:where(:not(:disabled, [aria-disabled="true"])):is(:hover, :focus-visible) { background: var(--rc-signal); color: var(--rc-on-signal); border-color: var(--rc-signal); }
.rc-btn-primary:where(:not(:disabled, [aria-disabled="true"])):is(:hover, :focus-visible) { background: var(--rc-signal-hover); }
.rc-tab:hover,
.rc-seg > button:hover { color: var(--rc-ink); }
.rc-tab::after { transition: transform var(--rc-dur-2) var(--rc-ease-out); }
.rc-card:hover { border-color: var(--rc-rule-strong); transform: none; }
.rc-table tbody tr:hover { background: var(--rc-paper-sunk); }
.rc-reveal { animation: rc-enter var(--rc-dur-2) var(--rc-ease-out) both; }
/* Keep existing helper classes compatible without entrances on every child. */
[data-rc-stagger] > *,
.rc-wipe,
.rc-tick { animation: none; }
html[data-aim-local] :is(.al-wk-card, .al-wk-feat-text, .pw-card, .pw-st-title) {
  animation: none !important;
}
html[data-aim-local] :is(.al-wk-card, .pw-card):hover { transform: none !important; }
html[data-aim-local] :is(.al-wk-holo, .al-wk-frame, .al-wk-cut, .pw-st-glow) {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .rc-reveal,
  [data-rc-stagger] > *,
  .rc-wipe,
  .rc-tick { animation: none; }
  .rc-btn,
  .rc-tab,
  .rc-seg > button,
  .rc-card,
  .rc-tag,
  .rc-field :is(input, select, textarea),
  .rc-check input,
  .rc-table tbody tr,
  .rc-tab::after { transition: none; }
}

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Range Console skin for the live app.
   The Vue bundle declares its own --h-* palette on each component root, so the
   override has to sit on the same elements with one extra specificity step
   (html[data-aim-local] ...) instead of relying on inheritance from :root. */

html[data-aim-local] {
  --local-accent: var(--rc-signal);
  --local-accent-ink: var(--rc-on-signal);
  --local-font: var(--rc-font-body);
}

html[data-aim-local] :is(.guest-shell, .hall-root, .hall-portal, .al-guide, .al-rv, .al-rp, .al-cloud-board, .al-studio-shell),
html[data-aim-local] :is(.guest-shell.hall-light, .hall-root.hall-light, .hall-portal.hall-light, .al-guide.hall-light, .al-rv.hall-light, .al-rp.hall-light, .al-studio-shell.hall-light) {
  --al-studio-go: var(--rc-signal);
  --h-bg: var(--rc-paper);
  --h-panel: var(--rc-paper-raise);
  --h-surface: var(--rc-paper-sunk);
  --h-surface-soft: color-mix(in srgb, var(--rc-paper-sunk) 70%, transparent);
  --h-topnav: var(--rc-paper);
  --h-topnav-active: var(--rc-paper-raise);
  --h-border: var(--rc-rule);
  --h-rule: var(--rc-rule-strong);
  --h-row-active: var(--rc-paper-sunk);
  --h-row-hover: color-mix(in srgb, var(--rc-paper-sunk) 72%, transparent);
  --h-text: var(--rc-ink);
  --h-text-soft: var(--rc-ink-soft);
  --h-text-muted: var(--rc-slate);
  --h-text-author: var(--rc-slate);
  --h-accent: var(--rc-signal);
  --h-accent-mid: var(--rc-signal);
  --h-accent-deep: var(--rc-signal-text);
  --h-danger: var(--rc-signal-text);
  --h-on-danger: var(--rc-paper-raise);
  --h-tone-warm: var(--rc-signal);
  --h-tone-cool: var(--rc-ice);
  --h-tone-deep: var(--rc-ink);
  --h-tone-bg: 10%;
  --h-gold: var(--rc-warn-text);
  --h-silver: var(--rc-slate);
  --h-bronze: #9a6239;
  --h-on-medal: var(--rc-paper-raise);
  --h-chrome: var(--rc-paper);
  --h-chrome-line: var(--rc-rule);
  --h-chrome-2: var(--rc-paper);
  --h-font: var(--rc-font-body);
  --h-radius: var(--rc-r);
  --bg: var(--rc-paper);
  --panel: var(--rc-paper-raise);
  --surface: var(--rc-paper-sunk);
  --surface-2: var(--rc-paper-sunk);
  --line: var(--rc-rule);
  --line-strong: var(--rc-rule-strong);
  --text: var(--rc-ink);
  --text-2: var(--rc-ink-soft);
  --muted: var(--rc-slate);
  --ice: var(--rc-signal);
  --red: var(--rc-danger);
  --ok: var(--rc-ok-text);
  --amber: var(--rc-warn-text);
  --chrome: var(--rc-paper);
  --al-rp-glass: color-mix(in srgb, var(--rc-night) 86%, transparent);
  --al-miss: var(--rc-danger);
  --al-rv-tone: var(--rc-signal);
  --sp-ink: var(--rc-paper);
  --sp-panel: var(--rc-paper-raise);
  --sp-raised: var(--rc-paper-sunk);
  --sp-line: var(--rc-rule);
  --sp-text: var(--rc-ink);
  --sp-muted: var(--rc-slate);
  --sp-signal: var(--rc-signal);
  --sp-ice: var(--rc-ice);
  --sp-radius: var(--rc-r);
  --sp-body: var(--rc-font-body);
  --sp-display: var(--rc-font-condensed);
  --wk-red: var(--rc-signal-text);
  --wk-cyan: var(--rc-ice);
  --wk-paper: var(--rc-paper-raise);
  --wk-muted: var(--rc-slate);
  --wk-line: var(--rc-rule);
  --app-font: var(--rc-font-body);
  color-scheme: light;
}

/* The 3D stage, live HUD and pause screens keep the night palette: a paper
   plane behind the viewmodel would wash out the scene. */
html[data-aim-local].aim-gameplay-active :is(.hall-root, .hall-portal),
html[data-aim-local].aim-trainer-open :is(.hall-root, .hall-portal),
html[data-aim-local] body.al-training-active :is(.hall-root, .hall-portal),
html[data-aim-local] :is(.hall-root, .hall-portal).is-night,
html[data-aim-local] :is(.hall-root.hall-light, .hall-portal.hall-light).is-night {
  --h-bg: var(--rc-night);
  --h-panel: var(--rc-night-2);
  --h-surface: var(--rc-night-2);
  --h-topnav: var(--rc-night);
  --h-topnav-active: var(--rc-night-2);
  --h-border: var(--rc-night-rule);
  --h-rule: color-mix(in srgb, var(--rc-night-text) 34%, transparent);
  --h-row-active: var(--rc-night-2);
  --h-row-hover: color-mix(in srgb, var(--rc-night-2) 72%, transparent);
  --h-text: var(--rc-night-text);
  --h-text-soft: #c6ccd2;
  --h-text-muted: #93a0ab;
  --h-text-author: #93a0ab;
  --h-on-danger: var(--rc-night);
  --h-on-medal: var(--rc-night);
  --h-chrome: var(--rc-night);
  --h-chrome-line: var(--rc-night-rule);
  color-scheme: dark;
}

/* The workshop hero is a dark art plate laid on the paper shell. It keeps the
   night palette inside so the scrim and the artwork still carry light text. */
html[data-aim-local] :is(.al-wk-feat, .pw-stage) {
  --h-bg: var(--rc-night);
  --h-panel: color-mix(in srgb, var(--rc-night) 82%, transparent);
  --h-surface: color-mix(in srgb, var(--rc-night-2) 84%, transparent);
  --h-surface-soft: color-mix(in srgb, var(--rc-night-2) 60%, transparent);
  --h-border: color-mix(in srgb, var(--rc-paper) 22%, transparent);
  --h-rule: color-mix(in srgb, var(--rc-paper) 34%, transparent);
  --h-row-hover: color-mix(in srgb, var(--rc-night-2) 70%, transparent);
  --h-row-active: var(--rc-night-2);
  --h-text: var(--rc-paper-raise);
  --h-text-soft: var(--rc-paper-raise);
  --h-text-muted: color-mix(in srgb, var(--rc-paper) 70%, var(--rc-night));
  --h-text-author: color-mix(in srgb, var(--rc-paper) 70%, var(--rc-night));
  --h-accent: var(--rc-signal);
  --h-on-accent: var(--rc-on-signal);
  --h-chrome: var(--rc-night);
  --h-chrome-line: color-mix(in srgb, var(--rc-paper) 16%, transparent);
  color: var(--rc-paper-raise);
  color-scheme: dark;
}

/* Local action cluster (language, performance, help, sign in) is injected by
   site-overrides.css with a fixed light-on-dark palette. */
html[data-aim-local] .aim-local-actions {
  border-color: var(--rc-rule);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}

html[data-aim-local] .aim-local-actions :is(.aim-performance-button, .aim-locale-toggle, .aim-account-button, .contact-credit > summary) {
  color: var(--rc-ink);
}

html[data-aim-local] .aim-local-actions :is(.aim-performance-button, .aim-locale-toggle, .aim-account-button, .contact-credit > summary):is(:hover, :focus-visible) {
  border-color: var(--rc-rule-strong);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}

html[data-aim-local] .aim-local-actions .aim-performance-glyph {
  border-color: var(--rc-ink);
}

html[data-aim-local] .aim-local-actions .aim-performance-glyph::after {
  background: var(--rc-signal);
  box-shadow: 0 0 0 2px var(--rc-paper-raise);
}

html[data-aim-local] .hall-topnav .hall-sens :is(input, .hall-sens-value, output) {
  color: var(--rc-signal-text);
}

/* Apply the interface radius to native controls and panels with scoped styles. */
html[data-aim-local] :is(.guest-shell, .hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv, .al-rp, .al-cloud-board) :is(button, input, select, textarea, article, dialog, [role="dialog"]) {
  border-radius: var(--rc-r) !important;
}

html[data-aim-local] .hall-topnav {
  background: var(--rc-paper);
  box-shadow: inset 0 -1px 0 var(--rc-rule-strong);
}

/* Remaining mint literals from the local i18n and override layers. */
html[data-aim-local] :is(.hall-tab.is-active, .al-wk-chip.al-wk-on, .aim-donate-fourthwall, .contact-credit a, .aim-game-credit a) {
  color: var(--rc-signal-text);
}

html[data-aim-local] .hall-lat-btn-glyph {
  color: var(--rc-on-signal);
  background: var(--rc-signal);
}

html[data-aim-local] .st-save i {
  background: var(--rc-ice);
}

html[data-aim-local] :is(.al-wk-diff, .aim-vt-card-difficulty) {
  color: var(--rc-slate);
}

html[data-aim-local] :is(.al-wk-diff, .aim-vt-card-difficulty) i.is-on {
  background: currentColor;
}

html[data-aim-local] :is(.al-wk-diff, .aim-vt-card-difficulty)[class*="is-l1"] {
  color: var(--rc-ice);
}

html[data-aim-local] :is(.al-wk-diff, .aim-vt-card-difficulty)[class*="is-l2"] {
  color: var(--rc-ink);
}

html[data-aim-local] :is(.al-wk-diff, .aim-vt-card-difficulty)[class*="is-l3"] {
  color: var(--rc-signal-text);
}

/* Match the specificity of the legacy font override on headings and controls. */
html[data-aim-local] :is(.guest-shell, .hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv, .al-rp, .al-cloud-board) :is(h1, h2, h3, h4),
html[data-aim-local] :is(.hall-tab, .hall-brand :is(b, span), .al-wk-go, .hall-rail-quick b, .al-wk-hero-word) {
  font-family: var(--rc-font-condensed) !important;
  letter-spacing: 0;
}

html[data-aim-local] .am-root :is(.am-map, .am-card, .am-scene-card, .am-panel) {
  border-radius: var(--rc-r) !important;
  clip-path: none !important;
}
html[data-aim-local] .am-root :is(.am-btn-red, .am-btn-dark, .am-bar-pc, .am-tabs button) {
  border-radius: var(--rc-r-small) !important;
  clip-path: none !important;
}

/* Studio and guide kept their own blue accent tokens in the bundle. */
html[data-aim-local] :is(.guest-shell, .hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv, .al-rp, .al-cloud-board) {
  --al-tn-signal: var(--rc-signal-text);
  --al-studio-accent: var(--rc-signal-text);
  --al-studio-go: var(--rc-signal);
  --am-cyan: var(--rc-ice);
  --pw-cyan: var(--rc-ice);
  --pw-tone: var(--rc-signal);
  --cyan: var(--rc-ice);
  --blue: var(--rc-ice);
  --rov-up: var(--rc-ice);
}

/* Gaming hierarchy: display headings, clear UI labels and real scene content. */
html[data-aim-local] :is(.hall-root, .hall-portal, .al-guide, .al-rv, .al-rp, .al-cloud-board, .al-studio-shell) :is(h1, h2, h3, h4) {
  font-weight: 700 !important;
}
html[data-aim-local] :is(.hall-root, .hall-portal, .al-guide, .al-rv, .al-rp, .al-cloud-board, .al-studio-shell) :is(button, [role="button"]) {
  font-weight: 600 !important;
}
html[data-aim-local] :is(.hall-root, .hall-portal, .al-guide, .al-rv, .al-rp, .al-cloud-board, .al-studio-shell) :is(b, strong) {
  font-weight: 600;
}
/* The native mobile form uses its own shell and the same interface hierarchy. */
html[data-aim-local] .am-root {
  --am-sans: var(--rc-font-body);
  --am-hud: var(--rc-font-body);
  --am-num: var(--rc-font-mono);
  font-variant-numeric: tabular-nums;
}
html[data-aim-local] .am-root :is(h1, h2, h3, .am-sec-title,
  .am-studio-title, .am-mo-title, .am-ps-title, .am-qs-title,
  .am-ss-title, .am-me-out-title, .amp-title, .amp-ep-title) {
  font-weight: 700 !important;
  font-family: var(--rc-font-display) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-aim-local] .am-root :is(button, b, strong, .am-tag,
  .am-chip, .amp-tag, .am-row-title, .am-scene-name) {
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-aim-local] .am-root .am-tab {
  min-block-size: 44px;
  font-size: var(--rc-fs-12);
  line-height: 1.3;
}
html[data-aim-local] .am-root .am-icon {
  inline-size: var(--am-icon, 22px);
  block-size: var(--am-icon, 22px);
  stroke-width: 1.8;
}
html[data-aim-local] .am-root :is(.am-scene-author, .am-scene-time,
  .am-scene-rank) { font-size: 12px; line-height: 1.4; }

html[data-aim-local] :is(.hall-root, .hall-portal, .al-guide, .al-rv, .al-studio-shell) :is(h3, h4) { font-weight: 600 !important; }
html[data-aim-local] :is(.aim-account-panel, .aim-ranking-panel, .contact-credit-popover) { border-radius: var(--rc-r-panel) !important; }
html[data-aim-local] .aim-account-panel :is(h2, h3) { font-family: var(--rc-font-display); font-weight: 700; }

html[data-aim-local] .am-root :is(input, select, textarea) { font-size: 16px; }


html[data-aim-local] .hall-bottombar {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  block-size: auto;
  min-block-size: 56px;
  padding-block: 12px;
}
html[data-aim-local] .hall-bottombar::after {
  content: none;
}
html[data-aim-local] .valox-community-notice {
  margin: 0;
  color: var(--rc-ink-soft);
  font: 400 12px/1.6 var(--sp-body, system-ui, sans-serif);
  overflow-wrap: anywhere;
  /* Balanced lines stop the contact email from dropping alone onto a second line. */
  text-wrap: balance;
}
html[data-aim-local] .hall-bottombar > .valox-community-notice {
  grid-column: 2;
  justify-self: end;
  text-align: end;
}
@media (max-width: 800px) {
  html[data-aim-local] .hall-bottombar { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .hall-bottombar > .valox-community-notice { grid-column: 1; }
}
html[data-aim-local] .am-main > .valox-community-footer {
  margin-block-start: 24px;
  padding: 20px 16px;
  border-block-start: 1px solid var(--rc-rule);
}
html[data-aim-local] .am-main .valox-community-notice {
  font-size: 13px;
}

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* The lab has primary tabs and a compact utility row. Vue retains the
   existing actions, focus and view state through this layout change. */
html[data-aim-local] body {
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-family: var(--rc-font-body);
  font-weight: 400;
}
html[data-aim-local] :is(.hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv) {
  font-family: var(--rc-font-body);
}
html[data-aim-local] :is(.hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv) button {
  font-family: var(--rc-font-body) !important;
  font-synthesis: none;
  text-shadow: none;
}
html[data-aim-local] .hall-topnav {
  gap: var(--rc-space-4);
  padding-inline: var(--rc-space-6);
  min-block-size: 64px;
  background: var(--rc-paper);
  border-block-end: var(--rc-hairline);
  box-shadow: none !important;
}
html[data-aim-local] .hall-topnav::after { display: none; }
html[data-aim-local] .hall-brand {
  flex: 0 0 auto;
  gap: var(--rc-space-3);
  min-inline-size: 96px;
}
html[data-aim-local] .hall-brand::before { content: none; }
html[data-aim-local] .hall-topnav .hall-brand img {
  display: block !important;
  inline-size: 112px;
  block-size: auto;
}
html[data-aim-local] .hall-topnav .hall-tabs {
  flex: 1 1 auto;
  gap: var(--rc-space-1);
  min-inline-size: 0;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}
html[data-aim-local] .hall-topnav .hall-tab {
  flex: 0 0 auto;
  min-inline-size: 0;
  padding-inline: var(--rc-space-3) !important;
  min-block-size: 64px;
  color: var(--rc-slate) !important;
  background: transparent !important;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html[data-aim-local] .hall-tab span { font-family: inherit !important; }
html[data-aim-local] .hall-topnav .hall-tab::before { display: none; }
html[data-aim-local] .hall-topnav .hall-tab:is(:hover, .is-active) { color: var(--rc-ink) !important; }
/* The current section is the one place the top bar spends the accent. */
html[data-aim-local] .hall-topnav .hall-tab.is-active::after {
  inset-inline: 0;
  inset-block-end: 0;
  inline-size: auto;
  block-size: 2px;
  background: var(--rc-signal);
  display: block !important;
  transform: none;
}
html[data-aim-local] .hall-topnav :is(.hall-topnav-right, .aim-local-actions) {
  flex: 0 0 auto;
  gap: var(--rc-space-2);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
}
html[data-aim-local] .hall-topnav .hall-sens {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  box-shadow: none;
}
html[data-aim-local] .hall-topnav .hall-sens :is(input, output, .hall-sens-value) {
  color: var(--rc-ink) !important;
  font-family: var(--rc-font-mono) !important;
}
html[data-aim-local] .aim-local-actions :is(button, .contact-credit > summary) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  border: 1px solid transparent;
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1 var(--rc-font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-aim-local] .hall-topnav .aim-local-actions .aim-account-button {
  max-inline-size: none;
  padding-inline: var(--rc-space-4);
  border-color: var(--rc-ink);
  background: var(--rc-ink);
  color: var(--rc-paper-raise) !important;
}
html[data-aim-local] .hall-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
html[data-aim-local] .hall-body:has(> .hall-ball-detail) {
  grid-template-columns: minmax(0, 1fr) 360px;
}
html[data-aim-local] .hall-body > :is(.hall-board, .hall-center, .hall-detail) {
  grid-row: 2;
  min-block-size: 0;
  min-inline-size: 0;
}
html[data-aim-local] .hall-body > .hall-detail { inline-size: auto; }
html[data-aim-local] .hall-rail {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rc-space-4);
  inline-size: auto;
  padding: var(--rc-space-2) var(--rc-space-6);
  border: 0;
  border-block-end: var(--rc-hairline);
  background: var(--rc-paper);
  box-shadow: none;
  overflow: visible;
}
html[data-aim-local] .hall-rail .hall-rail-cap { display: none; }
html[data-aim-local] .hall-rail .hall-rail-item {
  flex: 0 0 auto;
  inline-size: auto;
  min-block-size: 44px;
  margin: 0;
  padding: 0 var(--rc-space-3);
  border-radius: var(--rc-r) !important;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1 var(--rc-font-body) !important;
}
html[data-aim-local] .hall-rail .hall-rail-item:is(:hover, .is-active) {
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
/* The rail runs horizontally here; the vertical rail's left-edge marker floated beside the pill. */
html[data-aim-local] .hall-rail .hall-rail-item.is-active::before { display: none; }
html[data-aim-local] .hall-rail-quick-wrap { display: flex; align-items: center; flex: 0 0 auto; margin: 0; }
html[data-aim-local] .hall-rail-quick {
  display: flex;
  gap: var(--rc-space-2);
  align-items: center;
  min-block-size: 44px;
  inline-size: auto;
  margin: 0;
  padding: 0 var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-ink);
  clip-path: none !important;
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1 var(--rc-font-body) !important;
}
html[data-aim-local] .hall-rail-quick :is(small, em, .hall-rail-quick-label) { display: none; }
html[data-aim-local] .hall-rail-quick b { white-space: nowrap; color: inherit; }
html[data-aim-local] .hall-rail-quick-pen {
  position: static;
  inline-size: 44px;
  block-size: 44px;
  margin-inline-start: var(--rc-space-2);
  border: 1px solid var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .hall-rail-quick:is(:hover, :focus-visible),
html[data-aim-local] .hall-rail-quick-pen:is(:hover, :focus-visible, [aria-expanded="true"]) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .hall-rail-quick-menu {
  inset-block-start: calc(100% + var(--rc-space-2));
  inset-inline-start: 0;
  border-color: var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .hall-rail-quick-option {
  border: 1px solid transparent;
}
html[data-aim-local] .hall-rail-quick-option[aria-selected="true"] {
  border-color: var(--rc-rule-strong);
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
}
html[data-aim-local] .hall-bottombar { border-block-start: var(--rc-hairline); background: var(--rc-paper); }
html[data-aim-local] .hall-bottombar .hall-search {
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  border-color: var(--rc-rule-strong);
}
@media (max-width: 1100px) {
  html[data-aim-local] .hall-rail { flex-wrap: wrap; min-inline-size: 0; }
}
@media (max-width: 1399px) {
  html[data-aim-local] .hall-topnav {
    block-size: auto;
    flex-wrap: wrap;
    gap: 0 var(--rc-space-4);
  }
  html[data-aim-local] .hall-topnav .hall-tabs { display: flex !important; order: 4; flex-basis: 100%; }
  html[data-aim-local] .hall-topnav .hall-tab { display: flex !important; min-block-size: 48px; max-inline-size: none; }
  html[data-aim-local] .hall-topnav .hall-topnav-right { order: 0; flex-basis: auto; margin: 0; padding: 0; }
  html[data-aim-local] .hall-brand { margin-inline-end: auto; min-block-size: 56px; }
}
@media (max-width: 700px) {
  html[data-aim-local] .hall-topnav { padding-inline: var(--rc-space-4); }
  html[data-aim-local] .hall-topnav .hall-tabs { gap: var(--rc-space-6); }
  html[data-aim-local] .hall-topnav .hall-brand { inline-size: auto !important; min-inline-size: 72px; padding: 0 !important; }
  html[data-aim-local] .hall-topnav .hall-topnav-right { display: none !important; }
  html[data-aim-local] .hall-body:has(> .hall-ball-detail) {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  html[data-aim-local] .hall-body > :is(.hall-ball-center, .hall-ball-detail) {
    flex: none;
    inline-size: 100%;
    overflow: visible;
  }
  html[data-aim-local] .hall-ball-center .hall-ball-wall-scroll { flex: none; overflow: visible; }
  html[data-aim-local] .hall-rail {
    flex-wrap: nowrap;
    gap: var(--rc-space-2);
    padding-inline: var(--rc-space-4);
    overflow-x: auto;
  }
  html[data-aim-local] .hall-rail-quick-wrap { display: none; }
  html[data-aim-local] .hall-rail .hall-rail-item { display: inline-flex; }
  html[data-aim-local] .hall-rail .hall-rail-item span { display: inline; }
}

/* Donation disclosure lives inside the horizontal tool rail when monetization is enabled. */
html[data-aim-local] .hall-rail > .aim-donate {
  position: relative;
  flex: 0 0 auto;
  inline-size: auto;
  margin-block-start: 0;
  margin-inline-start: auto;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .hall-rail:has(> .aim-donate) {
  overflow: visible;
}
html[data-aim-local] .aim-donate > summary {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  border-radius: var(--rc-r);
  color: var(--rc-ink);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .hall-rail > .aim-donate[open] > .aim-donate-body {
  position: absolute;
  inset-block-start: calc(100% + var(--rc-space-2));
  inset-inline-end: 0;
  z-index: 40;
  inline-size: min(260px, calc(100vw - 32px));
  padding: var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: var(--rc-elevation-card);
}
@media (max-width: 700px) {
  html[data-aim-local] .hall-rail > .aim-donate { display: none !important; }
}

html[data-aim-local] .hall-board-body:has(> :is(.rc-map-browser, [data-role="player-workshop"])) {
  padding-block-end: var(--hall-footer-height, 60px);
  scroll-padding-block-end: var(--hall-footer-height, 60px);
}

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Native control and dialog roles mapped to the primitives in design-lab.html. */
html[data-aim-local] :is(
  .al-wk-go,
  .hall-ball-btn-primary,
  .pw-lock,
  .rov-btn.is-primary,
  .aim-account-action.is-primary,
  .al-pause-act.is-primary,
  .al-rv-cta,
  .al-soft-notice-actions button:not(:where(.is-quiet))
) {
  min-block-size: 44px;
  padding: var(--rc-space-2) var(--rc-space-4);
  border: 1px solid transparent;
  border-radius: var(--rc-r) !important;
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  clip-path: var(--rc-cut-path) !important;
  box-shadow: none;
  font: 600 var(--rc-fs-15)/1.25 var(--rc-font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-aim-local] :is(
  .hall-ball-btn-secondary,
  .aim-account-action:not(.is-primary),
  .pw-pub,
  .rov-btn:not(.is-primary),
  .ws-fb-btn,
  .al-wk-manage
) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-6);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-15)/1.25 var(--rc-font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-aim-local] :is(
  .al-wk-go,
  .hall-ball-btn-primary,
  .pw-lock,
  .rov-btn.is-primary,
  .aim-account-action.is-primary,
  .al-pause-act.is-primary,
  .al-rv-cta,
  .al-soft-notice-actions button:not(:where(.is-quiet))
):is(:hover, :focus-visible):not(:disabled) {
  background: var(--rc-signal-hover);
  color: var(--rc-on-signal);
}

html[data-aim-local] :is(
  .hall-ball-btn-secondary,
  .aim-account-action:not(.is-primary),
  .pw-pub,
  .rov-btn:not(.is-primary),
  .ws-fb-btn,
  .al-wk-manage,
  .aim-account-panel .aim-account-close
):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}

html[data-aim-local] .pw-shelf-tab {
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-slate);
  box-shadow: none;
  font: 600 var(--rc-fs-15)/1.25 var(--rc-font-body) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[data-aim-local] .pw-shelf-tab.is-on {
  border-block-end-color: var(--rc-signal);
  background: transparent;
  color: var(--rc-ink) !important;
}

html[data-aim-local] :is(.hall-root, .hall-portal, .al-studio-shell, .al-guide, .al-rv, .al-rp, .al-cloud-board, .aim-account-panel, .aim-ranking-panel, .am-root)
  :is(h1, h2, h3, h4, .al-wk-title, .rproj-name, .am-sec-title, .am-studio-title, .am-mo-title, .am-ps-title, .am-qs-title, .am-ss-title, .am-me-out-title, .amp-title, .amp-ep-title) {
  color: inherit;
  font-family: var(--rc-font-condensed) !important;
  font-synthesis: none;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: none;
}

html[data-aim-local] .al-wk-hero-copy > h1 {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-28)/var(--rc-lh-title) var(--rc-font-display) !important;
}

html[data-aim-local] .al-wk-hero-copy > .al-wk-hero-sub { color: var(--rc-slate); }

html[data-aim-local] :is(.al-wk-card, .rproj-tile) {
  border-color: var(--rc-rule);
  border-radius: var(--rc-r) !important;
  box-shadow: none;
}

html[data-aim-local] :is(.al-wk-holo, .al-wk-frame, .al-wk-cut) { display: none; }

html[data-aim-local] :is(.aim-account-panel, .aim-ranking-panel, .contact-credit-popover) {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
  font-family: var(--rc-font-body);
}

html[data-aim-local] .aim-account-modal { backdrop-filter: none; }
html[data-aim-local] .aim-account-panel :is(h2, h3, label, strong) { color: var(--rc-ink); font-weight: 600; letter-spacing: 0; text-transform: none; }
html[data-aim-local] .aim-account-panel :is(p, small) { color: var(--rc-slate); }

html[data-aim-local] .aim-account-panel :is(input, select, textarea) {
  min-block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  font-family: var(--rc-font-body);
}

html[data-aim-local] .aim-account-panel .aim-account-tabs {
  gap: var(--rc-space-1);
  padding: var(--rc-space-1);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise);
}

html[data-aim-local] .aim-account-panel .aim-account-tabs button {
  border: 0;
  min-block-size: 44px;
  padding: var(--rc-space-2) var(--rc-space-4);
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1.4 var(--rc-font-body) !important;
  text-transform: none !important;
}

html[data-aim-local] .aim-account-panel .aim-account-tabs button.is-active {
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}

html[data-aim-local] .aim-account-panel .aim-account-form :is(input, select):focus {
  box-shadow: none;
}

html[data-aim-local] :is(.al-cloud-lb-cta, [data-role="guest-sync-hint"] button) {
  background: transparent;
  border: 1px solid var(--rc-rule-strong);
  color: var(--rc-ink);
}

html[data-aim-local] :is(.al-cloud-lb-cta, [data-role="guest-sync-hint"] button):is(:hover, :focus-visible):not(:disabled) {
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  border-color: var(--rc-signal);
}

/* The captured stylesheet disables image hit testing, including dialog content. */
html[data-aim-local] .sg-lightbox img { pointer-events: auto; }

html[data-aim-local] .al-guide .sg-pub-f {
  grid-template-columns: minmax(10rem, 26%) minmax(0, 1fr);
}

html[data-aim-local] .al-guide .sg-pub-foot b {
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}

html[data-aim-local] .al-wkload { --wk-brand: var(--rc-signal); }
html[data-aim-local] .al-wkload-ticks .failed { --wk-brand: var(--rc-night-danger); }
html[data-aim-local] .al-wkload-edge::after {
  background: none;
}
html[data-aim-local] .al-wkload-agent::before {
  background: none;
}
html[data-aim-local] :is(.al-wkload-pin.on, .al-wkload-ticks :is(.active, .failed) i) {
  box-shadow: none;
}

html[data-aim-local] .am-pane > .sp-workshop-intro {
  margin: var(--rc-space-3) var(--rc-space-4) var(--rc-space-4);
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}

html[data-aim-local] .am-pane > .sp-workshop-intro summary {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  align-content: center;
  font-weight: 600;
  cursor: pointer;
}

html[data-aim-local] .am-pane > .sp-workshop-intro summary::marker { color: var(--rc-slate); }

html[data-aim-local] .am-pane .sp-workshop-intro-body {
  padding: 0 var(--rc-space-3) var(--rc-space-3);
}

html[data-aim-local] .am-pane .sp-workshop-intro-body ol {
  display: grid;
  gap: var(--rc-space-2);
  margin: 0 0 var(--rc-space-3);
  padding-inline-start: var(--rc-space-4);
  list-style: decimal;
}

html[data-aim-local] .am-pane .sp-workshop-intro-body li::marker { color: var(--rc-slate); }
html[data-aim-local] .am-pane .sp-workshop-intro-body p { margin: 0; color: var(--rc-slate); }

html[data-aim-local] .am-pane .sp-workshop-intro-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rc-space-2);
}

html[data-aim-local] .am-pane .sp-workshop-intro-actions button {
  min-block-size: 44px;
  padding: var(--rc-space-2);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink);
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-body);
}

html[data-aim-local] .am-pane .sp-workshop-intro-actions .sp-workshop-intro-start,
html[data-aim-local] .am-pane .sp-workshop-intro-actions button:enabled:is(:hover, :focus-visible) {
  border-color: transparent;
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}

html[data-aim-local] .am-pane .sp-workshop-intro-actions button:disabled { opacity: .55; }
html[data-aim-local] .am-pane .sp-workshop-intro-actions button:enabled { cursor: pointer; }

html[data-aim-local] .am-me-perks li { grid-template-columns: minmax(0, 1fr); }

html[data-aim-local] .am-pane .sp-workshop-intro :focus-visible,
html[data-aim-local] :is(.hall-root, .hall-portal, .aim-local-actions, .aim-account-panel, .aim-ranking-panel, .al-guide, .al-cloud-lb, .al-cloud-board, .al-aimlab-root, .al-rv, .al-rp) :focus-visible {
  outline: 2px solid var(--rc-ice);
  outline-offset: 3px;
}

@media (max-width: 650px) {
  html[data-aim-local] .al-guide .sg-pub-f {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--rc-space-1);
  }
  html[data-aim-local] .am-bar .aim-local-actions button:is(.aim-locale-toggle, .aim-account-button),
  html[data-aim-local] .aim-account-panel :is(.aim-account-close, .aim-account-tabs button, .aim-account-link, .aim-account-action) {
    min-inline-size: 44px;
    min-block-size: 44px;
  }
  html[data-aim-local] .al-wk-hero-copy { padding: var(--rc-space-4); }
  html[data-aim-local] .al-wk-hero-copy .al-wk-feat {
    box-sizing: border-box;
    inline-size: 100%;
    min-inline-size: 0;
    margin-inline: 0;
    padding: var(--rc-space-4);
  }
  html[data-aim-local] .al-wk-feat .sp-home-feature-media {
    inline-size: 100%;
    min-inline-size: 0;
  }
}

/* The diagnostics drawer has its own action roles and scroll area. */
html[data-aim-local] .hall-lat-drawer > :is(.hall-lat-view, div:has(> .hall-lat-list)) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-block-size: 0;
  overflow: auto;
}

html[data-aim-local] .hall-lat-drawer .hall-lat-list { overscroll-behavior: contain; }

html[data-aim-local] .hall-lat-verdict.is-tip {
  background: color-mix(in srgb, var(--rc-signal) 12%, var(--rc-paper-raise));
  box-shadow: inset 3px 0 var(--rc-signal), inset 0 -1px var(--rc-rule);
}

html[data-aim-local] .hall-lat-verdict.is-tip .hall-lat-big {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font: 500 20px/1 var(--rc-font-body);
}

html[data-aim-local] .hall-lat-view .hall-lat-item.is-tip {
  border: var(--rc-hairline);
  box-shadow: none;
}

html[data-aim-local] .hall-lat-view .hall-lat-item.is-tip > .hall-lat-tag.is-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 0;
  color: var(--rc-signal-text);
  background: transparent;
}

html[data-aim-local] .hall-lat-view .hall-lat-tag.is-tip::before {
  inline-size: 4px;
  block-size: 4px;
  border-radius: var(--rc-r-small);
  background: currentColor;
  content: "";
}

html[data-aim-local] .hall-lat-drawer :is(.hall-lat-actions, .hall-lat-pad-foot) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rc-space-2);
  min-inline-size: 0;
}

html[data-aim-local] .hall-lat-head > .hall-lat-actions { flex: none; }

html[data-aim-local] .hall-lat-drawer :is(.hall-lat-btn-primary, .hall-lat-btn-ghost, .hall-lat-link:where(button)) {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 100%;
  block-size: auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--rc-rule-strong) 85%, var(--rc-ink));
  border-radius: var(--rc-r-small) !important;
  color: var(--rc-ink);
  background: var(--rc-paper-raise);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.35 var(--rc-font-body) !important;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

html[data-aim-local] .hall-lat-drawer :is(.hall-lat-btn-ghost, .hall-lat-link:where(button)):is(:hover, [aria-expanded="true"]) {
  border-color: var(--rc-signal-text);
  background: var(--rc-paper-sunk);
}

html[data-aim-local] .hall-lat-drawer .hall-lat-btn-primary {
  border-color: var(--rc-signal-text);
  color: var(--rc-on-signal);
  background: var(--rc-signal);
}

html[data-aim-local] .hall-lat-drawer .hall-lat-btn-primary:hover { background: var(--rc-signal-hover); }
html[data-aim-local] .hall-lat-drawer :is(.hall-lat-btn-primary, .hall-lat-btn-ghost, .hall-lat-link:where(button)):focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
}

html[data-aim-local] .hall-lat-item > .hall-lat-actions {
  grid-column: 2 / -1;
  justify-self: start;
  margin-block-start: var(--rc-space-1);
}

html[data-aim-local] .hall-lat-steps ol {
  display: grid;
  gap: var(--rc-space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

html[data-aim-local] .hall-lat-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: var(--rc-space-2);
  color: var(--rc-ink);
  font-size: var(--rc-fs-13);
  line-height: 1.5;
}

html[data-aim-local] .hall-lat-steps code { overflow-wrap: anywhere; }
html[data-aim-local] .hall-lat-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rc-space-2);
  margin-block-start: var(--rc-space-1);
}

@media (max-width: 640px) {
  html[data-aim-local] .hall-lat-drawer .hall-lat-head,
  html[data-aim-local] .hall-lat-drawer .hall-lat-verdict { padding-inline: var(--rc-space-4); }
  html[data-aim-local] .hall-lat-drawer .hall-lat-list { padding-inline: var(--rc-space-1); }
  html[data-aim-local] .hall-lat-item { margin-inline: var(--rc-space-2); }
  html[data-aim-local] .hall-lat-item > .hall-lat-act { margin-block-start: var(--rc-space-1); }
  html[data-aim-local] .hall-lat-drawer .hall-lat-verdict { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  html[data-aim-local] .hall-lat-view .hall-lat-head { flex-wrap: wrap; }
  html[data-aim-local] .hall-lat-view .hall-lat-head > div { flex-basis: 100%; }
  html[data-aim-local] .hall-lat-view .hall-lat-item { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .hall-lat-view .hall-lat-item > :is(h4, .hall-lat-why, .hall-lat-act, .hall-lat-actions, .hall-lat-steps, .hall-lat-retest, a) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-aim-local] :is(.hall-root, .hall-portal, .aim-local-actions, .al-studio-shell, .aim-account-panel, .aim-ranking-panel, .al-guide, .al-rv, .al-rp, .al-cloud-board, .am-root) *,
  html[data-aim-local] :is(.hall-root, .hall-portal, .aim-local-actions, .al-studio-shell, .aim-account-panel, .aim-ranking-panel, .al-guide, .al-rv, .al-rp, .al-cloud-board, .am-root) *::before,
  html[data-aim-local] :is(.hall-root, .hall-portal, .aim-local-actions, .al-studio-shell, .aim-account-panel, .aim-ranking-panel, .al-guide, .al-rv, .al-rp, .al-cloud-board, .am-root) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html[data-aim-local] .aim-account-panel .aim-account-close {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
}
html[data-aim-local] .aim-account-panel .aim-account-link[data-forgot] {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: var(--rc-space-2);
  margin-inline-start: calc(-1 * var(--rc-space-2));
}

/* Local ranking, score-sync, payment and donation surfaces. */
html[data-aim-local] .aim-ranking-modal {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .aim-ranking-panel :is(h2, h3, th, strong) {
  color: var(--rc-ink);
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] .aim-ranking-panel :is(p, small, td) {
  color: var(--rc-ink-soft);
}
html[data-aim-local] .aim-ranking-tabs {
  gap: var(--rc-space-1);
  padding: var(--rc-space-1);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .aim-ranking-tabs button {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  border: 0;
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-body);
}
html[data-aim-local] .aim-ranking-tabs button.is-active {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}
html[data-aim-local] :is(.aim-rank-table, .aim-score-account, .aim-email-setup, .aim-payment-card, .aim-donate-card) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .aim-rank-table tr.is-me {
  background: color-mix(in srgb, var(--rc-signal) 10%, transparent);
}
html[data-aim-local] .aim-ranking-close {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
}

/* Upstream auth dialog, public leaderboard and guide callouts. */
html[data-aim-local] .el-dialog__body.auth-dialog {
  --auth-text: var(--rc-ink);
  --auth-muted: var(--rc-slate);
  --auth-line: var(--rc-rule-strong);
  --auth-accent: var(--rc-signal);
  --auth-field: var(--rc-paper);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}
html[data-aim-local] .auth-close-btn {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  color: var(--rc-ink);
}
html[data-aim-local] .auth-tab {
  min-block-size: 44px;
  border-radius: var(--rc-r-small);
  font-weight: 600;
}
html[data-aim-local] .auth-tab.auth-tab--active {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  box-shadow: none;
}
html[data-aim-local] .auth-tab__badge {
  border-radius: var(--rc-r-small);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .auth-right__body .el-button--primary {
  min-block-size: 44px;
  border-color: var(--rc-signal);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  box-shadow: none;
  font-weight: 600;
}
html[data-aim-local] .auth-right__body .el-button--primary:hover {
  border-color: var(--rc-signal-hover);
  background: var(--rc-signal-hover);
  color: var(--rc-on-signal);
  box-shadow: none;
}
html[data-aim-local] .auth-right__body .el-form-item__error { color: var(--rc-danger); }
html[data-aim-local] .al-cloud-board {
  background: var(--rc-paper);
  color: var(--rc-slate);
}
html[data-aim-local] .al-cloud-board-eyebrow {
  color: var(--rc-signal-text);
  font-size: var(--rc-fs-12);
  letter-spacing: 0;
}
html[data-aim-local] .al-cloud-board-title {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-28)/1.2 var(--rc-font-condensed);
}
html[data-aim-local] .al-cloud-board-cta {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-weight: 600;
}
html[data-aim-local] .al-cloud-board-body {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] :is(.al-guide .sg-ui, .al-guide .sg-callout) {
  border: var(--rc-hairline);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r);
}
html[data-aim-local] .al-guide .sg-callout-h { font-weight: 600; }
html[data-aim-local] .al-guide .sg-pin {
  border-radius: var(--rc-r-small);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  box-shadow: none;
  font-weight: 600;
}
html[data-aim-local] .al-guide .sg-pin.sg-red {
  background: var(--rc-danger);
  color: var(--rc-paper-raise);
  box-shadow: none;
}
html[data-aim-local] .al-guide .sg-open {
  display: inline-flex;
  align-items: center;
  min-block-size: 40px;
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  filter: none;
}
html[data-aim-local] .al-guide .sg-brand i {
  border-radius: var(--rc-r-small);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .al-guide a:not(.sg-open, .sg-brand) {
  color: var(--rc-signal-text);
}
html[data-aim-local] .al-guide .sg-hits {
  border-radius: var(--rc-r-panel);
  box-shadow: var(--rc-elevation-card);
}

/* Loading, pause, post-round result and replay surfaces keep clean night chrome. */
html[data-aim-local] .al-wkload {
  --wk-ink: var(--rc-night);
  --wk-chalk: var(--rc-night-text);
  --wk-dust: var(--rc-night-text-soft);
  --wk-dust-2: var(--rc-night-muted);
  --wk-brand: var(--rc-signal);
}
html[data-aim-local] :is(.al-wkload-veil, .al-wkload-plan, .al-pause-layer, .al-result-modal) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .al-wkload-plan {
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r);
  background: color-mix(in srgb, var(--rc-night-2) 92%, transparent);
}
html[data-aim-local] .al-wkload-agent img { filter: none; }
html[data-aim-local] :is(.al-wkload-plan-top em, .al-wkload-plan-foot, .al-wkload-kicker, .al-wkload-ticks) {
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] :is(.al-wkload-back, .tl-wait-exit) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-night-2);
  color: var(--rc-night-text);
  font-weight: 600;
}
html[data-aim-local] :is(.al-pause-card, .al-result-card, .al-run-card, .al-mr-card) {
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-night-2);
  color: var(--rc-night-text);
  box-shadow: none;
}
html[data-aim-local] :is(.al-result-modal, .al-run-body) {
  --run-bg: var(--rc-night);
  --run-panel: var(--rc-night-2);
  --run-raise: var(--rc-night-3);
  --run-line: var(--rc-night-rule);
  --run-text: var(--rc-night-text);
  --run-muted: var(--rc-night-muted);
  --run-signal: var(--rc-signal);
}
html[data-aim-local] :is(.al-pause-note, .al-pause-key, .al-pause-sub, .al-run-kicker, .al-run-label, .al-mr-kicker, .al-mr-label) {
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] :is(.al-pause-act, .al-run-btn, .al-mr-btn) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-night-text);
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] :is(.al-run-btn.is-primary, .al-mr-btn.is-primary) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .al-rp-glow { display: none !important; }
html[data-aim-local] :is(.al-rp-hud-card, .al-rp-feed, .al-rp-lower, .al-rv-lower) {
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r);
  background: color-mix(in srgb, var(--rc-night) 88%, transparent);
  color: var(--rc-night-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .al-rp-combo {
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] :is(.al-rp-fs, .al-rp-ghost, .al-rv-ghostbtn, .al-rv-close) {
  min-inline-size: 44px;
  min-block-size: 44px;
  border-radius: var(--rc-r-small);
  font-weight: 600;
}
html[data-aim-local] .al-rv-brief::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.al-rv-tile, .al-rv-lower .mk) {
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .al-rv-tabs button {
  min-block-size: 36px;
  border-radius: var(--rc-r-small);
  font-weight: 600;
}
html[data-aim-local] .al-rv-verdict {
  --vt: var(--rc-ok-text);
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  box-shadow: none;
  font-weight: 600;
}
html[data-aim-local] .al-rv-verdict.is-down { --vt: var(--rc-danger); }
html[data-aim-local] :is(.al-rv-hist button, .al-rv-tempo .bars button) {
  border-radius: 0;
}
html[data-aim-local] :is(.al-rv-lower small, .al-rv-hint, .al-rv-sec span, .al-rv-tempo .axis, .al-rv-halves p, .al-rv-kills small, .al-rv-kills .go) {
  font-size: var(--rc-fs-12);
}
@media (max-width: 760px) {
  html[data-aim-local] .al-run-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .al-run-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-aim-local] .al-wkload {
  display: flex; flex-direction: column; justify-content: safe flex-end;
  gap: 16px; padding: clamp(24px, 6vw, 96px); overflow-y: auto; box-sizing: border-box;
}
html[data-aim-local] .al-wkload :is(.al-wkload-lines,.al-wkload-plan,.al-wkload-edge,.al-wkload-veil,.al-wkload-agent,.al-wkload-ticks > span) { display: none; }
html[data-aim-local] .al-wkload .al-wkload-scrim { background: linear-gradient(0deg,color-mix(in srgb, var(--rc-night) 96%, transparent), color-mix(in srgb, var(--rc-night) 72%, transparent) 42%,transparent 90%); }
html[data-aim-local] .al-wkload :is(.al-wkload-side,.al-wkload-foot) { position: relative; inset: auto; width: min(100%, 700px); z-index: 6; }
html[data-aim-local] .al-wkload .al-wkload-head h1 { font: 600 clamp(32px, 4vw, 56px)/1.12 var(--rc-font-display) !important; }
html[data-aim-local] .al-wkload .al-wkload-track { height: 8px; border-radius: var(--rc-r-small); }
html[data-aim-local] .al-wkload .al-wkload-track i { box-shadow: none; background: var(--rc-signal); }
html[data-aim-local] .al-wkload .al-wkload-art img { animation: none; }
.vx-loading-tip, .vx-download { margin: 12px 0 0; color: var(--rc-night-text-soft); }

html[data-aim-local] .al-wkload .al-wkload-foot { padding: 0; }
html[data-aim-local] .al-wkload .al-wkload-head { max-inline-size: 100%; }

/* Native map training console. Uses unslop by Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop */
html[lang^="vi"] .rc-copy-en,
html:not([lang^="vi"]) .rc-copy-vi { display: none !important; }
html[data-aim-local] .rc-map-browser {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: var(--rc-space-8);
  align-content: start;
  max-inline-size: 1600px;
  margin-inline: auto;
  padding: var(--rc-space-8) var(--rc-space-8) var(--rc-space-12);
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-family: var(--rc-font-body);
}
html[data-aim-local] .rc-browser-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--rc-space-6);
  padding-block-end: var(--rc-space-6);
  border-block-end: var(--rc-hairline);
}
html[data-aim-local] .rc-browser-heading p {
  display: flex;
  align-items: center;
  gap: var(--rc-space-2);
  margin: 0 0 var(--rc-space-3);
  /* A quiet context line: the hero button is the page's only accent. */
  color: var(--rc-ink-soft);
  font: 500 var(--rc-fs-13)/1.4 var(--rc-font-condensed) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-aim-local] .rc-browser-heading h1 {
  margin: 0;
  color: var(--rc-ink);
  font: 600 clamp(32px, 3.2vw, 48px)/1.12 var(--rc-font-condensed) !important;
  letter-spacing: 0;
}
html[data-aim-local] .rc-browser-intro {
  max-inline-size: 65ch;
  margin-block-start: var(--rc-space-3);
  color: var(--rc-slate);
  font: var(--rc-fs-15)/var(--rc-lh-body) var(--rc-font-body);
}
html[data-aim-local] .rc-browser-search { flex: 0 1 340px; }
html[data-aim-local] .rc-browser-search input {
  inline-size: 100%;
  min-block-size: 48px;
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  box-shadow: none;
}
html[data-aim-local] .rc-map-rail { min-inline-size: 0; align-self: start; }
/* The map rail stays reachable while the shelves scroll: it sticks to the top of the board
   scroller (.hall-board-body) and scrolls its own overflow. workshop-layout.mjs measures the
   scroller into --rc-board-block-size; the fallback is the unwrapped desktop chrome
   (64px top bar + 61px tool rail + 59px bottom bar) until that first measurement. */
@media (min-width: 761px) {
  html[data-aim-local] .rc-map-rail {
    position: sticky;
    inset-block-start: var(--rc-space-4);
    display: flex;
    flex-direction: column;
    max-block-size: calc(var(--rc-board-block-size, calc(100dvh - 184px)) - 2 * var(--rc-space-4));
  }
  html[data-aim-local] .rc-map-rail .rc-map-list {
    flex: 0 1 auto;
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  html[data-aim-local] .rc-map-rail .rc-studio-link { flex: none; }
}
html[data-aim-local] .rc-map-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: var(--rc-space-4);
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1.4 var(--rc-font-condensed) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-aim-local] .rc-map-list { display: grid; gap: var(--rc-space-2); }
html[data-aim-local] .rc-map-list .rc-map-choice {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  min-inline-size: 0;
  min-block-size: 80px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  text-align: start;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}
html[data-aim-local] .rc-map-list .rc-map-choice:hover {
  border-color: var(--rc-signal-text);
  background: var(--rc-paper-sunk);
}
html[data-aim-local] .rc-map-choice img {
  grid-column: 1;
  grid-row: 1 / 3;
  inline-size: 96px;
  block-size: 80px;
  object-fit: cover;
  opacity: 1;
}
html[data-aim-local] .rc-map-choice-label {
  grid-column: 2;
  align-self: end;
  padding: 0 var(--rc-space-3) var(--rc-space-1);
  color: inherit;
  font: 600 var(--rc-fs-20)/1.2 var(--rc-font-condensed) !important;
}
html[data-aim-local] .rc-map-choice small {
  grid-column: 2;
  align-self: start;
  padding-inline: var(--rc-space-3);
  color: var(--rc-slate);
  font: var(--rc-fs-12)/1.4 var(--rc-font-body) !important;
}
html[data-aim-local] .rc-map-choice[data-workshop-map="all"] {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  min-block-size: 56px;
}
html[data-aim-local] .rc-map-choice[data-workshop-map="all"] :is(.rc-map-choice-label, small) {
  grid-column: auto;
  align-self: center;
  padding-block: 0;
}
html[data-aim-local] .rc-map-choice[aria-pressed="true"] {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  border-color: var(--rc-signal);
  box-shadow: inset 3px 0 var(--rc-signal);
}
html[data-aim-local] .rc-map-choice[aria-pressed="true"] small {
  color: color-mix(in srgb, var(--rc-selection-text) 78%, transparent);
}
html[data-aim-local] .rc-studio-link {
  display: flex;
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  margin-block-start: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  clip-path: none !important;
  font: 600 var(--rc-fs-15)/1.3 var(--rc-font-condensed) !important;
  text-decoration: none;
}
html[data-aim-local] .rc-studio-link span { font-family: inherit !important; }
html[data-aim-local] .rc-map-browser > .al-wk-main {
  grid-column: 2;
  min-inline-size: 0;
  padding: 0;
  overflow: visible;
}
html[data-aim-local] .rc-map-browser .al-wk-hero-copy {
  padding: 0 !important;
  margin-block-end: var(--rc-space-6);
}
html[data-aim-local] .rc-map-browser .al-wk-hero-copy > :is(h1, .al-wk-hero-sub) { display: none; }
html[data-aim-local] .rc-map-browser .al-wk-feat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--rc-space-6) !important;
  min-block-size: 320px;
  padding: var(--rc-space-8);
  margin: 0;
  inset-inline: auto !important;
  inline-size: 100% !important;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-night);
  color: var(--rc-night-text);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-aim-local] .rc-map-browser .sp-home-feature-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 26%;
  inline-size: auto;
  block-size: 100%;
  min-inline-size: 0;
  grid-area: auto;
  margin: 0;
  border-radius: 0 !important;
}
html[data-aim-local] .rc-map-browser .sp-home-feature-media img {
  inline-size: 100%;
  block-size: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
html[data-aim-local] .rc-map-browser .sp-home-feature-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--rc-night), color-mix(in srgb, var(--rc-night) 62%, transparent) 40%, transparent 100%);
}
html[data-aim-local] .rc-map-browser .al-wk-feat h2 {
  margin: 0;
  color: var(--rc-night-text);
  font: 600 clamp(24px, 2.2vw, 36px)/1.18 var(--rc-font-condensed) !important;
  letter-spacing: 0;
}
html[data-aim-local] .rc-map-browser .al-wk-feat-why { color: var(--rc-night-muted); }
html[data-aim-local] .rc-map-browser .al-wk-feat-why b { color: var(--rc-night-signal-text); }
html[data-aim-local] .rc-map-browser .al-wk-feat-text {
  position: relative;
  /* Override the base shell's :has(image) column before it creates an implicit track. */
  grid-area: 1 / 1 !important;
  max-inline-size: 62%;
  opacity: 1 !important;
  animation: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-go {
  position: relative;
  /* Both cover variants use this row; the shell places coverless actions beside copy. */
  grid-area: 2 / 1 !important;
  justify-self: start;
  margin: 0;
  min-block-size: 48px;
  padding-inline: var(--rc-space-6);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  clip-path: var(--rc-cut-path) !important;
  font: 600 var(--rc-fs-17)/1.2 var(--rc-font-condensed) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-aim-local] .rc-map-browser .al-wk-go::before { display: none; }
html[data-aim-local] .rc-map-browser .al-wk-feat .al-wk-pips {
  position: absolute;
  grid-area: auto !important;
  inset: auto var(--rc-space-6) var(--rc-space-6) auto;
  margin: 0;
  block-size: 44px;
  gap: var(--rc-space-2);
}
html[data-aim-local] .rc-map-browser .al-wk-pip { flex-basis: 44px; min-inline-size: 44px; block-size: 44px; }
html[data-aim-local] .rc-browser-heading h1 span,
html[data-aim-local] .rc-map-choice-label span,
html[data-aim-local] .rc-map-rail-heading span,
html[data-aim-local] .rc-browser-search > span span { font-family: inherit !important; }
@media (max-width: 1100px) {
  html[data-aim-local] .rc-map-browser { grid-template-columns: 192px minmax(0, 1fr); gap: var(--rc-space-6); padding-inline: var(--rc-space-6); }
  html[data-aim-local] .rc-map-list .rc-map-choice { grid-template-columns: 76px minmax(0, 1fr); }
  html[data-aim-local] .rc-map-choice img { inline-size: 76px; }
  html[data-aim-local] .rc-map-choice-label { font-size: var(--rc-fs-17) !important; }
  /* The 192px rail cannot fit "All maps" beside its count; stack them like the other map choices. */
  html[data-aim-local] .rc-map-choice[data-workshop-map="all"] { grid-template-columns: minmax(0, 1fr); align-content: center; }
  html[data-aim-local] .rc-map-choice[data-workshop-map="all"] .rc-map-choice-label { white-space: nowrap; }
  html[data-aim-local] .rc-map-browser .al-wk-feat { min-block-size: 300px; padding: var(--rc-space-6); }
  html[data-aim-local] .rc-map-browser .al-wk-feat-text { max-inline-size: 85%; }
}
@media (max-width: 760px) {
  html[data-aim-local] .rc-map-browser { display: block; padding: var(--rc-space-6) var(--rc-space-4); }
  html[data-aim-local] .rc-browser-heading { display: grid; gap: var(--rc-space-4); margin-block-end: var(--rc-space-6); }
  html[data-aim-local] .rc-browser-heading h1 { font-size: 32px !important; }
  html[data-aim-local] .rc-map-list { display: flex; overflow-x: auto; padding-block-end: var(--rc-space-2); }
  html[data-aim-local] .rc-map-list .rc-map-choice { flex: 0 0 216px; grid-template-columns: 88px minmax(0, 1fr); }
  html[data-aim-local] .rc-map-choice img { inline-size: 88px; }
  html[data-aim-local] .rc-studio-link { margin-block: var(--rc-space-3) var(--rc-space-6); }
  html[data-aim-local] .rc-map-browser .al-wk-feat { min-block-size: 360px; align-content: end; grid-template-rows: auto auto; padding: var(--rc-space-6); }
  html[data-aim-local] .rc-map-browser .sp-home-feature-media { inset: 0; }
  html[data-aim-local] .rc-map-browser .sp-home-feature-media::after { background: linear-gradient(0deg, var(--rc-night) 0%, color-mix(in srgb, var(--rc-night) 92%, transparent) 34%, transparent 100%); }
  html[data-aim-local] .rc-map-browser .al-wk-feat-text { max-inline-size: 100%; padding-block-start: 120px; }
  html[data-aim-local] .rc-map-browser .al-wk-feat h2 { font-size: 28px !important; }
  html[data-aim-local] .rc-map-browser .al-wk-feat .al-wk-pips { position: relative; inset: auto; grid-area: 3 / 1 !important; justify-self: start; flex-wrap: wrap; max-inline-size: 100%; block-size: auto; }
}

html[data-aim-local] .rc-map-browser { grid-template-rows: auto auto 1fr; }
.vx-lobby, .vx-stage-status { grid-column: 1 / -1; }
.vx-lobby { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 16px; }
.vx-stage, .vx-next, .vx-stage-status {
  position: relative; isolation: isolate; min-width: 0; overflow: hidden;
  border: var(--rc-hairline); border-radius: var(--rc-r-panel); background: var(--rc-paper-raise);
}
.vx-stage, .vx-stage-status[aria-busy="true"] { min-height: 340px; }
.vx-stage { display: grid; align-content: end; color: var(--rc-night-text); }
html[data-aim-local] .vx-stage .sp-home-feature-media {
  position: absolute; inset: 0; grid-area: auto; z-index: -1;
  width: 100%; height: 100%; border: 0; border-radius: inherit;
}
html[data-aim-local] .vx-stage .sp-home-feature-media img {
  display: block; inline-size: 100%; block-size: 100%;
  min-block-size: 0; max-block-size: none; object-fit: cover;
}
html[data-aim-local] .vx-stage .sp-home-feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,color-mix(in srgb, var(--rc-night) 96%, transparent),color-mix(in srgb, var(--rc-night) 80%, transparent) 50%,color-mix(in srgb, var(--rc-night) 25%, transparent)); }
.vx-stage-copy, .vx-next, .vx-stage-status { padding: clamp(16px, 3vw, 40px); }
.vx-stage-copy { display: grid; gap: 12px; justify-items: start; min-width: 0; }
html[data-aim-local] .vx-stage h2 { font: 600 clamp(28px, 3vw, 44px)/1.1 var(--rc-font-condensed) !important; margin: 0; color: inherit; }
.vx-tags, .vx-pair, .vx-stage dl { display: flex; gap: 8px; margin: 0; }
.vx-tags span, .vx-pair button { padding: 4px 8px; border: 1px solid var(--rc-night-rule-strong); border-radius: var(--rc-r-small); background: var(--rc-night); color: var(--rc-night-text); }
.vx-pair button[aria-pressed=true] { border-color: var(--rc-signal); }
.vx-stage dl { gap: 28px; }
.vx-stage dt, .vx-stage-copy > small { color: var(--rc-night-text-soft); }
.vx-stage dd { margin: 4px 0 0; font-weight: 700; }
.vx-stage-desc { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-start { min-height: 48px; padding: 0 32px; background: var(--rc-signal); color: var(--rc-on-signal); border: 0; border-radius: var(--rc-r); font-weight: 600; }
html[data-aim-local] :is(.rc-map-browser, .am-pane):has(> .vx-lobby) .sp-workshop-intro-actions .sp-workshop-intro-start {
  background: transparent; border-color: var(--rc-rule-strong); color: var(--rc-ink);
}
.vx-next { display: grid; align-content: start; gap: 4px; padding: 20px; }
.vx-next h2 { margin: 0 0 8px; font: 600 22px/1.25 var(--rc-font-condensed); }
.vx-next-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 12px; text-align: start; color: inherit; padding: 8px 0; border: 0; border-top: var(--rc-hairline); background: transparent; }
.vx-next-row img { object-fit: cover; border-radius: var(--rc-r-small); }
.vx-next-row small { display: block; color: var(--rc-slate); }
.vx-stage-status i { display: block; height: 24px; max-width: 70%; margin-top: 12px; background: var(--rc-paper-sunk); border-radius: var(--rc-r-small); }
@media (max-width: 760px) {
  .vx-lobby { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .am-pane .vx-lobby { margin: 12px 16px; }
}

/* Paged shelves keep a single row at every scroll position, including off screen. */
@supports (content-visibility: auto) {
  html[data-aim-local] .rc-map-browser .al-wk-sec.is-shelf {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 300px;
  }
}

/* Static photo/content cards refined with unslop by Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop
   Text and actions stay visible on touch and with a keyboard. */
html[data-aim-local] .rc-site-picker {
  padding: var(--rc-space-6);
  margin-block-end: var(--rc-space-6);
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .rc-site-heading {
  display: flex;
  align-items: baseline;
  gap: var(--rc-space-4);
  margin-block-end: var(--rc-space-4);
}
html[data-aim-local] .rc-site-picker h2 {
  margin: 0;
  color: var(--rc-ink);
  font: 700 var(--rc-fs-28)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] .rc-site-options { display: flex; flex-wrap: wrap; gap: var(--rc-space-2); }
html[data-aim-local] .rc-site-options button {
  display: flex;
  align-items: center;
  gap: var(--rc-space-3);
  min-block-size: 44px;
  padding: 0 var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-slate);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-condensed) !important;
  text-transform: none !important;
  cursor: pointer;
}
html[data-aim-local] .rc-site-options button :is(b, span) { font-family: inherit !important; }
html[data-aim-local] .rc-site-options button[aria-pressed="true"] {
  z-index: 1;
  border-color: var(--rc-ink);
  background: var(--rc-ink) !important;
  color: var(--rc-paper-raise) !important;
}
html[data-aim-local] .rc-site-options button:disabled { opacity: .42; cursor: not-allowed; }
html[data-aim-local] .rc-map-browser .al-wk-tools {
  padding: 0;
  margin: 0 0 var(--rc-space-6);
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-bar { gap: var(--rc-space-4); }
html[data-aim-local] .rc-map-browser .sp-home-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rc-space-2);
}
html[data-aim-local] .rc-map-browser .al-wk-chip {
  min-block-size: 44px;
  padding: 0 var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-slate) !important;
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-condensed) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-aim-local] .rc-map-browser .al-wk-chip em { font-family: var(--rc-font-mono) !important; color: inherit; }
html[data-aim-local] .rc-map-browser .al-wk-chip.al-wk-on {
  z-index: 1;
  border-color: var(--rc-ink);
  background: var(--rc-ink) !important;
  color: var(--rc-paper-raise) !important;
  box-shadow: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-tools-r { justify-content: space-between; inline-size: 100%; }
html[data-aim-local] .rc-map-browser .al-wk-toggle {
  min-block-size: 44px;
  padding: 0 var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-condensed) !important;
  text-transform: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-toggle.is-on {
  background: var(--rc-ink) !important;
  color: var(--rc-paper-raise) !important;
  box-shadow: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-sort { display: flex; align-items: center; gap: var(--rc-space-2); }
html[data-aim-local] .rc-map-browser .al-wk-sort > span { color: var(--rc-slate); font-size: var(--rc-fs-12); }
html[data-aim-local] .rc-map-browser .al-wk-sort button { display: none; }
html[data-aim-local] .rc-map-browser .al-wk-sort select {
  display: block;
  min-block-size: 44px;
  padding: 0 var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  font: var(--rc-fs-13)/1.3 var(--rc-font-body);
}
html[data-aim-local] .rc-map-browser .al-wk-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--rc-space-6);
  perspective: none;
}
html[data-aim-local] .rc-map-browser .al-wk-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-block-size: 400px;
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
  box-shadow: var(--rc-elevation-card) !important;
  transform: none !important;
  animation: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-card:hover { border-color: var(--rc-signal-text); }
html[data-aim-local] .rc-map-browser :is(.al-wk-holo, .al-wk-cut) { display: none; }
html[data-aim-local] .rc-map-browser .al-wk-frame { box-shadow: none !important; }
html[data-aim-local] .rc-map-browser .al-wk-card.is-spot::after {
  border: 2px solid var(--rc-signal);
  box-shadow: none;
  animation: none;
}
html[data-aim-local] .rc-map-browser .al-wk-card:not(.is-back) .al-wk-art {
  position: relative;
  inset: auto;
  flex: 0 0 184px;
  block-size: 184px;
  mask-image: none;
}
html[data-aim-local] .rc-map-browser .al-wk-art img { transform: none !important; }
html[data-aim-local] .rc-map-browser .al-wk-art::after { content: none; }
html[data-aim-local] .rc-map-browser .al-wk-body {
  position: relative;
  inset: auto;
  flex: 1;
  padding: var(--rc-space-4) !important;
  background: var(--rc-paper-raise);
  transform: none !important;
}
html[data-aim-local] .rc-map-browser .al-wk-body h3 {
  margin: 0;
  color: var(--rc-ink);
  font: 600 var(--rc-fs-20)/1.3 var(--rc-font-condensed) !important;
  text-shadow: none;
  white-space: normal;
}
html[data-aim-local] .rc-map-browser .al-wk-body p {
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
  color: var(--rc-slate);
}
html[data-aim-local] .rc-map-browser .al-wk-foot { color: var(--rc-slate); font-weight: 400; }
html[data-aim-local] .rc-map-browser :is(.al-wk-split, .al-wk-play) {
  position: relative;
  inset: auto;
  display: flex;
  gap: var(--rc-space-2);
  flex: 0 0 auto;
  block-size: auto;
  min-block-size: 44px;
  margin: 0 var(--rc-space-4) var(--rc-space-4);
  opacity: 1;
  transform: none !important;
  clip-path: none;
}
/* Ninety-odd cards share one action, so it stays neutral until pointed at; the
   featured hero keeps the only filled accent button on the page. */
html[data-aim-local] .rc-map-browser .al-wk-card :is(.al-wk-split-go, .al-wk-play) {
  min-block-size: 44px;
  block-size: auto;
  min-inline-size: 0;
  padding: var(--rc-space-2) var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong) !important;
  border-radius: var(--rc-r-small) !important;
  background: transparent !important;
  color: var(--rc-ink) !important;
  font: 600 var(--rc-fs-13)/1.25 var(--rc-font-condensed) !important;
  text-transform: none !important;
  text-align: center;
  white-space: normal;
  transition: background-color var(--rc-dur-1) var(--rc-ease-out), border-color var(--rc-dur-1) var(--rc-ease-out), color var(--rc-dur-1) var(--rc-ease-out);
}
html[data-aim-local] .rc-map-browser .al-wk-card .al-wk-split-go { flex: 1; }
html[data-aim-local] .rc-map-browser .al-wk-card :is(.al-wk-split-go, .al-wk-play):is(:hover, :focus-visible) {
  border-color: var(--rc-signal) !important;
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] .rc-map-browser .al-wk-card .al-wk-split-alt {
  min-block-size: 44px;
  block-size: auto;
  padding: var(--rc-space-2) var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong) !important;
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-sunk) !important;
  color: var(--rc-ink) !important;
  font: 600 var(--rc-fs-13)/1.25 var(--rc-font-condensed) !important;
  text-transform: none !important;
  white-space: normal;
}
html[data-aim-local] .rc-map-browser .al-wk-card .al-wk-split-alt:is(:hover, :focus-visible) {
  border-color: var(--rc-signal-text) !important;
}
/* Narrow cards stack the actions; a quiet secondary keeps "Start training" the only heavy button in a shelf. */
@container (max-width: 320px) {
  html[data-aim-local] .rc-map-browser .al-wk-card .al-wk-split-alt {
    min-block-size: 36px;
    border-color: transparent !important;
    background: transparent !important;
    color: var(--rc-ink-soft) !important;
  }
}
/* The internal share-code chip covered every cover image without helping players choose an exercise. */
html[data-aim-local] .rc-map-browser .al-wk-card-no { display: none; }
html[data-aim-local] .rc-map-browser .al-wk-card-no {
  top: 0;
  left: 0;
  padding: var(--rc-space-2);
  background: var(--rc-ink);
  color: var(--rc-paper-raise);
  text-shadow: none;
  letter-spacing: 0;
}
html[data-aim-local] .rc-map-browser .al-wk-fav {
  top: var(--rc-space-2);
  right: var(--rc-space-2);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  border: 1px solid var(--rc-rule);
  box-shadow: none;
}
html[data-aim-local] .rc-map-browser .al-wk-diff { margin-block-end: var(--rc-space-2); color: var(--rc-ink); }
html[data-aim-local] .rc-map-browser .al-wk-diff i { transform: none; background: var(--rc-rule); }
html[data-aim-local] .rc-map-browser .al-wk-diff i.is-on { background: var(--rc-ink); }
html[data-aim-local] .rc-map-browser .al-wk-sec-top h2 { font: 600 var(--rc-fs-28)/1.2 var(--rc-font-condensed) !important; }
html[data-aim-local] .rc-map-browser .al-wk-sec-top {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rc-space-3);
  margin-block-end: var(--rc-space-4);
}
html[data-aim-local] .rc-map-browser .al-wk-sec-more,
html[data-aim-local] .rc-map-browser .al-wk-paddle {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .rc-map-browser.al-wk .al-wk-sec-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-block-size: 44px;
  padding: var(--rc-space-2) var(--rc-space-4);
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-condensed);
  white-space: nowrap;
}
/* Shelf measurements and scroll steps use the native 262px card + 26px gap model. */
html[data-aim-local] .rc-map-browser .al-wk-sec.is-shelf .al-wk-grid { gap: 26px; }
html[data-aim-local] .rc-map-browser .al-wk-sec.is-shelf .al-wk-pages { margin-inline-end: 0; }
html[data-aim-local] .rc-map-browser .al-wk-shelf.has-more::after { inset-inline-end: 0; }
@container (max-width: 320px) {
  html[data-aim-local] .rc-map-browser .al-wk-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
html[data-aim-local] .rc-map-browser :is(.al-wk-sec, .al-wk-pages) { min-inline-size: 0; }
html[data-aim-local] .rc-map-browser .sp-workshop-intro {
  margin: 0 0 var(--rc-space-4);
  padding: 0;
  font-size: var(--rc-fs-13);
  color: var(--rc-slate);
}

@media (max-width: 760px) {
  html[data-aim-local] .rc-site-picker { padding: var(--rc-space-4); }
  html[data-aim-local] .rc-map-browser .al-wk-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .rc-map-browser .al-wk-card { min-block-size: 0; }
  html[data-aim-local] .rc-map-browser .al-wk-card:not(.is-back) .al-wk-art { flex-basis: 192px; block-size: 192px; }
}

html[data-aim-local] .rc-map-browser .al-wk-shelf.is-paged {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--rc-space-2);
}
html[data-aim-local] .rc-map-browser .al-wk-shelf.is-paged .al-wk-pages { flex: 0 0 100%; min-width: 0; }
html[data-aim-local] .rc-map-browser .al-wk-shelf.is-paged .al-wk-paddle {
  position: static;
  transform: none;
  inline-size: 44px;
  block-size: 44px;
}
html[data-aim-local] .rc-map-browser .al-wk-shelf.has-more::after { content: none; }

/* UI refinement follows unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Shared Hall surfaces from the lab. Decorative art never sits behind copy. */
html[data-aim-local] .hall-gunwall { display: none !important; }
html[data-aim-local] :is(.hall-center, .pw, .rov, .st-view) {
  color: var(--rc-ink);
  background: var(--rc-paper);
  font-size: var(--rc-fs-15);
}
html[data-aim-local] :is(.hall-center, .st-view, .rov) { padding: var(--rc-space-6); }
html[data-aim-local] :is(.hall-center-head h1, .hall-board-head h1, .st-head h1, .pw-head h1) {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-28)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] :is(.hall-center-head p, .st-head p, .hall-field-text small) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
}
html[data-aim-local] :is(.pw-diff, .aim-vt-card-difficulty) {
  border-radius: var(--rc-r-small) !important;
  color: var(--rc-ink) !important;
  border-color: var(--rc-rule) !important;
  background: transparent !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) {
  gap: 2px !important;
  padding: 2px !important;
  border: var(--rc-hairline);
  border-radius: var(--rc-r) !important;
  background: var(--rc-paper-raise) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) :is(button, [role="button"]) {
  min-block-size: 40px;
  padding-inline: var(--rc-space-3);
  border-radius: var(--rc-r-small) !important;
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) button:is(.is-active, .is-on, [aria-pressed="true"]) {
  color: var(--rc-paper-raise) !important;
  background: var(--rc-ink) !important;
  box-shadow: none !important;
}
html[data-aim-local] :is(.st-search, .st-search-input, .st-preview-hint, .st-sens, .hall-dialog-note, .rov-empty) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-small) !important;
  background: var(--rc-paper-raise);
  box-shadow: none !important;
}
html[data-aim-local] .rov-empty { padding: var(--rc-space-12) var(--rc-space-4); }
html[data-aim-local] .rov-empty-acts {
  flex-wrap: wrap;
  justify-content: center;
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rc-space-2) var(--rc-space-4);
  padding: var(--rc-space-4);
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-slate);
  overflow-wrap: anywhere;
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty-go {
  min-block-size: 36px;
  padding-inline: var(--rc-space-3);
  margin: 0;
  border: 1px solid var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] [data-role="favorites-view"] .hall-empty-go:is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  text-decoration: none;
}
html[data-aim-local] .hall-ball-head-top { flex-wrap: wrap; }
html[data-aim-local] .hall-ball-top { flex-wrap: wrap; }
html[data-aim-local] .hall-ball-pages { flex-wrap: wrap; gap: var(--rc-space-4); }
html[data-aim-local] .hall-ball-pages-sep { display: none; }
html[data-aim-local] .hall-ball-page {
  color: var(--rc-slate);
  font: 600 var(--rc-fs-20)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] .hall-ball-page.is-on { color: var(--rc-ink); }
html[data-aim-local] .hall-ball-page .hall-icon { color: inherit; }
html[data-aim-local] .hall-ball-wall { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
html[data-aim-local] .hall-ball-head h2 { white-space: normal; font: 600 var(--rc-fs-20)/1.2 var(--rc-font-condensed) !important; }
html[data-aim-local] .hall-ball-head-top h2 { flex-basis: 100%; }
html[data-aim-local] .hall-ball-head h2 span,
html[data-aim-local] .hall-ball-card-body > b > span { white-space: normal; }
html[data-aim-local] .hall-ball-card { border-color: var(--rc-rule); background: var(--rc-paper-raise); }
html[data-aim-local] .hall-ball-card.is-on { border-color: var(--rc-ink); }
html[data-aim-local] .hall-ball-card :is(h3, b) { font-family: var(--rc-font-condensed) !important; }
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit) {
  border-color: var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
}
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit):is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] :is(.hall-ball-card-credit, .hall-ball-head-credit):focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
}
html[data-aim-local] .hall-ball-card-body > small {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-aim-local] .hall-ball-card-foot { margin-block-start: auto; padding-block-start: 12px; }
html[data-aim-local] .hall-ball-detail .hall-ball-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[data-aim-local] .hall-ball-detail .hall-ball-stats :is(span, b) {
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-aim-local] .hall-ball-detail .hall-lb { min-block-size: 15rem; }
html[data-aim-local] .hall-ball-detail .hall-ball-actions {
  position: static;
  flex-wrap: wrap;
}
html[data-aim-local] .hall-ball-detail .hall-ball-actions button {
  block-size: auto;
  padding: var(--rc-space-2) var(--rc-space-3);
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
@media (max-width: 700px) {
  html[data-aim-local] :is(.hall-center, .st-view, .rov) { padding: var(--rc-space-4); }
}

html[data-aim-local] .hall-dialog.is-settings .sd-tabs {
  flex: none;
  overflow-x: auto;
}

/* Shared empty and modal panels; Settings owns its workspace surfaces. */
html[data-aim-local] :is(.rov-empty, .hall-dialog.is-settings) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
}

/* Favorites cards and tabs. */
html[data-aim-local] :is(.hall-center--cards, .hall-light .hall-center--cards) {
  --card-bg: var(--rc-paper-raise);
  --card-border: var(--rc-rule);
}
html[data-aim-local] .hall-card {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .hall-card:hover {
  border-color: var(--rc-rule-strong);
  transform: none;
}
html[data-aim-local] .hall-card-icon {
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] :is(.hall-card-body small, .hall-card-best small, .hall-card-dur) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .hall-fav-tab {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  color: var(--rc-slate);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed);
}
html[data-aim-local] .hall-fav-tab.is-active {
  border-block-end-color: var(--rc-signal);
  color: var(--rc-ink);
}
html[data-aim-local] .hall-fav-tab:focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
}

/* Individual center, rig cards and profile account dialogs. */
html[data-aim-local] :is(.hall-pf, .hall-light .hall-pf, .pf-dlg, .hall-light .pf-dlg) {
  --pf-desk: var(--rc-paper-raise);
  --pf-raised: var(--rc-paper-sunk);
  --pf-line: var(--rc-rule);
  --pf-text: var(--rc-ink);
  --pf-muted: var(--rc-slate);
}
html[data-aim-local] :is(.hall-pf-head, .hall-pf-panel, .pf-desk, .pf-rig, .pf-dlg-card) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background-color: var(--rc-paper-raise);
  background-image: none !important;
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] :is(.hall-pf-head::before, .hall-pf-head::after) {
  content: none;
  display: none;
}
html[data-aim-local] :is(.pf-gear-xh, .pf-dlg-box) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper);
}
html[data-aim-local] :is(.pf-act, .pf-dlg-btn) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.pf-act.is-primary, .pf-dlg-btn.is-primary) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.pf-act, .pf-dlg-btn):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.pf-icon-btn, .hall-pf-cam, .pf-dlg-x) {
  min-inline-size: 40px;
  min-block-size: 40px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}
html[data-aim-local] .pf-dlg-input {
  min-block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper);
  color: var(--rc-ink);
}
html[data-aim-local] :is(.hall-pf-name, .hall-pf-panel h2, .pf-dlg-title) {
  font: 600 var(--rc-fs-20)/1.25 var(--rc-font-condensed);
  letter-spacing: 0;
}

/* Aim drills, ball leaderboard, ball drawer and tunables dialog. */
html[data-aim-local] .aim-ball-picks button {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .aim-ball-picks button:is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] :is(.hall-ball-drawer-mask, .al-tn-mask) {
  background: color-mix(in srgb, var(--rc-night) 68%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .hall-ball-drawer {
  border-inline-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] :is(.hall-ball-drawer-x, .al-tn-x) {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] :is(.hall-ball-drawer-x, .al-tn-x):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] :is(.hall-lb, .hall-light .hall-lb) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}
html[data-aim-local] :is(.hall-lb-head, .hall-lb-sub, .hall-lb-row small) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .al-tn {
  --tn-bg: var(--rc-paper-raise);
  --tn-card: var(--rc-paper);
  --tn-raise: var(--rc-paper-sunk);
  --tn-line: var(--rc-rule);
  --tn-text: var(--rc-ink);
  --tn-muted: var(--rc-slate);
  --tn-signal: var(--rc-signal);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .al-tn::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.al-tn-btn, .al-tn-preset) {
  min-block-size: 44px;
  border-radius: var(--rc-r-small);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .al-tn-btn.is-primary {
  border: 1px solid var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}

/* Changelog page and modal, system menu, notices, badge toast and welcome dialog. */
html[data-aim-local] :is(.hall-cl-cover, .hall-cl-dlg-cover) {
  border-block-end: var(--rc-hairline);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
html[data-aim-local] :is(.hall-cl-cover, .hall-cl-dlg-cover) :is(h1, h2, b, span, small) {
  color: inherit;
}
html[data-aim-local] .hall-cl-idx {
  min-block-size: 44px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .hall-cl-idx.is-on {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
}
html[data-aim-local] .hall-cl-idx.is-on::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.hall-sysmenu-pop, .hall-notice-popper, .al-gain, .hall-toast, .hall-welcome) {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: var(--rc-elevation-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .al-gain::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.hall-sysmenu-item, .hall-notice-item) {
  min-block-size: 44px;
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-13);
}
html[data-aim-local] :is(.al-gain-x, .al-gain-cta, .hall-welcome-btn) {
  min-block-size: 40px;
  border-radius: var(--rc-r-small);
  font-weight: 600;
}
html[data-aim-local] .al-gain-cta {
  border: 1px solid var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .hall-notice-badge {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
}

/* Secondary Hall routes: checkup, skin lab and raffle. */
html[data-aim-local] .cq-dev-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .cq-dev-overlay__title {
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] .cq-card {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .cq-progress-bar { border-radius: var(--rc-r-small); }
html[data-aim-local] .cq-back-btn {
  min-block-size: 44px;
  padding-inline: var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  color: var(--rc-ink);
  font-weight: 600;
}
html[data-aim-local] .cq-next-btn {
  min-block-size: 44px;
  padding-inline: var(--rc-space-6);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-weight: 600;
}
html[data-aim-local] .cq-submit-error {
  border-color: color-mix(in srgb, var(--rc-danger) 36%, transparent);
  border-radius: var(--rc-r);
  background: color-mix(in srgb, var(--rc-danger) 10%, transparent);
  color: var(--rc-danger);
}
html[data-aim-local] .skin-lab { --skin-active: var(--rc-signal); }
html[data-aim-local] .skin-lab-card {
  border-inline-start-width: 1px;
  border-radius: var(--rc-r-panel);
  background: color-mix(in srgb, var(--rc-night) 88%, transparent);
  color: var(--rc-night-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .skin-lab-card-gem {
  border-radius: var(--rc-r-small);
  background: var(--rc-warn-text);
  color: var(--rc-paper-raise);
  font-weight: 600;
}
html[data-aim-local] :is(.skin-lab-roll, .skin-lab-chips button.is-on, .skin-lab-actions button.is-primary) {
  min-block-size: 44px;
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-weight: 600;
}
html[data-aim-local] :is(.skin-lab-tabs button, .skin-lab-views button, .skin-lab-actions button, .skin-lab-case-open) {
  min-block-size: 40px;
  font-weight: 600;
}
html[data-aim-local] :is(.rf, .rf-ev, .rf-strip, .rf-wstrip) {
  --rf-cinnabar: var(--rc-signal);
  --rf-bronze: var(--rc-ok-text);
  --rf-bronze-hi: var(--rc-ink);
  --rf-bronze-text: var(--rc-signal-text);
  --rf-bronze-mark: var(--rc-signal);
  --rf-ash: var(--rc-slate);
  --rf-warn: var(--rc-warn-text);
  --rf-serif: var(--rc-font-condensed);
  --rf-num: var(--rc-font-mono);
  --rf-hud: var(--rc-font-body);
}
html[data-aim-local] .rf-hero {
  background: var(--rc-night);
  color: var(--rc-night-text);
}
html[data-aim-local] :is(.rf-logo, .rf-token.is-win) { filter: none; }
html[data-aim-local] .rf-panel {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] :is(.rf-title, .rf-panel-head h2, .rf-live, .rf-hero-alert, .rf-when b, .rf-stat small, .rf-token-day, .rf-token-note, .rf-stamp) {
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] .rf-hero-alert .rf-btn {
  min-block-size: 44px;
  border-radius: var(--rc-r);
}

@media (max-width: 960px) {
  html[data-aim-local] :is(.skin-lab, .rf-body) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .skin-lab-stage { min-block-size: 360px; }
  html[data-aim-local] .rf-body { padding-inline: var(--rc-space-4); }
  html[data-aim-local] .rf-hero {
    block-size: auto;
    padding: var(--rc-space-6) var(--rc-space-4);
  }
  html[data-aim-local] :is(.rf-hero-copy, .rf-hero-stats) {
    position: static;
    inline-size: 100%;
    max-inline-size: 100%;
    text-align: start;
  }
  html[data-aim-local] .rf-hero-stats { margin-block-start: var(--rc-space-4); }
}
@media (max-width: 860px) {
  html[data-aim-local] .hall-cl {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  html[data-aim-local] .hall-pf-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rc-space-4);
  }
  html[data-aim-local] :is(.pf-acct-rows, .pf-gear, .al-tn-body) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .hall-ball-detail .hall-ball-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  html[data-aim-local] .hall-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Settings share one workspace; the preview card owns only its content height. */
html[data-aim-local] .st-view {
  display: grid;
  grid-template: auto minmax(0, 1fr) / 180px minmax(0, 1fr);
  gap: var(--rc-space-6);
  inline-size: 100%;
  max-inline-size: 1920px;
  min-inline-size: 0;
  margin-inline: auto;
  padding: var(--rc-space-8);
  container: settings / inline-size;
}
html[data-aim-local] .st-view .st-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: var(--rc-space-6);
  padding: 0 0 var(--rc-space-6);
  border-block-end: var(--rc-hairline);
}
html[data-aim-local] .st-view .st-title { display: grid; gap: var(--rc-space-2); }
html[data-aim-local] .st-view .st-title p { white-space: normal; }
html[data-aim-local] .st-view .st-searchrow { display: grid; gap: var(--rc-space-2); }
html[data-aim-local] .st-view .st-search-box { min-inline-size: 0; }
html[data-aim-local] .st-view .st-search { block-size: 44px; }
html[data-aim-local] .st-view .st-sync { margin: 0; }
html[data-aim-local] .st-view .st-tabbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--rc-space-6);
  min-block-size: 0;
  margin: 0;
  border: 0;
}
html[data-aim-local] .st-tabbar .st-tabs {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--rc-space-2);
  overflow: visible;
}
html[data-aim-local] .st-tabs .st-tab {
  justify-content: start;
  gap: var(--rc-space-3);
  min-block-size: 48px;
  block-size: auto;
  padding: var(--rc-space-3) var(--rc-space-4);
  border: 1px solid transparent;
  border-radius: var(--rc-r) !important;
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-15)/1.4 var(--rc-font-body) !important;
}
html[data-aim-local] .st-tabs .st-tab::after { content: none; }
html[data-aim-local] .st-tabs .st-tab:hover {
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}
html[data-aim-local] .st-tabs .st-tab.is-active {
  border-color: var(--rc-rule-strong);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
html[data-aim-local] .st-tabs .st-tab svg { flex: none; }
html[data-aim-local] .st-tabbar .st-save {
  align-items: start;
  gap: var(--rc-space-2);
  margin: auto 0 0;
  padding: var(--rc-space-4);
  border-block-start: var(--rc-hairline);
  line-height: var(--rc-lh-body);
}
html[data-aim-local] .st-save i { flex: none; margin-block-start: 6px; }
html[data-aim-local] .st-save > span { display: block; }
html[data-aim-local] .st-save .st-save-effect { display: block; color: var(--rc-slate); font-weight: 400; }
html[data-aim-local] .st-view .st-main {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--rc-space-6);
  min-inline-size: 0;
  padding: 0;
}
html[data-aim-local] .st-view .st-main.is-wide { grid-template-columns: minmax(0, 1fr); }
html[data-aim-local] .st-view .st-main.is-wide .st-list { max-inline-size: none; }
html[data-aim-local] .st-view .st-list {
  min-inline-size: 0;
  max-inline-size: none;
  padding: 0 var(--rc-space-6) var(--rc-space-6);
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
  scrollbar-gutter: stable;
  container: settings-editor / inline-size;
}
html[data-aim-local] .st-view .st-side {
  align-self: start;
  max-block-size: 100%;
  min-inline-size: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  container-type: inline-size;
}
html[data-aim-local] .st-side .st-stack,
html[data-aim-local] .st-side .st-stack.is-cross {
  inline-size: 100%;
  max-inline-size: none;
  padding: var(--rc-space-6);
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  box-sizing: border-box;
}
html[data-aim-local] .st-side .st-bar {
  flex-wrap: wrap;
  block-size: auto;
  gap: var(--rc-space-2) var(--rc-space-3);
  padding: 0 0 var(--rc-space-4);
}
html[data-aim-local] .st-bar h2 { flex: 1 1 100%; }
html[data-aim-local] .st-side .st-bar p {
  margin: 0;
  white-space: normal;
  line-height: var(--rc-lh-body);
}
html[data-aim-local] .st-side .st-monitor {
  inline-size: min(100%, calc(min(600px, 70dvh) * var(--st-preview-aspect)));
  margin-inline: auto;
  overflow: hidden;
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  box-shadow: none;
}
html[data-aim-local] .st-monitor-corner { display: none; }
html[data-aim-local] .st-side .st-explain-card {
  min-block-size: 0;
  padding: var(--rc-space-4) 0 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-aim-local] .st-side .st-explain h4 { flex-wrap: wrap; }
html[data-aim-local] .st-side .st-explain h4 small { margin-inline-start: 0; white-space: normal; }
html[data-aim-local] .st-side .st-explain p { margin: 0; line-height: var(--rc-lh-body); }
html[data-aim-local] .st-tele { gap: var(--rc-space-4); }
html[data-aim-local] .st-tele dt { white-space: normal; font-size: var(--rc-fs-12); line-height: 1.5; }
html[data-aim-local] .st-tele dd { font-size: var(--rc-fs-20); line-height: 1.3; }
html[data-aim-local] .st-tele dd small { display: block; margin: var(--rc-space-1) 0 0; font-size: var(--rc-fs-12); }
html[data-aim-local] .st-rows {
  --st-line: var(--rc-rule);
  --st-line-2: var(--rc-rule-strong);
  --st-well: var(--rc-paper-raise);
}
html[data-aim-local] .st-rows .hall-dialog-section {
  display: grid;
  gap: var(--rc-space-2);
  padding: var(--rc-space-6) 0 var(--rc-space-4);
  margin: var(--rc-space-4) 0 0;
  font: 600 var(--rc-fs-20)/1.3 var(--rc-font-display) !important;
}
html[data-aim-local] .st-rows .hall-dialog-section::before { content: none; }
html[data-aim-local] .st-rows .hall-dialog-section-note {
  /* !important: the section title above sets its 600 display font with !important too. */
  color: var(--rc-slate);
  font: 400 var(--rc-fs-13)/1.5 var(--rc-font-body) !important;
}
html[data-aim-local] .st-rows :is(.hall-field, .al-number-field) {
  gap: var(--rc-space-4);
  padding: var(--rc-space-4) 0;
  border: 0;
  border-block-end: var(--rc-hairline);
  border-radius: 0;
}
html[data-aim-local] .st-rows .hall-field-text { max-inline-size: 65ch; }
html[data-aim-local] .st-rows .hall-field-text b { font: 600 var(--rc-fs-15)/1.4 var(--rc-font-body) !important; }
html[data-aim-local] .st-rows .hall-field-text small { font-size: var(--rc-fs-13); line-height: 1.5; }
html[data-aim-local] .st-view.st-rows .st-list.st-brief :is(.hall-field-text small, .al-number-hint) {
  overflow: visible;
  white-space: normal;
}
html[data-aim-local] .st-rows .hall-choice { flex-wrap: wrap; }
html[data-aim-local] .st-rows .hall-choice .hall-field-text { flex-basis: min(16rem, 100%); }
html[data-aim-local] .st-rows .hall-choice-options { max-inline-size: 100%; }
html[data-aim-local] .st-rows :is(.hall-range, .hall-segment button, .hall-choice-options button) { min-block-size: 44px; }
html[data-aim-local] .st-rows .st-sens { block-size: 44px; }
html[data-aim-local] .st-rows .st-sens-step { inline-size: 44px; }
html[data-aim-local] .st-rows .hall-switch-track,
html[data-aim-local] .st-rows .hall-switch-track i { border-radius: var(--rc-r-small) !important; }
html[data-aim-local] .st-rows .hall-switch.is-on .hall-switch-track { background: var(--rc-ink); }
html[data-aim-local] .st-rows .hall-switch.is-on .hall-switch-track i { background: var(--rc-paper-raise); }
html[data-aim-local] .st-view .hall-crosshair-profiles {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  flex-wrap: wrap;
}
html[data-aim-local] .st-view .hall-crosshair-profiles button { flex: 1 1 140px; }
html[data-aim-local] .st-view .hall-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rc-space-2);
  min-inline-size: 0;
  max-inline-size: 100%;
}
html[data-aim-local] .st-view .hall-color-swatches button {
  flex: none;
  inline-size: 32px;
  block-size: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--rc-r-small);
  cursor: pointer;
}
html[data-aim-local] .st-view .hall-color-swatches button:is(:hover, .is-active) { border-color: var(--rc-ink); }
html[data-aim-local] .st-view .hall-color-swatches button.is-active { outline: 2px solid var(--rc-signal); outline-offset: 2px; }
html[data-aim-local] .st-view .hall-ball-follow {
  min-block-size: 44px;
  padding: var(--rc-space-2) var(--rc-space-3);
  border: var(--rc-hairline);
}
html[data-aim-local] .st-view .hall-ball-follow.is-active { background: var(--rc-selection-fill); color: var(--rc-selection-text); border-color: var(--rc-rule-strong); }
html[data-aim-local] .st-view .hall-color-field input { min-block-size: 44px; }
html[data-aim-local] .st-view .hall-color-field input[type=color] { flex: none; inline-size: 44px; }
@container settings-editor (max-width: 620px) {
  html[data-aim-local] .st-view.st-rows .hall-crosshair-mods { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .st-view.st-rows .hall-crosshair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-aim-local] .st-view :is(.hall-color-field, .hall-field:has(> .hall-swatches)) { flex-wrap: wrap; }
  html[data-aim-local] .st-view :is(.hall-color-field, .hall-field:has(> .hall-swatches)) .hall-field-text { flex-basis: 100%; }
  html[data-aim-local] .st-view .hall-swatches { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; flex-wrap: wrap; gap: var(--rc-space-2); }
  html[data-aim-local] .st-view .hall-color-field > div { inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; flex-wrap: wrap; }
  html[data-aim-local] .st-view .hall-swatches button { inline-size: 32px; block-size: 32px; }
  html[data-aim-local] .st-view.st-rows .st-list .al-number-field {
    grid-template: "label" "hint" "ctl" / minmax(0, 1fr);
    gap: var(--rc-space-2);
  }
  html[data-aim-local] .st-view.st-rows .st-list .al-number-field input[type=range] { flex: 1; inline-size: auto; }
  html[data-aim-local] .st-view.st-rows .st-list .al-number-field input[type=number] { flex: none; inline-size: 62px; block-size: 44px; }
  html[data-aim-local] .st-view .hall-crosshair-grid label span { white-space: normal; overflow: visible; }
}
@container settings-editor (max-width: 420px) {
  html[data-aim-local] .st-view.st-rows .hall-crosshair-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 580px) {
  html[data-aim-local] .st-tele { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  html[data-aim-local] .st-view { grid-template: auto auto minmax(0, 1fr) / minmax(0, 1fr); gap: var(--rc-space-4); padding: var(--rc-space-6); }
  html[data-aim-local] .st-view .st-tabbar { gap: var(--rc-space-3); }
  html[data-aim-local] .st-tabbar .st-tabs { flex-direction: row; flex-wrap: wrap; gap: var(--rc-space-2); }
  html[data-aim-local] .st-tabbar .st-save { margin: 0; padding: 0; border: 0; }
  html[data-aim-local] .st-save > span { display: inline; }
}
@container settings (max-width: 1050px) {
  html[data-aim-local] .st-view .st-main:not(.is-wide) {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
    gap: var(--rc-space-6);
    grid-auto-rows: max-content;
    align-content: start;
  }
  html[data-aim-local] .st-main:not(.is-wide) > .st-list { overflow: visible; }
  html[data-aim-local] .st-main:not(.is-wide) > .st-side { overflow: visible; }
}
@media (max-width: 700px) {
  html[data-aim-local] .st-view { padding: var(--rc-space-4); }
  html[data-aim-local] .st-view .st-head { grid-template-columns: minmax(0, 1fr); gap: var(--rc-space-4); }
  html[data-aim-local] .st-tabs .st-tab { min-block-size: 44px; padding: var(--rc-space-2) var(--rc-space-3); }
  html[data-aim-local] .st-view .st-list { padding-inline: var(--rc-space-4); }
  html[data-aim-local] .st-side :is(.st-stack, .st-stack.is-cross) { padding: var(--rc-space-4); }
  html[data-aim-local] .st-side .st-code { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "acts" "code" "msg"; }
  html[data-aim-local] .st-side .st-code > div { display: flex; flex-wrap: wrap; gap: var(--rc-space-2); }
}

/* Playtest settings retain the full explanation beside their controls. */
html[data-aim-local] .hall-dialog.is-settings .sd-list .hall-field-text small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* Settings choices read as controls, not headings: body face at 500 below the 600 field
   title, with the option detail as quiet secondary text. Options with details (graphics
   preset, resolution) share one equal-width grid so the last option never sits loose. */
html[data-aim-local] .st-rows .hall-choice-options :is(button, [role="button"]) {
  color: var(--rc-slate);
  font: 500 var(--rc-fs-13)/1.3 var(--rc-font-body) !important;
}
html[data-aim-local] .st-rows .hall-choice-options button small {
  margin-block-start: 2px;
  color: var(--rc-slate);
  font: 400 var(--rc-fs-11)/1.3 var(--rc-font-body) !important;
}
html[data-aim-local] .st-rows .hall-choice-options button.is-active small { color: inherit; }
html[data-aim-local] .st-rows .hall-choice-options:has(button.has-sub) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  inline-size: 100%;
}
html[data-aim-local] .st-rows .hall-field-local {
  margin-inline-start: var(--rc-space-2);
  padding: 1px var(--rc-space-2);
  border: var(--rc-hairline);
  border-radius: var(--rc-r-small);
  font: 400 var(--rc-fs-11)/1.4 var(--rc-font-body);
  font-style: normal;
  vertical-align: middle;
}

/* The side column is under 480px at every desktop width, too narrow for the code title
   and both buttons on one row: the title wrapped one word per line. Stack them always. */
html[data-aim-local] .st-side .st-code { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "acts" "code" "msg"; }
html[data-aim-local] .st-side .st-code header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rc-space-3); }
html[data-aim-local] .st-side .st-code > div { display: flex; flex-wrap: wrap; gap: var(--rc-space-2); }

/* Sound group names were sized for two CJK glyphs (30px) and clipped "Âm thanh tổng hợp";
   they sit above their chips so translated names of any length keep the chips aligned. */
html[data-aim-local] .sound-kits-group { flex-direction: column; gap: var(--rc-space-1); }
html[data-aim-local] .sound-kits-name { inline-size: auto; font-weight: 500; line-height: 1.4; }

/* Hover marks the row with a quiet surface step. The 2px accent stripe read as a selected
   item and fought the real selection. The step is a pseudo-element reaching 12px past the
   text edge, so the label no longer touches the highlight and the row does not move. */
html[data-aim-local] :is(.hall-portal, .hall-root) .st-rows :is(.hall-field, .al-number-field) { position: relative; isolation: isolate; }
html[data-aim-local] :is(.hall-portal, .hall-root) .st-rows :is(.hall-field, .al-number-field):is(:hover, :focus-within) {
  background: transparent;
  box-shadow: none;
}
html[data-aim-local] :is(.hall-portal, .hall-root) .st-rows :is(.hall-field, .al-number-field):is(:hover, :focus-within)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc(-1 * var(--rc-space-3));
  border-radius: var(--rc-r-small);
  background: color-mix(in srgb, var(--rc-ink) 5%, transparent);
  pointer-events: none;
}
html[data-aim-local] :is(.hall-portal, .hall-root) .st-rows :is(.hall-crosshair-mod:hover, .hall-crosshair-presets article:hover) {
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}

@container settings (min-width: 1051px) {
  html[data-aim-local] .st-view .st-main { grid-auto-rows: minmax(0, 1fr); }
}
html[data-aim-local] .st-view .st-side { box-sizing: border-box; scroll-padding-block-end: var(--rc-space-6); }
html[data-aim-local] .st-side .st-tele dd { overflow: visible; white-space: normal; }


.vx-dpi { display: grid; gap: 8px; padding-block: 16px; border-block-end: var(--rc-hairline); }
.vx-dpi label { display: flex; align-items: center; justify-content: space-between; }
.vx-dpi input { width: 7rem; min-height: 44px; padding-inline: 12px; border: var(--rc-hairline); border-radius: var(--rc-r-small); color: var(--rc-ink); background: var(--rc-paper-sunk); }
.vx-dpi input:invalid { border-color: var(--rc-night-danger); }
.vx-dpi small { color: var(--rc-slate); }
.vx-dpi output { display: inline-block; margin-inline-end: 20px; font-variant-numeric: tabular-nums; }

/* Exercise records share the training console's theme; the native component
   retains ranking, history, request ownership and dialog interactions. */
html[data-aim-local] .al-wkr {
  --wkr-bone: var(--rc-ink);
  --wkr-cyan: var(--rc-ice);
  --wkr-red: var(--rc-signal);
  --wkr-num: var(--rc-font-mono);
  --wkr-hud: var(--rc-font-body);
  --sp-body: var(--rc-font-body);
  --sp-display: var(--rc-font-condensed);
  color: var(--rc-ink);
  font: 400 var(--rc-fs-15)/1.5 var(--rc-font-body);
}
html[data-aim-local] .al-wkr-veil {
  background: color-mix(in srgb, var(--rc-night) 68%, transparent);
  backdrop-filter: none;
  animation-duration: var(--rc-dur-2);
  animation-timing-function: var(--rc-ease-out);
}
html[data-aim-local] .al-wkr-drawer {
  inline-size: min(860px, 100vw);
  overflow: hidden;
  border-inline-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper);
  box-shadow: none;
  animation-duration: var(--rc-dur-3);
  animation-timing-function: var(--rc-ease-out);
}
html[data-aim-local] .al-wkr-drawer::before,
html[data-aim-local] .al-wkr-me h3::before,
html[data-aim-local] .al-wkr-go::before { content: none; }
html[data-aim-local] .al-wkr-head {
  gap: var(--rc-space-2) var(--rc-space-4);
  padding: var(--rc-space-6);
  border-block-end: 1px solid var(--rc-rule);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .al-wkr-topline { flex-wrap: wrap; gap: 8px 16px; }
html[data-aim-local] .al-wkr-kicker {
  color: var(--rc-slate);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
html[data-aim-local] .al-wkr-head h2 {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 600 var(--rc-fs-28)/1.3 var(--rc-font-condensed);
}
html[data-aim-local] .al-wkr-meta { flex-basis: 100%; color: var(--rc-slate); }
html[data-aim-local] .al-wkr-meta .al-wkr-rating { color: var(--rc-ink-soft); }
html[data-aim-local] .al-wkr-fb { margin-inline-end: 0; }
html[data-aim-local] .al-wkr button {
  min-inline-size: 44px;
  min-block-size: 44px;
  border-radius: var(--rc-r);
  font-family: var(--rc-font-body);
  letter-spacing: 0;
  font-weight: 600;
  text-transform: none;
  transition: background-color var(--rc-dur-2) var(--rc-ease-out), border-color var(--rc-dur-2) var(--rc-ease-out), color var(--rc-dur-2) var(--rc-ease-out);
}
html[data-aim-local] .al-wkr-x {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  color: var(--rc-ink);
  background: transparent;
}
html[data-aim-local] .al-wkr .ws-fb.is-hud .ws-fb-btn {
  padding-inline: 12px;
  border: 1px solid var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .al-wkr-content {
  flex: 1;
  min-block-size: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding-block: 16px;
}
html[data-aim-local] .al-wkr-bar { flex-wrap: wrap; gap: var(--rc-space-3); padding: var(--rc-space-4) var(--rc-space-6); color: var(--rc-slate); }
html[data-aim-local] .al-wkr-win {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .al-wkr-win button { padding-inline: 12px; color: var(--rc-slate); font-weight: 600; }
html[data-aim-local] .al-wkr-win button.on {
  color: var(--rc-selection-text);
  border: 1px solid var(--rc-rule-strong);
  background: var(--rc-selection-fill);
}
html[data-aim-local] .al-wkr-board { gap: var(--rc-space-3); padding: 0 var(--rc-space-6) var(--rc-space-6); }
html[data-aim-local] .al-wkr-board-note {
  flex-wrap: wrap;
  block-size: auto;
  min-block-size: 72px;
  padding: 16px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r-panel);
  color: var(--rc-slate);
  background: var(--rc-paper-raise);
  line-height: 1.5;
}
html[data-aim-local] :is(.al-wkr-board-note, .al-wkr-wait, .al-wkr-best .guest) button {
  padding-inline: 12px;
  border: 1px solid var(--rc-rule-strong);
  color: var(--rc-ink);
  background: transparent;
  font-size: 12px;
}
html[data-aim-local] .al-wkr-pod { gap: 8px; }
html[data-aim-local] .al-wkr-pod-c { block-size: auto; min-block-size: 76px; padding: 12px; border-radius: var(--rc-r); }
html[data-aim-local] .al-wkr-pod-c .who b { white-space: normal; overflow-wrap: anywhere; }
html[data-aim-local] .al-wkr-pod-c .who > span { font-size: 12px; white-space: normal; }
html[data-aim-local] .al-wkr-pod-c .v { color: var(--rc-ink); }
html[data-aim-local] :is(.al-wkr-pod-c .v, .al-wkr-row .v) small { color: var(--rc-slate); font-size: 12px; }
/* The bounded board retains the native guarded reveal of the viewer's rank. */
html[data-aim-local] .al-wkr-list {
  max-block-size: 360px;
  padding: 0 4px 0 0;
  margin: 0;
  scrollbar-color: var(--rc-rule-strong) transparent;
}
html[data-aim-local] .al-wkr-row {
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 160px) 88px 48px;
  gap: 8px;
  block-size: auto;
  min-block-size: 44px;
  padding: 8px 12px;
  background: var(--rc-paper-raise);
}
html[data-aim-local] .al-wkr-row:nth-child(2n) { background: color-mix(in srgb, var(--rc-paper-raise) 60%, var(--rc-paper)); }
html[data-aim-local] .al-wkr-row.is-me { background: var(--rc-selection-fill); }
html[data-aim-local] .al-wkr-row :is(.sub, .at) { color: var(--rc-slate); font-size: 12px; }
html[data-aim-local] .al-wkr-row .v { color: var(--rc-ink); }
html[data-aim-local] .al-wkr-me {
  flex: none;
  padding: var(--rc-space-6);
  margin: 0;
  background: var(--rc-paper-raise);
  border-block-start: 1px solid var(--rc-rule);
}
html[data-aim-local] .al-wkr-me > header { flex-wrap: wrap; gap: 8px 16px; }
html[data-aim-local] .al-wkr-me h3 { font: 600 var(--rc-fs-17)/1.4 var(--rc-font-condensed); letter-spacing: 0; }
html[data-aim-local] .al-wkr-me > header > span { color: var(--rc-slate); line-height: 1.5; }
html[data-aim-local] .al-wkr-grid { gap: 24px; margin-block-start: 16px; }
html[data-aim-local] :is(.al-wkr-l, .al-wkr-runs) { overflow: visible; }
html[data-aim-local] .al-wkr-l { min-inline-size: 0; }
html[data-aim-local] :is(.al-wkr-best, .al-wkr-best.is-none) {
  padding: 16px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper);
}
html[data-aim-local] .al-wkr-best :is(p, .k) { color: var(--rc-slate); font-size: 12px; }
html[data-aim-local] .al-wkr-best > b { color: var(--rc-ink); }
html[data-aim-local] .al-wkr-best b.none { font-size: 20px; }
html[data-aim-local] .al-wkr .pw-rate.is-drawer {
  padding: 16px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper);
  color: var(--rc-slate);
  box-shadow: none;
}
html[data-aim-local] .al-wkr :is(.pw-rate-k, .pw-rate-link, .pw-rf-word, .pw-rf-title, .pw-rf-lb) { color: var(--rc-ink); }
html[data-aim-local] .al-wkr :is(.pw-rate-dim, .pw-rate-quote, .pw-rf-anon, .pw-rf-lb small) { color: var(--rc-slate); }
html[data-aim-local] .al-wkr .pw-rf-ta { color: var(--rc-ink); border-color: var(--rc-rule-strong); background: var(--rc-paper-raise); }
/* Submit stays the filled action of the rating form so it reads apart from Cancel. */
html[data-aim-local] .al-wkr .pw-rf-ok { border: 1px solid var(--rc-signal); background: var(--rc-signal); color: var(--rc-on-signal); }
html[data-aim-local] .al-wkr .pw-rf-ghost { border: 1px solid var(--rc-rule-strong); background: transparent; color: var(--rc-ink); }
html[data-aim-local] .al-wkr-chart { inline-size: 100%; max-inline-size: 100%; block-size: auto; }
html[data-aim-local] :is(.al-wkr-k, .al-wkr-wait) { color: var(--rc-slate); font-size: 12px; line-height: 1.5; }
html[data-aim-local] .al-wkr-k { flex-wrap: wrap; gap: 8px; }
html[data-aim-local] .al-wkr-runs { flex: none; gap: 4px; margin-block-start: 12px; }
html[data-aim-local] .al-wkr-runs li { block-size: auto; min-block-size: 44px; padding-block: 8px; }
html[data-aim-local] .al-wkr-runs :is(.when, .why, .tail) { color: var(--rc-slate); font-size: 12px; }
html[data-aim-local] .al-wkr-runs .tail { max-inline-size: 120px; white-space: normal; text-align: end; }
html[data-aim-local] .al-wkr-runs .res > b { color: var(--rc-ink); }
html[data-aim-local] .al-wkr-runs .end.is-died { color: var(--rc-danger); background: color-mix(in srgb, var(--rc-danger) 12%, transparent); }
html[data-aim-local] .al-wkr-footer {
  display: flex;
  flex: none;
  justify-content: flex-end;
  padding: var(--rc-space-4) var(--rc-space-6);
  padding-block-end: max(var(--rc-space-4), env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .al-wkr-footer .al-wkr-go {
  min-inline-size: 200px;
  block-size: auto;
  min-block-size: 44px;
  padding: var(--rc-space-3) var(--rc-space-6);
  margin: 0;
  border: 1px solid var(--rc-signal-hover);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed);
  letter-spacing: 0;
  box-shadow: none;
}
html[data-aim-local] :is(.al-wkr-head h2, .al-wkr-me h3, .al-wkr-footer .al-wkr-go) {
  font-family: var(--rc-font-condensed) !important;
}
html[data-aim-local] .al-wkr :is(.al-wkr-go, .al-wkr-x, .ws-fb-btn, .al-wkr-win button, .al-wkr-board-note button, .al-wkr-wait button, .al-wkr-best .guest button, .pw-rf-ok, .pw-rf-ghost):is(:hover, :focus-visible):not(:disabled) { background: var(--rc-signal); border-color: var(--rc-signal); color: var(--rc-on-signal); }
html[data-aim-local] .al-wkr :focus-visible { outline: 2px solid var(--rc-ice); outline-offset: 2px; }
@media (min-width: 681px) {
  html[data-aim-local] .al-wkr-grid:has(.al-wkr-runs:empty) { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .al-wkr-grid:has(.al-wkr-runs:empty) .al-wkr-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 680px) {
  html[data-aim-local] .al-wkr-drawer { inline-size: 100vw; }
  html[data-aim-local] .al-wkr-head { grid-template-columns: minmax(0, 1fr) 44px; padding: 16px; }
  html[data-aim-local] .al-wkr-head h2 { font-size: var(--rc-fs-20); }
  html[data-aim-local] .al-wkr-x { grid-column: 2; grid-row: 1 / span 2; }
  html[data-aim-local] .al-wkr-fb { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  html[data-aim-local] .al-wkr-bar { padding: 16px; }
  html[data-aim-local] .al-wkr-bar > span { flex-basis: 100%; margin: 0; }
  html[data-aim-local] .al-wkr-win { inline-size: 100%; }
  html[data-aim-local] .al-wkr-win button { flex: 1; padding-inline: 8px; }
  html[data-aim-local] .al-wkr-board { padding: 0 16px 16px; }
  html[data-aim-local] .al-wkr-pod-c { min-block-size: 64px; }
  html[data-aim-local] .al-wkr-row { grid-template-columns: 32px minmax(0, 1fr) 88px; }
  html[data-aim-local] .al-wkr-me { padding: 16px; min-block-size: 0; }
  html[data-aim-local] .al-wkr-grid { gap: 16px; }
  html[data-aim-local] .al-wkr-footer { padding-inline: 16px; }
  html[data-aim-local] .al-wkr-go { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-aim-local] :is(.al-wkr-drawer, .al-wkr-veil) { animation: none; }
  html[data-aim-local] .al-wkr button { transition: none; }
}

/* Personal bests, rank lines and result rows wore accent side stripes like alerts. The best
   value keeps its color in the figure; the block itself is a quiet surface step. */
html[data-aim-local] :is(.al-wkr-best, .hall-record-rank) {
  border-inline-start: 0;
  border-radius: var(--rc-r-small);
  background: color-mix(in srgb, var(--rc-ink) 5%, transparent);
}
html[data-aim-local] .rproj-tile.has-pb { border-inline-start-width: 1px; }
html[data-aim-local] :is(.al-mr-row, .al-mr-paused, .al-mr-note) { border-inline-start: 0; }
html[data-aim-local] .al-wkr-best .k { font-weight: 500; }

/* Training history overview, project tiles and run detail drawer. */
html[data-aim-local] :is(.rov, .hall-light .rov) {
  --rov-card: var(--rc-paper-raise);
  --rov-raise: var(--rc-paper-sunk);
  --rov-line: var(--rc-rule);
  --rov-text: var(--rc-ink);
  --rov-muted: var(--rc-slate);
  --rov-up: var(--rc-ok-text);
  --rov-down: var(--rc-danger);
  --rov-best: var(--rc-warn-text);
}
html[data-aim-local] .rov-card {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .rov-latest::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.rov-sync.is-pending, .rov-del, .rov-del.is-best) {
  border: var(--rc-hairline);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r);
  background: var(--rc-paper-sunk);
  box-shadow: none;
}
html[data-aim-local] .rproj-tile {
  border: var(--rc-hairline);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .rproj-tile:hover {
  border-color: var(--rc-rule-strong);
}
html[data-aim-local] :is(.rov-btn, .rdrawer-btn) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink) !important;
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.rov-btn.is-primary, .rdrawer-btn.is-primary) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.rov-btn, .rdrawer-btn):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.rproj-search input, .rproj-sort) {
  min-block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  font-size: var(--rc-fs-13);
}
html[data-aim-local] .rproj-seg {
  block-size: auto;
  gap: 4px;
  padding: 4px;
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .rproj-seg button {
  min-block-size: 36px;
  padding-inline: var(--rc-space-3);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .rproj-seg button.is-on {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
}
html[data-aim-local] .rdrawer-mask {
  background: color-mix(in srgb, var(--rc-night) 68%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .rdrawer {
  border-inline-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .rdrawer-x {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .rdrawer-x:is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .rdrawer-chart {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] :is(.rproj-meta, .rdrawer-sub, .rdrawer-meta) {
  font-size: var(--rc-fs-12);
}
@media (max-width: 1120px) {
  html[data-aim-local] .rov-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  html[data-aim-local] .rproj-head {
    flex-wrap: wrap;
    gap: var(--rc-space-3);
  }
  html[data-aim-local] .rproj-controls {
    flex-wrap: wrap;
    inline-size: 100%;
  }
  html[data-aim-local] .rproj-search { flex: 1 1 100%; }
  html[data-aim-local] .rdrawer { inline-size: 100vw; }
}
@media (max-width: 520px) {
  html[data-aim-local] .rproj-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] :is(.rov-facts, .rov-week dl) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Community discovery refined with unslop by Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop */
html[data-aim-local] .pw-stage {
  --h-text: var(--rc-ink);
  --h-text-soft: var(--rc-ink);
  --h-text-muted: var(--rc-slate);
  --h-panel: var(--rc-paper-raise);
  --h-border: var(--rc-rule);
  --h-row-hover: var(--rc-paper-sunk);
  --h-row-active: var(--rc-paper-sunk);
  --t: var(--rc-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rc-space-4);
  block-size: auto;
  min-block-size: 0;
  padding: 0 var(--rc-space-6) var(--rc-space-6);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  border-radius: 0 !important;
  border-block-end: var(--rc-hairline);
  color-scheme: light;
}
html[data-aim-local] .pw-stage :is(.pw-st-bg, .pw-st-agent, .pw-st-glow) { display: none; }
html[data-aim-local] .pw-stage :is(.pw-st-title, .pw-desc, .pw-st-info, .pw-pick-h, .pw-stat b, .pw-tab, .pw-stage-intro) {
  color: var(--rc-ink) !important;
  text-shadow: none;
}
html[data-aim-local] .pw-stage .pw-st-title {
  font: 600 var(--rc-fs-40)/var(--rc-lh-title) var(--rc-font-condensed) !important;
  white-space: normal;
}
html[data-aim-local] .pw-stage:has(.pw-slide:not([data-role='pw-stage-intro'])) { block-size: auto; }
html[data-aim-local] .pw-stage .pw-st-info { position: relative; inset: auto; inline-size: 100%; }
html[data-aim-local] .pw-stage .pw-head {
  color: var(--rc-ink);
  position: relative;
  inset: auto;
  min-block-size: 64px;
  block-size: auto;
  border-block-end: var(--rc-hairline);
}
html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-block-size: 280px;
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-night);
}
html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] .pw-st-bg {
  display: block !important;
  inset: 0 0 0 32%;
  z-index: -1;
}
html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] .pw-st-bg img {
  filter: none;
  transform: none;
  object-position: center;
}
html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] .pw-st-bg::after {
  background: linear-gradient(90deg, var(--rc-night), color-mix(in srgb, var(--rc-night) 56%, transparent) 48%, transparent);
}
html[data-aim-local] .pw-stage [data-role='pw-stage-intro']::after {
  position: relative;
  max-inline-size: 62%;
  padding: var(--rc-space-8);
  color: var(--rc-night-text);
  font: 600 24px/1.5 var(--rc-font-condensed);
}
html[data-aim-local] .pw-stage .pw-slide:not([data-role='pw-stage-intro']) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 38%); gap: var(--rc-space-8); }
html[data-aim-local] .pw-stage .pw-st-info { grid-column: 1; }
html[data-aim-local] .pw-stage .pw-st-side { position: relative; inset: auto; grid-column: 2; grid-row: 1 / 3; inline-size: 100%; }
html[data-aim-local] .pw-stage .pw-st-side::before,
html[data-aim-local] .pw-stage .pw-shot-frame { display: none; }
html[data-aim-local] .pw-stage .pw-st-side .pw-maker { text-shadow: none; }
html[data-aim-local] .pw-stage .pw-cta { position: relative; inset: auto; margin: 0; grid-column: 1; }
html[data-aim-local] .pw-stage .pw-pick { position: relative; inset: auto; max-inline-size: 100%; }
html[data-aim-local] .pw-stage .pw-tiles { mask-image: none; }
html[data-aim-local] .pw-stage :is(.pw-kind, .pw-st-title, .pw-meta, .pw-desc, .pw-inf, .pw-st-side) {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
html[data-aim-local] .pw-stage :is(.pw-kind, .pw-spot, .pw-stat, .pw-maker b, .pw-maker small) { color: var(--rc-slate); font-weight: 500; letter-spacing: 0; text-transform: none; }
html[data-aim-local] .pw-stage :is(.pw-inf span, .pw-gems b) { color: var(--rc-slate); }
html[data-aim-local] .pw-stage .pw-gems i { border: var(--rc-hairline); background: transparent; box-shadow: none; transform: none; }
html[data-aim-local] .pw-stage .pw-gems i.on { background: var(--rc-ink); border-color: var(--rc-ink); }
html[data-aim-local] .pw-stage .pw-inf-sq { background: var(--rc-ink); border: var(--rc-hairline); color: var(--rc-paper-raise); box-shadow: none; }
html[data-aim-local] .pw-stage .pw-ty { background: var(--rc-paper-sunk); color: var(--rc-ink); clip-path: none; }
html[data-aim-local] .pw-stage .pw-lock { color: var(--rc-on-signal); box-shadow: none; }
html[data-aim-local] .pw-stage .pw-lock::before,
html[data-aim-local] .pw-stage .pw-lock::after { display: none; }
html[data-aim-local] .pw-stage .pw-tile {
  flex: 0 0 88px;
  min-inline-size: 88px;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
html[data-aim-local] .pw-stage .pw-sub button {
  color: var(--rc-slate) !important;
  font: 600 var(--rc-fs-15)/1.3 var(--rc-font-condensed) !important;
}
html[data-aim-local] .pw-stage .pw-sub button.is-on { color: var(--rc-ink) !important; }
html[data-aim-local] .pw-stage .pw-pick-tabs :is(span, b, small) { color: var(--rc-slate); }
html[data-aim-local] .pw-stage .pw-pick-tabs > span.is-on { color: var(--rc-ink); }
html[data-aim-local] .pw-stage .pw-tile { border-radius: var(--rc-r) !important; }
html[data-aim-local] .pw-stage .pw-tile.is-slot {
  background: var(--rc-paper-sunk);
  border: var(--rc-hairline);
}
html[data-aim-local] .pw-stage .pw-tile.is-slot b { color: var(--rc-slate); }
html[data-aim-local] .pw-filters {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--rc-space-4) !important;
  padding: var(--rc-space-6) !important;
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
  box-shadow: none !important;
}
html[data-aim-local] .pw-filters :is(.pw-filter-top, .pw-filter-options) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--rc-space-3);
}
html[data-aim-local] .pw-filters :is(.pw-drop, .pw-find) {
  position: relative;
  min-inline-size: 0;
  block-size: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none !important;
}
html[data-aim-local] .pw-filters .pw-find {
  flex: 1 1 240px;
  inline-size: auto !important;
  max-inline-size: 420px;
}
html[data-aim-local] .pw-filters .pw-find .pw-icon {
  position: absolute;
  inset-inline-start: 12px;
  color: var(--rc-slate);
  pointer-events: none;
}
html[data-aim-local] .pw-filters .pw-find input { padding-inline-start: 36px; }
html[data-aim-local] .pw-filters .pw-filter-selects {
  display: grid;
  flex: 1 1 350px;
  min-inline-size: 0;
  max-inline-size: 480px;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: var(--rc-space-3);
}
html[data-aim-local] .pw-filters :is(.pw-drop, .pw-filter-difficulty) {
  display: grid;
  align-items: stretch;
  gap: var(--rc-space-2);
}
html[data-aim-local] .pw-filters .pw-filter-label {
  color: var(--rc-slate);
  font: 600 var(--rc-fs-13)/1.25 var(--rc-font-condensed);
}
html[data-aim-local] .pw-filters .pw-drop .pw-icon { inset-block-end: 14px; }
html[data-aim-local] .pw-filters :is(input, select) {
  inline-size: 100%;
  min-inline-size: 0;
  block-size: 44px;
  padding-inline: var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  color: var(--rc-ink);
  background: var(--rc-paper);
  font: 500 var(--rc-fs-13)/1.3 var(--rc-font-body);
}
html[data-aim-local] .pw-filters select { padding-inline-end: 36px; }
html[data-aim-local] .pw-filters :is(input, select):is(:hover, :focus-visible) { border-color: var(--rc-signal-text); }
html[data-aim-local] .pw-filters select option {
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}
html[data-aim-local] .pw-stage :is(.pw-arrow, .pw-sqbtn) {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .pw-card {
  block-size: 400px;
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel) !important;
  background: var(--rc-paper-raise);
  box-shadow: none !important;
  transform: none !important;
}
html[data-aim-local] .pw-card-info {
  inset-inline: 0;
  inset-block-end: 0;
  background: var(--rc-paper-raise);
  padding: var(--rc-space-4);
}
html[data-aim-local] .pw-card::after { background: var(--rc-rule); block-size: 1px; }
html[data-aim-local] .pw-card .pw-card-no {
  inset-block-start: var(--rc-space-2);
  inset-inline-start: var(--rc-space-2);
  padding: var(--rc-space-1) var(--rc-space-2);
  border: var(--rc-hairline);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  text-shadow: none;
}
html[data-aim-local] .pw-card .pw-card-vmap { display: none; }
html[data-aim-local] .pw-card .pw-card-heart {
  inset-block-start: var(--rc-space-2);
  color: var(--rc-ink);
  background: var(--rc-paper-raise);
  border: var(--rc-hairline);
}
html[data-aim-local] .pw-card .pw-card-heart[aria-pressed="true"] {
  color: var(--rc-signal-text);
  border-color: var(--rc-signal);
}
html[data-aim-local] .pw-card .pw-card-play {
  display: inline-flex;
  inset-inline-start: var(--rc-space-3);
  inset-block-start: 184px;
  max-inline-size: calc(100% - 2 * var(--rc-space-3));
  padding-inline: var(--rc-space-3);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  background: transparent !important;
  color: var(--rc-ink) !important;
}
html[data-aim-local] .pw-card .pw-card-play:is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] .pw .pw-card .pw-pips {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
html[data-aim-local] .pw .pw-card .pw-pips i {
  border-radius: 0;
  border-color: var(--rc-rule-strong) !important;
  background: transparent !important;
  box-shadow: none;
}
html[data-aim-local] .pw .pw-card .pw-pips i.on { background: var(--rc-ink) !important; border-color: var(--rc-ink) !important; }
html[data-aim-local] .pw .pw-card .pw-pips em { color: var(--rc-slate) !important; }
html[data-aim-local] .pw-filters :is(.pw-dchips, .pw-seg) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rc-space-2);
  order: 0;
  grid-area: auto;
  inline-size: auto;
  min-block-size: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
html[data-aim-local] .pw-filters .pw-dchips::before { content: none; }
html[data-aim-local] .pw-filters :is(.pw-dchips, .pw-seg) button {
  block-size: auto;
  min-block-size: 44px !important;
  padding-inline: var(--rc-space-3);
  margin: 0;
  justify-content: center;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: transparent !important;
  color: var(--rc-ink);
  box-shadow: none !important;
  font: 600 var(--rc-fs-13)/1.25 var(--rc-font-condensed);
}
html[data-aim-local] .pw-filters .pw-seg button em { color: inherit; opacity: 1; }
html[data-aim-local] .pw-filters .pw-dchips button i { border-radius: var(--rc-r-small); box-shadow: none; }
html[data-aim-local] .pw-filters :is(.pw-dchips, .pw-seg) button:enabled:is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] .pw .pw-seg button[aria-selected="true"],
html[data-aim-local] .pw .pw-dchips button[aria-pressed="true"] {
  background: var(--rc-selection-fill) !important;
  color: var(--rc-selection-text) !important;
  border-color: var(--rc-rule-strong) !important;
  box-shadow: none !important;
}
html[data-aim-local] .pw-shelf-head {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rc-space-2) var(--rc-space-4);
}
html[data-aim-local] .pw-shelf-pager {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--rc-space-2);
  margin-inline-start: auto;
}
html[data-aim-local] .pw-shelf-pager .pw-shelf-pageno {
  margin-inline: 0 var(--rc-space-1);
  color: var(--rc-slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html[data-aim-local] :is(.pw-shelf-pager, .pw-pick-arrows) button {
  position: static;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  transform: none;
}
html[data-aim-local] .pw-stage :is(.pw-arrow, .pw-sqbtn):not([aria-disabled="true"], :disabled):is(:hover, :focus-visible),
html[data-aim-local] :is(.pw-shelf-pager, .pw-pick-arrows) button:not([aria-disabled="true"], :disabled):is(:hover, :focus-visible) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .pw-shelf-pager button[aria-disabled="true"] {
  border-color: var(--rc-rule);
  background: var(--rc-paper);
  color: var(--rc-slate);
  cursor: not-allowed;
}
html[data-aim-local] :is(.pw-shelf-pager, .pw-pick-arrows) .pw-icon {
  inline-size: 18px;
  block-size: 18px;
}
html[data-aim-local] .pw-card-info h4 {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-20)/1.3 var(--rc-font-condensed) !important;
  white-space: normal;
  text-shadow: none;
}
html[data-aim-local] .pw-card :is(.pw-card-kd, .pw-card-foot, .pw-card-ln) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-13);
}
html[data-aim-local] .pw-card:hover { border-color: var(--rc-rule-strong); }
html[data-aim-local] .pw-card .pw-card-cv { block-size: 240px; }
html[data-aim-local] .pw-card .pw-cover-img.is-map { filter: none; }
html[data-aim-local] .pw-source-credit {
  display: grid;
  gap: var(--rc-space-2);
  min-inline-size: 0;
  padding: var(--rc-space-4);
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
  font: 500 var(--rc-fs-13)/1.5 var(--rc-font-body);
}
html[data-aim-local] .pw-source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--rc-space-2);
  min-inline-size: 0;
}
html[data-aim-local] .pw-source-line > span { color: var(--rc-slate); }
html[data-aim-local] .pw-source-line :is(a, b) {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  font: inherit;
  font-weight: 600;
}
html[data-aim-local] .pw-source-line a {
  color: var(--rc-signal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-aim-local] .pw-source-line a:focus-visible {
  outline: 2px solid var(--rc-signal);
  outline-offset: 3px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .pw-source-credit.is-compact { padding: var(--rc-space-2) 0; border: 0; background: transparent; }
html[data-aim-local] .pw-card:has(.pw-source-credit) { block-size: auto; min-block-size: 440px; }
html[data-aim-local] .pw-card:has(.pw-source-credit) .pw-card-cv { position: relative; }
html[data-aim-local] .pw-card:has(.pw-source-credit) .pw-card-info { position: relative; }
html[data-aim-local] .pw-dr-grid > .pw-source-credit { grid-column: 1 / -1; }
html[data-aim-local] .pw-mrow-nm .pw-source-credit { margin-block-start: var(--rc-space-3); padding: var(--rc-space-3); }
html[data-aim-local] .pw-dr-foot { flex-wrap: wrap; gap: var(--rc-space-3); }
html[data-aim-local] .pw-dr-foot .pw-duplicate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: var(--rc-space-3) var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink);
  font: 600 var(--rc-fs-15)/1.4 var(--rc-font-body);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
}
html[data-aim-local] .pw-dr-foot .pw-duplicate:is(:hover, :focus-visible) { background: var(--rc-signal); color: var(--rc-on-signal); border-color: var(--rc-signal); }
html[data-aim-local] .pw-dr-foot .pw-duplicate:focus-visible { outline: 2px solid var(--rc-signal); outline-offset: 3px; }
html[data-aim-local] .am-ss .pw-source-credit { margin-block: var(--rc-space-4); }
html[data-aim-local] .pw-stage .pw-shot {
  block-size: auto;
  aspect-ratio: 16 / 10;
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
}
html[data-aim-local] .pw-stage .pw-tile { flex-basis: 104px; min-inline-size: 104px; }
@media (max-width: 1000px) {
  html[data-aim-local] .pw-stage .pw-slide:not([data-role='pw-stage-intro']) { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--rc-space-6); }
  html[data-aim-local] .pw-stage .pw-st-title { font-size: 32px !important; }
}
@media (max-width: 700px) {
  html[data-aim-local] .pw-stage .pw-slide:not([data-role='pw-stage-intro']) { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .pw-stage { padding-inline: var(--rc-space-4); }
  html[data-aim-local] .pw-stage .pw-head h2 { margin-block: var(--rc-space-3); }
  html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] .pw-st-bg { inset: 0; }
  html[data-aim-local] .pw-stage [data-role='pw-stage-intro'] .pw-st-bg::after { background: linear-gradient(0deg, var(--rc-night) 10%, color-mix(in srgb, var(--rc-night) 72%, transparent), transparent); }
  html[data-aim-local] .pw-stage [data-role='pw-stage-intro']::after { max-inline-size: none; padding: 144px var(--rc-space-6) var(--rc-space-6); font-size: 20px; }
  html[data-aim-local] .pw-stage .pw-st-side { grid-column: 1; grid-row: auto; }
  html[data-aim-local] .pw-stage .pw-st-info { grid-column: 1; }
  html[data-aim-local] .pw-stage .pw-cta { grid-row: auto; }
  html[data-aim-local] .pw-filters { padding: var(--rc-space-4) !important; }
}

/* An empty poll list is said in words; the 120px decorative "0" read as a broken counter. */
html[data-aim-local] .poll-empty-big { display: none; }

/* Your own leaderboard row and finished ballots are marked by a surface step, not a stripe. */
html[data-aim-local] .hall-lb-row.is-me {
  border-inline-start: 0;
  background: color-mix(in srgb, var(--rc-ocean) 10%, transparent);
}
html[data-aim-local] .poll-done { border-inline-start: 0; border-radius: var(--rc-r-small); background: color-mix(in srgb, var(--rc-ink) 5%, transparent); }
html[data-aim-local] .poll-slot { box-shadow: inset 0 0 0 1px var(--rc-rule); }
html[data-aim-local] :is(.pw-rate.is-drawer, .is-hall .pw-rate.is-drawer) { box-shadow: none; }
html[data-aim-local] .al-wk-tag { border-inline-start: 0; }

/* Short labels sit at 500-600; heavy weights on 12px text read as shouting. */
html[data-aim-local] :is(.pw-card-kd, .al-wk-diff em, .pw-card em) { font-weight: 600; }

/* Community exercise drawer: shared surface tokens in both themes, no dark-only fills. */
html[data-aim-local] .pw-dr-mask {
  background: color-mix(in srgb, var(--rc-night) 68%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .pw-drawer {
  --t: var(--rc-ink);
  border-inline-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .pw-drawer::before { content: none; }
html[data-aim-local] .pw-dr-cover::after {
  background: linear-gradient(transparent 32%, var(--rc-paper));
}
html[data-aim-local] :is(.pw-dr-x, .pw-dr-report) {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] :is(.pw-dr-x, .pw-dr-report):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .pw-dr-title {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-28)/1.2 var(--rc-font-condensed);
  letter-spacing: 0;
}
html[data-aim-local] :is(.pw-dr-meta, .pw-dr-desc, .pw-dr-hint, .pw-dr-empty) {
  color: var(--rc-slate);
  font-size: var(--rc-fs-13);
  line-height: 1.6;
}
html[data-aim-local] .pw-dr-tabs {
  gap: var(--rc-space-4);
  border-block-end: var(--rc-hairline);
}
html[data-aim-local] .pw-dr-tabs button {
  min-block-size: 44px;
  color: var(--rc-slate);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed);
  letter-spacing: 0;
}
html[data-aim-local] .pw-dr-tabs button.is-on { color: var(--rc-ink); }
html[data-aim-local] .pw-dr-tabs button.is-on::after { background: var(--rc-signal); }
html[data-aim-local] :is(.pw-best-row, .pw-best-row.is-ranked, .pw-dr-official) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .pw-dr-foot {
  border-block-start: 1px solid var(--rc-rule-strong);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
}
html[data-aim-local] .pw-gbtn {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .pw-gbtn.is-on {
  border-color: var(--rc-signal);
  background: color-mix(in srgb, var(--rc-signal) 12%, transparent);
  color: var(--rc-signal-text);
}
html[data-aim-local] .pw-gbtn:is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}

/* Submissions, moderation desk, workshop forms and admin table. */
html[data-aim-local] :is(.pw-news, .pw-mrow, .pw-q, .pw-dt-top, .pw-report, .pw-hist-row, .pw-decide) {
  border: var(--rc-hairline);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] :is(.pw-mrow-acts button, .pw-news button, .pw-tabs3 button, .al-wka-btn) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.pw-mrow-acts button, .pw-news button, .al-wka-btn):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] :is(.pw-mrow-acts button.is-p, .pw-ok, .al-wka-main) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-signal);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.pw-mrow-acts button.is-p, .pw-ok, .al-wka-main):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal-hover);
  background: var(--rc-signal-hover);
  color: var(--rc-on-signal);
}
html[data-aim-local] .pw-mrow-acts button.is-danger {
  border-color: var(--rc-danger);
  color: var(--rc-danger);
}
html[data-aim-local] :is(.pw-stc, .pw-bdg, .pw-q-state) {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] :is(.pw-stc.is-ok, .pw-bdg.is-ok, .pw-q-state.is-ok, .pw-stc.s-1) {
  border-color: color-mix(in srgb, var(--rc-ok-text) 36%, transparent);
  background: color-mix(in srgb, var(--rc-ok-text) 12%, transparent);
  color: var(--rc-ok-text);
}
html[data-aim-local] :is(.pw-stc.is-wait, .pw-bdg.is-wait, .pw-q-state.is-wait, .pw-stc.s-0) {
  border-color: color-mix(in srgb, var(--rc-warn-text) 36%, transparent);
  background: color-mix(in srgb, var(--rc-warn-text) 12%, transparent);
  color: var(--rc-warn-text);
}
html[data-aim-local] :is(.pw-stc.is-bad, .pw-bdg.is-bad, .pw-q-state.is-bad, .pw-stc.s-2) {
  border-color: color-mix(in srgb, var(--rc-danger) 36%, transparent);
  background: color-mix(in srgb, var(--rc-danger) 12%, transparent);
  color: var(--rc-danger);
}
html[data-aim-local] :is(.pw-in, .pw-sel, .al-wka-in, .al-wka-sel) {
  min-block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper);
  color: var(--rc-ink);
  font-size: var(--rc-fs-13);
}
html[data-aim-local] .pw-ta {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: var(--rc-paper);
  color: var(--rc-ink);
}
html[data-aim-local] .al-wka-body { overflow-x: auto; }

/* Polls, ballot cards, results, poll editor and moderation. */
html[data-aim-local] .poll :focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
}
html[data-aim-local] :is(.poll-ptab, .poll-card, .poll-tcard, .poll-lock, .poll-empty) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: none !important;
}
html[data-aim-local] :is(.poll-card, .poll-tcard):hover {
  border-color: var(--rc-rule-strong);
  transform: none !important;
}
html[data-aim-local] :is(.poll-card.is-on, .poll-tcard.is-on, .poll-ptab.is-on) {
  border-color: var(--rc-signal);
  border-inline-start-width: 1px;
  background: color-mix(in srgb, var(--rc-signal) 8%, var(--rc-paper-raise));
  box-shadow: none;
  transform: none !important;
}
html[data-aim-local] :is(.poll-m-item.is-on::before, .poll-card::after) {
  content: none;
  display: none;
}
html[data-aim-local] :is(.poll-m-lock, .poll-m-confirm) {
  border-inline-start-width: 1px;
  border-radius: var(--rc-r);
  box-shadow: none;
}
html[data-aim-local] .poll-btn {
  min-block-size: 44px;
  padding-inline: var(--rc-space-6);
  border: 1px solid var(--rc-signal);
  border-radius: var(--rc-r);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
  box-shadow: none;
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-body);
  letter-spacing: 0;
  text-transform: none;
}
html[data-aim-local] .poll-btn:hover:not(:disabled) {
  border-color: var(--rc-signal-hover);
  background: var(--rc-signal-hover) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.poll-card.is-on .poll-card-pick, .poll-card-ribbon, .poll-tcard.is-on .poll-tcard-check) {
  border-color: var(--rc-signal) !important;
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] :is(.poll-admin-btn, .poll-soft-btn, .poll-m-btn, .poll-ed-btn) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.poll-admin-btn, .poll-soft-btn, .poll-m-btn, .poll-ed-btn):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .poll-card-zoom {
  inline-size: 40px;
  block-size: 40px;
  border: 1px solid var(--rc-night-rule-strong);
  border-radius: var(--rc-r-small);
  background: color-mix(in srgb, var(--rc-night) 82%, transparent);
  color: var(--rc-night-text);
}
html[data-aim-local] :is(.poll-title, .poll-ed-title, .poll-m-title, .poll-card-title, .poll-tcard-title, .poll-er-name, .poll-live, .poll-tag) {
  font-weight: 600;
  letter-spacing: 0;
}
html[data-aim-local] .poll-tag {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .poll-tag.is-live { color: var(--rc-ok-text); }
html[data-aim-local] .poll-tag.is-dev { color: var(--rc-warn-text); }
html[data-aim-local] .poll-tag.is-plan { color: var(--rc-signal-text); }

@media (max-width: 980px) {
  html[data-aim-local] :is(.pw-desk-b, .poll-m-body, .poll-m-res) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .poll-er {
    grid-template-columns: 40px 88px minmax(0, 1fr);
  }
  html[data-aim-local] .poll-er > :nth-child(n + 4) {
    grid-column: 2 / -1;
  }
  html[data-aim-local] .poll-m-p {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  html[data-aim-local] .pw-drawer { inline-size: 100vw; }
  html[data-aim-local] :is(.pw-dr-head, .pw-dr-tabs, .pw-dr-body, .pw-dr-foot) {
    padding-inline: var(--rc-space-4);
  }
  html[data-aim-local] :is(.pw-dr-grid, .pw-mrow, .pw-three) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .pw-mrow-acts { flex-wrap: wrap; }
  html[data-aim-local] :is(.poll-hero, .poll-lock, .poll-empty) {
    padding-inline: var(--rc-space-4);
    flex-wrap: wrap;
  }
  html[data-aim-local] :is(.poll-grid, .poll-m-p) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .poll-er {
    grid-template-columns: 32px minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  html[data-aim-local] :is(.pw-radio-list, .pw-reasons) {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-aim-local][lang^="en"] .pw-stage { --aim-local-community: "Community library"; }
html[data-aim-local][lang^="vi"] .pw-stage { --aim-local-community: "Thư viện cộng đồng"; }
html[data-aim-local] .pw-stage [data-role='pw-stage-intro']::after {
  background: linear-gradient(90deg, var(--rc-night) 0%, color-mix(in srgb, var(--rc-night) 90%, transparent) 65%, transparent);
  box-sizing: border-box;
  max-inline-size: min(100%, 34rem);
  padding-inline-end: var(--rc-space-12);
}

/* Craft polish informed by unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
/* Studio chrome follows the lab; viewport transforms, canvas and tool state
   remain managed by the native 3D editor. */
html[data-aim-local] .al-studio-shell {
  --ink: var(--rc-ink);
  --muted: var(--rc-slate);
  --line: var(--rc-rule);
  --al-studio-danger: var(--rc-night-danger);
  font-size: var(--rc-fs-13);
  color: var(--rc-ink);
}
html[data-aim-local] .al-studio-shell.hall-light { --al-studio-danger: var(--rc-danger); }
html[data-aim-local] .al-studio-shell :is(.al-studio-topbar, .al-studio-topbar-lead) {
  background: var(--rc-paper);
  border-color: var(--rc-rule-strong);
}
html[data-aim-local] .al-studio-topbar::after { display: none; }
@media (min-width: 1600px) {
  html[data-aim-local] .al-studio-shell .al-studio-topbar {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    block-size: auto;
    min-block-size: 60px;
  }
  html[data-aim-local] .al-studio-shell .al-studio-topbar-mid {
    grid-template-columns: minmax(0, 1fr) auto max-content;
    padding-block: var(--rc-space-1);
  }
  html[data-aim-local] .al-studio-shell .al-studio-scenebar {
    display: grid;
    grid-template-columns: minmax(0, max-content) max-content;
    row-gap: 2px;
  }
  html[data-aim-local] .al-studio-scenebar .al-studio-save { grid-area: 1 / 2; }
  html[data-aim-local] .al-studio-scenebar .al-studio-dirty {
    grid-row: 2;
    grid-column: 1 / -1;
    white-space: normal;
  }
  html[data-aim-local] .al-studio-shell .al-tl { --al-tl-name: 184px; }
}
html[data-aim-local] .al-studio-topbar-lead { min-inline-size: 0; }
html[data-aim-local] .al-studio-brand-mark > span { min-inline-size: 0; }
html[data-aim-local] .al-studio-brand-mark b {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 var(--rc-fs-17)/1.2 var(--rc-font-condensed) !important;
}
html[data-aim-local] .al-studio-brand-mark i {
  border: 0;
  border-radius: 0;
  background: url('/local/brand.svg?v=3') center / contain no-repeat !important;
}
html[data-aim-local] .al-studio-shell.hall-light .al-studio-brand-mark i {
  background-image: url('/local/brand.svg?v=3') !important;
}
html[data-aim-local] .al-studio-brand-mark i > svg,
html[data-aim-local] .al-studio-guide .al-studio-guide-pre { display: none; }
html[data-aim-local] .al-studio-topbar :is(.al-studio-scene-btn, .al-studio-btn, .al-studio-save, .al-studio-guide),
html[data-aim-local] .al-studio-shell .al-studio-workspace button.al-studio-check-cta {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  background: transparent;
  color: var(--rc-ink);
  box-shadow: none;
  clip-path: var(--rc-cut-path) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: none;
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-body) !important;
}
html[data-aim-local] .al-studio-topbar :is(.al-studio-cbtn, .pwb, .pwb-main, .pwb-more) {
  min-block-size: 44px;
}
html[data-aim-local] .al-studio-topbar :is(.al-studio-cbtn, .pwb-main) {
  padding-inline: var(--rc-space-4);
}
html[data-aim-local] .al-studio-topbar .al-studio-cbtn {
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body) !important;
}
html[data-aim-local] .al-studio-topbar :is(.al-studio-back, .al-studio-theme-btn, .pwb-more) {
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-inline: 0;
}
/* Keep the foreground and background in sync when the Studio theme flips. */
html[data-aim-local] .al-studio-topbar :is(.al-studio-scene-btn, .al-studio-cbtn, .al-studio-back, .al-studio-theme-btn) {
  transition: none;
}
html[data-aim-local] .al-studio-topbar :is(.al-studio-scene-btn, .al-studio-btn, .al-studio-save, .al-studio-guide):is(:hover, :focus-visible, [aria-expanded="true"]):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .al-studio-topbar .al-studio-save {
  border-color: var(--rc-rule-strong) !important;
  background: transparent !important;
  color: var(--rc-ink) !important;
}
html[data-aim-local] .al-studio-topbar .al-studio-save:is(:hover, :focus-visible):not(:disabled) {
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
  border-color: var(--rc-signal) !important;
}
html[data-aim-local] .al-studio-shell :is(.al-studio-pop, .al-studio-tree-addmenu, .al-studio-confirm, .al-studio-maploading-card, .pwb-pop) {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] .al-studio-shell .al-studio-pop-danger {
  color: var(--al-studio-danger);
}
html[data-aim-local] .al-studio-shell .al-studio-pop-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--al-studio-danger) 10%, transparent);
}
html[data-aim-local] .al-studio-shell .al-studio-confirm-actions .al-studio-is-danger {
  border-color: var(--al-studio-danger);
  background: var(--al-studio-danger);
  color: var(--rc-paper);
}
/* Primary actions retain their control radius inside the native workspace. */
html[data-aim-local] .al-studio-shell .al-studio-workspace button.al-studio-play {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-signal-hover);
  border-radius: var(--rc-r) !important;
  background: var(--rc-signal);
  color: var(--rc-on-signal) !important;
  clip-path: var(--rc-cut-path) !important;
  box-shadow: none;
  filter: none;
  transition: none;
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-aim-local] .al-studio-shell :is(.al-studio-play, .al-studio-check-cta, .pwb-main):is(:hover, :focus-visible):not(:disabled) {
  border-color: var(--rc-signal);
  background: var(--rc-signal) !important;
  color: var(--rc-on-signal) !important;
  filter: none;
}
html[data-aim-local] .al-studio-shell :is(.al-studio-check, .al-studio-ih-plate) {
  border: var(--rc-hairline);
  border-radius: var(--rc-r);
}
html[data-aim-local] .al-studio-shell .al-studio-check {
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
html[data-aim-local] .al-studio-shell .al-studio-check > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: var(--rc-space-2);
}
html[data-aim-local] .al-studio-check > header > b {
  font: 600 var(--rc-fs-15)/1.3 var(--rc-font-condensed) !important;
}
html[data-aim-local] .al-studio-check > header > [data-role="check-score"] {
  white-space: nowrap;
  color: var(--rc-ink);
  font-size: var(--rc-fs-15);
}
html[data-aim-local] .al-studio-check-bar i { border-radius: 0; background: var(--rc-ice); }
html[data-aim-local] .al-studio-check-bar i.is-off { background: var(--rc-rule); }
html[data-aim-local] .al-studio-shell .al-studio-guide-link {
  border-radius: var(--rc-r-small);
  background: transparent;
}
html[data-aim-local] .al-studio-shell :is(input:not([type="range"], [type="checkbox"], [type="color"], .al-studio-step-input), select, textarea) {
  border-color: var(--rc-rule-strong);
  border-radius: var(--rc-r-small) !important;
  color: var(--rc-ink);
  background-color: var(--rc-paper-raise);
  font-family: var(--rc-font-body) !important;
  box-shadow: none;
}
html[data-aim-local] .al-studio-shell .al-studio-ih-name {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-17)/1.2 var(--rc-font-condensed) !important;
}
html[data-aim-local] .al-studio-shell .al-studio-scene-btn b {
  color: var(--rc-ink);
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-body) !important;
}
html[data-aim-local] .al-studio-shell .al-studio-tree-map {
  block-size: auto;
  min-block-size: 56px;
}
html[data-aim-local] .al-studio-tree-map-text { padding-block: var(--rc-space-1); }
html[data-aim-local] .al-studio-shell .al-studio-tree-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
html[data-aim-local] .al-studio-tree-label:has(> .al-studio-tree-swatch) {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--rc-space-2);
}
html[data-aim-local] .al-studio-tree-label:has(> .al-studio-tree-swatch) > :not(.al-studio-tree-swatch) {
  grid-column: 2;
}
html[data-aim-local] .al-studio-shell :is(.al-studio-tree-map-text strong, .al-studio-tree-name, .al-studio-tree-hint, .al-studio-ih-who small) {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-aim-local] .al-studio-tree-label .al-studio-tree-badge { justify-self: start; }
html[data-aim-local] .al-studio-tree-supercap {
  display: grid;
  gap: 2px;
}
html[data-aim-local] .al-studio-tree-group-head .al-studio-tree-title {
  display: block;
  white-space: normal;
  line-height: 1.3;
}
html[data-aim-local] .al-studio-tree-title .al-studio-tree-count { white-space: nowrap; }
html[data-aim-local] .al-studio-tree-multibar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[data-aim-local] .al-studio-tree-multibar-count {
  grid-column: 1 / -1;
  grid-row: 1;
}
html[data-aim-local] .al-studio-tree-multibar .al-studio-tree-multibar-btn {
  justify-content: center;
  padding-inline: var(--rc-space-1);
  block-size: auto;
  min-block-size: 24px;
}

/* The inspector already scrolls. Give the appearance options a single scroll owner. */
html[data-aim-local] .al-studio-shell .al-look-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 68px), 1fr));
  max-block-size: none;
  overflow: visible;
}
html[data-aim-local] .al-studio-shell .al-look-card { align-content: start; }
html[data-aim-local] .al-studio-shell .al-look-face {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--rc-r-small);
  background: var(--rc-paper-raise);
  color: var(--rc-slate);
  font-weight: 500;
}
html[data-aim-local] .al-look-art {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  background: var(--rc-paper-raise);
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.75);
  transform-origin: center top;
}
html[data-aim-local] .al-look-art.is-ready { opacity: 1; }
html[data-aim-local] .al-look-bot { inline-size: 58%; }
html[data-aim-local] .al-studio-shell .al-look-name {
  overflow: visible;
  white-space: normal;
  overflow-wrap: normal;
}
html[data-aim-local] .al-studio-shell .al-studio-behaviors-card { border-radius: var(--rc-r); }
html[data-aim-local] .al-studio-shell .al-studio-behaviors-seq { border-radius: var(--rc-r-small); }
html[data-aim-local] .al-studio-shell :is(.al-studio-behaviors-seq, .al-studio-behaviors-act.is-add, .al-sm-seg button.is-on, .al-dispatch-seg button.is-on) {
  background: var(--rc-paper-sunk);
  color: var(--rc-ink);
}
html[data-aim-local] .al-studio-shell .al-studio-selbar {
  box-sizing: border-box;
  inline-size: max-content;
  flex-wrap: wrap;
}
html[data-aim-local] .al-studio-shell .al-studio-selbar-who {
  min-inline-size: min(180px, 100%);
  max-inline-size: min(208px, 100%);
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
}
html[data-aim-local] .al-studio-selbar-who :is(b, small) {
  min-inline-size: 0;
  overflow: visible;
  overflow-wrap: break-word;
}
html[data-aim-local] .al-studio-shell .al-studio-status {
  min-block-size: 32px;
  block-size: auto;
  flex-wrap: wrap;
  gap: var(--rc-space-1) var(--rc-space-4);
  padding-block: var(--rc-space-1);
}
html[data-aim-local] .al-studio-status :is(.al-studio-meter, .al-studio-stat) {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}
html[data-aim-local] .al-studio-status .al-studio-stat > i { flex: none; }

html[data-aim-local] .al-studio-shell :is(.al-ld-slider, .al-sm-slider) { min-inline-size: 0; }
html[data-aim-local] .al-studio-shell :is(.al-ld-slider, .al-sm-slider) output {
  inline-size: auto;
  min-inline-size: 4ch;
  white-space: nowrap;
}
html[data-aim-local] .al-studio-shell .al-ld-kj { max-inline-size: 100%; }
html[data-aim-local] .al-studio-shell .al-ld-kj-title {
  min-block-size: calc(34 * var(--u));
  block-size: auto;
  padding: var(--rc-space-1) var(--rc-space-2);
  text-align: center;
  font: 600 var(--rc-fs-20)/var(--rc-lh-title) var(--rc-font-body);
}

html[data-aim-local] .al-studio-shell .al-studio-tunable {
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--rc-space-2);
}
html[data-aim-local] .al-studio-tunable > .al-tunable-give {
  grid-column: 1;
  justify-self: end;
  max-inline-size: 100%;
  white-space: normal;
  block-size: auto;
  min-block-size: 24px;
}
html[data-aim-local] .al-studio-tunable > .al-tunable-give i { flex: none; }
html[data-aim-local] .al-studio-tunable > .al-tunable-reason {
  grid-column: 1;
  margin: 0;
  color: var(--rc-slate);
  font-size: var(--rc-fs-12);
  line-height: 1.4;
}
html[data-aim-local] .al-studio-shell .al-tl-label {
  padding-block: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
@media (max-width: 1599px) {
  /* The compact header uses another line, so reserve room for the first track and its controls. */
  html[data-aim-local] .al-studio-shell .al-studio-col-center.has-timeline {
    --al-studio-compact-timeline-h: calc(var(--al-studio-timeline-h) + 62px);
  }
  html[data-aim-local] .al-studio-shell .al-studio-timeline {
    block-size: var(--al-studio-compact-timeline-h) !important;
  }
  html[data-aim-local] .al-studio-shell .has-timeline .al-studio-selbar {
    inset-block-end: calc(16px + var(--al-studio-compact-timeline-h));
  }
  html[data-aim-local] .al-studio-shell .has-timeline .al-studio-mousehint {
    inset-block-end: calc(12px + var(--al-studio-compact-timeline-h));
  }
  html[data-aim-local] .al-studio-shell .has-timeline .al-rec-pop {
    inset-block-end: calc(10px + var(--al-studio-compact-timeline-h));
  }
  html[data-aim-local] .al-studio-shell :is(.al-tl-caption, .al-tl-caption p, .al-tl-tools) {
    flex-wrap: wrap;
    gap: var(--rc-space-1) var(--rc-space-2);
  }
  html[data-aim-local] .al-tl-caption p { flex: 1 1 100%; }
  html[data-aim-local] .al-tl-caption p b {
    flex: none;
    max-inline-size: 100%;
  }
  html[data-aim-local] .al-tl-caption small {
    flex: 1 1 280px;
    overflow: visible;
    white-space: normal;
  }
}
/* The overlays sit on artwork and keep the night palette in both themes. */
html[data-aim-local] .al-studio-shell :is(.al-studio-dock, .al-studio-selbar, .al-studio-mousehint, .al-studio-playtest-hud) {
  border-color: var(--rc-night-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-night-2);
  color: var(--rc-night-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] .al-studio-shell :is(.al-studio-dock, .al-studio-selbar) .al-studio-toolbtn {
  color: var(--rc-night-text-soft);
}
html[data-aim-local] .al-studio-shell :is(.al-studio-dock, .al-studio-selbar) .al-studio-toolbtn:is(.al-studio-is-active, .al-studio-is-on, :hover:not(:disabled)) {
  color: var(--rc-night-text);
}
html[data-aim-local] .al-studio-shell :is(.al-studio-tree-lock.is-locked, .al-studio-dirty) {
  color: var(--rc-warn-text);
}
html[data-aim-local] .al-studio-shell .al-studio-dock-step {
  border-radius: var(--rc-r-small);
  color: var(--rc-night-muted);
  background: var(--rc-night-2);
}
html[data-aim-local] .al-studio-shell input.al-studio-step-input {
  color: var(--rc-night-text);
  background: transparent;
}
html[data-aim-local] .al-studio-shell :focus-visible { outline: 2px solid var(--rc-ice); outline-offset: 2px; }
html[data-aim-local] .al-studio-playtest-result {
  background: var(--rc-night-2);
  border: 1px solid var(--rc-night-rule);
  border-radius: var(--rc-r-panel);
  color: var(--rc-night-text);
  box-shadow: none;
}
html[data-aim-local] .al-studio-playtest-result h2 {
  color: var(--rc-night-text);
  font: 600 var(--rc-fs-20)/var(--rc-lh-title) var(--rc-font-condensed) !important;
}
html[data-aim-local] .al-studio-playtest-result-acts .al-studio-btn {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-night-rule-strong);
  background: transparent;
  color: var(--rc-night-text);
  font: 600 var(--rc-fs-15)/1 var(--rc-font-condensed) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-aim-local] .al-studio-shell .al-studio-playtest-result-acts .al-studio-btn.al-studio-is-primary {
  border: 0;
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-weight: 600 !important;
  box-shadow: none;
  clip-path: var(--rc-cut-path) !important;
  filter: none;
}

/* Raised command panels frame the working viewport without repainting the scene. */
html[data-aim-local] .al-studio-shell :is(.al-studio-col-left, .al-studio-col-right) {
  background: var(--rc-paper-raise);
  border-color: var(--rc-rule-strong);
}
html[data-aim-local] .al-studio-shell :is(.al-studio-tabs, .al-studio-ih) {
  background: var(--rc-paper);
  border-block-end: 1px solid var(--rc-rule-strong);
}
html[data-aim-local] .al-studio-shell .al-studio-tabs {
  gap: var(--rc-space-2);
  padding: var(--rc-space-2);
}
html[data-aim-local] .al-studio-shell .al-studio-tab {
  min-block-size: 44px;
  block-size: auto;
  border: 1px solid transparent;
  border-radius: var(--rc-r-small);
  font: 600 var(--rc-fs-13)/1.3 var(--rc-font-body);
}
html[data-aim-local] .al-studio-shell .al-studio-tab.al-studio-is-active {
  color: var(--rc-ink);
  background: var(--rc-paper-sunk);
  border-color: var(--rc-rule-strong);
}
html[data-aim-local] .al-studio-shell .al-studio-tab.al-studio-is-active::after { content: none; }
html[data-aim-local] .al-studio-shell :is(.al-studio-tree-title, .al-studio-tree-supercap) {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-15);
  font-weight: 600;
  color: var(--rc-ink);
}
html[data-aim-local] .al-studio-shell .al-studio-check { padding: var(--rc-space-4); border-radius: var(--rc-r-panel); }
html[data-aim-local] .al-studio-shell .al-studio-check > header {
  padding-block-end: var(--rc-space-2);
  border-block-end: 1px solid var(--rc-rule-strong);
}
html[data-aim-local] .al-studio-check > header > [data-role="check-score"] {
  font-family: var(--rc-font-mono);
  font-weight: 700;
  color: var(--rc-signal-text);
}
@media (pointer: coarse) {
  html[data-aim-local] .al-studio-shell :is(.al-studio-back, .al-studio-theme-btn, .al-studio-ih-acts button) {
    min-inline-size: 44px;
    min-block-size: 44px;
  }
}

/* Studio dialogs, publish flow, cloud library, collaboration and mobile fallback. */
html[data-aim-local] .al-studio-shell .al-studio-tree-map:focus-within {
  outline-color: var(--rc-ice);
}
html[data-aim-local] :is(.al-mapchoice, .al-newscene, .al-maploading, .al-cloud-mine-mask) {
  background: color-mix(in srgb, var(--rc-night) 68%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-aim-local] :is(.al-mapchoice-card, .al-newscene-card, .al-maploading-card, .al-cloud-mine) {
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  box-shadow: none;
}
html[data-aim-local] :is(.al-mapchoice-tile, .al-newscene-tile, .al-newscene-thumb) {
  border-radius: var(--rc-r);
}
html[data-aim-local] .al-mapchoice-thumb.is-blank { background: var(--rc-paper-sunk); }
html[data-aim-local] .al-mapchoice-current { font-size: var(--rc-fs-12); }
html[data-aim-local] .al-maploading-bar { border-radius: var(--rc-r-small); }
html[data-aim-local] :is(.al-mapchoice-btn, .al-newscene-btn, .al-maploading-btn, .al-cloud-mine-chip) {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  background: transparent;
  color: var(--rc-ink);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] :is(.al-mapchoice-btn.is-primary, .al-newscene-btn.is-primary, .al-maploading-btn.is-primary) {
  border-color: var(--rc-signal);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .al-cloud-mine-danger {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border: 1px solid var(--rc-danger);
  border-radius: var(--rc-r-small);
  background: var(--rc-danger);
  color: var(--rc-paper-raise);
  font: 600 var(--rc-fs-13)/1.2 var(--rc-font-body);
}
html[data-aim-local] .al-cloud-mine-notice {
  border-color: color-mix(in srgb, var(--rc-danger) 36%, transparent);
  border-radius: var(--rc-r);
  background: color-mix(in srgb, var(--rc-danger) 10%, transparent);
  color: var(--rc-ink);
}
html[data-aim-local] .al-cloud-mine-status {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
  font-weight: 600;
}
html[data-aim-local] .al-cloud-mine-s0 { color: var(--rc-warn-text); }
html[data-aim-local] .al-cloud-mine-s1 { color: var(--rc-ok-text); }
html[data-aim-local] :is(.al-cloud-mine-s2, .al-cloud-mine-remark) {
  color: var(--rc-danger);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .al-cloud-mine-meta { font-size: var(--rc-fs-12); }

html[data-aim-local] .pwp-side::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.pwp-head h2, .pwp-ask h3) {
  font: 600 var(--rc-fs-28)/1.2 var(--rc-font-condensed);
}
html[data-aim-local] :is(.pwp-side-h b, .pwp-lede b, .pwp-diff b, .pwp-radio, .pwp-shoot, .pwp-link, .pwp-ask p b, .pwp-agree-sum h3, .pwp-agree-sum b, .pwp-agree-doc h4, .pwp-agree-doc h5, .pwp-agree-doc b) {
  font-weight: 600;
}
html[data-aim-local] .pwp-x {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r-small);
  color: var(--rc-ink);
}
html[data-aim-local] :is(.pwp-diff, .pwp-agree-sum, .pwp-agree-doc, .pwp-cover-th) {
  border-radius: var(--rc-r);
}
html[data-aim-local] .pwp-radio i { border-radius: var(--rc-r-small); }
html[data-aim-local] .pwp-check {
  border: var(--rc-hairline);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r);
}
html[data-aim-local] .pwp-check.is-ok {
  background: color-mix(in srgb, var(--rc-ok-text) 10%, transparent);
  color: var(--rc-ok-text);
}
html[data-aim-local] .pwp-check.is-warn {
  background: color-mix(in srgb, var(--rc-warn-text) 10%, transparent);
  color: var(--rc-warn-text);
}
html[data-aim-local] .pwp-check.is-bad {
  background: color-mix(in srgb, var(--rc-danger) 10%, transparent);
  color: var(--rc-danger);
}
html[data-aim-local] .pwp-go {
  min-block-size: 44px;
  padding-inline: var(--rc-space-4);
  border-radius: var(--rc-r);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  filter: none;
  font-weight: 600;
}
html[data-aim-local] .pwp-submit { letter-spacing: 0; }
html[data-aim-local] .pwp-ask-ic {
  border-radius: var(--rc-r);
  color: var(--rc-paper-raise);
}
html[data-aim-local] .pwp-ask-ic.is-ok { background: var(--rc-ok-text); }
html[data-aim-local] .pwp-ask-ic.is-warn { background: var(--rc-warn-text); }
html[data-aim-local] :is(.pwp-side-h small, .pwp-diff small, .pwp-radio small, .pwp-cover-miss) {
  font-size: var(--rc-fs-12);
}

html[data-aim-local] .al-collab-card {
  border: var(--rc-hairline);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .al-collab-title::before {
  content: none;
  display: none;
}
html[data-aim-local] :is(.al-collab-select, .al-collab-join input, .al-collab-btn) {
  min-block-size: 40px;
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-13);
}
html[data-aim-local] .al-collab-btn--primary {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  filter: none;
  font-weight: 600;
}
html[data-aim-local] .al-collab-badge {
  border-radius: var(--rc-r-small);
  background: color-mix(in srgb, var(--rc-ok-text) 12%, transparent);
  color: var(--rc-ok-text);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .al-collab-badge--off {
  background: color-mix(in srgb, var(--rc-warn-text) 12%, transparent);
  color: var(--rc-warn-text);
}
html[data-aim-local] .al-collab-dot { border-radius: var(--rc-r-small); }
html[data-aim-local] .al-collab-chip {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] :is(.al-collab-or, .al-collab-hint, .al-collab-when) {
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .al-studio-mobile-notice {
  min-block-size: 100dvh;
  background: var(--rc-paper);
  color: var(--rc-ink);
}
html[data-aim-local] .al-studio-mobile-title {
  font: 600 var(--rc-fs-28)/1.25 var(--rc-font-condensed);
}
@media (max-width: 600px) {
  html[data-aim-local] :is(.pwp-diffs, .pwp-foot) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-aim-local] .pwp-foot-acts {
    grid-area: auto;
    flex-wrap: wrap;
  }
}

/* Mobile browsing uses the shared blue/black tokens and native route state. */
html[data-aim-local].am-page,
html[data-aim-local].am-page body {
  background: var(--rc-paper);
}
html[data-aim-local] .am-root {
  --am-bg: var(--rc-paper);
  --am-panel: var(--rc-paper-raise);
  --am-panel-2: var(--rc-paper);
  --am-raise: var(--rc-paper-sunk);
  --am-sheet: var(--rc-paper-raise);
  --am-line: var(--rc-rule);
  --am-bone: var(--rc-ink);
  --am-muted: var(--rc-slate);
  --am-dim: var(--rc-slate);
  --am-red: var(--rc-signal);
  --am-cyan: var(--rc-signal-text);
  --am-gold: var(--rc-warn-text);
  --am-silver: var(--rc-slate);
  --am-bronze: var(--rc-warn-text);
  --am-green: var(--rc-ok-text);
  --am-icon: 22px;
  max-inline-size: 760px;
  margin-inline: auto;
  background: var(--rc-paper);
  color: var(--rc-ink);
}
html[data-aim-local] .am-root .am-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--rc-paper);
}
html[data-aim-local] .am-root .am-brand {
  grid-area: 1 / 1;
  margin: 0;
}
html[data-aim-local] .am-root .am-bar > .aim-local-actions {
  grid-area: 1 / 2;
  justify-self: end;
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 8px;
  min-inline-size: 0;
  margin: 0;
}
html[data-aim-local] .am-root .am-bar :is(.aim-locale-toggle, .aim-account-button) {
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: 10px;
  font-size: 12px;
  border-radius: var(--rc-r);
  white-space: nowrap;
}
html[data-aim-local] .am-root .am-bar-pc {
  grid-area: 2 / 1 / auto / -1;
  min-block-size: 44px;
  inline-size: 100%;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  color: var(--rc-ink);
  font-size: 13px;
}
html[data-aim-local] .am-root .am-main {
  padding-block-end: calc(104px + env(safe-area-inset-bottom));
}
html[data-aim-local] .am-root .am-tabs {
  max-inline-size: 760px;
  margin-inline: auto;
  gap: 8px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--rc-paper);
}
html[data-aim-local] .am-root .am-tab {
  --am-icon: 24px;
  grid-template-rows: 24px auto;
  align-content: center;
  min-inline-size: 0;
  min-block-size: 60px;
  gap: 6px;
  padding: 8px 2px;
  border-radius: var(--rc-r);
  color: var(--rc-ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 160ms ease, background-color 160ms ease;
}
html[data-aim-local] .am-root .am-tab.is-on {
  color: var(--rc-signal);
  background: color-mix(in srgb, var(--rc-signal) 12%, var(--rc-paper));
}
html[data-aim-local] .am-root .am-tab-label {
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: nowrap;
}
html[data-aim-local] .am-root .am-tab-dot { inset-block-start: 8px; }
html[data-aim-local] .am-root :is(.am-sec-head, .am-sec-h) { gap: 12px; }
html[data-aim-local] .am-root :is(.am-sec-title, .am-sec-h h2) {
  font-size: 22px;
  line-height: 1.3;
}
html[data-aim-local] .am-root :is(.am-map, .am-mo, .am-studio, .am-scene-card, .am-panel,
  .am-me-out, .am-filter, .amp-row, .am-button) {
  clip-path: none !important;
  border-radius: var(--rc-r-panel) !important;
}
html[data-aim-local] .am-root :is(.am-seg, .am-nav) { gap: 8px; }
html[data-aim-local] .am-root :is(.am-seg-btn, .am-map, .am-nav button) {
  min-block-size: 44px;
  border-radius: var(--rc-r);
}
html[data-aim-local] .am-root .am-mo {
  border: 1px solid var(--rc-rule);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .am-root .am-mo-pic { block-size: 176px; }
html[data-aim-local] .am-root .am-mo-pic::after { content: none; }
html[data-aim-local] .am-root .am-mo-body {
  margin-block-start: 0;
  padding: 16px;
}
html[data-aim-local] .am-root .am-mo-title { font-size: 20px; line-height: 1.35; }
html[data-aim-local] .am-root .am-mo-meta { line-height: 1.5; }
html[data-aim-local] .am-root .am-race-value.is-empty {
  color: var(--am-muted);
  font: 600 15px/28px var(--rc-font-body);
}
/* A right-aligned note wraps into a ragged column beside a two-line title on phones. */
@media (max-width: 520px) {
  html[data-aim-local] .am-root .am-sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  html[data-aim-local] .am-root .am-sec-meta { text-align: start; }
}
html[data-aim-local] .am-root .am-rows {
  display: grid;
  gap: 10px;
  background: transparent;
}
html[data-aim-local] .am-root .am-row {
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  padding: 12px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .am-root .am-row-thumb {
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  inline-size: 80px;
  block-size: 64px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .am-root .am-row > span:nth-child(2) {
  grid-area: 1 / 2;
  min-inline-size: 0;
}
html[data-aim-local] .am-root .am-row-title { font-size: 14px; line-height: 1.45; }
html[data-aim-local] .am-root .am-row-chips { gap: 4px 6px; }
html[data-aim-local] .am-root .am-row-side {
  grid-area: 2 / 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--rc-ink-soft);
  text-align: start;
  font-size: 12px;
  line-height: 1.4;
}
html[data-aim-local] .am-root .am-row-side small { margin: 0; font-size: 12px; }
html[data-aim-local] .am-root .am-sheet {
  max-inline-size: 640px;
  max-block-size: 90dvh;
  border: 1px solid var(--rc-rule-strong);
  border-radius: 20px 20px 0 0;
  background: var(--rc-paper-raise);
}
html[data-aim-local] .am-root .am-sheet-close {
  --am-icon: 20px;
  inline-size: 44px;
  block-size: 44px;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r);
  color: var(--rc-ink);
  background: var(--rc-paper);
}
html[data-aim-local] .am-root .am-sheet-close-icon { display: block; }
html[data-aim-local] .am-root .am-sheet-grab { background: var(--rc-ink-soft); opacity: .6; }
html[data-aim-local] .am-root .am-sheet-actions {
  gap: 8px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--rc-paper-raise);
}
html[data-aim-local] .am-root :is(.am-btn-red, .am-btn-dark, .am-fav, .am-hand-copy, .am-hand-qq) {
  --am-icon: 20px;
  min-block-size: 48px;
  border-radius: var(--rc-r);
  font-size: 14px;
}
html[data-aim-local] .am-root .am-ps-pic { block-size: clamp(176px, 48vw, 220px); }
html[data-aim-local] .am-root .am-ps-tags {
  max-inline-size: calc(100% - 86px);
  flex-wrap: wrap;
  gap: 6px;
}
html[data-aim-local] .am-root .am-ps-head {
  margin-block-start: 0;
  padding: 16px 20px;
}
html[data-aim-local] .am-root .am-ps-title { font-size: 22px; line-height: 1.35; }
html[data-aim-local] .am-root :is(.am-ps-desc, .am-studio-lede, .amp-desc) {
  font-size: 14px;
  line-height: 1.6;
}
html[data-aim-local] .am-root .am-ps-stats { margin: 0 20px; }
html[data-aim-local] .am-root .am-ps-stat small {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  font-size: 12px;
  line-height: 1.45;
}
html[data-aim-local] .am-root .am-ps-h {
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 20px 20px 0;
  line-height: 1.45;
}
html[data-aim-local] .am-root .am-ps-h small { font-size: 12px; line-height: 1.5; }
html[data-aim-local] .am-root .am-ps-board { margin: 0; padding: 12px 20px 20px; }
html[data-aim-local] .am-root .am-hand {
  padding: 20px 16px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
@media (max-width: 359px) {
  html[data-aim-local] .am-root .am-tabs { padding-inline: 4px; }
  html[data-aim-local] .am-root .am-tab { padding-inline: 0; }
}
@media (min-width: 600px) {
  html[data-aim-local] .am-root .am-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  html[data-aim-local] .am-root .am-bar-pc { grid-area: 1 / 2; inline-size: auto; justify-self: center; }
  html[data-aim-local] .am-root .am-bar > .aim-local-actions { grid-area: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-aim-local] .am-root .am-tab { transition: none; }
}

/* Complete mobile parity across VALORANT, Community, Polls, Account and sheets. */
html[data-aim-local] .am-root :is(.am-btn-red, .am-hand-copy, .am-tag:not(.is-dim), .amp-mine, .amp-er-mine, .amp-btn:not(.is-ghost, .is-off), .am-board-you, .am-qs-join, .am-me-avatar.is-initial) {
  background: var(--rc-signal);
  color: var(--rc-on-signal) !important;
}
html[data-aim-local] .am-root :is(.am-seg-btn.is-on, .am-ss-win button.is-on) {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}
html[data-aim-local] .am-root .amp-row.is-on .amp-check {
  border-color: var(--rc-signal);
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .am-root .am-chip {
  border-radius: var(--rc-r-small);
  font-size: var(--rc-fs-12);
}
html[data-aim-local] .am-root .am-chip.is-hard {
  background: color-mix(in srgb, var(--rc-danger) 12%, transparent);
  color: var(--rc-danger);
}
html[data-aim-local] .am-root .am-chip.is-easy {
  background: color-mix(in srgb, var(--rc-ok-text) 12%, transparent);
  color: var(--rc-ok-text);
}
html[data-aim-local] .am-root .am-chip.is-gold {
  background: color-mix(in srgb, var(--rc-warn-text) 12%, transparent);
  color: var(--rc-warn-text);
}
html[data-aim-local] .am-root .amp-note.is-error {
  color: var(--rc-danger);
  font-weight: 600;
}
html[data-aim-local] .am-root :is(.amp-done, .am-me-fav, .am-ss-rank) {
  border: 1px solid var(--rc-rule);
  border-inline-start-width: 1px;
  border-radius: var(--rc-r);
  background: var(--rc-paper-raise);
  box-shadow: none;
}
html[data-aim-local] .am-root :is(.amp-row.is-on, .amp-row.is-mine) {
  border: 1px solid var(--rc-signal);
  background: color-mix(in srgb, var(--rc-signal) 8%, var(--rc-paper-raise));
  box-shadow: none;
}
html[data-aim-local] .am-root .amp-ptab {
  border-radius: var(--rc-r);
}
html[data-aim-local] .am-root .amp-ptab.is-on {
  border-color: var(--rc-signal);
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  box-shadow: none;
}
html[data-aim-local] .am-root .am-board-row.is-me {
  border-radius: var(--rc-r-small);
  background: color-mix(in srgb, var(--rc-signal) 10%, transparent);
  box-shadow: none;
}
html[data-aim-local] .am-root .am-qs-row.is-kook { box-shadow: none; }
html[data-aim-local] .am-root .am-race-cell.is-win {
  border-block-start: 0;
  box-shadow: inset 0 0 0 1px var(--rc-rule-strong);
}
html[data-aim-local] .am-root .am-sheet { box-shadow: none; }
html[data-aim-local] .am-root :is(.amp-comment input, .amp-btn, .am-qs-copy, .am-qs-join, .am-ss-tabs button, .am-me-fav) {
  min-block-size: 44px;
  border-radius: var(--rc-r);
}
html[data-aim-local] .am-root .am-ss-win {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r);
  box-shadow: none;
}
html[data-aim-local] .am-root .am-ss-win button {
  min-block-size: 36px;
  padding-inline: 12px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .am-root .amp-zoom {
  inset-block-start: 38px;
  inset-inline-start: 84px;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .am-root :is(.am-studio, .am-scenes, .amp-empty, .amp-ended, .am-qs-rows, .am-toast) {
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r-panel);
  background: var(--rc-paper-raise);
}
html[data-aim-local] .am-root :is(.am-seg-count, .am-tag, .am-row-chips, .am-race-label, .am-race-unit, .amp-row-desc, .amp-mine, .amp-res small, .amp-sticky-sub, .amp-ptab small, .amp-tag, .amp-ep-meta, .amp-er-mine, .amp-er-prog, .am-me-stat i, .am-me-stat small, .am-board-you, .am-board-unit, .am-board-sub, .am-ps-stat i, .am-ss-tabs em, .am-ss-tick, .am-qs-full) {
  font-size: var(--rc-fs-12);
}

html[data-aim-local] .am-root .am-sec.is-first .am-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
html[data-aim-local] .am-root .am-sec.is-first .am-sec-meta { max-inline-size: none; text-align: start; }

/* Compact utilities leave the main navigation and training action in charge. */
html[data-aim-local] .hall-topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  block-size: 64px;
  min-block-size: 64px;
  padding-inline: 24px;
}
html[data-aim-local] .hall-topnav .hall-brand { min-inline-size: 100px; }
html[data-aim-local] .hall-topnav .hall-brand img { inline-size: 100px; }
html[data-aim-local] .hall-topnav .hall-tabs { gap: 0; }
html[data-aim-local] .hall-topnav .hall-tab { padding-inline: 10px !important; }
html[data-aim-local] .hall-topnav .hall-topnav-right { gap: 0; padding: 0; border: 0; }
html[data-aim-local] .hall-topnav > .aim-local-actions { gap: 8px; block-size: auto; }
html[data-aim-local] .hall-topnav .hall-sens {
  block-size: 36px;
  min-block-size: 36px;
  gap: 6px;
  padding: 3px 6px 3px 10px;
  border: 1px solid var(--rc-rule);
  border-radius: 6px !important;
  background: var(--rc-paper-raise);
}
html[data-aim-local] .hall-topnav .hall-sens-label { color: var(--rc-ink-soft); font: 500 12px/1.3 var(--rc-font-body); }
html[data-aim-local] .hall-topnav .hall-sens-value { inline-size: 44px; font-size: 13px !important; }
html[data-aim-local] .hall-topnav .hall-sens:focus-within { border-color: var(--rc-signal); }
/* Side-by-side 24px steppers keep the minimum tap target inside the 36px header row. */
html[data-aim-local] .hall-topnav .hall-sens-stepper { flex-direction: row; gap: 0; inline-size: auto; }
html[data-aim-local] .hall-topnav .hall-sens-stepper button {
  display: grid;
  place-items: center;
  inline-size: 24px;
  min-inline-size: 24px;
  block-size: 24px;
  min-block-size: 24px;
  padding: 0;
  color: var(--rc-ink-soft);
  background: transparent;
}
html[data-aim-local] .hall-topnav .hall-sens-step-icon { inline-size: 12px; block-size: 12px; }
html[data-aim-local] .hall-topnav .hall-sens-stepper button:hover { color: var(--rc-signal); }
html[data-aim-local] .hall-topnav .aim-local-actions :is(button, .contact-credit > summary) {
  min-block-size: 36px;
  block-size: 36px;
  padding: 0 10px;
  border-radius: 6px !important;
  font: 600 12px/1.3 var(--rc-font-body) !important;
}
html[data-aim-local] .hall-topnav .aim-local-actions .aim-performance-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 10px;
  border: 1px solid color-mix(in srgb, var(--rc-signal) 40%, var(--rc-rule));
  color: var(--rc-signal-text) !important;
  background: color-mix(in srgb, var(--rc-signal) 8%, var(--rc-paper));
  box-shadow: none;
}
html[data-aim-local] .hall-topnav .aim-performance-button:not(:disabled):hover {
  border-color: var(--rc-signal);
  background: color-mix(in srgb, var(--rc-signal) 14%, var(--rc-paper));
}
html[data-aim-local] .hall-topnav .aim-performance-button:disabled { opacity: .5; }
html[data-aim-local] .hall-topnav .aim-performance-glyph {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 18px;
  block-size: 18px;
  border: 0;
  border-radius: 0;
}
html[data-aim-local] .hall-topnav .aim-performance-glyph::after { content: none; }
html[data-aim-local] .hall-topnav .aim-performance-icon { display: block; inline-size: 18px; block-size: 18px; }
html[data-aim-local] .hall-topnav .aim-performance-label {
  position: static;
  inline-size: auto;
  block-size: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}
html[data-aim-local] .hall-topnav .aim-performance-button[data-state="bad"]::after {
  display: grid;
  place-items: center;
  min-inline-size: 16px;
  block-size: 16px;
  padding-inline: 3px;
  color: var(--rc-on-signal);
  background: var(--rc-signal);
  font-size: 10px;
}
html[data-aim-local] .hall-topnav .aim-local-actions.is-mounted .aim-account-button {
  min-inline-size: 72px;
  padding-inline: 12px;
  border-color: var(--rc-rule-strong);
  color: var(--rc-ink) !important;
  background: var(--rc-paper-raise);
}
html[data-aim-local] .hall-topnav .aim-locale-toggle { color: var(--rc-ink-soft); }
html[data-aim-local] .hall-topnav .contact-credit > summary { color: var(--rc-ink-soft); }
html[data-aim-local] .contact-credit-popover {
  inline-size: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--rc-rule);
  border-radius: 8px;
  background: var(--rc-paper-raise);
  color: var(--rc-ink-soft);
  font: 400 13px/1.55 var(--rc-font-body);
}
html[data-aim-local] .contact-credit-popover nav { flex-wrap: wrap; gap: 12px; margin-block-start: 10px; }
html[data-aim-local] .contact-credit-popover a { color: var(--rc-signal-text); font-size: 12px; }
@media (max-width: 1399px) {
  html[data-aim-local] .hall-topnav {
    display: grid;
    block-size: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(40px, auto) minmax(40px, auto);
    grid-auto-rows: minmax(40px, auto);
    gap: 4px 12px;
    padding-block: 6px;
  }
  html[data-aim-local] .hall-topnav .hall-brand { grid-area: 1 / 1; min-block-size: 40px; }
  html[data-aim-local] .hall-topnav .hall-topnav-right { grid-area: 1 / 2; justify-self: end; }
  html[data-aim-local] .hall-topnav > .aim-local-actions { grid-area: 1 / 3; }
  html[data-aim-local] .hall-topnav .hall-tabs { grid-area: 2 / 1 / auto / -1; }
  html[data-aim-local] .hall-topnav .hall-tab { min-block-size: 40px; }
}
@media (max-width: 800px) {
  html[data-aim-local] .hall-topnav { grid-template-columns: auto minmax(0, 1fr); }
  html[data-aim-local] .hall-topnav > .aim-local-actions { grid-area: 2 / 1 / auto / -1; flex-wrap: wrap; justify-content: flex-end; }
  html[data-aim-local] .hall-topnav .hall-tabs { grid-area: 3 / 1 / auto / -1; }
}

/* Help links and the search keycap at 500: 700 on 11-12px text shouted next to quiet chrome. */
html[data-aim-local] :is(.contact-credit-popover a, .hall-search kbd) { font-weight: 500; }

/* A single reading surface keeps real results and instructions together. */
html[data-aim-local] .hall-lat-drawer { inline-size: min(680px, 100vw); border-inline-start: 1px solid var(--rc-rule); background: var(--rc-paper); }
html[data-aim-local] .hall-lat-drawer > div { display: flex; flex: 1; min-block-size: 0; flex-direction: column; }
html[data-aim-local] .hall-lat-drawer .hall-lat-head { gap: var(--rc-space-3); padding: var(--rc-space-4) var(--rc-space-6); background: var(--rc-paper); }
html[data-aim-local] .hall-lat-drawer .hall-lat-head h2 { font: 600 20px/1.35 var(--rc-font-body); color: var(--rc-ink); }
html[data-aim-local] .hall-lat-drawer .hall-lat-head p { margin-block-start: 4px; font-size: 12px; line-height: 1.5; color: var(--rc-ink-soft); }
html[data-aim-local] .hall-lat-drawer :is(.hall-lat-btn-primary, .hall-lat-btn-ghost, .hall-lat-link:where(button)) { border-radius: 6px !important; padding: 8px 12px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-journey {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--rc-space-4);
  padding: var(--rc-space-3) var(--rc-space-6) 0;
  margin: 0;
  list-style: none;
}
html[data-aim-local] .hall-lat-drawer .hall-lat-journey-step { display: flex; align-items: center; gap: 6px; color: var(--rc-slate); font-size: 12px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-journey-step > span { font: 500 12px/1 var(--rc-font-mono); }
html[data-aim-local] .hall-lat-drawer .hall-lat-journey-step b { font-weight: 500; }
html[data-aim-local] .hall-lat-drawer .hall-lat-journey-step small { display: none; }
html[data-aim-local] .hall-lat-drawer .hall-lat-journey-step.is-current { color: var(--rc-signal-text); }
html[data-aim-local] .hall-lat-drawer .hall-lat-hero { padding: var(--rc-space-4) var(--rc-space-6); gap: var(--rc-space-4); }
html[data-aim-local] .hall-lat-drawer .hall-lat-pct { min-inline-size: 64px; font: 600 28px/1 var(--rc-font-mono); color: var(--rc-signal-text); }
html[data-aim-local] .hall-lat-drawer .hall-lat-hero-meta b { font-size: 14px; line-height: 1.4; font-weight: 600; }
html[data-aim-local] .hall-lat-drawer .hall-lat-hero-meta span { font-size: 12px; line-height: 1.5; }
html[data-aim-local] .hall-lat-drawer .hall-lat-bar { block-size: 3px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-list { padding: 0 var(--rc-space-6) var(--rc-space-6); }
html[data-aim-local] .hall-lat-drawer .hall-lat-phase { padding: var(--rc-space-4) 0; margin: 0; border: 0; border-block-end: 1px solid var(--rc-rule); border-radius: 0; background: transparent; }
html[data-aim-local] .hall-lat-drawer .hall-lat-phase h4 { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
html[data-aim-local] .hall-lat-drawer .hall-lat-row { padding-block: 8px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-row > span { overflow: visible; max-inline-size: 55%; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; font-size: 12px; line-height: 1.5; }
html[data-aim-local] .hall-lat-drawer .hall-lat-verdict { gap: 12px; padding: 16px 20px; background: transparent; box-shadow: inset 0 -1px var(--rc-rule); }
html[data-aim-local] .hall-lat-drawer .hall-lat-verdict .hall-lat-big { min-inline-size: 32px; inline-size: auto; block-size: auto; border-radius: 0; font: 600 28px/1 var(--rc-font-mono); background: transparent; color: var(--rc-signal-text); }
html[data-aim-local] .hall-lat-drawer .hall-lat-verdict h3 { margin: 0; font: 600 15px/1.45 var(--rc-font-body); }
html[data-aim-local] .hall-lat-drawer .hall-lat-verdict p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; }
html[data-aim-local] .hall-lat-drawer .hall-lat-grp { padding: var(--rc-space-4) 0 var(--rc-space-2); font-size: 12px; color: var(--rc-ink-soft); }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  padding: 16px 0;
  margin: 0;
  border: 0;
  border-block-end: 1px solid var(--rc-rule);
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
}
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > .hall-lat-tag { grid-column: 1; grid-row: auto; justify-self: start; padding: 0; border: 0; font: 500 12px/1.4 var(--rc-font-body); color: var(--rc-ink-soft); background: transparent; box-shadow: none; }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > h4 { grid-column: 1; grid-row: auto; margin: 0; font: 600 15px/1.45 var(--rc-font-body); }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > .hall-lat-why { grid-column: 1; grid-row: auto; margin: 0; font-size: 13px; line-height: 1.6; color: var(--rc-ink-soft); }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > .hall-lat-act { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > :is(.hall-lat-steps, .hall-lat-retest, .hall-lat-actions) { grid-column: 1 / -1; grid-row: auto; }
html[data-aim-local] .hall-lat-drawer .hall-lat-steps { min-inline-size: 0; padding: 0; margin-block-start: 12px; border: 0; }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-head { padding-block-start: 12px; margin-block-end: 8px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-head h4 { margin: 0; font: 600 14px/1.45 var(--rc-font-body); }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-head p { margin: 4px 0 0; color: var(--rc-ink-soft); font-size: 12px; line-height: 1.5; }
html[data-aim-local] .hall-lat-drawer .hall-lat-steps ol { gap: 0; }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-step { grid-template-columns: 22px minmax(0, 1fr); gap: var(--rc-space-2); padding: var(--rc-space-3) 0; border: 0; border-radius: 0; background: transparent; }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-step + .hall-lat-guide-step { border-block-start: 1px solid var(--rc-rule); }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-step .hall-lat-n { display: block; inline-size: 22px; block-size: auto; padding-block-start: 1px; border: 0; border-radius: 0; background: transparent; color: var(--rc-slate); font: 500 12px/1.5 var(--rc-font-mono); }
html[data-aim-local] .hall-lat-drawer .hall-lat-step-content { min-inline-size: 0; }
html[data-aim-local] .hall-lat-drawer .hall-lat-step-title { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 600; }
html[data-aim-local] .hall-lat-drawer .hall-lat-step-detail { margin: 4px 0 0; color: var(--rc-ink-soft); font-size: 13px; line-height: 1.6; }
html[data-aim-local] .hall-lat-drawer .hall-lat-copy { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rc-space-2); padding: var(--rc-space-2) var(--rc-space-3); margin-block-start: var(--rc-space-2); border: 1px solid var(--rc-rule); border-radius: var(--rc-r-small); background: var(--rc-paper-raise); }
html[data-aim-local] .hall-lat-drawer .hall-lat-copy code { flex: 1 1 180px; min-inline-size: 0; white-space: normal; overflow-wrap: anywhere; color: var(--rc-ink); font: 500 12px/1.5 var(--rc-font-mono); }
html[data-aim-local] .hall-lat-drawer .hall-lat-guide-finish { display: none; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad { block-size: 190px; margin-block: var(--rc-space-3) var(--rc-space-2); border: 1px solid var(--rc-rule); border-radius: var(--rc-r-small); box-shadow: none; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad-hint { inset-block-start: 14px; inset-inline-start: 14px; max-inline-size: calc(100% - 138px); font-size: 14px; line-height: 1.45; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad-hint small { font-size: 12px; line-height: 1.5; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad-motion { position: absolute; inset-inline-start: calc(50% - 24px); inset-block-start: 100px; inline-size: 48px; block-size: 48px; color: var(--rc-slate); opacity: .45; pointer-events: none; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad-countdown { inset-block-start: 14px; inset-inline-end: 14px; }
html[data-aim-local] .hall-lat-drawer .hall-lat-pad-countdown b { font: 600 24px/1 var(--rc-font-mono); }
@media (max-width: 480px) {
  html[data-aim-local] .hall-lat-drawer .hall-lat-head { flex-wrap: wrap; padding: 16px; }
  html[data-aim-local] .hall-lat-drawer .hall-lat-list { padding-inline: 16px; }
  html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item { grid-template-columns: minmax(0, 1fr); }
  html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > .hall-lat-act { grid-column: 1; grid-row: auto; justify-self: start; margin-block-start: 4px; }
  html[data-aim-local] .hall-lat-drawer .hall-lat-journey { gap: 12px; padding-inline: 16px; }
}

html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item > .hall-lat-tag.is-bad { color: var(--rc-signal-text); }
html[data-aim-local] .hall-lat-drawer .hall-lat-view .hall-lat-item.is-browser > a { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-block-start: 8px; }

/* Performance check drawer (upstream .hall-lat-*). Markup and behaviour stay in
   the captured bundle; this layer restyles it with Range Console tokens. Issues
   use the alert red so they never read like the ocean-blue tips beside them. */

html[data-aim-local] .hall-portal .hall-lat-drawer {
  --lat-accent: var(--rc-signal);
  --lat-accent-deep: var(--rc-signal);
  --lat-on-accent: var(--rc-on-signal);
  --lat-alert: var(--rc-alert);
  --lat-on-alert: var(--rc-on-alert);
  --lat-danger-text: var(--rc-danger);
  --lat-track: var(--rc-rule);
  --lat-dim: var(--rc-slate);
  --lat-pad-x: var(--rc-space-6);
  width: min(600px, 100vw);
  background: var(--rc-paper-raise);
  border-left: 1px solid var(--rc-rule-strong);
  box-shadow: none;
  font-family: var(--rc-font-body);
}
html[data-aim-local] .hall-portal .hall-lat-dim { background: color-mix(in srgb, var(--rc-night) 72%, transparent); }

/* Header: poster title, quiet metadata, square controls. */
html[data-aim-local] .hall-portal .hall-lat-head {
  align-items: center;
  padding: var(--rc-space-4) var(--lat-pad-x);
  box-shadow: inset 0 -1px 0 var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-head h2 {
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-20);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rc-ink);
}
html[data-aim-local] .hall-portal .hall-lat-head p {
  margin-top: var(--rc-space-1);
  font-size: var(--rc-fs-12);
  line-height: var(--rc-lh-body);
  color: var(--rc-slate);
}
html[data-aim-local] .hall-portal .hall-lat-x {
  width: 36px;
  height: 36px;
  color: var(--rc-slate);
  border: 1px solid var(--rc-rule);
  border-radius: var(--rc-r);
  transition: color var(--rc-dur-1) var(--rc-ease-out), border-color var(--rc-dur-1) var(--rc-ease-out);
}
html[data-aim-local] .hall-portal .hall-lat-x:hover { color: var(--rc-ink); border-color: var(--rc-rule-strong); }

/* Buttons share one height, square geometry and the system focus ring. */
html[data-aim-local] .hall-portal :is(.hall-lat-btn-primary, .hall-lat-btn-ghost) {
  height: 36px;
  padding: 0 var(--rc-space-4);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-13);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--rc-r);
  clip-path: none;
  transition: background-color var(--rc-dur-1) var(--rc-ease-out), border-color var(--rc-dur-1) var(--rc-ease-out);
}
html[data-aim-local] .hall-portal .hall-lat-btn-primary { color: var(--rc-on-signal); background: var(--rc-signal); }
html[data-aim-local] .hall-portal .hall-lat-btn-primary:hover { background: var(--rc-signal-hover); }
html[data-aim-local] .hall-portal .hall-lat-btn-ghost { color: var(--rc-ink); background: transparent; border-color: var(--rc-rule-strong); }
html[data-aim-local] .hall-portal .hall-lat-btn-ghost:hover { background: var(--rc-paper-sunk); border-color: var(--rc-ink-soft); }
html[data-aim-local] .hall-portal :is(.hall-lat-btn-primary, .hall-lat-btn-ghost, .hall-lat-x, .hall-lat-link):focus-visible {
  outline: var(--rc-focus-ring);
  outline-offset: 2px;
  box-shadow: none;
}
html[data-aim-local] .hall-portal .hall-lat-link { font-weight: 700; color: var(--rc-signal-text); text-underline-offset: 3px; }

/* Verdict: one severity bar, no gradient wash. */
html[data-aim-local] .hall-portal .hall-lat-verdict {
  gap: var(--rc-space-4);
  padding: var(--rc-space-4) var(--lat-pad-x);
  background: var(--rc-paper);
  box-shadow: inset 4px 0 0 var(--lat-alert), inset 0 -1px 0 var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-verdict.is-mid { background: var(--rc-paper); }
html[data-aim-local] .hall-portal .hall-lat-verdict.is-good { background: var(--rc-paper); box-shadow: inset 4px 0 0 var(--lat-accent), inset 0 -1px 0 var(--rc-rule); }
html[data-aim-local] .hall-portal .hall-lat-big {
  min-width: 1.4ch;
  font-family: var(--rc-font-display);
  font-size: var(--rc-fs-56);
  line-height: var(--rc-lh-tight);
  text-align: center;
  color: var(--lat-alert);
}
html[data-aim-local] .hall-portal .hall-lat-verdict h3 { font-size: var(--rc-fs-17); font-weight: 700; color: var(--rc-ink); }
html[data-aim-local] .hall-portal .hall-lat-verdict p { font-size: var(--rc-fs-13); color: var(--rc-slate); }

/* Running state: big percentage, flat progress track, bordered phases. */
html[data-aim-local] .hall-portal .hall-lat-hero { padding: var(--rc-space-6) var(--lat-pad-x) var(--rc-space-3); }
html[data-aim-local] .hall-portal .hall-lat-pct { font-family: var(--rc-font-display); font-size: var(--rc-fs-72); line-height: var(--rc-lh-tight); }
html[data-aim-local] .hall-portal .hall-lat-hero-meta b { font-family: var(--rc-font-condensed); font-size: var(--rc-fs-20); color: var(--rc-ink); }
html[data-aim-local] .hall-portal .hall-lat-bar { height: 4px; margin: 0 var(--lat-pad-x) var(--rc-space-3); background: var(--rc-paper-sunk); }
html[data-aim-local] .hall-portal .hall-lat-bar i { background: var(--lat-accent); }
html[data-aim-local] .hall-portal .hall-lat-list { padding: var(--rc-space-2) var(--lat-pad-x) var(--rc-space-6); }
html[data-aim-local] .hall-portal .hall-lat-phase {
  padding: var(--rc-space-3) var(--rc-space-4) var(--rc-space-2);
  margin-top: var(--rc-space-2);
  background: var(--rc-paper);
  border: 1px solid var(--rc-rule);
  box-shadow: none;
}
html[data-aim-local] .hall-portal .hall-lat-phase.is-now { border-color: var(--lat-accent); }
html[data-aim-local] .hall-portal .hall-lat-phase h4 { font-family: var(--rc-font-condensed); font-size: var(--rc-fs-13); text-transform: uppercase; }
html[data-aim-local] .hall-portal .hall-lat-row { padding: 6px 0; font-size: var(--rc-fs-13); }
html[data-aim-local] .hall-portal .hall-lat-st { width: 18px; height: 18px; clip-path: none; border-radius: var(--rc-r-small); }
html[data-aim-local] .hall-portal .hall-lat-st.is-bad { color: var(--lat-on-alert); background: var(--lat-alert); }
html[data-aim-local] .hall-portal .hall-lat-st.is-ok { background: color-mix(in srgb, var(--lat-accent) 16%, transparent); }

/* Result list: section labels with a rule, then cards whose status sits above
   the title instead of being glued to the left edge. */
html[data-aim-local] .hall-portal .hall-lat-scroll { padding: 0 0 var(--rc-space-8); scrollbar-color: var(--rc-rule-strong) transparent; }
html[data-aim-local] .hall-portal .hall-lat-grp {
  display: flex;
  gap: var(--rc-space-3);
  align-items: center;
  padding: var(--rc-space-6) var(--lat-pad-x) var(--rc-space-2);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-12);
  text-transform: uppercase;
  color: var(--rc-slate);
}
html[data-aim-local] .hall-portal .hall-lat-grp::after { flex: 1; height: 1px; content: ""; background: var(--rc-rule); }
html[data-aim-local] .hall-portal .hall-lat-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--rc-space-1) var(--rc-space-4);
  padding: var(--rc-space-4) var(--rc-space-4) var(--rc-space-4) var(--rc-space-6);
  margin: var(--rc-space-2) var(--lat-pad-x) 0;
  background: var(--rc-paper);
  border: 1px solid var(--rc-rule);
  box-shadow: inset 3px 0 0 var(--rc-rule-strong);
}
html[data-aim-local] .hall-portal .hall-lat-item.is-bad { box-shadow: inset 3px 0 0 var(--lat-alert); }
html[data-aim-local] .hall-portal :is(.hall-lat-item.is-tip, .hall-lat-item.is-done) { box-shadow: inset 3px 0 0 var(--lat-accent); }
html[data-aim-local] .hall-portal .hall-lat-item > .hall-lat-tag { grid-column: 1; grid-row: 1; justify-self: start; }
html[data-aim-local] .hall-portal .hall-lat-item > h4 { grid-column: 1; grid-row: 2; font-size: var(--rc-fs-15); line-height: var(--rc-lh-title); }
html[data-aim-local] .hall-portal .hall-lat-item > span:not(.hall-lat-tag):empty { display: none; }
html[data-aim-local] .hall-portal .hall-lat-item > :is(span:not(.hall-lat-tag), .hall-lat-act) { grid-column: 2; grid-row: 1 / 4; align-self: center; }
html[data-aim-local] .hall-portal .hall-lat-item > .hall-lat-why { grid-column: 1; grid-row: 3; margin-top: var(--rc-space-1); color: var(--rc-slate); }
html[data-aim-local] .hall-portal .hall-lat-item > :is(.hall-lat-steps, .hall-lat-retest) { grid-column: 1 / -1; }
html[data-aim-local] .hall-portal .hall-lat-steps { padding-top: var(--rc-space-3); margin-top: var(--rc-space-3); box-shadow: inset 0 1px 0 var(--rc-rule); }
html[data-aim-local] .hall-portal .hall-lat-steps-actions { gap: var(--rc-space-2) var(--rc-space-3); color: var(--rc-slate); }
html[data-aim-local] .hall-portal .hall-lat-tag {
  height: 20px;
  padding: 0 var(--rc-space-2);
  margin-bottom: var(--rc-space-1);
  font-family: var(--rc-font-condensed);
  font-size: var(--rc-fs-11);
  text-transform: uppercase;
  clip-path: none;
  border-radius: var(--rc-r-small);
}
html[data-aim-local] .hall-portal .hall-lat-tag.is-bad { color: var(--lat-on-alert); background: var(--lat-alert); }
html[data-aim-local] .hall-portal :is(.hall-lat-tag.is-tip, .hall-lat-tag.is-done) { color: var(--rc-signal-text); background: transparent; box-shadow: inset 0 0 0 1px var(--lat-accent); }
html[data-aim-local] .hall-portal .hall-lat-tag.is-pending { color: var(--rc-slate); box-shadow: inset 0 0 0 1px var(--rc-rule-strong); }
html[data-aim-local] .hall-portal .hall-lat-n { clip-path: none; border-radius: var(--rc-r-small); color: var(--rc-on-signal); background: var(--rc-signal); }
html[data-aim-local] .hall-portal :is(.hall-lat-howto kbd, .hall-lat-howto code, .hall-lat-path b) { border-radius: var(--rc-r-small); box-shadow: inset 0 0 0 1px var(--rc-rule); }

/* Passed checks: a compact two-column ledger instead of a chip cloud. */
html[data-aim-local] .hall-portal .hall-lat-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--rc-space-4);
  margin: 0 var(--lat-pad-x);
}
html[data-aim-local] .hall-portal .hall-lat-chips li {
  height: auto;
  min-height: 32px;
  padding: var(--rc-space-1) 0;
  font-size: var(--rc-fs-13);
  color: var(--rc-ink-soft);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-chips .hall-icon { flex: none; color: var(--lat-accent); }
html[data-aim-local] .hall-portal .hall-lat-self { display: grid; gap: var(--rc-space-2); margin: 0 var(--lat-pad-x); line-height: var(--rc-lh-body); }
html[data-aim-local] .hall-portal .hall-lat-self li { display: grid; grid-template-columns: 6px 1fr; gap: var(--rc-space-3); align-items: baseline; }
html[data-aim-local] .hall-portal .hall-lat-self li::before { width: 6px; height: 6px; margin: 0; background: var(--rc-slate); box-shadow: none; transform: translateY(-2px); }
html[data-aim-local] .hall-portal .hall-lat-net {
  padding: var(--rc-space-3) var(--rc-space-4);
  margin: var(--rc-space-6) var(--lat-pad-x) 0;
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
  color: var(--rc-slate);
  background: var(--rc-paper);
  box-shadow: inset 0 0 0 1px var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-privacy { margin: var(--rc-space-3) var(--lat-pad-x) 0; color: var(--rc-slate); }

/* Local results view (latency-results.mjs). design-performance.css flattens items
   to padding-less rows while the severity bar above survives, so text touched the
   bar; the view also uses ok-list/manual instead of the captured chips/self lists.
   The list already carries --lat-pad-x, so children add no second inline inset. */
html[data-aim-local] .hall-portal .hall-lat-verdict .hall-lat-big { color: var(--lat-alert); }
html[data-aim-local] .hall-portal .hall-lat-verdict:is(.is-tip, .is-good) {
  background: var(--rc-paper);
  box-shadow: inset 4px 0 0 var(--lat-accent), inset 0 -1px 0 var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-verdict:is(.is-tip, .is-good) .hall-lat-big {
  display: block;
  inline-size: auto;
  block-size: auto;
  border-radius: 0;
  background: transparent;
  color: var(--rc-signal-text);
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-item {
  padding: var(--rc-space-4) var(--rc-space-4) var(--rc-space-4) var(--rc-space-6);
  margin: var(--rc-space-2) 0 0;
  border: 1px solid var(--rc-rule);
  background: var(--rc-paper);
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-item.is-tip > .hall-lat-tag.is-tip {
  display: inline-grid;
  padding-inline: var(--rc-space-2);
  box-shadow: inset 0 0 0 1px var(--lat-accent);
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-tag.is-tip::before { content: none; }
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-ok-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--rc-space-4);
  padding: 0;
  margin: var(--rc-space-6) 0 0;
  list-style: none;
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-ok-list li {
  min-block-size: 32px;
  padding: var(--rc-space-1) 0;
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
  color: var(--rc-ink-soft);
  box-shadow: inset 0 -1px 0 var(--rc-rule);
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-manual {
  display: grid;
  gap: var(--rc-space-2);
  padding: 0;
  margin: var(--rc-space-6) 0 0;
  list-style: none;
  font-size: var(--rc-fs-13);
  line-height: var(--rc-lh-body);
  color: var(--rc-ink-soft);
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-manual li {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: var(--rc-space-3);
  align-items: baseline;
}
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-manual li::before {
  inline-size: 6px;
  block-size: 6px;
  background: var(--rc-slate);
  content: "";
  transform: translateY(-2px);
}
html[data-aim-local] .hall-portal .hall-lat-view :is(.hall-lat-net, .hall-lat-privacy) { margin-inline: 0; }
html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-privacy { font-size: var(--rc-fs-12); line-height: var(--rc-lh-body); }

@media (max-width: 640px) {
  html[data-aim-local] .hall-portal .hall-lat-drawer { --lat-pad-x: var(--rc-space-4); border-left: 0; }
  html[data-aim-local] .hall-portal .hall-lat-head { flex-wrap: wrap; }
  html[data-aim-local] .hall-portal .hall-lat-big { font-size: var(--rc-fs-40); }
  html[data-aim-local] .hall-portal .hall-lat-pct { font-size: var(--rc-fs-56); }
  html[data-aim-local] .hall-portal .hall-lat-items { grid-template-columns: 1fr; }
  html[data-aim-local] .hall-portal .hall-lat-row.is-wide { grid-column: auto; }
  html[data-aim-local] .hall-portal .hall-lat-item { grid-template-columns: minmax(0, 1fr); padding-left: var(--rc-space-4); }
  html[data-aim-local] .hall-portal .hall-lat-item > :is(span:not(.hall-lat-tag), .hall-lat-act) { grid-column: 1; grid-row: 4; justify-self: start; margin-top: var(--rc-space-2); }
  html[data-aim-local] .hall-portal .hall-lat-chips { grid-template-columns: 1fr; }
  html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-item { padding-left: var(--rc-space-4); }
  html[data-aim-local] .hall-portal .hall-lat-view .hall-lat-ok-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-aim-local] .hall-portal :is(.hall-lat-x, .hall-lat-btn-primary, .hall-lat-btn-ghost) { transition: none; }
}

/* The native theme owns the light/dark choice. Scope the palette to the live
   app so the reference lab keeps its original swatches and examples. */
html[data-aim-local] {
  --rc-signal: var(--rc-ocean);
  --rc-signal-hover: var(--rc-ocean-hover);
  --rc-signal-text: var(--rc-ocean-text);
  --rc-ice: var(--rc-ocean-text);
}
html[data-aim-local]:not(:has(.hall-root.hall-light, .al-studio-shell.hall-light, .al-guide.hall-light, .al-rv.hall-light, .al-rp.hall-light)) {
  --rc-paper: var(--rc-night);
  --rc-paper-raise: var(--rc-night-2);
  --rc-paper-sunk: var(--rc-night-3);
  --rc-ink: var(--rc-night-text);
  --rc-ink-soft: var(--rc-night-text-soft);
  --rc-slate: var(--rc-night-muted);
  --rc-rule: var(--rc-night-rule);
  --rc-rule-strong: var(--rc-night-rule-strong);
  --rc-signal-text: var(--rc-night-signal-text);
  --rc-ice: var(--rc-night-ice);
  --rc-selection-fill: var(--rc-night-3);
  --rc-selection-text: var(--rc-night-text);
  --rc-danger: var(--rc-night-danger);
  --rc-ok-text: var(--rc-night-ok-text);
  --rc-warn-text: var(--rc-night-warn-text);
  --rc-color-scheme: dark;
}
html[data-aim-local],
html[data-aim-local] :is(.guest-shell, .hall-root, .hall-portal, .al-guide, .al-rv, .al-rp, .al-cloud-board, .al-studio-shell, .pw-stage) {
  --aim-focus: var(--rc-ice);
  color-scheme: var(--rc-color-scheme) !important;
}

/* Inverted artwork labels retain their own palette in either theme. */
html[data-aim-local] .rc-map-browser .al-wk-feat {
  background: var(--rc-night);
  border-color: var(--rc-rule-strong);
  color: var(--rc-night-text);
}
html[data-aim-local] .rc-map-browser .al-wk-feat h2,
html[data-aim-local] .rc-map-browser .al-wk-feat .al-wk-tchip { color: var(--rc-night-text); }
html[data-aim-local] .rc-map-browser .al-wk-card-no,
html[data-aim-local] .pw-stage .pw-inf-sq {
  background: var(--rc-night-2);
  color: var(--rc-night-text);
}

html[data-aim-local] .rc-map-browser .al-wk-chip.al-wk-on,
html[data-aim-local] .rc-map-browser .al-wk-toggle.is-on,
html[data-aim-local] .rc-site-options button[aria-pressed="true"],
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) button:is(.is-active, .is-on, [aria-pressed="true"]),
html[data-aim-local] .aim-account-panel .aim-account-tabs button.is-active {
  background: var(--rc-selection-fill) !important;
  color: var(--rc-selection-text) !important;
  border-color: var(--rc-signal);
}
/* The selection fill is one step above its track; a hairline ring makes the chosen segment
   read at a glance without spending the accent. */
html[data-aim-local] :is(.hall-segment, .hall-choice-options, .hall-crosshair-tabs, .pw-shelf-tabs) button:is(.is-active, .is-on, [aria-pressed="true"]) {
  box-shadow: inset 0 0 0 1px var(--rc-night-rule-strong) !important;
}
html[data-aim-local] .al-studio-shell .al-tl-zoom button.is-on,
html[data-aim-local] .al-studio-shell .al-tl-rec {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text);
  border-color: var(--rc-rule-strong);
}
/* Unslop typography: Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop */
html[data-aim-local] .al-studio-shell .al-studio-workspace button.pwb-main {
  background: transparent;
  color: var(--rc-ink);
  border: 1px solid var(--rc-rule-strong);
  border-radius: var(--rc-r) !important;
  clip-path: var(--rc-cut-path) !important;
  font: 600 var(--rc-fs-15)/1.2 var(--rc-font-condensed) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none;
}
html[data-aim-local] .aim-account-panel .aim-account-link { color: var(--rc-ice); font-weight: 500; letter-spacing: 0; text-transform: none; }
html[data-aim-local] .aim-account-panel .aim-account-close {
  border-radius: var(--rc-r-small);
  border: 1px solid var(--rc-rule-strong);
  background: transparent;
  color: var(--rc-ink);
}
html[data-aim-local] .aim-account-panel :is(input, select):focus { border-color: var(--rc-ice); }
html[data-aim-local] .hall-topnav .aim-local-actions .aim-account-button {
  background: var(--rc-selection-fill);
  color: var(--rc-selection-text) !important;
  border-color: var(--rc-rule-strong);
}
html[data-aim-local] .aim-local-actions .aim-performance-button::after {
  background: var(--rc-signal);
  color: var(--rc-on-signal);
}
html[data-aim-local] .rc-map-choice[aria-pressed="true"] { border-color: var(--rc-signal); }
html[data-aim-local] :is(input, textarea)::placeholder { color: var(--rc-slate); opacity: 1; }
