/*
 * Mobile City portable foundations, v1.0.0 — 2026-11-26.
 * Local assets only; no font, icon, image or script downloads.
 * Custom extracted palettes + normalized recommended profile.
 * Source profiles are NOT pixel-perfect original applications or accessibility certification.
 * Set both attributes together: data-profile="unified|marzha|fbs" data-theme="light|dark".
 * Geometric provenance and compatibility defaults are documented in design-tokens.json.
 */
:root,
[data-profile="unified"][data-theme="light"] {
  color-scheme: light;
  --ds-bg: #F5F7FA;
  --ds-surface: #FFFFFF;
  --ds-surface-soft: #F7F9FC;
  --ds-surface-hover: #EDF2FF;
  --ds-text: #17212B;
  --ds-text-muted: #616D7A;
  --ds-border: #E6EAF0;
  --ds-input-border: #7C8798;
  --ds-accent: #315CF5;
  --ds-accent-soft: #EDF2FF;
  --ds-action: #315CF5;
  --ds-action-hover: #244DE0;
  --ds-action-text: #FFFFFF;
  --ds-brand-orange: #EF7E1B;
  --ds-success: #13795B;
  --ds-success-soft: #EDF8F3;
  --ds-warning: #A25F07;
  --ds-warning-soft: #FFF5E5;
  --ds-danger: #BE3948;
  --ds-danger-soft: #FFF0F1;
  --ds-info: #315CF5;
  --ds-info-soft: #EDF2FF;
  --ds-neutral: #616D7A;
  --ds-neutral-soft: #F7F9FC;
  --ds-focus: #315CF5;
  --ds-action-hover-filter: none;
  --ds-shadow: 0 8px 28px #20396012;
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 8px;
  --ds-radius-panel: 12px;
  --ds-radius-dialog: 16px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.5;
  --ds-body-weight: 400;
  --ds-h1-size: 28px;
  --ds-h1-line-height: 1.2;
  --ds-h1-weight: 650;
  --ds-h2-size: 18px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 600;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 20px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 40px;
  --ds-control-height-compact: 36px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 56px;
  --ds-row-height-compact: 44px;
  --ds-sidebar-width: 240px;
  --ds-sidebar-collapsed: 72px;
  --ds-header-height: 64px;
  --ds-content-max: 1600px;
  --ds-content-padding: 24px;
  --ds-content-padding-mobile: 16px;
  --ds-drawer-width: 520px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 2px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

[data-profile="unified"][data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #111721;
  --ds-surface: #192230;
  --ds-surface-soft: #202B3A;
  --ds-surface-hover: #26364E;
  --ds-text: #E8EDF5;
  --ds-text-muted: #A3B1C3;
  --ds-border: #324055;
  --ds-input-border: #7E8CA0;
  --ds-accent: #91ADFF;
  --ds-accent-soft: #23365A;
  --ds-action: #416AED;
  --ds-action-hover: #456CE5;
  --ds-action-text: #FFFFFF;
  --ds-brand-orange: #EF7E1B;
  --ds-success: #75D9B2;
  --ds-success-soft: #193B33;
  --ds-warning: #F0BE75;
  --ds-warning-soft: #3C3020;
  --ds-danger: #FF98A5;
  --ds-danger-soft: #402733;
  --ds-info: #91ADFF;
  --ds-info-soft: #23365A;
  --ds-neutral: #A3B1C3;
  --ds-neutral-soft: #202B3A;
  --ds-focus: #91ADFF;
  --ds-action-hover-filter: none;
  --ds-shadow: 0 8px 28px #00000033;
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 8px;
  --ds-radius-panel: 12px;
  --ds-radius-dialog: 16px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.5;
  --ds-body-weight: 400;
  --ds-h1-size: 28px;
  --ds-h1-line-height: 1.2;
  --ds-h1-weight: 650;
  --ds-h2-size: 18px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 600;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 20px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 40px;
  --ds-control-height-compact: 36px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 56px;
  --ds-row-height-compact: 44px;
  --ds-sidebar-width: 240px;
  --ds-sidebar-collapsed: 72px;
  --ds-header-height: 64px;
  --ds-content-max: 1600px;
  --ds-content-padding: 24px;
  --ds-content-padding-mobile: 16px;
  --ds-drawer-width: 520px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 2px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

[data-profile="marzha"][data-theme="light"] {
  color-scheme: light;
  --ds-bg: #F5F7FA;
  --ds-surface: #FFFFFF;
  --ds-surface-soft: #F7F9FC;
  --ds-surface-hover: #EDF2FF;
  --ds-text: #17212B;
  --ds-text-muted: #65717E;
  --ds-border: #E6EAF0;
  --ds-input-border: #DFE6EF;
  --ds-accent: #315CF5;
  --ds-accent-soft: #EDF2FF;
  --ds-action: #315CF5;
  --ds-action-hover: #244DE0;
  --ds-action-text: #FFFFFF;
  --ds-brand-orange: transparent;
  --ds-success: #13795B;
  --ds-success-soft: #EDF8F3;
  --ds-warning: #A25F07;
  --ds-warning-soft: #FFF5E5;
  --ds-danger: #BE3948;
  --ds-danger-soft: #FFF0F1;
  --ds-info: #315CF5;
  --ds-info-soft: #EDF2FF;
  --ds-neutral: #65717E;
  --ds-neutral-soft: #F7F9FC;
  --ds-focus: #98AFFF;
  --ds-action-hover-filter: none;
  --ds-shadow: 0 14px 44px #20396016;
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 7px;
  --ds-radius-panel: 10px;
  --ds-radius-dialog: 12px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.45;
  --ds-body-weight: 400;
  --ds-h1-size: 28px;
  --ds-h1-line-height: 1.22;
  --ds-h1-weight: 650;
  --ds-h2-size: 19px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 650;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 20px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 36px;
  --ds-control-height-compact: 32px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 62px;
  --ds-row-height-compact: 45px;
  --ds-sidebar-width: 210px;
  --ds-sidebar-collapsed: 72px;
  --ds-header-height: 64px;
  --ds-content-max: 1600px;
  --ds-content-padding: 24px;
  --ds-content-padding-mobile: 16px;
  --ds-drawer-width: 510px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 3px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

[data-profile="marzha"][data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #111721;
  --ds-surface: #192230;
  --ds-surface-soft: #202B3A;
  --ds-surface-hover: #26364E;
  --ds-text: #E8EDF5;
  --ds-text-muted: #A3B1C3;
  --ds-border: #324055;
  --ds-input-border: #324055;
  --ds-accent: #91ADFF;
  --ds-accent-soft: #23365A;
  --ds-action: #416AED;
  --ds-action-hover: #5078F3;
  --ds-action-text: #FFFFFF;
  --ds-brand-orange: transparent;
  --ds-success: #75D9B2;
  --ds-success-soft: #193B33;
  --ds-warning: #F0BE75;
  --ds-warning-soft: #3C3020;
  --ds-danger: #FF98A5;
  --ds-danger-soft: #402733;
  --ds-info: #91ADFF;
  --ds-info-soft: #23365A;
  --ds-neutral: #A3B1C3;
  --ds-neutral-soft: #202B3A;
  --ds-focus: #98AFFF;
  --ds-action-hover-filter: none;
  --ds-shadow: 0 14px 44px #00000055;
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 7px;
  --ds-radius-panel: 10px;
  --ds-radius-dialog: 12px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.45;
  --ds-body-weight: 400;
  --ds-h1-size: 28px;
  --ds-h1-line-height: 1.22;
  --ds-h1-weight: 650;
  --ds-h2-size: 19px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 650;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 20px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 36px;
  --ds-control-height-compact: 32px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 62px;
  --ds-row-height-compact: 45px;
  --ds-sidebar-width: 210px;
  --ds-sidebar-collapsed: 72px;
  --ds-header-height: 64px;
  --ds-content-max: 1600px;
  --ds-content-padding: 24px;
  --ds-content-padding-mobile: 16px;
  --ds-drawer-width: 510px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 3px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

[data-profile="fbs"][data-theme="light"] {
  color-scheme: light;
  --ds-bg: #F5F7FA;
  --ds-surface: #FFFFFF;
  --ds-surface-soft: #F0F3F7;
  --ds-surface-hover: #F0F3F7;
  --ds-text: #202938;
  --ds-text-muted: #5E6B7D;
  --ds-border: #D9E1EB;
  --ds-input-border: #D9E1EB;
  --ds-accent: #285FB4;
  --ds-accent-soft: #EEF3FC;
  --ds-action: #285FB4;
  --ds-action-hover: #285FB4;
  --ds-action-text: #FFFFFF;
  --ds-brand-orange: #EF7E1B;
  --ds-success: #176847;
  --ds-success-soft: #E8F8F0;
  --ds-warning: #805317;
  --ds-warning-soft: #FFF3E2;
  --ds-danger: #923745;
  --ds-danger-soft: #FFF0F1;
  --ds-info: #3266AF;
  --ds-info-soft: #EEF4FF;
  --ds-neutral: #57687B;
  --ds-neutral-soft: #F2F4F8;
  --ds-focus: #508FD9;
  --ds-action-hover-filter: brightness(.94);
  --ds-shadow: 0 2px 15px #18375C06;
  --ds-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 9px;
  --ds-radius-panel: 15px;
  --ds-radius-dialog: 18px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.45;
  --ds-body-weight: 400;
  --ds-h1-size: 27px;
  --ds-h1-line-height: 1.2;
  --ds-h1-weight: 700;
  --ds-h2-size: 16px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 700;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 19px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 40px;
  --ds-control-height-compact: 36px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 56px;
  --ds-row-height-compact: 44px;
  --ds-sidebar-width: 242px;
  --ds-sidebar-collapsed: 70px;
  --ds-header-height: 69px;
  --ds-content-max: 1500px;
  --ds-content-padding: 38px;
  --ds-content-padding-mobile: 15px;
  --ds-drawer-width: 560px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 3px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

[data-profile="fbs"][data-theme="dark"] {
  color-scheme: dark;
  --ds-bg: #10151E;
  --ds-surface: #19212E;
  --ds-surface-soft: #222D3D;
  --ds-surface-hover: #222D3D;
  --ds-text: #EEF2F7;
  --ds-text-muted: #AAB6C7;
  --ds-border: #354357;
  --ds-input-border: #354357;
  --ds-accent: #86B4FF;
  --ds-accent-soft: #1E3658;
  --ds-action: #86B4FF;
  --ds-action-hover: #86B4FF;
  --ds-action-text: #10151E;
  --ds-brand-orange: #EF7E1B;
  --ds-success: #84D8AC;
  --ds-success-soft: #143D2F;
  --ds-warning: #F4C88E;
  --ds-warning-soft: #45321B;
  --ds-danger: #FFB0BC;
  --ds-danger-soft: #462830;
  --ds-info: #A6C9FF;
  --ds-info-soft: #1E3658;
  --ds-neutral: #C1CCDA;
  --ds-neutral-soft: #2B3749;
  --ds-focus: #508FD9;
  --ds-action-hover-filter: brightness(.94);
  --ds-shadow: none;
  --ds-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-space-9: 48px;
  --ds-radius-control: 9px;
  --ds-radius-panel: 15px;
  --ds-radius-dialog: 18px;
  --ds-radius-pill: 999px;
  --ds-body-size: 14px;
  --ds-body-line-height: 1.45;
  --ds-body-weight: 400;
  --ds-h1-size: 27px;
  --ds-h1-line-height: 1.2;
  --ds-h1-weight: 700;
  --ds-h2-size: 16px;
  --ds-h2-line-height: 1.3;
  --ds-h2-weight: 700;
  --ds-label-size: 13px;
  --ds-label-line-height: 1.4;
  --ds-label-weight: 600;
  --ds-caption-size: 12px;
  --ds-caption-line-height: 1.5;
  --ds-caption-weight: 400;
  --ds-scanner-size: 19px;
  --ds-scanner-line-height: 1.4;
  --ds-scanner-weight: 500;
  --ds-control-height: 40px;
  --ds-control-height-compact: 36px;
  --ds-control-height-touch: 48px;
  --ds-row-height: 56px;
  --ds-row-height-compact: 44px;
  --ds-sidebar-width: 242px;
  --ds-sidebar-collapsed: 70px;
  --ds-header-height: 69px;
  --ds-content-max: 1500px;
  --ds-content-padding: 38px;
  --ds-content-padding-mobile: 15px;
  --ds-drawer-width: 560px;
  --ds-product-ratio: 3 / 4;
  --ds-product-fit: contain;
  --ds-media-background: #FFFFFF;
  --ds-focus-width: 3px;
  --ds-focus-offset: 3px;
  --ds-motion-fast: 120ms;
  --ds-motion-normal: 180ms;
}

/* Common primitives: intentionally scoped to ds-* classes. */
.ds-page, .ds-page *, .ds-page *::before, .ds-page *::after { box-sizing: border-box; }
.ds-page {
  margin: 0; min-width: 0; background: var(--ds-bg); color: var(--ds-text);
  font-family: var(--ds-font); font-size: var(--ds-body-size);
  font-weight: var(--ds-body-weight); line-height: var(--ds-body-line-height);
  font-synthesis: none;
}
.ds-content { width: 100%; max-width: var(--ds-content-max); margin-inline: auto; padding: var(--ds-content-padding); }
.ds-heading { margin: 0; font-size: var(--ds-h1-size); line-height: var(--ds-h1-line-height); font-weight: var(--ds-h1-weight); letter-spacing: -.025em; overflow-wrap: anywhere; }
.ds-section-title { margin: 0; font-size: var(--ds-h2-size); line-height: var(--ds-h2-line-height); font-weight: var(--ds-h2-weight); letter-spacing: -.015em; overflow-wrap: anywhere; }
.ds-muted, .ds-help { color: var(--ds-text-muted); }
.ds-label { display: block; margin-block-end: var(--ds-space-2); font-size: var(--ds-label-size); font-weight: var(--ds-label-weight); line-height: var(--ds-label-line-height); }
.ds-help { display: block; margin-block: var(--ds-space-1) 0; font-size: var(--ds-caption-size); line-height: var(--ds-caption-line-height); }
.ds-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-card { min-width: 0; padding: var(--ds-space-5); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-panel); background: var(--ds-surface); color: var(--ds-text); }
.ds-card--elevated { box-shadow: var(--ds-shadow); }
.ds-stack { display: flex; flex-direction: column; gap: var(--ds-space-4); min-width: 0; }
.ds-cluster { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-3); min-width: 0; }
.ds-button, .ds-input { box-sizing: border-box; font: inherit; font-size: var(--ds-label-size); border-radius: var(--ds-radius-control); }
.ds-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2);
  min-height: var(--ds-control-height); min-width: var(--ds-control-height); padding: var(--ds-space-2) var(--ds-space-4);
  border: 1px solid var(--ds-input-border); background: var(--ds-surface); color: var(--ds-text);
  font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--ds-motion-fast), border-color var(--ds-motion-fast);
}
.ds-button:hover { background: var(--ds-surface-hover); }
.ds-button--primary { background: var(--ds-action); color: var(--ds-action-text); border-color: var(--ds-action); }
.ds-button--primary:hover { background: var(--ds-action-hover); border-color: var(--ds-action-hover); color: var(--ds-action-text); filter: var(--ds-action-hover-filter); }
.ds-button--danger { background: var(--ds-danger-soft); color: var(--ds-danger); border-color: var(--ds-danger); }
.ds-button--danger:hover { background: var(--ds-danger-soft); color: var(--ds-danger); }
.ds-button--compact { min-height: var(--ds-control-height-compact); min-width: var(--ds-control-height-compact); padding: var(--ds-space-1) var(--ds-space-3); }
.ds-button--touch { min-height: var(--ds-control-height-touch); min-width: var(--ds-control-height-touch); }
.ds-button:disabled, .ds-input:disabled { cursor: not-allowed; opacity: .55; }
.ds-button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
/* aria-disabled styles do not suppress an action. Behavior must enforce it. */
.ds-link { color: var(--ds-accent); text-decoration: underline; text-underline-offset: 3px; }
.ds-input { display: block; width: 100%; min-width: 0; min-height: var(--ds-control-height); padding: var(--ds-space-2) var(--ds-space-3); border: 1px solid var(--ds-input-border); background: var(--ds-surface); color: var(--ds-text); line-height: 1.4; }
.ds-input::placeholder { color: var(--ds-text-muted); opacity: 1; }
.ds-input[aria-invalid="true"] { border-color: var(--ds-danger); background: var(--ds-danger-soft); }
textarea.ds-input { min-height: 112px; resize: vertical; }
.ds-scanner { font-family: var(--ds-font-mono); font-size: var(--ds-scanner-size); line-height: var(--ds-scanner-line-height); font-weight: var(--ds-scanner-weight); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ds-button:focus-visible, .ds-input:focus-visible, .ds-link:focus-visible,
.ds-page summary:focus-visible, .ds-focusable:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-focus); outline-offset: var(--ds-focus-offset);
}
.ds-table-wrap { max-width: 100%; min-width: 0; overflow: auto; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-panel); background: var(--ds-surface); scrollbar-width: thin; }
.ds-table { width: 100%; border-spacing: 0; border-collapse: separate; font-size: var(--ds-label-size); text-align: left; color: var(--ds-text); }
.ds-table th { padding: var(--ds-space-3) var(--ds-space-4); background: var(--ds-surface-soft); color: var(--ds-text-muted); font-size: var(--ds-caption-size); font-weight: 600; text-align: left; }
.ds-table td { min-width: 0; height: var(--ds-row-height); padding: var(--ds-space-2) var(--ds-space-4); background: var(--ds-surface); border-block-start: 1px solid var(--ds-border); vertical-align: middle; }
.ds-table th.ds-number, .ds-table td.ds-number { text-align: right; }
.ds-table tbody tr:hover td { background: var(--ds-surface-hover); }
.ds-table tbody tr[aria-selected="true"] td { background: var(--ds-accent-soft); }
.ds-table--compact td { height: var(--ds-row-height-compact); padding-block: var(--ds-space-1); }
.ds-table--sticky-head th { position: sticky; inset-block-start: 0; z-index: 2; }
.ds-table--sticky-first th:first-child, .ds-table--sticky-first td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; border-inline-end: 1px solid var(--ds-border); }
.ds-table--sticky-head.ds-table--sticky-first th:first-child { z-index: 3; }
.ds-badge { display: inline-flex; align-items: center; gap: var(--ds-space-1); max-width: 100%; padding: var(--ds-space-1) var(--ds-space-2); border-radius: var(--ds-radius-pill); background: var(--ds-neutral-soft); color: var(--ds-neutral); font-size: var(--ds-caption-size); line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.ds-badge--success { color: var(--ds-success); background: var(--ds-success-soft); }
.ds-badge--warning { color: var(--ds-warning); background: var(--ds-warning-soft); }
.ds-badge--danger { color: var(--ds-danger); background: var(--ds-danger-soft); }
.ds-badge--info { color: var(--ds-info); background: var(--ds-info-soft); }
.ds-notice { padding: var(--ds-space-4); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-control); background: var(--ds-surface-soft); color: var(--ds-text); }
.ds-notice--success { color: var(--ds-success); background: var(--ds-success-soft); }
.ds-notice--warning { color: var(--ds-warning); background: var(--ds-warning-soft); }
.ds-notice--danger { color: var(--ds-danger); background: var(--ds-danger-soft); }
.ds-notice--info { color: var(--ds-info); background: var(--ds-info-soft); }
.ds-product-media { display: block; flex: none; width: 60px; aspect-ratio: var(--ds-product-ratio); overflow: hidden; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-control); background: var(--ds-media-background); }
.ds-product-media img { display: block; width: 100%; height: 100%; object-fit: var(--ds-product-fit); }
.ds-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .ds-content { padding: var(--ds-content-padding-mobile); }
  .ds-input { font-size: max(16px, var(--ds-label-size)); }
  .ds-scanner { font-size: var(--ds-scanner-size); }
}
@media (pointer: coarse) {
  .ds-button, .ds-input { min-height: var(--ds-control-height-touch); }
  .ds-button { min-width: var(--ds-control-height-touch); }
}
@media (prefers-reduced-motion: reduce) {
  .ds-page *, .ds-page *::before, .ds-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .ds-button, .ds-input, .ds-badge, .ds-card, .ds-notice { border-color: CanvasText; }
  .ds-button:focus-visible, .ds-input:focus-visible, .ds-link:focus-visible, .ds-focusable:focus-visible { outline-color: Highlight; }
}
