:root {
    color-scheme: light;
    --ds-color-white: #ffffff;
    --ds-color-neutral-50: #f6f8fb;
    --ds-color-neutral-100: #f3f6fa;
    --ds-color-neutral-200: #c7d0dc;
    --ds-color-neutral-500: #68758a;
    --ds-color-neutral-700: #48566b;
    --ds-color-neutral-900: #152033;

    --ds-color-graphite-600: #263449;
    --ds-color-graphite-700: #152033;
    --ds-color-graphite-soft: rgb(21 32 51 / 0.12);
    --ds-color-dark-bg: #11151b;
    --ds-color-dark-page: #171c24;
    --ds-color-dark-surface-2: #1c222c;
    --ds-color-dark-surface-3: #222a35;
    --ds-color-dark-surface-4: #29323f;
    --ds-color-dark-border: #303a48;
    --ds-color-dark-border-strong: #435066;
    --ds-color-dark-text: #f3f6fa;
    --ds-color-dark-text-secondary: #a7b2c2;
    --ds-color-dark-text-muted: #77859a;

    --ds-color-dark-action: #566379;
    --ds-color-dark-action-hover: #6b7890;
    --ds-color-dark-action-subtle: rgb(243 246 250 / 0.12);
    --ds-color-blue-600: #2563eb;
    --ds-color-green-600: #15803d;
    --ds-color-amber-600: #f2b94b;

    --ds-color-amber-700: #b7791f;

    --ds-color-amber-400: #fbbf24;
    --ds-color-orange-600: #ea580c;
    --ds-color-orange-400: #fb923c;
    --ds-color-red-700: #b91c1c;
    --ds-color-red-400: #f87171;
    --ds-color-blue-400: #60a5fa;
    --ds-color-green-400: #4ade80;
    --ds-color-person-blue: #2563eb;
    --ds-color-person-green: #16a34a;
    --ds-color-person-orange: #ea580c;
    --ds-color-person-purple: #9333ea;
    --ds-color-person-teal: #0d9488;
    --ds-color-person-pink: #db2777;
    --ds-color-person-red: #dc2626;
    --ds-color-person-gray: #64748b;
    --ds-color-person-indigo: #4f46e5;
    --ds-color-person-lime: #65a30d;
    --ds-color-person-amber: #d97706;
    --ds-color-person-cyan: #0891b2;
    --ds-color-person-rose: #e11d48;
    --ds-color-person-emerald: #059669;
    --ds-color-person-violet: #7c3aed;
    --ds-color-person-sky: #0284c7;
    --ds-color-person-fuchsia: #c026d3;
    --ds-color-person-slate: #475569;
    --ds-color-person-brown: #92400e;
    --ds-color-person-olive: #4d7c0f;
    --ds-space-0: 0;
    --ds-space-0-25: 0.125rem;
    --ds-space-0-5: 0.25rem;
    --ds-space-0-75: 0.375rem;
    --ds-space-1: 0.5rem;
    --ds-space-1-25: 0.625rem;
    --ds-space-1-5: 0.75rem;
    --ds-space-2: 1rem;
    --ds-space-2-5: 1.25rem;
    --ds-space-3: 1.5rem;
    --ds-space-4: 2rem;
    --ds-space-7: 3.5rem;
    --ds-border-width-0: 0;
    --ds-border-width-1: 0.0625rem;
    --ds-border-width-2: 0.125rem;
    --ds-border-width-3: 0.1875rem;
    --ds-border-width: var(--ds-border-width-1);

    --ds-radius-control: 0.25rem;
    --ds-radius-surface: 0.375rem;
    --ds-radius-pill: 999px;

    --ds-radius-4: var(--ds-radius-control);
    --ds-radius-999: var(--ds-radius-pill);
    --ds-radius-1: 0.0625rem;
    --ds-radius-2: 0.125rem;
    --ds-radius-3: 0.1875rem;
    --ds-radius-8: 0.625rem;
    --ds-radius-12: 0.875rem;
    --ds-radius-sm: var(--ds-radius-2);
    --ds-radius-md: var(--ds-radius-4);
    --ds-shadow-1: 0 0.0625rem 0.125rem rgb(0 0 0 / 0.22);
    --ds-shadow-2: 0 0.375rem 1.125rem rgb(0 0 0 / 0.24);
    --ds-shadow-3: 0 1rem 2.625rem rgb(0 0 0 / 0.28);
    --ds-z-dropdown: 100;
    --ds-z-overlay: 200;
    --ds-z-dialog: 300;
    --ds-z-toast: 400;
    --ds-z-critical: 500;
    --ds-z-modal: var(--ds-z-dialog);
    --ds-motion-duration-1: 120ms;
    --ds-motion-duration-2: 180ms;
    --ds-motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ds-font-family-sans: system-ui, "Segoe UI", sans-serif;
    --ds-font-family-code: "Cascadia Mono", "Consolas", monospace;

    --ds-text-page-title-size: 1.625rem;
    --ds-text-section-title-size: 1.25rem;

    --ds-text-heading-1-size: var(--ds-text-page-title-size);
    --ds-text-heading-2-size: var(--ds-text-section-title-size);
    --ds-text-heading-3-size: 1rem;
    --ds-text-body-size: 0.9375rem;
    --ds-text-body-small-size: 0.8125rem;
    --ds-text-label-size: 0.8125rem;
    --ds-text-caption-size: 0.75rem;
    --ds-text-code-size: 0.8125rem;
    --ds-font-size-sm: var(--ds-text-body-small-size);
    --ds-font-size-small: var(--ds-text-body-small-size);
    --ds-text-title-size: var(--ds-text-section-title-size);
    --ds-line-height-tight: 1.2;
    --ds-line-height-default: 1.5;
    --ds-font-weight-regular: 400;
    --ds-font-weight-medium: 600;
    --ds-font-weight-strong: 700;
    --ds-layout-header-height: 3.5rem;
    --ds-layout-header-side: clamp(9rem, 17.5vw, 14rem);
    --ds-layout-auth-hero-image: 56.3vw;
    --ds-layout-assistant-size: 4rem;
    --ds-layout-assistant-gap: var(--ds-space-3);
    --ds-layout-assistant-reserve: calc(var(--ds-layout-assistant-size) + 2 * var(--ds-layout-assistant-gap));

    --ds-layout-header-bay-depth: 1.375rem;

    --ds-layout-header-bay-half: 10.5rem;

    --ds-layout-context-bar-height: 2.75rem;
    --ds-layout-header-logo-height: 4rem;

    --ds-layout-result-list-max: calc(var(--ds-control-height) * 6);
    --ds-layout-content-max: 76rem;
    --ds-layout-content-readable: 42rem;
    --ds-layout-card-min: 18rem;

    --ds-layout-tile-size: 13rem;
    --ds-layout-menu-min-width: 18rem;
    --ds-accessibility-hidden-size: 1px;
    --ds-accessibility-hidden-inset: 50%;

    --ds-focus-ring-width: 0.125rem;
    --ds-focus-offset: 0.125rem;

    --ds-icon-size-small: 1rem;
    --ds-icon-size-default: 1.5rem;
    --ds-icon-size-large: 2.5rem;
    --ds-control-height-sm: 2rem;
    --ds-control-height: 2.25rem;
    --ds-control-height-default: var(--ds-control-height);
    --ds-control-height-md: var(--ds-control-height);
    --ds-field-label-offset: calc(var(--ds-text-label-size) * var(--ds-line-height-default) + var(--ds-space-0-5));

    --ds-touch-target-size: 3rem;
    --ds-touch-target-min: 2.75rem;
    --ds-touch-target-primary-size: 3.5rem;
    --ds-opacity-disabled: 0.55;
    --ds-tree-indent: 1rem;
    --ds-tree-level-0-min-height: 2.75rem;
    --ds-tree-level-1-min-height: 2.5rem;
    --ds-tree-level-2-min-height: 2.25rem;
    --ds-tree-level-3-min-height: 2.125rem;
    --ds-tree-level-4-min-height: 2rem;
    --ds-tree-level-0-font-size: 1rem;
    --ds-tree-level-1-font-size: 0.9375rem;
    --ds-tree-level-2-font-size: 0.9rem;
    --ds-tree-level-3-font-size: 0.85rem;
    --ds-tree-level-4-font-size: 0.8125rem;
    --ds-field-width-compact: 7.5rem;
    --ds-field-width-short: 11rem;
    --ds-field-width-medium: 16rem;
    --ds-field-width-wide: 24rem;
    --ds-settings-section-max: 64rem;
    --ds-settings-field-span-max: 40rem;
    --ds-form-section-max-width: 64rem;
    --ds-color-background-app: var(--ds-color-neutral-50);
    --ds-color-background-page: var(--ds-color-neutral-100);

    --ds-color-surface: var(--ds-color-white);
    --ds-color-surface-subtle: var(--ds-color-neutral-100);
    --ds-color-surface-raised: #e8edf4;

    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);

    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);

    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: var(--ds-color-neutral-200);
    --ds-color-border-strong: #9daabe;
    --ds-color-text-primary: var(--ds-color-neutral-900);
    --ds-color-text-secondary: var(--ds-color-neutral-700);
    --ds-color-text-muted: var(--ds-color-neutral-500);
    --ds-color-text-disabled: var(--ds-color-neutral-500);
    --ds-color-action: var(--ds-color-graphite-600);
    --ds-color-action-hover: var(--ds-color-graphite-700);
    --ds-color-action-subtle: var(--ds-color-graphite-soft);

    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-status-info: var(--ds-color-blue-600);
    --ds-color-status-success: var(--ds-color-green-600);
    --ds-color-status-warning: var(--ds-color-amber-700);
    --ds-color-status-danger: var(--ds-color-red-700);

    --ds-color-priority-low: var(--ds-color-neutral-500);
    --ds-color-priority-normal: var(--ds-color-neutral-700);
    --ds-color-priority-high: var(--ds-color-orange-600);
    --ds-color-priority-critical: var(--ds-color-red-700);

    --ds-color-maturity-planned: var(--ds-color-neutral-500);
    --ds-color-maturity-alpha: var(--ds-color-orange-600);
    --ds-color-maturity-beta: var(--ds-color-amber-600);
    --ds-color-maturity-rc: var(--ds-color-blue-600);
    --ds-color-maturity-release: var(--ds-color-green-600);
    --ds-color-on-action: var(--ds-color-white);
    --ds-color-overlay-scrim: rgb(21 32 51 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-graphite-600);
    --ds-color-focus-ring: var(--ds-color-focus);

    --ds-color-auth-backdrop: var(--ds-color-dark-bg);
    --ds-color-auth-scrim: rgb(7 12 20 / 0.58);
    --ds-color-auth-panel-background: rgb(16 38 66 / 0.30);
    --ds-color-auth-panel-border: rgb(96 190 232 / 0.26);
    --ds-color-auth-panel-shadow: rgb(10 30 58 / 0.24);
    --ds-color-auth-panel-highlight: rgb(150 220 255 / 0.14);
    --ds-color-auth-field-background: rgb(12 30 54 / 0.34);
    --ds-color-auth-field-border: rgb(96 190 232 / 0.28);
    --ds-color-auth-submit-disabled: rgb(40 66 100 / 0.45);
    --ds-color-auth-message-background: rgb(12 30 54 / 0.45);
    --ds-color-auth-panel-solid: rgb(16 32 54);

    --ds-font-weight-semibold: var(--ds-font-weight-medium);
    --ds-font-weight-bold: var(--ds-font-weight-strong);
}

[data-ds-theme="dark"] {
    color-scheme: dark;
    --ds-color-background-app: var(--ds-color-dark-bg);
    --ds-color-background-page: var(--ds-color-dark-page);
    --ds-color-surface: var(--ds-color-dark-surface-2);
    --ds-color-surface-subtle: var(--ds-color-dark-surface-3);
    --ds-color-surface-raised: var(--ds-color-dark-surface-4);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-border: var(--ds-color-dark-border);
    --ds-color-border-strong: var(--ds-color-dark-border-strong);
    --ds-color-text-primary: var(--ds-color-dark-text);
    --ds-color-text-secondary: var(--ds-color-dark-text-secondary);
    --ds-color-text-muted: var(--ds-color-dark-text-muted);
    --ds-color-text-disabled: var(--ds-color-dark-text-muted);
    --ds-color-action: var(--ds-color-dark-action);
    --ds-color-action-hover: var(--ds-color-dark-action-hover);
    --ds-color-action-subtle: var(--ds-color-dark-action-subtle);
    --ds-color-status-info: var(--ds-color-blue-400);
    --ds-color-status-success: var(--ds-color-green-400);
    --ds-color-status-warning: var(--ds-color-amber-400);
    --ds-color-status-danger: var(--ds-color-red-400);
    --ds-color-priority-low: var(--ds-color-dark-text-muted);
    --ds-color-priority-normal: var(--ds-color-dark-text-secondary);
    --ds-color-priority-high: var(--ds-color-orange-400);
    --ds-color-priority-critical: var(--ds-color-red-400);
    --ds-color-maturity-planned: var(--ds-color-dark-text-muted);
    --ds-color-maturity-alpha: var(--ds-color-orange-400);
    --ds-color-maturity-beta: var(--ds-color-amber-400);
    --ds-color-maturity-rc: var(--ds-color-blue-400);
    --ds-color-maturity-release: var(--ds-color-green-400);
    --ds-color-overlay-scrim: rgb(17 21 27 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-dark-action);
    --ds-color-focus-ring: var(--ds-color-dark-action-hover);
}

[data-ds-theme="ocean"] {
    color-scheme: light;
    --ds-color-background-app: #f3f8fc;
    --ds-color-background-page: #eaf3fa;
    --ds-color-surface: #ffffff;
    --ds-color-surface-subtle: #eef5fb;
    --ds-color-surface-raised: #dcebf6;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #b9d3e6;
    --ds-color-border-strong: #7fa6c4;
    --ds-color-text-primary: #0b2540;
    --ds-color-text-secondary: #2a4a66;
    --ds-color-text-muted: #4c6a84;
    --ds-color-text-disabled: #4c6a84;
    --ds-color-action: #0b5c94;
    --ds-color-action-hover: #084a78;
    --ds-color-action-subtle: rgb(11 92 148 / 0.12);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #ffffff;
    --ds-color-status-info: #1a5fb4;
    --ds-color-status-success: #157347;
    --ds-color-status-warning: #8f5500;
    --ds-color-status-danger: #b42318;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #b93f0b;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #b93f0b;
    --ds-color-maturity-beta: #9a6200;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(11 37 64 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="forest"] {
    color-scheme: light;
    --ds-color-background-app: #f4f7f2;
    --ds-color-background-page: #ecf2e8;
    --ds-color-surface: #ffffff;
    --ds-color-surface-subtle: #eef3ea;
    --ds-color-surface-raised: #dfe9d8;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #c3d3b8;
    --ds-color-border-strong: #8ba67c;
    --ds-color-text-primary: #1b2a18;
    --ds-color-text-secondary: #3b4f35;
    --ds-color-text-muted: #56694e;
    --ds-color-text-disabled: #56694e;
    --ds-color-action: #2f6b2f;
    --ds-color-action-hover: #245524;
    --ds-color-action-subtle: rgb(47 107 47 / 0.12);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #ffffff;
    --ds-color-status-info: #1f5f99;
    --ds-color-status-success: #1d7432;
    --ds-color-status-warning: #875800;
    --ds-color-status-danger: #b3261e;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #b0460c;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #b0460c;
    --ds-color-maturity-beta: #8f6200;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(27 42 24 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="sand"] {
    color-scheme: light;
    --ds-color-background-app: #faf6ef;
    --ds-color-background-page: #f4ede1;
    --ds-color-surface: #fffdf9;
    --ds-color-surface-subtle: #f5eee3;
    --ds-color-surface-raised: #ebe0cf;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #dccbb2;
    --ds-color-border-strong: #b39b7a;
    --ds-color-text-primary: #2e2116;
    --ds-color-text-secondary: #5a4433;
    --ds-color-text-muted: #6e5a48;
    --ds-color-text-disabled: #6e5a48;
    --ds-color-action: #a4452a;
    --ds-color-action-hover: #863721;
    --ds-color-action-subtle: rgb(164 69 42 / 0.12);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #ffffff;
    --ds-color-status-info: #2b5c8a;
    --ds-color-status-success: #3c7029;
    --ds-color-status-warning: #865400;
    --ds-color-status-danger: #ad261b;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #a8440e;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #a8440e;
    --ds-color-maturity-beta: #8a5d00;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(46 33 22 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="rose"] {
    color-scheme: light;
    --ds-color-background-app: #fdf6f8;
    --ds-color-background-page: #f9edf1;
    --ds-color-surface: #ffffff;
    --ds-color-surface-subtle: #fbf0f4;
    --ds-color-surface-raised: #f3dfe7;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #e7c6d3;
    --ds-color-border-strong: #c58ea4;
    --ds-color-text-primary: #3a1424;
    --ds-color-text-secondary: #5f2f43;
    --ds-color-text-muted: #7a4a5e;
    --ds-color-text-disabled: #7a4a5e;
    --ds-color-action: #9d1d52;
    --ds-color-action-hover: #80173f;
    --ds-color-action-subtle: rgb(157 29 82 / 0.12);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #ffffff;
    --ds-color-status-info: #2f5aa8;
    --ds-color-status-success: #2a7348;
    --ds-color-status-warning: #8a5300;
    --ds-color-status-danger: #b3261e;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #b53d0c;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #b53d0c;
    --ds-color-maturity-beta: #8f5f00;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(58 20 36 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="solar"] {
    color-scheme: light;
    --ds-color-background-app: #f5efdc;
    --ds-color-background-page: #eee8d5;
    --ds-color-surface: #fdf6e3;
    --ds-color-surface-subtle: #f5efdc;
    --ds-color-surface-raised: #e6dfc8;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #d6ceb5;
    --ds-color-border-strong: #a59f88;
    --ds-color-text-primary: #073642;
    --ds-color-text-secondary: #3f5259;
    --ds-color-text-muted: #4c5f66;
    --ds-color-text-disabled: #4c5f66;
    --ds-color-action: #1b679c;
    --ds-color-action-hover: #15547f;
    --ds-color-action-subtle: rgb(38 139 210 / 0.12);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #ffffff;
    --ds-color-status-info: #1b679c;
    --ds-color-status-success: #566600;
    --ds-color-status-warning: #7f5600;
    --ds-color-status-danger: #b2241f;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #a83e12;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #a83e12;
    --ds-color-maturity-beta: #8a6200;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(7 54 66 / 0.38);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="graphite"] {
    color-scheme: dark;
    --ds-color-background-app: #161616;
    --ds-color-background-page: #1c1c1c;
    --ds-color-surface: #232323;
    --ds-color-surface-subtle: #2a2a2a;
    --ds-color-surface-raised: #323232;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #3d3d3d;
    --ds-color-border-strong: #575757;
    --ds-color-text-primary: #f2f2f2;
    --ds-color-text-secondary: #c4c4c4;
    --ds-color-text-muted: #a3a3a3;
    --ds-color-text-disabled: #a3a3a3;
    --ds-color-action: #cfcfcf;
    --ds-color-action-hover: #e4e4e4;
    --ds-color-action-subtle: rgb(242 242 242 / 0.16);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #161616;
    --ds-color-status-info: #7cb7ff;
    --ds-color-status-success: #6fd08c;
    --ds-color-status-warning: #f5c451;
    --ds-color-status-danger: #ff8a80;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #ffa260;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #ffa260;
    --ds-color-maturity-beta: #f5c451;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(10 10 10 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="midnight"] {
    color-scheme: dark;
    --ds-color-background-app: #0a1020;
    --ds-color-background-page: #0e1528;
    --ds-color-surface: #131c33;
    --ds-color-surface-subtle: #19233d;
    --ds-color-surface-raised: #202b48;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #2a3757;
    --ds-color-border-strong: #3d4d75;
    --ds-color-text-primary: #e8eefc;
    --ds-color-text-secondary: #b0bdd9;
    --ds-color-text-muted: #8d9cbf;
    --ds-color-text-disabled: #8d9cbf;
    --ds-color-action: #8fb4ff;
    --ds-color-action-hover: #abc7ff;
    --ds-color-action-subtle: rgb(143 180 255 / 0.16);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #0a1020;
    --ds-color-status-info: #7fb2ff;
    --ds-color-status-success: #5fd39a;
    --ds-color-status-warning: #f7c75a;
    --ds-color-status-danger: #ff8b8b;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #ffa45c;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #ffa45c;
    --ds-color-maturity-beta: #f7c75a;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(5 8 16 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="nord"] {
    color-scheme: dark;
    --ds-color-background-app: #2e3440;
    --ds-color-background-page: #333a47;
    --ds-color-surface: #3b4252;
    --ds-color-surface-subtle: #434c5e;
    --ds-color-surface-raised: #4c566a;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #4c566a;
    --ds-color-border-strong: #616e88;
    --ds-color-text-primary: #eceff4;
    --ds-color-text-secondary: #d8dee9;
    --ds-color-text-muted: #ccd3de;
    --ds-color-text-disabled: #ccd3de;
    --ds-color-action: #94c8d6;
    --ds-color-action-hover: #acd6e2;
    --ds-color-action-subtle: rgb(136 192 208 / 0.16);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #2e3440;
    --ds-color-status-info: #aac6e3;
    --ds-color-status-success: #b2ca9d;
    --ds-color-status-warning: #ebcb8b;
    --ds-color-status-danger: #f2acb2;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #ebb7a2;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #ebb7a2;
    --ds-color-maturity-beta: #ebcb8b;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(26 30 38 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="industrial"] {
    color-scheme: dark;
    --ds-color-background-app: #1e2124;
    --ds-color-background-page: #24282c;
    --ds-color-surface: #2b3035;
    --ds-color-surface-subtle: #33393f;
    --ds-color-surface-raised: #3b4249;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #464e56;
    --ds-color-border-strong: #5d6670;
    --ds-color-text-primary: #f1f3f5;
    --ds-color-text-secondary: #c9ced3;
    --ds-color-text-muted: #a7afb7;
    --ds-color-text-disabled: #a7afb7;
    --ds-color-action: #ff842b;
    --ds-color-action-hover: #ff9b52;
    --ds-color-action-subtle: rgb(255 122 26 / 0.16);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #1a1a1a;
    --ds-color-status-info: #7ab8ff;
    --ds-color-status-success: #74d68f;
    --ds-color-status-warning: #ffd166;
    --ds-color-status-danger: #ff8577;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #ffa64d;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #ffa64d;
    --ds-color-maturity-beta: #ffd166;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(12 13 14 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

[data-ds-theme="contrast"] {
    color-scheme: dark;
    --ds-color-background-app: #000000;
    --ds-color-background-page: #000000;
    --ds-color-surface: #000000;
    --ds-color-surface-subtle: #0d0d0d;
    --ds-color-surface-raised: #1a1a1a;
    --ds-color-surface-panel: var(--ds-color-surface);
    --ds-color-surface-muted: var(--ds-color-surface-subtle);
    --ds-color-control-background: var(--ds-color-surface-subtle);
    --ds-color-control-hover: var(--ds-color-surface-raised);
    --ds-color-control-disabled: var(--ds-color-surface-subtle);
    --ds-color-button-background: var(--ds-color-control-background);
    --ds-color-border: #bfbfbf;
    --ds-color-border-strong: #ffffff;
    --ds-color-text-primary: #ffffff;
    --ds-color-text-secondary: #f0f0f0;
    --ds-color-text-muted: #d9d9d9;
    --ds-color-text-disabled: #d9d9d9;
    --ds-color-action: #ffff00;
    --ds-color-action-hover: #ffea00;
    --ds-color-action-subtle: rgb(255 255 0 / 0.16);
    --ds-color-action-primary: var(--ds-color-action);
    --ds-color-on-action: #000000;
    --ds-color-status-info: #66ccff;
    --ds-color-status-success: #66ff66;
    --ds-color-status-warning: #ffff00;
    --ds-color-status-danger: #ff7070;
    --ds-color-priority-low: var(--ds-color-text-muted);
    --ds-color-priority-normal: var(--ds-color-text-secondary);
    --ds-color-priority-high: #ffa64d;
    --ds-color-priority-critical: var(--ds-color-status-danger);
    --ds-color-maturity-planned: var(--ds-color-text-muted);
    --ds-color-maturity-alpha: #ffa64d;
    --ds-color-maturity-beta: #ffff00;
    --ds-color-maturity-rc: var(--ds-color-status-info);
    --ds-color-maturity-release: var(--ds-color-status-success);
    --ds-color-overlay-scrim: rgb(0 0 0 / 0.68);
    --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
    --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
    --ds-color-tree-selected-border: var(--ds-color-action);
    --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
    --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
    --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 92%, var(--ds-color-border-strong) 8%);
    --ds-color-tree-group-depth-3-background: var(--ds-color-surface);
    --ds-color-background: var(--ds-color-background-app);
    --ds-color-surface-canvas: var(--ds-color-background-page);
    --ds-color-text: var(--ds-color-text-primary);
    --ds-text-muted: var(--ds-color-text-muted);
    --ds-border-color: var(--ds-color-border);
    --ds-color-action-strong: var(--ds-color-action-hover);
    --ds-color-info: var(--ds-color-status-info);
    --ds-color-success: var(--ds-color-status-success);
    --ds-color-warning: var(--ds-color-status-warning);
    --ds-color-danger: var(--ds-color-status-danger);
    --ds-color-focus: var(--ds-color-action);
    --ds-color-focus-ring: var(--ds-color-focus);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --ds-motion-duration-1: 1ms;
        --ds-motion-duration-2: 1ms;
    }
}

.ds-toolbar,
.ds-toolbar__primary,
.ds-toolbar__secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ds-space-1);
}

.ds-toolbar { justify-content: space-between; }
.ds-toolbar[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.ds-tab-bar {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-5);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-end: var(--ds-space-1);
}

.ds-tab-bar a,
.ds-tab-bar button,
.ds-tab-bar summary {
    display: inline-flex;
    min-height: var(--ds-control-height-sm);
    flex: 0 0 auto;
    align-items: center;
    border: 0;
    border-radius: var(--ds-radius-2);
    background: transparent;
    padding-inline: var(--ds-space-1);
    color: var(--ds-color-text-secondary);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ds-tab-bar a:hover,
.ds-tab-bar button:hover,
.ds-tab-bar summary:hover { background: var(--ds-color-control-hover); color: var(--ds-color-text-primary); }

.ds-tab-bar a:focus-visible,
.ds-tab-bar button:focus-visible,
.ds-tab-bar summary:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }

.ds-tab-bar .is-active {
    color: var(--ds-color-text-primary);
    font-weight: var(--ds-font-weight-medium);
    box-shadow: inset 0 calc(var(--ds-border-width-2) * -1) 0 0 var(--ds-color-action);
}

.ds-tab-bar [aria-disabled="true"], .ds-tab-bar button:disabled { opacity: 0.5; pointer-events: none; }

.ds-tab-bar--area {
    border-block-end: var(--ds-border-width-0) solid transparent;
    padding-block-end: var(--ds-space-0);
    gap: var(--ds-space-0-75);
}

.ds-tab-bar--area a,
.ds-tab-bar--area button,
.ds-tab-bar--area summary {
    border: var(--ds-border-width-1) solid transparent;
    padding-inline: var(--ds-space-1-5);
}

.ds-tab-bar--area .is-active {
    border-color: var(--ds-color-action);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-action-subtle);
    color: var(--ds-color-text-primary);
    font-weight: var(--ds-font-weight-semibold);
    box-shadow: none;
}

.ds-tab-bar--primary {
    flex-wrap: nowrap;
    border-block-end: var(--ds-border-width-0) solid transparent;
    padding-block-end: var(--ds-space-0);
    gap: var(--ds-space-0-5);
}

.ds-tab-bar--primary a,
.ds-tab-bar--primary button,
.ds-tab-bar--primary summary {
    padding-inline: var(--ds-space-1-25);
    white-space: nowrap;
}

.ds-tab-bar--primary .is-active {
    background: var(--ds-color-action);
    color: var(--ds-color-background);
    font-weight: var(--ds-font-weight-semibold);
    box-shadow: none;
}

.ds-tab-bar--primary .is-active:hover {
    background: var(--ds-color-action);
    color: var(--ds-color-background);
}

.ds-tab-bar--area > .ds-tab-bar__more { display: none; }

@media (max-width: 48rem) {

    .ds-tab-bar--area:has(> .ds-tab-bar__more) > a,
    .ds-tab-bar--area:has(> .ds-tab-bar__more) > button { display: none; }
    .ds-tab-bar--area > .ds-tab-bar__more { display: block; }
}

.ds-tab-bar__more { position: relative; }
.ds-tab-bar__more summary { list-style: none; }
.ds-tab-bar__more summary::-webkit-details-marker { display: none; }

.ds-tab-bar__menu {
    position: absolute;
    z-index: var(--ds-z-dropdown);
    display: grid;
    min-inline-size: var(--ds-field-width-medium);
    gap: var(--ds-space-0-25);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface-raised);
    padding: var(--ds-space-0-5);
    box-shadow: var(--ds-shadow-1);
}

.ds-search-bar { --ds-search-chars: 0; display: grid; gap: var(--ds-space-0-5); color: var(--ds-color-text-secondary); font-size: var(--ds-text-label-size); }
.ds-search-bar__control { display: flex; min-height: var(--ds-control-height); align-items: center; gap: var(--ds-space-1); border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-control); background: var(--ds-color-control-background); padding-inline: var(--ds-space-1); }
.ds-search-bar__control:focus-within { border-color: var(--ds-color-focus); }
.ds-search-bar__control > .ds-icon { inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); }
.ds-search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ds-color-text-primary); font: inherit; }
.ds-search-bar__clear { display: inline-grid; place-items: center; flex: none; inline-size: var(--ds-space-1-5); block-size: var(--ds-space-1-5); border: 0; border-radius: var(--ds-radius-control); background: transparent; color: var(--ds-color-text-secondary); cursor: pointer; }
.ds-search-bar__clear:hover { color: var(--ds-color-text-primary); background: var(--ds-color-surface-raised); }
.ds-search-bar__clear .ds-icon { inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); }
.ds-search-bar__control:has(.ds-search-bar__clear) input::-webkit-search-cancel-button { appearance: none; display: none; }
.ds-result-links { display: grid; gap: var(--ds-space-0-25); margin: 0; padding: 0; list-style: none; }
.ds-result-links__row { display: flex; align-items: flex-start; gap: var(--ds-space-0-75); border-block-end: var(--ds-border-width-1) solid var(--ds-color-border); padding-block: var(--ds-space-0-5); }
.ds-result-links__row:last-child { border-block-end: 0; }
.ds-result-links__icon { display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--ds-color-text-secondary); padding-block-start: var(--ds-space-0-25); }
.ds-result-links__icon .ds-icon { inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); }
.ds-result-links__text { display: grid; min-inline-size: 0; gap: var(--ds-space-0-25); overflow-wrap: anywhere; }
.ds-result-links__link { color: var(--ds-color-action); font-weight: var(--ds-font-weight-medium); }
.ds-result-links__link:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-result-links__detail { color: var(--ds-color-text-secondary); font-size: var(--ds-text-caption-size); }
.ds-highlight__match { border-radius: var(--ds-radius-1); background: var(--ds-color-action-subtle); color: inherit; font-weight: var(--ds-font-weight-strong); }
.ds-header-search { position: relative; flex: 0 1 15rem; min-inline-size: 0; }
.ds-header-search__toggle { display: none; }
.ds-header-search__panel { display: block; }
.ds-header-search__field { display: flex; min-block-size: 2.25rem; align-items: center; gap: var(--ds-space-0-5); border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-pill); background: var(--ds-color-control-background); color: var(--ds-color-text-secondary); padding-inline: var(--ds-space-0-75); }
.ds-header-search__field:focus-within { border-color: var(--ds-color-focus); }
.ds-header-search__field > .ds-icon { flex: 0 0 auto; inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); }
.ds-header-search__field input { min-inline-size: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ds-color-text-primary); font: inherit; }
.ds-header-search__key { flex: 0 0 auto; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-1); color: var(--ds-color-text-secondary); font: inherit; font-size: var(--ds-text-caption-size); line-height: 1.4; padding-inline: var(--ds-space-0-25); }
.ds-header-search__field:focus-within .ds-header-search__key { display: none; }
.ds-header-search__list { position: absolute; inset-block-start: calc(100% + var(--ds-space-0-5)); inset-inline-end: 0; z-index: var(--ds-z-overlay); display: grid; inline-size: min(28rem, calc(100vw - 2 * var(--ds-space-1))); max-block-size: 70vh; gap: var(--ds-space-0-5); overflow: auto; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-surface); background: var(--ds-color-surface); box-shadow: var(--ds-shadow-2); padding: var(--ds-space-0-5); }
.ds-header-search__group-title { margin: 0; color: var(--ds-color-text-secondary); font-size: var(--ds-text-caption-size); font-weight: var(--ds-font-weight-strong); padding: var(--ds-space-0-25) var(--ds-space-0-5); }
.ds-header-search__group ul { display: grid; gap: var(--ds-space-0-25); margin: 0; padding: 0; list-style: none; }
.ds-header-search__group a { display: flex; align-items: flex-start; gap: var(--ds-space-0-5); border-radius: var(--ds-radius-control); color: var(--ds-color-text-primary); text-decoration: none; padding: var(--ds-space-0-5); }
.ds-header-search__group a > .ds-icon { flex: 0 0 auto; inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); color: var(--ds-color-text-secondary); }
.ds-header-search__group a:hover { background: var(--ds-color-control-hover); }
.ds-header-search__group a:focus-visible, .ds-header-search__all:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-header-search__text { display: grid; min-inline-size: 0; overflow-wrap: anywhere; }
.ds-header-search__text small { color: var(--ds-color-text-secondary); font-size: var(--ds-text-caption-size); }
.ds-header-search__state { margin: 0; color: var(--ds-color-text-secondary); padding: var(--ds-space-0-5); }
.ds-header-search__all { justify-self: start; border: 0; border-radius: var(--ds-radius-control); background: transparent; color: var(--ds-color-action); cursor: pointer; font: inherit; font-weight: var(--ds-font-weight-strong); padding: var(--ds-space-0-5); }
.ds-header-search__all:hover { text-decoration: underline; }
@media (max-width: 64rem) {
    .ds-header-search { flex: 0 0 auto; }
    .ds-header-search__toggle { display: inline-grid; }
    .ds-header-search__panel { display: none; }
    .ds-header-search.is-open .ds-header-search__panel { position: fixed; inset-block-start: calc(var(--ds-layout-header-height) + var(--ds-space-0-5)); inset-inline: var(--ds-space-1); z-index: var(--ds-z-overlay); display: grid; gap: var(--ds-space-0-5); border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-surface); background: var(--ds-color-surface); box-shadow: var(--ds-shadow-2); padding: var(--ds-space-0-75); }
    .ds-header-search.is-open .ds-header-search__list { position: static; inline-size: auto; border: 0; box-shadow: none; padding: 0; }
    .ds-header-search__key { display: none; }
    .ds-header-search__field input { min-block-size: var(--ds-touch-target-min); }
}

.ds-section-card,
.ds-kpi-card {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-1);
}

.ds-section-card { padding: var(--ds-space-2); }
.ds-section-card > header { display: flex; align-items: start; justify-content: space-between; gap: var(--ds-space-2); flex-wrap: wrap; }

.ds-section-card__actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-0-75); min-width: 0; }
.ds-section-card h2 { margin: 0; font-size: var(--ds-text-heading-3-size); }
.ds-section-card p { margin: var(--ds-space-0-5) 0 0; color: var(--ds-color-text-secondary); }
.ds-section-card__content { margin-top: var(--ds-space-2); }

.ds-kpi-card { display: flex; min-height: 5rem; align-items: center; gap: var(--ds-space-1-5); padding: var(--ds-space-1-5); }
.ds-kpi-card__icon { display: grid; width: var(--ds-icon-size-large); height: var(--ds-icon-size-large); flex: 0 0 var(--ds-icon-size-large); place-items: center; border-radius: var(--ds-radius-control); background: var(--ds-color-action-subtle); }
.ds-kpi-card strong { display: block; margin-top: var(--ds-space-0-5); color: var(--ds-color-text); font-size: var(--ds-text-section-title-size); }
.ds-kpi-card__title,
.ds-kpi-card small { display: block; color: var(--ds-color-text-secondary); }

.ds-action-link,
.ds-toggle-button,
.ds-segmented-control label,
.ds-button { display: inline-flex; box-sizing: border-box; min-height: var(--ds-control-height); align-items: center; justify-content: center; gap: var(--ds-space-0-5); border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-control); background: var(--ds-color-control-background); padding: 0 var(--ds-space-1-5); color: var(--ds-color-text-primary); font: inherit; font-weight: var(--ds-font-weight-medium); line-height: var(--ds-line-height-default); text-decoration: none; cursor: pointer; }
.ds-action-link--secondary,
.ds-button,

.ds-button--secondary { background: var(--ds-color-control-background); }

a.ds-button { text-decoration: none; }

.ds-action-link:hover:not([aria-disabled="true"]),
.ds-toggle-button:hover:not(:disabled),
.ds-button:hover { border-color: var(--ds-color-border-strong); background: var(--ds-color-control-hover); }

.ds-action-link:active:not([aria-disabled="true"]),
.ds-toggle-button:active:not(:disabled),
.ds-button:active:not(:disabled) { box-shadow: inset 0 var(--ds-border-width-1) 0 var(--ds-color-border-strong); }
.ds-action-link:focus-visible,
.ds-toggle-button:focus-visible,
.ds-button:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }

.ds-action-link[aria-disabled="true"],
.ds-toggle-button:disabled,
.ds-button:disabled { border-color: var(--ds-color-border); background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); cursor: not-allowed; }
.ds-action-link--primary,
.ds-button--primary { border-color: var(--ds-color-action); background: var(--ds-color-action); color: var(--ds-color-on-action); }
.ds-action-link--primary:hover:not([aria-disabled="true"]),
.ds-button--primary:hover { border-color: var(--ds-color-action-hover); background: var(--ds-color-action-hover); }
.ds-button--destructive { border-color: var(--ds-color-danger); color: var(--ds-color-danger); }

.ds-button--destructive:hover { border-color: var(--ds-color-danger); background: var(--ds-color-control-hover); }

.ds-action-link--compact,
.ds-toggle-button--compact,
.ds-button--compact { min-height: var(--ds-control-height-sm); }
.ds-action-link--icon,
.ds-toggle-button--icon,
.ds-button--icon { width: var(--ds-control-height); padding: 0; }
.ds-action-link--compact.ds-action-link--icon,
.ds-toggle-button--compact.ds-toggle-button--icon,
.ds-button--compact.ds-button--icon { width: var(--ds-control-height-sm); }

.ds-file-picker { display: grid; gap: var(--ds-space-0-5); justify-items: stretch; }

.ds-file-picker__label { color: var(--ds-color-text-secondary); font-size: var(--ds-text-label-size); }

.ds-file-picker__field { max-inline-size: 100%; color: var(--ds-color-text-secondary); font: inherit; font-size: var(--ds-text-body-small-size); }

.ds-file-picker__field::file-selector-button {
    display: inline-flex;
    box-sizing: border-box;
    min-height: var(--ds-control-height);
    align-items: center;
    justify-content: center;
    margin-inline-end: var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-control-background);
    padding: 0 var(--ds-space-1-5);
    color: var(--ds-color-text-primary);
    font: inherit;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height-default);
    cursor: pointer;
}

.ds-file-picker__field:hover:not(:disabled)::file-selector-button { border-color: var(--ds-color-border-strong); background: var(--ds-color-control-hover); }

.ds-file-picker__field:active:not(:disabled)::file-selector-button { box-shadow: inset 0 var(--ds-border-width-1) 0 var(--ds-color-border-strong); }
.ds-file-picker__field:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-file-picker__field:disabled::file-selector-button { background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); cursor: not-allowed; }

.ds-file-picker__file { color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); overflow-wrap: anywhere; }

.ds-file-picker__hint { color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); }

.ds-collapsible-group {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-3);
    background: var(--ds-color-surface-raised);
    min-inline-size: 0;
}

.ds-collapsible-group > summary {
    display: flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1);
    cursor: pointer;
    list-style: none;
}

.ds-collapsible-group > summary::-webkit-details-marker { display: none; }

.ds-collapsible-group > summary:hover { background: var(--ds-color-control-hover); border-radius: var(--ds-radius-3); }

.ds-collapsible-group > summary:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-collapsible-group__marker {
    flex: 0 0 auto;
    inline-size: 1rem;
    color: var(--ds-color-text-secondary);
    text-align: center;
    transition: transform var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}

.ds-collapsible-group[open] > summary .ds-collapsible-group__marker { transform: rotate(90deg); }

.ds-collapsible-group__title { flex: 1 1 auto; font-weight: var(--ds-font-weight-strong); }

.ds-collapsible-group__count { flex: 0 0 auto; color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); }

.ds-collapsible-group__content { display: grid; gap: var(--ds-space-1); padding: 0 var(--ds-space-1) var(--ds-space-1); }

.ds-permission-row {
    display: flex;
    align-items: center;
    gap: var(--ds-space-1);
    inline-size: 100%;
    box-sizing: border-box;
    border: var(--ds-border-width-1) solid transparent;
    border-inline-start: var(--ds-border-width-2) solid transparent;
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface);
    padding: var(--ds-space-0-75) var(--ds-space-1);
}

.ds-permission-row.is-effective { border-inline-start-color: var(--ds-color-action); }

.ds-permission-row__text { flex: 1 1 auto; display: grid; gap: var(--ds-space-0-25); min-inline-size: 0; }

.ds-permission-row__name { font-weight: var(--ds-font-weight-medium); }

.ds-permission-row__description {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-permission-row--expandable { flex-wrap: wrap; }

.ds-permission-row__toggle {
    flex: 1 1 0;
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-0-75);
    min-inline-size: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.ds-permission-row__toggle:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus); outline-offset: var(--ds-border-width-2); }

.ds-permission-row__marker { flex: 0 0 auto; color: var(--ds-color-text-secondary); inline-size: 1rem; }

.ds-permission-row.is-expanded .ds-permission-row__marker { transform: rotate(90deg); }

.ds-permission-row.is-expanded .ds-permission-row__description { display: none; }

.ds-permission-row__details { flex: 1 0 100%; min-inline-size: 0; padding-inline-start: var(--ds-space-2); overflow-wrap: anywhere; }

button.ds-permission-row__field--fixed { cursor: pointer; color: var(--ds-color-text-primary); text-decoration: underline; }

.ds-permission-row__mark { flex: 0 0 auto; color: var(--ds-color-text-secondary); }

.ds-permission-row__identifier {
    flex: 0 0 auto;
    min-inline-size: 13rem;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-permission-row__origin { flex: 0 0 auto; min-inline-size: 13rem; font-size: var(--ds-text-body-small-size); }

.ds-permission-row__switch { flex: 0 0 auto; display: inline-flex; min-inline-size: 11rem; }
.ds-permission-row__switch > .ds-toggle-button { inline-size: 100%; justify-content: start; }

.ds-permission-row__field {
    flex: 0 0 auto;
    display: inline-flex;
    box-sizing: border-box;
    min-height: var(--ds-control-height);
    min-inline-size: 11rem;
    align-items: center;
    justify-content: start;
    gap: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-control-background);
    padding: 0 var(--ds-space-1);
    color: var(--ds-color-text-secondary);
    font: inherit;
    font-weight: var(--ds-font-weight-medium);
    cursor: pointer;
}

.ds-permission-row__field:hover:not(:disabled) { border-color: var(--ds-color-border-strong); background: var(--ds-color-control-hover); }
.ds-permission-row__field:active:not(:disabled) { box-shadow: inset 0 var(--ds-border-width-1) 0 var(--ds-color-border-strong); }
.ds-permission-row__field:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-permission-row__field:disabled { background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); cursor: not-allowed; }

.ds-permission-row__field[aria-pressed="true"] {
    border-color: var(--ds-color-action);
    background: var(--ds-color-action-subtle);
    color: var(--ds-color-text-primary);
}

.ds-permission-row__field--action {
    justify-content: center;
    min-inline-size: 13rem;
    color: var(--ds-color-text-primary);
    white-space: nowrap;
}

.ds-permission-row__field--fixed { border-color: transparent; background: none; cursor: default; }

.ds-master-list { display: grid; gap: var(--ds-border-width-1); }

.ds-master-list__entry { display: grid; min-inline-size: 0; }

.ds-master-list__item {
    display: grid;
    gap: var(--ds-space-0-25);
    border: 0;
    border-inline-start: var(--ds-border-width-2) solid transparent;
    background: transparent;
    padding: var(--ds-space-1);
    color: var(--ds-color-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.ds-master-list__item:hover:not(:disabled) { background: var(--ds-color-surface-raised); }

.ds-master-list__item:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-master-list__item:disabled { opacity: 0.5; cursor: default; }

.ds-master-list__item.is-selected {
    border-inline-start-color: var(--ds-color-action);
    background: var(--ds-color-surface-raised);
}

.ds-master-list__name { font-size: var(--ds-text-body-size); font-weight: var(--ds-font-weight-medium); }
.ds-master-list__secondary { color: var(--ds-color-text-secondary); font-size: var(--ds-text-label-size); }
.ds-master-list__state { color: var(--ds-color-text-secondary); font-size: var(--ds-text-caption-size); }

.ds-membership-list {
    display: grid;
    gap: var(--ds-space-0-5);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
}

.ds-membership-list__entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-75);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-end: var(--ds-space-0-5);
}

.ds-membership-list__entry:last-child { border-block-end: 0; padding-block-end: var(--ds-space-0); }
.ds-membership-list__name { margin-inline-end: auto; }
.ds-membership-list__note { color: var(--ds-color-text-secondary); font-size: var(--ds-text-label-size); }
.ds-membership-list__empty { color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); }

.ds-flag {
    display: block;
    inline-size: 1.5rem;
    block-size: 1rem;
    border-radius: var(--ds-radius-1);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ds-flag--de { background-image: url('/_content/Stinaxis.DesignSystem/flags/de.svg'); }
.ds-flag--us { background-image: url('/_content/Stinaxis.DesignSystem/flags/us.svg'); }
.ds-flag--rs { background-image: url('/_content/Stinaxis.DesignSystem/flags/rs.svg'); }
.ds-flag--ru { background-image: url('/_content/Stinaxis.DesignSystem/flags/ru.svg'); }
.ds-flag--pl { background-image: url('/_content/Stinaxis.DesignSystem/flags/pl.svg'); }
.ds-flag--mx { background-image: url('/_content/Stinaxis.DesignSystem/flags/mx.svg'); }
.ds-flag--hu { background-image: url('/_content/Stinaxis.DesignSystem/flags/hu.svg'); }
.ds-flag--cn { background-image: url('/_content/Stinaxis.DesignSystem/flags/cn.svg'); }

.ds-toggle-button--pressed {
    border-color: var(--ds-color-action);
    background: var(--ds-color-action-subtle);
    color: var(--ds-color-text-primary);
    box-shadow: inset 0 calc(-1 * var(--ds-border-width-2)) 0 var(--ds-color-action);
    font-weight: var(--ds-font-weight-strong);
}

.ds-toggle-button--pressed:hover:not(:disabled) { border-color: var(--ds-color-action); background: var(--ds-color-control-hover); }

.ds-segmented-control {
    display: inline-flex;
    margin: 0;
    border: 0;
    padding: 0;
    min-inline-size: 0;

    block-size: var(--ds-control-height);
}

.ds-segmented-control__option { display: inline-flex; min-inline-size: 0; flex: 0 1 auto; }

.ds-flag-picker { flex-wrap: wrap; block-size: auto; row-gap: var(--ds-space-0-5); }

.ds-flag-picker label { padding-inline: var(--ds-space-1); }

.ds-segmented-control label { min-inline-size: 0; max-inline-size: 100%; white-space: nowrap; }

.ds-segmented-control label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ds-segmented-control input {
    position: absolute;
    width: var(--ds-accessibility-hidden-size);
    height: var(--ds-accessibility-hidden-size);
    overflow: hidden;
    clip-path: inset(var(--ds-accessibility-hidden-inset));
    white-space: nowrap;
}

.ds-segmented-control label { border-radius: 0; background: var(--ds-color-control-background); }

.ds-segmented-control__option:first-of-type label { border-start-start-radius: var(--ds-radius-control); border-end-start-radius: var(--ds-radius-control); }
.ds-segmented-control__option:last-of-type label { border-start-end-radius: var(--ds-radius-control); border-end-end-radius: var(--ds-radius-control); }
.ds-segmented-control__option + .ds-segmented-control__option label { border-inline-start-width: 0; }

.ds-segmented-control input:hover:not(:disabled):not(:checked) + label { background: var(--ds-color-control-hover); }

.ds-segmented-control input:checked + label {
    border-color: var(--ds-color-action);
    background: var(--ds-color-action-subtle);
    box-shadow: inset 0 calc(-1 * var(--ds-border-width-2)) 0 var(--ds-color-action);
    font-weight: var(--ds-font-weight-strong);
}

.ds-segmented-control input:focus-visible + label { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }

.ds-segmented-control input:disabled + label { background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); cursor: not-allowed; }

.ds-button__busy {
    display: inline-block;
    box-sizing: border-box;
    inline-size: 1em;
    block-size: 1em;
    flex: 0 0 auto;
    border: var(--ds-border-width-2) solid currentColor;
    border-block-start-color: transparent;
    border-radius: var(--ds-radius-pill);
    animation: ds-button-busy calc(var(--ds-motion-duration-2) * 5) linear infinite;
}

@keyframes ds-button-busy {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
    .ds-button__busy { animation: none; }
}

.ds-form-width--compact { inline-size: min(100%, var(--ds-field-width-compact)); }
.ds-form-width--short { inline-size: min(100%, var(--ds-field-width-short)); }
.ds-form-width--medium { inline-size: min(100%, var(--ds-field-width-medium)); }
.ds-form-width--wide { inline-size: min(100%, var(--ds-field-width-wide)); }
.ds-form-width--full { inline-size: 100%; }
.ds-form-width--auto { inline-size: max-content; max-inline-size: 100%; }
.ds-form-width--fit { inline-size: max-content; max-inline-size: 100%; }
.ds-form-field.ds-form-width--fit > select { inline-size: auto; max-inline-size: 100%; }
.ds-form-section--bounded { inline-size: min(100%, var(--ds-form-section-max-width)); }
.ds-form-width--compact > :is(input, select, textarea),
.ds-form-width--short > :is(input, select, textarea),
.ds-form-width--medium > :is(input, select, textarea),
.ds-form-width--wide > :is(input, select, textarea),
.ds-form-width--full > :is(input, select, textarea) { box-sizing: border-box; inline-size: 100%; }
.ds-form-field.ds-form-width--compact { --ds-field-width: var(--ds-field-width-compact); }
.ds-form-field.ds-form-width--short { --ds-field-width: var(--ds-field-width-short); }
.ds-form-field.ds-form-width--medium { --ds-field-width: var(--ds-field-width-medium); }
.ds-form-field.ds-form-width--wide { --ds-field-width: var(--ds-field-width-wide); }
.ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) { inline-size: max-content; max-inline-size: 100%; }
.ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) > :is(input, select, textarea, .ds-form-field__date-empty) { inline-size: var(--ds-field-width); max-inline-size: 100%; }
.ds-form-field > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) { white-space: normal; }
.ds-form-field { min-inline-size: 0; }
.ds-form-field > :is(input, select, textarea) { min-inline-size: 0; max-inline-size: 100%; }
.ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) {
    --ds-hint-width: min(max(calc(var(--ds-field-width) + 6rem), 22rem), 26rem, calc(100vw - 4rem));
    inline-size: var(--ds-hint-width);
    margin-inline-end: min(0px, calc(var(--ds-field-width) - var(--ds-hint-width)));
}
.ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide):has(~ .ds-form-field > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error)) > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) {
    inline-size: var(--ds-field-width);
    margin-inline-end: 0;
}
.ds-form-field.ds-form-field--check > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) { contain: none; max-inline-size: var(--ds-field-width-wide); }
.ds-feature-page__form--grid > .ds-form-field:is(.ds-form-width--medium, .ds-form-width--wide) > :is(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) { --ds-hint-width: min(calc(var(--ds-field-width) + 2rem), 26rem, calc(100vw - 4rem)); }
.ds-feature-page__form--grid > .ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) > .ds-form-field__hint { max-inline-size: 100%; margin-inline-end: 0; }
.ds-settings-fields > .ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) > .ds-form-field__hint { inline-size: var(--ds-field-width); max-inline-size: 100%; margin-inline-end: 0; }
.ds-theme-select > .ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) { inline-size: auto; }
.ds-theme-select > .ds-form-field:is(.ds-form-width--compact, .ds-form-width--short, .ds-form-width--medium, .ds-form-width--wide) > .ds-form-field__hint { inline-size: auto; max-inline-size: 100%; margin-inline-end: 0; }

.ds-status-badge {
    display: inline-flex;
    box-sizing: border-box;
    max-inline-size: 100%;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 1.5rem;
    align-items: center;
    gap: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-tone-colour, var(--ds-color-border));
    border-radius: var(--ds-radius-pill);
    background: color-mix(in srgb, var(--ds-tone-colour, transparent) 14%, transparent);
    padding-inline: var(--ds-space-1);
    color: var(--ds-color-text-primary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-medium);
}

.ds-status-badge--wrap {
    flex-shrink: 1;
    min-inline-size: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: var(--ds-radius-surface);
    padding-block: var(--ds-space-0-25);
}

.ds-status-badge[class*="ds-tone--"] { color: var(--ds-color-text-primary); }

.ds-status-badge .ds-icon { color: var(--ds-tone-colour, currentColor); }

.ds-tone--neutral { --ds-tone-colour: var(--ds-color-text-muted); color: var(--ds-tone-colour); }

.ds-tone--info { --ds-tone-colour: var(--ds-color-status-info); color: var(--ds-tone-colour); }
.ds-tone--success { --ds-tone-colour: var(--ds-color-status-success); color: var(--ds-tone-colour); }
.ds-tone--warning { --ds-tone-colour: var(--ds-color-status-warning); color: var(--ds-tone-colour); }
.ds-tone--danger { --ds-tone-colour: var(--ds-color-status-danger); color: var(--ds-tone-colour); }

.ds-overlay-backdrop { position: fixed; inset: 0; z-index: var(--ds-z-overlay); background: var(--ds-color-overlay-scrim); }
.ds-dialog { position: fixed; inset: 50% auto auto 50%; z-index: var(--ds-z-dialog); width: min(38rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); transform: translate(-50%, -50%); overflow: auto; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-surface); background: var(--ds-color-surface); color: var(--ds-color-text); box-shadow: var(--ds-shadow-3); padding: 0; }
.ds-dialog--wide { width: min(62rem, calc(100vw - 2rem)); }
.ds-dialog::backdrop { background: var(--ds-color-overlay-scrim); }
.ds-dialog > header,
.ds-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-1); padding: var(--ds-space-1-5); }
.ds-dialog > header { border-bottom: var(--ds-border-width-1) solid var(--ds-color-border); }
.ds-dialog > footer { border-top: var(--ds-border-width-1) solid var(--ds-color-border); justify-content: end; }
.ds-dialog__content { padding: var(--ds-space-2); }

.ds-dialog__content > .ds-feature-page__form { border: 0; border-radius: 0; background: transparent; padding: 0; }
.ds-dialog__content > .ds-action-result + * { margin-block-start: var(--ds-space-1-5); }
.ds-overlay { position: fixed; inset-block: 0; z-index: var(--ds-z-dialog); width: min(24rem, 88vw); overflow: auto; background: var(--ds-color-surface); box-shadow: var(--ds-shadow-3); }
.ds-overlay--start { inset-inline-start: 0; }
.ds-overlay--end { inset-inline-end: 0; }

@media (max-width: 48rem) {
    .ds-toolbar { align-items: stretch; flex-direction: column; }
    .ds-toolbar__primary, .ds-toolbar__secondary { width: 100%; }
    .ds-tab-bar { margin-inline: calc(var(--ds-space-1) * -1); border-inline: 0; border-radius: 0; padding-inline: var(--ds-space-1); }
    .ds-dashboard-bar > .ds-tab-bar { margin-inline: 0; }
    .ds-form-width--medium,
    .ds-form-width--wide { inline-size: 100%; }
    .ds-form-field:is(.ds-form-width--medium, .ds-form-width--wide) { inline-size: 100%; --ds-field-width: 100%; }
    .ds-form-field:is(.ds-form-width--medium, .ds-form-width--wide) > :is(input, select, textarea, .ds-form-field__date-empty) { inline-size: 100%; }
}

html {
    font-family: var(--ds-font-family-sans);
    background: var(--ds-color-background-app);
    color: var(--ds-color-text-primary);
}

body {
    min-height: 100vh;
    margin: var(--ds-space-0);
    background: var(--ds-color-background-app);
    color: var(--ds-color-text-primary);
    font-size: var(--ds-text-body-size);
    line-height: var(--ds-line-height-default);
}

html:has(.ds-app-shell),
body:has(.ds-app-shell) {
    height: 100%;
    overflow: hidden;
}

@media (max-width: 64rem) {
    :root {
        --ds-layout-assistant-reserve: var(--ds-space-3);
    }
}

@media (max-width: 48rem) {
    :root {
        --ds-layout-assistant-reserve: var(--ds-space-2);
    }
}

body:has(.ds-assistant-launcher:not(.is-hidden)) .ds-app-shell__content {
    padding-block-end: var(--ds-layout-assistant-reserve);
}

body:has(.ds-assistant-spotlight) .ds-app-shell__content:not(:has(.ds-home)) {
    padding-block-end: calc(4rem + 2 * var(--ds-space-3));
}

@media (max-width: 64rem) {
    body:has(.ds-assistant-launcher) .ds-app-shell__content:has(.ds-home),
    body:has(.ds-assistant-spotlight) .ds-app-shell__content:has(.ds-home) {
        padding-block-end: 0;
    }

    body:has(.ds-assistant-spotlight) .ds-app-shell__content:not(:has(.ds-home)) {
        padding-block-end: var(--ds-layout-assistant-reserve);
    }
}

button,
a {
    font: inherit;
}

select {
    inline-size: auto;
    max-inline-size: 100%;
    justify-self: start;
}

input,
select,
textarea {
    box-sizing: border-box;
    min-height: var(--ds-control-height);
    font: inherit;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-control-background);
    color: var(--ds-color-text-primary);
    padding: var(--ds-space-0-25) var(--ds-space-0-75);
    line-height: var(--ds-line-height-default);
}

input:hover,
select:hover,
textarea:hover {
    background-color: var(--ds-color-control-hover);
}

select,
input:is([type="date"], [type="time"], [type="datetime-local"]) {
    -webkit-appearance: none;
    appearance: none;
}

input:is([type="date"], [type="time"], [type="datetime-local"]) {
    min-inline-size: 0;
    max-inline-size: 100%;
    text-align: start;
}

input:is([type="date"], [type="time"], [type="datetime-local"])::-webkit-date-and-time-value {
    min-block-size: 1lh;
    text-align: start;
}

select {
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right calc(var(--ds-space-0-75) + 0.3rem) center, right var(--ds-space-0-75) center;
    background-size: 0.3rem 0.3rem;
    background-repeat: no-repeat;
    padding-inline-end: calc(var(--ds-space-0-75) + 1rem);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--ds-color-focus);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--ds-color-text-secondary);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: var(--ds-color-control-disabled);
    color: var(--ds-color-text-disabled);
}

input:read-only,
textarea:read-only {
    background: var(--ds-color-surface);
    cursor: default;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--ds-color-danger);
}

input[aria-invalid="true"]:focus-visible,
select[aria-invalid="true"]:focus-visible,
textarea[aria-invalid="true"]:focus-visible {
    border-color: var(--ds-color-danger);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--ds-color-text-primary);
    box-shadow: inset 0 0 0 100rem var(--ds-color-control-background);
    caret-color: var(--ds-color-text-primary);
    transition: background-color 100000s ease-in-out 0s;
}
input[type="checkbox"],
input[type="radio"] {
    min-height: auto;
    accent-color: var(--ds-color-action);
}

button {
    appearance: none;
    margin: var(--ds-space-0);
    border: 0;
    background: transparent;
    padding: var(--ds-space-0);
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
}

a[role="button"] {
    text-decoration: none;
}

button:not(:disabled),
a[role="button"] {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    color: var(--ds-color-text-disabled);
}

a {
    color: inherit;
}

.ds-auth {
    display: grid;
    align-items: center;
    min-height: min(40rem, 100%);
    max-width: var(--ds-layout-content-readable);
}

.ds-auth__panel {
    display: grid;
    gap: var(--ds-space-1);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-2);
    padding: var(--ds-space-3);
}

.ds-auth__eyebrow,
.ds-auth h1,
.ds-auth p {
    margin: var(--ds-space-0);
}

.ds-auth__eyebrow {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-strong);
    text-transform: uppercase;
}

.ds-auth__form,
.ds-auth__field,
.ds-auth__group {
    display: grid;
    gap: var(--ds-space-0-75);
}

.ds-auth__form--registration {
    gap: var(--ds-space-1);
    max-width: min(52rem, 100%);
}

.ds-auth__group {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-1);
    margin: var(--ds-space-0);
    padding: var(--ds-space-1);
}

.ds-auth__group legend {
    color: var(--ds-color-text);
    font-weight: var(--ds-font-weight-strong);
    padding-inline: var(--ds-space-0-5);
}

.ds-auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(12rem, 1fr));
    gap: var(--ds-space-1);
}

.ds-auth__field span,
.ds-auth__check {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-label-size);
    font-weight: var(--ds-font-weight-medium);
}

.ds-auth__field input {
    width: 100%;
}

.ds-auth__check,
.ds-auth__actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-0-75);
}

.ds-auth__actions {
    flex-wrap: wrap;
}

.ds-auth__submit {
    border-color: var(--ds-color-action);
    background: var(--ds-color-control-background);
    color: var(--ds-color-text-primary);
    font-weight: var(--ds-font-weight-strong);
}

.ds-auth__link-button {
    display: inline-flex;
    align-items: center;
    min-height: var(--ds-control-height-sm);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-control-background);
    color: var(--ds-color-text);
    padding: 0 var(--ds-space-1);
    text-decoration: none;
}

.ds-auth__link-button:hover,
.ds-auth__link-button:focus-visible {
    border-color: var(--ds-color-action);
}

.ds-auth__message {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-warning);
    padding: var(--ds-space-1);
}

@media (max-width: 48rem) {
    .ds-auth__grid {
        grid-template-columns: 1fr;
    }
}

:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset);
}

.ds-skip-link {
    position: fixed;
    inset-block-start: var(--ds-space-1);
    inset-inline-start: var(--ds-space-1);
    z-index: var(--ds-z-critical);
    transform: translateY(-150%);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-action);
    color: var(--ds-color-on-action);
    padding: var(--ds-space-1) var(--ds-space-1-5);
    text-decoration: none;
    transition: transform var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}

.ds-skip-link:focus-visible {
    transform: translateY(0);
}

.ds-setup-shell {
    min-height: 100vh;
    background: var(--ds-color-background);
    color: var(--ds-color-text);
}

.ds-feature-page {
    display: grid;
    gap: var(--ds-space-2);

    margin-inline: auto;
    width: 100%;
}

.ds-feature-page--wide {
    max-width: none;
}

.ds-feature-page__header,
.ds-feature-page__section-heading {
    display: grid;
    gap: var(--ds-space-1);
}

.ds-feature-page__header {
    border-bottom: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-end: var(--ds-space-2);
}

.ds-feature-page__header p,
.ds-feature-page__section-heading p,
.ds-feature-page__boundary p,
.ds-feature-page__state-panel p {
    max-width: var(--ds-layout-content-readable);
    color: var(--ds-color-text-secondary);
}

.ds-feature-page__eyebrow,
.ds-feature-page__state {
    color: var(--ds-color-text-secondary);
}

.ds-feature-page__explanation,
.ds-feature-page__section,
.ds-feature-page__boundary,
.ds-feature-page__state-panel {
    display: grid;
    gap: var(--ds-space-2);
}

.ds-fact-list {
    margin: var(--ds-space-0);
}

.ds-fact-list > div {
    min-inline-size: var(--ds-space-0);
}

.ds-fact-list dt {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-fact-list dd {
    margin: var(--ds-space-0);
    color: var(--ds-color-text);
    overflow-wrap: anywhere;
}

.ds-fact-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 20rem));
    justify-content: start;
    gap: var(--ds-space-1) var(--ds-space-3);
}

.ds-fact-list--grid > div {
    display: grid;
    gap: var(--ds-space-0-25);
}

.ds-fact-list--rows {
    display: grid;
    gap: var(--ds-space-0-5);
}

.ds-fact-list--rows > div {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    gap: var(--ds-space-2);
    align-items: baseline;
}

.ds-feature-page__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--ds-layout-tile-size), 18rem));
    gap: var(--ds-space-2);
}

.ds-feature-page__tile {
    display: grid;
    gap: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    padding: var(--ds-space-1);
    text-decoration: none;
    min-block-size: 4.75rem;
    align-content: center;
}

.ds-feature-page__tile:hover,
.ds-feature-page__tile:focus-visible {
    border-color: var(--ds-color-action);
}

.ds-wizard {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: var(--ds-space-4);
    background:
        radial-gradient(circle at top left, var(--ds-color-surface-subtle), transparent 32rem),
        var(--ds-color-background);
    color: var(--ds-color-text);
}

.ds-wizard__state {
    width: min(100%, 58rem);
    box-sizing: border-box;
    min-width: 0;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-2);
}
.ds-wizard__state {
    display: grid;
    gap: var(--ds-space-2);
    padding: var(--ds-space-4);
}

.ds-wizard__steps {
    display: grid;
    gap: var(--ds-space-0-25);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-wizard__step button {
    width: 100%;
    min-height: 2.25rem;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    grid-template-areas:
        "index label"
        "index state";
    column-gap: var(--ds-space-0-75);
    align-items: center;
    border: var(--ds-border-width-1) solid transparent;
    border-radius: var(--ds-radius-control);
    background: transparent;
    color: var(--ds-color-text-secondary);
    padding: var(--ds-space-0-5);
    text-align: left;
}

.ds-wizard__step button:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-wizard__field input:focus-visible,
.ds-wizard__field select:focus-visible {
    border-color: var(--ds-color-focus);
    outline: none;
}

.ds-wizard__step--completed button {
    color: var(--ds-color-text);
}

.ds-wizard__step--active button {
    border-color: transparent;
    background: var(--ds-color-action-subtle);
    color: var(--ds-color-text);
}

.ds-wizard__step--upcoming button {
    cursor: not-allowed;
    color: var(--ds-color-text-secondary);
}

.ds-wizard__step-index {
    grid-area: index;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-medium);
}

.ds-wizard__step-label {
    grid-area: label;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: var(--ds-line-height-tight);
    font-weight: var(--ds-font-weight-medium);
}

.ds-wizard__step button:focus-visible .ds-wizard__step-label,
.ds-wizard__step--active .ds-wizard__step-label { white-space: normal; }

@media (hover: none) {
    .ds-wizard__step-label { white-space: normal; }
}

.ds-wizard__step-state {
    grid-area: state;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    line-height: var(--ds-line-height-tight);
}
.ds-wizard__field {
    display: grid;
    gap: var(--ds-space-0-5);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-wizard__field-label {
    display: flex;
    align-items: baseline;
    gap: var(--ds-space-0-5);
    min-width: 0;
}

.ds-wizard__field-requirement {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-medium);
}

.ds-wizard__field input,
.ds-wizard__field select,
.ds-wizard__logo-panel input {
    box-sizing: border-box;
    min-height: var(--ds-control-height);
    width: 100%;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    padding: var(--ds-space-0-75) var(--ds-space-1);
}

.ds-wizard__field-error {
    color: var(--ds-color-danger);
    font-size: var(--ds-text-body-small-size);
    min-height: 1.2em;
    line-height: 1.2;
}

.ds-wizard__field-error--empty {
    color: transparent;
}

.ds-password-rules {
    flex: 1 0 100%;
    max-inline-size: var(--ds-field-width-wide);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
    padding: var(--ds-space-1-5);
}

.ds-password-rules h2 {
    margin: 0 0 var(--ds-space-0-75);
    font-size: var(--ds-text-label-size);
}

.ds-password-rules ul {
    display: grid;
    gap: var(--ds-space-0-5);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-password-rules li {
    display: flex;
    gap: var(--ds-space-0-75);
}

.ds-password-rules li.is-satisfied {
    color: var(--ds-color-success);
}

.ds-password-rules li.is-mismatch {
    color: var(--ds-color-danger);
}

.ds-wizard__logo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10rem;
    gap: var(--ds-space-2);
    align-items: center;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
    padding: var(--ds-space-2);
}

.ds-wizard__logo-panel h2 {
    font-size: var(--ds-text-body-size);
}

.ds-wizard__logo-preview {
    display: grid;
    place-items: center;
    width: 10rem;
    height: 5rem;
    margin: 0;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-surface);
}

.ds-wizard__logo-preview img {
    max-width: 8rem;
    max-height: 3.5rem;
    object-fit: contain;
}

.ds-wizard__section {
    display: grid;
    gap: var(--ds-space-1-5);
}

.ds-wizard__section + .ds-wizard__section {
    border-top: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-top: var(--ds-space-2);
}

.ds-wizard__section h2 {
    font-size: var(--ds-text-body-size);
}

.ds-wizard__logo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-1);
}

.ds-wizard__review-section {
    display: grid;
    gap: var(--ds-space-0-75);
}

.ds-wizard__review-section + .ds-wizard__review-section {
    border-top: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-top: var(--ds-space-2);
}

.ds-wizard__review-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ds-space-1);
}

.ds-wizard__review-header h2 {
    font-size: var(--ds-text-body-size);
}

.ds-wizard__review-change {
    border: 0;
    background: none;
    color: var(--ds-color-action);
    padding: 0;
    font: inherit;
    font-size: var(--ds-text-body-small-size);
    cursor: pointer;
}

.ds-wizard__review-change:focus-visible {
    outline: none;
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset);
}

.ds-wizard__result {
    display: grid;
    gap: var(--ds-space-1);
    border: var(--ds-border-width-1) solid var(--ds-color-warning);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    padding: var(--ds-space-2);
}

@media (max-width: 48rem) {
    .ds-wizard {
        align-items: start;
        padding: var(--ds-space-2);
    }
    .ds-wizard__logo-panel {
        grid-template-columns: 1fr;
    }

    .ds-fact-list--rows > div {
        grid-template-columns: 1fr;
        gap: var(--ds-space-0-25);
    }

    .ds-wizard__logo-preview {
        width: 100%;
    }
}

.ds-feature-page__tile span,
.ds-feature-page__tile em {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-feature-page__tile em {
    font-style: normal;
    margin-block-start: var(--ds-space-1);
}

.ds-feature-page__tile-code {
    font-size: var(--ds-text-caption-size);
    text-transform: uppercase;
}

.ds-module-entry {
    display: grid;
    gap: var(--ds-space-2);
}

.ds-module-entry__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: var(--ds-space-1);
}

.ds-module-entry__tile {
    display: grid;
    gap: var(--ds-space-0-5);
    align-content: start;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    padding: var(--ds-space-1);
    text-decoration: none;
}

.ds-module-entry__tile:hover,
.ds-module-entry__tile:focus-visible {
    border-color: var(--ds-color-action);
    outline: none;
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset);
}

.ds-module-entry__tile-code {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    text-transform: none;
}

.ds-module-entry__tile-name {
    font-weight: var(--ds-font-weight-strong);
}

.ds-feature-page__boundary,
.ds-feature-page__state-panel,
.ds-feature-page__list > li {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-raised);
    padding: var(--ds-space-2);
}

.ds-feature-page__list {
    display: grid;
    gap: var(--ds-space-2);
    list-style: none;
    padding: 0;
}

.ds-feature-page__list > li {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    align-items: center;
}

.ds-feature-page__form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    align-items: end;
}

.ds-feature-page__form label {
    display: grid;
    gap: var(--ds-space-1);
    color: var(--ds-color-text-secondary);
}

.ds-feature-page__state {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface-raised);
    padding: var(--ds-space-2);
}

.ds-feature-page__section + .ds-feature-page__section {
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-start: var(--ds-space-2);
}

.ds-feature-page__header {
    border-bottom: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-end: var(--ds-space-2);
}

.ds-feature-page__header,
.ds-feature-page__section,
.ds-feature-page__section-heading {
    display: grid;
    gap: var(--ds-space-1);
}

.ds-feature-page__section {
    gap: var(--ds-space-2);
    min-width: 0;
}

.ds-feature-page__section-heading {
    gap: var(--ds-space-0-5);
}

.ds-feature-page__eyebrow,
.ds-feature-page h1,
.ds-feature-page h2,
.ds-feature-page p {
    margin: var(--ds-space-0);
}

.ds-feature-page__eyebrow,
.ds-feature-page__quick-code {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    text-transform: uppercase;
}

.ds-feature-page h1 {
    font-size: var(--ds-text-page-title-size);
    line-height: var(--ds-line-height-tight);
}

.ds-feature-page h2 {
    font-size: var(--ds-text-section-title-size);
    line-height: var(--ds-line-height-tight);
}

.ds-feature-page__quick-nav,
.ds-feature-page__list,
.ds-feature-page__stats {
    display: grid;
    gap: var(--ds-space-1);
}

.ds-feature-page__quick-nav {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.ds-feature-page__quick-link,
.ds-feature-page__item,
.ds-feature-page__stat,
.ds-feature-page__context,
.ds-feature-page__optional-details {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface-subtle);
}

.ds-feature-page__quick-link {
    display: grid;
    gap: var(--ds-space-0-5);
    align-content: center;
    min-height: 4.75rem;
    color: var(--ds-color-text);
    padding: var(--ds-space-1);
    text-decoration: none;
}

.ds-feature-page__quick-link:hover,
.ds-feature-page__quick-link:focus-visible {
    border-color: var(--ds-color-action);
    outline: none;
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset);
}

.ds-feature-page__quick-name {
    font-weight: var(--ds-font-weight-strong);
}

.ds-feature-page__button {
    width: fit-content;
}

.ds-feature-page__form {
    display: grid;
    grid-template-columns: minmax(16rem, 28rem) auto;
    gap: var(--ds-space-1);
    align-items: end;
}

.ds-feature-page__form--grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--ds-space-1) var(--ds-space-1-5);
}

.ds-feature-page__form--grid > * {
    flex: 0 1 auto;
    min-inline-size: 0;
    max-inline-size: 100%;
}

.ds-feature-page__form--grid > :is(.ds-feature-page__form-wide, .ds-form-width--full, .ds-form-field--check) {
    flex-basis: 100%;
}

.ds-feature-page__form--grid:has(> * :is(.ds-search-bar > span:first-child:not(.ds-visually-hidden), .ds-form-field__label, .ds-file-picker__label)) > :is(.ds-feature-page__actions, .ds-button):not(:first-child):not(:is(.ds-feature-page__form-wide, .ds-form-width--full, .ds-form-field--check) + *) {
    align-self: flex-end;
}

.ds-feature-page__form--grid:has(> * :is(.ds-search-bar > span:first-child:not(.ds-visually-hidden), .ds-form-field__label, .ds-file-picker__label)):has(.ds-form-field__hint, .ds-form-field__warning, .ds-form-field__error) > :is(.ds-feature-page__actions, .ds-button):not(:first-child):not(:is(.ds-feature-page__form-wide, .ds-form-width--full, .ds-form-field--check) + *) {
    align-self: flex-start;
    margin-block-start: var(--ds-field-label-offset);
}

.ds-feature-page__form label {
    display: grid;
    gap: var(--ds-space-0-5);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-label-size);
}

.ds-feature-page__form textarea {
    min-height: calc(var(--ds-control-height) + var(--ds-space-2));
    resize: vertical;
}

.ds-feature-page__form-wide {
    grid-column: span 2;
}

.ds-feature-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-1);
    align-items: center;
}

.ds-feature-page__optional-details {
    display: grid;
    gap: var(--ds-space-0-75);
    padding: var(--ds-space-0-75) var(--ds-space-1);
}

.ds-feature-page__optional-details summary {
    color: var(--ds-color-text-secondary);
    cursor: pointer;
    font-size: var(--ds-text-label-size);
    font-weight: var(--ds-font-weight-strong);
}

.ds-feature-page__optional-details textarea {
    margin-top: var(--ds-space-0-75);
    width: 100%;
}

.ds-collapsible-panel {
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    padding: var(--ds-space-0-75) var(--ds-space-1);
}

.ds-collapsible-panel > summary {
    cursor: pointer;
    font-weight: var(--ds-font-weight-semibold);
}

.ds-feature-page__validation,
.ds-feature-page__message {
    grid-column: 1 / -1;
    color: var(--ds-color-warning);
    font-size: var(--ds-text-label-size);
}

.ds-feature-page__item {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto auto;
    gap: var(--ds-space-1);
    align-items: center;
    padding: var(--ds-space-1);
}

.ds-feature-page__muted,
.ds-feature-page__item small,
.ds-feature-page__context {
    color: var(--ds-color-text-secondary);
}

.ds-feature-page__context {
    width: fit-content;
    padding: var(--ds-space-0-5) var(--ds-space-1);
    font-size: var(--ds-text-label-size);
}

.ds-feature-page__context strong {
    color: var(--ds-color-text);
}

.ds-feature-page__table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
}

.ds-table-scroll {
    max-inline-size: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ds-table-scroll:has(.ds-action-menu__panel),
.ds-feature-page__table-wrap:has(.ds-action-menu__panel) {
    overflow: visible;
}

.ds-header__menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.4rem;
    width: 100%;
    box-sizing: border-box;
    gap: var(--ds-space-0-75);
    border: 0;
    border-radius: var(--ds-radius-control);
    background: transparent;
    color: var(--ds-color-text);
    cursor: pointer;
    font: inherit;
    padding-inline: var(--ds-space-0-75);
    text-align: start;
    text-decoration: none;
}

.ds-header__menu-item:hover {
    background: var(--ds-color-control-hover);
}

.ds-header__menu-item[aria-current="page"] {
    background: var(--ds-color-action-subtle);
}

.ds-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: var(--ds-space-1-5);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
}

.ds-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--ds-space-1-5);
    align-items: start;
    min-inline-size: 0;
}

.ds-card {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    padding: var(--ds-space-1-5);
    box-shadow: var(--ds-shadow-1);
}

.ds-card > h3 {
    margin: var(--ds-space-0);
    font-size: var(--ds-text-body-size);
    font-weight: var(--ds-font-weight-strong);
}

.ds-card__meta {
    margin: var(--ds-space-0);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-5);
    margin-block-start: auto;
    padding-block-start: var(--ds-space-0-75);
}

.ds-key-values {
    display: grid;
    gap: var(--ds-space-0-5);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
}

.ds-key-values > li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ds-space-1);
    font-size: var(--ds-text-body-small-size);
}

.ds-key-values > li > span {
    color: var(--ds-color-text-secondary);
}

.ds-key-values > li > strong {
    font-variant-numeric: tabular-nums;
}

.ds-metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 13rem));
    justify-content: start;
    gap: var(--ds-space-1);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
}

@media (max-width: 48rem) {
    .ds-metric-row {
        grid-template-columns: 1fr;
    }
}

.ds-metric {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-0-25);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    padding: var(--ds-space-1);
}

.ds-metric__value {
    font-size: var(--ds-text-title-size);
    font-weight: var(--ds-font-weight-strong);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.ds-metric__label {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ds-space-1);
    border: var(--ds-border-width-1) dashed var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-raised);
    padding: var(--ds-space-2);
}

.ds-empty-state > p {
    margin: var(--ds-space-0);
    color: var(--ds-color-text-secondary);
}

.ds-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--ds-space-0-5);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
    font-size: var(--ds-text-body-small-size);
}

.ds-breadcrumb > li + li::before {
    margin-inline-end: var(--ds-space-0-5);
    color: var(--ds-color-text-muted);
    content: "/";
}

.ds-feature-page__table,
.ds-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ds-color-surface);
    color: var(--ds-color-text-primary);
}

.ds-feature-page__table th,
.ds-feature-page__table td,
.ds-table th,
.ds-table td {
    border-bottom: var(--ds-border-width-1) solid var(--ds-color-border);
    padding: var(--ds-space-0-75) var(--ds-space-1);
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
}

.ds-feature-page__table th,
.ds-table th {
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-strong);
    text-transform: uppercase;
}

.ds-feature-page__table tbody tr:hover td,
.ds-table tbody tr:hover td {
    background: var(--ds-color-surface-raised);
}

.ds-feature-page__table tbody tr.is-selected td,
.ds-table tbody tr.is-selected td,
.ds-feature-page__table tbody tr[aria-selected="true"] td,
.ds-table tbody tr[aria-selected="true"] td {
    background: var(--ds-color-action-subtle);
    box-shadow: inset var(--ds-border-width-2) 0 0 var(--ds-color-action);
}

.ds-feature-page__table tbody tr:last-child td,
.ds-table tbody tr:last-child td {
    border-bottom: 0;
}

.ds-table--master-selectable tbody tr {
    cursor: pointer;
}

.ds-table--master-selectable tbody tr.is-selected td,
.ds-table--master-selectable tbody tr[aria-selected="true"] td {
    background: var(--ds-color-tree-selected-background);
    box-shadow: none;
}

.ds-table--master-selectable tbody tr.is-selected:hover td,
.ds-table--master-selectable tbody tr[aria-selected="true"]:hover td {
    background: var(--ds-color-tree-selected-hover-background);
}

.ds-table--master-selectable tbody tr.is-selected td:first-child,
.ds-table--master-selectable tbody tr[aria-selected="true"] td:first-child {
    box-shadow: inset var(--ds-border-width-2) 0 0 var(--ds-color-action);
}

.ds-table--master-selectable tbody tr:focus-visible {
    outline: var(--ds-border-width-2) solid var(--ds-color-focus);
    outline-offset: calc(-1 * var(--ds-border-width-2));
}

.ds-feature-page__stats,
.ds-feature-page__status-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.ds-feature-page__stat {
    padding: var(--ds-space-1);
}

@media (max-width: 64rem) {
    .ds-feature-page__form-wide {
        grid-column: span 2;
    }
}

@media (max-width: 48rem) {
    .ds-feature-page__form,
    .ds-feature-page__form--grid,
    .ds-feature-page__item {
        grid-template-columns: 1fr;
    }

    .ds-feature-page__form-wide {
        grid-column: span 1;
    }

    .ds-feature-page__form--grid {
        --ds-field-label-offset: 0rem;
    }
}
.ds-selection-list__item {
    padding: var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-surface);
    color: var(--ds-color-text);
    font: inherit;
    cursor: pointer;
}

.ds-selection-list__item:hover {
    background: var(--ds-color-surface-raised);
}

.ds-selection-list__item.is-selected {
    border-inline-start-color: var(--ds-color-action);
    background: var(--ds-color-tree-selected-background);
}

.ds-selection-list__item:focus-visible {
    outline: var(--ds-border-width-2) solid var(--ds-color-focus);
    outline-offset: var(--ds-space-0-25);
}

.ds-compact-record {
    padding: var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
}

.ds-secondary-text {
    color: var(--ds-color-text-secondary);
}

.ds-section-divider {
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-priority-dot { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); white-space: nowrap; }

.ds-priority-dot::before {
    content: "";
    inline-size: var(--ds-space-1);
    block-size: var(--ds-space-1);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-priority-colour, var(--ds-color-text-muted));
    flex: 0 0 auto;
}

.ds-priority-dot--critical { --ds-priority-colour: var(--ds-color-priority-critical); }
.ds-priority-dot--high { --ds-priority-colour: var(--ds-color-priority-high); }
.ds-priority-dot--normal { --ds-priority-colour: var(--ds-color-priority-normal); }
.ds-priority-dot--low { --ds-priority-colour: var(--ds-color-priority-low); }

.ds-visually-hidden {
    position: absolute;
    inline-size: var(--ds-border-width-1);
    block-size: var(--ds-border-width-1);
    padding: var(--ds-space-0);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ds-maturity {
    display: inline-flex;
    align-items: center;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-pill);
    padding-inline: var(--ds-space-0-5);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-semibold);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ds-maturity--planned { --ds-maturity-colour: var(--ds-color-maturity-planned); }
.ds-maturity--alpha { --ds-maturity-colour: var(--ds-color-maturity-alpha); }
.ds-maturity--beta { --ds-maturity-colour: var(--ds-color-maturity-beta); }
.ds-maturity--rc { --ds-maturity-colour: var(--ds-color-maturity-rc); }
.ds-maturity--release { --ds-maturity-colour: var(--ds-color-maturity-release); }

.ds-maturity[class*="ds-maturity--"] {
    border-color: color-mix(in srgb, var(--ds-maturity-colour) 70%, transparent);
    background: color-mix(in srgb, var(--ds-maturity-colour) 16%, transparent);
    color: var(--ds-color-text-primary);
}

.ds-context-bar {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        calc(var(--ds-layout-header-bay-half) * 2)
        minmax(0, 1fr);
    align-items: center;
    block-size: var(--ds-layout-context-bar-height);
    padding-inline: var(--ds-space-2);
}

.ds-context-bar__aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-2);
    min-inline-size: var(--ds-space-0);
    padding-inline-start: var(--ds-space-2);
}

.ds-context-bar__end {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    min-inline-size: var(--ds-space-0);
}

.ds-context-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-5);
}

.ds-context-bar__back {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-5);
    border: 0;
    background: transparent;
    padding: var(--ds-space-0);
    color: var(--ds-color-text-secondary);
    font: inherit;
    font-size: var(--ds-text-label-size);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.ds-context-bar__back:hover {
    color: var(--ds-color-text-primary);
    text-decoration: underline;
}

.ds-context-bar__back:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-context-bar__trail {
    min-inline-size: var(--ds-space-0);
    overflow: hidden;
    padding-inline-end: var(--ds-space-2);
}

.ds-context-bar__trail ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: var(--ds-space-0-5);
    margin: var(--ds-space-0);
    padding: var(--ds-space-0);
    list-style: none;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-label-size);
}

.ds-context-bar__trail li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-context-bar__trail li:last-child { flex: 0 0 auto; max-inline-size: 100%; }

.ds-context-bar__trail li:focus-within { overflow: visible; white-space: normal; overflow-wrap: anywhere; }

@media (hover: none) {
    .ds-context-bar__trail li { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
}

.ds-context-bar__trail li + li::before { content: "/"; margin-inline-end: var(--ds-space-0-5); opacity: .6; }
.ds-context-bar__trail a { color: inherit; text-decoration: none; }
.ds-context-bar__trail a:hover { color: var(--ds-color-text-primary); text-decoration: underline; }
.ds-context-bar__trail [aria-current="page"] { color: var(--ds-color-text-primary); }

.ds-context-bar__aside > .ds-module-identity {
    min-inline-size: var(--ds-space-0);
    overflow: hidden;
    justify-content: end;
}

@media (width <= 64rem) and (width > 30rem) {
    .ds-context-bar .ds-module-identity__name { display: none; }
}

.ds-workspace-header { display: grid; gap: var(--ds-space-1); margin-block-end: var(--ds-space-2); }

.ds-module-identity {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-5);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-label-size);
    white-space: nowrap;
}

.ds-module-identity__version { color: var(--ds-color-text-primary); font-weight: var(--ds-font-weight-medium); text-transform: none; }

.ds-workspace-header__pages .ds-tab-bar {
    gap: var(--ds-space-1);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
    padding-block-end: var(--ds-space-0-5);
    font-size: var(--ds-text-label-size);
}

.ds-workspace-header__pages .ds-tab-bar a,
.ds-workspace-header__pages .ds-tab-bar button,
.ds-workspace-header__pages .ds-tab-bar summary {
    min-height: var(--ds-space-3);
    border-radius: var(--ds-space-0);
    padding-inline: var(--ds-space-0-25);
}

.ds-workspace-header__pages .ds-tab-bar a:hover,
.ds-workspace-header__pages .ds-tab-bar button:hover,
.ds-workspace-header__pages .ds-tab-bar summary:hover { background: transparent; color: var(--ds-color-text-primary); }

.ds-workspace-header__pages .ds-tab-bar .is-active {
    color: var(--ds-color-text-primary);
    font-weight: var(--ds-font-weight-medium);
    box-shadow: inset 0 calc(var(--ds-border-width-1) * -1) 0 0 var(--ds-color-action);
}

@media (max-width: 48rem) {
    .ds-workspace-header { gap: var(--ds-space-0-75); margin-block-end: var(--ds-space-1-5); }
}

.ds-search-picker { display: grid; gap: var(--ds-space-0-5); min-inline-size: 0; }
.ds-search-picker__field { display: grid; gap: var(--ds-space-0-5); }
.ds-search-picker__label { font-weight: 600; }
.ds-search-picker__selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-1);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-0-5) var(--ds-space-1);
    background: var(--ds-color-surface-raised);
}
.ds-search-picker__text,
.ds-search-picker__option { display: grid; gap: var(--ds-space-0-5); min-inline-size: 0; }
.ds-search-picker__text small,
.ds-search-picker__option small { color: var(--ds-color-text-secondary); overflow-wrap: anywhere; }
.ds-search-picker__options {
    list-style: none;
    margin: 0;
    padding: var(--ds-space-0-5);
    display: grid;
    gap: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-1);
}
.ds-search-picker__option {
    inline-size: 100%;
    justify-content: start;
    justify-items: start;
    border: 0;
    border-radius: var(--ds-radius-sm);
    padding: var(--ds-space-0-5) var(--ds-space-1);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.ds-search-picker__option:hover,
.ds-search-picker__option:focus-visible { background: var(--ds-color-surface-raised); }
.ds-search-picker__empty { padding: var(--ds-space-0-5) var(--ds-space-1); color: var(--ds-color-text-secondary); }
.ds-search-picker__error { color: var(--ds-color-status-danger); }
.ds-search-picker.is-invalid input { border-color: var(--ds-color-danger); }

[data-ds-tooltip] { position: relative; }
[data-ds-tooltip]:hover::after,
[data-ds-tooltip]:focus-visible::after {
    content: attr(data-ds-tooltip);
    position: absolute;
    inset-block-end: calc(100% + var(--ds-space-0-5));
    inset-inline-start: 50%;
    z-index: var(--ds-z-dropdown);
    transform: translateX(-50%);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-text-primary);
    padding: var(--ds-space-0-25) var(--ds-space-0-75);
    color: var(--ds-color-surface);
    font-size: var(--ds-text-body-small-size);
    font-weight: var(--ds-font-weight-medium);
    white-space: nowrap;
    pointer-events: none;
}

.ds-dialog > header [data-ds-tooltip]:hover::after,
.ds-dialog > header [data-ds-tooltip]:focus-visible::after,
.ds-overlay > header [data-ds-tooltip]:hover::after,
.ds-overlay > header [data-ds-tooltip]:focus-visible::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: none;

    inset-block-end: auto;
    inset-block-start: calc(100% + var(--ds-space-0-5));
}

@media (hover: none) {
    [data-ds-tooltip]:hover:not(:focus-visible)::after { content: none; }
}

.ds-card--link,
.ds-metric--link {
    position: relative;
    transition: border-color var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}
.ds-card--link:hover,
.ds-metric--link:hover {
    border-color: var(--ds-color-border-strong);
    background: var(--ds-color-surface-raised);
}
.ds-card--link:has(.ds-card__link:focus-visible),
.ds-metric--link:has(.ds-metric__link:focus-visible) {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset);
}
.ds-card__link,
.ds-metric__link {
    color: inherit;
    text-decoration: none;
}
.ds-card__link:focus-visible,
.ds-metric__link:focus-visible { outline: none; }
.ds-card__link::after,
.ds-metric__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.ds-card--link .ds-card__actions,
.ds-card--link .ds-card__corner {
    position: relative;
    z-index: 1;
}

.ds-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-1);
}
.ds-card__header > h3 {
    margin: var(--ds-space-0);
    font-size: var(--ds-text-body-size);
    font-weight: var(--ds-font-weight-strong);
}
.ds-card__corner {
    display: flex;
    flex: 0 0 auto;
    gap: var(--ds-space-0-25);
}

.ds-table__actions,
.ds-table th.ds-table__actions,
.ds-table-workbench th.ds-table__actions {
    text-align: end;
}

.ds-table__action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--ds-space-0-25);
}

.ds-table td.ds-table__actions {
    inline-size: 1%;
    white-space: nowrap;
}

.ds-table td.ds-table__actions > .ds-table__action-row {
    flex-wrap: nowrap;
}

.ds-table:has(> tbody > tr > td.ds-table__actions:last-child) > thead > tr > th:last-child {
    text-align: end;
}

:is(.ds-table, .ds-table-scroll, .ds-table-workbench) + .ds-feature-page__actions {
    margin-block-start: var(--ds-space-1);
}

.ds-side-panel:focus {
    outline: none;
}

.ds-feature-page__section--flat {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow-x: visible;
}
.ds-feature-page__section-heading--with-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ds-space-1);
}

.ds-feature-page__section-heading--with-actions > h3 {
    margin: var(--ds-space-0);
    font-size: var(--ds-text-heading-3-size);
    font-weight: var(--ds-font-weight-strong);
}

.ds-section-card .ds-feature-page__section-heading--with-actions > h3 {
    font-size: var(--ds-text-label-size);
    color: var(--ds-color-text-secondary);
}

.ds-action-menu {
    position: relative;
    display: inline-flex;
}
.ds-action-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--ds-z-dropdown);
}
.ds-action-menu__panel {
    position: absolute;
    inset-block-start: calc(100% + var(--ds-space-0-25));
    inset-inline-end: 0;
    z-index: calc(var(--ds-z-dropdown) + 1);
    --ds-menu-edge: 8px;
    --ds-menu-shift: 0px;
    display: grid;
    min-width: min(var(--ds-layout-menu-min-width), calc(100vw - var(--ds-space-2) * 2));
    max-inline-size: calc(100vw - var(--ds-menu-edge) * 2);
    translate: var(--ds-menu-shift, 0px) 0;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    padding: var(--ds-space-0-25);
    box-shadow: var(--ds-shadow-2);
}
.ds-action-menu__panel:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-action-menu__item {
    display: flex;
    align-items: center;
    gap: var(--ds-space-0-75);
    min-height: var(--ds-control-height-sm);
    border: 0;
    border-radius: var(--ds-radius-2);
    background: transparent;
    padding-inline: var(--ds-space-1);
    color: var(--ds-color-text-primary);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.ds-action-menu__item:hover { background: var(--ds-color-control-hover); }
.ds-action-menu__item:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-action-menu__item:disabled { color: var(--ds-color-text-disabled); cursor: not-allowed; }
.ds-action-menu__item--destructive { color: var(--ds-color-danger); }
.ds-action-menu__check { display: inline-flex; inline-size: var(--ds-icon-size-small); flex: 0 0 auto; justify-content: center; }
.ds-action-menu__item[aria-checked="true"] { font-weight: var(--ds-font-weight-medium); }

.ds-value-choice .ds-segmented-control__options { flex-wrap: nowrap; }
.ds-value-choice.is-saving { opacity: var(--ds-opacity-disabled); }

.ds-svg-image { margin: 0; min-inline-size: 0; max-inline-size: 100%; overflow-x: auto; overflow-y: hidden; contain: inline-size; }
.ds-svg-image > svg { display: block; inline-size: 100%; min-inline-size: 48rem; font-family: var(--ds-font-family-sans); font-size: var(--ds-text-body-size); }
.ds-svg-image > svg[viewBox] { block-size: auto; }

.ds-reorder {
    display: inline-flex;
    gap: var(--ds-space-0-25);
}

.ds-chart-color--action { --ds-chart-colour: var(--ds-color-action); }
.ds-chart-color--info { --ds-chart-colour: var(--ds-color-status-info); }
.ds-chart-color--success { --ds-chart-colour: var(--ds-color-status-success); }
.ds-chart-color--warning { --ds-chart-colour: var(--ds-color-status-warning); }
.ds-chart-color--danger { --ds-chart-colour: var(--ds-color-status-danger); }
.ds-chart-color--neutral { --ds-chart-colour: var(--ds-color-text-muted); }
.ds-chart-color--orange { --ds-chart-colour: var(--ds-color-priority-high); }
.ds-chart-color--violet { --ds-chart-colour: var(--ds-color-person-violet); }
.ds-chart-color--teal { --ds-chart-colour: var(--ds-color-person-teal); }
.ds-chart-color--pink { --ds-chart-colour: var(--ds-color-person-pink); }
.ds-chart-color--indigo { --ds-chart-colour: var(--ds-color-person-indigo); }

.ds-chart {
    display: grid;
    gap: var(--ds-space-1);
    min-inline-size: 0;
    margin: 0;
}

.ds-chart__svg {
    display: block;
    inline-size: 100%;
    block-size: auto;
    overflow: visible;
    font-family: var(--ds-font-family-sans);
}

.ds-chart__gridline { stroke: var(--ds-color-border); stroke-width: 1; }
.ds-chart__baseline { stroke: var(--ds-color-border-strong); stroke-width: 1; }
.ds-chart__tick { fill: var(--ds-color-text-muted); font-size: 11px; }
.ds-chart__unit { fill: var(--ds-color-text-secondary); font-size: 12px; }
.ds-chart__bar { fill: var(--ds-chart-colour, var(--ds-color-action)); }
.ds-chart__line { fill: none; stroke: var(--ds-chart-colour, var(--ds-color-action)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ds-chart__point { fill: var(--ds-chart-colour, var(--ds-color-action)); stroke: var(--ds-color-surface); stroke-width: 1; }
.ds-chart__band { fill: var(--ds-chart-colour, var(--ds-color-text-muted)); fill-opacity: 0.1; }
.ds-chart__reference { stroke: var(--ds-color-text-secondary); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ds-chart__reference-label { fill: var(--ds-color-text-secondary); font-size: 11px; }
.ds-chart__row-stripe { fill: var(--ds-color-surface-subtle); }
.ds-chart__weekend { fill: var(--ds-color-surface-raised); fill-opacity: 0.6; }
.ds-chart__row-label { fill: var(--ds-color-text-primary); font-size: 12px; }
.ds-chart__row-secondary { fill: var(--ds-color-text-muted); font-size: 10px; }
.ds-chart__span { fill: var(--ds-chart-colour, var(--ds-color-action)); }
.ds-chart__span-label { fill: var(--ds-color-text-primary); font-size: 12px; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: var(--ds-color-surface); stroke-width: 3px; stroke-linejoin: round; }
.ds-chart__span--tentative { fill-opacity: 0.35; stroke: var(--ds-chart-colour, var(--ds-color-action)); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ds-chart__svg--fixed { inline-size: auto; max-inline-size: 100%; }
.ds-chart--compact .ds-chart__span { fill-opacity: 0.3; stroke: var(--ds-chart-colour, var(--ds-color-action)); stroke-width: 1; }
.ds-chart--compact .ds-chart__span--tentative { fill-opacity: 0.12; stroke-dasharray: 4 3; }
.ds-chart--compact .ds-chart__span--band { fill-opacity: 0.9; stroke: none; }
.ds-chart--compact .ds-chart__span-label { font-weight: 500; stroke: none; }
.ds-chart__row-note { fill: var(--ds-color-text-muted); font-size: 12px; font-style: italic; }
.ds-chart__now { stroke: var(--ds-color-status-info); stroke-width: 2; stroke-dasharray: 4 3; }

.ds-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-25) var(--ds-space-1-5);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
}

.ds-chart__legend-item { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); }

.ds-chart__swatch {
    inline-size: 0.75rem;
    block-size: 0.75rem;
    border-radius: var(--ds-radius-2);
    background: var(--ds-chart-colour, var(--ds-color-text-muted));
}

.ds-chart__swatch--line { block-size: var(--ds-border-width-3); border-radius: var(--ds-radius-pill); }

.ds-chart__data { min-inline-size: 0; overflow-x: auto; overflow-y: hidden; color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); }
.ds-chart__data > summary { inline-size: fit-content; cursor: pointer; border-radius: var(--ds-radius-control); }
.ds-chart__data > summary:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-chart__data > .ds-table { margin-block-start: var(--ds-space-1); color: var(--ds-color-text-primary); }
.ds-chart__empty { margin: 0; color: var(--ds-color-text-secondary); }

.ds-qr { display: block; max-inline-size: 100%; block-size: auto; }
.ds-qr__light { fill: var(--ds-color-white); }
.ds-qr__dark { fill: var(--ds-color-neutral-900); }
.ds-qr--unavailable {
    display: grid;
    place-items: center;
    border: var(--ds-border-width-1) dashed var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    padding: var(--ds-space-3);
    color: var(--ds-color-text-secondary);
    text-align: center;
}

.ds-action-link--destructive { border-color: var(--ds-color-danger); color: var(--ds-color-danger); }
.ds-action-link--destructive:hover:not([aria-disabled="true"]) { border-color: var(--ds-color-danger); background: var(--ds-color-control-hover); }

.ds-confirm-dialog { display: grid; gap: var(--ds-space-1-5); }
.ds-confirm-dialog--danger { border-inline-start: var(--ds-border-width-3) solid var(--ds-color-danger); padding-inline-start: var(--ds-space-1-5); }
.ds-confirm-dialog__text,
.ds-confirm-dialog__target { margin: 0; }
.ds-confirm-dialog__form { display: grid; gap: var(--ds-space-1); }

.ds-toast-stack {
    position: fixed;
    z-index: var(--ds-z-toast);
    inset-block-start: var(--ds-space-1-5);
    inset-inline: 0;
    inline-size: min(32rem, calc(100vw - var(--ds-space-2)));
    margin-inline: auto;
    pointer-events: none;
}

.ds-toast-stack__list { display: grid; gap: var(--ds-space-0-75); margin: 0; padding: 0; list-style: none; }

.ds-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--ds-space-1);
    box-sizing: border-box;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-inline-start: var(--ds-border-width-3) solid var(--ds-tone-colour, var(--ds-color-border-strong));
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-raised);
    padding: var(--ds-space-1);
    box-shadow: var(--ds-shadow-2);
    pointer-events: auto;
    animation: ds-toast-in var(--ds-motion-duration-2) var(--ds-motion-ease-standard);
}

.ds-toast[class*="ds-tone--"] { color: var(--ds-color-text-primary); }
.ds-toast__icon { display: inline-grid; color: var(--ds-tone-colour, currentColor); }
.ds-toast__text { min-inline-size: 0; overflow-wrap: anywhere; }

@keyframes ds-toast-in {
    from { opacity: 0; transform: translateY(calc(var(--ds-space-1) * -1)); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-toast { animation: none; }
}

.ds-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-1);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-pagination__summary { margin: 0; font-variant-numeric: tabular-nums; }
.ds-pagination__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-0-75); }
.ds-pagination__size { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); }
.ds-pagination__page { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ds-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--ds-space-1) var(--ds-space-2);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-subtle);
    padding: var(--ds-space-1-5);
}

.ds-filter-bar__fields { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: end; gap: var(--ds-space-1); min-inline-size: 0; max-inline-size: 100%; }
.ds-filter-bar__fields > .ds-search-bar { flex: 1 1 12rem; max-inline-size: var(--ds-field-width-wide); min-inline-size: min(100%, max(10rem, calc(var(--ds-search-chars, 0) * 1ch + 4.5rem))); }
.ds-filter-bar__fields > .ds-form-field { flex: 0 1 auto; min-inline-size: min(100%, var(--ds-field-width-compact)); }
.ds-filter-bar__fields > .ds-segmented-control { flex: 0 0 auto; max-inline-size: 100%; }
.ds-filter-bar__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: var(--ds-space-1); order: 1; margin-inline-start: auto; }
.ds-filter-bar__chips { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: var(--ds-space-0-5); order: 2; }

.ds-filter-chip {
    display: inline-flex;
    min-block-size: var(--ds-control-height);
    align-items: center;
    gap: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
    background: var(--ds-color-control-background);
    padding: 0 var(--ds-space-1);
    color: var(--ds-color-text-primary);
    font: inherit;
    font-size: var(--ds-text-body-small-size);
    cursor: pointer;
}

.ds-filter-chip:hover:not(:disabled) { border-color: var(--ds-color-border-strong); background: var(--ds-color-control-hover); }
.ds-filter-chip:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-filter-chip.is-active { border-color: var(--ds-color-action); background: var(--ds-color-action-subtle); font-weight: var(--ds-font-weight-medium); }
.ds-filter-chip:disabled { color: var(--ds-color-text-disabled); cursor: not-allowed; }

@media (max-width: 48rem) {
    .ds-pagination { align-items: stretch; flex-direction: column; }
}

.ds-tree-explorer { --ds-tree-level: 0; min-inline-size: 0; }
.ds-tree-explorer ul { margin: 0; padding: 0; list-style: none; }
.ds-tree-explorer__item { outline: none; }

.ds-tree-explorer__row {
    display: flex;
    align-items: center;
    gap: var(--ds-space-0-75);
    min-block-size: var(--ds-control-height-sm);
    border-inline-start: var(--ds-border-width-3) solid transparent;
    border-radius: var(--ds-radius-control);
    padding-inline: calc(var(--ds-space-0-5) + (var(--ds-tree-level, 0) * var(--ds-tree-indent))) var(--ds-space-1);
    color: var(--ds-color-text-primary);
    cursor: pointer;
}

.ds-tree-explorer__row:hover { background: var(--ds-color-control-hover); }
.ds-tree-explorer__item:focus-visible > .ds-tree-explorer__row { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: calc(var(--ds-focus-offset) * -1); }
.ds-tree-explorer__item.is-selected > .ds-tree-explorer__row { border-inline-start-color: var(--ds-color-tree-selected-border); background: var(--ds-color-tree-selected-background); font-weight: var(--ds-font-weight-medium); }
.ds-tree-explorer__item.is-selected > .ds-tree-explorer__row:hover { background: var(--ds-color-tree-selected-hover-background); }

.ds-tree-explorer__toggle {
    display: inline-grid;
    flex: 0 0 auto;
    inline-size: var(--ds-icon-size-small);
    block-size: var(--ds-icon-size-small);
    place-items: center;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    transition: transform var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}

.ds-tree-explorer__toggle.is-expanded { transform: rotate(90deg); }
.ds-tree-explorer__label { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-tree-explorer__item:focus-visible > .ds-tree-explorer__row .ds-tree-explorer__label,
.ds-tree-explorer__item.is-selected > .ds-tree-explorer__row .ds-tree-explorer__label { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
@media (hover: none) {
    .ds-tree-explorer__label { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
}
.ds-tree-explorer__secondary { margin-inline-start: auto; color: var(--ds-color-text-muted); font-size: var(--ds-text-caption-size); white-space: nowrap; }

.ds-tree-explorer__status,
.ds-tree-explorer__empty {
    margin: 0;
    padding-block: var(--ds-space-0-5);
    padding-inline-start: calc(var(--ds-space-2) + ((var(--ds-tree-level, 0) + 1) * var(--ds-tree-indent)));
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-body-small-size);
}

.ds-tree-explorer__empty { padding-inline-start: 0; }
.ds-tree-explorer__status--error { color: var(--ds-color-status-danger); }

@media (prefers-reduced-motion: reduce) {
    .ds-tree-explorer__toggle { transition: none; }
}

.ds-overflow-menu--start .ds-action-menu__panel { inset-inline-start: 0; inset-inline-end: auto; }
.ds-action-menu__panel[data-flipped="true"] { inset-block-start: auto; inset-block-end: calc(100% + var(--ds-space-0-25)); }
a.ds-action-menu__item { text-decoration: none; }

.ds-password-rules__mark { display: inline-grid; flex: 0 0 auto; place-items: center; padding-block-start: 0.15em; }

.ds-circuit-error {
    display: none;
    position: fixed;
    inset-inline: var(--ds-space-2);
    inset-block-end: var(--ds-space-2);
    z-index: var(--ds-z-critical);
    gap: var(--ds-space-1);
    align-items: center;
    flex-wrap: wrap;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-inline-start: var(--ds-space-0-5) solid var(--ds-color-danger);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-1);
    padding: var(--ds-space-2);
    color: var(--ds-color-text);
}

.ds-circuit-error .reload { font-weight: var(--ds-font-weight-strong); }

.ds-auth--hero {
    position: relative;
    isolation: isolate;

    box-sizing: border-box;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: none;

    align-content: end;
    justify-items: center;
    padding-inline: var(--ds-space-2);
    padding-block: var(--ds-space-2) clamp(var(--ds-space-2), 27vh, 20rem);
    background-color: var(--ds-color-auth-backdrop);
}

.ds-auth--hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: url("/_content/Stinaxis.DesignSystem/images/stinaxis_login.jpg") center / cover no-repeat;
    pointer-events: none;
}

.ds-auth--hero::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(180deg, transparent 38%, var(--ds-color-auth-scrim) 100%);
    pointer-events: none;
}

.ds-auth--hero .ds-auth__panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;

    width: min(100%, 30rem);
    padding: var(--ds-space-1-5) var(--ds-space-2) var(--ds-space-1-5);
    border: var(--ds-border-width-1) solid var(--ds-color-auth-panel-border);
    border-radius: var(--ds-radius-12);
    background: var(--ds-color-auth-panel-background);
    backdrop-filter: blur(1rem) saturate(140%);
    -webkit-backdrop-filter: blur(1rem) saturate(140%);

    box-shadow:
        inset 0 var(--ds-border-width-1) 0 var(--ds-color-auth-panel-highlight),
        0 0.75rem 3rem var(--ds-color-auth-panel-shadow);
    color: var(--ds-color-text-primary);
}

.ds-auth--hero .ds-auth__panel h1 {
    margin-block: var(--ds-space-0) var(--ds-space-1);
    color: var(--ds-color-text-primary);
    font-size: 1.125rem;
}

.ds-auth--hero .ds-auth__panel .ds-auth__form--inline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--ds-space-0-75);
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit--arrow {
    width: var(--ds-control-height);
    min-height: var(--ds-control-height);
    padding: var(--ds-space-0);
    font-size: 1.125rem;
    line-height: 1;
}

.ds-auth--hero .ds-auth__panel p {
    color: var(--ds-color-text-secondary);
}

.ds-auth--hero .ds-auth__panel .ds-auth__eyebrow {
    color: var(--ds-color-text-muted);
}

.ds-auth--hero .ds-auth__panel .ds-auth__field span,
.ds-auth--hero .ds-auth__panel .ds-auth__check {
    color: var(--ds-color-text-secondary);
}

.ds-auth--hero .ds-auth__panel .ds-auth__field input,
.ds-auth--hero .ds-auth__panel .ds-auth__field select {
    border-radius: var(--ds-radius-8);
    border-color: var(--ds-color-auth-field-border);
    background: var(--ds-color-auth-field-background);
    color: var(--ds-color-text-primary);
}

.ds-auth--hero .ds-auth__panel .ds-auth__field input::placeholder {
    color: var(--ds-color-text-secondary);
    opacity: 1;
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit {
    border-radius: var(--ds-radius-8);
    border-color: var(--ds-color-auth-field-border);
    background: var(--ds-color-auth-field-background);
    color: var(--ds-color-text-primary);
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit:hover:not(:disabled) {
    border-color: var(--ds-color-auth-panel-border);
    background: var(--ds-color-auth-message-background);
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit:disabled {
    border-color: var(--ds-color-auth-panel-border);
    background: var(--ds-color-auth-submit-disabled);
}

.ds-auth--hero .ds-auth__panel .ds-auth__message {
    border-color: var(--ds-color-auth-field-border);
    background: var(--ds-color-auth-message-background);
    color: var(--ds-color-text-primary);
}

.ds-auth--hero .ds-auth__panel .ds-auth__secondary {
    margin-block: var(--ds-space-1) var(--ds-space-0);
    text-align: center;
    font-size: var(--ds-text-caption-size);
}

.ds-auth--hero .ds-auth__panel .ds-auth__secondary--links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--ds-space-3);
    row-gap: var(--ds-space-1);
}

.ds-auth--hero .ds-auth__panel .ds-auth__secondary a {
    color: var(--ds-color-action);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ds-auth--hero .ds-auth__panel .ds-auth__secondary a:hover,
.ds-auth--hero .ds-auth__panel .ds-auth__secondary a:focus-visible {
    color: var(--ds-color-action-hover);
    text-decoration: underline;
}

.ds-auth--hero.ds-auth--form {
    padding-block: var(--ds-space-2);
}

.ds-auth--hero.ds-auth--form .ds-auth__panel {
    width: min(100%, 36rem);
    background: var(--ds-color-auth-panel-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ds-auth--hero.ds-auth--wide .ds-auth__panel {
    width: min(100%, 48rem);
    background: var(--ds-color-auth-panel-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ds-auth--hero.ds-auth--form .ds-auth__form:not(.ds-auth__form--inline) {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    column-gap: var(--ds-space-1);
}

.ds-auth--hero.ds-auth--form .ds-auth__form:not(.ds-auth__form--inline) > :not(.ds-auth__field) {
    grid-column: 1 / -1;
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit:not(.ds-auth__submit--arrow) {
    display: inline-flex;
    box-sizing: border-box;
    min-height: var(--ds-control-height);
    align-items: center;
    justify-content: center;
    justify-self: start;
    border-color: var(--ds-color-action);
    background: var(--ds-color-action);
    padding: 0 var(--ds-space-2);
    color: var(--ds-color-on-action);
    font: inherit;
    font-weight: var(--ds-font-weight-strong);
    cursor: pointer;
}

.ds-auth--hero .ds-auth__panel .ds-auth__submit:not(.ds-auth__submit--arrow):hover:not(:disabled) {
    border-color: var(--ds-color-action-hover);
    background: var(--ds-color-action-hover);
}

@media (prefers-reduced-transparency: reduce) {
    .ds-auth--hero .ds-auth__panel {
        background: var(--ds-color-auth-panel-solid);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 30rem) {
    .ds-auth--hero .ds-auth__panel .ds-auth__form--inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-auth--hero .ds-auth__panel .ds-auth__submit--arrow {
        width: 100%;
    }
}

@media (max-width: 48rem) {
    .ds-auth--hero {
        padding-block: var(--ds-space-2) clamp(var(--ds-space-2), 10vh, 6rem);
    }
}

@media (max-width: 40rem) {
    .ds-auth--hero:not(.ds-auth--form) {
        align-content: start;
        padding-block: calc(var(--ds-layout-auth-hero-image) + var(--ds-space-1)) var(--ds-space-2);
    }

    .ds-auth--hero::before {
        background-size: 100% auto;
        background-position: top center;
    }

    .ds-auth--hero .ds-auth__panel .ds-auth__field input {
        font-size: 1rem;
    }

    .ds-auth--hero .ds-auth__panel .ds-auth__submit:not(.ds-auth__submit--arrow) {
        justify-self: stretch;
        width: 100%;
    }
}

.ds-figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
    gap: var(--ds-space-0-75);
}

@container dashboard-widget (max-width: 64rem) {
    .ds-figure-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    }
}

.ds-choice-group {
    display: grid;
    gap: var(--ds-space-0-25);
    margin: 0;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    padding: var(--ds-space-0-75);
}

.ds-period-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-0-75);
}

.ds-period-toolbar__navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-5);
}

.ds-period-toolbar__period {
    margin: 0;
    font-size: var(--ds-text-heading-3-size);
}

.ds-table--middle td {
    vertical-align: middle;
}

[data-ds-help-highlight] {
    outline: var(--ds-border-width-3) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-space-0-5);
    box-shadow: 0 0 0 var(--ds-space-1) var(--ds-color-action-subtle);
    scroll-margin: var(--ds-space-7);
}

@media (prefers-reduced-motion: no-preference) {
    [data-ds-help-highlight] {
        animation: ds-help-highlight-pulse 1.6s var(--ds-motion-ease-standard) 3;
    }
}

@keyframes ds-help-highlight-pulse {
    50% {
        outline-offset: var(--ds-space-1);
    }
}

.ds-segmented-control--labelled {
    display: inline-grid;
    grid-template-columns: max-content;
    row-gap: var(--ds-space-0-5);
    block-size: auto;
}

.ds-segmented-control__legend {
    float: left;
    margin: 0;
    padding: 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-sm);
}

.ds-segmented-control__options {
    display: inline-flex;
    block-size: var(--ds-control-height);
}

@media (max-width: 48rem) {
    .ds-segmented-control--labelled {
        grid-template-columns: minmax(0, max-content);
        max-inline-size: 100%;
    }

    .ds-segmented-control:not(.ds-segmented-control--labelled),
    .ds-segmented-control__options {
        flex-wrap: wrap;
        block-size: auto;
        min-block-size: var(--ds-control-height);
        max-inline-size: 100%;
    }
}

.ds-page-template {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-2);
    min-width: 0;
}

.ds-page-template--list,
.ds-page-template--overview {
    max-inline-size: none;
}

.ds-page-template__filters,
.ds-page-template__body,
.ds-page-template__table {
    min-width: 0;
}

.ds-page-template__filters > .ds-search-bar {
    max-inline-size: var(--ds-field-width-wide);
}

.ds-page-template__body {
    display: grid;
    gap: var(--ds-space-1-5);
}

.ds-page-template__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-1);
}

.ds-page-template__figures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: var(--ds-space-1-5);
}

.ds-page-template__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
    align-items: start;
    gap: var(--ds-space-2);
}

.ds-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-2);
    padding-block-end: var(--ds-space-2);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-detail-head__identity {
    display: grid;
    flex: 1 1 24rem;
    gap: var(--ds-space-0-5);
    min-width: 0;
}

.ds-detail-head__eyebrow {
    margin: 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-caption-size);
    font-weight: var(--ds-font-weight-semibold);
    text-transform: uppercase;
}

.ds-detail-head__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-1);
    min-width: 0;
}

.ds-detail-head__title h1 {
    margin: 0;
    font-size: var(--ds-text-page-title-size);
    line-height: var(--ds-line-height-tight);
    overflow-wrap: anywhere;
}

.ds-detail-head__description {
    margin: 0;
    color: var(--ds-color-text-secondary);
}

.ds-detail-head__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-5) var(--ds-space-2);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-detail-head__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--ds-space-0-75);
    min-width: 0;
}

.ds-settings-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--ds-space-3);
}

.ds-settings-layout__aside {
    position: sticky;
    inset-block-start: 0;
    display: grid;
    gap: var(--ds-space-1-5);
    min-width: 0;
}

.ds-settings-layout__main {
    display: grid;
    gap: var(--ds-space-2);
    min-width: 0;
}

.ds-identity-card {
    display: grid;
    gap: var(--ds-space-1);
    padding: var(--ds-space-2);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
}

.ds-identity-card__head {
    display: flex;
    align-items: center;
    gap: var(--ds-space-1-5);
    min-width: 0;
}

.ds-identity-card__copy {
    display: grid;
    gap: var(--ds-space-0-25);
    min-width: 0;
}

.ds-identity-card__name {
    font-size: var(--ds-text-heading-3-size);
    overflow-wrap: anywhere;
}

.ds-identity-card__subtitle,
.ds-identity-card__detail {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
    overflow-wrap: anywhere;
}

.ds-identity-card__notice {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-0-75);
    margin: 0;
    padding: var(--ds-space-0-75) var(--ds-space-1);
    border-inline-start: var(--ds-border-width-3) solid var(--ds-tone-colour);
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-surface-subtle);
    color: var(--ds-color-text);
    font-size: var(--ds-font-size-small);
}

.ds-identity-card__notice .ds-icon {
    color: var(--ds-tone-colour);
}

.ds-section-nav ul {
    display: grid;
    gap: var(--ds-space-0-25);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-section-nav__link {
    display: flex;
    align-items: center;
    gap: var(--ds-space-0-75);
    min-block-size: var(--ds-control-height);
    padding: 0 var(--ds-space-1);
    border-radius: var(--ds-radius-control);
    color: var(--ds-color-text);
    text-decoration: none;
}

.ds-section-nav__link:hover {
    background: var(--ds-color-control-hover);
}

.ds-section-nav__link:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-section-nav__link.is-active {
    background: var(--ds-color-action-subtle);
    font-weight: var(--ds-font-weight-medium);
}

.ds-settings-card {
    scroll-margin-block-start: var(--ds-space-2);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1-5) var(--ds-space-2);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-card__head h2 {
    margin: 0;
    font-size: var(--ds-text-heading-3-size);
}

.ds-settings-card__head p {
    margin: var(--ds-space-0-25) 0 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-settings-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-75);
}

.ds-settings-card__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--ds-space-2);
}

.ds-settings-card__rows > :not(.ds-settings-row) {
    padding-block: var(--ds-space-1-5);
}

.ds-settings-card__rows > * + * {
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--ds-space-1) var(--ds-space-2);
    padding-block: var(--ds-space-1-5);
}

.ds-settings-row--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.ds-settings-row__text {
    display: grid;
    gap: var(--ds-space-0-25);
    min-width: 0;
}

.ds-settings-row__label {
    inline-size: fit-content;
    max-inline-size: 100%;
    font-weight: var(--ds-font-weight-medium);
}

.ds-settings-row__hint {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-settings-row__control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ds-space-0-75);
    min-width: 0;
}

.ds-settings-row--stacked .ds-settings-row__control {
    justify-content: flex-start;
}

.ds-settings-row__control > .ds-theme-tiles {
    flex: 1 1 100%;
    inline-size: 100%;
}

.ds-settings-row__control > .ds-form-field {
    margin: 0;
}

.ds-settings-row__control > .ds-settings-fields {
    flex: 1 1 100%;
}

.ds-settings-row__save {
    display: flex;
    gap: var(--ds-space-0-5);
}

.ds-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-75);
    min-block-size: var(--ds-touch-target-size);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ds-color-text);
    font: inherit;
    cursor: pointer;
}

.ds-switch:disabled {
    cursor: not-allowed;
    opacity: var(--ds-opacity-disabled);
}

.ds-switch:focus-visible {
    border-radius: var(--ds-radius-pill);
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-switch__track {
    position: relative;
    display: inline-block;
    inline-size: 2.75rem;
    block-size: 1.5rem;
    border: var(--ds-border-width-1) solid var(--ds-color-border-strong);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-control-background);
    transition: background var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}

.ds-switch__thumb {
    position: absolute;
    inset-block-start: var(--ds-space-0-25);
    inset-inline-start: var(--ds-space-0-25);
    inline-size: 1rem;
    block-size: 1rem;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-text-secondary);
    transition: transform var(--ds-motion-duration-1) var(--ds-motion-ease-standard);
}

.ds-switch.is-on .ds-switch__track {
    border-color: var(--ds-color-action);
    background: var(--ds-color-action);
}

.ds-switch.is-on .ds-switch__thumb {
    background: var(--ds-color-on-action);
    transform: translateX(1.25rem);
}

.ds-switch__text {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-theme-tiles {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ds-theme-tiles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: var(--ds-space-1);
}

.ds-theme-tile {
    position: relative;
    display: grid;
    gap: var(--ds-space-0-5);
    padding: var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface);
    cursor: pointer;
}

.ds-theme-tile input {
    position: absolute;
    inline-size: var(--ds-border-width-1);
    block-size: var(--ds-border-width-1);
    opacity: 0;
}

.ds-theme-tile:hover {
    border-color: var(--ds-color-border-strong);
}

.ds-theme-tile:has(input:focus-visible) {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-theme-tile.is-selected {
    border-color: var(--ds-color-action);
    box-shadow: inset 0 0 0 var(--ds-border-width-1) var(--ds-color-action);
}

.ds-theme-tile:has(input:disabled) {
    cursor: not-allowed;
    opacity: var(--ds-opacity-disabled);
}

.ds-theme-tile__preview {
    display: flex;
    gap: var(--ds-space-0-25);
    block-size: 2.75rem;
}

.ds-theme-tile__swatch {
    display: grid;
    flex: 1 1 0;
    grid-template-rows: 1fr auto;
    gap: var(--ds-space-0-25);
    padding: var(--ds-space-0-25);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-background-page);
}

.ds-theme-tile__swatch[data-ds-theme="light"] {
    --ds-color-background-page: var(--ds-color-neutral-100);
    --ds-color-surface: var(--ds-color-white);
    --ds-color-border: var(--ds-color-neutral-200);
    --ds-color-action: var(--ds-color-graphite-600);
}

.ds-theme-tile__surface {
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-surface);
}

.ds-theme-tile__action {
    block-size: 0.375rem;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-action);
}

.ds-theme-tile__name {
    font-size: var(--ds-font-size-small);
    font-weight: var(--ds-font-weight-medium);
}

.ds-settings-page__frame {
    container-type: inline-size;
    min-width: 0;
}

.ds-settings-page__save {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-75);
}

.ds-settings-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--ds-space-2);
}

@container (min-width: 70rem) {
    .ds-settings-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ds-settings-board > * {
    min-width: 0;
}

.ds-settings-section {
    container-type: inline-size;
    min-width: 0;
    padding: var(--ds-space-2) var(--ds-space-0);
    scroll-margin-block-start: var(--ds-space-2);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-section--full {
    grid-column: 1 / -1;
}

.ds-settings-page--plain .ds-settings-board {
    gap: 0 var(--ds-space-4);
}

.ds-settings-page--plain .ds-settings-section {
    padding-inline: 0;
    border: 0;
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: 0;
    background: transparent;
}

.ds-settings-section__head {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-1-5);
    min-width: 0;
}

.ds-settings-section__icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-raised);
    color: var(--ds-color-text);
}

.ds-settings-section__icon .ds-icon {
    inline-size: 1.375rem;
    block-size: 1.375rem;
}

.ds-settings-section__title {
    display: grid;
    flex: 1 1 auto;
    gap: var(--ds-space-0-25);
    min-width: 0;
}

.ds-settings-section__title h2 {
    margin: 0;
    font-size: var(--ds-text-heading-3-size);
}

.ds-settings-section__title p {
    margin: 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-settings-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-75);
}

.ds-settings-section__body {
    margin-block-start: var(--ds-space-1-5);
    min-width: 0;
}

.ds-settings-section__body > * + * {
    margin-block-start: var(--ds-space-1-5);
}

.ds-settings-section__body > .ds-settings-row {
    padding-block: var(--ds-space-1-25);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-section__body > .ds-settings-row + .ds-settings-row {
    margin-block-start: 0;
}

.ds-settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--ds-space-1-5) var(--ds-space-2);
    min-width: 0;
}

.ds-settings-fields--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-settings-fields > * {
    min-width: 0;
    margin: 0;
}

.ds-settings-fields > .ds-settings-toggle,
.ds-settings-fields > .ds-theme-select {
    max-inline-size: var(--ds-field-width-wide);
}

.ds-settings-fields > fieldset {
    grid-column: 1 / -1;
}

.ds-settings-fields > :is(.ds-form-width--wide, .ds-form-width--full) {
    grid-column: 1 / -1;
    max-inline-size: var(--ds-settings-field-span-max);
}

@container (max-width: 34rem) {
    .ds-settings-fields,
    .ds-settings-fields--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 40rem) {
    .ds-settings-fields,
    .ds-settings-fields--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ds-settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-1);
    min-width: 0;
}

.ds-settings-toggle .ds-switch {
    flex: 0 0 auto;
    min-block-size: auto;
}

.ds-settings-toggle__text {
    display: grid;
    gap: var(--ds-space-0-25);
    min-width: 0;
}

.ds-settings-toggle__label {
    font-weight: var(--ds-font-weight-medium);
    cursor: pointer;
}

.ds-settings-toggle__hint {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-settings-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--ds-space-1) var(--ds-space-2);
    margin: 0;
    padding-block-start: var(--ds-space-1-25);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-settings-values__item {
    display: grid;
    align-content: start;
    gap: var(--ds-space-0-5);
    min-width: 0;
}

.ds-settings-values__item dt {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-settings-values__item dd {
    margin: 0;
    font-weight: var(--ds-font-weight-medium);
    overflow-wrap: break-word;
}

.ds-theme-select {
    display: grid;
    gap: var(--ds-space-1);
    min-width: 0;
}

.ds-theme-select__preview {
    display: grid;
    gap: var(--ds-space-0-5);
}

.ds-theme-select__preview-label {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-small);
}

.ds-theme-select__schemes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-75);
}

.ds-theme-select__scheme {
    display: inline-flex;
    gap: var(--ds-space-0-5);
    padding: var(--ds-space-0-5);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-background-page);
}

.ds-theme-select__scheme[data-ds-theme="light"] {
    --ds-color-background-page: var(--ds-color-neutral-100);
    --ds-color-surface-raised: #e8edf4;
    --ds-color-border: var(--ds-color-neutral-200);
    --ds-color-text-secondary: var(--ds-color-neutral-700);
    --ds-color-action: var(--ds-color-graphite-600);
    --ds-color-status-success: var(--ds-color-green-600);
    --ds-color-status-warning: var(--ds-color-amber-700);
    --ds-color-status-danger: var(--ds-color-red-700);
}

.ds-theme-select__chip {
    inline-size: 1.75rem;
    block-size: 1.75rem;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-control);
}

.ds-theme-select__chip--action { background: var(--ds-color-action); }
.ds-theme-select__chip--neutral { background: var(--ds-color-text-secondary); }
.ds-theme-select__chip--surface { background: var(--ds-color-surface-raised); }
.ds-theme-select__chip--warning { background: var(--ds-color-status-warning); }
.ds-theme-select__chip--success { background: var(--ds-color-status-success); }
.ds-theme-select__chip--danger { background: var(--ds-color-status-danger); }

.ds-form-field.ds-flag-select {
    inline-size: min(100%, var(--ds-field-width-medium));
    display: grid;
    align-content: start;
    gap: var(--ds-space-0-5);
}

.ds-flag-select .ds-form-field__label,
.ds-flag-select .ds-form-field__hint {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-sm);
}

.ds-flag-select__control {
    position: relative;
    display: grid;
    align-items: center;
}

.ds-flag-select__control > .ds-flag {
    position: absolute;
    inset-inline-start: var(--ds-space-0-75);
    pointer-events: none;
}

.ds-flag-select__control > select {
    inline-size: 100%;
    padding-inline-start: calc(var(--ds-space-0-75) * 2 + 1.5rem);
    padding-inline-end: calc(var(--ds-space-0-75) + 1.5rem);
    text-overflow: ellipsis;
}

.ds-search-picker {
    display: grid;
    gap: var(--ds-space-0-5);
    min-width: 0;
}

@media (max-width: 64rem) {
    .ds-settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-settings-layout__aside {
        position: static;
    }
}

@media (max-width: 48rem) {
    .ds-settings-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-settings-row__control {
        justify-content: flex-start;
    }
}

.ds-table-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--ds-space-1);
    margin-block-end: var(--ds-space-1);
}

.ds-export-button,
.ds-print-button {
    display: inline-flex;
}

.ds-print-sheet {
    display: grid;
    gap: var(--ds-space-3);
    max-inline-size: 60rem;
    margin-inline: auto;
    padding: var(--ds-space-3);
    background: var(--ds-color-surface);
    color: var(--ds-color-text-primary);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-print-sheet[data-layout="grid"],
.ds-print-sheet[data-layout="labels"] {
    max-inline-size: none;
}

.ds-print-sheet__head {
    display: grid;
    gap: var(--ds-space-0-5);
    padding-block-end: var(--ds-space-2);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border-strong);
}

.ds-print-sheet__brand {
    display: flex;
    align-items: center;
    gap: var(--ds-space-1);
    font-weight: var(--ds-font-weight-semibold);
}

.ds-print-sheet__logo {
    max-block-size: 3rem;
    max-inline-size: 10rem;
    object-fit: contain;
}

.ds-print-sheet__title {
    margin: 0;
}

.ds-print-sheet__line,
.ds-print-sheet__lines p,
.ds-print-sheet__foot {
    margin: 0;
    color: var(--ds-color-text-secondary);
}

.ds-print-sheet__section {
    display: grid;
    gap: var(--ds-space-1);
}

.ds-print-sheet__heading {
    margin: 0;
    font-size: var(--ds-text-body-size);
    font-weight: var(--ds-font-weight-semibold);
}

.ds-print-sheet__lines {
    display: grid;
    gap: var(--ds-space-0-5);
}

.ds-print-sheet[data-layout="grid"] .ds-print-sheet__section,
.ds-print-sheet[data-layout="labels"] .ds-print-sheet__section {
    break-inside: avoid;
}

.ds-print-sheet[data-layout="labels"] .ds-print-sheet__body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: var(--ds-space-1);
}

.ds-print-sheet[data-layout="labels"] .ds-print-sheet__section {
    padding: var(--ds-space-1);
    border: var(--ds-border-width-1) dashed var(--ds-color-border-strong);
}

.ds-print-sheet__label {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-1);
}

.ds-print-sheet__foot {
    padding-block-start: var(--ds-space-1);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
    font-size: var(--ds-text-caption-size);
}

@media print {
    :root,
    [data-ds-theme] {
        color-scheme: light;
        --ds-color-background-app: var(--ds-color-neutral-50);
        --ds-color-background-page: var(--ds-color-neutral-100);
        --ds-color-surface: var(--ds-color-white);
        --ds-color-surface-subtle: var(--ds-color-neutral-100);
        --ds-color-surface-raised: #e8edf4;
        --ds-color-surface-panel: var(--ds-color-surface);
        --ds-color-surface-muted: var(--ds-color-surface-subtle);
        --ds-color-control-background: var(--ds-color-surface-subtle);
        --ds-color-control-hover: var(--ds-color-surface-raised);
        --ds-color-control-disabled: var(--ds-color-surface-subtle);
        --ds-color-button-background: var(--ds-color-control-background);
        --ds-color-border: var(--ds-color-neutral-200);
        --ds-color-border-strong: #9daabe;
        --ds-color-text-primary: var(--ds-color-neutral-900);
        --ds-color-text-secondary: var(--ds-color-neutral-700);
        --ds-color-text-muted: var(--ds-color-neutral-500);
        --ds-color-text-disabled: var(--ds-color-neutral-500);
        --ds-color-action: var(--ds-color-graphite-600);
        --ds-color-action-hover: var(--ds-color-graphite-700);
        --ds-color-action-subtle: var(--ds-color-graphite-soft);
        --ds-color-action-primary: var(--ds-color-action);
        --ds-color-status-info: var(--ds-color-blue-600);
        --ds-color-status-success: var(--ds-color-green-600);
        --ds-color-status-warning: var(--ds-color-amber-700);
        --ds-color-status-danger: var(--ds-color-red-700);
        --ds-color-priority-low: var(--ds-color-neutral-500);
        --ds-color-priority-normal: var(--ds-color-neutral-700);
        --ds-color-priority-high: var(--ds-color-orange-600);
        --ds-color-priority-critical: var(--ds-color-red-700);
        --ds-color-maturity-planned: var(--ds-color-neutral-500);
        --ds-color-maturity-alpha: var(--ds-color-orange-600);
        --ds-color-maturity-beta: var(--ds-color-amber-600);
        --ds-color-maturity-rc: var(--ds-color-blue-600);
        --ds-color-maturity-release: var(--ds-color-green-600);
        --ds-color-on-action: var(--ds-color-white);
        --ds-color-overlay-scrim: rgb(21 32 51 / 0.38);
        --ds-color-tree-selected-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-surface-raised) 22%);
        --ds-color-tree-selected-hover-background: color-mix(in srgb, var(--ds-color-surface) 62%, var(--ds-color-surface-raised) 38%);
        --ds-color-tree-selected-border: var(--ds-color-action);
        --ds-color-tree-group-depth-0-background: color-mix(in srgb, var(--ds-color-surface) 55%, var(--ds-color-border-strong) 45%);
        --ds-color-tree-group-depth-1-background: color-mix(in srgb, var(--ds-color-surface) 68%, var(--ds-color-border-strong) 32%);
        --ds-color-tree-group-depth-2-background: color-mix(in srgb, var(--ds-color-surface) 78%, var(--ds-color-border-strong) 22%);
        --ds-color-tree-group-depth-3-background: color-mix(in srgb, var(--ds-color-surface) 86%, var(--ds-color-border-strong) 14%);
        --ds-color-background: var(--ds-color-background-app);
        --ds-color-surface-canvas: var(--ds-color-background-page);
        --ds-color-text: var(--ds-color-text-primary);
        --ds-text-muted: var(--ds-color-text-muted);
        --ds-border-color: var(--ds-color-border);
        --ds-color-action-strong: var(--ds-color-action-hover);
        --ds-color-info: var(--ds-color-status-info);
        --ds-color-success: var(--ds-color-status-success);
        --ds-color-warning: var(--ds-color-status-warning);
        --ds-color-danger: var(--ds-color-status-danger);
        --ds-color-focus: var(--ds-color-graphite-600);
        --ds-color-focus-ring: var(--ds-color-focus);
    }

    .ds-svg-image {
        overflow: visible;
    }

    .ds-svg-image > svg {
        min-inline-size: 0;
    }

    .ds-header,
    .ds-context-bar,
    .ds-developer-strip,
    .ds-tab-bar,
    .ds-skip-link,
    .ds-toast-stack,
    .ds-assistant-launcher,
    .ds-assistant-panel,
    .ds-assistant-spotlight,
    .ds-circuit-error,
    .ds-filter-bar,
    .ds-section-nav,
    .ds-page-header__actions,
    .ds-detail-head__actions,
    .ds-settings-card__actions,
    .ds-pagination,
    .ds-export-button,
    .ds-print-button,
    .ds-list-more,
    .ds-table-actions,
    .ds-master-detail__back,
    .ds-master-detail[data-ds-pane="detail"] > .ds-master-detail__master,
    .ds-button {
        display: none !important;
    }

    .ds-master-detail[data-ds-pane="detail"] {
        display: block;
    }

    .ds-master-detail[data-ds-pane="detail"] > .ds-master-detail__detail {
        display: block;
        width: 100%;
    }

    html:has(.ds-app-shell),
    body:has(.ds-app-shell) {
        height: auto;
        overflow: visible;
    }

    .ds-table-scroll,
    .ds-table-workbench__viewport {
        overflow: visible;
    }

    .ds-table th,
    .ds-table td {
        white-space: normal;
    }

    body:has(.ds-table--matrix) { page: ds-landscape; }
    .ds-table--matrix { font-size: 0.6rem; }
    .ds-table--matrix th, .ds-table--matrix td { padding: 1px; }
    .ds-table--matrix tbody td.ds-table__row-head, .ds-table--matrix thead th:first-child { position: static; min-inline-size: 0; max-inline-size: 5rem; padding-inline: 2px; }
    .ds-table--matrix .ds-color-mark { min-inline-size: 1rem; font-size: 0.6rem; }
    .ds-table--matrix .ds-status-badge { font-size: 0.6rem; padding-inline: 2px; min-inline-size: 0; }
    .ds-table--matrix .ds-table-bar { min-block-size: 0; }
    .ds-table--matrix .ds-table-bar__fill { min-block-size: 0; font-size: 0.6rem; padding-inline: 2px; }
    .ds-table--matrix thead th { white-space: normal; overflow-wrap: anywhere; }

    .ds-settings-layout,
    .ds-settings-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-settings-page__save {
        display: none !important;
    }

    .ds-section-card,
    .ds-settings-card,
    .ds-settings-section,
    .ds-table tr {
        break-inside: avoid;
    }

    .ds-print-sheet {
        max-inline-size: none;
        padding: 0;
        border: 0;
        padding-block-end: var(--ds-space-4);
    }

    .ds-print-sheet__section {
        break-inside: avoid-page;
    }

    .ds-page-template:has(.ds-print-sheet) > .ds-detail-head {
        display: none;
    }

    .ds-print-sheet__head {
        break-after: avoid;
    }

    .ds-print-sheet__foot {
        position: fixed;
        inset-block-end: -16mm;
        inset-inline: 0;
        background: var(--ds-color-surface);
    }
}

@page {
    margin-block: 14mm 22mm;
}

.ds-action-link--touch,
.ds-button--touch {
    min-height: var(--ds-touch-target-min);
    min-width: var(--ds-touch-target-min);
}

.ds-page-template--touch .ds-button,
.ds-page-template--touch .ds-action-link,
.ds-page-template--touch .ds-toggle-button,
.ds-page-template--touch .ds-text-link,
.ds-page-template--touch input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ds-page-template--touch select,
.ds-page-template--touch textarea {
    min-height: var(--ds-touch-target-min);
}

.ds-page-template--touch .ds-button--icon,
.ds-page-template--touch .ds-action-link--icon,
.ds-page-template--touch .ds-toggle-button--icon {
    min-width: var(--ds-touch-target-min);
}

.ds-page-template--touch input[type="checkbox"],
.ds-page-template--touch input[type="radio"] {
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.ds-page-template__cards--single {
    grid-template-columns: minmax(0, 1fr);
}

.ds-table__group th {
    background: var(--ds-color-surface-raised);
    color: var(--ds-color-text-primary);
    font-size: var(--ds-text-label-size);
    text-transform: none;
}

.ds-table__group-count,
.ds-list-group__count {
    margin-inline-start: var(--ds-space-0-75);
    color: var(--ds-color-text-secondary);
    font-weight: var(--ds-font-weight-regular);
}

.ds-list-group {
    display: grid;
    gap: var(--ds-space-0-5);
    min-width: 0;
}

.ds-list-group + .ds-list-group {
    margin-block-start: var(--ds-space-1);
}

.ds-list-group__title {
    margin: 0;
    padding-block-end: var(--ds-space-0-25);
    border-block-end: var(--ds-border-width-1) solid var(--ds-color-border);
    color: var(--ds-color-text-primary);
    font-size: var(--ds-text-label-size);
    font-weight: var(--ds-font-weight-semibold);
}

.ds-page-template--transfer {
    max-inline-size: none;
}

.ds-transfer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--ds-space-2);
}

.ds-transfer-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow-wrap: anywhere;
    gap: var(--ds-space-1-5);
    min-width: 0;
    padding: var(--ds-space-2);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    background: var(--ds-color-surface);
}

.ds-transfer-section h2 {
    margin: 0;
    font-size: var(--ds-text-section-title-size);
}

.ds-transfer-section__description {
    margin: 0;
    color: var(--ds-color-text-secondary);
}

.ds-transfer-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-0-75);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ds-transfer-step;
}

.ds-transfer-steps__step {
    counter-increment: ds-transfer-step;
    padding: var(--ds-space-0-25) var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-text-label-size);
}

.ds-transfer-steps__step::before {
    content: counter(ds-transfer-step) ". ";
}

.ds-transfer-steps__step--done {
    color: var(--ds-color-text-primary);
}

.ds-transfer-steps__step--current {
    border-color: var(--ds-color-action);
    color: var(--ds-color-action);
    font-weight: var(--ds-font-weight-semibold);
}

.ds-graph { margin: 0; display: grid; gap: var(--ds-space-0-5); }
.ds-graph__tools { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); }
.ds-graph__tool {
    inline-size: 2rem;
    block-size: 2rem;
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: 4px;
    background: var(--ds-color-surface-subtle);
    color: inherit;
    cursor: pointer;
}
.ds-graph__tool:disabled { cursor: default; opacity: 0.5; }
.ds-graph__zoom { font-size: var(--ds-text-caption-size); color: var(--ds-color-text-secondary); }
.ds-graph__viewport { overflow: auto; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: 4px; touch-action: pan-x pan-y; }
.ds-graph__svg { display: block; }
.ds-graph__edge { fill: none; stroke: var(--ds-color-text-secondary); stroke-width: 1.5; }
.ds-graph__arrow { fill: var(--ds-color-text-secondary); }
.ds-graph__edge-label { font-size: 11px; fill: var(--ds-color-text-secondary); text-anchor: middle; }
.ds-graph__node { cursor: pointer; }
.ds-graph__node:focus { outline: none; }
.ds-graph__node:focus .ds-graph__box, .ds-graph__node--selected .ds-graph__box { stroke-width: 3; }
.ds-graph__box { fill: var(--ds-color-surface-subtle); stroke: var(--ds-color-border); stroke-width: 1; }
.ds-graph__node--info .ds-graph__box { stroke: #2563eb; }
.ds-graph__node--success .ds-graph__box { stroke: #15803d; }
.ds-graph__node--warning .ds-graph__box { stroke: #b45309; }
.ds-graph__node--danger .ds-graph__box { stroke: #b91c1c; }
.ds-graph__node--selected .ds-graph__box { stroke: #2563eb; }
.ds-graph__label { font-size: 13px; font-weight: 600; fill: currentColor; }
.ds-graph__detail { font-size: 11px; fill: var(--ds-color-text-secondary); }

.ds-workbench__metrics { min-width: 0; }

.ds-workbench__metrics:empty { display: none; }

.ds-metric-strip:empty { display: none; }

.ds-metric-strip__item--static { cursor: default; }

.ds-metric-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--ds-space-0);
}

.ds-metric-strip__item {
    display: flex;
    flex: 1 1 10rem;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-0-75) var(--ds-space-1-5);
    border: 0;
    border-inline-end: var(--ds-border-width-1) solid var(--ds-color-border);
    background: transparent;
    color: var(--ds-color-text-primary);
    font: inherit;
    text-align: start;
    cursor: pointer;
    position: relative;
}

.ds-metric-strip__item:first-child { padding-inline-start: var(--ds-space-0); }

.ds-metric-strip__item:last-child { border-inline-end: 0; }

.ds-metric-strip__item:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-metric-strip__icon {
    display: inline-grid;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    place-items: center;
    border-radius: var(--ds-radius-3);
    background: var(--ds-color-surface-muted);
    color: var(--ds-color-text-muted);
}

.ds-metric-strip__item.ds-tone--success .ds-metric-strip__icon { color: var(--ds-color-success); }
.ds-metric-strip__item.ds-tone--warning .ds-metric-strip__icon { color: var(--ds-color-warning); }
.ds-metric-strip__item.ds-tone--danger .ds-metric-strip__icon { color: var(--ds-color-danger); }
.ds-metric-strip__item.ds-tone--info .ds-metric-strip__icon { color: var(--ds-color-info); }

.ds-metric-strip__text { display: grid; }

.ds-metric-strip__value { font-size: var(--ds-text-heading-2-size); line-height: var(--ds-line-height-tight); }

.ds-metric-strip__label { color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-small-size); }

.ds-metric-strip__item--pressed::after {
    content: "";
    position: absolute;
    inset-inline: var(--ds-space-1-5);
    inset-block-end: calc(var(--ds-space-0-25) * -1);
    block-size: var(--ds-border-width-2);
    border-radius: var(--ds-radius-1);
    background: var(--ds-color-text-primary);
}

.ds-metric-strip__item--pressed:first-child::after { inset-inline-start: var(--ds-space-0); }

.ds-workbench__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-75);
    padding-block: var(--ds-space-1) var(--ds-space-0-5);
}

.ds-workbench__tool-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-75);
    margin-inline-start: auto;
}

.ds-workbench__tool-actions:empty { display: none; }

.ds-page-template__body--side {
    display: flex;
    align-items: stretch;
    gap: var(--ds-space-0);
    border-block-start: var(--ds-border-width-1) solid var(--ds-color-border);
}

.ds-side-list {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.ds-side-list__main { min-width: 0; }

.ds-side-panel {
    flex: 0 0 min(38rem, 45%);
    min-width: 0;
    border-inline-start: var(--ds-border-width-1) solid var(--ds-color-border);
    background: var(--ds-color-surface);
}

.ds-side-panel__bar {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    padding: var(--ds-space-1) var(--ds-space-1) var(--ds-space-0);
    background: var(--ds-color-surface);
}

.ds-side-panel__back { display: none; }

.ds-side-panel__scrim { display: none; }

.ds-side-panel__content {
    min-width: 0;
    padding: var(--ds-space-0) var(--ds-space-2) var(--ds-layout-assistant-reserve);
    overflow-wrap: anywhere;
}

.ds-side-panel__content :is(.ds-titled-block__title-row, .ds-detail-panel > header) { min-width: 0; }

.ds-workbench__selection {
    position: sticky;
    inset-block-end: var(--ds-space-1-5);
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: var(--ds-z-dropdown);
}

.ds-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-0-75);
    padding: var(--ds-space-0-75) var(--ds-space-1);
    border: var(--ds-border-width-1) solid var(--ds-color-border-strong);
    border-radius: var(--ds-radius-surface);
    background: var(--ds-color-surface-raised);
    box-shadow: var(--ds-shadow-3);
    pointer-events: auto;
}

.ds-bulk-bar__actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-0-5); }

.ds-table--sticky th {
    position: sticky;
    inset-block-start: var(--ds-space-0);
    z-index: 1;
}

.ds-table--sticky { border-collapse: separate; border-spacing: 0; }

.ds-table__sort {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-5);
    padding: var(--ds-space-0);
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.ds-table__sort:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

.ds-table__sort-mark { opacity: 0.6; }

.ds-table__row--selectable { cursor: pointer; }

.ds-table__row--selectable:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: calc(var(--ds-focus-ring-width) * -1);
}

.ds-table__row--selectable.is-selected td { background: var(--ds-color-action-subtle); }

.ds-table__interactive { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); }

.ds-table--hover-actions .ds-table__action-row { opacity: 0; transition: opacity var(--ds-motion-duration-1) var(--ds-motion-ease-standard); }

.ds-table--hover-actions tbody tr:hover .ds-table__action-row,
.ds-table--hover-actions tbody tr:focus-within .ds-table__action-row,
.ds-table--hover-actions tbody tr.is-selected .ds-table__action-row { opacity: 1; }

@media (hover: none), (any-hover: none) {
    .ds-table--hover-actions .ds-table__action-row { opacity: 1; }
}

.ds-person-cell { display: flex; align-items: center; gap: var(--ds-space-1); }

.ds-person-cell__text { display: grid; overflow-wrap: break-word; }

.ds-person-cell__secondary { color: var(--ds-color-text-muted); font-size: var(--ds-text-body-small-size); }

.ds-role-tags { display: inline-flex; flex-wrap: wrap; gap: var(--ds-space-0-25); }

.ds-role-tag {
    padding: var(--ds-space-0-25) var(--ds-space-0-75);
    border: var(--ds-border-width-1) solid var(--ds-color-border);
    border-radius: var(--ds-radius-2);
    background: var(--ds-color-surface-muted);
    overflow-wrap: break-word;
    font-size: var(--ds-text-caption-size);
}

.ds-role-tag--strong { border-color: var(--ds-color-border-strong); }

@media (max-width: 90rem) {
    body:has(.ds-page-template__body--side:not(.ds-page-template__body--wide) > .ds-side-panel) .ds-app-shell__content { overflow: hidden; }

    .ds-side-panel__scrim {
        position: fixed;
        inset: 0;
        z-index: var(--ds-z-overlay);
        display: block;
        background: var(--ds-color-overlay-scrim);
    }

    .ds-side-panel {
        position: fixed;
        inset-block: 0;
        inset-inline-end: 0;
        z-index: var(--ds-z-overlay);
        box-sizing: border-box;
        inline-size: min(38rem, 100%);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: var(--ds-shadow-3);
    }
}

@media (max-width: 48rem) {
    .ds-page-template__body--side { flex-direction: column; }
    .ds-permission-row { flex-wrap: wrap; }
    .ds-permission-row__text, .ds-permission-row__toggle { flex: 1 0 100%; }
    .ds-permission-row__origin, .ds-permission-row__switch, .ds-permission-row__field--action { min-inline-size: 0; }
    .ds-page-template__body--side:has(.ds-side-panel) .ds-side-list { display: none; }
    .ds-side-panel__scrim { display: none; }
    .ds-side-panel { inline-size: 100%; border-inline-start: 0; box-shadow: none; padding-block-end: env(safe-area-inset-bottom); }
    .ds-side-panel__bar { justify-content: flex-start; }
    .ds-side-panel__close { display: none; }
    .ds-side-panel__back { display: inline-flex; }
    .ds-metric-strip__item { border-inline-end: 0; padding-inline-start: var(--ds-space-0); }
}

@media (width < 64rem) {
    body:has(.ds-side-panel) .ds-app-shell__content { overflow: hidden; }
}

@media (width >= 64rem) {
    .ds-page-template__body--wide:has(.ds-side-panel) .ds-side-list { flex: 0 0 min(20rem, 28%); }
    .ds-page-template__body--wide .ds-side-panel { flex: 1 1 auto; position: static; inline-size: auto; box-shadow: none; }
    .ds-page-template__body--wide .ds-side-panel__scrim { display: none; }
    .ds-page-template__body--wide:has(.ds-side-panel) .ds-side-list :is(th, td) { display: none; }
    .ds-page-template__body--wide:has(.ds-side-panel) .ds-side-list tr > :is(th, td):first-child:not(:has(input[type="checkbox"])),
    .ds-page-template__body--wide:has(.ds-side-panel) .ds-side-list tr > :is(th, td):first-child:has(input[type="checkbox"]) + :is(th, td),
    .ds-page-template__body--wide:has(.ds-side-panel) .ds-side-list tr > :is(th, td)[colspan] { display: table-cell; }
}

.ds-feature-page__table,
.ds-table {
    border-collapse: separate;
    border-spacing: 0 var(--ds-space-0-25);
    --ds-table-stripe: color-mix(in srgb, var(--ds-color-text-primary) 3%, transparent);
    --ds-table-hover: color-mix(in srgb, var(--ds-color-text-primary) 7%, transparent);
    --ds-table-selected: color-mix(in srgb, var(--ds-color-text-primary) 16%, transparent);
    --ds-table-base: var(--ds-color-background-page);
}

.ds-feature-page__table th,
.ds-feature-page__table td,
.ds-table th,
.ds-table td {
    border: 0;
    border-bottom: 0;
    vertical-align: middle;
    padding: var(--ds-space-0-75) var(--ds-space-1);
}

.ds-feature-page__table th,
.ds-table th {
    background: var(--ds-color-surface);
    color: var(--ds-color-text-muted);
    font-size: var(--ds-text-body-small-size);
    text-transform: none;
}

.ds-feature-page__table tbody tr:nth-child(odd) td,
.ds-table tbody tr:nth-child(odd) td { background: var(--ds-table-stripe); }

.ds-feature-page__table tbody tr:first-child td:first-child,
.ds-feature-page__table tbody tr td:first-child,
.ds-table tbody tr td:first-child { border-start-start-radius: var(--ds-radius-8); border-end-start-radius: var(--ds-radius-8); }

.ds-feature-page__table tbody tr td:last-child,
.ds-table tbody tr td:last-child { border-start-end-radius: var(--ds-radius-8); border-end-end-radius: var(--ds-radius-8); }

.ds-feature-page__table tbody tr:hover td,
.ds-table tbody tr:hover td,
.ds-table--master-selectable tbody tr:hover td { background: var(--ds-table-hover); }

.ds-feature-page__table tbody tr.is-selected td,
.ds-table tbody tr.is-selected td,
.ds-feature-page__table tbody tr[aria-selected="true"] td,
.ds-table tbody tr[aria-selected="true"] td,
.ds-table--master-selectable tbody tr.is-selected td,
.ds-table--master-selectable tbody tr[aria-selected="true"] td,
.ds-table--master-selectable tbody tr.is-selected:hover td,
.ds-table--master-selectable tbody tr[aria-selected="true"]:hover td,
.ds-table__row--selectable.is-selected td {
    background: var(--ds-table-selected);
    box-shadow: none;
}

.ds-table tbody tr.is-selected td:first-child,
.ds-table tbody tr[aria-selected="true"] td:first-child,
.ds-table--master-selectable tbody tr.is-selected td:first-child,
.ds-table--master-selectable tbody tr[aria-selected="true"] td:first-child { box-shadow: inset var(--ds-border-width-3) 0 0 var(--ds-color-action); }

@media (max-width: 48rem) {
    .ds-table tbody td.ds-table__row-head {
        position: sticky;
        inset-inline-start: var(--ds-space-0);
        z-index: 2;
        min-inline-size: 8rem;
        max-inline-size: 45vw;
        white-space: normal;
        overflow-wrap: anywhere;
        background: var(--ds-table-base);
    }

    .ds-table tbody tr:nth-child(odd) td.ds-table__row-head {
        background: linear-gradient(var(--ds-table-stripe), var(--ds-table-stripe)), var(--ds-table-base);
    }

    .ds-table tbody tr:hover td.ds-table__row-head {
        background: linear-gradient(var(--ds-table-hover), var(--ds-table-hover)), var(--ds-table-base);
    }

    .ds-table tbody tr.is-selected td.ds-table__row-head,
    .ds-table tbody tr[aria-selected="true"] td.ds-table__row-head {
        background: linear-gradient(var(--ds-table-selected), var(--ds-table-selected)), var(--ds-table-base);
    }
}

.ds-table__group th {
    background: transparent;
    color: var(--ds-color-text-secondary);
    border-radius: 0;
}

.ds-table--sticky th { border-radius: 0; }

.ds-workbench__tools {
    align-items: center;
    gap: var(--ds-space-1);
    padding-block: var(--ds-space-1-5) var(--ds-space-1);
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) > * { align-self: center; margin-block: 0; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field { display: block; position: relative; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field > .ds-form-field__label {
    position: absolute;
    inline-size: var(--ds-border-width-1);
    block-size: var(--ds-border-width-1);
    padding: var(--ds-space-0);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field:has(> input:is([type="date"], [type="time"], [type="datetime-local"])) {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-0-75);
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field:has(> input:is([type="date"], [type="time"], [type="datetime-local"])) > .ds-form-field__label {
    position: static;
    inline-size: auto;
    block-size: auto;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
    color: var(--ds-color-text-muted);
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field > :is(input, select) {
    min-height: var(--ds-control-height);
    box-sizing: border-box;
    border-radius: var(--ds-radius-control);
    padding-inline: var(--ds-space-1-5);
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field:has(> input[type="search"]) { inline-size: 20rem; max-inline-size: 100%; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field > input[type="search"] {
    inline-size: 100%;
    border-radius: var(--ds-radius-control);
    padding-inline-start: calc(var(--ds-space-1-5) + var(--ds-space-2));
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field:has(> input[type="search"])::before {
    content: "";
    position: absolute;
    inset-inline-start: var(--ds-space-1-25);
    inset-block-start: calc(var(--ds-control-height) / 2 - 0.5rem);
    inline-size: 1rem;
    block-size: 1rem;
    background: var(--ds-color-text-muted);
    mask: url('/_content/Stinaxis.DesignSystem/icons/search.svg') center / contain no-repeat;
    -webkit-mask: url('/_content/Stinaxis.DesignSystem/icons/search.svg') center / contain no-repeat;
    pointer-events: none;
    z-index: 1;
}

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field > input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-segmented-control--labelled { row-gap: 0; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-segmented-control__legend {
    position: absolute;
    inline-size: var(--ds-border-width-1);
    block-size: var(--ds-border-width-1);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ds-section-card {
    padding: var(--ds-space-0);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ds-section-card > header { align-items: center; min-block-size: var(--ds-control-height); }
.ds-section-card h2 { font-size: var(--ds-text-body-size); font-weight: var(--ds-font-weight-strong); }
.ds-section-card__content { margin-block-start: var(--ds-space-0-5); }

.ds-detail-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-0-75); min-inline-size: 0; }

.ds-fact-list--rows { gap: var(--ds-space-0); }

.ds-fact-list--rows > div {
    grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
    gap: var(--ds-space-1-5);
    align-items: center;
    padding-block: var(--ds-space-0-75);
}

.ds-fact-list--rows dt { color: var(--ds-color-text-secondary); font-size: var(--ds-text-body-size); }

.ds-settings-section {
    padding: var(--ds-space-0) var(--ds-space-0) var(--ds-space-1-5);
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ds-settings-section__icon { background: transparent; inline-size: 2rem; block-size: 2rem; }

.ds-settings-section__body > .ds-settings-row { border-block-start: 0; }

.ds-settings-values { padding-block-start: var(--ds-space-0); border-block-start: 0; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field:has(> select) { inline-size: auto; min-inline-size: 0; max-inline-size: var(--ds-tool-chip-max); }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field > select { inline-size: auto; max-inline-size: var(--ds-tool-chip-max); text-overflow: ellipsis; padding-inline-end: calc(var(--ds-space-1-5) + 1rem); }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) > :has(input[type="search"]) { flex: 0 1 20rem; min-inline-size: 11rem; }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field.ds-form-width--fit:has(> select) { max-inline-size: calc(100vw - 2rem); }

:is(.ds-workbench__tools, .ds-cluster[role="toolbar"]) .ds-form-field.ds-form-width--fit > select { max-inline-size: calc(100vw - 2rem); text-overflow: clip; }

:root { --ds-tool-chip-max: 10rem; --ds-tool-date-width: 9.5rem; }

a.ds-metric-strip__item { text-decoration: none; }

.ds-workbench__tools > .ds-filter-bar,
.ds-cluster[role="toolbar"] > .ds-filter-bar,
.ds-workbench__tools > .ds-filter-bar > .ds-filter-bar__chips,
.ds-cluster[role="toolbar"] > .ds-filter-bar > .ds-filter-bar__chips,
.ds-workbench__tools > .ds-filter-bar > .ds-filter-bar__fields,
.ds-cluster[role="toolbar"] > .ds-filter-bar > .ds-filter-bar__fields,
.ds-workbench__tools > .ds-filter-bar > .ds-filter-bar__actions,
.ds-cluster[role="toolbar"] > .ds-filter-bar > .ds-filter-bar__actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-1);
    border: 0;
    background: transparent;
    padding: 0;
    min-inline-size: 0;
}

.ds-workbench__tools .ds-filter-chip,
.ds-cluster[role="toolbar"] .ds-filter-chip,
.ds-workbench__tools .ds-toggle-button,
.ds-cluster[role="toolbar"] .ds-toggle-button {
    min-block-size: var(--ds-control-height);
    box-sizing: border-box;
    border-radius: var(--ds-radius-control);
    padding-inline: var(--ds-space-1-5);
    font-size: var(--ds-text-body-size);
}

.ds-workbench__tools .ds-form-field > input[type="date"],
.ds-cluster[role="toolbar"] .ds-form-field > input[type="date"] {
    inline-size: var(--ds-tool-date-width);
    max-inline-size: 100%;
    font: inherit;
}

.ds-workbench__tools .ds-form-field:has(> input[type="date"]),
.ds-cluster[role="toolbar"] .ds-form-field:has(> input[type="date"]) { inline-size: auto; min-inline-size: 0; }

.ds-workbench__tools .ds-search-picker,
.ds-cluster[role="toolbar"] .ds-search-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-1);
}

.ds-workbench__tools > .ds-search-picker:has(input[type="search"]),
.ds-cluster[role="toolbar"] > .ds-search-picker:has(input[type="search"]) { flex: 0 1 auto; min-inline-size: 0; }

.ds-workbench__tools .ds-search-picker .ds-search-bar,
.ds-cluster[role="toolbar"] .ds-search-picker .ds-search-bar { inline-size: clamp(20rem, calc(var(--ds-search-chars, 0) * 1ch + 4.5rem), var(--ds-field-width-wide)); max-inline-size: 100%; gap: var(--ds-space-0); }

.ds-workbench__tools .ds-search-picker .ds-search-bar > span:first-child,
.ds-cluster[role="toolbar"] .ds-search-picker .ds-search-bar > span:first-child,
.ds-search-picker:not(.ds-search-picker--loaded) .ds-form-field__hint {
    position: absolute;
    inline-size: var(--ds-border-width-1);
    block-size: var(--ds-border-width-1);
    padding: var(--ds-space-0);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ds-workbench__tools .ds-search-picker .ds-search-bar__control,
.ds-cluster[role="toolbar"] .ds-search-picker .ds-search-bar__control {
    min-block-size: var(--ds-control-height);
    box-sizing: border-box;
    border-radius: var(--ds-radius-control);
}

.ds-workbench__tools .ds-filter-bar__actions .ds-button,
.ds-cluster[role="toolbar"] .ds-filter-bar__actions .ds-button {
    min-block-size: var(--ds-control-height);
    border-color: transparent;
    background: transparent;
    color: var(--ds-color-text-secondary);
}

.ds-workbench__tools .ds-filter-bar__actions .ds-button:hover:not(:disabled),
.ds-cluster[role="toolbar"] .ds-filter-bar__actions .ds-button:hover:not(:disabled) {
    background: var(--ds-color-control-hover);
    color: var(--ds-color-text-primary);
}

.ds-metric-strip__note { color: var(--ds-color-text-muted); font-size: var(--ds-text-body-small-size); }

.ds-workbench__tools > section.ds-filter-bar.ds-filter-bar,
.ds-cluster[role="toolbar"] > section.ds-filter-bar.ds-filter-bar { flex: 0 1 auto; min-inline-size: 0; }

.ds-search-picker { position: relative; }
.ds-search-picker__chosen { display: flex; flex-wrap: wrap; gap: var(--ds-space-0-5); }
.ds-search-picker__chosen .ds-search-picker__selection { display: inline-flex; justify-content: flex-start; max-inline-size: 100%; padding-block: var(--ds-space-0-25); padding-inline: var(--ds-space-1) var(--ds-space-0-25); border-radius: var(--ds-radius-pill); }
.ds-search-picker__chosen .ds-search-picker__text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-search-picker__remove { display: inline-grid; place-items: center; flex: 0 0 auto; inline-size: 1.75rem; block-size: 1.75rem; border: 0; border-radius: var(--ds-radius-pill); background: transparent; color: var(--ds-color-text-secondary); cursor: pointer; padding: 0; }
.ds-search-picker__remove:hover { background: var(--ds-color-control-hover); color: var(--ds-color-text-primary); }
.ds-search-picker__remove .ds-icon { inline-size: var(--ds-icon-size-small); block-size: var(--ds-icon-size-small); }
.ds-search-picker__options > li { min-inline-size: 0; }
.ds-search-picker__option.is-active { background: var(--ds-color-control-hover); outline: var(--ds-border-width-1) solid var(--ds-color-focus); }

.ds-header-search__field input:focus-visible,
.ds-search-bar__control input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.ds-header-search__field input:hover,
.ds-search-bar__control input:hover { background: transparent; }
.ds-header-search__field:focus-within { border-color: var(--ds-color-focus); }
.ds-search-bar__control:focus-within { border-color: var(--ds-color-focus); }

.ds-form-field__date--empty:not(:focus) { color: transparent; }
.ds-form-field__date--empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
.ds-form-field__date-empty { display: flex; box-sizing: border-box; inline-size: 100%; min-block-size: var(--ds-control-height); align-items: center; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-control); background: var(--ds-color-control-background); color: var(--ds-color-text-secondary); cursor: pointer; font: inherit; line-height: var(--ds-line-height-default); padding: var(--ds-space-0-25) var(--ds-space-0-75); text-align: start; }
.ds-form-field__date-empty:hover { background: var(--ds-color-control-hover); }
.ds-form-field__date-empty:disabled { cursor: not-allowed; background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); }
.ds-form-field__date-clear { justify-self: start; border: 0; background: transparent; color: var(--ds-color-action); cursor: pointer; font: inherit; font-size: var(--ds-text-caption-size); padding: 0; }
.ds-form-field__date-clear:hover { text-decoration: underline; }

.ds-feature-page__form--grid .ds-form-field__hint { white-space: normal; overflow-wrap: anywhere; }

.ds-color-choice { display: grid; gap: var(--ds-space-0-5); min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.ds-color-choice__legend { padding: 0; color: var(--ds-color-text-secondary); font-size: var(--ds-text-label-size); }
.ds-color-choice__options { display: flex; flex-wrap: wrap; gap: var(--ds-space-0-5); align-items: center; }
.ds-color-choice__option { position: relative; display: inline-flex; }
.ds-color-choice__option input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.ds-color-choice__option label { display: inline-grid; place-items: center; inline-size: 2rem; block-size: 2rem; border: var(--ds-border-width-2) solid transparent; border-radius: var(--ds-radius-pill); cursor: pointer; }
.ds-color-choice__option input:checked + label { border-color: var(--ds-color-text-primary); }
.ds-color-choice__option input:focus-visible + label { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-color-choice__swatch { display: block; inline-size: 1.4rem; block-size: 1.4rem; border-radius: var(--ds-radius-pill); }
.ds-color-choice__preview { display: inline-flex; }
.ds-color-mark { display: inline-flex; min-inline-size: 1.75rem; justify-content: center; border-radius: var(--ds-radius-1); color: var(--ds-color-on-action); font-size: var(--ds-text-caption-size); font-weight: var(--ds-font-weight-strong); line-height: 1.6; padding-inline: var(--ds-space-0-5); white-space: nowrap; }
.ds-color-mark--blue { background: var(--ds-color-person-blue); }
.ds-color-mark--teal { background: var(--ds-color-person-teal); }
.ds-color-mark--green { background: var(--ds-color-person-green); }
.ds-color-mark--amber { background: var(--ds-color-person-amber); }
.ds-color-mark--orange { background: var(--ds-color-person-orange); }
.ds-color-mark--red { background: var(--ds-color-person-red); }
.ds-color-mark--violet { background: var(--ds-color-person-violet); }
.ds-color-mark--gray { background: var(--ds-color-text-secondary); }

@media (width > 48rem) {
    .ds-feature-page__table tbody td,
    .ds-table tbody td { white-space: normal; overflow-wrap: anywhere; }
    .ds-table tbody td.ds-table__row-head { overflow-wrap: normal; word-break: normal; min-inline-size: 7rem; }
    .ds-feature-page__table thead th,
    .ds-table thead th { white-space: normal; overflow-wrap: normal; word-break: normal; }
    .ds-table td.ds-table__actions,
    .ds-table th.ds-table__actions { white-space: nowrap; }
}

.ds-file-picker { justify-items: stretch; inline-size: 100%; box-sizing: border-box; }
.ds-file-picker__drop { position: relative; display: flex; box-sizing: border-box; min-block-size: 5rem; align-items: center; justify-content: center; gap: var(--ds-space-0-75); border: var(--ds-border-width-2) dashed var(--ds-color-border-strong); border-radius: var(--ds-radius-surface); background: var(--ds-color-control-background); color: var(--ds-color-text-secondary); cursor: pointer; padding: var(--ds-space-1-5); text-align: center; }
.ds-file-picker__drop:hover,
.ds-file-picker__drop:focus-within { border-color: var(--ds-color-focus); background: var(--ds-color-control-hover); color: var(--ds-color-text-primary); }
.ds-file-picker__drop:has(:focus-visible) { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-file-picker__drop.is-disabled { cursor: not-allowed; background: var(--ds-color-control-disabled); color: var(--ds-color-text-disabled); }
.ds-file-picker__drop .ds-icon { flex: 0 0 auto; inline-size: var(--ds-icon-size-large); block-size: var(--ds-icon-size-large); }
.ds-file-picker__drop .ds-file-picker__field { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
.ds-file-picker__drop .ds-file-picker__field:disabled { cursor: not-allowed; }

@media (width <= 30rem) {
    .ds-cell-button--drag { touch-action: manipulation; }
    .ds-table-scroll:not(:has(.ds-table--matrix)),
    .ds-feature-page__table-wrap,
    .ds-table-workbench__viewport { overflow-x: visible; }
    .ds-table:not(.ds-table--matrix) thead { position: absolute; inline-size: var(--ds-border-width-1); block-size: var(--ds-border-width-1); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    table.ds-table:not(.ds-table--matrix),
    .ds-table:not(.ds-table--matrix) tbody { display: block; inline-size: 100%; }
    .ds-table:not(.ds-table--matrix) tbody tr { display: grid; gap: var(--ds-space-0-25); margin-block-end: var(--ds-space-0-5); border-radius: var(--ds-radius-8); padding: var(--ds-space-0-75); background: var(--ds-table-stripe); }
    .ds-table:not(.ds-table--matrix) tbody :is(td, th) { display: block; padding: 0; white-space: normal; overflow-wrap: anywhere; background: transparent; border-radius: 0; }
    .ds-table:not(.ds-table--matrix) tbody :is(td, th):first-child { font-weight: var(--ds-font-weight-strong); }
    .ds-table:not(.ds-table--matrix) tbody td.ds-table__actions { justify-self: start; inline-size: auto; }
    .ds-table:not(.ds-table--matrix) tbody td.ds-table__actions > .ds-table__action-row { flex-wrap: wrap; justify-content: flex-start; }
    .ds-table:not(.ds-table--matrix) tbody :is(td, th):empty { display: none; }
    .ds-table:not(.ds-table--matrix) tbody :is(td, th)[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: var(--ds-font-size-small); font-weight: var(--ds-font-weight-regular); color: var(--ds-color-text-muted); }
    .ds-table:not(.ds-table--matrix) tbody tr :is(td, th),
    .ds-table:not(.ds-table--matrix) tbody tr td.ds-table__row-head { position: static; min-inline-size: 0; max-inline-size: none; background: transparent; }
    .ds-dialog,
    .ds-dialog--wide { inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; transform: none; border: 0; border-radius: 0; }
    .ds-side-panel { inline-size: 100%; }
    body:has(.ds-bulk-bar) .ds-app-shell__content:not(:has(.ds-home)) { padding-block-end: calc(10rem + var(--ds-space-2)); }
    .ds-bulk-bar { position: fixed; inset-inline: var(--ds-space-1); inset-block-end: var(--ds-space-1); z-index: var(--ds-z-dropdown); }
    .ds-side-panel__bar { padding-block-end: var(--ds-space-1); }
    .ds-context-bar { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "back trail" "end end"; column-gap: var(--ds-space-1); row-gap: var(--ds-space-0-25); block-size: auto; padding: var(--ds-space-0-5) var(--ds-space-1); }
    .ds-context-bar > span:empty,
    .ds-context-bar__aside > span:empty { display: none; }
    .ds-context-bar__aside { display: contents; }
    .ds-context-bar__back { grid-area: back; }
    .ds-context-bar__trail { grid-area: trail; padding-inline-end: 0; }
    .ds-context-bar__trail li:not(:last-child) { display: none; }
    .ds-context-bar__trail li + li::before { content: none; }
    .ds-context-bar__end,
    .ds-context-bar__aside > .ds-module-identity { grid-area: end; justify-self: start; font-size: var(--ds-font-size-small); }
}

.ds-detail-panel .ds-table tbody td { overflow-wrap: break-word; word-break: normal; }
.ds-detail-panel .ds-table thead th { overflow-wrap: normal; word-break: normal; hyphens: none; }

.ds-cell-button { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--ds-space-0-25); inline-size: 100%; min-block-size: var(--ds-touch-target-min); padding: var(--ds-space-0-5); border: var(--ds-border-width-1) solid transparent; border-radius: var(--ds-radius-1); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ds-cell-button:hover { background: var(--ds-color-surface-subtle); }
.ds-cell-button--drag { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ds-cell-button:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-cell-button[aria-pressed="true"] { border-color: var(--ds-color-action); background: var(--ds-color-action-subtle); }
.ds-cell-button:disabled { cursor: not-allowed; }
.ds-table td.ds-table__cell--shaded, .ds-table th.ds-table__cell--shaded { background: var(--ds-color-surface-subtle); }
.ds-table tbody tr td.ds-table__cell--shaded { background: color-mix(in srgb, var(--ds-color-text-primary) 9%, var(--ds-table-base)); }
.ds-table--fixed { table-layout: fixed; inline-size: 100%; }
.ds-table--fixed th:first-child, .ds-table--fixed td:first-child { inline-size: 12rem; }
.ds-table--matrix th, .ds-table--matrix td { padding: var(--ds-space-0-5) var(--ds-space-0-25); }
.ds-table--matrix th .ds-button { padding-inline: var(--ds-space-0-25); min-inline-size: 0; }
.ds-table--matrix tbody td.ds-table__row-head, .ds-table--matrix thead th:first-child { position: sticky; inset-inline-start: var(--ds-space-0); z-index: 2; min-inline-size: 7rem; max-inline-size: 9rem; padding-inline: var(--ds-space-0-75); }
.ds-table--matrix tbody td.ds-table__row-head { background: var(--ds-table-base); }
@media screen { .ds-table--matrix thead th { white-space: nowrap; } }
.ds-table td.ds-table__bar-cell { --ds-bar-units: 4; padding-inline: 0; vertical-align: middle; }
.ds-table-bar { display: grid; grid-template-columns: repeat(var(--ds-bar-units), minmax(0, 1fr)); align-items: center; min-block-size: var(--ds-touch-target-min); }
.ds-table-bar__fill { display: flex; align-items: center; box-sizing: border-box; min-inline-size: 0; min-block-size: 1.5rem; margin-inline: 1px; padding-inline: var(--ds-space-0-5); border: var(--ds-border-width-1) solid var(--ds-tone-colour, var(--ds-color-border)); border-radius: var(--ds-radius-1); background: color-mix(in srgb, var(--ds-tone-colour, var(--ds-color-border)) 30%, var(--ds-color-surface)); color: var(--ds-color-text-primary); font-size: var(--ds-text-caption-size); font-weight: var(--ds-font-weight-medium); }
.ds-table-bar__fill--pending { border-style: dashed; background: color-mix(in srgb, var(--ds-tone-colour, var(--ds-color-border)) 10%, var(--ds-color-surface)); }
.ds-table-bar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-table--matrix tbody tr:nth-child(odd) td.ds-table__row-head { background: linear-gradient(var(--ds-table-stripe), var(--ds-table-stripe)), var(--ds-table-base); }
@page ds-landscape { size: A4 landscape; margin: 10mm; }
.ds-year-calendar { display: grid; gap: var(--ds-space-1); }
.ds-year-calendar__legend { display: flex; flex-wrap: wrap; gap: var(--ds-space-0-5) var(--ds-space-1-25); margin: 0; padding: 0; list-style: none; }
.ds-year-calendar__legend li { display: inline-flex; align-items: center; gap: var(--ds-space-0-5); }
.ds-year-calendar__swatch { position: relative; display: inline-block; inline-size: 1rem; block-size: 1rem; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-1); }
.ds-year-calendar__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--ds-space-1) var(--ds-space-1-25); }
.ds-year-calendar__month { display: grid; gap: var(--ds-space-0-25); align-content: start; }
.ds-year-calendar__month-name { justify-self: start; padding: var(--ds-space-0-25) 0; border: 0; background: transparent; color: var(--ds-color-text-primary); font: inherit; font-weight: 600; text-align: start; }
button.ds-year-calendar__month-name { color: var(--ds-color-action); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
button.ds-year-calendar__month-name:focus-visible, button.ds-year-calendar__day:focus-visible { outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-year-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ds-year-calendar__weekday { color: var(--ds-color-text-muted); font-size: 0.75rem; text-align: center; }
.ds-year-calendar__day { position: relative; display: flex; align-items: center; justify-content: center; min-block-size: 2rem; padding: 0; border: var(--ds-border-width-1) solid var(--ds-color-border); border-radius: var(--ds-radius-1); background: var(--ds-color-surface); color: var(--ds-color-text-primary); font: inherit; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
button.ds-year-calendar__day { cursor: pointer; }
.ds-year-calendar__day--shaded { background: var(--ds-color-surface-subtle); }
.ds-year-calendar__day--success { background: color-mix(in srgb, var(--ds-color-success) 32%, var(--ds-color-surface)); }
.ds-year-calendar__day--warning { background: color-mix(in srgb, var(--ds-color-warning) 40%, var(--ds-color-surface)); }
.ds-year-calendar__day--danger { background: color-mix(in srgb, var(--ds-color-danger) 38%, var(--ds-color-surface)); }
.ds-year-calendar__day--info { background: color-mix(in srgb, var(--ds-color-info) 30%, var(--ds-color-surface)); }
.ds-year-calendar__day--neutral { background: var(--ds-color-surface-subtle); }
.ds-year-calendar__day--shaded.ds-year-calendar__day--success, .ds-year-calendar__day--shaded.ds-year-calendar__day--warning, .ds-year-calendar__day--shaded.ds-year-calendar__day--danger, .ds-year-calendar__day--shaded.ds-year-calendar__day--info { border-style: dashed; border-color: var(--ds-color-border-strong); }
.ds-year-calendar__day--success::before, .ds-year-calendar__day--warning::before, .ds-year-calendar__day--danger::before { position: absolute; inset-inline-start: 2px; inset-block-start: 0; font-size: 0.625rem; font-weight: 700; line-height: 1; }
.ds-year-calendar__day--success::before { content: "\2713"; }
.ds-year-calendar__day--warning::before { content: "!"; }
.ds-year-calendar__day--danger::before { content: "\00D7"; }
.ds-year-calendar__day--marked::after { content: ""; position: absolute; inset-inline-end: 2px; inset-block-start: 2px; inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--ds-color-text-primary); }
.ds-year-calendar__gap { min-block-size: 2rem; }
@media (max-width: 40rem) {
    .ds-year-calendar__day, .ds-year-calendar__gap { min-block-size: var(--ds-touch-target-min); }
}

.ds-table tbody :is(td, th).ds-table__cell--value,
.ds-table__value {
    white-space: nowrap;
    overflow-wrap: normal;
}

.ds-table tbody td.ds-table__cell--words {
    overflow-wrap: break-word;
}

:is([role="row"], [role="treeitem"], [role="gridcell"], [role="listitem"], [role="radio"], [role="slider"])[tabindex]:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-color-focus-ring);
    outline-offset: var(--ds-focus-offset);
}

[tabindex="-1"]:not(a, button, input, select, textarea, summary, [role="menuitem"], [role="option"], [role="tab"], [role="row"], [role="treeitem"], [role="gridcell"], [role="listitem"], [role="radio"], [role="slider"]):is(:focus, :focus-visible),
dialog:is(:focus, :focus-visible) {
    outline: none !important;
}

.ds-period-toolbar__trailing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-0-5); }
.ds-period-toolbar__trailing > :last-child:not(:first-child) { margin-inline-start: var(--ds-space-0-75); }
.ds-year-calendar--marks .ds-year-calendar__months { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.ds-year-calendar--marks .ds-year-calendar__day { flex-direction: column; justify-content: flex-start; gap: 1px; min-block-size: 2.75rem; padding-block-start: 1px; }
.ds-year-calendar__marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-inline-size: 100%; }
.ds-year-calendar__mark { display: inline-block; min-inline-size: 1rem; padding: 0 2px; border-radius: 2px; background: var(--ds-chart-colour, var(--ds-color-text-muted)); color: var(--ds-color-surface); font-size: 0.5625rem; font-weight: 700; line-height: 0.875rem; text-align: center; }
.ds-year-calendar__mark--more { background: transparent; color: var(--ds-color-text-secondary); }
@container ds-calendar (max-width: 30rem) {
    .ds-year-calendar--marks .ds-year-calendar__day { min-block-size: var(--ds-touch-target-min); }
    .ds-year-calendar__mark { inline-size: 0.4rem; min-inline-size: 0; block-size: 0.4rem; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; }
    .ds-year-calendar__mark--more { inline-size: auto; block-size: auto; font-size: 0.5625rem; line-height: 0.875rem; border-radius: 0; }
}

.ds-calendar__bar { --ds-calendar-span: 1; }
