/* GENERATED by tools/build_hig.py from design/hig-native (HIG Native design system). Do not edit by hand. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-compact: "SF Compact", "SF Compact Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --margin-compact: 16px;
  --padding-bezeled: 12px;
  --padding-borderless: 24px;
  --button-padding-small: 10px;
  --button-padding-medium: 12px;
  --button-padding-large: 20px;
  --button-icon-gap: 4px;
  --mac-button-padding-mini: 7px;
  --mac-button-padding: 16px;
  --segment-inset: 2px;
  --segment-gap: 4px;
  --vision-button-spacing: 60px;
  --tv-safe-vertical: 60px;
  --tv-safe-horizontal: 80px;
  --tv-grid-gap: 40px;
  --tv-grid-row-gap: 100px;
  --radius-capsule: 9999px;
  --radius-xs: 3px;
  --radius-sm: 8px;
  --radius-thumbnail: 10px;
  --radius-platter: 13px;
  --radius-glass: 20px;
  --radius-banner: 22px;
  --radius-group: 26px;
  --radius-menu: 32px;
  --radius-sheet: 34px;
  --radius-mac-mini: 4px;
  --radius-mac-small: 5px;
  --radius-mac-regular: 6px;
  --radius-mac-large: 7px;
  --radius-mac-xl: 9px;
  --radius-mac-menu-item: 8px;
  --radius-mac-menu: 12px;
  --radius-mac-window: 16px;
  --radius-mac-popover: 20px;
  --radius-mac-alert: 26px;
  --target-ios: 44px;
  --target-ios-min: 28px;
  --target-mac: 28px;
  --target-mac-min: 20px;
  --target-tv: 66px;
  --target-tv-min: 56px;
  --target-vision: 60px;
  --target-watch: 44px;
  --button-small: 28px;
  --button-medium: 34px;
  --button-large: 50px;
  --mac-control-mini: 16px;
  --mac-control-small: 20px;
  --mac-control-regular: 24px;
  --mac-control-large: 28px;
  --mac-control-xl: 36px;
  --toggle-width: 64px;
  --toggle-height: 28px;
  --segmented-small: 32px;
  --segmented-large: 48px;
  --stepper-width: 92px;
  --stepper-height: 32px;
  --row-height: 52px;
  --sidebar-row-height: 44px;
  --sidebar-width: 260px;
  --toolbar-button: 44px;
  --tab-bar-height: 99px;
  --status-bar-height: 62px;
  --alert-width: 300px;
  --action-sheet-width: 260px;
  --menu-width: 250px;
  --spinner-small: 14px;
  --spinner-regular: 20px;
  --spinner-large: 35px;
  --track-height: 6px;
  --tv-grid-width-2: 860px;
  --tv-grid-width-3: 560px;
  --tv-grid-width-4: 410px;
  --tv-grid-width-5: 320px;
  --tv-grid-width-6: 260px;
  --tv-grid-width-7: 217px;
  --tv-grid-width-8: 184px;
  --tv-grid-width-9: 160px;
  --text-min-ios: 11px;
  --text-min-mac: 10px;
  --text-min-vision: 12px;
  --text-min-watch: 12px;
  --text-min-tv: 23px;
  --blur-material: 75px;
  --blur-mac-material: 60px;
  --blur-glass-small: 6px;
  --blur-glass: 30px;
  --blur-glass-clear: 3px;
  --saturate-glass: 1.4;
  --saturate-glass-small: 2;
  --saturate-material: 1.208;
  --saturate-mac-material: 1.45;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --system-red: #ff383c;
  --system-orange: #ff8d28;
  --system-yellow: #ffcc00;
  --system-green: #34c759;
  --system-mint: #00c8b3;
  --system-teal: #00c3d0;
  --system-cyan: #00c0e8;
  --system-blue: #0088ff;
  --system-indigo: #6155f5;
  --system-purple: #cb30e0;
  --system-pink: #ff2d55;
  --system-brown: #ac7f5e;
  --system-gray: #8e8e93;
  --system-gray-2: #aeaeb2;
  --system-gray-3: #c7c7cc;
  --system-gray-4: #d1d1d6;
  --system-gray-5: #e5e5ea;
  --system-gray-6: #f2f2f7;
  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.3);
  --label-quaternary: rgba(60, 60, 67, 0.18);
  --label-quinary: rgba(60, 60, 67, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(0, 0, 0, 0.12);
  --separator-opaque: #c6c6c8;
  --fill-primary: rgba(120, 120, 120, 0.2);
  --fill-secondary: rgba(120, 120, 128, 0.16);
  --fill-tertiary: rgba(118, 118, 128, 0.12);
  --fill-quaternary: rgba(116, 116, 128, 0.08);
  --fill-quinary: rgba(0, 0, 0, 0.02);
  --background-primary: #ffffff;
  --background-secondary: #f2f2f7;
  --background-tertiary: #ffffff;
  --background-elevated-primary: #ffffff;
  --background-elevated-secondary: #f2f2f7;
  --background-elevated-tertiary: #ffffff;
  --grouped-background-primary: #f2f2f7;
  --grouped-background-secondary: #ffffff;
  --grouped-background-tertiary: #f2f2f7;
  --grouped-background-elevated-primary: #f2f2f7;
  --grouped-background-elevated-secondary: #ffffff;
  --grouped-background-elevated-tertiary: #f2f2f7;
  --vibrant-label-primary: #000000;
  --vibrant-label-secondary: rgba(0, 0, 0, 0.4);
  --vibrant-label-tertiary: rgba(0, 0, 0, 0.251);
  --vibrant-label-quaternary: rgba(0, 0, 0, 0.149);
  --vibrant-fill-primary: rgba(0, 0, 0, 0.2);
  --vibrant-fill-secondary: rgba(0, 0, 0, 0.122);
  --vibrant-fill-tertiary: rgba(0, 0, 0, 0.071);
  --vibrant-separator: rgba(0, 0, 0, 0.098);
  --glass-label-primary: #1a1a1a;
  --glass-label-secondary: #727272;
  --glass-label-tertiary: #bfbfbf;
  --glass-label-quaternary: #d9d9d9;
  --material-ultrathin: rgba(255, 255, 255, 0.03);
  --material-ultrathin-wash: rgba(255, 255, 255, 0.07);
  --material-thin: rgba(255, 255, 255, 0.4);
  --material-thin-wash: rgba(255, 255, 255, 0.05);
  --material-regular: rgba(255, 255, 255, 0.6);
  --material-regular-wash: rgba(255, 255, 255, 0.25);
  --material-thick: rgba(255, 255, 255, 0.84);
  --material-thick-wash: rgba(255, 255, 255, 0.34);
  --glass-regular-tint: rgba(255, 255, 255, 0.7);
  --glass-regular-shade: rgba(191, 191, 191, 0.1);
  --glass-small-fill: rgba(255, 255, 255, 0.519);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(0, 0, 0, 0.02);
  --pressed-overlay: rgba(0, 0, 0, 0.08);
  --scrim-alert: rgba(41, 41, 58, 0.23);
  --scrim-sheet: rgba(0, 0, 0, 0.2);
  --mac-label-primary: rgba(0, 0, 0, 0.85);
  --mac-label-secondary: rgba(0, 0, 0, 0.5);
  --mac-label-tertiary: rgba(0, 0, 0, 0.25);
  --mac-label-quaternary: rgba(0, 0, 0, 0.1);
  --mac-label-quinary: rgba(0, 0, 0, 0.05);
  --mac-fill-primary: rgba(0, 0, 0, 0.1);
  --mac-fill-secondary: rgba(0, 0, 0, 0.08);
  --mac-fill-tertiary: rgba(0, 0, 0, 0.05);
  --mac-fill-quaternary: rgba(0, 0, 0, 0.03);
  --mac-fill-quinary: rgba(0, 0, 0, 0.02);
  --mac-gray: #8e8e93;
  --mac-window-background: #ffffff;
  --mac-separator: rgba(60, 60, 67, 0.29);
  --mac-track: rgba(0, 0, 0, 0.06);
  --mac-track-border: rgba(0, 0, 0, 0.07);
  --mac-material-ultrathick: rgba(236, 236, 236, 0.88);
  --mac-material-thick: rgba(236, 236, 236, 0.76);
  --mac-material-regular: rgba(236, 236, 236, 0.63);
  --mac-material-thin: rgba(236, 236, 236, 0.5);
  --mac-material-ultrathin: rgba(236, 236, 236, 0.38);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #ffffff;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.02);
  --shadow-glass: 0 18px 46px 0 rgba(0, 0, 0, 0.25);
  --shadow-glass-highlight: inset 0 2px 0.25px -1.2px rgba(255, 255, 255, 1);
  --shadow-glass-rim: inset 0 -4px 2px -4px #ffffff27, inset 0 4px 8px -4px #ffffff27, inset 0 -1px 1.5px -0.5px #ffffff27, inset 0 1px 1.5px -0.5px #ffffff27;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000024, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 40px 30px -40px #00000019, inset 0 -40px 10px -40px #ffffff28, inset 0 40px 10px -40px #ffffff28;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000024, -1.25px 0 0 -0.75px #00000024, 1.25px 0 0 -0.75px #00000024;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
  color-scheme: dark;
  --system-red: #ff4245;
  --system-orange: #ff9230;
  --system-yellow: #ffd600;
  --system-green: #30d158;
  --system-mint: #00dac3;
  --system-teal: #00d2e0;
  --system-cyan: #3cd3fe;
  --system-blue: #0091ff;
  --system-indigo: #6d7cff;
  --system-purple: #db34f2;
  --system-pink: #ff375f;
  --system-brown: #b78a66;
  --system-gray: #8e8e93;
  --system-gray-2: #636366;
  --system-gray-3: #48484a;
  --system-gray-4: #3a3a3c;
  --system-gray-5: #2c2c2e;
  --system-gray-6: #1c1c1e;
  --label-primary: #ffffff;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.3);
  --label-quaternary: rgba(235, 235, 245, 0.16);
  --label-quinary: rgba(235, 235, 245, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(255, 255, 255, 0.12);
  --separator-opaque: #38383a;
  --fill-primary: rgba(120, 120, 128, 0.36);
  --fill-secondary: rgba(120, 120, 128, 0.32);
  --fill-tertiary: rgba(118, 118, 128, 0.24);
  --fill-quaternary: rgba(118, 118, 128, 0.18);
  --fill-quinary: rgba(118, 118, 128, 0.02);
  --background-primary: #000000;
  --background-secondary: #1c1c1e;
  --background-tertiary: #2c2c2e;
  --background-elevated-primary: #1c1c1e;
  --background-elevated-secondary: #2c2c2e;
  --background-elevated-tertiary: #3a3a3c;
  --grouped-background-primary: #000000;
  --grouped-background-secondary: #1c1c1e;
  --grouped-background-tertiary: #2c2c2e;
  --grouped-background-elevated-primary: #1c1c1e;
  --grouped-background-elevated-secondary: #2c2c2e;
  --grouped-background-elevated-tertiary: #3a3a3c;
  --vibrant-label-primary: #ffffff;
  --vibrant-label-secondary: rgba(255, 255, 255, 0.6);
  --vibrant-label-tertiary: rgba(255, 255, 255, 0.251);
  --vibrant-label-quaternary: rgba(255, 255, 255, 0.149);
  --vibrant-fill-primary: rgba(255, 255, 255, 0.2);
  --vibrant-fill-secondary: rgba(255, 255, 255, 0.122);
  --vibrant-fill-tertiary: rgba(255, 255, 255, 0.071);
  --vibrant-separator: rgba(255, 255, 255, 0.102);
  --glass-label-primary: #ededed;
  --glass-label-secondary: #8a8a8a;
  --glass-label-tertiary: #404040;
  --glass-label-quaternary: #262626;
  --material-ultrathin: #00000000;
  --material-ultrathin-wash: #00000000;
  --material-thin: rgba(0, 0, 0, 0.26);
  --material-thin-wash: #00000000;
  --material-regular: rgba(0, 0, 0, 0.41);
  --material-regular-wash: #00000000;
  --material-thick: rgba(0, 0, 0, 0.6);
  --material-thick-wash: #00000000;
  --glass-regular-tint: rgba(26, 26, 26, 0.5);
  --glass-regular-shade: rgba(26, 26, 26, 0.9);
  --glass-small-fill: rgba(153, 153, 153, 0.17);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(118, 118, 128, 0.24);
  --pressed-overlay: rgba(255, 255, 255, 0.08);
  --scrim-alert: rgba(18, 18, 18, 0.56);
  --scrim-sheet: rgba(0, 0, 0, 0.48);
  --mac-label-primary: #ffffff;
  --mac-label-secondary: rgba(255, 255, 255, 0.55);
  --mac-label-tertiary: rgba(255, 255, 255, 0.25);
  --mac-label-quaternary: rgba(255, 255, 255, 0.1);
  --mac-label-quinary: rgba(255, 255, 255, 0.05);
  --mac-fill-primary: rgba(255, 255, 255, 0.1);
  --mac-fill-secondary: rgba(255, 255, 255, 0.08);
  --mac-fill-tertiary: rgba(255, 255, 255, 0.05);
  --mac-fill-quaternary: rgba(255, 255, 255, 0.03);
  --mac-fill-quinary: rgba(255, 255, 255, 0.02);
  --mac-gray: #98989d;
  --mac-window-background: #1e1e1e;
  --mac-separator: var(--separator);
  --mac-track: rgba(255, 255, 255, 0.08);
  --mac-track-border: rgba(255, 255, 255, 0.04);
  --mac-material-ultrathick: rgba(44, 44, 44, 0.82);
  --mac-material-thick: rgba(44, 44, 44, 0.71);
  --mac-material-regular: rgba(44, 44, 44, 0.61);
  --mac-material-thin: rgba(41, 41, 41, 0.49);
  --mac-material-ultrathin: rgba(41, 41, 41, 0.4);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #ffffff;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 18px 48px 0 rgba(0, 0, 0, 0.45);
  --shadow-glass-highlight: inset 0 2px 0.2px -1.2px rgba(255, 255, 255, 0.2);
  --shadow-glass-rim: inset 0 -4px 8px -4px #ffffff22, inset 0 4px 8px -4px #ffffff22, inset 0 -1px 1.5px -0.5px #ffffff40, inset 0 1px 1.5px -0.5px #ffffff40;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000080, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset 20px 0 20px -30px #0000004d, inset -20px 0 20px -30px #0000004d, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 -40px 10px -40px #ffffff1a, inset 0 40px 10px -40px #ffffff1a;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000040, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}
}

@media (prefers-contrast: more) {
:root:not([data-theme]) {
  --system-red: #e9152d;
  --system-orange: #c55300;
  --system-yellow: #a16a00;
  --system-green: #008932;
  --system-mint: #008575;
  --system-teal: #008198;
  --system-cyan: #007eae;
  --system-blue: #1e6ef4;
  --system-indigo: #564ade;
  --system-purple: #b02fc2;
  --system-pink: #e7124d;
  --system-brown: #956d51;
  --system-gray: #6c6c70;
  --system-gray-2: #8e8e93;
  --system-gray-3: #aeaeb2;
  --system-gray-4: #bcbcc0;
  --system-gray-5: #d8d8dc;
  --system-gray-6: #ebebf0;
  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.3);
  --label-quaternary: rgba(60, 60, 67, 0.18);
  --label-quinary: rgba(60, 60, 67, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(0, 0, 0, 0.12);
  --separator-opaque: #c6c6c8;
  --fill-primary: rgba(120, 120, 120, 0.2);
  --fill-secondary: rgba(120, 120, 128, 0.16);
  --fill-tertiary: rgba(118, 118, 128, 0.12);
  --fill-quaternary: rgba(116, 116, 128, 0.08);
  --fill-quinary: rgba(0, 0, 0, 0.02);
  --background-primary: #ffffff;
  --background-secondary: #f2f2f7;
  --background-tertiary: #ffffff;
  --background-elevated-primary: #ffffff;
  --background-elevated-secondary: #f2f2f7;
  --background-elevated-tertiary: #ffffff;
  --grouped-background-primary: #f2f2f7;
  --grouped-background-secondary: #ffffff;
  --grouped-background-tertiary: #f2f2f7;
  --grouped-background-elevated-primary: #f2f2f7;
  --grouped-background-elevated-secondary: #ffffff;
  --grouped-background-elevated-tertiary: #f2f2f7;
  --vibrant-label-primary: #000000;
  --vibrant-label-secondary: rgba(0, 0, 0, 0.4);
  --vibrant-label-tertiary: rgba(0, 0, 0, 0.251);
  --vibrant-label-quaternary: rgba(0, 0, 0, 0.149);
  --vibrant-fill-primary: rgba(0, 0, 0, 0.2);
  --vibrant-fill-secondary: rgba(0, 0, 0, 0.122);
  --vibrant-fill-tertiary: rgba(0, 0, 0, 0.071);
  --vibrant-separator: rgba(0, 0, 0, 0.098);
  --glass-label-primary: #1a1a1a;
  --glass-label-secondary: #727272;
  --glass-label-tertiary: #bfbfbf;
  --glass-label-quaternary: #d9d9d9;
  --material-ultrathin: rgba(255, 255, 255, 0.03);
  --material-ultrathin-wash: rgba(255, 255, 255, 0.07);
  --material-thin: rgba(255, 255, 255, 0.4);
  --material-thin-wash: rgba(255, 255, 255, 0.05);
  --material-regular: rgba(255, 255, 255, 0.6);
  --material-regular-wash: rgba(255, 255, 255, 0.25);
  --material-thick: rgba(255, 255, 255, 0.84);
  --material-thick-wash: rgba(255, 255, 255, 0.34);
  --glass-regular-tint: rgba(255, 255, 255, 0.7);
  --glass-regular-shade: rgba(191, 191, 191, 0.1);
  --glass-small-fill: rgba(255, 255, 255, 0.519);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(0, 0, 0, 0.02);
  --pressed-overlay: rgba(0, 0, 0, 0.08);
  --scrim-alert: rgba(41, 41, 58, 0.23);
  --scrim-sheet: rgba(0, 0, 0, 0.2);
  --mac-label-primary: rgba(0, 0, 0, 0.85);
  --mac-label-secondary: rgba(0, 0, 0, 0.5);
  --mac-label-tertiary: rgba(0, 0, 0, 0.25);
  --mac-label-quaternary: rgba(0, 0, 0, 0.1);
  --mac-label-quinary: rgba(0, 0, 0, 0.05);
  --mac-fill-primary: rgba(0, 0, 0, 0.1);
  --mac-fill-secondary: rgba(0, 0, 0, 0.08);
  --mac-fill-tertiary: rgba(0, 0, 0, 0.05);
  --mac-fill-quaternary: rgba(0, 0, 0, 0.03);
  --mac-fill-quinary: rgba(0, 0, 0, 0.02);
  --mac-gray: #8e8e93;
  --mac-window-background: #ffffff;
  --mac-separator: rgba(60, 60, 67, 0.29);
  --mac-track: rgba(0, 0, 0, 0.06);
  --mac-track-border: rgba(0, 0, 0, 0.07);
  --mac-material-ultrathick: rgba(236, 236, 236, 0.88);
  --mac-material-thick: rgba(236, 236, 236, 0.76);
  --mac-material-regular: rgba(236, 236, 236, 0.63);
  --mac-material-thin: rgba(236, 236, 236, 0.5);
  --mac-material-ultrathin: rgba(236, 236, 236, 0.38);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #ffffff;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.02);
  --shadow-glass: 0 18px 46px 0 rgba(0, 0, 0, 0.25);
  --shadow-glass-highlight: inset 0 2px 0.25px -1.2px rgba(255, 255, 255, 1);
  --shadow-glass-rim: inset 0 -4px 2px -4px #ffffff27, inset 0 4px 8px -4px #ffffff27, inset 0 -1px 1.5px -0.5px #ffffff27, inset 0 1px 1.5px -0.5px #ffffff27;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000024, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 40px 30px -40px #00000019, inset 0 -40px 10px -40px #ffffff28, inset 0 40px 10px -40px #ffffff28;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000024, -1.25px 0 0 -0.75px #00000024, 1.25px 0 0 -0.75px #00000024;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
:root:not([data-theme]) {
  --system-red: #ff6165;
  --system-orange: #ffa056;
  --system-yellow: #fedf43;
  --system-green: #4ad968;
  --system-mint: #54dfcb;
  --system-teal: #3bddec;
  --system-cyan: #6dd9ff;
  --system-blue: #5cb8ff;
  --system-indigo: #a7aaff;
  --system-purple: #ea8dff;
  --system-pink: #ff8ac4;
  --system-brown: #dba679;
  --system-gray: #aeaeb2;
  --system-gray-2: #7c7c80;
  --system-gray-3: #545456;
  --system-gray-4: #444446;
  --system-gray-5: #363638;
  --system-gray-6: #242426;
  --label-primary: #ffffff;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.3);
  --label-quaternary: rgba(235, 235, 245, 0.16);
  --label-quinary: rgba(235, 235, 245, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(255, 255, 255, 0.12);
  --separator-opaque: #38383a;
  --fill-primary: rgba(120, 120, 128, 0.36);
  --fill-secondary: rgba(120, 120, 128, 0.32);
  --fill-tertiary: rgba(118, 118, 128, 0.24);
  --fill-quaternary: rgba(118, 118, 128, 0.18);
  --fill-quinary: rgba(118, 118, 128, 0.02);
  --background-primary: #000000;
  --background-secondary: #1c1c1e;
  --background-tertiary: #2c2c2e;
  --background-elevated-primary: #1c1c1e;
  --background-elevated-secondary: #2c2c2e;
  --background-elevated-tertiary: #3a3a3c;
  --grouped-background-primary: #000000;
  --grouped-background-secondary: #1c1c1e;
  --grouped-background-tertiary: #2c2c2e;
  --grouped-background-elevated-primary: #1c1c1e;
  --grouped-background-elevated-secondary: #2c2c2e;
  --grouped-background-elevated-tertiary: #3a3a3c;
  --vibrant-label-primary: #ffffff;
  --vibrant-label-secondary: rgba(255, 255, 255, 0.6);
  --vibrant-label-tertiary: rgba(255, 255, 255, 0.251);
  --vibrant-label-quaternary: rgba(255, 255, 255, 0.149);
  --vibrant-fill-primary: rgba(255, 255, 255, 0.2);
  --vibrant-fill-secondary: rgba(255, 255, 255, 0.122);
  --vibrant-fill-tertiary: rgba(255, 255, 255, 0.071);
  --vibrant-separator: rgba(255, 255, 255, 0.102);
  --glass-label-primary: #ededed;
  --glass-label-secondary: #8a8a8a;
  --glass-label-tertiary: #404040;
  --glass-label-quaternary: #262626;
  --material-ultrathin: #00000000;
  --material-ultrathin-wash: #00000000;
  --material-thin: rgba(0, 0, 0, 0.26);
  --material-thin-wash: #00000000;
  --material-regular: rgba(0, 0, 0, 0.41);
  --material-regular-wash: #00000000;
  --material-thick: rgba(0, 0, 0, 0.6);
  --material-thick-wash: #00000000;
  --glass-regular-tint: rgba(26, 26, 26, 0.5);
  --glass-regular-shade: rgba(26, 26, 26, 0.9);
  --glass-small-fill: rgba(153, 153, 153, 0.17);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(118, 118, 128, 0.24);
  --pressed-overlay: rgba(255, 255, 255, 0.08);
  --scrim-alert: rgba(18, 18, 18, 0.56);
  --scrim-sheet: rgba(0, 0, 0, 0.48);
  --mac-label-primary: #ffffff;
  --mac-label-secondary: rgba(255, 255, 255, 0.55);
  --mac-label-tertiary: rgba(255, 255, 255, 0.25);
  --mac-label-quaternary: rgba(255, 255, 255, 0.1);
  --mac-label-quinary: rgba(255, 255, 255, 0.05);
  --mac-fill-primary: rgba(255, 255, 255, 0.1);
  --mac-fill-secondary: rgba(255, 255, 255, 0.08);
  --mac-fill-tertiary: rgba(255, 255, 255, 0.05);
  --mac-fill-quaternary: rgba(255, 255, 255, 0.03);
  --mac-fill-quinary: rgba(255, 255, 255, 0.02);
  --mac-gray: #98989d;
  --mac-window-background: #1e1e1e;
  --mac-separator: var(--separator);
  --mac-track: rgba(255, 255, 255, 0.08);
  --mac-track-border: rgba(255, 255, 255, 0.04);
  --mac-material-ultrathick: rgba(44, 44, 44, 0.82);
  --mac-material-thick: rgba(44, 44, 44, 0.71);
  --mac-material-regular: rgba(44, 44, 44, 0.61);
  --mac-material-thin: rgba(41, 41, 41, 0.49);
  --mac-material-ultrathin: rgba(41, 41, 41, 0.4);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #000000;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 18px 48px 0 rgba(0, 0, 0, 0.45);
  --shadow-glass-highlight: inset 0 2px 0.2px -1.2px rgba(255, 255, 255, 0.2);
  --shadow-glass-rim: inset 0 -4px 8px -4px #ffffff22, inset 0 4px 8px -4px #ffffff22, inset 0 -1px 1.5px -0.5px #ffffff40, inset 0 1px 1.5px -0.5px #ffffff40;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000080, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset 20px 0 20px -30px #0000004d, inset -20px 0 20px -30px #0000004d, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 -40px 10px -40px #ffffff1a, inset 0 40px 10px -40px #ffffff1a;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000040, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}
}

[data-theme="dark"] {
  color-scheme: dark;
  --system-red: #ff4245;
  --system-orange: #ff9230;
  --system-yellow: #ffd600;
  --system-green: #30d158;
  --system-mint: #00dac3;
  --system-teal: #00d2e0;
  --system-cyan: #3cd3fe;
  --system-blue: #0091ff;
  --system-indigo: #6d7cff;
  --system-purple: #db34f2;
  --system-pink: #ff375f;
  --system-brown: #b78a66;
  --system-gray: #8e8e93;
  --system-gray-2: #636366;
  --system-gray-3: #48484a;
  --system-gray-4: #3a3a3c;
  --system-gray-5: #2c2c2e;
  --system-gray-6: #1c1c1e;
  --label-primary: #ffffff;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.3);
  --label-quaternary: rgba(235, 235, 245, 0.16);
  --label-quinary: rgba(235, 235, 245, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(255, 255, 255, 0.12);
  --separator-opaque: #38383a;
  --fill-primary: rgba(120, 120, 128, 0.36);
  --fill-secondary: rgba(120, 120, 128, 0.32);
  --fill-tertiary: rgba(118, 118, 128, 0.24);
  --fill-quaternary: rgba(118, 118, 128, 0.18);
  --fill-quinary: rgba(118, 118, 128, 0.02);
  --background-primary: #000000;
  --background-secondary: #1c1c1e;
  --background-tertiary: #2c2c2e;
  --background-elevated-primary: #1c1c1e;
  --background-elevated-secondary: #2c2c2e;
  --background-elevated-tertiary: #3a3a3c;
  --grouped-background-primary: #000000;
  --grouped-background-secondary: #1c1c1e;
  --grouped-background-tertiary: #2c2c2e;
  --grouped-background-elevated-primary: #1c1c1e;
  --grouped-background-elevated-secondary: #2c2c2e;
  --grouped-background-elevated-tertiary: #3a3a3c;
  --vibrant-label-primary: #ffffff;
  --vibrant-label-secondary: rgba(255, 255, 255, 0.6);
  --vibrant-label-tertiary: rgba(255, 255, 255, 0.251);
  --vibrant-label-quaternary: rgba(255, 255, 255, 0.149);
  --vibrant-fill-primary: rgba(255, 255, 255, 0.2);
  --vibrant-fill-secondary: rgba(255, 255, 255, 0.122);
  --vibrant-fill-tertiary: rgba(255, 255, 255, 0.071);
  --vibrant-separator: rgba(255, 255, 255, 0.102);
  --glass-label-primary: #ededed;
  --glass-label-secondary: #8a8a8a;
  --glass-label-tertiary: #404040;
  --glass-label-quaternary: #262626;
  --material-ultrathin: #00000000;
  --material-ultrathin-wash: #00000000;
  --material-thin: rgba(0, 0, 0, 0.26);
  --material-thin-wash: #00000000;
  --material-regular: rgba(0, 0, 0, 0.41);
  --material-regular-wash: #00000000;
  --material-thick: rgba(0, 0, 0, 0.6);
  --material-thick-wash: #00000000;
  --glass-regular-tint: rgba(26, 26, 26, 0.5);
  --glass-regular-shade: rgba(26, 26, 26, 0.9);
  --glass-small-fill: rgba(153, 153, 153, 0.17);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(118, 118, 128, 0.24);
  --pressed-overlay: rgba(255, 255, 255, 0.08);
  --scrim-alert: rgba(18, 18, 18, 0.56);
  --scrim-sheet: rgba(0, 0, 0, 0.48);
  --mac-label-primary: #ffffff;
  --mac-label-secondary: rgba(255, 255, 255, 0.55);
  --mac-label-tertiary: rgba(255, 255, 255, 0.25);
  --mac-label-quaternary: rgba(255, 255, 255, 0.1);
  --mac-label-quinary: rgba(255, 255, 255, 0.05);
  --mac-fill-primary: rgba(255, 255, 255, 0.1);
  --mac-fill-secondary: rgba(255, 255, 255, 0.08);
  --mac-fill-tertiary: rgba(255, 255, 255, 0.05);
  --mac-fill-quaternary: rgba(255, 255, 255, 0.03);
  --mac-fill-quinary: rgba(255, 255, 255, 0.02);
  --mac-gray: #98989d;
  --mac-window-background: #1e1e1e;
  --mac-separator: var(--separator);
  --mac-track: rgba(255, 255, 255, 0.08);
  --mac-track-border: rgba(255, 255, 255, 0.04);
  --mac-material-ultrathick: rgba(44, 44, 44, 0.82);
  --mac-material-thick: rgba(44, 44, 44, 0.71);
  --mac-material-regular: rgba(44, 44, 44, 0.61);
  --mac-material-thin: rgba(41, 41, 41, 0.49);
  --mac-material-ultrathin: rgba(41, 41, 41, 0.4);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #ffffff;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 18px 48px 0 rgba(0, 0, 0, 0.45);
  --shadow-glass-highlight: inset 0 2px 0.2px -1.2px rgba(255, 255, 255, 0.2);
  --shadow-glass-rim: inset 0 -4px 8px -4px #ffffff22, inset 0 4px 8px -4px #ffffff22, inset 0 -1px 1.5px -0.5px #ffffff40, inset 0 1px 1.5px -0.5px #ffffff40;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000080, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset 20px 0 20px -30px #0000004d, inset -20px 0 20px -30px #0000004d, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 -40px 10px -40px #ffffff1a, inset 0 40px 10px -40px #ffffff1a;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000040, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="light-hc"] {
  color-scheme: light;
  --system-red: #e9152d;
  --system-orange: #c55300;
  --system-yellow: #a16a00;
  --system-green: #008932;
  --system-mint: #008575;
  --system-teal: #008198;
  --system-cyan: #007eae;
  --system-blue: #1e6ef4;
  --system-indigo: #564ade;
  --system-purple: #b02fc2;
  --system-pink: #e7124d;
  --system-brown: #956d51;
  --system-gray: #6c6c70;
  --system-gray-2: #8e8e93;
  --system-gray-3: #aeaeb2;
  --system-gray-4: #bcbcc0;
  --system-gray-5: #d8d8dc;
  --system-gray-6: #ebebf0;
  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);
  --label-tertiary: rgba(60, 60, 67, 0.3);
  --label-quaternary: rgba(60, 60, 67, 0.18);
  --label-quinary: rgba(60, 60, 67, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(0, 0, 0, 0.12);
  --separator-opaque: #c6c6c8;
  --fill-primary: rgba(120, 120, 120, 0.2);
  --fill-secondary: rgba(120, 120, 128, 0.16);
  --fill-tertiary: rgba(118, 118, 128, 0.12);
  --fill-quaternary: rgba(116, 116, 128, 0.08);
  --fill-quinary: rgba(0, 0, 0, 0.02);
  --background-primary: #ffffff;
  --background-secondary: #f2f2f7;
  --background-tertiary: #ffffff;
  --background-elevated-primary: #ffffff;
  --background-elevated-secondary: #f2f2f7;
  --background-elevated-tertiary: #ffffff;
  --grouped-background-primary: #f2f2f7;
  --grouped-background-secondary: #ffffff;
  --grouped-background-tertiary: #f2f2f7;
  --grouped-background-elevated-primary: #f2f2f7;
  --grouped-background-elevated-secondary: #ffffff;
  --grouped-background-elevated-tertiary: #f2f2f7;
  --vibrant-label-primary: #000000;
  --vibrant-label-secondary: rgba(0, 0, 0, 0.4);
  --vibrant-label-tertiary: rgba(0, 0, 0, 0.251);
  --vibrant-label-quaternary: rgba(0, 0, 0, 0.149);
  --vibrant-fill-primary: rgba(0, 0, 0, 0.2);
  --vibrant-fill-secondary: rgba(0, 0, 0, 0.122);
  --vibrant-fill-tertiary: rgba(0, 0, 0, 0.071);
  --vibrant-separator: rgba(0, 0, 0, 0.098);
  --glass-label-primary: #1a1a1a;
  --glass-label-secondary: #727272;
  --glass-label-tertiary: #bfbfbf;
  --glass-label-quaternary: #d9d9d9;
  --material-ultrathin: rgba(255, 255, 255, 0.03);
  --material-ultrathin-wash: rgba(255, 255, 255, 0.07);
  --material-thin: rgba(255, 255, 255, 0.4);
  --material-thin-wash: rgba(255, 255, 255, 0.05);
  --material-regular: rgba(255, 255, 255, 0.6);
  --material-regular-wash: rgba(255, 255, 255, 0.25);
  --material-thick: rgba(255, 255, 255, 0.84);
  --material-thick-wash: rgba(255, 255, 255, 0.34);
  --glass-regular-tint: rgba(255, 255, 255, 0.7);
  --glass-regular-shade: rgba(191, 191, 191, 0.1);
  --glass-small-fill: rgba(255, 255, 255, 0.519);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(0, 0, 0, 0.02);
  --pressed-overlay: rgba(0, 0, 0, 0.08);
  --scrim-alert: rgba(41, 41, 58, 0.23);
  --scrim-sheet: rgba(0, 0, 0, 0.2);
  --mac-label-primary: rgba(0, 0, 0, 0.85);
  --mac-label-secondary: rgba(0, 0, 0, 0.5);
  --mac-label-tertiary: rgba(0, 0, 0, 0.25);
  --mac-label-quaternary: rgba(0, 0, 0, 0.1);
  --mac-label-quinary: rgba(0, 0, 0, 0.05);
  --mac-fill-primary: rgba(0, 0, 0, 0.1);
  --mac-fill-secondary: rgba(0, 0, 0, 0.08);
  --mac-fill-tertiary: rgba(0, 0, 0, 0.05);
  --mac-fill-quaternary: rgba(0, 0, 0, 0.03);
  --mac-fill-quinary: rgba(0, 0, 0, 0.02);
  --mac-gray: #8e8e93;
  --mac-window-background: #ffffff;
  --mac-separator: rgba(60, 60, 67, 0.29);
  --mac-track: rgba(0, 0, 0, 0.06);
  --mac-track-border: rgba(0, 0, 0, 0.07);
  --mac-material-ultrathick: rgba(236, 236, 236, 0.88);
  --mac-material-thick: rgba(236, 236, 236, 0.76);
  --mac-material-regular: rgba(236, 236, 236, 0.63);
  --mac-material-thin: rgba(236, 236, 236, 0.5);
  --mac-material-ultrathin: rgba(236, 236, 236, 0.38);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #ffffff;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.02);
  --shadow-glass: 0 18px 46px 0 rgba(0, 0, 0, 0.25);
  --shadow-glass-highlight: inset 0 2px 0.25px -1.2px rgba(255, 255, 255, 1);
  --shadow-glass-rim: inset 0 -4px 2px -4px #ffffff27, inset 0 4px 8px -4px #ffffff27, inset 0 -1px 1.5px -0.5px #ffffff27, inset 0 1px 1.5px -0.5px #ffffff27;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000024, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 40px 30px -40px #00000019, inset 0 -40px 10px -40px #ffffff28, inset 0 40px 10px -40px #ffffff28;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000024, -1.25px 0 0 -0.75px #00000024, 1.25px 0 0 -0.75px #00000024;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="dark-hc"] {
  color-scheme: dark;
  --system-red: #ff6165;
  --system-orange: #ffa056;
  --system-yellow: #fedf43;
  --system-green: #4ad968;
  --system-mint: #54dfcb;
  --system-teal: #3bddec;
  --system-cyan: #6dd9ff;
  --system-blue: #5cb8ff;
  --system-indigo: #a7aaff;
  --system-purple: #ea8dff;
  --system-pink: #ff8ac4;
  --system-brown: #dba679;
  --system-gray: #aeaeb2;
  --system-gray-2: #7c7c80;
  --system-gray-3: #545456;
  --system-gray-4: #444446;
  --system-gray-5: #363638;
  --system-gray-6: #242426;
  --label-primary: #ffffff;
  --label-secondary: rgba(235, 235, 245, 0.6);
  --label-tertiary: rgba(235, 235, 245, 0.3);
  --label-quaternary: rgba(235, 235, 245, 0.16);
  --label-quinary: rgba(235, 235, 245, 0.09);
  --placeholder-text: var(--label-tertiary);
  --link: var(--accent);
  --separator: rgba(255, 255, 255, 0.12);
  --separator-opaque: #38383a;
  --fill-primary: rgba(120, 120, 128, 0.36);
  --fill-secondary: rgba(120, 120, 128, 0.32);
  --fill-tertiary: rgba(118, 118, 128, 0.24);
  --fill-quaternary: rgba(118, 118, 128, 0.18);
  --fill-quinary: rgba(118, 118, 128, 0.02);
  --background-primary: #000000;
  --background-secondary: #1c1c1e;
  --background-tertiary: #2c2c2e;
  --background-elevated-primary: #1c1c1e;
  --background-elevated-secondary: #2c2c2e;
  --background-elevated-tertiary: #3a3a3c;
  --grouped-background-primary: #000000;
  --grouped-background-secondary: #1c1c1e;
  --grouped-background-tertiary: #2c2c2e;
  --grouped-background-elevated-primary: #1c1c1e;
  --grouped-background-elevated-secondary: #2c2c2e;
  --grouped-background-elevated-tertiary: #3a3a3c;
  --vibrant-label-primary: #ffffff;
  --vibrant-label-secondary: rgba(255, 255, 255, 0.6);
  --vibrant-label-tertiary: rgba(255, 255, 255, 0.251);
  --vibrant-label-quaternary: rgba(255, 255, 255, 0.149);
  --vibrant-fill-primary: rgba(255, 255, 255, 0.2);
  --vibrant-fill-secondary: rgba(255, 255, 255, 0.122);
  --vibrant-fill-tertiary: rgba(255, 255, 255, 0.071);
  --vibrant-separator: rgba(255, 255, 255, 0.102);
  --glass-label-primary: #ededed;
  --glass-label-secondary: #8a8a8a;
  --glass-label-tertiary: #404040;
  --glass-label-quaternary: #262626;
  --material-ultrathin: #00000000;
  --material-ultrathin-wash: #00000000;
  --material-thin: rgba(0, 0, 0, 0.26);
  --material-thin-wash: #00000000;
  --material-regular: rgba(0, 0, 0, 0.41);
  --material-regular-wash: #00000000;
  --material-thick: rgba(0, 0, 0, 0.6);
  --material-thick-wash: #00000000;
  --glass-regular-tint: rgba(26, 26, 26, 0.5);
  --glass-regular-shade: rgba(26, 26, 26, 0.9);
  --glass-small-fill: rgba(153, 153, 153, 0.17);
  --glass-clear-tint: rgba(248, 248, 248, 0.12);
  --glass-dim: rgba(0, 0, 0, 0.35);
  --glass-inactive: rgba(118, 118, 128, 0.24);
  --pressed-overlay: rgba(255, 255, 255, 0.08);
  --scrim-alert: rgba(18, 18, 18, 0.56);
  --scrim-sheet: rgba(0, 0, 0, 0.48);
  --mac-label-primary: #ffffff;
  --mac-label-secondary: rgba(255, 255, 255, 0.55);
  --mac-label-tertiary: rgba(255, 255, 255, 0.25);
  --mac-label-quaternary: rgba(255, 255, 255, 0.1);
  --mac-label-quinary: rgba(255, 255, 255, 0.05);
  --mac-fill-primary: rgba(255, 255, 255, 0.1);
  --mac-fill-secondary: rgba(255, 255, 255, 0.08);
  --mac-fill-tertiary: rgba(255, 255, 255, 0.05);
  --mac-fill-quaternary: rgba(255, 255, 255, 0.03);
  --mac-fill-quinary: rgba(255, 255, 255, 0.02);
  --mac-gray: #98989d;
  --mac-window-background: #1e1e1e;
  --mac-separator: var(--separator);
  --mac-track: rgba(255, 255, 255, 0.08);
  --mac-track-border: rgba(255, 255, 255, 0.04);
  --mac-material-ultrathick: rgba(44, 44, 44, 0.82);
  --mac-material-thick: rgba(44, 44, 44, 0.71);
  --mac-material-regular: rgba(44, 44, 44, 0.61);
  --mac-material-thin: rgba(41, 41, 41, 0.49);
  --mac-material-ultrathin: rgba(41, 41, 41, 0.4);
  --accent: var(--system-blue);
  --focus-ring: var(--accent);
  --on-accent: #000000;
  --on-media: #ffffff;
  --control-knob: #ffffff;
  --mac-control-knob: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --black: #000000;
  --shadow-glass-small: 0 8px 15px 0 rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 18px 48px 0 rgba(0, 0, 0, 0.45);
  --shadow-glass-highlight: inset 0 2px 0.2px -1.2px rgba(255, 255, 255, 0.2);
  --shadow-glass-rim: inset 0 -4px 8px -4px #ffffff22, inset 0 4px 8px -4px #ffffff22, inset 0 -1px 1.5px -0.5px #ffffff40, inset 0 1px 1.5px -0.5px #ffffff40;
  --shadow-glass-edge: 0 0 0.3px 0.3px #00000080, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-small-rim: inset 20px 0 20px -30px #0000004d, inset -20px 0 20px -30px #0000004d, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 -1px 0 0 #ffffff17, inset 0 1px 0 0 #ffffff17, inset 0 -40px 10px -40px #ffffff1a, inset 0 40px 10px -40px #ffffff1a;
  --shadow-glass-small-edge: 0 0 0 0.5px #00000040, -1.25px 0 0 -0.75px #00000040, 1.25px 0 0 -0.75px #00000040;
  --shadow-glass-clear-rim: inset -20px 0 20px -30px #00000026, inset 20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff66, inset 0 4px 0.5px -4px #ffffff66, inset 0 40px 30px -40px #00000019, inset 0 -1px 0 0 #ffffff33, inset 0 1px 0 0 #ffffff33, inset 0 -40px 20px -40px #ffffff40, inset 0 40px 20px -40px #ffffff40;
  --shadow-glass-clear-edge: 0 0 0 0.5px #00000026, -1.25px 0 0 -0.75px #00000033, 1.25px 0 0 -0.75px #00000033;
  --shadow-glass-tinted-rim: inset 20px 0 20px -30px #00000026, inset -20px 0 20px -30px #00000026, inset 0 -4px 0.5px -4px #ffffff99, inset 0 4px 0.5px -4px #ffffff99, inset 0 -1px 0 0 #ffffff26, inset 0 1px 0 0 #ffffff26, inset 0 -40px 10px -40px #ffffff11, inset 0 40px 10px -40px #ffffff11;
  --shadow-glass-tinted-edge: -1.25px 0 0 -0.75px #00000019, 1.25px 0 0 -0.75px #00000019;
  --shadow-knob: 0 3px 36px 0 rgba(0, 0, 0, 0.05);
  --shadow-segment-knob: 0 2px 20px 0 rgba(0, 0, 0, 0.06);
  --shadow-slider-knob: 0 6px 13px 0 rgba(0, 0, 0, 0.12), 0 0.5px 4px 0 rgba(0, 0, 0, 0.12);
  --shadow-mac-slider-knob: 0 0.5px 6px 0 rgba(0, 0, 0, 0.12);
  --shadow-menu-preview: 0 0 25px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-menu-bar-title: 0 2px 16px 0 rgba(0, 0, 0, 0.083);
  --shadow-mac-window: 0 36px 100px 0 rgba(0, 0, 0, 0.4), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-window-inactive: 0 16px 32px 0 rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(0, 0, 0, 0.8);
  --shadow-mac-menu: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  --shadow-mac-notification: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.ios-large-title { font-family: var(--font-sans); font-size: 34px; line-height: 41px; font-weight: 400; letter-spacing: 0.4px; }
.ios-title-1 { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 400; letter-spacing: 0.38px; }
.ios-title-2 { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 400; letter-spacing: -0.26px; }
.ios-title-3 { font-family: var(--font-sans); font-size: 20px; line-height: 25px; font-weight: 400; letter-spacing: -0.45px; }
.ios-headline { font-family: var(--font-sans); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; }
.ios-body { font-family: var(--font-sans); font-size: 17px; line-height: 22px; font-weight: 400; letter-spacing: -0.43px; }
.ios-callout { font-family: var(--font-sans); font-size: 16px; line-height: 21px; font-weight: 400; letter-spacing: -0.31px; }
.ios-subheadline { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: -0.23px; }
.ios-footnote { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: -0.08px; }
.ios-caption-1 { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0px; }
.ios-caption-2 { font-family: var(--font-sans); font-size: 11px; line-height: 13px; font-weight: 400; letter-spacing: 0.06px; }
.ios-large-title-emphasized { font-family: var(--font-sans); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.4px; }
.ios-title-1-emphasized { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0.38px; }
.ios-title-2-emphasized { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.26px; }
.ios-title-3-emphasized { font-family: var(--font-sans); font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -0.45px; }
.ios-headline-emphasized { font-family: var(--font-sans); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; }
.ios-body-emphasized { font-family: var(--font-sans); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; }
.ios-callout-emphasized { font-family: var(--font-sans); font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -0.31px; }
.ios-subheadline-emphasized { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.23px; }
.ios-footnote-emphasized { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: -0.08px; }
.ios-caption-1-emphasized { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0px; }
.ios-caption-2-emphasized { font-family: var(--font-sans); font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: 0.06px; }

/* ---- _base ---- */
/* Foundations shared by every component. Colors, radii, sizes, blurs and shadows are tokens.json variables;
   literal px values below are kit measurements that have no token of their own, each cited. */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background-primary);
  color: var(--label-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hig-icon { display: inline-block; flex: none; vertical-align: middle; }
/* HIG Right to left: mirror glyphs that show reading direction or forward/backward motion. */
[dir="rtl"] .hig-icon[data-rtl-flip] { transform: scaleX(-1); }
.hig-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Keyboard focus: a solid accent ring outside the control (keyboardFocusIndicatorColor follows the accent). */
.hig-focus:focus-visible,
.hig-glass--interactive:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Pressed feedback from the kit's "Clicked" control layer styles: an 8% black (light) / white (dark) overlay. */
/* Scroll containers made keyboard-focusable by useScrollFocusable: an inset ring so it never spills past the pane. */
.hig-scroll-focus:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }

.hig-pressable { position: relative; }
.hig-pressable::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--pressed-overlay); opacity: 0; transition: opacity 80ms linear;
}
.hig-pressable:active:not(:disabled):not([aria-disabled="true"])::after { opacity: 1; }

/* ---------- Liquid Glass (functional layer only) ----------
   Web approximation of the iOS 27 kit layer styles. A glass element blurs its backdrop (backdrop-filter), which also
   isolates its own layers: they cannot blend with what is behind. So every kit fill is drawn with normal blending, in
   the form that gives the kit's result: Regular glass draws its tint and shade; Small glass, whose four kit fills add
   up to "backdrop x 0.45 + 132" in light, draws one white fill over a backdrop dimmed to 93.6%; the kit's
   plus-lighter / plus-darker rim lights become translucent white / black inner shadows (shadow-glass-*-rim) on
   ::after, above the fills, and its outer edges become shadow-glass-*-edge. Refraction and lensing are not drawn.

   Appearance follows the nearest data-theme, so <Glass data-theme="light"> (or "dark") on one element works: the kit
   flips small glass between light and dark with the content beneath it, which a page cannot measure — set it where
   you know the content (bright photo under dark-mode glass, say). */
:root, [data-theme^="light"] {
  --hig-glass-backdrop: blur(var(--blur-glass)) saturate(var(--saturate-glass));
  --hig-glass-small-backdrop: blur(var(--blur-glass-small)) saturate(var(--saturate-glass-small)) brightness(0.936);
}
[data-theme^="dark"] {
  --hig-glass-backdrop: blur(var(--blur-glass)) saturate(1.2);           /* kit Dark Regular - Large: saturation 1.2 */
  --hig-glass-small-backdrop: blur(var(--blur-glass-small)) saturate(1); /* kit Dark Regular - Small: saturation 1 */
}
.hig-glass {
  position: relative;
  z-index: 0; /* own stacking context, so the -1 fill layers sit above the backdrop and below the content */
  color: var(--glass-label-primary);
  border-radius: var(--radius-glass);
  -webkit-backdrop-filter: var(--hig-glass-backdrop);
  backdrop-filter: var(--hig-glass-backdrop);
  box-shadow: var(--shadow-glass), var(--shadow-glass-edge);
}
.hig-glass::before,
.hig-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
}
/* fills (bottom layer, ::before) */
.hig-glass--regular::before { background: linear-gradient(var(--glass-regular-shade), var(--glass-regular-shade)), var(--glass-regular-tint); }
.hig-glass--small::before { background: var(--glass-small-fill); }
.hig-glass--clear::before { background: var(--glass-clear-tint); }
.hig-glass--tinted::before { background: var(--hig-glass-tint, var(--accent)); }
/* rim lights (top layer, ::after): kit inner shadows */
.hig-glass--regular::after { box-shadow: var(--shadow-glass-rim), var(--shadow-glass-highlight); }
.hig-glass--small::after { box-shadow: var(--shadow-glass-small-rim); }
.hig-glass--clear::after { box-shadow: var(--shadow-glass-clear-rim); }
.hig-glass--tinted::after { box-shadow: var(--shadow-glass-tinted-rim); }

.hig-glass--small {
  -webkit-backdrop-filter: var(--hig-glass-small-backdrop);
  backdrop-filter: var(--hig-glass-small-backdrop);
  box-shadow: var(--shadow-glass-small), var(--shadow-glass-small-edge);
}
.hig-glass--clear {
  color: var(--on-media);
  -webkit-backdrop-filter: blur(var(--blur-glass-clear));
  backdrop-filter: blur(var(--blur-glass-clear));
  box-shadow: var(--shadow-glass-small), var(--shadow-glass-clear-edge);
}
/* Prominent ("stained") glass: the kit fills the shape with the tint color, then adds the glass rim. */
.hig-glass--tinted { color: var(--on-accent); box-shadow: var(--shadow-glass-small), var(--shadow-glass-tinted-edge); }
.hig-shape--capsule { border-radius: var(--radius-capsule); }
.hig-shape--circle { border-radius: 50%; }

/* ---------- Standard materials (content layer) ----------
   Kit light materials put a plus-lighter white wash (w) under a normal white tint (t): (1 - t)(backdrop + w) + 255t.
   The element isolates its layers (see glass), so the wash draws normal above the tint (together white at
   t + w(1 - t)) and the backdrop is brightened by 1 / (1 - w): exactly the kit's result, clamping included.
   Dark materials are a single normal black tint. Appearance follows the nearest data-theme, as with glass. */
:root, [data-theme^="light"] {
  --hig-material-ultrathin-backdrop: blur(45px) brightness(1.075);                                       /* kit: 45px, wash 7% */
  --hig-material-thin-backdrop: blur(var(--blur-material)) saturate(1.455) brightness(1.053);            /* kit: sat 1.455, wash 5% */
  --hig-material-regular-backdrop: blur(var(--blur-material)) saturate(var(--saturate-material)) brightness(1.333); /* wash 25% */
  --hig-material-thick-backdrop: blur(var(--blur-material)) brightness(1.515);                           /* kit: sat 1, wash 34% */
  --hig-material-mac-backdrop: blur(var(--blur-mac-material)) saturate(var(--saturate-mac-material));
}
[data-theme^="dark"] {
  --hig-material-ultrathin-backdrop: blur(var(--blur-material));  /* kit Dark: 75px, saturation 1, no wash */
  --hig-material-thin-backdrop: blur(var(--blur-material));
  --hig-material-regular-backdrop: blur(var(--blur-material));
  --hig-material-thick-backdrop: blur(var(--blur-material));
  --hig-material-mac-backdrop: blur(var(--blur-mac-material)) saturate(1.9);
}
.hig-material { position: relative; z-index: 0; }
.hig-material::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.hig-material--ultrathin { background: var(--material-ultrathin); -webkit-backdrop-filter: var(--hig-material-ultrathin-backdrop); backdrop-filter: var(--hig-material-ultrathin-backdrop); }
.hig-material--ultrathin::before { background: var(--material-ultrathin-wash); }
.hig-material--thin { background: var(--material-thin); -webkit-backdrop-filter: var(--hig-material-thin-backdrop); backdrop-filter: var(--hig-material-thin-backdrop); }
.hig-material--thin::before { background: var(--material-thin-wash); }
.hig-material--regular { background: var(--material-regular); -webkit-backdrop-filter: var(--hig-material-regular-backdrop); backdrop-filter: var(--hig-material-regular-backdrop); }
.hig-material--regular::before { background: var(--material-regular-wash); }
.hig-material--thick { background: var(--material-thick); -webkit-backdrop-filter: var(--hig-material-thick-backdrop); backdrop-filter: var(--hig-material-thick-backdrop); }
.hig-material--thick::before { background: var(--material-thick-wash); }
.hig-material[class*="hig-material--mac-"] { -webkit-backdrop-filter: var(--hig-material-mac-backdrop); backdrop-filter: var(--hig-material-mac-backdrop); }
.hig-material[class*="hig-material--mac-"]::before { display: none; }
.hig-material--mac-ultrathick { background: var(--mac-material-ultrathick); }
.hig-material--mac-thick { background: var(--mac-material-thick); }
.hig-material--mac-regular { background: var(--mac-material-regular); }
.hig-material--mac-thin { background: var(--mac-material-thin); }
.hig-material--mac-ultrathin { background: var(--mac-material-ultrathin); }

/* ---------- Reduce Transparency ----------
   The HIG (Materials): Liquid Glass "can differ in response to ... accessibility settings that reduce transparency or
   increase contrast"; it gives no values. HIG Native swaps blur for opaque elevated fills (chosen): glass → background-elevated-secondary, iOS
   materials → background-elevated-primary, macOS materials → mac-window-background, clear glass → a 75% black scrim
   so white (on-media) text stays legible over media. Follows the OS setting; force it with
   <html data-transparency="reduced">, or opt out with data-transparency="full". */
@media (prefers-reduced-transparency: reduce) {
  :root:not([data-transparency="full"]) .hig-glass:not(.hig-glass--tinted),
  :root:not([data-transparency="full"]) .hig-material { -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root:not([data-transparency="full"]) .hig-glass:not(.hig-glass--tinted):not(.hig-glass--clear)::before { background: var(--background-elevated-secondary); mix-blend-mode: normal; }
  :root:not([data-transparency="full"]) .hig-glass:not(.hig-glass--tinted)::after { display: none; }
  :root:not([data-transparency="full"]) .hig-glass--clear::before { background: color-mix(in srgb, var(--black) 75%, transparent); mix-blend-mode: normal; }
  :root:not([data-transparency="full"]) .hig-glass--tinted { -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root:not([data-transparency="full"]) .hig-material { background: var(--background-elevated-primary); }
  :root:not([data-transparency="full"]) .hig-material::before { display: none; }
  :root:not([data-transparency="full"]) .hig-material[class*="hig-material--mac-"] { background: var(--mac-window-background); }
}
:root[data-transparency="reduced"] .hig-glass:not(.hig-glass--tinted),
:root[data-transparency="reduced"] .hig-material,
:root[data-transparency="reduced"] .hig-glass--tinted { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-transparency="reduced"] .hig-glass:not(.hig-glass--tinted):not(.hig-glass--clear)::before { background: var(--background-elevated-secondary); mix-blend-mode: normal; }
:root[data-transparency="reduced"] .hig-glass:not(.hig-glass--tinted)::after { display: none; }
:root[data-transparency="reduced"] .hig-glass--clear::before { background: color-mix(in srgb, var(--black) 75%, transparent); mix-blend-mode: normal; }
:root[data-transparency="reduced"] .hig-material { background: var(--background-elevated-primary); }
:root[data-transparency="reduced"] .hig-material::before { display: none; }
:root[data-transparency="reduced"] .hig-material[class*="hig-material--mac-"] { background: var(--mac-window-background); }

/* ---- Button ---- */
/* Button — geometry from the iOS 27 and macOS 27 UI kits (Buttons pages). */
.hig-button {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--button-icon-gap);
  font-family: var(--font-sans); white-space: nowrap; text-decoration: none; box-sizing: border-box;
  background: transparent; color: var(--accent); border-radius: var(--radius-capsule);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.hig-button:disabled { cursor: default; }
.hig-button__label { display: inline-block; }
.hig-button__spinner { animation: hig-button-spin 1s steps(8) infinite; }
@keyframes hig-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hig-button__spinner { animation-duration: 2s; } }

/* ---- iOS / iPadOS sizes: small 28pt (15pt label, 10pt padding), medium 34pt (17pt, 12pt), large 50pt (17pt, 20pt) */
.hig-button--ios.hig-button--small { height: var(--button-small); padding: 0 var(--button-padding-small); font-size: 15px; line-height: 18px; letter-spacing: -0.23px; }
.hig-button--ios.hig-button--medium { height: var(--button-medium); padding: 0 var(--button-padding-medium); font-size: 17px; line-height: 18px; letter-spacing: -0.43px; }
.hig-button--ios.hig-button--large { height: var(--button-large); padding: 0 var(--button-padding-large); font-size: 17px; line-height: 18px; letter-spacing: -0.43px; }
.hig-button--ios.hig-button--icon-only { padding: 0; width: auto; aspect-ratio: 1; }
/* A 44pt minimum hit region around small controls (HIG Buttons); the visual stays at kit size. */
.hig-button--ios.hig-button--small:not(.hig-glass)::before,
.hig-button--ios.hig-button--medium:not(.hig-glass)::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--target-ios)); height: var(--target-ios);
  transform: translate(-50%, -50%);
}

/* borderless: accent label, no fill (kit Default/Borderless) */
.hig-button--ios.hig-button--borderless { color: var(--accent); }
/* bordered: tertiary fill, accent label */
.hig-button--ios.hig-button--bordered { background: var(--fill-tertiary); color: var(--accent); }
/* bordered prominent: accent fill, on-accent label */
.hig-button--ios.hig-button--bordered-prominent { background: var(--accent); color: var(--on-accent); }
/* glass: small Liquid Glass, primary glass label, Medium weight (kit Glass/Default) */
.hig-button--ios.hig-button--glass { color: var(--glass-label-primary); font-weight: 500; }
.hig-button--ios.hig-button--glass-prominent { color: var(--on-accent); font-weight: 500; }

/* Glass buttons press by darkening the element's own background beneath the glass fills. */
.hig-button.hig-glass:active:not(:disabled) { background-color: var(--pressed-overlay); }

/* destructive role: system red (kit Destructive/*) */
.hig-button--ios.hig-button--destructive.hig-button--borderless { color: var(--system-red); }
.hig-button--ios.hig-button--destructive.hig-button--bordered { background: color-mix(in srgb, var(--system-red) 14%, transparent); color: var(--system-red); }
.hig-button--ios.hig-button--destructive.hig-button--bordered-prominent { background: var(--system-red); color: var(--on-accent); }
.hig-button--ios.hig-button--destructive.hig-button--glass { color: var(--system-red); }

/* disabled (kit 4 - Disabled): quaternary fill, tertiary label; borderless keeps no fill */
.hig-button--ios:disabled { color: var(--label-tertiary); }
.hig-button--ios.hig-button--bordered:disabled,
.hig-button--ios.hig-button--bordered-prominent:disabled { background: var(--fill-quaternary); color: var(--label-tertiary); }
.hig-button--ios.hig-button--glass-prominent:disabled { color: var(--label-tertiary); }
.hig-button--ios.hig-button--glass-prominent:disabled::before { background: var(--glass-small-fill); }

/* ---- macOS push buttons: mini 16 / small 20 / regular 24 / large 28 (capsule) / xl 36 (capsule); Medium-weight labels */
.hig-button--mac { color: var(--mac-label-primary); font-weight: 500; }
.hig-button--mac.hig-button--mini { height: var(--mac-control-mini); padding: 0 var(--mac-button-padding-mini); border-radius: var(--radius-mac-mini); font-size: 10px; line-height: 13px; letter-spacing: 0.12px; }
.hig-button--mac.hig-button--small { height: var(--mac-control-small); padding: 0 var(--button-padding-small); border-radius: var(--radius-mac-small); font-size: 11px; line-height: 13px; letter-spacing: 0.06px; }
.hig-button--mac.hig-button--regular { height: var(--mac-control-regular); padding: 0 var(--mac-button-padding); border-radius: var(--radius-mac-regular); font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }
.hig-button--mac.hig-button--large { height: var(--mac-control-large); padding: 0 var(--mac-button-padding); border-radius: var(--radius-capsule); font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }
.hig-button--mac.hig-button--xl { height: var(--mac-control-xl); padding: 0 var(--mac-button-padding); border-radius: var(--radius-capsule); font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }
.hig-button--mac.hig-button--icon-only { padding: 0; aspect-ratio: 1; }

.hig-button--mac.hig-button--push { background: var(--mac-fill-secondary); }
.hig-button--mac.hig-button--default { background: var(--accent); color: var(--on-accent); }
.hig-button--mac.hig-button--tinted { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.hig-button--mac.hig-button--borderless { color: var(--accent); }
.hig-button--mac.hig-button--borderless:hover:not(:disabled) { background: var(--mac-fill-tertiary); }
.hig-button--mac.hig-button--toggle { background: var(--mac-fill-tertiary); }
.hig-button--mac.hig-button--toggle.hig-button--selected { background: var(--accent); color: var(--on-accent); }
.hig-button--mac.hig-button--destructive.hig-button--push { background: color-mix(in srgb, var(--system-red) 20%, transparent); color: var(--system-red); }
.hig-button--mac.hig-button--destructive.hig-button--default { background: var(--system-red); color: var(--on-accent); }
.hig-button--mac.hig-button--help { border-radius: 50%; background: var(--mac-fill-secondary); color: var(--mac-label-primary); }
.hig-button--mac:disabled { background: var(--mac-fill-quaternary); color: var(--mac-label-tertiary); }
.hig-button--mac.hig-button--borderless:disabled { background: transparent; }

/* ---- Disclosure ---- */
/* Disclosure — macOS 27 kit (Forms disclosure rows, Disclosure Buttons) and iOS 27 kit (Lists disclosure accessory).
   The 150ms rotation and the spacing between a control and its revealed content are chosen. */
.hig-disclosure { box-sizing: border-box; font-family: var(--font-sans); }
.hig-disclosure *, .hig-disclosure *::before { box-sizing: border-box; }
.hig-disclosure__content[hidden] { display: none; }
ul.hig-disclosure__content { list-style: none; margin: 0; padding: 0; }
.hig-disclosure__trigger {
  appearance: none; -webkit-appearance: none; position: relative; margin: 0; padding: 0; border: 0; background: none;
  display: flex; align-items: center; font: inherit; letter-spacing: inherit; color: inherit; text-align: start; cursor: pointer;
}
.hig-disclosure__trigger:disabled { cursor: default; }
.hig-disclosure__chevron { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.hig-disclosure__chevron .hig-icon { transition: transform 150ms ease; }

/* ---------- Triangle (kit Forms/Rows - Leading/Disclosure: 13pt Semibold chevron, label-primary, 18x16 slot;
   label 13pt Medium at x=18) ---------- */
.hig-disclosure--triangle { color: var(--mac-label-primary); }
.hig-disclosure--triangle > .hig-disclosure__trigger { min-height: 16px; border-radius: var(--radius-mac-mini); }
.hig-disclosure--triangle > .hig-disclosure__trigger::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: var(--target-mac); transform: translateY(-50%);
}
.hig-disclosure--triangle .hig-disclosure__chevron { width: 18px; height: 16px; justify-content: flex-start; color: var(--mac-label-primary); }
.hig-disclosure--triangle .hig-disclosure__chevron .hig-icon { margin-left: -4px; }
.hig-disclosure--triangle .hig-disclosure__label { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: -0.08px; }
.hig-disclosure--triangle.hig-disclosure--open .hig-disclosure__chevron .hig-icon { transform: rotate(90deg); }
.hig-disclosure--triangle .hig-disclosure__chevron:dir(rtl) { transform: scaleX(-1); }
.hig-disclosure--triangle > .hig-disclosure__content { padding: 8px 0 0 18px; } /* chosen: content aligns with the label */
.hig-disclosure--triangle.hig-disclosure--disabled { color: var(--mac-label-tertiary); }
.hig-disclosure--triangle.hig-disclosure--disabled .hig-disclosure__chevron { color: var(--mac-label-tertiary); }

/* ---------- Disclosure button (kit Disclosure Buttons/Content Area: Bordered fill, label-primary chevron;
   Mn 16 r4 8.5pt Bold, Sm 20 r5 10pt Bold, Rg 24 r6 13pt Semibold, Lg 28 and XL 36 capsules 13pt Semibold) ---------- */
.hig-disclosure__bar { display: flex; align-items: center; gap: 8px; } /* gap chosen */
.hig-disclosure__button {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mac-fill-secondary); color: var(--mac-label-primary);
}
.hig-disclosure__button::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, var(--target-mac)); height: max(100%, var(--target-mac));
}
.hig-disclosure__button--mini { width: var(--mac-control-mini); height: var(--mac-control-mini); border-radius: var(--radius-mac-mini); }
.hig-disclosure__button--small { width: var(--mac-control-small); height: var(--mac-control-small); border-radius: var(--radius-mac-small); }
.hig-disclosure__button--regular { width: var(--mac-control-regular); height: var(--mac-control-regular); border-radius: var(--radius-mac-regular); }
.hig-disclosure__button--large { width: var(--mac-control-large); height: var(--mac-control-large); border-radius: var(--radius-capsule); }
.hig-disclosure__button--xl { width: var(--mac-control-xl); height: var(--mac-control-xl); border-radius: var(--radius-capsule); }
/* Clicked: kit 16% fill = the 8% bordered fill + the 8% pressed overlay (hig-pressable) */
.hig-disclosure__button:disabled { background: var(--mac-fill-quaternary); color: var(--mac-label-tertiary); cursor: default; }
.hig-disclosure--open .hig-disclosure__button .hig-icon { transform: rotate(180deg); } /* points up when expanded */
.hig-disclosure--button > .hig-disclosure__content { padding-top: 8px; } /* chosen */

/* ---------- iOS DisclosureGroup (kit Lists Accessories - Trailing/Disclosure - Collapsed/Expanded:
   17pt Semibold chevron in the accent, 8pt slot; row as Lists/Rows/Default) ---------- */
.hig-disclosure--group { color: var(--label-primary); }
.hig-disclosure__row {
  width: 100%; min-height: var(--row-height); gap: 16px; justify-content: space-between;
  padding: 15px var(--margin-compact); background: var(--hig-list-row-bg, transparent);
}
.hig-disclosure__row .hig-disclosure__label { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; letter-spacing: -0.43px; }
.hig-disclosure--group .hig-disclosure__chevron { width: 8px; color: var(--accent); }
.hig-disclosure--group .hig-disclosure__chevron .hig-icon { margin: 0 -6px; }
.hig-disclosure--group.hig-disclosure--open .hig-disclosure__chevron .hig-icon { transform: rotate(90deg); }
.hig-disclosure--group .hig-disclosure__chevron:dir(rtl) { transform: scaleX(-1); }
.hig-disclosure__row:active:not(:disabled) { background: linear-gradient(var(--pressed-overlay), var(--pressed-overlay)), var(--hig-list-row-bg, transparent); }
.hig-disclosure__row:focus-visible { outline-offset: -3px; }
.hig-disclosure--group.hig-disclosure--disabled .hig-disclosure__label,
.hig-disclosure--group.hig-disclosure--disabled .hig-disclosure__chevron { color: var(--label-tertiary); }
/* Inside a list section: the row separator starts at the text and ends 16pt before the edge, like list rows */
.hig-list-section__rows > .hig-disclosure--group > .hig-disclosure__row {
  background:
    linear-gradient(var(--separator), var(--separator)) no-repeat left var(--margin-compact) bottom / calc(100% - 2 * var(--margin-compact)) 1px,
    var(--hig-list-row-bg, transparent);
}
.hig-list-section__rows > .hig-disclosure--group:last-child:not(.hig-disclosure--open) > .hig-disclosure__row { background: var(--hig-list-row-bg, transparent); }
.hig-list-section__rows > .hig-disclosure--group { list-style: none; }
.hig-list-section__rows > .hig-disclosure--group:last-child > .hig-disclosure__content > .hig-list-row:last-child .hig-list-row__body { box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .hig-disclosure__chevron .hig-icon { transition: none; } }

/* ---- List ---- */
/* List, ListSection, ListRow — iOS 27 kit (Lists, Sidebar, Toggles pages) and macOS 27 kit (Forms, Sidebars,
   Toggles - Switches pages). Literal px values are kit measurements without a token of their own, cited inline;
   values the kits do not give are marked "chosen". */
.hig-list {
  position: relative; box-sizing: border-box; margin: 0;
  font-family: var(--font-sans); color: var(--label-primary); -webkit-tap-highlight-color: transparent;
}
.hig-list *, .hig-list *::before, .hig-list *::after { box-sizing: border-box; }

/* ---------- iOS / iPadOS grounds ---------- */
/* Grouped styles: grouped-background-primary ground, -secondary rows (kit Examples/Lists/Grouped). */
.hig-list--ios.hig-list--insetGrouped,
.hig-list--ios.hig-list--grouped { background: var(--grouped-background-primary); --hig-list-row-bg: var(--grouped-background-secondary); }
.hig-list--ios.hig-list--plain { background: var(--background-primary); --hig-list-row-bg: var(--background-primary); }
.hig-list--ios.hig-list--sidebar { --hig-list-row-bg: transparent; padding: 0 10px; } /* kit Sidebar/Items/Level 0: row 10pt from the column edge */
/* Inset grouped: 370pt sections inset 16pt in a 402pt screen (kit Lists/Grouped Table View). */
.hig-list--ios.hig-list--insetGrouped { padding: 0 var(--margin-compact); }

/* ---------- Sections ---------- */
.hig-list-section { margin: 0; }
.hig-list-section + .hig-list-section { margin-top: 20px; } /* kit Examples/Lists/Grouped: sections 20pt apart */
.hig-list--ios.hig-list--plain .hig-list-section + .hig-list-section { margin-top: 0; } /* plain sections run on; headers separate them */
.hig-list-section__rows { position: relative; list-style: none; margin: 0; padding: 0; }
.hig-list--ios.hig-list--insetGrouped .hig-list-section__rows {
  background: var(--grouped-background-secondary); border-radius: var(--radius-group); overflow: hidden;
}
.hig-list--ios.hig-list--grouped .hig-list-section__rows { background: var(--grouped-background-secondary); }

/* Headers (kit Lists/Header/*): title 16pt from the leading edge, 10pt above and below.
   Extra Prominent 48pt (Title 2 Bold), Prominent 45pt (Title 3 Semibold), Nested 42pt (Body Semibold, secondary). */
.hig-list-section__header { display: flex; align-items: baseline; padding: 10px var(--margin-compact); }
.hig-list-section__title { flex: 1; min-width: 0; }
.hig-list--ios .hig-list-section__header--extraProminent .hig-list-section__title {
  font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.26px; color: var(--label-primary);
}
.hig-list--ios .hig-list-section__header--prominent .hig-list-section__title {
  font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -0.45px; color: var(--label-primary);
}
.hig-list--ios .hig-list-section__header--nested .hig-list-section__title {
  font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; color: var(--label-secondary);
}
/* Trailing header action: Subheadline 15pt in the accent (kit Headers/Extra Prominent/Trailing/Action). */
.hig-list--ios .hig-list-section__action { flex: none; font-size: 15px; line-height: 20px; letter-spacing: -0.23px; color: var(--accent); }
/* Footer (kit Lists/Footer): 13pt/16 (Footnote, tight leading), secondary, 8pt above, 30pt for one line. */
.hig-list-section__footer {
  padding: 8px var(--margin-compact) 6px;
  font-size: 13px; line-height: 16px; letter-spacing: -0.08px; color: var(--label-secondary);
}

/* ---------- Rows (kit Lists/Rows/Default 52pt, Large 68pt) ---------- */
.hig-list-row { position: relative; display: block; margin: 0; padding: 0; list-style: none; overflow: hidden; outline: none; }
.hig-list-row__content {
  position: relative; display: flex; align-items: stretch; min-height: var(--row-height);
  padding-left: var(--margin-compact); background: var(--hig-list-row-bg);
  transition: transform 200ms ease; /* chosen: the kits give no swipe duration */
}
.hig-list-row__content::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--pressed-overlay); opacity: 0; transition: opacity 80ms linear;
}
/* Title and trailing items share the "Stack", whose bottom border is the separator: it starts at the text. */
.hig-list-row__body {
  flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 16px;
  margin-right: var(--margin-compact); /* the Stack (and its separator) ends 16pt before the trailing edge (kit) */
  padding: 14px 0; /* kit: title 15pt from the top of a 52pt row, 14pt in a 68pt row */
  box-shadow: inset 0 -1px var(--separator);
}
.hig-list-section__rows > .hig-list-row:last-child .hig-list-row__body { box-shadow: none; }
.hig-list-row__text { flex: 1; min-width: 0; align-self: center; display: flex; flex-direction: column; }
.hig-list-row__title {
  font-size: 17px; line-height: 22px; letter-spacing: -0.43px; color: var(--label-primary); overflow-wrap: anywhere;
}
/* kit Rows/Large Subtitle: 15pt on an 18pt line, secondary */
.hig-list-row__subtitle { font-size: 15px; line-height: 18px; letter-spacing: -0.23px; color: var(--label-secondary); }
.hig-list-row__trailing {
  flex: none; max-width: 62%; align-self: stretch; display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; /* kit Accessories - Trailing: chevron and symbols sit 16pt after the detail */
  color: var(--label-secondary);
}
.hig-list-row__detail {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 17px; line-height: 22px; letter-spacing: -0.43px; color: var(--label-secondary);
}
/* Drill-in chevron: 17pt Semibold, tertiary, 10pt slot (kit Accessories - Trailing/Drill In) */
.hig-list-row__chevron { flex: none; display: inline-flex; width: 10px; justify-content: center; color: var(--label-tertiary); }
.hig-list-row__chevron .hig-icon { margin: 0 -5px; }
/* Checkmark: 17pt Semibold, label-primary, 22pt slot (kit Accessories - Trailing/Checkmark) */
.hig-list-row__check { flex: none; display: inline-flex; width: 22px; justify-content: center; color: var(--label-primary); }
/* Info (detail disclosure) button: 17pt symbol in the accent, 22pt slot (kit Accessories - Trailing/Info) */
.hig-list-row__info {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 1; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
}
.hig-list-row__info::before,
.hig-list-switch::before,
.hig-list-edit::before,
.hig-list-row__grabber::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, var(--target-ios)); height: max(100%, var(--target-ios));
}
.hig-list-row__info:disabled { color: var(--label-tertiary); cursor: default; }

/* The row's primary action: its ::before covers the whole row, so the full row is the hit region. */
.hig-list-row__action {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; outline: none;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: inherit; text-decoration: none; cursor: pointer;
}
.hig-list-row__action::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hig-list-row__action:disabled, .hig-list-row__action[aria-disabled="true"] { cursor: default; }
.hig-list-row__action:active:not(:disabled):not([aria-disabled="true"])::before { background: var(--pressed-overlay); }
.hig-list-row__action:focus-visible::before { outline: 3px solid var(--focus-ring); outline-offset: -3px; }

/* Option rows (selectable lists) */
.hig-list-row--option { cursor: pointer; }
.hig-list-row--option:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.hig-list-row--option:active:not(.hig-list-row--disabled) .hig-list-row__content::after { opacity: 1; }
/* Persistent highlight for navigation selection: Fills/3 Tertiary, as the kit's selected sidebar item. */
.hig-list--ios .hig-list-row--highlighted .hig-list-row__content {
  background: linear-gradient(var(--fill-tertiary), var(--fill-tertiary)), var(--hig-list-row-bg);
}

/* Leading accessories */
/* Image: 42pt thumbnail, radius-thumbnail; 16pt to the text (kit Rows/Default: accessories end 16pt before the Stack). */
.hig-list-row__image {
  flex: none; align-self: center; display: flex; width: 42px; height: 42px; margin-right: 16px;
  border-radius: var(--radius-thumbnail); overflow: hidden; background: var(--fill-tertiary);
}
.hig-list-row__image > * { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Symbol: 22pt in the accent, 34pt slot (kit Accessories - Leading - Regular/With Symbol) */
.hig-list-row__symbol { flex: none; align-self: center; display: inline-flex; justify-content: center; width: 34px; margin-right: 16px; color: var(--accent); }
/* Settings-style icon tile — chosen: the iOS kit draws none; 28pt tile with the radius ratio (22.5%) of the macOS kit's
   Forms "Service Icon" tiles, white (on-accent) glyph on a system color. */
.hig-list-row__tile {
  flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 16px; border-radius: 6.3px; color: var(--on-accent);
}

/* Edit controls: 22pt circles in a 25pt slot, 4pt before the image (kit Rows/Editing/*) */
.hig-list-edit {
  appearance: none; -webkit-appearance: none; margin: 0 4px 0 0; padding: 0 0 0 2px; border: 0; background: none;
  position: relative; z-index: 1; flex: none; align-self: center; width: 25px; height: 22px;
  display: inline-flex; align-items: center; cursor: pointer;
}
.hig-list-edit + .hig-list-row__body { margin-left: 12px; } /* 4pt + 12pt = the 16pt gap before the text */
.hig-list-edit__frame {
  width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-accent);
}
.hig-list-edit--delete .hig-list-edit__frame { background: var(--system-red); }
.hig-list-edit--insert .hig-list-edit__frame { background: var(--system-green); }
.hig-list-edit--selected .hig-list-edit__frame { background: var(--accent); }
.hig-list-edit--unselected .hig-list-edit__frame { box-shadow: inset 0 0 0 1.5px var(--vibrant-label-tertiary); } /* kit Editing Unselected */
/* Reorder grabber: 38pt column with a 0.5pt opaque separator on its leading edge (kit Accessories - Trailing, Grabber group) */
.hig-list-row__grabber {
  appearance: none; -webkit-appearance: none; margin: -14px 0; padding: 0 0 0 12.75px; border: 0; background: none;
  position: relative; z-index: 1; flex: none; align-self: stretch; width: 38px; display: inline-flex; align-items: center;
  box-shadow: inset 0.5px 0 var(--separator-opaque); color: var(--label-tertiary); cursor: grab;
}

/* Destructive rows and list buttons (kit Lists/Buttons: centered title in the accent; Destructive in system red) */
.hig-list-row--destructive .hig-list-row__title { color: var(--system-red); }
.hig-list-row--button .hig-list-row__text { align-items: center; text-align: center; }
.hig-list-row--button .hig-list-row__title { color: var(--accent); }
.hig-list-row--button.hig-list-row--destructive .hig-list-row__title { color: var(--system-red); }
.hig-list-row--disabled .hig-list-row__title,
.hig-list-row--disabled .hig-list-row__subtitle,
.hig-list-row--disabled .hig-list-row__detail { color: var(--label-tertiary); }
.hig-list-row--disabled .hig-list-row__symbol { opacity: 0.5; }

/* ---------- Switch (kit Toggles/On|Off/1 - Idle: 64x28 track, 38x24 knob r13 inset 2pt; green on) ---------- */
.hig-list-switch {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; cursor: pointer;
  position: relative; z-index: 1; flex: none; align-self: center;
  width: var(--toggle-width); height: var(--toggle-height); border-radius: var(--radius-capsule);
  background: var(--label-tertiary); transition: background-color 200ms ease; /* duration chosen */
}
.hig-list-switch--on { background: var(--system-green); }
/* The knob is white in every appearance; no token is white in all four themes, so light themes use
   background-primary (#fff) and dark themes label-primary (#fff). */
.hig-list-switch__knob {
  position: absolute; top: 2px; left: 2px; width: 38px; height: 24px; border-radius: 13px;
  background: var(--control-knob); transition: transform 200ms ease;
}
.hig-list-switch--on .hig-list-switch__knob { transform: translateX(22px); }
.hig-list-switch:disabled { opacity: 0.5; cursor: default; } /* kit 4 - Disabled */
/* macOS mini switch in form rows: 36x16 track, 21x13 knob inset 1.5pt (kit Toggles - Switches/Content Area/1 Mn) */
.hig-list-switch--mac { width: 36px; height: 16px; background: var(--mac-fill-primary); }
.hig-list-switch--mac.hig-list-switch--on { background: var(--accent); }
.hig-list-switch--mac .hig-list-switch__knob { top: 1.5px; left: 1.5px; width: 21px; height: 13px; border-radius: var(--radius-capsule); box-shadow: var(--shadow-knob); }
.hig-list-switch--mac.hig-list-switch--on .hig-list-switch__knob { transform: translateX(12px); }
.hig-list-switch--mac::before { width: max(100%, var(--target-mac)); height: var(--target-mac); }

/* ---------- Swipe actions (kit Lists/Rows with Swipe Actions, Slide Action) ---------- */
.hig-list-row--revealed-trailing .hig-list-row__content { border-radius: 0 var(--radius-capsule) var(--radius-capsule) 0; }
.hig-list-row--revealed-leading .hig-list-row__content { border-radius: var(--radius-capsule) 0 0 var(--radius-capsule); }
.hig-list-row__actions { position: absolute; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; }
.hig-list-row__actions--trailing { right: 0; }
.hig-list-row__actions--leading { left: 0; }
.hig-list-row__swipe {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; cursor: pointer; font-family: var(--font-sans);
  height: 44px; border-radius: var(--radius-capsule); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
/* Symbol + Label 84x44: 16pt symbol, 13pt label 8pt after it, 14pt side padding */
.hig-list-row__swipe--label { min-width: 84px; padding: 0 14px; gap: 8px; font-size: 13px; line-height: 16px; white-space: nowrap; }
.hig-list-row__swipe--symbol { width: 60px; padding: 0; } /* Symbol 60x44, 18pt symbol */

/* ---------- Section index (kit Lists/Section Index: 16pt strip, 11pt Semibold letters on 10pt lines, accent) ---------- */
.hig-list__index {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 16px; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hig-list__index-item {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  width: 14px; height: 10px; font-family: var(--font-sans); font-size: 11px; line-height: 10px; font-weight: 600; color: var(--accent);
}
/* Plain rows run under the index; keep their trailing content clear of the 16pt strip (chosen). */
.hig-list--indexed.hig-list--plain .hig-list-row__body { margin-right: 32px; }

/* ---------- iPadOS sidebar style (kit Sidebar: 44pt items, Fills/3 Tertiary selection r22, levels 20pt apart) ---------- */
.hig-list--ios.hig-list--sidebar .hig-list-section + .hig-list-section { margin-top: 0; }
/* Header 54pt: 17pt Medium secondary title at 12,21 in the 260pt column */
.hig-list--ios.hig-list--sidebar .hig-list-section__header { padding: 21px 12px 11px 2px; }
.hig-list--ios.hig-list--sidebar .hig-list-section__title {
  font-size: 17px; line-height: 22px; font-weight: 500; letter-spacing: -0.43px; color: var(--label-secondary);
}
.hig-list--ios.hig-list--sidebar .hig-list-row { margin-left: calc(var(--hig-list-level, 0) * 20px); }
.hig-list--ios.hig-list--sidebar .hig-list-row__content { min-height: var(--sidebar-row-height); padding-left: 10px; border-radius: var(--radius-capsule); }
.hig-list--ios.hig-list--sidebar .hig-list-row__body { margin-right: 4px; padding: 4px 0; box-shadow: none; }
.hig-list--ios.hig-list--sidebar .hig-list-row__symbol { width: 34px; margin-right: 4px; } /* titles 38pt after the symbol slot */
.hig-list--ios.hig-list--sidebar .hig-list-row__subtitle { font-size: 13px; line-height: 14px; letter-spacing: -0.08px; }

/* ---------- macOS ---------- */
.hig-list--mac { color: var(--mac-label-primary); background: var(--mac-window-background); --hig-list-row-bg: transparent; }
/* plain = bordered list: rows 24pt (kit Sidebars/Small rows), 13pt body text, alternating backgrounds (HIG) */
.hig-list--mac .hig-list-row__content { min-height: 24px; padding-left: 10px; } /* 10pt inset as the kit's Forms rows */
.hig-list--mac .hig-list-row__body { margin-right: 10px; padding: 4px 0; gap: 8px; box-shadow: none; } /* gap chosen */
.hig-list--mac .hig-list-row__title { font-size: 13px; line-height: 16px; letter-spacing: -0.08px; color: var(--mac-label-primary); }
.hig-list--mac .hig-list-row__subtitle { font-size: 11px; line-height: 14px; letter-spacing: 0.06px; color: var(--mac-label-secondary); }
.hig-list--mac .hig-list-row__detail { font-size: 13px; line-height: 16px; letter-spacing: -0.08px; color: var(--mac-label-secondary); }
.hig-list--mac .hig-list-row__trailing { gap: 8px; color: var(--mac-label-secondary); }
/* Symbol: 16pt slot in the accent, title 4pt after it (kit Sidebars/Small/Items) */
.hig-list--mac .hig-list-row__symbol { width: 16px; margin-right: 4px; color: var(--accent); }
.hig-list--mac .hig-list-row__chevron { width: auto; color: var(--mac-label-secondary); }
.hig-list--mac .hig-list-row__chevron .hig-icon { margin: 0; }
.hig-list--mac .hig-list-row__check { width: auto; color: var(--mac-label-primary); }
.hig-list--mac .hig-list-row__info { width: 20px; height: 16px; color: var(--mac-label-secondary); } /* kit Forms info button: 13pt, secondary */
.hig-list--mac .hig-list-row__info::before { width: max(100%, var(--target-mac)); height: var(--target-mac); }
/* Service icon tile 24pt r5.4, white 13pt symbol, title 8pt after it (kit Forms/Rows - Leading/Sidebar Icon/Service Icon 24pt) */
.hig-list--mac .hig-list-row__tile { width: 24px; height: 24px; margin-right: 8px; border-radius: 5.4px; }
/* Image 32pt r9 with a 0.5pt inner border at 10% (kit Forms/Image Icon Rounded Corner) */
.hig-list--mac .hig-list-row__image {
  width: 32px; height: 32px; margin-right: 8px; border-radius: 9px; background: var(--mac-fill-secondary);
  box-shadow: inset 0 0 0 0.5px var(--mac-label-quaternary);
}
.hig-list--mac .hig-list-row--destructive .hig-list-row__title { color: var(--system-red); }
.hig-list--mac .hig-list-row--disabled :is(.hig-list-row__title, .hig-list-row__subtitle, .hig-list-row__detail) { color: var(--mac-label-tertiary); }
.hig-list--mac .hig-list-row__action:focus-visible::before { outline-offset: -3px; }
.hig-list--mac .hig-list-row--button .hig-list-row__title { color: var(--accent); }

/* Alternating row backgrounds (HIG: bordered style), every second row */
.hig-list--mac.hig-list--alternating .hig-list-section__rows > .hig-list-row:nth-child(even):not(.hig-list-row--highlighted) .hig-list-row__content {
  background: var(--mac-fill-quaternary);
}
/* Selected rows: accent with on-accent text */
.hig-list--mac:not(.hig-list--sidebar) .hig-list-row--highlighted .hig-list-row__content { background: var(--accent); }
.hig-list--mac:not(.hig-list--sidebar) .hig-list-row--highlighted :is(.hig-list-row__title, .hig-list-row__subtitle, .hig-list-row__detail, .hig-list-row__symbol, .hig-list-row__chevron, .hig-list-row__check, .hig-list-row__info) {
  color: var(--on-accent);
}

/* Headers and footers — chosen: the macOS kit draws no list headers; Headline (13pt Bold) and Subheadline styles */
.hig-list--mac .hig-list-section__header { padding: 6px 10px; }
.hig-list--mac .hig-list-section__title { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: -0.08px; color: var(--mac-label-primary); }
.hig-list--mac .hig-list-section__action { flex: none; font-size: 13px; line-height: 16px; color: var(--accent); }
.hig-list--mac .hig-list-section__footer { padding: 6px 10px; font-size: 11px; line-height: 14px; letter-spacing: 0.06px; color: var(--mac-label-secondary); }
.hig-list--mac .hig-list-section + .hig-list-section { margin-top: 8px; } /* chosen */

/* insetGrouped / grouped = Forms sections: quaternary fill, r12, rows inset 10pt, 40pt rows with text 12pt from the top,
   tertiary-fill row separators across the row (kit Forms/Example Forms) */
.hig-list--mac.hig-list--insetGrouped,
.hig-list--mac.hig-list--grouped { padding: 20px; } /* kit: the form sits 20pt inside the window */
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-section + .hig-list-section { margin-top: 20px; } /* chosen */
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-section__header { padding: 0 10px 8px; } /* chosen */
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-section__rows {
  padding: 0 10px; border-radius: var(--radius-mac-menu); background: var(--mac-fill-quaternary);
}
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-row__content {
  min-height: 40px; padding-left: 0; box-shadow: inset 0 -1px var(--mac-fill-tertiary);
}
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-section__rows > .hig-list-row:last-child .hig-list-row__content { box-shadow: none; }
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-row__body { margin-right: 0; padding: 12px 0; }
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) :is(.hig-list-row__title, .hig-list-row__detail) { font-weight: 500; }
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-row__subtitle { margin-top: 2px; }
/* Symbol: 13pt Medium, secondary, title 10pt after a 20pt slot (kit Forms "Title + Symbol") */
.hig-list--mac:is(.hig-list--insetGrouped, .hig-list--grouped) .hig-list-row__symbol { width: 20px; margin-right: 10px; color: var(--mac-label-secondary); }

/* sidebar (kit Sidebars Medium: sections 14pt from the edge, 32pt rows, 18pt headers, 14pt below each section,
   selection r8 reaching 4pt past the row at 11% black x 50%) */
.hig-list--mac.hig-list--sidebar { background: transparent; padding: 0 14px; }
.hig-list--mac.hig-list--sidebar .hig-list-section { padding-bottom: 14px; }
.hig-list--mac.hig-list--sidebar .hig-list-section + .hig-list-section { margin-top: 0; }
.hig-list--mac.hig-list--sidebar .hig-list-section__header { padding: 2px 0; }
.hig-list--mac.hig-list--sidebar .hig-list-section__title { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.06px; color: var(--mac-label-tertiary); }
.hig-list--mac.hig-list--sidebar .hig-list-row { overflow: visible; margin-left: calc(var(--hig-list-level, 0) * 12px); }
.hig-list--mac.hig-list--sidebar .hig-list-row__content { min-height: 32px; margin: 0 -4px; padding-left: 18px; border-radius: var(--radius-mac-menu-item); }
.hig-list--mac.hig-list--sidebar .hig-list-row__body { margin-right: 6px; padding: 8px 0; }
.hig-list--mac.hig-list--sidebar .hig-list-row__symbol { width: 20px; margin-right: 4px; } /* Medium: 20pt symbol slot, title at 24 */
.hig-list--mac.hig-list--sidebar .hig-list-row__detail { font-weight: 500; }
.hig-list--mac.hig-list--sidebar .hig-list-row--highlighted .hig-list-row__content { background: var(--mac-fill-tertiary); } /* nearest token to 11% x 50% */
.hig-list--mac.hig-list--sidebar .hig-list-row--option:focus-visible { outline: none; }
.hig-list--mac.hig-list--sidebar .hig-list-row--option:focus-visible .hig-list-row__content { outline: 3px solid var(--focus-ring); outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  .hig-list-row__content, .hig-list-switch, .hig-list-switch__knob { transition: none; }
}

/* ---- Popover ---- */
/* Popover — geometry from the iOS 27 kit (Popovers (iPad Only)) and the macOS 27 kit (Popovers). */
.hig-popover-anchor { position: relative; display: inline-flex; vertical-align: middle; }
.hig-popover { box-sizing: border-box; font-family: var(--font-sans); }
.hig-popover--anchored { position: absolute; z-index: 1001; } /* the arrow tip sits on the anchor's edge */
.hig-popover--inline { position: relative; display: inline-block; vertical-align: top; }
.hig-popover__body { position: relative; box-sizing: border-box; outline: none; }
/* A side arrow needs a minimum body height (set inline from the arrow shape); content shorter than that is centered
   on the arrow's edge rather than left at the top (centering chosen; the kit shows only taller bodies). */
.hig-popover--edge-left > .hig-popover__body, .hig-popover--edge-right > .hig-popover__body { display: flex; flex-direction: column; justify-content: center; }
.hig-popover__arrow { position: absolute; display: block; pointer-events: none; border-radius: 0; }

/* ---------- iPadOS: thick material platter (dark: regular), 13pt corners, soft 100pt shadow ---------- */
.hig-popover--ios .hig-popover__body {
  border-radius: var(--radius-platter); color: var(--label-primary);
  box-shadow: 0 10px 100px 0 color-mix(in srgb, var(--glass-dim) 86%, transparent); /* kit 'Shadow' group: black at 30% */
}
[data-theme^="dark"] .hig-popover--ios .hig-material--thick { background: var(--material-regular); } /* kit dark: Materials/Dark/2 Regular */

/* ---------- macOS: Liquid Glass Regular - Medium, 20pt corners ---------- */
.hig-popover--mac .hig-popover__body { border-radius: var(--radius-mac-popover); color: var(--mac-label-primary); }
.hig-popover--mac .hig-glass { -webkit-backdrop-filter: blur(15px) saturate(var(--saturate-glass)); backdrop-filter: blur(15px) saturate(var(--saturate-glass)); } /* kit: Regular - Medium, 15pt blur (light) */
[data-theme^="dark"] .hig-popover--mac .hig-glass { -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.2); backdrop-filter: blur(var(--blur-glass)) saturate(1.2); }
.hig-popover--mac .hig-popover__arrow.hig-glass { box-shadow: none; border-radius: 0; } /* the outline is the arrow shape itself */

/* ---- SegmentedControl ---- */
/* SegmentedControl — iOS 27 kit (Segmented Controls/Small, Large; 􀻃/5 - Selected; 􀻃/3 - Touch) and macOS 27 kit
   (Segmented Controls/Content Area/Duo, Trio; 􀻃/Buttons; 􀻃/Separator; 􀻃/Margins). */
.hig-segmented {
  position: relative; box-sizing: border-box; vertical-align: middle;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; /* equal widths, sized by the widest segment */
  font-family: var(--font-sans); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  /* Knob motion: the kit is static and the HIG gives no duration; 250ms is a chosen value. */
  --hig-seg-dur: 250ms;
}
.hig-segmented__segment {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 0; margin: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer;
  white-space: nowrap; -webkit-appearance: none; appearance: none;
}
.hig-segmented__segment:disabled { cursor: default; }
/* Reserve the semibold width so the label does not shift when it becomes the selected segment. */
.hig-segmented__label { display: inline-grid; }
.hig-segmented__label::after { content: attr(data-label); font-weight: 600; visibility: hidden; height: 0; overflow: hidden; }

/* ---------- iOS: Fills/3 Tertiary capsule, 2pt inset, segments 70pt advancing 74pt (4pt gap) ---------- */
.hig-segmented--ios {
  padding: var(--segment-inset); column-gap: var(--segment-gap);
  border-radius: var(--radius-capsule); background: var(--fill-tertiary); touch-action: pan-y;
}
.hig-segmented--ios.hig-segmented--small { height: var(--segmented-small); }
.hig-segmented--ios.hig-segmented--large { height: var(--segmented-large); }
/* 44pt hit region around the 32pt control */
.hig-segmented--ios::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, var(--target-ios)); transform: translateY(-50%);
}
.hig-segmented--ios .hig-segmented__segment {
  z-index: 1; min-width: 70px; padding: 0 4px; border-radius: var(--radius-capsule); color: var(--label-primary);
  font-size: 13.333px; line-height: 18px; letter-spacing: -0.4px; font-weight: 500; /* kit Label: SF Pro Medium 13.333pt, lh 18, kern -0.4 */
}
.hig-segmented--ios .hig-segmented__segment--selected { font-weight: 600; } /* kit 5 - Selected: Semibold */
/* The selected knob: white with a 0 2 20 6% shadow (light); 27% white without shadow (dark). */
.hig-segmented__knob {
  --hig-seg-w: calc((100% - 2 * var(--segment-inset) - (var(--hig-seg-n) - 1) * var(--segment-gap)) / var(--hig-seg-n));
  position: absolute; z-index: 0; pointer-events: none;
  top: var(--segment-inset); bottom: var(--segment-inset); width: var(--hig-seg-w);
  left: calc(var(--segment-inset) + var(--hig-seg-i) * (var(--hig-seg-w) + var(--segment-gap)));
  border-radius: var(--radius-capsule);
  background-color: var(--background-primary);
  box-shadow: var(--shadow-segment-knob); /* kit 5 - Selected */
  transition: left var(--hig-seg-dur) ease, top var(--hig-seg-dur) ease, bottom var(--hig-seg-dur) ease,
    width var(--hig-seg-dur) ease, margin var(--hig-seg-dur) ease, background-color var(--hig-seg-dur) ease, box-shadow var(--hig-seg-dur) ease;
}
[data-theme^="dark"] .hig-segmented__knob { background-color: color-mix(in srgb, var(--label-primary) 27%, transparent); box-shadow: none; } /* kit Dark/5 - Selected rgba(255,255,255,0.27) */
.hig-segmented .hig-segmented__lens { position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-glass-small), var(--shadow-glass-highlight), 0 0 0 1px var(--separator); /* clear glass + a separator hairline for the kit's Knob Glow rim */ opacity: 0; transition: opacity var(--hig-seg-dur) ease; }
/* While dragging, the knob becomes the Liquid Glass lens of 􀻃/3 - Touch: 10pt wider and 7pt taller on each side. */
.hig-segmented--dragging .hig-segmented__knob {
  top: calc(var(--segment-inset) - 7px); bottom: calc(var(--segment-inset) - 7px); margin-left: -10px;
  width: calc(var(--hig-seg-w) + 20px); background-color: transparent; box-shadow: none;
}
.hig-segmented--dragging .hig-segmented__lens { opacity: 1; }
.hig-segmented--ios.hig-segmented--disabled { opacity: 0.5; } /* kit 4 - Disabled */

/* ---------- macOS: Fills/2 Secondary track, separators between unselected segments, accent selection ---------- */
.hig-segmented--mac { height: var(--hig-seg-h); border-radius: var(--hig-seg-r); background: var(--mac-fill-secondary); }
/* 28pt hit region (target-mac) */
.hig-segmented--mac::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, var(--target-mac)); transform: translateY(-50%);
}
.hig-segmented--mac .hig-segmented__segment {
  min-width: var(--hig-seg-minw); padding: 0 var(--hig-seg-pad); border-radius: var(--hig-seg-r);
  color: var(--mac-label-primary); font-weight: 500;
}
.hig-segmented--mac .hig-segmented__segment--icon { padding: 0; }
.hig-segmented--mac .hig-segmented__label::after { font-weight: 500; }
/* Separator/On: 1pt Labels Vibrant/5 Quinary, blended plus-darker in the kit (multiply stands in; screen in dark). */
.hig-segmented--mac .hig-segmented__segment + .hig-segmented__segment::before {
  content: ""; position: absolute; left: -0.5px; top: 50%; width: 1px; height: var(--hig-seg-sep); transform: translateY(-50%);
  border-radius: 1px; background: var(--vibrant-separator); pointer-events: none;
}
/* Separator/Off on both sides of the selected segment */
.hig-segmented--mac .hig-segmented__segment--selected::before,
.hig-segmented--mac .hig-segmented__segment--selected + .hig-segmented__segment::before { opacity: 0; }
/* On, 01 - Idle: accent + Fills Vibrant/4 Quaternary; label white */
.hig-segmented--mac .hig-segmented__segment--selected {
  background: linear-gradient(var(--mac-fill-quaternary), var(--mac-fill-quaternary)), var(--accent); color: var(--on-accent);
}
/* Off, 03 - Clicked: 0.16 (Fills/2 Secondary over the track); On, 03 - Clicked: accent + 0.15 */
.hig-segmented--mac .hig-segmented__segment:active:not(:disabled) { background: var(--mac-fill-secondary); }
.hig-segmented--mac .hig-segmented__segment--selected:active:not(:disabled) {
  background: linear-gradient(var(--mac-fill-primary), var(--mac-fill-primary)), linear-gradient(var(--mac-fill-tertiary), var(--mac-fill-tertiary)), var(--accent);
}
/* 4 - Disabled: tertiary label; the selected segment at 0.45 with its label at 0.5 */
.hig-segmented--mac .hig-segmented__segment:disabled { color: var(--mac-label-tertiary); }
.hig-segmented--mac .hig-segmented__segment--selected:disabled { color: var(--on-accent); opacity: 0.45; }
.hig-segmented--mac .hig-segmented__segment--selected:disabled > * { opacity: 0.5; }
/* Sizes (kit 1 Mn … 5 XL): height, corner, glyph-segment width, minimum label margin, separator height, label size. */
.hig-segmented--mac.hig-segmented--mini { --hig-seg-h: var(--mac-control-mini); --hig-seg-r: var(--radius-mac-mini); --hig-seg-minw: 23px; --hig-seg-pad: 6px; --hig-seg-sep: 10px; font-size: 10px; line-height: 13px; letter-spacing: 0.12px; }
.hig-segmented--mac.hig-segmented--small { --hig-seg-h: var(--mac-control-small); --hig-seg-r: var(--radius-mac-small); --hig-seg-minw: 26px; --hig-seg-pad: 8px; --hig-seg-sep: 12px; font-size: 11px; line-height: 14px; letter-spacing: 0.06px; }
.hig-segmented--mac.hig-segmented--regular { --hig-seg-h: var(--mac-control-regular); --hig-seg-r: var(--radius-mac-regular); --hig-seg-minw: 30px; --hig-seg-pad: 10px; --hig-seg-sep: 14px; font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }
.hig-segmented--mac.hig-segmented--large { --hig-seg-h: var(--mac-control-large); --hig-seg-r: var(--radius-capsule); --hig-seg-minw: 34px; --hig-seg-pad: 12px; --hig-seg-sep: 18px; font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }
.hig-segmented--mac.hig-segmented--xl { --hig-seg-h: var(--mac-control-xl); --hig-seg-r: var(--radius-capsule); --hig-seg-minw: 38px; --hig-seg-pad: 14px; --hig-seg-sep: 20px; font-size: 13px; line-height: 16px; letter-spacing: -0.08px; }

@media (prefers-reduced-motion: reduce) {
  .hig-segmented { --hig-seg-dur: 0ms; }
}

/* ---- Sheet ---- */
/* Sheet — geometry from the iOS 27 kit (Sheets, Toolbars/iPhone/Top - Sheet) and macOS 27 kit (Dialogs). */
.hig-sheet-scrim {
  position: fixed; inset: 0; z-index: 1000; box-sizing: border-box;
  background: var(--scrim-sheet); /* kit Sheets/Overlay */
  font-family: var(--font-sans);
}
.hig-sheet-scrim--nonmodal { background: transparent; pointer-events: none; }
.hig-sheet-scrim--nonmodal .hig-sheet { pointer-events: auto; }
.hig-sheet { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; outline: none; overflow: hidden; }
.hig-sheet__header { position: relative; flex: none; touch-action: none; }
.hig-sheet__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.hig-sheet__title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- iPhone ---------- */
/* Medium detent: an inset Liquid Glass card 8pt from the screen edges, 451pt of an 874pt screen (kit Medium Detent). */
.hig-sheet--ios.hig-sheet--medium { left: 8px; right: 8px; bottom: 8px; height: calc(100% * 451 / 874); border-radius: var(--radius-sheet); }
/* The kit renders this card with Regular - Medium glass: 15pt blur in light appearance (30pt dark). */
.hig-sheet--ios.hig-sheet--medium.hig-glass { -webkit-backdrop-filter: blur(15px) saturate(var(--saturate-glass)); backdrop-filter: blur(15px) saturate(var(--saturate-glass)); }
[data-theme^="dark"] .hig-sheet--ios.hig-sheet--medium.hig-glass { -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.2); backdrop-filter: blur(var(--blur-glass)) saturate(1.2); }
/* Large detent: opaque, full width under the status bar, 38pt top corners (kit Large Detent). */
.hig-sheet--ios.hig-sheet--large {
  left: 0; right: 0; bottom: 0; top: var(--status-bar-height);
  border-radius: 38px 38px 0 0; background: var(--background-elevated-primary); color: var(--label-primary); /* kit: white in light, the dark elevated background in dark */
  box-shadow: 0 15px 50px 0 color-mix(in srgb, var(--glass-dim) 51%, transparent); /* kit: black at 18% */
}
.hig-sheet--ios .hig-sheet__header { height: 70px; } /* kit Toolbars/iPhone/Top - Sheet: 70pt */
.hig-sheet--ios .hig-sheet__toolbar { position: absolute; left: 16px; right: 16px; top: 16px; height: 44px; } /* kit: 44pt buttons at x=16, y=16 */
.hig-sheet--ios .hig-sheet__body { padding: 0 var(--margin-compact) var(--margin-compact); }
.hig-sheet__grabber {
  position: absolute; left: 50%; top: 5px; width: 60px; height: 4px; margin: 0 0 0 -30px; padding: 0; border: 0; cursor: grab; /* kit: 60×4 at y=5 */
  border-radius: 2px; background: var(--vibrant-fill-primary); /* kit: 207 gray plus-darker (dark: 51 gray plus-lighter); the token is the blend-equivalent color */
}
/* Keep a 44pt-tall hit region around the 4pt grabber. */
.hig-sheet__grabber::before { content: ""; position: absolute; left: -10px; right: -10px; top: -5px; height: var(--target-ios); }

/* Toolbar row: leading button, centered title, trailing button. */
.hig-sheet__toolbar { display: flex; align-items: center; }
.hig-sheet__toolbar-side { flex: 1 1 0; display: flex; min-width: var(--toolbar-button); }
.hig-sheet__toolbar-side--trailing { justify-content: flex-end; }
.hig-sheet--ios .hig-sheet__title, .hig-sheet--ipad .hig-sheet__title {
  flex: 0 1 auto; text-align: center; padding: 0 8px; /* 8pt keeps the title off the buttons: the kit title box spans 68–335 between 44pt buttons at 16 and 343 */
  font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.43px; color: var(--glass-label-primary); /* ios-headline; kit Titles - iPhone/Title */
}
.hig-sheet__tool {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; cursor: pointer; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--button-icon-gap); height: var(--toolbar-button);
  font-family: var(--font-sans); font-size: 17px; line-height: 22px; letter-spacing: -0.43px; font-weight: 500; /* kit: SF Pro Medium 17 */
  background: transparent; color: var(--glass-label-primary); -webkit-tap-highlight-color: transparent;
}
.hig-sheet__tool--icon { width: var(--toolbar-button); padding: 0; border-radius: 50%; } /* kit Buttons (for Inspectors): 44×44, r24 */
.hig-sheet__tool--text { padding: 0 12px; border-radius: var(--radius-capsule); } /* kit Buttons/44pt/Text: label inset 12 */
.hig-sheet__tool:disabled { cursor: default; color: var(--label-tertiary); }
/* iPhone: plain fills (kit Close Button: Fills/2 Secondary; Primary: system blue with a white symbol). */
.hig-sheet--ios .hig-sheet__tool { background: var(--fill-secondary); }
.hig-sheet--ios .hig-sheet__tool--prominent { background: var(--accent); color: var(--on-accent); }
.hig-sheet--ios .hig-sheet__tool--prominent:disabled { background: var(--fill-quaternary); color: var(--label-tertiary); }
/* iPad: Liquid Glass toolbar buttons (kit Toolbars/Buttons/44pt Symbol 1 and Symbol 1 - Prominent). */
.hig-sheet--ipad .hig-sheet__tool--prominent { color: var(--on-accent); }
.hig-sheet__tool.hig-glass:active:not(:disabled) { background-color: var(--pressed-overlay); }

/* ---------- iPad form sheet: centered, 936×770 at most, 32pt from the screen's top and bottom (kit Sheets/iPad) ---------- */
.hig-sheet-scrim--ipad { display: flex; align-items: center; justify-content: center; padding: 32px; }
.hig-sheet--ipad {
  position: relative; width: 936px; max-width: 100%; height: 770px; max-height: 100%;
  border-radius: var(--radius-menu); background: var(--background-elevated-primary); color: var(--label-primary);
}
.hig-sheet--ipad .hig-sheet__header { height: 64px; } /* kit: toolbar at y=10, 54pt tall */
.hig-sheet--ipad .hig-sheet__toolbar { position: absolute; left: 10px; right: 10px; top: 10px; height: 44px; } /* kit: 44pt buttons 10pt from the edges */
.hig-sheet--ipad .hig-sheet__body { padding: 0 var(--margin-compact) var(--margin-compact); }

/* ---------- macOS: a card over the dimmed parent window (kit Dialogs/Save Dialog) ---------- */
/* Attached to the window: it fills the nearest positioned ancestor (put the Sheet inside the window's body). */
.hig-sheet-scrim--mac { position: absolute; display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: inherit; }
.hig-sheet--mac {
  position: relative; width: 390px; max-width: 100%; max-height: 100%; padding: 20px; /* kit Save Dialog: 390pt wide, 20pt inset */
  border-radius: var(--radius-mac-alert); background: var(--mac-window-background); color: var(--mac-label-primary);
  box-shadow: var(--shadow-mac-window); font-size: 13px; line-height: 16px; letter-spacing: -0.08px; /* kit: Windows/No Sidebar/Active style */
}
.hig-sheet--mac .hig-sheet__header { touch-action: auto; }
.hig-sheet--mac .hig-sheet__title { white-space: normal; margin-bottom: 20px; font-size: 14px; font-weight: 700; color: var(--mac-label-primary); } /* kit: SF Pro Bold 14, 20pt above the form */
.hig-sheet__footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; flex: none; } /* kit: 24pt push buttons 8pt apart, 20pt below the form */

/* ---- Sidebar ---- */
/* Sidebar — geometry from the iOS 27 kit (Sidebars page: Items/Level 0–2, States, Header, Examples/Sidebar) and the
   macOS 27 kit (Sidebars page: Small/Medium/Large Items, Folders, Header, Examples/Active; Windows/Unified Toolbar +
   Title + Sidebar). */
.hig-sidebar { box-sizing: border-box; font-family: var(--font-sans); -webkit-tap-highlight-color: transparent; }
.hig-sidebar__list { list-style: none; margin: 0; padding: 0; }
.hig-sidebar__li { margin: 0; padding: 0; }
.hig-sidebar__row, button.hig-sidebar__header {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hig-sidebar__row { position: relative; display: flex; align-items: center; box-sizing: border-box; min-width: 0; }
.hig-sidebar__row:disabled { opacity: 0.5; cursor: default; } /* kit States/Disabled: 50% opacity */
.hig-sidebar__row .hig-icon, .hig-sidebar__header .hig-icon { pointer-events: none; }
.hig-sidebar__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.hig-sidebar__label, .hig-sidebar__subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hig-sidebar__icon, .hig-sidebar__disclosure, .hig-sidebar__chevron, .hig-sidebar__header-chevron { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hig-sidebar__icon { color: var(--accent); } /* HIG: sidebar icons use the accent color by default */
.hig-sidebar__badge { flex: none; }
.hig-sidebar__header { display: flex; box-sizing: border-box; width: 100%; }
.hig-sidebar__header-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hig-sidebar__header-detail, .hig-sidebar__header-chevron { flex: none; }

/* ---- iOS / iPadOS ---- */
/* 260pt column (sidebar-width); items sit 10pt inside it and their state capsule another 10pt in, 20pt per level
   (kit Examples/Sidebar: items at x=10, Items/Level 0–2: state at x=10/30/50). */
.hig-sidebar--ios { width: var(--sidebar-width); padding: 0 10px 10px; background: var(--background-secondary); color: var(--label-primary); }
.hig-sidebar--ios .hig-sidebar__row {
  width: calc(100% - 10px - var(--hig-sidebar-level, 0) * 20px); margin-inline-start: calc(10px + var(--hig-sidebar-level, 0) * 20px);
  height: var(--sidebar-row-height); padding: 0 12px 0 10px; gap: 4px; border-radius: var(--radius-capsule);
  font: 400 17px/22px var(--font-sans); letter-spacing: -0.43px; /* ios-body */
}
/* Selected: Fills/3 Tertiary capsule, 22pt radius (kit States/Selected 260×44). */
.hig-sidebar--ios .hig-sidebar__row.is-selected { background: var(--fill-tertiary); }
/* Symbol: 17pt Regular in a 34×36 box 10pt from the capsule edge, title 4pt after (kit Items/Leading/Composed). */
.hig-sidebar--ios .hig-sidebar__icon { width: 34px; height: 36px; font-size: 17px; }
.hig-sidebar--ios .hig-sidebar__subtitle { font: 400 13px/14px var(--font-sans); letter-spacing: -0.08px; color: var(--label-secondary); } /* kit Titles: 13pt subtitle */
/* Trailing detail (counts): 17pt Regular secondary, 8pt after the title (kit Items/Trailing/Detail only). */
.hig-sidebar--ios .hig-sidebar__badge { margin-inline-start: 4px; font: 400 17px/22px var(--font-sans); letter-spacing: -0.43px; color: var(--label-secondary); }
/* Disclosure chevron: 13pt Bold tertiary in an 18pt box, 6pt after the detail (kit Items/Trailing/Submenu). */
.hig-sidebar--ios .hig-sidebar__chevron { width: 18px; height: 18px; margin-inline-start: 2px; font-size: 13px; color: var(--label-tertiary); }
/* Section header: 54pt; 17pt Medium secondary title at 12,21; trailing detail + 18pt disclosure (kit Header/Header). */
.hig-sidebar--ios .hig-sidebar__header {
  align-items: flex-start; gap: 8px; height: 54px; padding: 21px 12px 11px;
  font: 500 17px/22px var(--font-sans); letter-spacing: -0.43px; color: var(--label-secondary);
}
.hig-sidebar--ios .hig-sidebar__header-detail { font-weight: 400; }
/* The kit draws the header disclosure as an override placeholder; the accent color is a choice. */
.hig-sidebar--ios .hig-sidebar__header-chevron { width: 18px; height: 18px; margin-top: 2px; font-size: 13px; color: var(--accent); }
.hig-sidebar--ios .hig-sidebar__top { margin: 0 -10px; }

/* Floating: a Liquid Glass panel; its corner is concentric with the 22pt capsules inset 10pt (22 + 10 = radius-menu). */
.hig-sidebar--ios.hig-sidebar--floating { border-radius: var(--radius-menu); padding-top: 4px; }
.hig-sidebar--floating .hig-sidebar__row, .hig-sidebar--floating .hig-sidebar__label { color: var(--glass-label-primary); }
.hig-sidebar--floating .hig-sidebar__header, .hig-sidebar--floating .hig-sidebar__badge, .hig-sidebar--floating .hig-sidebar__subtitle { color: var(--glass-label-secondary); }
.hig-sidebar--floating .hig-sidebar__chevron, .hig-sidebar--floating .hig-sidebar__disclosure { color: var(--glass-label-tertiary); }
.hig-sidebar--floating .hig-sidebar__header-chevron { color: var(--accent); }
.hig-sidebar--floating .hig-sidebar__icon { color: var(--accent); }

/* ---- TabBar ---- */
/* TabBar — geometry from the iOS 27 kit (Tab Bars page: iPhone 402×99, Horizontal/Tabs, Tab - Default, Search
   Selected, iPad (Regular) 510×44, iPhone Duo/Vertical) and the HIG (tvOS 68pt bar, 46pt from the top). */
.hig-tab-bar {
  box-sizing: border-box; font-family: var(--font-sans); color: var(--glass-label-primary);
  -webkit-tap-highlight-color: transparent;
}
:where(.hig-tab-bar) button {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; padding: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
:where(.hig-tab-bar) .hig-icon { pointer-events: none; }

/* ---- iPhone: the 402×99 region holds the floating bar at 21,16 (kit Tab Bars/iPhone/Default) ---- */
.hig-tab-bar--ios { display: flex; width: 100%; padding: 16px 21px 21px; }
.hig-tab-bar__list { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; width: 100%; } /* search tab 8pt after the tabs */
/* Capsule: 62pt tall, tabs 54pt tall at 8,4 (kit Horizontal/Tabs - No Search). */
.hig-tab-bar__tabs { display: flex; flex: 0 1 auto; min-width: 0; box-sizing: border-box; height: 62px; padding: 4px 8px; }
.hig-tab-bar__list--fill .hig-tab-bar__tabs { flex: 1 1 auto; }
.hig-tab-bar__tab {
  position: relative; display: flex; flex-direction: column; align-items: center; box-sizing: border-box;
  flex: 0 1 var(--hig-tab-w, 72px); min-width: 0; height: 54px; padding: 7px 2px 6px; border-radius: var(--radius-capsule);
}
.hig-tab-bar__list--fill .hig-tab-bar__tab { flex: 1 1 0; }
/* Selection: Fills/2 Secondary capsule 4pt wider than the tab on each side (kit Tab - Default/Selected). */
.hig-tab-bar__selection { position: absolute; inset: 0 -4px; border-radius: var(--radius-capsule); background: var(--fill-secondary); }
.hig-tab-bar__icon { position: relative; display: flex; align-items: center; justify-content: center; height: 28px; font-size: 18px; } /* 18pt Semibold symbol in a 28pt box (kit) */
.hig-tab-bar__label {
  position: relative; display: block; max-width: 100%; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 10px/12px var(--font-sans); letter-spacing: -0.1px; /* 10pt Semibold, kern -0.1 (kit) */
}
.hig-tab-bar__tab.is-selected { color: var(--accent); } /* the kit fills the selected symbol and label with Blue */
/* Search tab: a separate 62pt glass circle with a 17pt Semibold magnifier (kit Tab - Search). */
.hig-tab-bar__search { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 62px; height: 62px; font-size: 17px; }
.hig-tab-bar__search.is-selected { color: var(--accent); }

/* Badge: red capsule with white text, 16pt tall, 12pt Medium (visionOS 26 kit Badges/Small/Notification Badge — the
   iOS kit draws no tab badge). Placement next to the symbol's top trailing corner is a choice.
   Numerals are white on system-red, Apple's pairing: 3.57:1 light, 3.43:1 dark, 4.56:1 light-hc (contrast.py). On the
   lighter dark-hc red white drops to 2.94:1 (below even 3:1) while black measures 7.15:1, so Increased Contrast Dark
   uses black. Set per appearance on the nearest data-theme, independent of the accent (on-accent follows the accent). */
:root, [data-theme] { --hig-tab-bar-badge-label: var(--white); }
[data-theme="dark-hc"] { --hig-tab-bar-badge-label: var(--black); }
.hig-tab-bar__badge {
  position: absolute; top: -2px; left: calc(50% + 4px); box-sizing: border-box; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-capsule); background: var(--system-red); color: var(--hig-tab-bar-badge-label);
  font: 500 12px/16px var(--font-sans); letter-spacing: 0; text-align: center; pointer-events: none;
}
[dir="rtl"] .hig-tab-bar__badge { left: auto; right: calc(50% + 4px); }

/* ---- Search selected / minimized: 48pt glass button + 48pt search field, 28pt margins (kit Search Selected) ---- */
.hig-tab-bar--searching, .hig-tab-bar--minimized { align-items: center; gap: var(--padding-bezeled); padding: 0 28px 28px; }
.hig-tab-bar--searching .hig-tab-bar__list { width: auto; flex: none; }
.hig-tab-bar--minimized .hig-tab-bar__list { justify-content: space-between; }
.hig-tab-bar__mini { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; font-size: 17px; }
.hig-tab-bar__mini.is-selected { color: var(--accent); }
.hig-tab-bar__mini .hig-tab-bar__badge { top: 2px; left: calc(50% + 6px); }
.hig-tab-bar__field {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0; box-sizing: border-box; height: 48px; padding: 0 11px; gap: 4px;
  color: var(--glass-label-secondary); cursor: text;
}
.hig-tab-bar__field-glyph { display: inline-flex; justify-content: center; flex: none; width: 26px; font-size: 17px; } /* magnifier 26pt box at 11pt (kit) */
.hig-tab-bar__field-glyph--trailing { width: 18px; } /* dictation glyph 18pt box, 11pt from the end (kit) */
.hig-tab-bar__field input {
  appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; outline: none;
  background: transparent; color: var(--glass-label-primary); font: 400 17px/22px var(--font-sans); letter-spacing: -0.43px;
}
.hig-tab-bar__field input::placeholder { color: var(--glass-label-secondary); opacity: 1; }
.hig-tab-bar__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hig-tab-bar__field:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---- iPhone Duo vertical tab bar: 48pt capsule, 48pt tabs 50pt apart from y=6 (56pt apart beside search);
   search circle 8pt below; selection 44×58 (kit iPhone Duo/Vertical/Tabs, Tab - Default/Selected) ---- */
.hig-tab-bar--vertical { display: inline-flex; align-self: flex-start; width: auto; padding: 0; } /* never stretch to a neighbor's height */
.hig-tab-bar--vertical .hig-tab-bar__list { flex-direction: column; width: auto; }
.hig-tab-bar--vertical .hig-tab-bar__tabs { flex-direction: column; width: 48px; height: auto; padding: 6px 0; gap: 2px; }
.hig-tab-bar--vertical .hig-tab-bar__tab { flex: none; width: 48px; height: 48px; padding: 0; justify-content: center; }
.hig-tab-bar--vertical .hig-tab-bar__tabs--beside-search .hig-tab-bar__tab { height: 54px; }
.hig-tab-bar--vertical .hig-tab-bar__selection { inset: -5px 2px; }
.hig-tab-bar--vertical .hig-tab-bar__search { width: 48px; height: 48px; }
.hig-tab-bar--vertical .hig-tab-bar__search .hig-tab-bar__selection { inset: 2px; }

/* ---- iPadOS: 44pt capsule with 4pt inset; 36pt tabs (kit Tab Bars/iPad (Regular)/iPad 510×44) ---- */
.hig-tab-bar--ipad { display: inline-flex; align-items: center; height: 44px; padding: 4px; max-width: 100%; }
.hig-tab-bar--ipad .hig-tab-bar__list { width: auto; gap: 0; }
/* Unselected label tab: 17pt Medium, 11pt padding (kit Tab - Label/Unselected 65×36). */
.hig-tab-bar--ipad .hig-tab-bar__tab {
  position: relative; flex-direction: row; justify-content: center; gap: 6px; flex: none; width: auto; height: 36px; padding: 0 11px;
  font: 500 17px/20px var(--font-sans); letter-spacing: -0.43px;
}
/* Selected label tab: 17pt Semibold Blue on Fills/2 Secondary, 15pt padding (kit Tab - Label/Selected 74×36). */
.hig-tab-bar--ipad .hig-tab-bar__tab.is-selected { padding: 0 15px; font-weight: 600; color: var(--accent); background: var(--fill-secondary); }
.hig-tab-bar--ipad .hig-tab-bar__label { margin: 0; font: inherit; letter-spacing: inherit; }
.hig-tab-bar--ipad .hig-tab-bar__badge { position: static; flex: none; }
/* Symbol tabs (sidebar toggle, search): 52×36, 17pt Medium symbol (kit Tab - Symbol/Unselected). */
.hig-tab-bar__sym { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 36px; border-radius: var(--radius-capsule); font-size: 17px; }
.hig-tab-bar__sym.is-selected { color: var(--accent); background: var(--fill-secondary); }
/* 44pt minimum hit region around the 36pt items (HIG). */
.hig-tab-bar--ipad .hig-tab-bar__tab::before, .hig-tab-bar__sym::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--target-ios); transform: translateY(-50%);
}

/* ---- tvOS: 68pt bar whose top edge is 46pt from the top of the screen (HIG). Translucent bar, only the selected tab
   opaque, with a drop shadow when focused (HIG). No tvOS UI kit exists: the 56pt tab height (target-tv-min), 24pt
   padding (padding-borderless), tv-body labels and the inverted label-primary selection are choices. ---- */
.hig-tab-bar--tv { display: flex; justify-content: center; width: 100%; padding-top: 46px; }
.hig-tab-bar--tv .hig-tab-bar__tabs { align-items: center; height: 68px; padding: 6px; gap: 0; max-width: 100%; overflow: hidden; }
.hig-tab-bar--tv .hig-tab-bar__tab {
  flex-direction: row; justify-content: center; gap: 8px; flex: none; width: auto; height: var(--target-tv-min); padding: 0 var(--padding-borderless);
  color: var(--glass-label-secondary); transition: box-shadow 120ms linear;
}
.hig-tab-bar--tv .hig-tab-bar__tab--symbol { width: var(--target-tv-min); padding: 0; font-size: 29px; }
.hig-tab-bar--tv .hig-tab-bar__label { margin: 0; font: 500 29px/36px var(--font-sans); letter-spacing: 0; } /* tv-body */
.hig-tab-bar--tv .hig-tab-bar__tab.is-selected { background: var(--label-primary); color: var(--background-primary); } /* opaque, inverted platter (choice) */
.hig-tab-bar--tv .hig-tab-bar__tab.is-selected:focus-visible { box-shadow: var(--shadow-glass); }
.hig-tab-bar--tv .hig-tab-bar__badge { position: static; flex: none; }

@media (prefers-reduced-motion: reduce) { .hig-tab-bar * { transition: none !important; } }

/* ---- Table ---- */
/* Table — multicolumn table. The macOS 27 kit has no table masters: macOS rows take the kit's 24pt list row
   (Sidebars/Small) with 13pt body text; iPadOS rows take the iOS kit's 52pt list row and Nested header. Cell padding,
   heading height and heading type are chosen (marked). */
.hig-table { position: relative; box-sizing: border-box; overflow: auto; font-family: var(--font-sans); }
.hig-table *, .hig-table *::before, .hig-table *::after { box-sizing: border-box; }
.hig-table--mac { background: var(--mac-window-background); color: var(--mac-label-primary); }
.hig-table--ios { background: var(--background-primary); color: var(--label-primary); }
.hig-table__grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; outline: none; }

/* ---------- Column headings ---------- */
.hig-table__heading {
  position: sticky; top: 0; z-index: 1; padding: 0; text-align: start; font-weight: inherit; vertical-align: middle;
  background: inherit;
}
.hig-table--mac .hig-table__heading {
  height: var(--target-mac); /* chosen: the macOS default control size */
  background: var(--mac-window-background); box-shadow: inset 0 -1px var(--mac-separator);
  font-size: 11px; line-height: 14px; letter-spacing: 0.06px; font-weight: 500; color: var(--mac-label-secondary); /* chosen: Subheadline, Medium */
}
/* Thin dividers between headings (chosen inset) */
.hig-table--mac .hig-table__heading + .hig-table__heading::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--mac-separator);
}
/* iPadOS: the Nested list header style, 42pt (kit Lists/Header/Nested: 17pt Semibold, secondary) */
.hig-table--ios .hig-table__heading {
  height: 42px; background: var(--background-primary); box-shadow: inset 0 -1px var(--separator);
  font-size: 17px; line-height: 22px; letter-spacing: -0.43px; font-weight: 600; color: var(--label-secondary);
}
.hig-table__heading-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hig-table__heading > .hig-table__heading-label { display: block; padding: 0 8px; }
.hig-table__sort {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: none; cursor: pointer;
  width: 100%; height: 100%; min-height: inherit; padding: 0 8px; display: flex; align-items: center;
  gap: var(--button-icon-gap); font: inherit; letter-spacing: inherit; color: inherit; text-align: inherit;
}
.hig-table--mac .hig-table__sort { height: var(--target-mac); }
.hig-table--ios .hig-table__sort { height: 42px; }
.hig-table__sort:focus-visible { outline-offset: -3px; }
.hig-table__sort:active { background: var(--pressed-overlay); }
.hig-table__heading--sorted { color: var(--mac-label-primary); }
.hig-table--ios .hig-table__heading--sorted { color: var(--label-primary); }
.hig-table__cell--trailing .hig-table__sort { flex-direction: row-reverse; }
.hig-table__cell--center .hig-table__sort { justify-content: center; }
.hig-table__sort-indicator { flex: none; display: inline-flex; min-width: 12px; color: var(--mac-label-secondary); }
.hig-table--ios .hig-table__sort-indicator { min-width: 16px; color: var(--accent); }
/* Resize handle on the trailing edge of each heading */
.hig-table__resize { position: absolute; top: 0; right: -4px; z-index: 2; width: 8px; height: 100%; cursor: col-resize; touch-action: none; }
.hig-table__heading:last-child .hig-table__resize { right: 0; width: 6px; }

/* ---------- Cells ---------- */
.hig-table__cell { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.hig-table__cell--leading { text-align: start; }
.hig-table__cell--trailing { text-align: end; font-variant-numeric: tabular-nums; }
.hig-table__cell--center { text-align: center; }
.hig-table--mac .hig-table__cell { height: 24px; font-size: 13px; line-height: 16px; letter-spacing: -0.08px; } /* kit 24pt rows, Body */
.hig-table--ios .hig-table__cell {
  height: var(--row-height); font-size: 17px; line-height: 22px; letter-spacing: -0.43px;
  box-shadow: inset 0 -1px var(--separator);
}
/* iPadOS rows: separators start at the 16pt content margin, as list rows */
.hig-table--ios .hig-table__cell:first-child,
.hig-table--ios .hig-table__heading:first-child > * { padding-left: var(--margin-compact); }
.hig-table--ios .hig-table__cell:last-child,
.hig-table--ios .hig-table__heading:last-child > * { padding-right: var(--margin-compact); }
.hig-table--ios .hig-table__cell:first-child {
  box-shadow: none;
  background-image: linear-gradient(var(--separator), var(--separator)); background-repeat: no-repeat;
  background-position: right bottom; background-size: calc(100% - var(--margin-compact)) 1px;
}
.hig-table--ios .hig-table__row:last-child .hig-table__cell { box-shadow: none; background-image: none; }

/* Row fills sit on the cells (not the row) so the inset focus ring paints above them. */
.hig-table__row { cursor: default; outline: none; }
/* Alternating row backgrounds (HIG: bordered style) */
.hig-table--alternating.hig-table--mac .hig-table__row:nth-child(even):not(.hig-table__row--selected) > .hig-table__cell { background-color: var(--mac-fill-quaternary); }
.hig-table--alternating.hig-table--ios .hig-table__row:nth-child(even):not(.hig-table__row--selected) > .hig-table__cell { background-color: var(--fill-quaternary); }
/* Selection: accent with on-accent text */
.hig-table .hig-table__row--selected { color: var(--on-accent); }
.hig-table .hig-table__row.hig-table__row--selected > .hig-table__cell { box-shadow: none; background-color: var(--accent); background-image: none; }
.hig-table__row:active:not(.hig-table__row--selected) > .hig-table__cell { background-image: linear-gradient(var(--pressed-overlay), var(--pressed-overlay)); }
/* Keyboard focus: a 3pt focus ring inside the row (on accent rows, an on-accent ring inside it) */
.hig-table .hig-table__row:focus-visible > .hig-table__cell { box-shadow: inset 0 3px var(--focus-ring), inset 0 -3px var(--focus-ring); }
.hig-table .hig-table__row:focus-visible > .hig-table__cell:first-child { box-shadow: inset 3px 0 var(--focus-ring), inset 0 3px var(--focus-ring), inset 0 -3px var(--focus-ring); }
.hig-table .hig-table__row:focus-visible > .hig-table__cell:last-child { box-shadow: inset -3px 0 var(--focus-ring), inset 0 3px var(--focus-ring), inset 0 -3px var(--focus-ring); }
.hig-table .hig-table__row.hig-table__row--selected:focus-visible > .hig-table__cell { box-shadow: inset 0 2px var(--on-accent), inset 0 -2px var(--on-accent); }
.hig-table .hig-table__row.hig-table__row--selected:focus-visible > .hig-table__cell:first-child { box-shadow: inset 2px 0 var(--on-accent), inset 0 2px var(--on-accent), inset 0 -2px var(--on-accent); }
.hig-table .hig-table__row.hig-table__row--selected:focus-visible > .hig-table__cell:last-child { box-shadow: inset -2px 0 var(--on-accent), inset 0 2px var(--on-accent), inset 0 -2px var(--on-accent); }
.hig-table__empty > td { height: 48px; text-align: center; color: var(--mac-label-tertiary); }
.hig-table--ios .hig-table__empty > td { color: var(--label-tertiary); }

/* ---- Toolbar ---- */
/* Toolbar — geometry from the iOS 27 kit (Toolbars page: iPhone Top - Standard / Bottom, iPad Top / Bottom,
   iPhone Duo vertical bar, Buttons 34/44/48pt) and the macOS 27 kit (Titlebars and Toolbars XL/Medium,
   Windows/Unified Toolbar + Title, Unified Compact Toolbar + Title). Colors are tokens; literal px are kit values. */
.hig-toolbar {
  position: relative; box-sizing: border-box; width: 100%;
  font-family: var(--font-sans); color: var(--glass-label-primary);
  -webkit-tap-highlight-color: transparent;
}
.hig-toolbar__row, .hig-toolbar__large, .hig-toolbar__title-row { position: relative; z-index: 1; }

/* ---- Scroll edge effect (kit Scroll Edge Effect symbols) ---- */
.hig-toolbar__edge { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Soft: a background blur masked by a gradient that starts at 60% (kit "Top - Soft (no text)", blur r100). Browsers
   don't render a 100px backdrop blur on a bar-height element, so blur-glass (30px) stands in. The mask uses only
   alpha; currentColor at 60% supplies the 0.6 starting alpha without a literal color. */
.hig-toolbar__edge--soft {
  -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass));
  -webkit-mask-image: linear-gradient(to bottom, color-mix(in srgb, currentColor 60%, transparent), transparent);
  mask-image: linear-gradient(to bottom, color-mix(in srgb, currentColor 60%, transparent), transparent);
}
.hig-toolbar--bottom .hig-toolbar__edge--soft,
.hig-toolbar--vertical .hig-toolbar__edge--soft {
  -webkit-mask-image: linear-gradient(to top, color-mix(in srgb, currentColor 60%, transparent), transparent);
  mask-image: linear-gradient(to top, color-mix(in srgb, currentColor 60%, transparent), transparent);
}
/* Hard: the background color at 85% opacity over a 6pt blur, with a hairline (kit "Top - Hard"; the kit hairline is
   5% black — `separator`, the token for toolbar edges, stands in). */
.hig-toolbar__edge--hard {
  background: color-mix(in srgb, var(--background-primary) 85%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 -0.67px 0 var(--separator);
}
.hig-toolbar--mac .hig-toolbar__edge--hard { background: color-mix(in srgb, var(--mac-window-background) 85%, transparent); }
.hig-toolbar--bottom .hig-toolbar__edge--hard { box-shadow: inset 0 0.67px 0 var(--separator); }
/* The dark Hard edge uses 55% opacity instead of 85% (kit Scroll Edge Effect/Dark/Top - Hard). */
[data-theme^="dark"] .hig-toolbar__edge--hard { background: color-mix(in srgb, var(--background-primary) 55%, transparent); }
[data-theme^="dark"] .hig-toolbar--mac .hig-toolbar__edge--hard { background: color-mix(in srgb, var(--mac-window-background) 55%, transparent); }

/* ---- iOS / iPadOS layout ---- */
/* iPhone top bar 402×54: 44pt row, 16pt side margins, 10pt below (kit iPhone/Top - Standard/Title). */
.hig-toolbar--ios.hig-toolbar--top { padding: 0 var(--margin-compact) 10px; }
/* iPad top bar 1210×54: 20pt side margins (kit iPad/Top/Default Title). */
.hig-toolbar--ipad.hig-toolbar--top { padding: 0 20px 10px; }
/* iPhone bottom toolbar 402×56: 48pt platters at 28,4 (kit iPhone/Bottom/Controls). */
.hig-toolbar--ios.hig-toolbar--bottom { padding: 4px 28px; }
/* iPad bottom toolbar: 44pt platters, one row (kit iPad/Bottom/Left, Center and Right). */
.hig-toolbar--ipad.hig-toolbar--bottom { padding: 0 20px; }

.hig-toolbar__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start;
  column-gap: var(--padding-bezeled); min-height: var(--toolbar-button);
}
.hig-toolbar--items-48 .hig-toolbar__row { min-height: 48px; }
.hig-toolbar__side { display: flex; align-items: center; gap: var(--padding-bezeled); min-width: 0; } /* platters 56pt apart = 44 + 12 (kit) */
/* Titles sit at their kit offsets from the top of the row, but the sides fill the row height so a smaller item
   (the 34pt close button) centers on the 44pt (48pt) row like the platters beside it. */
.hig-toolbar--ios:not(.hig-toolbar--vertical) .hig-toolbar__side,
.hig-toolbar--ipad:not(.hig-toolbar--vertical) .hig-toolbar__side { align-self: stretch; }
.hig-toolbar__side > .hig-toolbar__title--leading { align-self: flex-start; }
.hig-toolbar__side--trailing { justify-content: flex-end; }
.hig-toolbar__middle { display: flex; align-items: center; justify-content: center; gap: var(--padding-bezeled); min-width: 0; }
.hig-toolbar__custom { display: flex; align-items: center; flex: none; min-width: 0; }

/* Platters (kit Buttons/44pt): a group is 44pt tall, 36pt items at 6,4 that sit 56pt apart; a single item is a
   44pt circle holding a 36pt item at 4,4. */
.hig-toolbar__platter {
  display: inline-flex; align-items: center; flex: none; box-sizing: border-box;
  height: var(--toolbar-button); padding: 4px 6px; gap: 20px;
}
.hig-toolbar__platter--single { padding: 4px; gap: 0; }
.hig-toolbar__platter--inactive { background: var(--glass-inactive); box-shadow: 0 0 0 0.5px var(--separator); } /* kit Regular - Small - Inactive */
.hig-toolbar__item {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; padding: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-sizing: border-box; width: 36px; height: 36px; border-radius: var(--radius-capsule);
  background: transparent; color: inherit; font: 500 17px/22px var(--font-sans); letter-spacing: -0.43px; /* 17pt Medium (kit) */
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
/* 44pt minimum hit region around 36pt items (HIG); the visual stays at kit size. */
.hig-toolbar__item::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, var(--target-ios)); height: max(100%, var(--target-ios)); transform: translate(-50%, -50%);
}
.hig-toolbar__item--text { width: auto; padding: 0 8px; } /* + 4pt platter inset = label 12pt from the edge (kit Text 67×44) */
.hig-toolbar__item.is-selected { background: var(--accent); color: var(--on-accent); } /* kit Buttons - Symbol/Selected */
.hig-toolbar__item:disabled { color: var(--glass-label-tertiary); cursor: default; } /* kit Buttons - Symbol/Disabled */
.hig-toolbar__item .hig-icon { pointer-events: none; }
.hig-toolbar__platter--prominent .hig-toolbar__item { color: inherit; }
.hig-toolbar__platter--prominent .hig-toolbar__item:disabled { color: var(--glass-label-tertiary); }
.hig-toolbar__platter--inactive.hig-toolbar__platter--prominent { color: var(--glass-label-primary); } /* kit Inactive/Symbol 1 - Prominent */

/* Close button: 34pt circle, 20pt Medium xmark (kit Buttons/34pt/Close Button), inside a 44pt hit region. */
.hig-toolbar__platter--close { width: 34px; height: 34px; padding: 0; gap: 0; border-radius: 50%; }
.hig-toolbar__platter--close .hig-toolbar__item { width: 34px; height: 34px; font-size: 20px; line-height: 22px; }

/* 48pt platters for iPhone bottom toolbars and iPhone Duo side bars (kit Buttons/48pt): group padding 10/6 with
   36pt items 54pt apart; a single item is a 48pt circle holding a 40pt item. */
.hig-toolbar--items-48 .hig-toolbar__platter { height: 48px; padding: 6px 10px; gap: 18px; }
.hig-toolbar--items-48 .hig-toolbar__platter--single { padding: 4px; gap: 0; }
.hig-toolbar--items-48 .hig-toolbar__platter--single .hig-toolbar__item { width: 40px; height: 40px; }
.hig-toolbar--items-48 .hig-toolbar__platter--single .hig-toolbar__item--text { width: auto; padding: 0 9px; } /* label at 13pt (kit Text 69×48) */
.hig-toolbar--items-48 .hig-toolbar__platter--close { height: 34px; padding: 0; }

/* Search field platter: 180pt wide, magnifier 26pt box at 11pt, 17pt Regular text at 41pt (kit Search - Bottom). */
.hig-toolbar__search { width: 180px; padding: 0 11px; gap: 4px; color: var(--glass-label-secondary); cursor: text; }
.hig-toolbar__search--grow { flex: 1 1 auto; width: auto; min-width: 0; }
.hig-toolbar__search-glyph { display: inline-flex; justify-content: center; width: 26px; flex: none; font-size: 17px; }
.hig-toolbar__search input {
  appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--glass-label-primary); outline: none;
  font: 400 17px/22px var(--font-sans); letter-spacing: -0.43px;
}
.hig-toolbar__search input::placeholder { color: var(--glass-label-secondary); opacity: 1; }
.hig-toolbar__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hig-toolbar__search:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.hig-toolbar--items-48 .hig-toolbar__search { padding: 0 11px; }

/* Titles (kit Titles - iPhone / Titles - iPad). Single line: 17pt Semibold, 13pt from the top of the 44pt row. */
.hig-toolbar__title { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: var(--glass-label-primary); }
.hig-toolbar__title-text {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 17px/22px var(--font-sans); letter-spacing: -0.43px; /* ios-headline */
}
.hig-toolbar--ios .hig-toolbar__title--center, .hig-toolbar--ipad .hig-toolbar__title--center,
.hig-toolbar--ios .hig-toolbar__title--leading, .hig-toolbar--ipad .hig-toolbar__title--leading { margin-top: 13px; }
.hig-toolbar__subtitle {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 12px/16px var(--font-sans); letter-spacing: 0; color: var(--glass-label-secondary); /* 12pt Medium (kit) */
}
/* iPhone two-line title 46×39 at y=3: 15pt Semibold title at +2, 12pt Medium subtitle at +22 (kit Title and Subtitle). */
.hig-toolbar--ios .hig-toolbar__title--two-line { margin-top: 3px; }
.hig-toolbar--ios .hig-toolbar__title--two-line .hig-toolbar__title-text { padding-top: 2px; font-size: 15px; line-height: 20px; letter-spacing: -0.23px; }
/* iPad two-line title at y=4: 17pt Semibold title, 12pt Medium subtitle (kit Titles - iPad/Title and Subtitle). */
.hig-toolbar--ipad .hig-toolbar__title--two-line { margin-top: 4px; }
.hig-toolbar__title--leading { align-items: flex-start; text-align: start; }
.hig-toolbar--ios .hig-toolbar__title--leading.hig-toolbar__title--two-line { margin-top: 3.5px; }

/* iPad: a center group (the tab bar) moves the title to a second row at y=65 (kit iPad/Tab Bar/Default Title, 98pt). */
.hig-toolbar__title-row { display: flex; justify-content: center; padding: 21px 0 1px; }
.hig-toolbar .hig-toolbar__title-row .hig-toolbar__title { margin-top: 0; }
.hig-toolbar__title-row:has(.hig-toolbar__title--two-line) { padding-top: 14px; margin-bottom: -8px; } /* two-line block at y=58 */

/* Large title: 34pt Bold at x=16, y=54 (iPhone 402×105) / x=30, y=54 (iPad 1210×102); subtitle 15pt Medium. */
.hig-toolbar__large { display: flex; flex-direction: column; padding-top: 10px; min-width: 0; color: var(--glass-label-primary); }
.hig-toolbar--ipad .hig-toolbar__large { padding-inline-start: 10px; margin-bottom: -3px; }
.hig-toolbar--ipad .hig-toolbar__large:has(.hig-toolbar__large-subtitle) { margin-bottom: 0; }
.hig-toolbar__large-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 34px/41px var(--font-sans); letter-spacing: 0.4px; /* ios-large-title-emphasized */
}
.hig-toolbar__large-subtitle {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 15px/20px var(--font-sans); letter-spacing: -0.23px; color: var(--glass-label-secondary); /* 15pt Medium (kit) */
}

/* ---- iPhone Duo side toolbar: 84pt bar, 48pt platters 12pt from the content side and 24pt from the screen
   edge, starting 24pt down; groups 12pt apart (kit Examples/Toolbar/iPhone Duo, Vertical Group - Symbol 2/3). */
.hig-toolbar--vertical { width: 84px; padding: 24px 24px 24px 12px; padding-inline: 12px 24px; }
.hig-toolbar--vertical .hig-toolbar__row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--padding-bezeled); min-height: 0; }
.hig-toolbar--vertical .hig-toolbar__side { flex-direction: column; align-items: flex-start; }
.hig-toolbar--vertical .hig-toolbar__platter { flex-direction: column; width: 48px; height: auto; padding: 10px 6px; gap: 18px; }
.hig-toolbar--vertical .hig-toolbar__platter--single { height: 48px; padding: 4px; gap: 0; }
.hig-toolbar--vertical .hig-toolbar__platter--close { width: 34px; height: 34px; padding: 0; margin-inline-start: 7px; }

/* ---- macOS unified title bar and toolbar: 52pt bar, 36pt items at y=8, 8pt from the edges and between
   groups (kit Windows/Unified Toolbar + Title); compact 40pt bar, 24pt items, 12pt between groups. ---- */
.hig-toolbar--mac { height: 52px; padding: 8px; color: var(--glass-label-primary); }
.hig-toolbar--mac .hig-toolbar__row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.hig-toolbar--mac .hig-toolbar__side { gap: 8px; }
.hig-toolbar--mac .hig-toolbar__side--leading { flex: 1 1 auto; }
.hig-toolbar--mac .hig-toolbar__side--trailing { flex: none; }
.hig-toolbar--mac .hig-toolbar__middle { flex: none; gap: 8px; }
/* XL group: 4pt inset, 28pt items 37pt apart, 13pt Medium symbols (kit XL/Buttons/Active/1–6). */
.hig-toolbar--mac .hig-toolbar__platter { height: 36px; padding: 4px; gap: 9px; }
.hig-toolbar--mac .hig-toolbar__item { width: 28px; height: 28px; font-size: 13px; line-height: 15px; letter-spacing: 0; }
.hig-toolbar--mac .hig-toolbar__item::before { width: max(100%, var(--target-mac)); height: max(100%, var(--target-mac)); }
.hig-toolbar--mac .hig-toolbar__item--text { width: auto; padding: 0 8px; }
.hig-toolbar--mac .hig-toolbar__item.is-selected { background: var(--mac-fill-secondary); color: inherit; } /* kit Button Group Buttons/2 - Selected */
.hig-toolbar--mac .hig-toolbar__platter--close { width: 28px; height: 28px; }
.hig-toolbar--mac .hig-toolbar__platter--close .hig-toolbar__item { width: 28px; height: 28px; font-size: 13px; }
/* XL search field 159pt: magnifier 16pt box at 10pt, 13pt Medium text at 32pt (kit XL/Search/Active/Placeholder). */
.hig-toolbar--mac .hig-toolbar__search { width: 159px; padding: 0 10px; gap: 6px; }
.hig-toolbar--mac .hig-toolbar__search-glyph { width: 16px; font-size: 13px; }
.hig-toolbar--mac .hig-toolbar__search input { font: 500 13px/16px var(--font-sans); letter-spacing: 0; }

.hig-toolbar--mac.hig-toolbar--compact { height: 40px; }
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__row,
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__side,
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__middle { gap: 12px; min-height: 24px; }
/* Medium group: 2pt inset, 20pt items 24pt apart, 10pt Semibold symbols (kit Medium/Buttons/Active/1–6). */
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__platter { height: 24px; padding: 2px; gap: 4px; }
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__item { width: 20px; height: 20px; font-size: 10px; line-height: 12px; }
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__item--text { width: auto; padding: 0 6px; font-size: 13px; line-height: 16px; }
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__platter--close,
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__platter--close .hig-toolbar__item { width: 20px; height: 20px; font-size: 10px; }
/* Medium search 149pt: magnifier at 6pt, text at 26pt (kit Medium/Search/Active/Placeholder). */
.hig-toolbar--mac.hig-toolbar--compact .hig-toolbar__search { width: 149px; padding: 0 6px; gap: 4px; }

/* Window title: 13pt Bold (15pt Bold with a sidebar), 11pt Medium tertiary subtitle at +17 (kit Window/Title). */
.hig-toolbar--mac .hig-toolbar__title { align-items: flex-start; text-align: start; flex: 0 1 auto; color: var(--mac-label-primary); }
.hig-toolbar--mac .hig-toolbar__title-text { font: 700 13px/15px var(--font-sans); letter-spacing: 0; }
.hig-toolbar--mac.hig-toolbar--with-sidebar .hig-toolbar__title-text { font-size: 15px; letter-spacing: -0.2px; }
.hig-toolbar--mac .hig-toolbar__subtitle { margin-top: 2px; font: 500 11px/13px var(--font-sans); letter-spacing: 0; color: var(--mac-label-tertiary); }

/* Window controls: three 14pt circles 23pt apart at x=18 (unified) / x=13 (compact) (kit Titlebars/Window Controls). */
.hig-toolbar__window-controls { display: inline-flex; align-items: center; gap: 9px; flex: none; margin-inline-start: 10px; }
.hig-toolbar--compact .hig-toolbar__window-controls { margin-inline-start: 5px; }
.hig-toolbar__window-controls > span { width: 14px; height: 14px; border-radius: 50%; background: var(--system-red); }
.hig-toolbar__window-controls > span:nth-child(2) { background: var(--system-yellow); }
.hig-toolbar__window-controls > span:nth-child(3) { background: var(--system-green); }
.hig-toolbar--inactive .hig-toolbar__window-controls > span { background: var(--mac-fill-primary); }
.hig-toolbar--inactive .hig-toolbar__title { color: var(--mac-label-secondary); }

@media (prefers-reduced-motion: reduce) { .hig-toolbar * { transition: none !important; } }

/* A growing search field (iPhone bottom toolbar search) turns the row into a flex row (kit Bottom/Search + Leading Item). */
.hig-toolbar__row:has(.hig-toolbar__search--grow) { display: flex; }
.hig-toolbar__side:has(.hig-toolbar__search--grow) { flex: 1 1 auto; }
.hig-toolbar__row:has(.hig-toolbar__search--grow) > .hig-toolbar__middle:empty { display: none; }

/* ---- Box ---- */
/* Box — HIG Boxes; macOS geometry from the macOS 27 kit Group Boxes and Forms pages. */
.hig-box { box-sizing: border-box; min-width: 0; }

/* ---- iOS / iPadOS: "use the secondary and tertiary background colors in boxes" (HIG).
   Corners: radius-group (kit inset grouped list sections). Padding: margin-compact (kit content inset 16pt). */
.hig-box--ios {
  border-radius: var(--radius-group);
  padding: var(--margin-compact);
  color: var(--label-primary);
}
.hig-box--secondary { background: var(--background-secondary); }
.hig-box--tertiary { background: var(--background-tertiary); }
/* Title inside the box, then 10pt to the content (kit Lists/Header/Nested: 10pt below the header text). */
.hig-box--ios > .hig-box__title { color: var(--label-primary); margin: 0 0 10px; }

/* ---- macOS: title above the box (HIG). Kit Group Boxes: 12pt corners (radius-mac-menu), Fills/4 Quaternary.
   Content inset 10pt horizontally and 12pt vertically (kit Forms: rows inset 10pt; row content 12pt from the top). */
.hig-box--mac { color: var(--mac-label-primary); }
.hig-box--mac > .hig-box__content {
  border-radius: var(--radius-mac-menu);
  background: var(--mac-fill-quaternary);
  padding: 12px 10px;
}
/* Title aligned with the content inset (10pt, kit Forms). The 6px gap to the box is not in the kit or HIG. */
.hig-box--mac > .hig-box__title { color: var(--mac-label-primary); margin: 0 10px 6px; }

/* ---- Label ---- */
/* Label — the four system label colors (HIG Labels table) and the symbol + title arrangement of the kits.
   Type metrics come from the compiled type-style class passed as textStyle (e.g. .ios-body); nothing here sets
   font size, so the class decides. */
.hig-label {
  display: inline-flex; align-items: flex-start; max-width: 100%; vertical-align: top;
  /* Native labels are not selectable unless the app enables it (HIG: make *useful* label text selectable). */
  -webkit-user-select: none; user-select: none;
}
.hig-label--selectable { -webkit-user-select: text; user-select: text; cursor: text; }
.hig-label__title { min-width: 0; overflow-wrap: anywhere; }

/* Label colors: label / secondaryLabel / tertiaryLabel / quaternaryLabel (iOS, iPadOS, tvOS, visionOS) */
.hig-label--ios.hig-label--primary { color: var(--label-primary); }
.hig-label--ios.hig-label--secondary { color: var(--label-secondary); }
.hig-label--ios.hig-label--tertiary { color: var(--label-tertiary); }
.hig-label--ios.hig-label--quaternary { color: var(--label-quaternary); }
/* labelColor / secondaryLabelColor / tertiaryLabelColor / quaternaryLabelColor (macOS) */
.hig-label--mac.hig-label--primary { color: var(--mac-label-primary); }
.hig-label--mac.hig-label--secondary { color: var(--mac-label-secondary); }
.hig-label--mac.hig-label--tertiary { color: var(--mac-label-tertiary); }
.hig-label--mac.hig-label--quaternary { color: var(--mac-label-quaternary); }

/* The symbol sits on the first line: its box is one line of the text style tall (1lh). */
.hig-label__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  height: 1.3em; height: 1lh;
}
.hig-label__icon > svg, .hig-label__icon > img { width: 1.3em; height: 1.3em; width: 1lh; height: 1lh; display: block; }

/* iOS: kit Sidebar Items/Leading/Symbols — a 34pt symbol column at 17pt text, title 4pt after it (x=38),
   symbol in the accent color. Expressed in em so other text styles scale the same proportions. */
.hig-label--ios .hig-label__icon { width: calc(34em / 17); margin-inline-end: calc(4em / 17); color: var(--accent); }
/* macOS: kit Forms "Title + Symbol" row — a 20pt symbol box at 13pt text, title at x=30 (10pt gap),
   symbol in Labels Vibrant Secondary. */
.hig-label--mac .hig-label__icon { width: calc(20em / 13); margin-inline-end: calc(10em / 13); color: var(--mac-label-secondary); }

/* Dimmed levels dim the symbol with the title unless iconColor overrides it. */
.hig-label--secondary .hig-label__icon,
.hig-label--tertiary .hig-label__icon,
.hig-label--quaternary .hig-label__icon { color: inherit; }

/* Icon-only: the symbol keeps its glyph size without the title column. */
.hig-label--icon-only .hig-label__icon { width: auto; margin-inline-end: 0; }

/* ---- ScrollView ---- */
/* ScrollView — scroll edge effects from the iOS 27 / macOS 27 kits (Scroll Edge Effect/Top - Hard, Top - Soft) and
   the macOS 27 kit Scrollbars (6pt capsule knob, 3pt inset, in a 12pt track). */
.hig-scroll-view {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-sizing: border-box;
  --hig-sv-ground: var(--background-primary); /* kit iOS: Backgrounds/Primary */
  --hig-sv-hard-alpha: 85%;                   /* kit Top - Hard: color layer at 85% (light) */
  --hig-sv-line: color-mix(in srgb, var(--label-primary) 5%, transparent);  /* kit: 0.67pt edge, black 5% */
  --hig-sv-knob: color-mix(in srgb, var(--label-primary) 50%, transparent); /* kit Scrollbars/Light: black 50% */
}
.hig-scroll-view--mac { --hig-sv-ground: var(--mac-window-background); } /* kit macOS: Window Backgrounds */
[data-theme^="dark"] .hig-scroll-view {
  --hig-sv-hard-alpha: 55%; /* kit Dark/Top - Hard: 55% */
  --hig-sv-line: color-mix(in srgb, var(--label-primary) 10%, transparent);  /* kit dark: white 10% */
  --hig-sv-knob: color-mix(in srgb, var(--label-primary) 55%, transparent);  /* kit Scrollbars/Dark: white 55% */
}
.hig-scroll-view__viewport {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; outline: none;
}
.hig-scroll-view__viewport.hig-focus:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.hig-scroll-view__content { padding-top: var(--hig-sv-top); padding-bottom: var(--hig-sv-bottom); box-sizing: border-box; min-height: 100%; }

/* The native bar is replaced by the kit knob (6pt capsule, 3pt inset, 12pt track) drawn between the bars' insets.
   iOS shows it only while scrolling; macOS keeps it visible. */
.hig-scroll-view__viewport { scrollbar-width: none; }
.hig-scroll-view__viewport::-webkit-scrollbar { display: none; }
.hig-scroll-view__indicator {
  position: absolute; right: 0; width: 12px; top: calc(var(--hig-sv-top) + 3px); bottom: calc(var(--hig-sv-bottom) + 3px);
  pointer-events: none; z-index: 3; opacity: 0; transition: opacity 300ms ease-out;
}
.hig-scroll-view__indicator.is-visible { opacity: 1; transition-duration: 0ms; }
.hig-scroll-view__thumb {
  position: absolute; left: 3px; top: 0; width: 6px; border-radius: var(--radius-capsule); background: var(--hig-sv-knob);
  touch-action: none;
}
.hig-scroll-view__indicator.is-visible .hig-scroll-view__thumb { pointer-events: auto; }
/* a wider grab region around the 6pt knob (kit track width) */
.hig-scroll-view__thumb::before { content: ""; position: absolute; top: 0; bottom: 0; left: -3px; right: -3px; }

/* ---- scroll edge effects: present only while content scrolls beneath the bar ---- */
.hig-scroll-view__edge {
  position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; box-sizing: border-box;
  opacity: 0; transition: opacity 150ms linear;
}
.hig-scroll-view__edge.is-active { opacity: 1; }
.hig-scroll-view__edge--top { top: 0; height: var(--hig-sv-top); }
.hig-scroll-view__edge--bottom { bottom: 0; height: var(--hig-sv-bottom); }
/* hard: a more opaque blur (6pt) over the ground color with a defined edge */
.hig-scroll-view--hard .hig-scroll-view__edge {
  background: color-mix(in srgb, var(--hig-sv-ground) var(--hig-sv-hard-alpha), transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); /* kit Blur layer: background blur r6 */
}
.hig-scroll-view--hard .hig-scroll-view__edge--top { border-bottom: 0.6666px solid var(--hig-sv-line); }
.hig-scroll-view--hard .hig-scroll-view__edge--bottom { border-top: 0.6666px solid var(--hig-sv-line); }
/* soft: a variable blur — a strong blur masked by a gradient from 60% at the screen edge to clear at the bar's far edge */
.hig-scroll-view--soft .hig-scroll-view__edge {
  -webkit-backdrop-filter: blur(100px); backdrop-filter: blur(100px); /* kit Blur layer: background blur r100 */
  /* A 100pt blur averages the content into the ground color; filling with the ground reproduces that average where a
     browser leaves the strip's edges unblurred (Chromium fades backdrop blur out near element edges). */
  background: var(--hig-sv-ground);
}
.hig-scroll-view--soft .hig-scroll-view__edge--top {
  -webkit-mask-image: linear-gradient(to bottom, color-mix(in srgb, var(--label-primary) 60%, transparent), transparent);
  mask-image: linear-gradient(to bottom, color-mix(in srgb, var(--label-primary) 60%, transparent), transparent); /* kit Gradient Mask at 60%; mask uses alpha only */
}
.hig-scroll-view--soft .hig-scroll-view__edge--bottom {
  -webkit-mask-image: linear-gradient(to top, color-mix(in srgb, var(--label-primary) 60%, transparent), transparent);
  mask-image: linear-gradient(to top, color-mix(in srgb, var(--label-primary) 60%, transparent), transparent);
}

/* floating bars the consumer places over the edges; empty bar areas let scrolling through */
.hig-scroll-view__bar { position: absolute; left: 0; right: 0; z-index: 2; display: flex; align-items: center; box-sizing: border-box; pointer-events: none; }
.hig-scroll-view__bar > * { pointer-events: auto; }
.hig-scroll-view__bar--top { top: 0; height: var(--hig-sv-top); }
.hig-scroll-view__bar--bottom { bottom: 0; height: var(--hig-sv-bottom); }

@media (prefers-reduced-motion: reduce) {
  .hig-scroll-view__edge, .hig-scroll-view__indicator { transition: none; }
}

