/* The design tokens, on `:root`: the look of the 2.0 new admin. Colours are rgb channels, plus `-alpha`
   where translucent, so Tailwind opacity modifiers keep working. */

:root {
  --bx-banner-navy-bg: #141d31;
  --bx-banner-navy-subtitle: #c6cbd6;
  --bx-banner-navy-subtitle-lit: #edf6f2;
  --bx-banner-navy-accent: #bfd7df;
  --bx-banner-navy-star-fill: #bfd7df33;
  --bx-banner-navy-star-stroke: #bfd7df99;
  --bx-banner-navy-star-glow: #9dbfc266;
  --bx-banner-navy-sparkle: #e0eef0;
  --bx-banner-navy-glow: #a7c9cbb3;
  --bx-banner-navy-glow-light: #a7c9cb40;
  --bx-banner-compact-height: 144px;
  --bx-banner-compact-padding: 18px 24px;
  --bx-banner-compact-text-width: 560px;
  --bx-banner-compact-title-gap: 6px;
  --bx-banner-compact-subtitle-gap: 8px;
  --bx-banner-compact-mobile-text-padding: 32px;
  --bx-banner-bulb-mobile-text-padding: 68px;
  --bx-banner-feedback-bg: radial-gradient(
    ellipse at 79% 58%,
    #364d58 0%,
    #1e2c3e 36%,
    #141d31 70%
  );
  --bx-banner-feedback-lit-colors:
    #9dc5b7 0%, #6d9a9a 23%, #42657b 47%, #293f5a 72%, #22344c 100%;
  --bx-banner-bulb-width: 300px;
  --bx-banner-bulb-lit-glow: #e0f0c680;
  --bx-banner-bulb-halo: #c5e1d7;
  --bx-banner-bulb-sage: #a7c9cb;
  --bx-banner-bulb-lit-halo: #e4f1c9;
  --bx-banner-bulb-lit-halo-edge: #cae5c8;
  --bx-banner-bulb-lit-glass: #f3edc9;
  --bx-banner-bulb-lit-glass-middle: #dceac9;
  --bx-banner-bulb-lit-glass-edge: #a6cdbf;
  --bx-banner-bulb-glass: #bedbdc;
  --bx-banner-bulb-glass-middle: #749da9;
  --bx-banner-bulb-glass-edge: #42617b;
  --bx-banner-bulb-base: #bdd3d6;
  --bx-banner-bulb-base-shade: #638492;
  --bx-banner-bulb-rays: #bcdcd8;
  --bx-banner-bulb-outline: #c7dedf;
  --bx-banner-bulb-highlight: #edf8f2;
  --bx-banner-bulb-filament: #f0e9c9;
  --bx-banner-bulb-base-lines: #365268;
  --bx-banner-bulb-cap: #88a7b2;
  --bx-banner-bulb-shadow: #101c2b;

  --bx-color-bg-surface: 255 255 255;
  --bx-color-bg-surface-secondary: 247 247 247;
  --bx-color-bg-surface-hover: 247 247 247;
  --bx-color-bg-surface-selected: 242 242 242;
  --bx-color-bg-surface-active: 235 235 235;
  --bx-color-bg-surface-tertiary: 242 242 242;
  --bx-color-bg-fill-active: 221 221 221;
  --bx-color-bg-fill-strong: 16 16 16;
  --bx-color-bg-fill-strong-hover: 10 10 10;
  --bx-color-bg-track: 242 242 242;
  --bx-color-bg-fill-tertiary: 221 221 221;
  --bx-color-bg-fill-transparent-hover: 0 0 0;
  --bx-color-bg-fill-transparent-hover-alpha: 0.08;
  --bx-color-bg-fill-transparent-selected: 0 0 0;
  --bx-color-bg-fill-transparent-selected-alpha: 0.13;
  --bx-color-bg-fill-transparent-secondary: 0 0 0;
  --bx-color-bg-fill-transparent-secondary-alpha: 0.05;
  --bx-color-bg-icon-button-hover: 0 0 0;
  --bx-color-bg-icon-button-hover-alpha: 0.08;
  --bx-color-bg-icon-button-active: 0 0 0;
  --bx-color-bg-icon-button-active-alpha: 0.13;
  --bx-color-input-bg: 255 255 255;
  --bx-color-input-bg-active: 255 255 255;
  --bx-color-input-bg-disabled: 255 255 255;
  --bx-color-bg-critical-subdued: 255 231 230;
  --bx-color-bg-critical-subdued-hover: 255 208 204;
  --bx-color-bg-critical-subdued-active: 255 179 175;
  --bx-color-bg-info-subdued-hover: 178 233 246;
  --bx-color-bg-info-subdued-active: 149 231 252;
  --bx-color-bg-success-subdued-hover: 204 245 174;
  --bx-color-bg-success-subdued-active: 187 248 143;
  --bx-color-bg-caution-subdued-hover: 255 239 142;
  --bx-color-bg-caution-subdued-active: 255 234 105;
  --bx-color-bg-surface-info: 208 246 255;
  --bx-color-bg-surface-success: 230 253 212;
  --bx-color-bg-surface-caution: 255 245 189;
  --bx-color-bg-surface-critical: 255 231 230;
  --bx-color-bg-surface-warning: 255 245 189;
  --bx-color-bg-fill-info: 91 201 235;
  --bx-color-bg-fill-success: 138 225 86;
  --bx-color-bg-fill-success-strong: 138 225 86;
  --bx-color-bg-fill-caution: 255 221 52;
  --bx-color-bg-fill-warning: 255 138 62;
  --bx-color-bg-fill-critical: 222 0 4;
  --bx-color-bg-fill-critical-hover: 212 0 4;
  --bx-color-bg-fill-critical-active: 184 0 4;
  --bx-color-bg-fill-critical-strong: 222 0 4;
  --bx-color-bg-fill-info-secondary: 125 227 254;
  --bx-color-bg-fill-success-secondary: 170 251 106;
  --bx-color-bg-fill-caution-secondary: 255 227 50;
  --bx-color-bg-fill-warning-secondary: 255 191 128;
  --bx-color-bg-fill-critical-secondary: 255 208 204;
  --bx-color-button-bg: 235 235 235;
  --bx-color-button-bg-hover: 221 221 221;
  --bx-color-button-bg-active: 208 208 208;
  --bx-color-button-bg-disabled: 0 0 0;
  --bx-color-button-bg-disabled-alpha: 0.03;
  --bx-color-button-secondary-bg: 235 235 235;
  --bx-color-button-secondary-bg-hover: 221 221 221;
  --bx-color-button-secondary-bg-active: 208 208 208;
  --bx-color-button-primary-bg-disabled: 0 0 0;
  --bx-color-button-primary-bg-disabled-alpha: 0.13;
  --bx-color-button-critical-bg: 255 231 230;
  --bx-color-button-critical-bg-hover: 255 208 204;
  --bx-color-button-critical-bg-active: 255 179 175;
  --bx-color-button-critical-text: 126 16 12;
  --bx-color-button-critical-text-hover: 77 5 2;
  --bx-color-button-critical-text-active: 54 2 0;
  --bx-color-text: 16 16 16;
  --bx-color-text-secondary: 74 74 74;
  --bx-color-text-brand: 16 16 16;
  --bx-color-text-disabled: 166 166 166;
  --bx-color-text-on-fill: 255 255 255;
  --bx-color-text-inverse-secondary: 208 208 208;
  --bx-color-text-link: 0 72 227;
  --bx-color-text-link-hover: 0 64 202;
  --bx-color-text-link-active: 13 63 170;
  --bx-color-text-critical: 57 0 0;
  --bx-color-text-critical-strong: 57 0 0;
  --bx-color-text-critical-hover: 57 0 0;
  --bx-color-text-critical-active: 54 2 0;
  --bx-color-text-caution: 51 36 0;
  --bx-color-text-caution-strong: 49 33 0;
  --bx-color-text-warning: 59 20 0;
  --bx-color-text-info: 0 45 59;
  --bx-color-text-info-secondary: 1 89 111;
  --bx-color-text-info-strong: 0 44 56;
  --bx-color-text-success: 11 37 0;
  --bx-color-text-success-strong: 15 36 0;
  --bx-color-border: 221 221 221;
  --bx-color-border-secondary: 235 235 235;
  --bx-color-border-strong: 192 192 192;
  --bx-color-border-disabled: 0 0 0;
  --bx-color-border-disabled-alpha: 0.1;
  --bx-color-border-input: 140 140 140;
  --bx-color-border-input-hover: 96 96 96;
  --bx-color-border-focus: 70 128 255;
  --bx-color-border-critical: 255 148 146;
  --bx-color-border-critical-strong: 232 0 4;
  --bx-color-border-caution: 255 239 142;
  --bx-color-border-success: 187 248 143;
  --bx-color-icon: 16 16 16;
  --bx-color-icon-secondary: 96 96 96;
  --bx-color-icon-hover: 10 10 10;
  --bx-color-icon-disabled: 166 166 166;
  --bx-color-icon-emphasis: 0 72 227;
  --bx-color-icon-info: 0 178 231;
  --bx-color-icon-success: 69 207 0;
  --bx-color-icon-caution: 255 213 0;
  --bx-color-icon-warning: 255 109 0;
  --bx-color-icon-critical: 232 0 4;
  --bx-color-icon-critical-strong: 77 5 2;
  --bx-color-ai-icon: 120 82 249;
  --bx-color-ai-text: 82 26 222;
  --bx-color-ai-surface: 237 230 254;
  --bx-color-ai-surface-hover: 218 207 248;

  --bx-gradient-button-primary:
    radial-gradient(50% 50% at 50% 0%, #ffffff33 0%, #ffffff00 100%),
    radial-gradient(
      49.59% 37.11% at 50.41% 101.56%,
      #ffffff26 0%,
      #ffffff00 66.46%
    );

  --bx-shadow-card:
    0 0 0.125rem 0 #0000003d, 0 0.125rem 0.75rem 0 #00000005,
    0 0.25rem 1rem 0 #00000005, 0 0.25rem 3rem 0 #00000005;
  --bx-shadow-popover:
    0 0.125rem 0.125rem -0.0625rem #0000000f,
    0 0.1875rem 0.25rem -0.125rem #0000000f,
    0 0.375rem 0.5rem -0.1875rem #0000000f, 0 0.75rem 1rem -0.25rem #0000000f,
    0 0 0 0.0625rem #00000014;
  --bx-shadow-floating:
    0 0.125rem 0.125rem -0.0625rem #0000000f,
    0 0.1875rem 0.25rem -0.125rem #0000000f,
    0 0.375rem 0.5rem -0.1875rem #0000000f, 0 0.75rem 1rem -0.25rem #0000000f,
    0 0 0 0.0625rem #00000014;
  --bx-shadow-input:
    0 0.125rem 0.1875rem -0.0625rem #0000000a,
    0 0.1875rem 0.25rem -0.09375rem #0000000a, 0 0 0 0.0625rem #00000021;
  --bx-shadow-input-focus:
    0 0.125rem 0.1875rem -0.0625rem #0000000a,
    0 0.1875rem 0.25rem -0.09375rem #0000000a,
    0 0.25rem 0.3125rem -0.125rem #0000000a, 0 0 0 0.0625rem #4680ff,
    0 0 0 0.1875rem #3573f60f, 0 0.25rem 1.25rem 0.125rem #3573f60f,
    inset 0 0 0.5rem 0.0625rem #3573f60d;
  --bx-shadow-input-error:
    0 0 0 0.0625rem #eb0014, 0 0.25rem 0.3125rem -0.125rem #0000000a,
    0 0.1875rem 0.25rem -0.09375rem #0000000a,
    0 0.125rem 0.1875rem -0.0625rem #0000000a,
    inset 0 0 0.5rem 0.0625rem #e03d500d;
  --bx-shadow-input-disabled: 0 0 0 0.0625rem #0000001a;
  --bx-shadow-button: none;
  --bx-shadow-button-primary:
    0 0.0625rem 0.03125rem -0.03125rem #00000021,
    0 0.0625rem 0.125rem -0.03125rem #00000021,
    0 0.25rem 0.375rem -0.125rem #00000021,
    0 0.125rem 0.1875rem -0.09375rem #00000021,
    inset 0 0 0.25rem 0.0625rem #101010, inset 0 0 0.25rem 0.125rem #ffffff1a,
    inset 0 0 0.75rem -0.375rem #ffffffbf;
  --bx-shadow-button-primary-hover: var(--bx-shadow-button-primary);
  --bx-shadow-button-primary-inset:
    0 0.0625rem 0.03125rem -0.03125rem #00000021,
    inset 0 0 0.75rem -0.375rem #ffffffbf, inset 0 0 0.25rem 0.125rem #ffffff1a,
    inset 0 0 0.25rem 0.0625rem #101010;
  --bx-shadow-button-critical:
    0 0.0625rem 0.03125rem -0.03125rem #e5000029,
    0 0.0625rem 0.125rem -0.03125rem #e5000029,
    0 0.25rem 0.375rem -0.125rem #e5000029,
    0 0.125rem 0.1875rem -0.09375rem #ff00001a,
    inset 0 0 0.25rem 0.0625rem #f50000, inset 0 0 0.25rem 0.125rem #ffffff1a,
    inset 0 0 0.75rem -0.375rem #ffffffbf;
  --bx-shadow-button-critical-hover:
    0 0.0625rem 0.03125rem -0.03125rem #e500001f,
    0 0.0625rem 0.125rem -0.03125rem #e500001f,
    0 0.25rem 0.375rem -0.125rem #e500001f,
    0 0.125rem 0.1875rem -0.09375rem #ff00001f,
    inset 0 0 0.25rem 0.0625rem #f50000, inset 0 0 0.25rem 0.125rem #ffffff1a,
    inset 0 0 0.75rem -0.375rem #ffffffbf;
  --bx-shadow-button-critical-inset:
    0 0.0625rem 0.03125rem -0.03125rem #00000021,
    inset 0 0 0.75rem -0.375rem #ffffffbf, inset 0 0 0.25rem 0.125rem #ffffff1a,
    inset 0 0 0.25rem 0.0625rem #e0000b;

  --bx-radius-control: 0.75rem;
  --bx-radius-control-px: 0.75rem;
  --bx-radius-control-inner: 0.5rem;
  --bx-radius-button: 624.9375rem;
  --bx-radius-card: 1.25rem;
  --bx-radius-popover: 1rem;
  --bx-radius-popover-px: 1rem;
  --bx-radius-tooltip: 0.625rem;
  --bx-radius-option: 0.75rem;
  --bx-radius-badge: 0.5rem;
  --bx-radius-checkbox: 0.25rem;
  --bx-radius-checkbox-checked: calc(0.25rem + 0.0625rem);
  --bx-radius-checkbox-checked-px: calc(0.25rem + 0.0625rem);
  --bx-corner-shape: superellipse(1.333);

  --bx-font-family-sans:
    'ShopifyInter', 'Noto Sans Arabic', 'Noto Sans Hebrew', ui-sans-serif,
    system-ui, sans-serif;
  --bx-font-feature-settings:
    'calt' on, 'ss03' on, 'cv09' on, 'cv02' on, 'cv03' on, 'cv04' on;
  --bx-font-weight-regular: 400;
  --bx-font-weight-medium: 500;
  --bx-font-weight-emphasis: 500;
  --bx-font-weight-semibold: 500;
  --bx-font-weight-bold: 600;
  --bx-font-size-body: 0.8125rem;
  --bx-line-height-body: 1.25rem;
  --bx-letter-spacing-body: -0.01em;
  --bx-font-size-small: 0.75rem;
  --bx-line-height-small: 1.125rem;
  /* 12px text in s-badge, s-button and s-table tracks like body text; only field details use -0.005em. */
  --bx-letter-spacing-small: -0.01em;
  --bx-font-size-heading: 0.9375rem;
  --bx-line-height-heading: 1.375rem;
  --bx-letter-spacing-heading: -0.01em;
  /* s-page's page-heading, the same on desktop and phones. */
  --bx-font-size-display: 1.625rem;
  --bx-line-height-display: 2rem;

  --bx-height-field: 1.875rem;
  --bx-height-field-px: 1.875rem;
  --bx-height-button: 1.75rem;
  --bx-height-button-micro: 1.5rem;
  --bx-height-segmented-item: 1.5rem;
  --bx-shadow-segmented-selected: 0 0.0625rem 0.125rem rgb(0 0 0 / 0.18);
  --bx-color-segmented-track: var(--bx-color-bg-surface-tertiary);
  --bx-radius-segmented: 624.9375rem;
  --bx-radius-segmented-item: 624.9375rem;
  --bx-font-size-button-micro: 0.75rem;
  --bx-line-height-button-micro: 1rem;
  --bx-height-field-slim: 1.75rem;
  /* The field value (a text-13 control); the phone block raises it to Safari's 16px no-zoom floor. */
  --bx-font-size-input: 0.8125rem;
  --bx-line-height-input: 1.25rem;
  /* A field with its label inside (phones only): the box and the label. */
  --bx-height-field-labelled: 1.875rem;
  --bx-font-size-field-label-inside: var(--bx-font-size-body);
  --bx-line-height-field-label-inside: var(--bx-line-height-body);
  --bx-size-choice: 0.875rem;
  --bx-space-badge-inline: 0.375rem;
  /* s-page small: a 784px column inside 32px gutters; Page's max width includes its padding. */
  --bx-width-page: 53rem;

  /* Page, Section, Button */
  --bx-space-page-inline: 2rem;
  --bx-letter-spacing-display: -0.02em;
  --bx-color-border-section: 242 242 242;
  --bx-color-button-primary-text-hover: 221 221 221;
  --bx-color-button-primary-text-active: 221 221 221;
  --bx-color-button-spinner: 27 27 27;
  --bx-color-button-spinner-alpha: 1;
  --bx-color-button-group-divider: 0 0 0;
  --bx-color-button-group-divider-alpha: 0.11;
  --bx-gradient-button-critical: var(--bx-gradient-button-primary);
  --bx-shadow-button-inset: none;
  --bx-shadow-button-pressed: none;
  --bx-transform-button-pressed-content: none;

  /* Forms and feedback */
  /* s-text-field: no border, a 3-layer shadow carries the ring; no focus outline, the focus shadow shows it. */
  --bx-border-width-field: 0;
  --bx-outline-width-field-focus: 0;
  --bx-space-field-gap: 0.375rem;
  /* s-text-area has no minimum: its `rows` (2 by default) set the height. */
  --bx-height-textarea-min: 0;
  --bx-space-collapsible-inline: 1rem;
  --bx-color-input-bg-error: 255 255 255;
  --bx-color-input-border-top: 140 140 140;
  --bx-shadow-input-error-focus:
    inset 0 0 0.5rem 0.0625rem #ff2b3a0d, 0 0 0 0.1875rem #ff2b3a24,
    0 0 0 0.0625rem #ff2b3a, 0 0.25rem 0.3125rem -0.125rem #0000000a,
    0 0.1875rem 0.25rem -0.09375rem #0000000a,
    0 0.125rem 0.1875rem -0.0625rem #0000000a;
  --bx-color-details-text-critical: 212 0 4;
  --bx-color-text-widget: 16 16 16;
  /* s-checkbox and s-choice: 14px with a 1px margin unchecked, 16px checked, rings as shadows. */
  --bx-size-choice-checked: 1rem;
  --bx-space-choice-margin: 0.0625rem;
  --bx-border-width-choice: 0;
  --bx-border-width-choice-active: 0;
  --bx-color-choice-bg-hover: 247 247 247;
  --bx-shadow-choice:
    0 0.125rem 0.1875rem -0.0625rem #0000000a,
    0 0.1875rem 0.25rem -0.09375rem #0000000a, 0 0 0 0.0625rem #00000033;
  --bx-shadow-choice-checked:
    0 0.0625rem 0.0625rem -0.03125rem #00000021,
    inset 0 0 0 0.03125rem #00000066,
    inset 0 0.09375rem 0.125rem -0.0625rem #ffffff6b;
  /* The s-color-field swatch: a circle with a faint inner ring. */
  --bx-radius-swatch: 624.9375rem;
  --bx-color-swatch-border: 0 0 0;
  --bx-color-swatch-border-alpha: 0.08;
  --bx-color-swatch-border-inline: 0 0 0;
  --bx-color-swatch-border-inline-alpha: 0.08;
  --bx-shadow-swatch-button: inset 0 0 0 0.0625rem #00000014;
  /* s-badge text; s-banner paragraphs use the same colours. */
  --bx-color-badge-text-info: 1 89 111;
  --bx-color-badge-text-success: 33 75 3;
  --bx-color-badge-text-caution: 87 65 0;
  --bx-color-badge-text-warning: 111 46 1;
  --bx-color-badge-text-critical: 126 16 12;
  --bx-space-badge-block: 0.0625rem;
  --bx-height-progress: 0.375rem;
  --bx-radius-progress: 624.9375rem;
  --bx-color-spinner: 27 27 27;
  --bx-color-tooltip-underline: 192 192 192;
  /* InfoBox follows s-banner: the tone accent icon; its warning tone is the banner's caution. */
  --bx-color-infobox-icon-info: 0 178 231;
  --bx-color-infobox-icon-warning: 255 213 0;
  --bx-space-infobox: 0.75rem;
  /* InputTags chips: s-clickable-chip. */
  --bx-color-tag-bg: 0 0 0;
  --bx-color-tag-bg-alpha: 0.05;
  --bx-color-tag-text: 74 74 74;

  /* Tables, tasks, text, icons */
  /* The table header: a 31px band, 12px on a 19px line (the 2026 admin; s-table's was 30px, 12px/18px). */
  --bx-space-table-header-block: 0.375rem;
  --bx-line-height-table-header: 1.1875rem;
  /* The s-link colours inside a success and warning tone; critical is the s-menu critical item. */
  --bx-color-text-link-success: 33 75 3;
  --bx-color-text-link-caution: 87 59 0;
  --bx-color-text-link-critical: 212 0 4;
  --bx-color-task-check: 16 16 16;
  --bx-color-border-image-hover: 208 208 208;
  --bx-radius-thumbnail: clamp(0.375rem, round(25%, 0.125rem), 0.75rem);
  --bx-shadow-menu:
    0 0.125rem 0.125rem -0.0625rem #0000000f,
    0 0.1875rem 0.25rem -0.125rem #0000000f,
    0 0.375rem 0.5rem -0.1875rem #0000000f, 0 0.75rem 1rem -0.25rem #0000000f;
  --bx-radius-menu: 1rem;

  /* Audit fixes, foundation. s-text-field details track -0.005em. The ring is s-button's (2px, 1px
     off the edge); s-checkbox, s-choice and s-link sit 2px off; s-link's ring has a 4px radius. */
  --bx-letter-spacing-details: -0.005em;
  --bx-font-size-details: 0.75rem;
  --bx-line-height-details: 1.125rem;
  --bx-focus-ring-width: 0.125rem;
  --bx-focus-ring-offset: 0.0625rem;
  --bx-focus-ring-offset-loose: 0.125rem;
  --bx-radius-focus: 0.25rem;

  /* Audit fixes, buttons. s-spinner's track; the s-button spinner (20px) and label (12px/16px, also
     large and tertiary); the tertiary icon-only greys; s-tooltip's 4px 8px padding, one size. */
  --bx-color-spinner-track: 0 0 0;
  --bx-color-spinner-track-alpha: 0.18;
  --bx-size-button-spinner: 1.25rem;
  --bx-font-size-button: 0.75rem;
  --bx-line-height-button: 1rem;
  --bx-color-icon-secondary-hover: 74 74 74;
  --bx-color-icon-secondary-active: 48 48 48;
  --bx-padding-tooltip: 0.25rem 0.5rem;
  --bx-padding-tooltip-slim: 0.25rem 0.5rem;

  /* Audit fixes, tables and layout. Table cells are 8px on every side, with no edge padding and no rule
     above the header; s-page pads 16px above and below
     and keeps its gutters and card corners on narrow screens; s-box is 8px; s-divider stays inside
     the section; s-menu is 4px with 2px gaps, tertiary icons, neutral hovers and an inset focus ring. */
  --bx-space-table-cell-inline: 0.5rem;
  --bx-space-table-cell-block: 0.5rem;
  /* The 2026 admin table (Partner payouts, measured 2026-11-07): the table sits 10px inside the card, its
     header a grey band with 10px outer corners; the footer is 6px over and under its 28px buttons, 2px apart. */
  --bx-space-table-inset: 0.625rem;
  --bx-radius-table-header: 0.625rem;
  --bx-space-table-footer-block: 0.375rem;
  --bx-space-table-pagination-gap: 0.125rem;
  --bx-space-table-edge: 0;
  --bx-border-width-table-rule: 0;
  --bx-space-table-filters-inline: 0.5rem;
  --bx-space-table-wrap: 0;
  --bx-opacity-table-loading: 0.2;
  --bx-space-page-block-start: 1rem;
  --bx-space-page-sized-block-start: 1rem;
  --bx-space-page-block-end: 1rem;
  /* With a unit: Page sizes add it to their width cap in calc(). */
  --bx-space-page-inline-narrow: 2rem;
  --bx-radius-card-narrow: 1.25rem;
  --bx-shadow-card-narrow: var(--bx-shadow-card);
  --bx-radius-card-flat: 0.5rem;
  --bx-space-divider-bleed: 0;
  --bx-space-menu: 0.25rem;
  --bx-space-menu-gap: 0.125rem;
  --bx-space-menu-item-inline: 0.375rem;
  --bx-border-width-menu-item: 0;
  --bx-color-icon-menu: 112 112 112;
  --bx-color-menu-item-hover: 247 247 247;
  --bx-color-menu-item-active: 242 242 242;
  --bx-color-menu-item-critical-hover: 247 247 247;
  --bx-color-menu-item-critical-active: 242 242 242;
  --bx-shadow-menu-item-focus:
    inset 0 0 0 0.0625rem #4680ff, inset 0 0 0.5rem 0.0625rem #4680ff0d,
    inset 0 0.25rem 1.25rem 0.125rem #4680ff0f;
  /* s-menu has no compact or per-row divider; the section heading and divider are the nearest, so the
     heading lines up with the row text and the rows keep their rounded fills inside the menu padding. */
  --bx-padding-menu-heading: 0.625rem 1rem 0.125rem 0.75rem;
  --bx-color-menu-heading: 96 96 96;
  --bx-color-menu-divider: 242 242 242;
  --bx-space-menu-divider: 0.125rem;
  --bx-padding-menu-item-compact: 0.25rem 0.5rem;
  --bx-padding-menu-item-separated: 0.375rem 0.5rem;
  --bx-radius-menu-item-small: 0.5rem;
  /* StatusMenuButton's menu; the screen less 32px on a phone. */
  --bx-size-status-menu: 25rem;
  --bx-size-disclosure: 1rem;
  --bx-space-disclosure-gap: 0.125rem;
  --bx-space-disclosure-hang: -0.375rem;

  /* Audit fixes, text and icons. Subtitle and Title subdued are s-text color=subdued; icon rows are
     s-stack gap small-300 with the icon flush; a link inside text (s-paragraph) keeps the text colour
     and its underline; s-thumbnail draws an 8% black ring over the image edge. */
  --bx-font-size-title-subdued: 0.8125rem;
  --bx-line-height-title-subdued: 1.25rem;
  --bx-font-weight-title-subdued: var(--bx-font-weight-regular);
  --bx-font-weight-subtitle: var(--bx-font-weight-regular);
  --bx-color-subtitle: rgb(var(--bx-color-text-secondary));
  --bx-space-title-icon: 0.375rem;
  --bx-space-text-icon: 0.375rem;
  --bx-space-text-icon-hang: 0;
  --bx-space-add-item-icon: 0.125rem;
  --bx-underline-offset-link: auto;
  --bx-decoration-link-underline-hover: underline;
  --bx-color-link-inline: currentColor;
  --bx-color-link-inline-hover: currentColor;
  --bx-color-link-inline-active: currentColor;
  --bx-color-thumbnail-ring: 0 0 0;
  --bx-color-thumbnail-ring-alpha: 0.08;

  /* Audit fixes, forms. s-text-field affixes sit 12px in with 4px gaps; s-switch is 32px by 16px
     with a 16px by 12px knob; the s-date-picker day is 10px; s-checkbox and s-choice disabled fill
     8% black, s-switch 3%; s-select's up/down icon and s-clickable-chip's remove icon (16px grid). */
  --bx-space-field-affix: 0.25rem;
  --bx-space-field-swatch: -0.125rem;
  --bx-size-toggle-width: 2rem;
  --bx-size-toggle-height: 1rem;
  --bx-size-toggle-knob-width: 1rem;
  --bx-size-toggle-knob-height: 0.75rem;
  --bx-radius-toggle-knob: 624.9375rem;
  --bx-space-toggle-knob-travel: 0.6875rem;
  --bx-size-toggle-slim-width: 2rem;
  --bx-size-toggle-slim-height: 1rem;
  --bx-size-toggle-slim-knob-width: 1rem;
  --bx-size-toggle-slim-knob-height: 0.75rem;
  --bx-space-toggle-slim-knob-travel: 0.6875rem;
  --bx-radius-calendar-day: 0.625rem;
  --bx-color-choice-bg-disabled: 0 0 0;
  --bx-color-choice-bg-disabled-alpha: 0.08;
  --bx-color-toggle-bg-disabled: 0 0 0;
  --bx-color-toggle-bg-disabled-alpha: 0.03;
  --bx-shadow-choice-checked-error:
    0 0.0625rem 0.0625rem -0.03125rem #00000021,
    inset 0 0 0 0.03125rem #0000001a,
    inset 0 0.09375rem 0.125rem -0.0625rem #ffffff6b;
  --bx-line-height-details-tight: 1rem;
  --bx-font-size-calendar-weekday: 0.6875rem;
  --bx-line-height-calendar-weekday: 0.875rem;
  --bx-image-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23707070' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 10.5-3 2.748-3-2.748'/%3E%3Cpath d='m5 5.5 3-2.75 3 2.75'/%3E%3C/svg%3E");
  --bx-mask-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.75 4.75 6.5 6.5'/%3E%3Cpath d='m4.75 11.254 6.5-6.504'/%3E%3C/svg%3E");

  /* The number field's stepper on a fine pointer or a wide screen: two 20px by 11px pills inside a
     30px field with 4px above and below, as the admin's own; the text stops 36px from the edge. */
  --bx-height-field-stepper: var(--bx-height-field);
  --bx-space-field-stepper: 1.5rem;
  --bx-size-stepper-pill-width: 1.25rem;
  --bx-size-stepper-pill-height: 0.6875rem;
  --bx-space-stepper-pill: 0.25rem;
  --bx-size-stepper-button: 2.25rem;
  --bx-space-stepper-button-gap: 0.25rem;
  --bx-space-stepper-inset: 0.25rem;
  --bx-size-stepper-icon: 0.75rem;
  --bx-radius-stepper: var(--bx-radius-control-inner);
  --bx-color-stepper-bg: 0 0 0;
  --bx-color-stepper-bg-alpha: 0.08;
  --bx-color-stepper-bg-hover: 208 208 208;
  --bx-color-stepper-bg-hover-alpha: 1;
  --bx-color-stepper-bg-active: 192 192 192;
  --bx-color-stepper-bg-active-alpha: 1;
  --bx-color-stepper-bg-error-hover: 0 0 0;
  --bx-color-stepper-bg-error-hover-alpha: 0.13;
  --bx-color-stepper-bg-error-active: 0 0 0;
  --bx-color-stepper-bg-error-active-alpha: 0.18;
  --bx-color-stepper-bg-disabled: 0 0 0;
  --bx-color-stepper-bg-disabled-alpha: 0.03;

  /* Choice motion (owner, 2026-09-26). s-checkbox fades its box in 100ms and draws Shopify's stroked
     tick (14px svg, 1.5 stroke, drop shadows) in 150ms; s-choice grows its dot in 100ms and shrinks the
     disc while pressed; s-switch fades the track in 100ms, the knob colour in 150ms and slides the knob
     on a 250ms spring. Only s-checkbox stops for reduced motion. */
  --bx-transition-checkbox:
    background-color 100ms cubic-bezier(0.19, 0.91, 0.38, 1),
    box-shadow 100ms cubic-bezier(0.19, 0.91, 0.38, 1);
  --bx-animation-checkbox-tick: bx-checkbox-tick 150ms linear;
  --bx-image-checkbox-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath transform='translate(2 2)' d='M2.625 6.5L4.31197 8.74929C4.40826 8.87769 4.59887 8.88338 4.70266 8.76097L9.375 3.25'/%3E%3C/svg%3E");
  --bx-size-checkbox-tick-width: 0.875rem;
  --bx-size-checkbox-tick-height: 0.875rem;
  --bx-size-checkbox-tick-image: 100% 100%;
  --bx-color-checkbox-tick-bg: transparent;
  --bx-filter-checkbox-tick: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12))
    drop-shadow(0 0 0 rgba(0, 0, 0, 0.06));
  /* InputCheckboxMinus's bar, the tick of a native :indeterminate box. */
  --bx-image-checkbox-indeterminate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M5 10c0-.414.336-.75.75-.75h8.5c.414 0 .75.336.75.75s-.336.75-.75.75h-8.5c-.414 0-.75-.336-.75-.75Z'/%3E%3C/svg%3E");
  --bx-size-radio-dot: var(--bx-size-choice);
  --bx-size-radio-dot-checked: var(--bx-size-choice-checked);
  --bx-border-width-radio-dot: 0;
  --bx-scale-radio-dot: 0.9375;
  --bx-scale-radio-dot-checked: 0.5;
  --bx-scale-radio-dot-pressed: 0.75;
  --bx-transition-radio-dot:
    opacity 100ms cubic-bezier(0.19, 0.91, 0.38, 1),
    transform 100ms cubic-bezier(0.19, 0.91, 0.38, 1);
  --bx-animation-radio-dot: bx-radio-dot 100ms;
  --bx-border-width-toggle: 0.04125rem;
  --bx-color-toggle-border-active: 96 96 96;
  --bx-transition-toggle:
    background-color 100ms cubic-bezier(0.42, 0, 0.58, 1),
    border-color 100ms cubic-bezier(0.42, 0, 0.58, 1);
  --bx-transition-toggle-knob:
    transform 250ms
      linear(
        0,
        0.006,
        0.025 2.8%,
        0.101 6.1%,
        0.539 18.9%,
        0.721 25.3%,
        0.849 31.5%,
        0.937 38.1%,
        0.993 45.7%,
        1.048 54.5%,
        1.077 64.8%,
        1.067 77.2%,
        1.027 91.1%,
        1
      ),
    background-color 150ms cubic-bezier(0.42, 0, 0.58, 1),
    width 150ms cubic-bezier(0.42, 0, 0.58, 1),
    height 150ms cubic-bezier(0.42, 0, 0.58, 1);

  /* DataTable and TableData as a list under 490px: s-table's list variant. The primary area keeps the
     h2's 1.5x body size at the body line height, so the header line grows with the typography. */
  --bx-space-list-item-block: 0.75rem;
  --bx-space-list-item-inline: 1rem;
  --bx-border-width-list-item: 0.0625rem;
  --bx-space-list-header-gap: 1.5rem;
  --bx-space-list-tight: 0.125rem;
  --bx-space-list-gap: 0.375rem;
  --bx-space-list-block: 0.5rem;
  --bx-font-size-list-heading: calc(var(--bx-font-size-body) * 1.5);
  --bx-font-weight-list-heading: 700;
  --bx-font-weight-list-primary: 600;
  --bx-font-size-list-primary: var(--bx-font-size-body);
  --bx-line-height-list-primary: var(--bx-line-height-body);
  --bx-size-list-action: 1.75rem;
  --bx-font-weight-list-secondary: 500;
  --bx-space-list-select-gap: 0.75rem;
  --bx-space-list-toolbar-block: 0.5rem;

  /* Page layout, opt in: s-page sizes and its aside grid (a 784px container switches to two columns),
     s-section heading outside the card (admin-next), the aside's sections split by a line, and the
     s-clickable settings row. */
  --bx-width-page-small: 49rem;
  --bx-width-page-base: 60.375rem;
  --bx-width-page-aside: 68rem;
  --bx-grid-page-aside: minmax(25rem, 47.5rem) minmax(15rem, 17.5rem);
  --bx-grid-page-aside-stacked: minmax(auto, 47.5rem);
  --bx-space-page-gap: 1rem;
  --bx-space-page-column-gap: 3rem;
  --bx-space-page-stacked-aside: 2rem;
  --bx-space-page-inline-large: 1rem;
  --bx-space-page-inline-large-narrow: 1rem;
  --bx-space-page-aside-gap: 0rem;
  --bx-space-page-aside-block-start: 0.375rem;
  --bx-overflow-page-aside: visible clip;
  --bx-space-page-section-header-start: 1rem;
  --bx-space-page-section-header-start-stacked: 1rem;
  --bx-space-page-section-header-start-first: 1rem;
  --bx-size-page-section-header: 1.75rem;
  --bx-space-page-section-header-end: 0.75rem;
  --bx-space-page-section-inset-narrow: 0rem;
  --bx-font-size-page-section-title: 0.9375rem;
  --bx-line-height-page-section-title: 1.375rem;
  --bx-font-weight-page-section-title: var(--bx-font-weight-medium);
  --bx-letter-spacing-page-section-title: -0.01em;
  --bx-font-size-page-aside-title: 0.8125rem;
  --bx-line-height-page-aside-title: 1.25rem;
  --bx-color-page-aside-title: 96 96 96;
  --bx-space-page-aside-header-end: 0.5rem;
  --bx-space-page-aside-section-end: 1rem;
  --bx-space-page-aside-section-after: 1.0625rem;
  --bx-border-width-page-aside-line: 0.0625rem;
  --bx-space-list-row: 1rem;
  --bx-space-list-row-gap: 1rem;
  --bx-font-weight-list-row-title: var(--bx-font-weight-medium);
}

/* s-number-field on a narrow touch screen: 36px minus and plus buttons, 4px apart and 4px in, in a
   44px field (s-number-field's height without a label inside it); the text stops 88px from the edge. */
/* A page that must not download the web font: setUiSystemFont(true), or the class written by the
   server. The same stack without ShopifyInter, so no font file is asked for. */
:root.bx-font-system {
  --bx-font-family-sans:
    'Noto Sans Arabic', 'Noto Sans Hebrew', ui-sans-serif, system-ui, sans-serif;
}

/* A store still on the legacy admin: the app puts `bx-admin-legacy` on <html>. The page there is grey
   (components.css), and the shapes and colours below are the legacy admin's: corners, button fills
   and edges, the card's edge, text, icon, link, focus, badge and banner colours, flat fields. Element
   sizes and weights stay the one look's; only the space under the page and around a section title
   (the last block of this file) is the legacy admin's. */
:root.bx-admin-legacy {
  --bx-color-bg-page: 241 241 241;
  --bx-space-page-block-end: 4rem;
  --bx-color-bg-track: 227 227 227;
  --bx-color-bg-subdued-on-page: 227 227 227;

  --bx-radius-button: 0.5rem;
  --bx-radius-control: 0.5rem;
  --bx-radius-control-px: 0.5rem;
  --bx-radius-control-inner: 0.25rem;
  --bx-radius-card: 0.75rem;
  --bx-radius-card-narrow: 0.75rem;
  --bx-radius-popover: 0.75rem;
  --bx-radius-popover-px: 0.75rem;
  --bx-radius-option: 0.5rem;
  --bx-radius-menu: 0.5rem;
  --bx-radius-calendar-day: 0.5rem;
  /* The track sits on the grey page, in the grey of every subdued surface there; its corner is the
     item's 8px plus the 2px around it. */
  --bx-color-segmented-track: var(--bx-color-bg-subdued-on-page);
  --bx-radius-segmented: 0.625rem;
  --bx-radius-segmented-item: 0.5rem;

  --bx-color-bg-fill-strong: 48 48 48;
  --bx-color-bg-fill-strong-hover: 26 26 26;
  --bx-color-button-primary-text-hover: 255 255 255;
  --bx-color-button-primary-text-active: 255 255 255;
  --bx-color-button-primary-bg-disabled-alpha: 0.17;
  --bx-gradient-button-primary: linear-gradient(
    180deg,
    rgba(48, 48, 48, 0) 63.53%,
    hsla(0, 0%, 100%, 0.15)
  );
  --bx-shadow-button-primary:
    0 -0.0625rem 0 0.0625rem rgba(0, 0, 0, 0.8) inset,
    0 0 0 0.0625rem #303030 inset,
    0 0.03125rem 0 0.09375rem hsla(0, 0%, 100%, 0.25) inset;
  --bx-shadow-button-primary-hover: var(--bx-shadow-button-primary);
  --bx-shadow-button-primary-inset: 0 0.1875rem 0 0 #000 inset;

  --bx-color-button-bg: 255 255 255;
  --bx-color-button-bg-hover: 250 250 250;
  --bx-color-button-bg-active: 247 247 247;
  --bx-color-button-bg-disabled-alpha: 0.05;
  --bx-color-button-secondary-bg: 227 227 227;
  --bx-color-button-secondary-bg-hover: 212 212 212;
  --bx-color-button-secondary-bg-active: 204 204 204;
  --bx-shadow-button:
    0 -0.0625rem 0 0 #b5b5b5 inset, 0 0 0 0.0625rem rgba(0, 0, 0, 0.1) inset,
    0 0.03125rem 0 0.09375rem #fff inset;
  --bx-shadow-button-inset:
    -0.0625rem 0 0.0625rem 0 rgba(26, 26, 26, 0.122) inset,
    0.0625rem 0 0.0625rem 0 rgba(26, 26, 26, 0.122) inset,
    0 0.125rem 0.0625rem 0 rgba(26, 26, 26, 0.2) inset;
  --bx-shadow-button-pressed:
    0 0.125rem 0.0625rem 0 rgba(26, 26, 26, 0.2) inset,
    0.0625rem 0 0.0625rem 0 rgba(26, 26, 26, 0.12) inset,
    -0.0625rem 0 0.0625rem 0 rgba(26, 26, 26, 0.12) inset;

  --bx-color-bg-fill-critical: 199 10 36;
  --bx-color-bg-fill-critical-hover: 163 10 36;
  --bx-color-bg-fill-critical-active: 142 11 33;
  --bx-color-button-critical-bg: 255 255 255;
  --bx-color-button-critical-bg-hover: 250 250 250;
  --bx-color-button-critical-bg-active: 247 247 247;
  --bx-gradient-button-critical: none;
  --bx-shadow-button-critical:
    0 -0.0625rem 0 0.0625rem rgba(142, 31, 11, 0.8) inset,
    0 0 0 0.0625rem rgba(181, 38, 11, 0.8) inset,
    0 0.03125rem 0 0.09375rem hsla(0, 0%, 100%, 0.349) inset;
  --bx-shadow-button-critical-hover: var(--bx-shadow-button-critical);
  --bx-shadow-button-critical-inset:
    -0.0625rem 0 0.0625rem 0 rgba(0, 0, 0, 0.2) inset,
    0.0625rem 0 0.0625rem 0 rgba(0, 0, 0, 0.2) inset,
    0 0.125rem 0 0 rgba(0, 0, 0, 0.6) inset;

  --bx-shadow-card:
    0 0 0 1px rgba(0, 0, 0, 0.06), 0 0.5px 0.5px 0 rgba(0, 0, 0, 0.04),
    0 1px 1px -0.5px rgba(0, 0, 0, 0.03), 0 2px 2px -1px rgba(0, 0, 0, 0.02),
    0 3px 3px -1.5px rgba(0, 0, 0, 0.02), 0 5px 5px -2.5px rgba(0, 0, 0, 0.03);
  /* A banner clears the card shadow on itself; one on the grey page takes it back from here. */
  --bx-shadow-banner-page: var(--bx-shadow-card);
  /* The legacy banner's title strip and the text on it, per tone. */
  --bx-color-banner-strip-info: 145 208 255;
  --bx-color-banner-strip-text-info: 0 33 51;
  --bx-color-banner-strip-success: 4 123 93;
  --bx-color-banner-strip-text-success: 250 255 251;
  --bx-color-banner-strip-warning: 255 184 0;
  --bx-color-banner-strip-text-warning: 37 26 0;
  --bx-color-banner-strip-critical: 199 10 36;
  --bx-color-banner-strip-text-critical: 255 250 251;

  --bx-color-text: 48 48 48;
  --bx-color-text-secondary: 97 97 97;
  --bx-color-text-brand: 74 74 74;
  --bx-color-text-disabled: 181 181 181;
  --bx-color-icon: 74 74 74;
  --bx-color-icon-secondary: 138 138 138;
  --bx-color-icon-hover: 48 48 48;
  --bx-color-icon-disabled: 204 204 204;
  --bx-color-icon-emphasis: 0 91 211;
  --bx-color-icon-secondary-active: 74 74 74;
  --bx-color-icon-menu: 74 74 74;
  --bx-color-text-link: 0 91 211;
  --bx-color-text-link-hover: 0 66 153;
  --bx-color-text-link-active: 0 46 106;
  --bx-color-link-inline: rgb(var(--bx-color-text-link));
  --bx-color-link-inline-hover: rgb(var(--bx-color-text-link-hover));
  --bx-color-link-inline-active: rgb(var(--bx-color-text-link-active));
  --bx-color-border-focus: 0 91 211;

  /* Badge fills and their text. A banner's second line reads the same text colours. */
  --bx-color-bg-fill-transparent-secondary-alpha: 0.06;
  --bx-color-bg-fill-info-secondary: 213 235 255;
  --bx-color-bg-fill-success-secondary: 175 254 191;
  --bx-color-bg-fill-caution-secondary: 255 235 120;
  --bx-color-bg-fill-warning-secondary: 255 214 164;
  --bx-color-bg-fill-critical-secondary: 254 209 215;
  --bx-color-badge-text-info: 0 58 90;
  --bx-color-badge-text-success: 1 75 64;
  --bx-color-badge-text-caution: 79 71 0;
  --bx-color-badge-text-warning: 94 66 0;
  --bx-color-badge-text-critical: 142 11 33;

  /* Banner fills, their text and icons; inline errors read the same critical colours. */
  --bx-color-bg-surface-info: 234 244 255;
  --bx-color-bg-surface-success: 205 254 212;
  --bx-color-bg-surface-caution: 255 248 219;
  --bx-color-bg-surface-warning: 255 241 227;
  --bx-color-bg-surface-critical: 254 232 235;
  --bx-color-text-info: 0 58 90;
  --bx-color-text-success: 1 75 64;
  --bx-color-text-caution: 79 71 0;
  --bx-color-text-warning: 94 66 0;
  --bx-color-text-critical: 142 11 33;
  --bx-color-icon-info: 0 148 213;
  --bx-color-icon-success: 4 123 93;
  --bx-color-icon-caution: 153 138 0;
  --bx-color-icon-warning: 178 132 0;
  --bx-color-icon-critical: 226 44 56;
  /* The values before Polaris 2.0 stable recoloured its tones; the legacy look did not move. */
  --bx-color-text-critical-strong: 104 0 0;
  --bx-color-text-critical-hover: 77 5 2;
  --bx-color-bg-fill-caution: 255 184 55;
  --bx-color-bg-caution-subdued-hover: 255 228 168;
  --bx-color-bg-caution-subdued-active: 255 224 143;
  --bx-color-border-caution: 255 228 168;
  --bx-color-infobox-icon-info: 0 176 222;
  --bx-color-infobox-icon-warning: 255 172 7;

  /* A field's edge is its shadow, so it takes no room: the legacy 0.66px line, and 2px while focused. */
  --bx-color-input-bg-disabled: 235 235 235;
  --bx-color-input-bg-error: 254 232 235;
  --bx-color-details-text-critical: 142 11 33;
  --bx-shadow-input: 0 0 0 0.04125rem rgb(138 138 138);
  --bx-shadow-input-focus:
    0 0 0 0.0625rem rgb(0 91 211), inset 0 0 0 0.0625rem rgb(0 91 211);
  --bx-shadow-input-error: inset 0 0 0 0.0625rem rgb(142 11 33);
  --bx-shadow-input-error-focus:
    0 0 0 0.0625rem rgb(142 11 33), inset 0 0 0 0.0625rem rgb(142 11 33);
  --bx-shadow-input-disabled: none;
}

@media not ((min-width: 48rem) or (pointer: fine)) {
  :root {
    --bx-height-field-stepper: 2.75rem;
    --bx-space-field-stepper: 4.75rem;
    --bx-size-stepper-icon: 1rem;
    --bx-radius-stepper: 0.625rem;
  }
}

/* Polaris's phone sizes (its `--p-when-mobile`: a touch pointer under 48rem). They add to
   the narrow-touch block above. Body text loses its tracking; field details keep 12px on a 20px line. */
@media (pointer: coarse) and (max-width: 47.9975em) {
  :root {
    /* s-page's side padding on a phone ("base"; "large-300" on a desktop). */
    --bx-space-page-inline: 1rem;
    --bx-space-page-inline-narrow: 1rem;
    --bx-font-size-body: 0.9375rem;
    --bx-line-height-body: 1.375rem;
    /* An item's name in a list is a step above the body text, as in the Shopify mobile app's own lists:
       under rows of numbers a body-sized name did not read as the item's title. */
    --bx-font-size-list-primary: 1.0625rem;
    --bx-line-height-list-primary: 1.5rem;
    --bx-size-list-action: var(--bx-height-button);
    --bx-letter-spacing-body: 0;
    --bx-font-size-small: 0.8125rem;
    --bx-line-height-small: 1.25rem;
    --bx-font-size-title-subdued: 0.9375rem;
    --bx-line-height-title-subdued: 1.375rem;
    --bx-font-size-button: 0.9375rem;
    --bx-line-height-button: 1.375rem;
    --bx-height-segmented-item: 2.5rem;
    --bx-font-size-details: 0.75rem;
    --bx-line-height-details: 1.25rem;
    --bx-height-field: 2.75rem;
    --bx-height-field-px: 2.75rem;
    --bx-height-button: 2.75rem;
    /* ButtonSize.Micro: a compact touch size, as Polaris has no micro button. */
    --bx-height-button-micro: 2.25rem;
    --bx-font-size-button-micro: 0.8125rem;
    --bx-line-height-button-micro: 1.25rem;
    --bx-height-field-slim: 2.25rem;
    --bx-font-size-input: 1rem;
    --bx-line-height-input: 1.375rem;
    /* s-text-field with a visible label: a 62px box, the label 12px/16px inside it above the value. */
    --bx-height-field-labelled: 3.875rem;
    --bx-font-size-field-label-inside: 0.75rem;
    --bx-line-height-field-label-inside: 1rem;
    /* The s-date-picker weekdays. */
    --bx-font-size-calendar-weekday: 0.75rem;
    --bx-line-height-calendar-weekday: 1rem;
    --bx-radius-control: 1rem;
    --bx-radius-control-px: 1rem;
    --bx-radius-control-inner: 0.625rem;
    --bx-shadow-input-focus: inset 0 0 0 0.125rem #4680ff;
    --bx-shadow-input-disabled: inset 0 0 0 0.125rem #d0d0d0;
    /* s-checkbox and s-choice are 20px checked or not, so the checked corner no longer grows. */
    --bx-size-choice: 1.25rem;
    --bx-size-choice-checked: 1.25rem;
    --bx-space-choice-margin: 0;
    --bx-radius-checkbox-checked: 0.25rem;
    --bx-radius-checkbox-checked-px: 0.25rem;
    --bx-size-checkbox-tick-width: 1.25rem;
    --bx-size-checkbox-tick-height: 1.25rem;
    /* s-switch: 36px by 20px with a 1px border and a 20px by 16px knob; one size, slim included. */
    --bx-size-toggle-width: 2.25rem;
    --bx-size-toggle-height: 1.25rem;
    --bx-size-toggle-knob-width: 1.25rem;
    --bx-size-toggle-knob-height: 1rem;
    --bx-space-toggle-knob-travel: 0.625rem;
    --bx-size-toggle-slim-width: 2.25rem;
    --bx-size-toggle-slim-height: 1.25rem;
    --bx-size-toggle-slim-knob-width: 1.25rem;
    --bx-size-toggle-slim-knob-height: 1rem;
    --bx-space-toggle-slim-knob-travel: 0.625rem;
    --bx-border-width-toggle: 0.0625rem;
    /* s-badge is 24px around a 20px line. */
    --bx-space-badge-block: 0.125rem;
    /* s-section's heading row and titles; the aside's title is the body size. */
    --bx-space-page-section-header-start: 0.75rem;
    --bx-space-page-section-header-start-stacked: 0.75rem;
    --bx-space-page-section-header-start-first: 0.75rem;
    --bx-size-page-section-header: 2.125rem;
    --bx-font-size-page-section-title: 1.0625rem;
    --bx-line-height-page-section-title: 1.5rem;
    --bx-font-size-page-aside-title: 0.9375rem;
    --bx-line-height-page-aside-title: 1.375rem;
    --bx-space-page-section-header-end: 0.625rem;
    --bx-size-status-menu: calc(100vw - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --bx-transition-checkbox: none;
    --bx-animation-checkbox-tick: none;
  }
}

/* Forced colors (Windows high contrast) drop box-shadow, which draws the field and choice edges and the
   field focus ring, so those fall back to borders and an outline. */
@media (forced-colors: active) {
  :root {
    --bx-border-width-field: 0.04125rem;
    --bx-outline-width-field-focus: 2px;
    --bx-border-width-choice: 1px;
    --bx-border-width-choice-active: 2px;
  }
}

/* The legacy admin's tighter sections: a section's title row sits the page's own 16px gap under the
   card above it and 8px over its own card, measured from the row, so a button in it is 8px off the
   card too. Two columns of a page sit 16px apart, as two cards do. Last in the file, so it also wins
   over the compact and the phone values above. */
:root.bx-admin-legacy {
  --bx-space-page-column-gap: 1rem;
  --bx-space-page-section-header-start: 0rem;
  --bx-space-page-section-header-start-stacked: 0rem;
  --bx-space-page-section-header-start-first: 0rem;
  --bx-space-page-section-header-end: 0.5rem;
}
