/* MaiAgent UI System v26.2.0（@playma-co-ltd/design-system）——由 scripts/sync-design-system.mjs 產生，不要手改 */

:root {
  color-scheme: light;
  --c-brand-blue:  #3854D8;
  --c-brand-green: #00DC87;
  --c-blue-50:  #EEF0FC;
  --c-blue-100: #D9DEF7;
  --c-blue-200: #B2BDF0;
  --c-blue-300: #8495E7;
  --c-blue-400: #5970DE;
  --c-blue-500: #3854D8;
  --c-blue-600: #2641C0;
  --c-blue-700: #1F359E;
  --c-blue-800: #182A7B;
  --c-blue-900: #13205E;
  --c-neutral-0:   #FFFFFF;
  --c-neutral-100: #F1F1F1;
  --c-neutral-200: #E4E4E4;
  --c-neutral-300: #D9D9D9;
  --c-neutral-400: #BEBEBE;
  --c-neutral-500: #999999;
  --c-neutral-600: #808080;
  --c-neutral-700: #666666;
  --c-neutral-800: #4D4D4D;
  --c-neutral-900: #1A1A1A;
  --c-ink-4:   rgb(0 0 0 / 4%);
  --c-ink-6:   rgb(0 0 0 / 6%);
  --c-ink-35:  rgb(0 0 0 / 35%);
  --c-ink-45:  rgb(0 0 0 / 45%);
  --c-ink-65:  rgb(0 0 0 / 65%);
  --c-ink-100: #000000;
  --c-ink-inverse-8:  rgb(255 255 255 / 8%);
  --c-ink-inverse-12: rgb(255 255 255 / 12%);
  --c-success-100: #E8FCF7;
  --c-success-300: #A3F5DF;
  --c-success-700: #228D6D;
  --c-notice-100: #FEF2E6;
  --c-notice-300: #FDDBB9;
  --c-notice-700: #E37200;
  --c-warning-100: #FEEDEC;
  --c-warning-300: #F7BFBA;
  --c-warning-700: #D93526;
  --color-text-primary:     var(--c-neutral-900);
  --color-text-secondary:   var(--c-neutral-800);
  --color-text-tertiary:    var(--c-neutral-600);
  --color-text-placeholder: var(--c-neutral-500);
  --color-text-disabled:    var(--c-neutral-400);
  --color-text-on-accent:   var(--c-neutral-0);
  --color-text-link:        var(--c-brand-blue);
  --color-text-accent:      var(--c-brand-blue);
  --color-text-selected:    var(--c-blue-600);
  --color-text-btn-primary: var(--color-text-accent);
  --color-bg-page:     var(--c-neutral-0);
  --color-bg-canvas:   var(--c-neutral-100);
  --color-bg-subtle:   var(--c-neutral-100);
  --color-bg-hover:    var(--c-neutral-200);
  --color-bg-selected: var(--c-blue-50);
  --color-bg-selected-hover: var(--c-blue-100);
  --color-bg-selected-glass:       color-mix(in srgb, var(--c-blue-200) 30%, transparent);
  --color-bg-selected-glass-hover: color-mix(in srgb, var(--c-blue-200) 40%, transparent);
  --color-bg-item-hover: var(--c-ink-4);
  --color-bg-item-press: var(--c-ink-6);
  --color-bg-glass: color-mix(in srgb, var(--color-bg-page) 30%, transparent);
  --color-bg-panel: color-mix(in srgb, var(--color-bg-subtle) 60%, transparent);
  --color-bg-sheen: var(--c-ink-4);
  --color-border-faint:  var(--c-neutral-200);
  --color-border-subtle: var(--c-neutral-300);
  --color-border-overlay: transparent;
  --color-fill-control:  var(--c-neutral-400);
  --color-scrollbar:       var(--c-neutral-300);
  --color-scrollbar-hover: var(--c-neutral-500);
  --color-grip:        var(--c-neutral-300);
  --color-grip-active: var(--c-neutral-500);
  --color-chart-1: var(--c-brand-blue);
  --color-chart-2: #0BBB81;
  --color-chart-3: #824ACA;
  --color-chart-4: #04C1D0;
  --color-chart-5: #078661;
  --color-chart-6: #95419A;
  --color-chart-7: #359BD9;
  --color-chart-8: var(--c-neutral-600);
  --color-zone-work:  var(--color-chart-1);
  --color-zone-build: var(--color-chart-2);
  --color-zone-admin: var(--color-chart-8);
  --color-zone-work-text:  var(--color-chart-1);
  --color-zone-build-text: color-mix(in srgb, var(--color-chart-2), var(--color-text-primary) 45%);
  --color-zone-admin-text: color-mix(in srgb, var(--color-chart-8), var(--color-text-primary) 30%);
  --color-scrollbar-press: var(--c-neutral-700);
  --color-action-primary:    var(--c-brand-blue);
  --color-action-hover:      var(--c-blue-600);
  --color-action-press:     var(--c-blue-700);
  --color-action-fill-hover: var(--c-blue-600);
  --color-action-fill-press: var(--c-blue-700);
  --color-action-subtle:     var(--c-blue-50);
  --color-action-focus-ring: var(--c-blue-100);
  --color-brand-blue:  var(--c-brand-blue);
  --color-brand-green: var(--c-brand-green);
  --color-success-text:   var(--c-success-700);
  --color-success-bg:     var(--c-success-100);
  --color-success-border: var(--c-success-300);
  --color-success-solid:  var(--c-success-700);
  --color-notice-text:   var(--c-notice-700);
  --color-notice-bg:     var(--c-notice-100);
  --color-notice-border: var(--c-notice-300);
  --color-notice-solid:  var(--c-notice-700);
  --color-warning-text:   var(--c-warning-700);
  --color-warning-bg:     var(--c-warning-100);
  --color-warning-border: var(--c-warning-300);
  --color-warning-solid:  var(--c-warning-700);
  --color-info-text:   var(--c-blue-700);
  --color-info-bg:     var(--c-blue-50);
  --color-info-border: var(--c-blue-200);
  --color-info-solid:  var(--c-brand-blue);
  --color-info-text-strong: var(--color-info-text);
  --color-info-icon:        var(--color-info-solid);
  --color-scrim: var(--c-ink-45);
  --color-shadow-selected-highlight:       rgb(255 255 255 / 70%);
  --color-shadow-selected-highlight-hover: rgb(255 255 255 / 70%);
  --color-shadow-selected-shade:           rgb(0 0 0 / 10%);
  --color-shadow-selected-shade-hover:     rgb(0 0 0 / 10%);
  --color-shadow-glass-edge:        rgb(255 255 255 / 90%);
  --color-shadow-glass-edge-return: rgb(255 255 255 / 55%);
  --color-shadow-glass-glow:        rgb(255 255 255 / 40%);
  --color-shadow-glass-hairline:    rgb(0 0 0 / 8%);
  --color-shadow-glass-drop:        rgb(0 0 0 / 28%);
  --color-shadow-panel:             rgb(0 0 0 / 16%);
  --color-shadow-panel-highlight:   rgb(255 255 255 / 70%);
  --color-shadow-panel-rim:         color-mix(in srgb, var(--color-text-primary) 6%, transparent);
  --color-shadow-control-highlight: rgb(255 255 255 / 50%);
  --color-shadow-control-rim:       rgb(0 0 0 / 14%);
  --color-shadow-control-glow:      color-mix(in srgb, var(--color-action-primary) 35%, transparent);
  --color-glass-sheen:              rgb(255 255 255 / 32%);
  --color-shadow-btn-primary:       rgb(0 0 0 / 4%);
  --color-shadow-btn-primary-press: rgb(0 0 0 / 6%);
  --color-glass-rim:                rgb(255 255 255 / 95%);
  --color-glass-rim-mid:            rgb(255 255 255 / 45%);
  --color-glass-rim-return:         rgb(255 255 255 / 75%);
  --color-shadow-edge: color-mix(in srgb, var(--c-neutral-900) 14%, transparent);
}
[data-brand] {
  --color-action-primary:    var(--brand, var(--c-brand-blue));
  --color-text-accent:       var(--brand, var(--c-brand-blue));
  --color-text-selected:     color-mix(in srgb, var(--brand, var(--c-brand-blue)) 88%, var(--c-neutral-900));
  --color-text-btn-primary:  var(--brand, var(--c-brand-blue));
  --color-shadow-control-glow: color-mix(in srgb, var(--brand, var(--c-brand-blue)) 35%, transparent);
  --color-action-hover:      color-mix(in srgb, var(--brand, var(--c-brand-blue)) 88%, var(--c-neutral-900));
  --color-action-press:      color-mix(in srgb, var(--brand, var(--c-brand-blue)) 76%, var(--c-neutral-900));
  --color-action-fill-hover: color-mix(in srgb, var(--brand, var(--c-brand-blue)) 88%, var(--c-neutral-900));
  --color-action-fill-press: color-mix(in srgb, var(--brand, var(--c-brand-blue)) 76%, var(--c-neutral-900));
  --color-action-subtle:     color-mix(in srgb, var(--brand, var(--c-brand-blue)) 10%, var(--c-neutral-0));
  --color-action-focus-ring: color-mix(in srgb, var(--brand, var(--c-brand-blue)) 30%, var(--c-neutral-0));
  --color-text-on-accent:    var(--brand-on, var(--c-neutral-0));
}
[data-theme='dark'] {
  color-scheme: dark;
  --color-text-primary:     var(--c-neutral-100);
  --color-text-secondary:   var(--c-neutral-400);
  --color-text-tertiary:    var(--c-neutral-500);
  --color-text-placeholder: var(--c-neutral-600);
  --color-text-disabled:    var(--c-neutral-700);
  --color-text-link:        var(--c-blue-300);
  --color-text-accent:      var(--c-blue-300);
  --color-text-selected:    var(--c-blue-200);
  --color-text-btn-primary: var(--c-blue-200);
  --color-bg-page:     var(--c-neutral-900);
  --color-bg-canvas:   var(--c-neutral-900);
  --color-bg-subtle:   color-mix(in srgb, var(--c-neutral-900), var(--c-neutral-0) 6%);
  --color-bg-hover:    color-mix(in srgb, var(--c-neutral-900), var(--c-neutral-0) 12%);
  --color-bg-selected: color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 20%);
  --color-bg-selected-hover: color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 28%);
  --color-bg-selected-glass:       color-mix(in srgb, var(--c-brand-blue) 30%, transparent);
  --color-bg-selected-glass-hover: color-mix(in srgb, var(--c-brand-blue) 30%, transparent);
  --color-bg-item-hover: var(--c-ink-inverse-8);
  --color-bg-item-press: var(--c-ink-inverse-12);
  --color-bg-glass: color-mix(in srgb, var(--color-bg-page) 30%, transparent);
  --color-bg-panel: color-mix(in srgb, var(--c-neutral-0) 5%, transparent);
  --color-zone-work:  var(--color-chart-1);
  --color-zone-build: var(--color-chart-2);
  --color-zone-admin: var(--color-chart-8);
  --color-zone-work-text:  color-mix(in srgb, var(--color-chart-1), var(--color-text-primary) 30%);
  --color-zone-build-text: color-mix(in srgb, var(--color-chart-2), var(--color-text-primary) 30%);
  --color-zone-admin-text: color-mix(in srgb, var(--color-chart-8), var(--color-text-primary) 30%);
  --color-bg-sheen:    var(--c-ink-inverse-8);
  --color-border-faint:  var(--c-ink-inverse-8);
  --color-border-subtle: var(--c-neutral-800);
  --color-border-overlay: var(--c-ink-inverse-8);
  --color-fill-control:  var(--c-neutral-700);
  --color-scrollbar:       var(--c-neutral-700);
  --color-scrollbar-hover: var(--c-neutral-500);
  --color-grip:        var(--c-neutral-700);
  --color-grip-active: var(--c-neutral-500);
  --color-chart-1: #5B7DEB;
  --color-chart-2: #06B079;
  --color-chart-3: #8B5DCE;
  --color-chart-4: #05A5B3;
  --color-chart-5: #067F5C;
  --color-chart-6: #994B9E;
  --color-chart-7: #2D95D3;
  --color-scrollbar-press: var(--c-neutral-300);
  --color-action-primary:    var(--c-brand-blue);
  --color-action-hover:      var(--c-blue-400);
  --color-action-press:     var(--c-blue-300);
  --color-action-fill-hover: var(--c-blue-600);
  --color-action-fill-press: var(--c-blue-700);
  --color-action-subtle:     color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 24%);
  --color-action-focus-ring: var(--c-blue-500);
  --color-success-text:   var(--c-success-300);
  --color-success-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-success-700) 24%);
  --color-success-border: var(--c-success-700);
  --color-notice-text:   var(--c-notice-300);
  --color-notice-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-notice-700) 24%);
  --color-notice-border: var(--c-notice-700);
  --color-warning-text:   var(--c-warning-300);
  --color-warning-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-warning-700) 24%);
  --color-warning-border: var(--c-warning-700);
  --color-info-text:   var(--c-blue-300);
  --color-info-text-strong: var(--c-blue-200);
  --color-info-icon:        var(--c-blue-300);
  --color-info-bg:     color-mix(in srgb, var(--c-neutral-900), var(--c-brand-blue) 24%);
  --color-info-border: var(--c-blue-700);
  --color-scrim: var(--c-ink-65);
  --color-shadow-edge: color-mix(in srgb, var(--c-neutral-0) 14%, transparent);
  --color-shadow-selected-highlight:       rgb(255 255 255 / 8%);
  --color-shadow-selected-highlight-hover: rgb(255 255 255 / 18%);
  --color-shadow-selected-shade:           rgb(0 0 0 / 40%);
  --color-shadow-selected-shade-hover:     rgb(0 0 0 / 55%);
  --color-shadow-glass-edge:        rgb(255 255 255 / 22%);
  --color-shadow-glass-edge-return: rgb(255 255 255 / 10%);
  --color-shadow-glass-glow:        rgb(255 255 255 / 5%);
  --color-shadow-glass-hairline:    rgb(0 0 0 / 60%);
  --color-shadow-glass-drop:        rgb(0 0 0 / 60%);
  --color-shadow-panel:             rgb(0 0 0 / 20%);
  --color-shadow-panel-highlight:   transparent;
  --color-shadow-panel-rim:         rgb(255 255 255 / 7%);
  --color-glass-sheen:              rgb(255 255 255 / 8%);
  --color-shadow-btn-primary:       rgb(0 0 0 / 30%);
  --color-shadow-btn-primary-press: rgb(0 0 0 / 25%);
  --color-glass-rim:                rgb(255 255 255 / 28%);
  --color-glass-rim-mid:            rgb(255 255 255 / 10%);
  --color-glass-rim-return:         rgb(255 255 255 / 18%);
  --color-shadow-control-highlight: rgb(255 255 255 / 28%);
  --color-shadow-control-rim:       rgb(0 0 0 / 30%);
  --color-shadow-control-glow:      rgb(0 0 0 / 50%);
}
:root {
  --space-1:  4px;
  --space-2:  8px;
  --space-4:  16px;
  --space-8:  32px;
  --space-16: 64px;
  --space-xs:  var(--space-1);
  --space-sm:  var(--space-2);
  --space-lg:  var(--space-4);
  --space-xl:  var(--space-8);
  --space-2xl: var(--space-16);
  --space-6: 24px;
}
:root {
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-4: 16px;
  --radius-8: 32px;
  --radius-sm:   var(--radius-1);
  --radius-md:   var(--radius-2);
  --radius-lg:   var(--radius-4);
  --radius-xl:   var(--radius-8);
  --radius-full: 9999px;
  --radius-surface: 24px;
}
:root {
  --shadow-sm: 0 0 8px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 0 0 1px var(--color-border-overlay), 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 16px rgba(0, 0, 0, 0.15);
  --shadow-halo: 0 0 20px rgba(0, 0, 0, 0.05);
  --shadow-focus-ring: 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-inset: inset 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-error: 0 0 4px 2px var(--color-warning-border);
  --shadow-selected:       inset 0 1px 0 var(--color-shadow-selected-highlight), 0 2px 3px -2px var(--color-shadow-selected-shade);
  --shadow-selected-hover: inset 0 1px 0 var(--color-shadow-selected-highlight-hover), 0 3px 4px -3px var(--color-shadow-selected-shade-hover);
  --shadow-glass-edge: inset 1px 1px 0 var(--color-shadow-glass-edge), inset -1px -1px 0 var(--color-shadow-glass-edge-return), inset 0 0 18px var(--color-shadow-glass-glow);
  --shadow-glass-drop: 0 0 0 0.5px var(--color-shadow-glass-hairline), 0 14px 36px -12px var(--color-shadow-glass-drop);
  --shadow-glass-glow: inset 0 0 18px var(--color-shadow-glass-glow);
  --shadow-glass-lift: 0 14px 36px -12px var(--color-shadow-glass-drop);
  --shadow-panel: 0 0 8px var(--color-shadow-panel);
  --shadow-panel-edge: inset 0 1px 0 var(--color-shadow-panel-highlight), 0 0 0 1px var(--color-shadow-panel-rim);
  --shadow-overlay: 0 0 0 0.5px rgba(0, 0, 0, 0.10), 0 8px 18px -8px rgba(0, 0, 0, 0.25), 0 24px 56px -12px rgba(0, 0, 0, 0.45);
  --backdrop-glass:       blur(16px) saturate(1.9);
  --backdrop-glass-heavy: blur(36px) saturate(1.9);
  --backdrop-scrim:       blur(4px);
  --gradient-control-on:       linear-gradient(180deg, color-mix(in srgb, var(--color-action-primary), var(--c-neutral-0) 30%), var(--color-action-primary) 40%);
  --gradient-control-on-hover: linear-gradient(180deg, color-mix(in srgb, var(--color-action-hover), var(--c-neutral-0) 30%), var(--color-action-hover) 40%);
  --gradient-control-on-press: linear-gradient(180deg, color-mix(in srgb, var(--color-action-press), var(--c-neutral-0) 18%), var(--color-action-press) 40%);
  --shadow-control-gloss: inset 0 1px 0 var(--color-shadow-control-highlight), inset 0 -1px 1px var(--color-shadow-control-rim), 0 1px 3px var(--color-shadow-control-glow);
  --gradient-control-thumb: radial-gradient(circle at 30% 24%, var(--c-neutral-0) 0 22%, rgb(255 255 255 / 0) 58%), linear-gradient(160deg, var(--c-neutral-0) 0%, var(--c-neutral-0) 35%, color-mix(in srgb, var(--c-neutral-0), var(--c-blue-200) 25%) 100%);
  --shadow-control-thumb: inset 0 1px 0 var(--c-neutral-0), inset 0 -2px 3px rgb(0 0 0 / 7%), inset 0 0 0 1px rgb(255 255 255 / 60%), 0 0 0 0.5px rgb(0 0 0 / 8%), 0 3px 8px -3px rgb(0 0 0 / 28%);
  --shadow-control-thumb-lift: inset 0 1px 0 var(--c-neutral-0), inset 0 -2px 3px rgb(0 0 0 / 7%), inset 0 0 0 1px rgb(255 255 255 / 60%), 0 0 0 0.5px rgb(0 0 0 / 8%), 0 5px 12px -4px rgb(0 0 0 / 28%);
  --gradient-glass-sheen: linear-gradient(150deg, var(--color-glass-sheen), transparent 42%);
  --gradient-glass-rim: linear-gradient(135deg, var(--color-glass-rim), var(--color-glass-rim-mid) 40% 65%, var(--color-glass-rim-return));
  --gradient-loader: conic-gradient(from 0deg, transparent 0 35%, color-mix(in srgb, currentColor 30%, transparent) 60%, currentColor 92%, transparent 100%);
  --mask-loader-ring: radial-gradient(farthest-side, transparent 72%, black 76%);
  --tint-primary-from: 5%;
  --tint-primary-from-hover: 7%;
  --tint-primary-from-press: 9%;
  --tint-primary-to: 10%;
  --tint-primary-to-hover: 12%;
  --tint-primary-to-press: 14%;
  --tint-primary-border: 32%;
  --tint-primary-border-hover: 46%;
  --tint-primary-border-press: 60%;
  --tint-primary-glow: 0%;
  --tint-primary-glow-hover: 0%;
  --tint-primary-glow-press: 0%;
  --tint-primary-mesh: 0.6;
  --tint-primary-mesh-hover: 0.48;
  --tint-primary-mesh-press: 0.38;
  --tint-seg-hover: 6%;
  --tint-seg-press: 10%;
  --tint-semantic-from: 6%;
  --tint-semantic-to: 12%;
  --tint-semantic-border: 35%;
  --tint-tag-from: 2%;
  --tint-tag-to: 4%;
  --tint-tag-mesh: 0;
  --tint-zone-from: 6%;
  --tint-zone-to: 12%;
  --duration-fast: 0.12s;
  --duration-md:   0.2s;
  --duration-slow: 0.32s;
  --duration-xslow: 1s;
  --cycle-flow:     4s;
  --cycle-showcase: 10s;
  --cycle-mesh-1:   7s;
  --cycle-mesh-2:   10s;
  --cycle-mesh-3:   13s;
  --ease-linear:   linear;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth:   cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme='dark'] {
  --shadow-lg: 0 0 0 1px var(--color-border-overlay), 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 16px rgba(0, 0, 0, 0.15);
  --shadow-selected:       inset 0 1px 0 var(--color-shadow-selected-highlight), 0 2px 3px -2px var(--color-shadow-selected-shade);
  --shadow-selected-hover: inset 0 1px 0 var(--color-shadow-selected-highlight-hover), 0 3px 4px -3px var(--color-shadow-selected-shade-hover);
  --shadow-glass-edge: inset 1px 1px 0 var(--color-shadow-glass-edge), inset -1px -1px 0 var(--color-shadow-glass-edge-return), inset 0 0 18px var(--color-shadow-glass-glow);
  --shadow-glass-drop: 0 0 0 0.5px var(--color-shadow-glass-hairline), 0 14px 36px -12px var(--color-shadow-glass-drop);
  --shadow-glass-glow: inset 0 0 18px var(--color-shadow-glass-glow);
  --shadow-glass-lift: 0 14px 36px -12px var(--color-shadow-glass-drop);
  --shadow-panel: 0 0 8px var(--color-shadow-panel);
  --shadow-panel-edge: inset 0 1px 0 var(--color-shadow-panel-highlight), 0 0 0 1px var(--color-shadow-panel-rim);
  --gradient-glass-sheen: linear-gradient(150deg, var(--color-glass-sheen), transparent 42%);
  --gradient-glass-rim: linear-gradient(135deg, var(--color-glass-rim), var(--color-glass-rim-mid) 40% 65%, var(--color-glass-rim-return));
  --shadow-focus-ring: 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-inset: inset 0 0 4px 2px var(--color-action-focus-ring);
  --shadow-focus-ring-error: 0 0 4px 2px var(--color-warning-border);
  --gradient-control-on:       linear-gradient(180deg, color-mix(in srgb, var(--color-action-primary), var(--c-neutral-0) 30%), var(--color-action-primary) 40%);
  --gradient-control-on-hover: linear-gradient(180deg, color-mix(in srgb, var(--color-action-hover), var(--c-neutral-0) 30%), var(--color-action-hover) 40%);
  --gradient-control-on-press: linear-gradient(180deg, color-mix(in srgb, var(--color-action-press), var(--c-neutral-0) 18%), var(--color-action-press) 40%);
  --shadow-control-gloss: inset 0 1px 0 var(--color-shadow-control-highlight), inset 0 -1px 1px var(--color-shadow-control-rim), 0 1px 3px var(--color-shadow-control-glow);
  --tint-primary-from: 14%;
  --tint-primary-from-hover: 18%;
  --tint-primary-from-press: 22%;
  --tint-primary-to: 26%;
  --tint-primary-to-hover: 32%;
  --tint-primary-to-press: 36%;
  --tint-primary-border: 72%;
  --tint-primary-border-hover: 86%;
  --tint-primary-border-press: 95%;
  --tint-primary-glow: 55%;
  --tint-primary-glow-hover: 70%;
  --tint-primary-glow-press: 50%;
  --tint-primary-mesh: 1;
  --tint-primary-mesh-hover: 0.79;
  --tint-primary-mesh-press: 0.64;
  --tint-semantic-from: 16%;
  --tint-semantic-to: 28%;
  --tint-semantic-border: 70%;
  --tint-tag-from: 16%;
  --tint-tag-to: 28%;
  --tint-tag-mesh: 1;
  --tint-zone-from: 10%;
  --tint-zone-to: 20%;
}
[data-brand] {
  --gradient-control-on:       linear-gradient(180deg, color-mix(in srgb, var(--color-action-primary), var(--c-neutral-0) 30%), var(--color-action-primary) 40%);
  --gradient-control-on-hover: linear-gradient(180deg, color-mix(in srgb, var(--color-action-hover), var(--c-neutral-0) 30%), var(--color-action-hover) 40%);
  --gradient-control-on-press: linear-gradient(180deg, color-mix(in srgb, var(--color-action-press), var(--c-neutral-0) 18%), var(--color-action-press) 40%);
  --shadow-control-gloss: inset 0 1px 0 var(--color-shadow-control-highlight), inset 0 -1px 1px var(--color-shadow-control-rim), 0 1px 3px var(--color-shadow-control-glow);
}
:root {
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1280px;
  --size-header-height:         48px;
  --size-footer-height:         76px;
  --size-tab-bar-height:        32px;
  --size-nav-item-height:       40px;
  --size-overlay-bar-height:    48px;
  --size-table-head-height:     40px;
  --size-sider-width:           280px;
  --size-sider-min-width: 208px;
  --size-sider-collapsed-width: 60px;
  --size-sider-mobile-width:    280px;
  --size-panel-width:           260px;
  --size-logo:                  32px;
  --size-content-max-width:     768px;
  --size-chat-max-width:        1024px;
  --size-control-height-sm:     24px;
  --size-control-height-md:     36px;
  --size-control-height-lg:     44px;
  --size-control-min-width:     200px;
  --size-scrollbar:              12px;
  --size-scrollbar-thumb:        4px;
  --size-scrollbar-thumb-active: 8px;
  --size-arrow-height: 6px;
  --size-arrow-width:  20px;
  --size-scroll-fade: 28px;
  --size-bar-height: 8px;
  --size-bar-height-sm: 4px;
  --z-base:     0;
  --z-raised:   10;
  --z-sticky:   100;
  --z-chrome:   200;
  --z-dropdown: 300;
  --z-scrim:    400;
  --z-modal:    500;
  --z-toast:    600;
  --z-tooltip:  700;
  --z-blocking: 800;
}
:root {
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 40px;
}
:root {
  --font-noto:       "Noto Sans TC";
  --font-native-cjk: "PingFang TC", "Microsoft JhengHei";
  --font-sans: "Inter", var(--font-noto), -apple-system, BlinkMacSystemFont, "Segoe UI", var(--font-native-cjk), sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: 36px;
  --text-h1:      28px;
  --text-h2:      22px;
  --text-h3:      18px;
  --text-h4:      16px;
  --text-body:    14px;
  --text-caption: 12px;
  --leading-display: 48px;
  --leading-h1:      38px;
  --leading-h2:      30px;
  --leading-h3:      28px;
  --leading-h4:      24px;
  --leading-body:    22px;
  --leading-caption: 18px;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;
  --tracking-table-header: 0.03em;
  --tracking-brand-title:  -0.01em;
}
.ic {
  width: var(--icon-md);
  height: var(--icon-md);
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}
.ic-sm { width: var(--icon-sm); height: var(--icon-sm); }
.ic-lg { width: var(--icon-lg); height: var(--icon-lg); }
.ic-xl { width: var(--icon-xl); height: var(--icon-xl); }
.ic--spin {
  color: var(--color-text-accent);
  border-radius: var(--radius-full);
  background: var(--gradient-loader);
  -webkit-mask: var(--mask-loader-ring);
  mask: var(--mask-loader-ring);
  animation: ic-spin 0.8s linear infinite;
}
.ic--spin > * {
  visibility: hidden;
}
@keyframes ic-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ic--spin { animation: none; }
}
.display {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-display);
}
.h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  line-height: var(--leading-h1);
}
.h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-h2);
}
.h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  line-height: var(--leading-h3);
}
.h4 {
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  line-height: var(--leading-h4);
}
.body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}
.body-strong {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
}
.caption {
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  line-height: var(--leading-caption);
}
.anchor {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 1px solid transparent;
}
.anchor[hidden] {
  display: none;
}
.anchor__link {
  position: relative;
  display: block;
  flex: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.anchor__label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.anchor__link:hover,
.anchor__link.is-hover {
  background: var(--color-bg-item-hover);
  color: var(--color-action-hover);
}
.anchor__link:active,
.anchor__link.is-active {
  background: var(--color-bg-item-press);
}
.anchor__link.is-current,
.anchor__link.is-current:hover,
.anchor__link.is-current.is-hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-press)),
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-press)));
  box-shadow:
    0 0 10px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-press), transparent),
    inset 0 1px 2px var(--color-shadow-btn-primary-press);
  color: var(--color-text-btn-primary);
  font-weight: var(--weight-medium);
}
.anchor__link::after {
  content: "";
  position: absolute;
  top: calc(var(--space-xs) * -1);
  bottom: calc(var(--space-xs) * -1);
  left: calc(var(--space-sm) * -1 - 1px);
  width: 1px;
  background: var(--color-border-faint);
}
.anchor__link:first-child::after,
.anchor__group + .anchor__link::after {
  top: 0;
}
.anchor__link:last-child::after,
.anchor__link:has(+ .anchor__group)::after {
  bottom: 0;
}
.anchor__link.is-current::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: calc(var(--space-sm) * -1 - 1px);
  width: var(--space-xs);
  background: var(--color-action-primary);
}
.anchor__link[aria-disabled="true"] {
  background: none;
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.anchor__tag {
  flex-shrink: 0;
  margin-inline-start: auto;
  padding-inline-start: var(--space-sm);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.anchor__tag--todo {
  color: var(--color-notice-text);
}
.anchor__link:has(.anchor__tag) {
  display: flex;
  align-items: center;
}
.anchor__group {
  display: block;
  padding: var(--space-lg) var(--space-lg) var(--space-xs);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.anchor__group:first-child {
  padding-top: 0;
}
.anchor__link--sub { padding-left: var(--space-xl); }
.anchor--sticky {
  position: sticky;
  top: var(--space-xl);
}
.tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border-faint);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs__item {
  flex: 0 0 auto;
}
.tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 100px;
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-sm);
  border: none;
  border-radius: var(--radius-md);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.tabs__item:hover,
.tabs__item.is-hover {
  background: var(--color-bg-subtle);
  color: var(--color-action-hover);
}
.tabs__item.on,
.tabs__item.on:hover,
.tabs__item.on.is-hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-press)),
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-press)));
  box-shadow:
    0 0 10px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-press), transparent),
    inset 0 1px 2px var(--color-shadow-btn-primary-press);
  color: var(--color-text-btn-primary);
  font-weight: var(--weight-medium);
}
.tabs__item.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--space-sm) * -1 - 1px);
  height: 2px;
  background: var(--color-action-primary);
}
.tabs__item:disabled {
  background: none;
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.tabs--fill { display: flex; }
.tabs--fill .tabs__item {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  cursor: pointer;
}
.check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.check__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-bg-page);
  color: transparent;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.check__box .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
  vertical-align: 0;
}
.check__box::after {
  content: "";
  position: absolute;
  width: var(--space-sm);
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--color-text-on-accent);
  opacity: 0;
}
.check:hover .check__box,
.check.is-hover .check__box {
  border-color: var(--color-action-primary);
}
.check:active .check__box,
.check.is-active .check__box {
  border-color: var(--color-action-press);
}
.check:active .check__input:checked:not(:disabled) + .check__box,
.check:active .check__input:indeterminate:not(:disabled) + .check__box,
.check.is-active.is-checked .check__box,
.check.is-active.is-indeterminate .check__box {
  background: var(--color-action-fill-press);
  border-color: var(--color-action-fill-press);
}
.check__input:checked + .check__box,
.check.is-checked .check__box {
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
  color: var(--color-text-on-accent);
}
.check__input:indeterminate + .check__box,
.check.is-indeterminate .check__box {
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
  color: transparent;
}
.check__input:indeterminate + .check__box::after,
.check.is-indeterminate .check__box::after {
  opacity: 1;
}
.check__input:disabled + .check__box,
.check.is-disabled .check__box {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
}
.check__input:disabled:checked + .check__box,
.check__input:disabled:indeterminate + .check__box,
.check.is-disabled.is-checked .check__box,
.check.is-disabled.is-indeterminate .check__box {
  background: var(--color-border-faint);
  border-color: var(--color-border-subtle);
  color: var(--color-text-disabled);
}
.check__input:disabled:indeterminate + .check__box,
.check.is-disabled.is-indeterminate .check__box {
  color: transparent;
}
.check__input:disabled:indeterminate + .check__box::after,
.check.is-disabled.is-indeterminate .check__box::after {
  background: var(--color-text-disabled);
}
.check__label:has(.label__info) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.check:has(> .check__input:disabled),
.check:has(> .check__input:disabled) .check__label,
.check.is-disabled,
.check.is-disabled .check__label {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.menu__item > .check {
  pointer-events: none;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  cursor: pointer;
}
.radio__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.radio__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--icon-md);
  height: var(--icon-md);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  background: var(--color-bg-page);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.radio__box::after {
  content: "";
  width: calc(var(--space-sm) + var(--space-xs));
  height: calc(var(--space-sm) + var(--space-xs));
  border-radius: var(--radius-full);
  background: var(--color-action-primary);
  transform: scale(0);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.radio:hover .radio__box,
.radio.is-hover .radio__box {
  border-color: var(--color-action-primary);
}
.radio:active .radio__box,
.radio.is-active .radio__box {
  border-color: var(--color-action-press);
}
.radio:active .radio__box::after,
.radio.is-active .radio__box::after {
  background: var(--color-action-press);
}
.radio__input:checked + .radio__box,
.radio.is-checked .radio__box {
  border-color: var(--color-action-primary);
}
.radio__input:checked + .radio__box::after,
.radio.is-checked .radio__box::after {
  transform: scale(1);
}
.radio__input:disabled + .radio__box,
.radio.is-disabled .radio__box {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
}
.radio__input:disabled + .radio__box::after,
.radio.is-disabled .radio__box::after {
  background: var(--color-text-disabled);
}
.radio:has(> .radio__input:disabled),
.radio:has(> .radio__input:disabled) .radio__label,
.radio.is-disabled,
.radio.is-disabled .radio__label {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.select-card-row {
  display: flex;
  gap: var(--space-lg);
}
.select-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.select-card:hover,
.select-card.is-hover,
.select-card:has(.radio__input:checked),
.select-card:has(.check__input:checked),
.select-card.is-checked {
  border-color: var(--color-action-primary);
}
.select-card:active,
.select-card.is-active {
  border-color: var(--color-action-press);
}
.select-card:has(.radio__input:checked:not(:disabled)):active,
.select-card:has(.check__input:checked:not(:disabled)):active,
.select-card.is-checked.is-active {
  border-color: var(--color-action-press);
}
.select-card:has(.radio__input:disabled),
.select-card:has(.check__input:disabled),
.select-card.is-disabled {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
  cursor: not-allowed;
}
.select-card:has(.radio__input:disabled) .select-card__desc,
.select-card:has(.check__input:disabled) .select-card__desc,
.select-card.is-disabled .select-card__desc {
  color: var(--color-text-disabled);
}
.select-card:has(.radio__input:disabled) .select-card__figure,
.select-card:has(.check__input:disabled) .select-card__figure,
.select-card.is-disabled .select-card__figure {
  background: var(--color-bg-page);
}
.select-card__desc {
  padding-left: calc(var(--icon-md) + var(--space-sm));
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-tertiary);
}
.select-card__figure {
  margin-top: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
}
.select-card[hidden],
.select-card__figure[hidden] {
  display: none;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  cursor: pointer;
}
.switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.switch__track {
  position: relative;
  display: block;
  flex: none;
  width: var(--size-control-height-md);
  height: var(--icon-md);
  border-radius: var(--radius-full);
  background: var(--color-fill-control);
  transition: background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: var(--radius-full);
  background: var(--color-text-on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.switch:hover .switch__track,
.switch.is-hover .switch__track {
  background: var(--color-text-tertiary);
}
.switch:active .switch__track,
.switch.is-active .switch__track {
  background: var(--color-text-secondary);
}
.switch__input:checked + .switch__track,
.switch.is-on .switch__track {
  background: var(--color-action-primary);
}
.switch__input:checked + .switch__track .switch__thumb,
.switch.is-on .switch__thumb {
  transform: translateX(var(--space-lg));
}
.switch:hover .switch__input:checked:not(:disabled) + .switch__track,
.switch.is-on.is-hover .switch__track {
  background: var(--color-action-hover);
}
.switch:active .switch__input:checked:not(:disabled) + .switch__track,
.switch.is-active.is-on .switch__track {
  background: var(--color-action-press);
}
.switch__input:disabled + .switch__track,
.switch.is-disabled .switch__track {
  background: var(--color-border-faint);
}
.switch__input:disabled:checked + .switch__track,
.switch.is-disabled.is-on .switch__track {
  background: var(--color-fill-control);
}
.switch:has(> .switch__input:disabled),
.switch:has(> .switch__input:disabled) .switch__label,
.switch.is-disabled,
.switch.is-disabled .switch__label {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.switch.is-loading .switch__input:disabled + .switch__track {
  background: var(--color-fill-control);
}
.switch.is-loading .switch__input:disabled:checked + .switch__track {
  background: var(--color-action-primary);
}
.switch.is-loading:has(> .switch__input:disabled),
.switch.is-loading:has(> .switch__input:disabled) .switch__label {
  color: var(--color-text-primary);
}
.switch__spinner {
  width: calc(var(--icon-sm) - var(--space-xs));
  height: calc(var(--icon-sm) - var(--space-xs));
  border-radius: var(--radius-full);
  background: var(--gradient-loader);
  -webkit-mask: var(--mask-loader-ring);
  mask: var(--mask-loader-ring);
  color: var(--color-text-tertiary);
  animation: btn-spin 0.8s linear infinite;
}
.switch.is-on .switch__spinner,
.switch__input:checked + .switch__track .switch__spinner {
  color: var(--color-text-accent);
}
.switch.is-loading .switch__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg {
  display: inline-flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
}
.seg__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-width: 80px;
  height: calc(var(--size-control-height-md) - 2 * var(--space-xs));
  padding: 0 var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.seg__item:hover,
.seg__item.is-hover {
  background: color-mix(in srgb, var(--color-action-primary) var(--tint-seg-hover), transparent);
  color: var(--color-text-primary);
}
.seg__item:active,
.seg__item.is-active {
  background: color-mix(in srgb, var(--color-action-primary) var(--tint-seg-press), transparent);
  color: var(--color-text-primary);
}
.seg__item.is-selected {
  --mesh-color: var(--color-action-primary);
  --mesh-strength: var(--tint-primary-mesh);
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border), transparent);
  box-shadow: 0 0 10px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow), transparent), 0 1px 2px var(--color-shadow-btn-primary);
  color: var(--color-text-selected);
  font-weight: var(--weight-medium);
}
.seg__item:disabled,
.seg__item.is-disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.float-btn,
.float-btn--secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-control-height-lg);
  height: var(--size-control-height-lg);
  padding: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  background: var(--color-bg-page);
  color: var(--color-text-secondary);
  cursor: pointer;
  --btn-wave: var(--color-action-focus-ring);
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.float-btn:hover,
.float-btn.is-hover {
  border-color: var(--color-action-primary);
  background: var(--color-action-subtle);
  color: var(--color-text-accent);
}
.float-btn:active,
.float-btn.is-active {
  border-color: var(--color-action-press);
  color: var(--color-action-press);
}
.float-btn--tertiary {
  border-color: transparent;
  background: none;
}
.float-btn--tertiary:hover,
.float-btn--tertiary.is-hover {
  background: var(--color-bg-subtle);
  border-color: transparent;
  color: var(--color-text-primary);
}
.float-btn--tertiary:active,
.float-btn--tertiary.is-active {
  background: var(--color-bg-hover);
  border-color: transparent;
  color: var(--color-text-primary);
}
.float-btn--primary {
  --mesh-color: var(--color-action-primary);
  --mesh-strength: var(--tint-primary-mesh);
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 14px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow), transparent), var(--shadow-md);
}
.float-btn--primary:hover,
.float-btn--primary.is-hover {
  --mesh-strength: var(--tint-primary-mesh-hover);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-hover)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-hover)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-hover), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-hover), transparent), var(--shadow-lg);
}
.float-btn--primary:active,
.float-btn--primary.is-active {
  --mesh-strength: var(--tint-primary-mesh-press);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-press)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-press)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-press), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 10px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-press), transparent), inset 0 1px 2px var(--color-shadow-btn-primary-press);
}
.float-btn--sm {
  width: var(--size-control-height-md);
  height: var(--size-control-height-md);
}
.float-btn:disabled,
.float-btn.is-disabled {
  background: var(--color-bg-subtle);
  border-color: transparent;
  color: var(--color-text-disabled);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.float-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 var(--space-sm) var(--btn-wave);
  opacity: 0;
  pointer-events: none;
  transition: box-shadow var(--duration-slow) var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard);
}
.float-btn:active::after {
  box-shadow: 0 0 0 0 var(--btn-wave);
  opacity: 1;
  transition: none;
}
.float-btn:disabled::after,
.float-btn.is-disabled::after {
  content: none;
}
.float-btn--fixed {
  position: fixed;
  right: var(--space-xl);
  bottom: var(--space-xl);
  z-index: var(--z-sticky);
}
@media (prefers-reduced-motion: reduce) {
  .float-btn::after {
    content: none;
  }
}
.slider {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--icon-md);
  touch-action: none;
}
.slider__rail {
  display: block;
  width: 100%;
  height: var(--size-bar-height);
  border-radius: var(--radius-full);
  background: var(--color-bg-hover);
}
.slider__track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--slider-from, 0%);
  width: calc(var(--slider-to, 40%) - var(--slider-from, 0%));
  height: var(--size-bar-height);
  border-radius: var(--radius-full);
  --bar-color: var(--color-action-primary);
}
.slider__handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  --handle-d: var(--icon-sm);
  left: var(--handle-at, 40%);
  width: var(--handle-d);
  height: var(--handle-d);
  margin-left: calc(var(--handle-d) / -2);
  border: 1px solid color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border), transparent);
  border-radius: var(--radius-full);
  background: var(--gradient-control-thumb);
  box-shadow: var(--shadow-control-thumb);
  cursor: grab;
  transition:
    width var(--duration-fast) var(--ease-standard),
    height var(--duration-fast) var(--ease-standard),
    margin-left var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.slider:hover .slider__handle,
.slider.is-hover .slider__handle {
  --handle-d: var(--icon-md);
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-hover), transparent);
  box-shadow: var(--shadow-control-thumb-lift);
}
.slider:hover .slider__track,
.slider.is-hover .slider__track {
  --bar-color: var(--color-action-hover);
}
.slider:active .slider__handle,
.slider.is-active .slider__handle {
  --handle-d: var(--icon-md);
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-press), transparent);
  box-shadow: var(--shadow-control-thumb-lift);
}
.slider:active .slider__track,
.slider.is-active .slider__track {
  --bar-color: var(--color-action-press);
}
.slider__handle:active,
.slider__handle.is-active {
  cursor: grabbing;
}
.slider__handle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 var(--space-sm) var(--color-action-focus-ring);
  opacity: 0;
  pointer-events: none;
  transition: box-shadow var(--duration-slow) var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard);
}
.slider__handle:active::after,
.slider__handle.is-active::after {
  box-shadow: 0 0 0 0 var(--color-action-focus-ring);
  opacity: 1;
  transition: none;
}
.slider.is-disabled .slider__handle::after {
  content: none;
}
.slider--marks {
  margin-bottom: var(--space-xl);
}
.slider__dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--dot-at, 0%);
  width: var(--space-sm);
  height: var(--space-sm);
  margin-left: calc(var(--space-sm) / -2);
  border: 2px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  background: var(--color-bg-page);
}
.slider__dot.is-in-range {
  border-color: var(--color-action-primary);
}
.slider__mark {
  position: absolute;
  top: calc(50% + var(--space-sm));
  left: var(--dot-at, 0%);
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}
.slider__mark.is-in-range {
  color: var(--color-text-primary);
}
.slider.is-disabled {
  cursor: not-allowed;
}
.slider.is-disabled .slider__track,
.slider.is-disabled:hover .slider__track {
  background: var(--color-fill-control);
  box-shadow: none;
}
.slider.is-disabled .slider__handle,
.slider.is-disabled:hover .slider__handle,
.slider.is-disabled:active .slider__handle {
  --handle-d: var(--icon-sm);
  border-color: var(--color-fill-control);
  background: var(--color-bg-page);
  box-shadow: none;
  cursor: not-allowed;
}
.slider-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  width: 100%;
}
.slider-field > .slider {
  flex: 1;
  min-width: 0;
}
.slider-field__value {
  display: flex;
  align-items: center;
  height: var(--icon-md);
  min-width: 3ch;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}
.menu {
  width: 100%;
  max-height: calc(var(--size-control-height-md) * 8 + var(--space-sm) * 2);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: var(--z-dropdown);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .menu {
      overflow-y: scroll;
      padding-right: calc(var(--space-sm) - var(--space-sm));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .menu {
    scrollbar-gutter: stable;
  }
}
.menu::-webkit-scrollbar {
  width: var(--space-sm);
}
.menu::-webkit-scrollbar-track {
  background: transparent;
}
.menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  background: var(--color-fill-control);
  background-clip: padding-box;
}
.menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
  background-clip: padding-box;
}
.menu__search {
  position: sticky;
  top: calc(var(--space-sm) * -1);
  margin-top: calc(var(--space-sm) * -1);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  background: var(--color-bg-page);
  z-index: 1;
}
.menu__group {
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-secondary);
}
.menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--size-control-height-md);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.menu__item > .ic {
  color: var(--color-text-tertiary);
}
.menu__spacer {
  margin-left: auto;
}
.menu__item:hover,
.menu__item.is-hover {
  background: var(--color-bg-item-hover);
}
.menu__item:active,
.menu__item.is-active {
  background: var(--color-bg-item-press);
}
.menu__item--danger {
  color: var(--color-warning-text);
}
.menu__item.menu__item--danger:hover,
.menu__item.menu__item--danger.is-hover,
.menu__item.menu__item--danger:focus-visible,
.menu__item.menu__item--danger.is-focus {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}
.menu__item--danger > .ic {
  color: inherit;
}
.menu__item.is-selected {
  background: var(--color-bg-selected-glass);
  box-shadow: var(--shadow-selected);
  color: var(--color-text-selected);
}
.menu__item.is-selected:hover,
.menu__item.is-selected.is-hover {
  background: var(--color-bg-selected-glass-hover);
  box-shadow: var(--shadow-selected-hover);
  color: var(--color-text-selected);
}
.menu__item.is-selected > .ic {
  color: var(--color-text-selected);
}
.menu__item.is-disabled,
.menu__item:disabled {
  color: var(--color-text-disabled);
  background: none;
  cursor: not-allowed;
}
.menu__item.is-disabled > .ic,
.menu__item:disabled > .ic,
.menu__item.is-disabled .menu__desc,
.menu__item:disabled .menu__desc {
  color: var(--color-text-disabled);
}
button.menu__item {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  line-height: inherit;
  text-align: left;
  appearance: none;
}
.menu__item:has(> .menu__text) {
  height: auto;
  min-height: var(--size-control-height-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  align-items: flex-start;
}
.menu__item:has(> .menu__text) > .ic {
  margin-top: calc((var(--leading-body) - var(--icon-sm)) / 2);
}
.menu__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.menu__desc {
  overflow: hidden;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.menu__item--parent {
  cursor: pointer;
}
.menu__item--parent > .menu__spacer {
  transition: transform var(--duration-fast) var(--ease-standard);
}
.menu__item--parent.is-collapsed > .menu__spacer {
  transform: rotate(180deg);
}
.menu__item--nested {
  padding-left: calc(var(--space-sm) + var(--space-lg));
}
.menu__item--flyout {
  position: relative;
}
.menu:has(> .menu__item--flyout) {
  max-height: none;
  overflow: visible;
  padding-right: var(--space-sm);
  isolation: isolate;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
:where(.menu:has(> .menu__item--flyout)) {
  position: relative;
}
.menu:has(> .menu__item--flyout)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  pointer-events: none;
}
.menu__item--flyout > .menu--sub {
  display: none;
  position: absolute;
  top: calc(-1 * var(--space-sm));
  left: calc(100% + var(--space-sm) + var(--space-sm));
  min-width: 160px;
  width: max-content;
  max-height: none;
  overflow: visible;
  padding-right: var(--space-sm);
}
.menu__item--flyout > .menu--sub::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: calc(var(--space-sm) * 2);
}
.menu__item--flyout.is-open > .menu--sub,
.menu__item--flyout:focus-within > .menu--sub,
.menu__item--flyout.is-focus > .menu--sub {
  display: block;
}
.menu__item--flyout-left > .menu--sub {
  left: auto;
  right: calc(100% + var(--space-sm) + var(--space-sm));
}
.menu__item--flyout-left > .menu--sub::before {
  right: auto;
  left: 100%;
}
.menu__item--flyout > .menu__spacer {
  transform: none;
}
.menu__value {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}
.menu__item--flyout > .menu__value + .menu__spacer {
  margin-left: var(--space-xs);
}
.menu__suffix {
  margin-left: auto;
  color: var(--color-text-tertiary);
}
.menu__divider {
  height: 1px;
  margin: var(--space-sm) 0;
  background: var(--color-border-faint);
}
.menu__item[hidden] {
  display: none;
}
.btn-split.menu-anchor > .menu {
  left: auto;
  right: 0;
}
.select {
  justify-content: space-between;
  cursor: pointer;
}
.select [data-menu-label] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.select__caret {
  color: var(--color-text-tertiary);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.select.is-open .select__caret {
  transform: rotate(180deg);
}
.select.is-disabled .select__caret {
  color: var(--color-text-disabled);
}
.select:has(.select__values) {
  height: auto;
  min-height: var(--size-control-height-md);
  padding-block: var(--space-xs);
}
.select__values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
}
.listfoot__end .select {
  width: 112px;
  min-width: 0;
}
.popconfirm {
  display: inline-block;
  min-width: 200px;
  max-width: 280px;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}
.popconfirm[hidden] {
  display: none;
}
.popconfirm__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  min-height: var(--size-overlay-bar-height);
  padding-top: calc((var(--size-overlay-bar-height) - var(--size-control-height-md)) / 2);
  padding-bottom: calc((var(--size-overlay-bar-height) - var(--size-control-height-md)) / 2);
  margin-top: var(--space-sm);
}
.card {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
}
.card__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-lg) 0;
}
.card__title {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.card__extra { margin-left: auto; }
.card__body {
  padding: var(--space-lg);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}
.steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps__item {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 0;
  padding-right: var(--space-lg);
  border: none;
  background: none;
  font-family: var(--font-sans);
  text-align: left;
}
.steps > .steps__item:last-child,
.steps > li:last-child .steps__item {
  flex: none;
  padding-right: 0;
}
.steps > li {
  display: flex;
  flex: 1;
  min-width: 0;
}
.steps > li:last-child { flex: none; }
.steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--size-control-height-md);
  height: var(--size-control-height-md);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  color: var(--color-text-tertiary);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.steps__icon > .ic {
  width: var(--icon-md);
  height: var(--icon-md);
}
.steps__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  padding-top: 7px;
}
.steps__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.steps__title {
  color: var(--color-text-tertiary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--duration-fast) var(--ease-standard);
}
.steps__line {
  flex: 1;
  min-width: var(--space-lg);
  height: 1px;
  background: var(--color-border-faint);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.steps__desc {
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
}
.steps__item.is-done .steps__icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from)),
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to)));
  box-shadow:
    0 0 14px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow), transparent),
    0 1px 2px var(--color-shadow-btn-primary);
  color: var(--color-text-btn-primary);
}
.steps__item.is-done .steps__title {
  color: var(--color-text-primary);
}
.steps__item.is-done .steps__line {
  background: var(--color-action-primary);
}
.steps__item.is-current .steps__icon {
  background: var(--gradient-control-on);
  box-shadow: var(--shadow-control-gloss);
  color: var(--color-text-on-accent);
}
.steps__item.is-current .steps__title {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}
.steps__item.is-error .steps__icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-warning-solid) var(--tint-semantic-from)),
    color-mix(in srgb, var(--color-bg-page), var(--color-warning-solid) var(--tint-semantic-to)));
  color: var(--color-warning-text);
}
.steps__item.is-error .steps__title {
  color: var(--color-warning-text);
  font-weight: var(--weight-medium);
}
.steps__item.is-error .steps__desc {
  color: var(--color-warning-text);
}
.steps--clickable .steps__item {
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  padding-right: var(--space-lg);
  margin: calc(var(--space-xs) * -1);
}
.steps--clickable .steps__item:hover:not(:disabled) .steps__title,
.steps--clickable .steps__item.is-hover .steps__title {
  color: var(--color-action-hover);
}
.steps--clickable .steps__item:hover:not(:disabled) .steps__icon,
.steps--clickable .steps__item.is-hover .steps__icon {
  background: var(--color-bg-hover);
}
.steps--clickable .steps__item.is-done:hover .steps__icon,
.steps--clickable .steps__item.is-done.is-hover .steps__icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-hover)),
    color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-hover)));
  box-shadow:
    0 0 18px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-hover), transparent),
    0 1px 2px var(--color-shadow-btn-primary);
  color: var(--color-text-btn-primary);
}
.steps--clickable .steps__item.is-current:hover .steps__icon,
.steps--clickable .steps__item.is-current.is-hover .steps__icon {
  background: var(--gradient-control-on-hover);
  box-shadow: var(--shadow-control-gloss);
  color: var(--color-text-on-accent);
}
.steps--clickable .steps__item.is-error:hover .steps__icon,
.steps--clickable .steps__item.is-error.is-hover .steps__icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-warning-solid) var(--tint-semantic-from)),
    color-mix(in srgb, var(--color-bg-page), var(--color-warning-solid) var(--tint-semantic-to)));
  color: var(--color-warning-text);
}
.steps--clickable .steps__item:disabled {
  cursor: not-allowed;
}
.steps--clickable .steps__item:disabled .steps__title,
.steps--clickable .steps__item:disabled .steps__desc {
  color: var(--color-text-disabled);
}
.steps--vertical {
  flex-direction: column;
  gap: var(--space-lg);
}
.steps--vertical > li { flex: none; }
.steps--vertical .steps__item {
  position: relative;
  flex: none;
  padding-right: 0;
}
.steps--vertical .steps__head {
  display: block;
}
.steps--vertical .steps__line {
  position: absolute;
  left: 17.5px;
  top: 36px;
  bottom: calc(var(--space-lg) * -1);
  width: 1px;
  height: auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .steps > li { flex: none; }
  .steps .steps__item {
    position: relative;
    flex: none;
    padding-right: 0;
  }
  .steps .steps__head { display: block; }
  .steps .steps__line {
    position: absolute;
    left: 17.5px;
    top: 36px;
    bottom: calc(var(--space-lg) * -1);
    width: 1px;
    height: auto;
    min-width: 0;
  }
}
.cal {
  width: max-content;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  font-family: var(--font-sans);
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-xs) var(--space-sm);
}
.cal__title {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-lg);
  height: var(--icon-lg);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.cal__nav:hover,
.cal__nav.is-hover { background: var(--color-bg-subtle); color: var(--color-text-primary); }
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, var(--size-control-height-md));
}
.cal__dow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--icon-lg);
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}
.cal__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--size-control-height-md);
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.cal__day:hover,
.cal__day.is-hover { background: var(--color-bg-hover); }
.cal__day--out { color: var(--color-text-disabled); }
.cal__day--today {
  box-shadow: inset 0 0 0 1px var(--color-action-primary);
}
.cal__day.is-selected:not(:disabled) {
  background: var(--gradient-control-on);
  box-shadow: var(--shadow-control-gloss);
  color: var(--color-text-on-accent);
}
.cal__day.is-in-range { background: var(--color-bg-selected); border-radius: 0; }
.cal__day.is-in-range:not(.is-selected):not(:disabled) { background: var(--color-bg-selected-glass); }
.cal__day:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  background: none;
}
.cal__foot {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border-faint);
  text-align: center;
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  --mesh-color: var(--color-text-tertiary);
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-semantic-from)), color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-semantic-to)));
  border-color: color-mix(in srgb, var(--mesh-color) var(--tint-semantic-border), transparent);
}
:where(.alert) {
  position: relative;
}
.alert > .ic { flex-shrink: 0; margin-top: calc((var(--leading-body) - var(--icon-md)) / 2); }
.alert--info    { --mesh-color: var(--color-info-solid); }
.alert--success { --mesh-color: var(--color-success-solid); }
.alert--notice  { --mesh-color: var(--color-notice-solid); }
.alert--warning { --mesh-color: var(--color-warning-solid); }
.alert--info    > .ic { color: var(--color-info-icon); }
.alert--success > .ic { color: var(--color-success-solid); }
.alert--notice  > .ic { color: var(--color-notice-solid); }
.alert--warning > .ic { color: var(--color-warning-solid); }
.alert__title {
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-xs);
}
.alert__close {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  margin-top: calc((var(--leading-body) - var(--icon-sm)) / 2);
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.alert__action {
  flex: none;
  margin-left: auto;
  align-self: center;
}
.alert:has(.alert__close) {
  padding-right: var(--space-sm);
}
.alert__close:hover,
.alert__close.is-hover { opacity: 1; }
.scrim {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  isolation: isolate;
  background: none;
  z-index: var(--z-scrim);
}
.scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-scrim);
  backdrop-filter: var(--backdrop-scrim);
  -webkit-backdrop-filter: var(--backdrop-scrim);
  pointer-events: none;
}
.scrim[hidden] {
  display: none;
}
.scrim--drawer {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.scrim--inline,
.demo-stage .scrim--inline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: var(--space-xl);
  border-radius: 0;
  background: none;
}
.modal {
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - var(--space-xl) * 2));
  min-height: 360px;
  max-height: calc(100vh - var(--space-2xl) * 2);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  box-shadow: var(--shadow-overlay);
  z-index: var(--z-modal);
}
.modal[hidden] {
  display: none;
}
.modal__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-sm);
  height: var(--size-overlay-bar-height);
  padding: 0 var(--space-lg);
}
.modal__title {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.modal__close {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-lg);
  height: var(--icon-lg);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.modal__close:hover,
.modal__close.is-hover {
  background: var(--color-bg-item-hover);
  color: var(--color-text-primary);
}
.modal__body {
  overscroll-behavior: contain;
  padding: var(--space-lg);
  overflow-y: auto;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--size-overlay-bar-height);
  padding: calc((var(--size-overlay-bar-height) - var(--size-control-height-md)) / 2) var(--space-lg);
  margin-top: auto;
}
.modal__cicon {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 60px;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: calc(var(--space-lg) + var(--space-xl)) 0 var(--space-xl);
  border-radius: var(--radius-full);
  background: var(--color-notice-bg);
  color: var(--color-notice-solid);
}
.modal__cicon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  opacity: 0;
  animation: cicon-pulse 4s var(--ease-standard) infinite;
}
.modal__cicon--success {
  background: var(--color-success-bg);
  color: var(--color-success-solid);
}
.modal__cicon--info {
  background: var(--color-info-bg);
  color: var(--color-info-solid);
}
.modal__cicon--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-solid);
}
@media (prefers-reduced-motion: reduce) {
  .modal__cicon::after { animation: none; }
}
.modal--confirm .modal__head {
  height: auto;
  padding: var(--space-lg) var(--space-lg) 0;
  justify-content: center;
}
.modal--confirm .modal__body {
  text-align: center;
}
@keyframes cicon-pulse {
  0%        { transform: scale(1);    opacity: 0.05; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
.modal__block {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .modal__body {
      overflow-y: scroll;
      padding-right: calc(var(--space-lg) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .modal__body {
    scrollbar-gutter: stable;
  }
}
.modal__blocktitle {
  margin-bottom: var(--space-lg);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.modal--settings {
  width: min(960px, calc(100vw - var(--space-6) * 2));
  height: auto;
  max-height: calc(100vh - var(--space-6) * 2);
  flex-shrink: 0;
}
.modal--settings.modal--sm {
  width: min(560px, calc(100vw - var(--space-6) * 2));
}
.modal.is-expanded {
  width: calc(100vw - var(--space-xl) * 2);
  height: calc(100vh - var(--space-xl) * 2);
  max-width: none;
  max-height: none;
}
.modal__actions {
  display: flex;
  gap: var(--space-xs);
  margin-inline-start: auto;
}
.modal__split {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  padding: var(--space-lg);
  gap: var(--space-lg);
  background: var(--color-bg-canvas);
  border-block: 1px solid var(--color-border-faint);
}
.modal__split--1col {
  grid-template-columns: minmax(0, 1fr);
}
.modal__nav {
  padding: var(--space-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .modal__nav {
      overflow-y: scroll;
      padding-right: calc(var(--space-lg) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .modal__nav {
    scrollbar-gutter: stable;
  }
}
.modal--settings .modal__foot {
  justify-content: flex-end;
}
.modal__toolbar {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 var(--space-lg);
}
@media (min-width: 768px) {
  .modal__split:not(.modal__split--1col):has(> .modal__nav) {
    position: relative;
    isolation: isolate;
    padding: calc(var(--space-lg) * 2);
    grid-template-rows: minmax(0, 1fr);
  }
  .modal__split:not(.modal__split--1col):has(> .modal__nav)::before {
    content: "";
    position: absolute;
    inset: var(--space-lg);
    z-index: -1;
    border-radius: var(--radius-lg);
    background: var(--color-bg-page);
    pointer-events: none;
  }
  .modal__split:not(.modal__split--1col):has(> .modal__nav) .modal__block:not(.modal__nav) {
    border: 1px solid var(--color-border-faint);
  }
  .modal__split:not(.modal__split--1col) > .modal__nav:has(> .anchor) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: calc(var(--space-sm) * -1) 0 calc(var(--space-sm) * -1) calc(var(--space-sm) * -1);
    padding: var(--space-sm) 0 var(--space-sm) var(--space-sm);
    background: none;
    overflow: visible;
  }
  .modal__split:not(.modal__split--1col) > .modal__nav:has(> .anchor) > .anchor {
    flex: 1 0 auto;
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    background: var(--color-bg-panel);
    box-shadow: var(--shadow-panel-edge), var(--shadow-panel);
  }
  .modal__split:not(.modal__split--1col) > .modal__nav.is-scrollable:has(> .anchor) {
    overflow-y: auto;
  }
  .modal__split:not(.modal__split--1col) > .modal__nav.is-scrollable:has(> .anchor) > .anchor {
    box-shadow: var(--shadow-panel-edge);
  }
  @media (pointer: fine) {
    @supports selector(::-webkit-scrollbar-thumb) {
      .modal__split:not(.modal__split--1col) > .modal__nav.is-scrollable:has(> .anchor) {
        margin-right: calc((var(--space-sm) + var(--size-scrollbar) / 2) * -1);
        overflow-y: scroll;
        padding-right: calc((var(--space-lg) - var(--size-scrollbar)) / 2);
      }
      .modal__split:not(.modal__split--1col):has(> .modal__nav) > .modal__body {
        margin-right: calc((var(--space-sm) + var(--size-scrollbar) / 2) * -1);
        padding-right: calc((var(--space-lg) - var(--size-scrollbar)) / 2);
      }
    }
  }
  @supports not selector(::-webkit-scrollbar-thumb) {
    .modal__split:not(.modal__split--1col) > .modal__nav.is-scrollable:has(> .anchor) {
      scrollbar-gutter: stable;
    }
  }
}
@supports (animation-timeline: scroll()) {
  .modal__split > .modal__body,
  .modal__split > .modal__nav.is-scrollable {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black var(--scroll-fade-top), black calc(100% - var(--scroll-fade-bottom)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black var(--scroll-fade-top), black calc(100% - var(--scroll-fade-bottom)), transparent 100%);
    animation: scroll-edge-fade linear both;
    animation-timeline: scroll(self);
    scroll-padding-block: var(--size-scroll-fade);
  }
}
.drawer {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - var(--space-xl) - var(--space-lg)));
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  box-shadow: var(--shadow-overlay);
  z-index: var(--z-modal);
}
.drawer > :first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.drawer > :last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.drawer[hidden] {
  display: none;
}
.drawer:has(.drawer__body--2col) {
  width: min(960px, calc(100vw - var(--space-xl) - var(--space-lg)));
}
.drawer:has(.drawer__body--3col) {
  width: min(1280px, calc(100vw - var(--space-xl) - var(--space-lg)));
}
.drawer__head {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  height: var(--size-overlay-bar-height);
  padding: 0 var(--space-lg);
}
.drawer__steps {
  margin-inline-start: auto;
  max-width: 60%;
}
.drawer__body {
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  flex: 1;
  min-height: 0;
  padding: var(--space-lg);
  overflow-y: auto;
  background: var(--color-bg-canvas);
}
.drawer__body--2col {
  grid-template-columns: 232px minmax(0, 1fr);
}
.drawer__body--3col {
  grid-template-columns: 232px minmax(240px, 1fr) 280px;
}
@media (max-width: 1023px) {
  .drawer__body--3col {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .drawer__body--3col > .drawer__aside {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .drawer__body--2col,
  .drawer__body--3col {
    grid-template-columns: minmax(0, 1fr);
  }
}
.drawer__nav {
  padding: var(--space-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer__pane,
.drawer__aside {
  min-width: 0;
}
.drawer__foot {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  min-height: var(--size-overlay-bar-height);
  padding: calc((var(--size-overlay-bar-height) - var(--size-control-height-md)) / 2) var(--space-lg);
}
.drawer__foot .btn {
  flex: none;
  min-width: 100px;
}
.drawer__block {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .drawer__body {
      overflow-y: scroll;
      padding-right: calc(var(--space-lg) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .drawer__body {
    scrollbar-gutter: stable;
  }
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .drawer__nav {
      overflow-y: scroll;
      padding-right: calc(var(--space-lg) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .drawer__nav {
    scrollbar-gutter: stable;
  }
}
.drawer__blocktitle {
  margin-bottom: var(--space-lg);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.desc {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
.desc dt { color: var(--color-text-tertiary); }
.desc dd { color: var(--color-text-primary); margin: 0; overflow-wrap: anywhere; }
.desc > div {
  display: contents;
}
.desc.desc--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm) var(--space-xl);
}
.desc.desc--inline > div {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.desc.desc--inline dt {
  flex: none;
}
.desc.desc--columns {
  grid-template-columns: repeat(3, minmax(96px, max-content) minmax(0, 1fr));
}
.desc.desc--columns dd {
  padding-inline-end: var(--space-lg);
}
@media (max-width: 1024px) {
  .desc.desc--columns {
    grid-template-columns: repeat(2, minmax(96px, max-content) minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .desc.desc--columns {
    grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  }
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-logo);
  height: var(--size-logo);
  border-radius: var(--radius-full);
  background: var(--color-bg-selected);
  color: var(--color-text-accent);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar > .ic { width: 60%; height: 60%; }
.avatar--xs { width: var(--icon-md); height: var(--icon-md); font-size: var(--text-caption); }
.avatar--sm { width: var(--icon-lg); height: var(--icon-lg); }
.avatar--lg { width: var(--size-control-height-lg); height: var(--size-control-height-lg); font-size: var(--text-body); }
.avatar--xl { width: 96px; height: 96px; font-size: var(--text-h3); }
.acc {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
}
.acc__item + .acc__item { border-top: 1px solid var(--color-border-faint); }
.acc__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.acc__head:hover,
.acc__head.is-hover { background: var(--color-bg-subtle); }
.acc__head > .ic {
  margin-left: auto;
  color: var(--color-text-tertiary);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.acc__item.is-collapsed .acc__head > .ic { transform: rotate(180deg); }
.acc__body {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}
.acc__item.is-collapsed .acc__body { display: none; }
.divider {
  height: 1px;
  margin: var(--space-lg) 0;
  border: none;
  background: var(--color-border-faint);
}
.divider--v {
  display: inline-block;
  width: 1px;
  height: var(--icon-md);
  margin: 0 var(--space-xs);
  vertical-align: middle;
  background: var(--color-border-faint);
}
:where(.tag) {
  position: relative;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  --mesh-color: var(--color-text-tertiary);
  --mesh-strength: var(--tint-tag-mesh);
  isolation: isolate;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-tag-from)), color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-tag-to)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mesh-color) var(--tint-semantic-border), transparent);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.tag--info    { --mesh-color: var(--color-info-solid); color: var(--color-info-text-strong); }
.tag--success { --mesh-color: var(--color-success-solid); color: var(--color-success-text); }
.tag--notice  { --mesh-color: var(--color-notice-solid); color: var(--color-notice-text); }
.tag--warning { --mesh-color: var(--color-warning-solid); color: var(--color-warning-text); }
.tag:not(.tag--info):not(.tag--success):not(.tag--notice):not(.tag--warning)::before {
  content: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--icon-md);
  height: var(--icon-md);
  padding: 0 var(--space-xs);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--color-warning-solid), color-mix(in srgb, var(--color-warning-solid), black 12%));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, white 35%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-warning-solid) 30%, transparent),
    0 2px 6px -2px color-mix(in srgb, var(--color-warning-solid) 55%, transparent);
  color: var(--color-text-on-accent);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.badge--dot {
  --dot-color: var(--color-warning-solid);
  min-width: var(--space-sm);
  width: var(--space-sm);
  height: var(--space-sm);
  padding: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--dot-color), white 35%), var(--dot-color) 70%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--dot-color) 18%, transparent),
    0 0 6px color-mix(in srgb, var(--dot-color) 50%, transparent);
}
.badge--dot.badge--success { --dot-color: var(--color-success-solid); }
.badge--dot.badge--info    { --dot-color: var(--color-info-solid); }
.badge--dot.badge--notice  { --dot-color: var(--color-notice-solid); }
.badge--dot.badge--neutral { --dot-color: var(--color-text-tertiary); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-bg-page), var(--color-text-tertiary) var(--tint-tag-from)),
    color-mix(in srgb, var(--color-bg-page), var(--color-text-tertiary) var(--tint-tag-to)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-text-tertiary) var(--tint-semantic-border), transparent);
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  white-space: nowrap;
}
.chip .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.chip--removable {
  padding-right: var(--space-xs);
}
.chip__close {
  display: inline-flex;
  padding: var(--space-xs);
  margin: calc(-1 * var(--space-xs));
  margin-left: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.chip__close:hover,
.chip__close.is-hover {
  background: var(--color-bg-item-hover);
}
.chip__close:active,
.chip__close.is-active {
  background: var(--color-bg-item-press);
  color: var(--color-text-primary);
}
.chip__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tip {
  --tip-r: calc(var(--space-sm) + var(--leading-caption) / 2);
  --tip-ah: var(--size-arrow-height);
  --tip-aw: calc(var(--size-arrow-width) / 2);
  --tip-ax: clamp(min(calc(var(--tip-r) + var(--tip-aw)), 50%), var(--tip-arrow-at, 50%), max(calc(100% - var(--tip-r) - var(--tip-aw)), 50%));
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 240px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--tip-r);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  line-height: max(var(--leading-caption), 1.25ic);
  box-shadow: var(--shadow-glass-lift);
  z-index: var(--z-tooltip);
}
.tip[hidden] {
  display: none;
}
.tip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  box-shadow: var(--shadow-glass-glow);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  pointer-events: none;
}
.tip__arrow {
  position: absolute;
  inset: var(--tip-arrow-ext);
  z-index: -1;
  clip-path: var(--tip-arrow-rim);
  background: var(--tip-arrow-fill), var(--gradient-glass-rim);
  pointer-events: none;
}
.tip::after {
  content: "";
  position: absolute;
  inset: var(--tip-arrow-ext);
  z-index: -1;
  clip-path: var(--tip-arrow-hair);
  background: var(--color-shadow-glass-hairline);
  box-shadow: 0 0 0 1px var(--color-shadow-glass-hairline);
  pointer-events: none;
}
.tip {
  --tip-arrow-rim: shape(evenodd from calc(var(--tip-r)) 0,
    line to calc(100% - var(--tip-r)) 0,
    arc to 100% calc(var(--tip-r)) of var(--tip-r) cw,
    line to 100% calc(100% - (var(--tip-ah) + var(--tip-r))),
    arc to calc(100% - var(--tip-r)) calc(100% - var(--tip-ah)) of var(--tip-r) cw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(100% - var(--tip-ah)),
    curve to var(--tip-ax) 100% with calc(var(--tip-ax) + 3px) calc(100% - var(--tip-ah)),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(100% - var(--tip-ah)) with calc(var(--tip-ax) - 3px) calc(100% - var(--tip-ah)),
    line to calc(var(--tip-r)) calc(100% - var(--tip-ah)),
    arc to 0 calc(100% - (var(--tip-ah) + var(--tip-r))) of var(--tip-r) cw,
    line to 0 calc(var(--tip-r)),
    arc to calc(var(--tip-r)) 0 of var(--tip-r) cw,
    close,
    move to calc(var(--tip-r)) calc(1px),
    line to calc(100% - var(--tip-r)) calc(1px),
    arc to calc(100% - 1px) calc(var(--tip-r)) of calc(var(--tip-r) - 1px) cw,
    line to calc(100% - 1px) calc(100% - (var(--tip-ah) + var(--tip-r))),
    arc to calc(100% - var(--tip-r)) calc(100% - (var(--tip-ah) + 1px)) of calc(var(--tip-r) - 1px) cw,
    line to calc(var(--tip-r)) calc(100% - (var(--tip-ah) + 1px)),
    arc to calc(1px) calc(100% - (var(--tip-ah) + var(--tip-r))) of calc(var(--tip-r) - 1px) cw,
    line to calc(1px) calc(var(--tip-r)),
    arc to calc(var(--tip-r)) calc(1px) of calc(var(--tip-r) - 1px) cw,
    close);
  --tip-arrow-hair: shape(evenodd from calc(var(--tip-r)) calc(-0.5px),
    line to calc(100% - var(--tip-r)) calc(-0.5px),
    arc to calc(100% - -0.5px) calc(var(--tip-r)) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(100% - -0.5px) calc(100% - (var(--tip-ah) + var(--tip-r))),
    arc to calc(100% - var(--tip-r)) calc(100% - (var(--tip-ah) + -0.5px)) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(100% - (var(--tip-ah) + -0.5px)),
    curve to var(--tip-ax) calc(100% - -1.1px) with calc(var(--tip-ax) + 3.3px) calc(100% - (var(--tip-ah) + -0.5px)),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(100% - (var(--tip-ah) + -0.5px)) with calc(var(--tip-ax) - 3.3px) calc(100% - (var(--tip-ah) + -0.5px)),
    line to calc(var(--tip-r)) calc(100% - (var(--tip-ah) + -0.5px)),
    arc to calc(-0.5px) calc(100% - (var(--tip-ah) + var(--tip-r))) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(-0.5px) calc(var(--tip-r)),
    arc to calc(var(--tip-r)) calc(-0.5px) of calc(var(--tip-r) - -0.5px) cw,
    close,
    move to calc(var(--tip-r)) 0,
    line to calc(100% - var(--tip-r)) 0,
    arc to 100% calc(var(--tip-r)) of var(--tip-r) cw,
    line to 100% calc(100% - (var(--tip-ah) + var(--tip-r))),
    arc to calc(100% - var(--tip-r)) calc(100% - var(--tip-ah)) of var(--tip-r) cw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(100% - var(--tip-ah)),
    curve to var(--tip-ax) 100% with calc(var(--tip-ax) + 3px) calc(100% - var(--tip-ah)),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(100% - var(--tip-ah)) with calc(var(--tip-ax) - 3px) calc(100% - var(--tip-ah)),
    line to calc(var(--tip-r)) calc(100% - var(--tip-ah)),
    arc to 0 calc(100% - (var(--tip-ah) + var(--tip-r))) of var(--tip-r) cw,
    line to 0 calc(var(--tip-r)),
    arc to calc(var(--tip-r)) 0 of var(--tip-r) cw,
    close);
  --tip-arrow-fill: linear-gradient(to right, transparent calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) + var(--tip-aw)), transparent calc(var(--tip-ax) + var(--tip-aw))) 0 100% / 100% calc(var(--tip-ah) + 1px) no-repeat;
  --tip-arrow-ext: 0 0 calc(var(--tip-ah) * -1) 0;
}
.tip--bottom {
  --tip-arrow-rim: shape(evenodd from calc(var(--tip-r)) 100%,
    line to calc(100% - var(--tip-r)) 100%,
    arc to 100% calc(100% - var(--tip-r)) of var(--tip-r) ccw,
    line to 100% calc(var(--tip-ah) + var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(var(--tip-ah)) of var(--tip-r) ccw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(var(--tip-ah)),
    curve to var(--tip-ax) 0 with calc(var(--tip-ax) + 3px) calc(var(--tip-ah)),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(var(--tip-ah)) with calc(var(--tip-ax) - 3px) calc(var(--tip-ah)),
    line to calc(var(--tip-r)) calc(var(--tip-ah)),
    arc to 0 calc(var(--tip-ah) + var(--tip-r)) of var(--tip-r) ccw,
    line to 0 calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) 100% of var(--tip-r) ccw,
    close,
    move to calc(var(--tip-r)) calc(100% - 1px),
    line to calc(100% - var(--tip-r)) calc(100% - 1px),
    arc to calc(100% - 1px) calc(100% - var(--tip-r)) of calc(var(--tip-r) - 1px) ccw,
    line to calc(100% - 1px) calc(var(--tip-ah) + var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(var(--tip-ah) + 1px) of calc(var(--tip-r) - 1px) ccw,
    line to calc(var(--tip-r)) calc(var(--tip-ah) + 1px),
    arc to calc(1px) calc(var(--tip-ah) + var(--tip-r)) of calc(var(--tip-r) - 1px) ccw,
    line to calc(1px) calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) calc(100% - 1px) of calc(var(--tip-r) - 1px) ccw,
    close);
  --tip-arrow-hair: shape(evenodd from calc(var(--tip-r)) calc(100% - -0.5px),
    line to calc(100% - var(--tip-r)) calc(100% - -0.5px),
    arc to calc(100% - -0.5px) calc(100% - var(--tip-r)) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(100% - -0.5px) calc(var(--tip-ah) + var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(var(--tip-ah) + -0.5px) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(var(--tip-ah) + -0.5px),
    curve to var(--tip-ax) calc(-1.1px) with calc(var(--tip-ax) + 3.3px) calc(var(--tip-ah) + -0.5px),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(var(--tip-ah) + -0.5px) with calc(var(--tip-ax) - 3.3px) calc(var(--tip-ah) + -0.5px),
    line to calc(var(--tip-r)) calc(var(--tip-ah) + -0.5px),
    arc to calc(-0.5px) calc(var(--tip-ah) + var(--tip-r)) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(-0.5px) calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) calc(100% - -0.5px) of calc(var(--tip-r) - -0.5px) ccw,
    close,
    move to calc(var(--tip-r)) 100%,
    line to calc(100% - var(--tip-r)) 100%,
    arc to 100% calc(100% - var(--tip-r)) of var(--tip-r) ccw,
    line to 100% calc(var(--tip-ah) + var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(var(--tip-ah)) of var(--tip-r) ccw,
    line to calc(var(--tip-ax) + var(--tip-aw)) calc(var(--tip-ah)),
    curve to var(--tip-ax) 0 with calc(var(--tip-ax) + 3px) calc(var(--tip-ah)),
    curve to calc(var(--tip-ax) - var(--tip-aw)) calc(var(--tip-ah)) with calc(var(--tip-ax) - 3px) calc(var(--tip-ah)),
    line to calc(var(--tip-r)) calc(var(--tip-ah)),
    arc to 0 calc(var(--tip-ah) + var(--tip-r)) of var(--tip-r) ccw,
    line to 0 calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) 100% of var(--tip-r) ccw,
    close);
  --tip-arrow-fill: linear-gradient(to right, transparent calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) + var(--tip-aw)), transparent calc(var(--tip-ax) + var(--tip-aw))) 0 0 / 100% calc(var(--tip-ah) + 1px) no-repeat;
  --tip-arrow-ext: calc(var(--tip-ah) * -1) 0 0 0;
}
.tip--right {
  --tip-arrow-rim: shape(evenodd from 100% calc(var(--tip-r)),
    line to 100% calc(100% - var(--tip-r)),
    arc to calc(100% - var(--tip-r)) 100% of var(--tip-r) cw,
    line to calc(var(--tip-ah) + var(--tip-r)) 100%,
    arc to calc(var(--tip-ah)) calc(100% - var(--tip-r)) of var(--tip-r) cw,
    line to calc(var(--tip-ah)) calc(var(--tip-ax) + var(--tip-aw)),
    curve to 0 var(--tip-ax) with calc(var(--tip-ah)) calc(var(--tip-ax) + 3px),
    curve to calc(var(--tip-ah)) calc(var(--tip-ax) - var(--tip-aw)) with calc(var(--tip-ah)) calc(var(--tip-ax) - 3px),
    line to calc(var(--tip-ah)) calc(var(--tip-r)),
    arc to calc(var(--tip-ah) + var(--tip-r)) 0 of var(--tip-r) cw,
    line to calc(100% - var(--tip-r)) 0,
    arc to 100% calc(var(--tip-r)) of var(--tip-r) cw,
    close,
    move to calc(100% - 1px) calc(var(--tip-r)),
    line to calc(100% - 1px) calc(100% - var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(100% - 1px) of calc(var(--tip-r) - 1px) cw,
    line to calc(var(--tip-ah) + var(--tip-r)) calc(100% - 1px),
    arc to calc(var(--tip-ah) + 1px) calc(100% - var(--tip-r)) of calc(var(--tip-r) - 1px) cw,
    line to calc(var(--tip-ah) + 1px) calc(var(--tip-r)),
    arc to calc(var(--tip-ah) + var(--tip-r)) calc(1px) of calc(var(--tip-r) - 1px) cw,
    line to calc(100% - var(--tip-r)) calc(1px),
    arc to calc(100% - 1px) calc(var(--tip-r)) of calc(var(--tip-r) - 1px) cw,
    close);
  --tip-arrow-hair: shape(evenodd from calc(100% - -0.5px) calc(var(--tip-r)),
    line to calc(100% - -0.5px) calc(100% - var(--tip-r)),
    arc to calc(100% - var(--tip-r)) calc(100% - -0.5px) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(var(--tip-ah) + var(--tip-r)) calc(100% - -0.5px),
    arc to calc(var(--tip-ah) + -0.5px) calc(100% - var(--tip-r)) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(var(--tip-ah) + -0.5px) calc(var(--tip-ax) + var(--tip-aw)),
    curve to calc(-1.1px) var(--tip-ax) with calc(var(--tip-ah) + -0.5px) calc(var(--tip-ax) + 3.3px),
    curve to calc(var(--tip-ah) + -0.5px) calc(var(--tip-ax) - var(--tip-aw)) with calc(var(--tip-ah) + -0.5px) calc(var(--tip-ax) - 3.3px),
    line to calc(var(--tip-ah) + -0.5px) calc(var(--tip-r)),
    arc to calc(var(--tip-ah) + var(--tip-r)) calc(-0.5px) of calc(var(--tip-r) - -0.5px) cw,
    line to calc(100% - var(--tip-r)) calc(-0.5px),
    arc to calc(100% - -0.5px) calc(var(--tip-r)) of calc(var(--tip-r) - -0.5px) cw,
    close,
    move to 100% calc(var(--tip-r)),
    line to 100% calc(100% - var(--tip-r)),
    arc to calc(100% - var(--tip-r)) 100% of var(--tip-r) cw,
    line to calc(var(--tip-ah) + var(--tip-r)) 100%,
    arc to calc(var(--tip-ah)) calc(100% - var(--tip-r)) of var(--tip-r) cw,
    line to calc(var(--tip-ah)) calc(var(--tip-ax) + var(--tip-aw)),
    curve to 0 var(--tip-ax) with calc(var(--tip-ah)) calc(var(--tip-ax) + 3px),
    curve to calc(var(--tip-ah)) calc(var(--tip-ax) - var(--tip-aw)) with calc(var(--tip-ah)) calc(var(--tip-ax) - 3px),
    line to calc(var(--tip-ah)) calc(var(--tip-r)),
    arc to calc(var(--tip-ah) + var(--tip-r)) 0 of var(--tip-r) cw,
    line to calc(100% - var(--tip-r)) 0,
    arc to 100% calc(var(--tip-r)) of var(--tip-r) cw,
    close);
  --tip-arrow-fill: linear-gradient(to bottom, transparent calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) + var(--tip-aw)), transparent calc(var(--tip-ax) + var(--tip-aw))) 0 0 / calc(var(--tip-ah) + 1px) 100% no-repeat;
  --tip-arrow-ext: 0 0 0 calc(var(--tip-ah) * -1);
}
.tip--left {
  --tip-arrow-rim: shape(evenodd from 0 calc(var(--tip-r)),
    line to 0 calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) 100% of var(--tip-r) ccw,
    line to calc(100% - (var(--tip-ah) + var(--tip-r))) 100%,
    arc to calc(100% - var(--tip-ah)) calc(100% - var(--tip-r)) of var(--tip-r) ccw,
    line to calc(100% - var(--tip-ah)) calc(var(--tip-ax) + var(--tip-aw)),
    curve to 100% var(--tip-ax) with calc(100% - var(--tip-ah)) calc(var(--tip-ax) + 3px),
    curve to calc(100% - var(--tip-ah)) calc(var(--tip-ax) - var(--tip-aw)) with calc(100% - var(--tip-ah)) calc(var(--tip-ax) - 3px),
    line to calc(100% - var(--tip-ah)) calc(var(--tip-r)),
    arc to calc(100% - (var(--tip-ah) + var(--tip-r))) 0 of var(--tip-r) ccw,
    line to calc(var(--tip-r)) 0,
    arc to 0 calc(var(--tip-r)) of var(--tip-r) ccw,
    close,
    move to calc(1px) calc(var(--tip-r)),
    line to calc(1px) calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) calc(100% - 1px) of calc(var(--tip-r) - 1px) ccw,
    line to calc(100% - (var(--tip-ah) + var(--tip-r))) calc(100% - 1px),
    arc to calc(100% - (var(--tip-ah) + 1px)) calc(100% - var(--tip-r)) of calc(var(--tip-r) - 1px) ccw,
    line to calc(100% - (var(--tip-ah) + 1px)) calc(var(--tip-r)),
    arc to calc(100% - (var(--tip-ah) + var(--tip-r))) calc(1px) of calc(var(--tip-r) - 1px) ccw,
    line to calc(var(--tip-r)) calc(1px),
    arc to calc(1px) calc(var(--tip-r)) of calc(var(--tip-r) - 1px) ccw,
    close);
  --tip-arrow-hair: shape(evenodd from calc(-0.5px) calc(var(--tip-r)),
    line to calc(-0.5px) calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) calc(100% - -0.5px) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(100% - (var(--tip-ah) + var(--tip-r))) calc(100% - -0.5px),
    arc to calc(100% - (var(--tip-ah) + -0.5px)) calc(100% - var(--tip-r)) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(100% - (var(--tip-ah) + -0.5px)) calc(var(--tip-ax) + var(--tip-aw)),
    curve to calc(100% - -1.1px) var(--tip-ax) with calc(100% - (var(--tip-ah) + -0.5px)) calc(var(--tip-ax) + 3.3px),
    curve to calc(100% - (var(--tip-ah) + -0.5px)) calc(var(--tip-ax) - var(--tip-aw)) with calc(100% - (var(--tip-ah) + -0.5px)) calc(var(--tip-ax) - 3.3px),
    line to calc(100% - (var(--tip-ah) + -0.5px)) calc(var(--tip-r)),
    arc to calc(100% - (var(--tip-ah) + var(--tip-r))) calc(-0.5px) of calc(var(--tip-r) - -0.5px) ccw,
    line to calc(var(--tip-r)) calc(-0.5px),
    arc to calc(-0.5px) calc(var(--tip-r)) of calc(var(--tip-r) - -0.5px) ccw,
    close,
    move to 0 calc(var(--tip-r)),
    line to 0 calc(100% - var(--tip-r)),
    arc to calc(var(--tip-r)) 100% of var(--tip-r) ccw,
    line to calc(100% - (var(--tip-ah) + var(--tip-r))) 100%,
    arc to calc(100% - var(--tip-ah)) calc(100% - var(--tip-r)) of var(--tip-r) ccw,
    line to calc(100% - var(--tip-ah)) calc(var(--tip-ax) + var(--tip-aw)),
    curve to 100% var(--tip-ax) with calc(100% - var(--tip-ah)) calc(var(--tip-ax) + 3px),
    curve to calc(100% - var(--tip-ah)) calc(var(--tip-ax) - var(--tip-aw)) with calc(100% - var(--tip-ah)) calc(var(--tip-ax) - 3px),
    line to calc(100% - var(--tip-ah)) calc(var(--tip-r)),
    arc to calc(100% - (var(--tip-ah) + var(--tip-r))) 0 of var(--tip-r) ccw,
    line to calc(var(--tip-r)) 0,
    arc to 0 calc(var(--tip-r)) of var(--tip-r) ccw,
    close);
  --tip-arrow-fill: linear-gradient(to bottom, transparent calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) - var(--tip-aw)), var(--color-bg-glass) calc(var(--tip-ax) + var(--tip-aw)), transparent calc(var(--tip-ax) + var(--tip-aw))) 100% 0 / calc(var(--tip-ah) + 1px) 100% no-repeat;
  --tip-arrow-ext: 0 calc(var(--tip-ah) * -1) 0 0;
}
@supports not (clip-path: shape(from 0 0, line to 1px 0)) {
  .tip__arrow,
  .tip::after {
    display: none;
  }
  .tip::before {
    box-shadow: var(--shadow-glass-edge), 0 0 0 0.5px var(--color-shadow-glass-hairline);
  }
}
.tip--float {
  position: fixed;
  max-width: min(240px, calc(100% - var(--space-sm) * 2));
  overflow-wrap: anywhere;
  pointer-events: none;
  inset: auto;
  margin: 0;
  border: 0;
  overflow: visible;
}
.popover {
  --popover-r: var(--radius-lg);
  --popover-ah: var(--size-arrow-height);
  --popover-aw: calc(var(--size-arrow-width) / 2);
  --popover-ax: clamp(min(calc(var(--popover-r) + var(--popover-aw)), 50%), var(--popover-arrow-at, 50%), max(calc(100% - var(--popover-r) - var(--popover-aw)), 50%));
  --popover-arrow-rim: shape(evenodd from calc(var(--popover-r)) 100%,
    line to calc(100% - var(--popover-r)) 100%,
    arc to 100% calc(100% - var(--popover-r)) of var(--popover-r) ccw,
    line to 100% calc(var(--popover-ah) + var(--popover-r)),
    arc to calc(100% - var(--popover-r)) calc(var(--popover-ah)) of var(--popover-r) ccw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(var(--popover-ah)),
    curve to var(--popover-ax) 0 with calc(var(--popover-ax) + 3px) calc(var(--popover-ah)),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(var(--popover-ah)) with calc(var(--popover-ax) - 3px) calc(var(--popover-ah)),
    line to calc(var(--popover-r)) calc(var(--popover-ah)),
    arc to 0 calc(var(--popover-ah) + var(--popover-r)) of var(--popover-r) ccw,
    line to 0 calc(100% - var(--popover-r)),
    arc to calc(var(--popover-r)) 100% of var(--popover-r) ccw,
    close,
    move to calc(var(--popover-r)) calc(100% - 1px),
    line to calc(100% - var(--popover-r)) calc(100% - 1px),
    arc to calc(100% - 1px) calc(100% - var(--popover-r)) of calc(var(--popover-r) - 1px) ccw,
    line to calc(100% - 1px) calc(var(--popover-ah) + var(--popover-r)),
    arc to calc(100% - var(--popover-r)) calc(var(--popover-ah) + 1px) of calc(var(--popover-r) - 1px) ccw,
    line to calc(var(--popover-r)) calc(var(--popover-ah) + 1px),
    arc to calc(1px) calc(var(--popover-ah) + var(--popover-r)) of calc(var(--popover-r) - 1px) ccw,
    line to calc(1px) calc(100% - var(--popover-r)),
    arc to calc(var(--popover-r)) calc(100% - 1px) of calc(var(--popover-r) - 1px) ccw,
    close);
  --popover-arrow-hair: shape(evenodd from calc(var(--popover-r)) calc(100% - -0.5px),
    line to calc(100% - var(--popover-r)) calc(100% - -0.5px),
    arc to calc(100% - -0.5px) calc(100% - var(--popover-r)) of calc(var(--popover-r) - -0.5px) ccw,
    line to calc(100% - -0.5px) calc(var(--popover-ah) + var(--popover-r)),
    arc to calc(100% - var(--popover-r)) calc(var(--popover-ah) + -0.5px) of calc(var(--popover-r) - -0.5px) ccw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(var(--popover-ah) + -0.5px),
    curve to var(--popover-ax) calc(-1.1px) with calc(var(--popover-ax) + 3.3px) calc(var(--popover-ah) + -0.5px),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(var(--popover-ah) + -0.5px) with calc(var(--popover-ax) - 3.3px) calc(var(--popover-ah) + -0.5px),
    line to calc(var(--popover-r)) calc(var(--popover-ah) + -0.5px),
    arc to calc(-0.5px) calc(var(--popover-ah) + var(--popover-r)) of calc(var(--popover-r) - -0.5px) ccw,
    line to calc(-0.5px) calc(100% - var(--popover-r)),
    arc to calc(var(--popover-r)) calc(100% - -0.5px) of calc(var(--popover-r) - -0.5px) ccw,
    close,
    move to calc(var(--popover-r)) 100%,
    line to calc(100% - var(--popover-r)) 100%,
    arc to 100% calc(100% - var(--popover-r)) of var(--popover-r) ccw,
    line to 100% calc(var(--popover-ah) + var(--popover-r)),
    arc to calc(100% - var(--popover-r)) calc(var(--popover-ah)) of var(--popover-r) ccw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(var(--popover-ah)),
    curve to var(--popover-ax) 0 with calc(var(--popover-ax) + 3px) calc(var(--popover-ah)),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(var(--popover-ah)) with calc(var(--popover-ax) - 3px) calc(var(--popover-ah)),
    line to calc(var(--popover-r)) calc(var(--popover-ah)),
    arc to 0 calc(var(--popover-ah) + var(--popover-r)) of var(--popover-r) ccw,
    line to 0 calc(100% - var(--popover-r)),
    arc to calc(var(--popover-r)) 100% of var(--popover-r) ccw,
    close);
  --popover-arrow-fill: linear-gradient(to right, transparent calc(var(--popover-ax) - var(--popover-aw)), var(--color-bg-glass) calc(var(--popover-ax) - var(--popover-aw)), var(--color-bg-glass) calc(var(--popover-ax) + var(--popover-aw)), transparent calc(var(--popover-ax) + var(--popover-aw))) 0 0 / 100% calc(var(--popover-ah) + 1px) no-repeat;
  --popover-arrow-ext: calc(var(--popover-ah) * -1) 0 0 0;
  display: inline-block;
  min-width: 200px;
  max-width: 320px;
  padding: var(--space-lg);
  border-radius: var(--popover-r);
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  z-index: var(--z-dropdown);
}
:is(.menu-anchor--up > .popover:not(.is-down), .popover.is-up) {
  --popover-arrow-rim: shape(evenodd from calc(var(--popover-r)) 0,
    line to calc(100% - var(--popover-r)) 0,
    arc to 100% calc(var(--popover-r)) of var(--popover-r) cw,
    line to 100% calc(100% - (var(--popover-ah) + var(--popover-r))),
    arc to calc(100% - var(--popover-r)) calc(100% - var(--popover-ah)) of var(--popover-r) cw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(100% - var(--popover-ah)),
    curve to var(--popover-ax) 100% with calc(var(--popover-ax) + 3px) calc(100% - var(--popover-ah)),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(100% - var(--popover-ah)) with calc(var(--popover-ax) - 3px) calc(100% - var(--popover-ah)),
    line to calc(var(--popover-r)) calc(100% - var(--popover-ah)),
    arc to 0 calc(100% - (var(--popover-ah) + var(--popover-r))) of var(--popover-r) cw,
    line to 0 calc(var(--popover-r)),
    arc to calc(var(--popover-r)) 0 of var(--popover-r) cw,
    close,
    move to calc(var(--popover-r)) calc(1px),
    line to calc(100% - var(--popover-r)) calc(1px),
    arc to calc(100% - 1px) calc(var(--popover-r)) of calc(var(--popover-r) - 1px) cw,
    line to calc(100% - 1px) calc(100% - (var(--popover-ah) + var(--popover-r))),
    arc to calc(100% - var(--popover-r)) calc(100% - (var(--popover-ah) + 1px)) of calc(var(--popover-r) - 1px) cw,
    line to calc(var(--popover-r)) calc(100% - (var(--popover-ah) + 1px)),
    arc to calc(1px) calc(100% - (var(--popover-ah) + var(--popover-r))) of calc(var(--popover-r) - 1px) cw,
    line to calc(1px) calc(var(--popover-r)),
    arc to calc(var(--popover-r)) calc(1px) of calc(var(--popover-r) - 1px) cw,
    close);
  --popover-arrow-hair: shape(evenodd from calc(var(--popover-r)) calc(-0.5px),
    line to calc(100% - var(--popover-r)) calc(-0.5px),
    arc to calc(100% - -0.5px) calc(var(--popover-r)) of calc(var(--popover-r) - -0.5px) cw,
    line to calc(100% - -0.5px) calc(100% - (var(--popover-ah) + var(--popover-r))),
    arc to calc(100% - var(--popover-r)) calc(100% - (var(--popover-ah) + -0.5px)) of calc(var(--popover-r) - -0.5px) cw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(100% - (var(--popover-ah) + -0.5px)),
    curve to var(--popover-ax) calc(100% - -1.1px) with calc(var(--popover-ax) + 3.3px) calc(100% - (var(--popover-ah) + -0.5px)),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(100% - (var(--popover-ah) + -0.5px)) with calc(var(--popover-ax) - 3.3px) calc(100% - (var(--popover-ah) + -0.5px)),
    line to calc(var(--popover-r)) calc(100% - (var(--popover-ah) + -0.5px)),
    arc to calc(-0.5px) calc(100% - (var(--popover-ah) + var(--popover-r))) of calc(var(--popover-r) - -0.5px) cw,
    line to calc(-0.5px) calc(var(--popover-r)),
    arc to calc(var(--popover-r)) calc(-0.5px) of calc(var(--popover-r) - -0.5px) cw,
    close,
    move to calc(var(--popover-r)) 0,
    line to calc(100% - var(--popover-r)) 0,
    arc to 100% calc(var(--popover-r)) of var(--popover-r) cw,
    line to 100% calc(100% - (var(--popover-ah) + var(--popover-r))),
    arc to calc(100% - var(--popover-r)) calc(100% - var(--popover-ah)) of var(--popover-r) cw,
    line to calc(var(--popover-ax) + var(--popover-aw)) calc(100% - var(--popover-ah)),
    curve to var(--popover-ax) 100% with calc(var(--popover-ax) + 3px) calc(100% - var(--popover-ah)),
    curve to calc(var(--popover-ax) - var(--popover-aw)) calc(100% - var(--popover-ah)) with calc(var(--popover-ax) - 3px) calc(100% - var(--popover-ah)),
    line to calc(var(--popover-r)) calc(100% - var(--popover-ah)),
    arc to 0 calc(100% - (var(--popover-ah) + var(--popover-r))) of var(--popover-r) cw,
    line to 0 calc(var(--popover-r)),
    arc to calc(var(--popover-r)) 0 of var(--popover-r) cw,
    close);
  --popover-arrow-fill: linear-gradient(to right, transparent calc(var(--popover-ax) - var(--popover-aw)), var(--color-bg-glass) calc(var(--popover-ax) - var(--popover-aw)), var(--color-bg-glass) calc(var(--popover-ax) + var(--popover-aw)), transparent calc(var(--popover-ax) + var(--popover-aw))) 0 100% / 100% calc(var(--popover-ah) + 1px) no-repeat;
  --popover-arrow-ext: 0 0 calc(var(--popover-ah) * -1) 0;
}
.popover:has(> .popover__arrow) {
  isolation: isolate;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
:where(.popover:has(> .popover__arrow)) {
  position: relative;
}
.popover:has(> .popover__arrow)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: var(--popover-r);
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  box-shadow: var(--shadow-glass-glow), var(--shadow-glass-lift);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  pointer-events: none;
}
.popover__arrow {
  position: absolute;
  inset: var(--popover-arrow-ext);
  z-index: -1;
  clip-path: var(--popover-arrow-rim);
  background: var(--popover-arrow-fill), var(--gradient-glass-rim);
  pointer-events: none;
}
.popover:has(> .popover__arrow)::after {
  content: "";
  position: absolute;
  inset: var(--popover-arrow-ext);
  z-index: -1;
  clip-path: var(--popover-arrow-hair);
  background: var(--color-shadow-glass-hairline);
  box-shadow: 0 0 0 1px var(--color-shadow-glass-hairline);
  pointer-events: none;
}
@supports not (clip-path: shape(from 0 0, line to 1px 0)) {
  .popover__arrow,
  .popover:has(> .popover__arrow)::after {
    display: none;
  }
  .popover:has(> .popover__arrow)::before {
    box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  }
}
.popover[hidden] {
  display: none;
}
.popover__title {
  margin-bottom: var(--space-sm);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.popover__body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}
.popover__list {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0 0 0 var(--space-lg);
  list-style: "・" outside;
}
.popover__list > li::marker {
  color: var(--color-text-tertiary);
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: var(--size-control-height-md);
  padding: 0 var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  border-color: var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.btn--sm {
  height: var(--size-control-height-sm);
  padding: 0 var(--space-sm);
}
.btn--sm .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.btn--link.btn--sm {
  height: var(--size-control-height-sm);
}
.btn--lg {
  height: var(--size-control-height-lg);
}
.btn--block {
  width: 100%;
}
.btn:has(> .ic, > .btn__spinner):not(.btn--icon):not(.btn--link):not(.btn--sm) {
  padding-left: 12px;
  padding-right: var(--space-lg);
}
.btn--icon {
  padding: 0;
  aspect-ratio: 1;
}
.btn:hover,
.btn.is-hover {
  border-color: var(--color-action-primary);
  background: var(--color-action-subtle);
  color: var(--color-text-accent);
}
.btn:active,
.btn.is-active {
  border-color: var(--color-action-press);
  color: var(--color-action-press);
}
.btn--primary {
  --mesh-color: var(--color-action-primary);
  --mesh-strength: var(--tint-primary-mesh);
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 14px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow), transparent), 0 1px 2px var(--color-shadow-btn-primary);
}
.btn--primary:hover,
.btn--primary.is-hover {
  --mesh-strength: var(--tint-primary-mesh-hover);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-hover)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-hover)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-hover), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-hover), transparent), 0 1px 2px var(--color-shadow-btn-primary);
}
.btn--primary:active,
.btn--primary.is-active {
  --mesh-strength: var(--tint-primary-mesh-press);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-from-press)), color-mix(in srgb, var(--color-bg-page), var(--color-action-primary) var(--tint-primary-to-press)));
  border-color: color-mix(in srgb, var(--color-action-primary) var(--tint-primary-border-press), transparent);
  color: var(--color-text-btn-primary);
  box-shadow: 0 0 10px -4px color-mix(in srgb, var(--color-action-primary) var(--tint-primary-glow-press), transparent), inset 0 1px 2px var(--color-shadow-btn-primary-press);
}
.btn--tertiary {
  background: none;
  border-color: transparent;
  color: var(--color-text-secondary);
  box-shadow: none;
}
.btn--tertiary:hover,
.btn--tertiary.is-hover {
  background: var(--color-bg-subtle);
  border-color: transparent;
  color: var(--color-text-primary);
}
.btn--tertiary:active,
.btn--tertiary.is-active {
  background: var(--color-bg-hover);
  border-color: transparent;
  color: var(--color-text-primary);
}
.btn--tertiary[aria-pressed="true"] {
  background: var(--color-bg-selected-glass);
  box-shadow: var(--shadow-selected);
  color: var(--color-text-selected);
}
.btn--tertiary[aria-pressed="true"]:hover,
.btn--tertiary[aria-pressed="true"].is-hover,
.btn--tertiary[aria-pressed="true"]:active,
.btn--tertiary[aria-pressed="true"].is-active {
  background: var(--color-bg-selected-glass-hover);
  box-shadow: var(--shadow-selected-hover);
  color: var(--color-text-selected);
}
.btn--link {
  height: auto;
  padding: 0;
  background: none;
  border-color: transparent;
  color: var(--color-text-link);
  box-shadow: none;
}
.btn--link:hover,
.btn--link.is-hover {
  background: none;
  border-color: transparent;
  color: var(--color-action-hover);
  text-decoration: underline;
}
.btn--link:active,
.btn--link.is-active {
  background: none;
  border-color: transparent;
  color: var(--color-action-press);
}
.btn--primary.btn--danger,
.btn--primary.btn--danger:hover,
.btn--primary.btn--danger.is-hover,
.btn--primary.btn--danger:active,
.btn--primary.btn--danger.is-active {
  background: var(--color-warning-solid);
  border-color: var(--color-warning-solid);
  color: var(--color-text-on-accent);
  box-shadow: none;
}
.btn--primary.btn--success,
.btn--primary.btn--success:hover,
.btn--primary.btn--success.is-hover,
.btn--primary.btn--success:active,
.btn--primary.btn--success.is-active {
  background: var(--color-success-solid);
  border-color: var(--color-success-solid);
  color: var(--color-text-on-accent);
  box-shadow: none;
}
.btn--primary.btn--notice,
.btn--primary.btn--notice:hover,
.btn--primary.btn--notice.is-hover,
.btn--primary.btn--notice:active,
.btn--primary.btn--notice.is-active {
  background: var(--color-notice-solid);
  border-color: var(--color-notice-solid);
  color: var(--color-text-on-accent);
  box-shadow: none;
}
.btn--primary.btn--danger:hover,
.btn--primary.btn--success:hover,
.btn--primary.btn--notice:hover,
.btn--primary.btn--danger.is-hover,
.btn--primary.btn--success.is-hover,
.btn--primary.btn--notice.is-hover {
  filter: brightness(1.08);
}
.btn--primary.btn--danger:active,
.btn--primary.btn--success:active,
.btn--primary.btn--notice:active,
.btn--primary.btn--danger.is-active,
.btn--primary.btn--success.is-active,
.btn--primary.btn--notice.is-active {
  filter: brightness(0.92);
}
.btn--danger {
  border-color: var(--color-warning-solid);
  color: var(--color-warning-text);
}
.btn--danger:hover,
.btn--danger.is-hover,
.btn--danger:active,
.btn--danger.is-active {
  border-color: var(--color-warning-solid);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}
.btn--success {
  border-color: var(--color-success-solid);
  color: var(--color-success-text);
}
.btn--success:hover,
.btn--success.is-hover,
.btn--success:active,
.btn--success.is-active {
  border-color: var(--color-success-solid);
  background: var(--color-success-bg);
  color: var(--color-success-text);
}
.btn--notice {
  border-color: var(--color-notice-solid);
  color: var(--color-notice-text);
}
.btn--notice:hover,
.btn--notice.is-hover,
.btn--notice:active,
.btn--notice.is-active {
  border-color: var(--color-notice-solid);
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
}
.btn--tertiary.btn--danger,
.btn--link.btn--danger {
  border-color: transparent;
  background: none;
}
.btn--tertiary.btn--danger {
  color: var(--color-text-secondary);
}
.btn--tertiary.btn--danger:hover,
.btn--tertiary.btn--danger.is-hover,
.btn--tertiary.btn--danger:focus-visible,
.btn--tertiary.btn--danger.is-focus {
  background: var(--color-warning-bg);
  border-color: transparent;
  color: var(--color-warning-text);
}
.btn--tertiary.btn--danger:active,
.btn--tertiary.btn--danger.is-active {
  background: var(--color-warning-bg);
  border-color: transparent;
  color: var(--color-warning-text);
}
.btn--link.btn--danger:hover,
.btn--link.btn--danger.is-hover {
  background: none;
  color: var(--color-warning-text);
}
.btn {
  --btn-wave: var(--color-action-focus-ring);
}
.btn--danger {
  --btn-wave: var(--color-warning-border);
}
.btn--success {
  --btn-wave: var(--color-success-border);
}
.btn--notice {
  --btn-wave: var(--color-notice-border);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 var(--space-sm) var(--btn-wave);
  opacity: 0;
  pointer-events: none;
  transition: box-shadow var(--duration-slow) var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard);
}
.btn:active::after {
  box-shadow: 0 0 0 0 var(--btn-wave);
  opacity: 1;
  transition: none;
}
.btn--tertiary::after,
.btn--link::after,
.btn:disabled::after,
.btn[aria-disabled="true"]::after,
.btn--loading::after {
  content: none;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
  color: var(--color-text-disabled);
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--tertiary:disabled,
.btn--link:disabled,
.btn--tertiary[aria-disabled="true"],
.btn--link[aria-disabled="true"] {
  background: none;
  border-color: transparent;
  text-decoration: none;
}
.btn--loading {
  cursor: progress;
  pointer-events: none;
}
.btn__spinner {
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: var(--radius-full);
  background: var(--gradient-loader);
  -webkit-mask: var(--mask-loader-ring);
  mask: var(--mask-loader-ring);
  animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.btn--link.btn--icon {
  aspect-ratio: auto;
}
@media (prefers-reduced-motion: reduce) {
  .btn::after {
    content: none;
  }
}
.table .btn {
  height: calc(var(--icon-md) + 2 * var(--space-xs));
}
.table .menu-anchor > .btn--icon {
  width: calc(var(--icon-md) + 2 * var(--space-xs));
}
.table .btn--sm {
  height: var(--size-control-height-sm);
}
.modal__foot .btn {
  flex: none;
  min-width: 100px;
}
.btn-split > .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-split > .btn--caret {
  width: var(--size-control-height-md);
  padding: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-split > .btn--sm.btn--caret {
  width: var(--size-control-height-sm);
}
.btn-split > .btn--lg.btn--caret {
  width: var(--size-control-height-lg);
}
.btn-split > .btn--caret {
  margin-left: -1px;
}
.btn-split > .btn--primary.btn--caret {
  margin-left: 0;
  border-left: 1px solid
    color-mix(in srgb, var(--color-text-on-accent) 24%, transparent);
}
.field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  height: var(--size-control-height-md);
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text-placeholder);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  min-width: var(--size-control-min-width);
  transition: border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.field__icon {
  color: var(--color-text-tertiary);
}
.field--date {
  position: relative;
}
.field--date .field__input {
  font-variant-numeric: tabular-nums;
}
.field__picker {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  margin: calc(-1 * var(--space-xs));
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.field__picker:hover,
.field__picker.is-hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}
.field.is-disabled .field__picker {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.field__native {
  position: absolute;
  right: var(--space-sm);
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.field-range {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.field-range > .field {
  flex: 1;
  min-width: 0;
}
.field-range__sep {
  flex: none;
  color: var(--color-text-tertiary);
}
select.field__input {
  -webkit-appearance: none;
  appearance: none;
  color: var(--color-text-primary);
  cursor: pointer;
}
.field__caret {
  flex: none;
  color: var(--color-text-tertiary);
}
.field.is-disabled .field__caret {
  color: var(--color-text-disabled);
}
.field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-text-primary);
  outline: none;
}
.field__input::placeholder {
  color: var(--color-text-placeholder);
}
.field__input:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text-primary);
  caret-color: var(--color-text-primary);
  -webkit-background-clip: text;
  background-clip: text;
}
.field__input:-webkit-autofill:disabled {
  -webkit-text-fill-color: var(--color-text-disabled);
}
.field--textarea .field__input {
  height: auto;
  min-height: calc(var(--leading-body) * 3);
  line-height: var(--leading-body);
  resize: vertical;
}
.field--lg {
  height: var(--size-control-height-lg);
}
.field--collapsible {
  width: var(--size-control-height-md);
  min-width: 0;
  padding: 0;
  gap: 0;
  border-color: transparent;
  background: none;
  overflow: hidden;
  transition: width var(--duration-md) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.field--collapsible:not(.is-expanded):hover,
.field--collapsible:not(.is-expanded).is-hover {
  border-color: transparent;
}
.field--collapsible:not(.is-expanded) .field__input,
.field--collapsible:not(.is-expanded) .field__clear {
  display: none;
}
.field__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--size-control-height-md);
  height: var(--size-control-height-md);
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.field__toggle:hover,
.field__toggle.is-hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}
.field--collapsible.is-expanded .field__toggle {
  cursor: default;
}
.field--collapsible.is-expanded .field__toggle:hover,
.field--collapsible.is-expanded .field__toggle.is-hover {
  background: none;
  color: var(--color-text-tertiary);
}
.field--collapsible.is-expanded {
  width: 280px;
  padding-right: var(--space-sm);
  gap: var(--space-sm);
  border-color: var(--color-border-subtle);
  background: var(--color-bg-page);
}
.field:hover,
.field.is-hover {
  border-color: var(--color-action-primary);
}
.field:active,
.field.is-active {
  border-color: var(--color-action-press);
}
.field:focus-within,
.field.is-focus {
  border-color: var(--color-action-primary);
}
.field:has(:focus-visible),
.field.is-focus-ring {
  border-color: var(--color-action-primary);
}
.field.is-filled {
  color: var(--color-text-primary);
}
.field.is-error {
  border-color: var(--color-warning-solid);
}
.field.is-disabled {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-subtle);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.field.is-disabled .field__icon {
  color: var(--color-text-disabled);
}
.field--textarea {
  height: auto;
  align-items: flex-start;
  padding: var(--space-sm) 0;
}
.field--textarea .field__input {
  overflow-y: auto;
  min-height: calc(var(--leading-body) * 4);
  max-height: calc(var(--leading-body) * 16);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .field--textarea .field__input {
      overflow-y: scroll;
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .field--textarea .field__input {
    scrollbar-gutter: stable;
  }
}
.field--search .field__icon:first-child {
  color: var(--color-text-tertiary);
}
.field__input[type="search"]::-webkit-search-cancel-button,
.field__input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.field__clear {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-sm);
  height: var(--icon-sm);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}
.field__clear:hover,
.field__clear.is-hover {
  color: var(--color-text-secondary);
}
.field__clear:active,
.field__clear.is-active {
  color: var(--color-text-primary);
}
.field.is-disabled .field__clear {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.field[hidden],
.field__clear[hidden] {
  display: none;
}
.field-msg {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-tertiary);
}
.field-msg--error {
  color: var(--color-warning-text);
}
.field-msg[hidden] {
  display: none;
}
.field__count,
.field__unit {
  flex: none;
  margin-left: var(--space-sm);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field__count {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.field__unit {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
}
.field__count {
  min-width: var(--field-count-width, 11ch);
  text-align: right;
}
.field.is-error .field__count {
  color: var(--color-warning-text);
  font-weight: var(--weight-medium);
}
.field.is-disabled .field__count,
.field.is-disabled .field__unit {
  color: var(--color-text-disabled);
}
.field--counted {
  position: relative;
}
.field--counted .field__input {
  padding-bottom: calc(var(--leading-caption) + var(--space-xs));
}
.field--counted .field__count {
  position: absolute;
  right: calc(var(--size-scrollbar) + var(--space-sm));
  bottom: var(--space-sm);
  margin-left: 0;
  padding-left: var(--space-xs);
  background: inherit;
  pointer-events: none;
}
.field--color {
  padding: var(--space-xs);
  padding-right: var(--space-sm);
  font-variant-numeric: tabular-nums;
}
.field--number .field__input {
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.field--number .field__input::-webkit-inner-spin-button,
.field--number .field__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.field__spin {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  margin-right: calc(var(--space-sm) * -1);
  border-left: 1px solid var(--color-border-faint);
}
.field__step {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-lg);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.field__step:first-child {
  border-top-right-radius: calc(var(--radius-md) - 1px);
}
.field__step:last-child {
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
}
.field__step:hover,
.field__step.is-hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}
.field__step > .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.field.is-disabled .field__step {
  background: none;
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.listbar .field.field--search {
  width: 280px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: var(--size-content-max-width);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.form-grid,
.form-grid--2col {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(
      min(
        100%,
        max(
          var(--size-control-min-width),
          (100% - var(--space-lg) * (var(--form-cols, 2) - 1)) / var(--form-cols, 2)
        )
      ),
      1fr
    )
  );
  gap: var(--space-lg);
}
.form-group__title {
  margin: var(--space-lg) 0 0;
  font-family: var(--font-sans);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.form-group:first-child .form-group__title {
  margin-top: 0;
}
.form-subgroup + .form-subgroup {
  margin-top: var(--space-lg);
}
.form-subgroup__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.field-reveal {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-subtle);
  background-image: linear-gradient(180deg, var(--color-bg-sheen), transparent var(--space-xl));
}
.field-reveal .field-reveal {
  border: 1px solid var(--color-border-faint);
  background-color: var(--color-bg-page);
}
.field-reveal--reorder {
  padding-inline-start: var(--space-xs);
}
.field-reveal[hidden] {
  display: none;
}
.form-divider {
  height: 1px;
  margin: var(--space-lg) 0;
  background: var(--color-border-faint);
}
.form-divider + .form-group > .form-group__title {
  margin-top: 0;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.field-row {
  display: flex;
  flex-direction: column;
}
.field-row > .seg,
.field-row > .check,
.field-row > .radio,
.field-row > .switch,
.field-row > .btn {
  align-self: flex-start;
}
.field-desc {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-tertiary);
}
.field-desc + * {
  margin-top: var(--space-xs);
}
.field-desc + .field-reveal,
.field-desc + .select-card-row,
.field-desc + .upload,
.field-desc + .upload-pic,
.field-desc + .field-block {
  margin-top: var(--space-sm);
}
.field-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.field-options--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.label {
  display: flex;
  align-items: center;
  gap: 0 var(--space-sm);
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
}
.label__title {
  min-width: 0;
}
.label__optional {
  color: var(--color-text-tertiary);
}
.label > .ic:not(.label__prefix),
.label__info > .ic {
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  cursor: help;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.label > .ic:not(.label__prefix):hover,
.label > .ic:not(.label__prefix).is-hover,
.label__info > .ic:hover,
.label__info > .ic.is-hover {
  background: var(--color-bg-subtle);
  box-shadow: 0 0 0 var(--space-xs) var(--color-bg-subtle);
  color: var(--color-text-primary);
}
.label > .ic:not(.label__prefix):active,
.label > .ic:not(.label__prefix).is-active,
.label__info > .ic:active,
.label__info > .ic.is-active {
  background: var(--color-bg-hover);
  box-shadow: 0 0 0 var(--space-xs) var(--color-bg-hover);
  color: var(--color-text-primary);
}
.label > .ic:not(.label__prefix).is-focus,
.label__info > .ic.is-focus {
  outline: 2px solid var(--color-action-focus-ring);
  outline-offset: 2px;
}
.label__count {
  margin-left: auto;
  font-weight: var(--weight-regular);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.label:has(+ .field-desc) {
  margin-bottom: 0;
}
.label:has(+ .select-card-row),
.label:has(+ .field-reveal),
.label:has(+ .upload),
.label:has(+ .upload-pic),
.label:has(+ .field-block) {
  margin-bottom: var(--space-sm);
}
.label--switch > .switch {
  gap: 0;
}
.label__prefix {
  flex: none;
  color: var(--color-text-tertiary);
  margin-inline-end: calc(var(--space-xs) - var(--space-sm));
}
.label__info {
  position: relative;
  display: inline-flex;
  flex: none;
}
.label__link {
  margin-inline-start: auto;
  flex: none;
  font-size: inherit;
  color: var(--color-text-accent);
}
.btn-split {
  display: inline-flex;
}
.menu-anchor {
  position: relative;
}
.menu-anchor--block {
  display: block;
  width: 100%;
}
.menu-anchor > .menu,
.menu-anchor > .cal,
.menu-anchor > .colorpicker {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-xs);
  width: 100%;
  min-width: max-content;
}
.menu-anchor > .popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  border-top: var(--space-xs) solid transparent;
  isolation: isolate;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.menu-anchor > .popover:has(> .popover__arrow) {
  left: calc(50% - var(--radius-lg) - var(--size-arrow-width) / 2);
  border-top-width: var(--space-sm);
  --popover-arrow-at: calc(var(--radius-lg) + var(--size-arrow-width) / 2);
}
.menu-anchor > .popover:not(:has(> .popover__arrow))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: var(--radius-lg);
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  pointer-events: none;
}
.menu-anchor > .menu.is-up,
.menu-anchor > .cal.is-up,
.menu-anchor > .colorpicker.is-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}
.menu-anchor > .menu:popover-open,
.menu-anchor > .cal:popover-open,
.menu-anchor > .colorpicker:popover-open {
  position: fixed;
  margin: 0;
  border: 0;
  color: inherit;
}
.menu-anchor > .cal:popover-open,
.menu-anchor > .colorpicker:popover-open {
  overflow: visible;
}
.menu-anchor--up > .popover {
  top: auto;
  bottom: 100%;
  border-top: 0;
  border-bottom: var(--space-sm) solid transparent;
}
.menu-anchor--up > .popover.is-down {
  top: 100%;
  bottom: auto;
  border-bottom: 0;
  border-top: var(--space-sm) solid transparent;
}
.toast-msg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  --mesh-color: var(--color-action-primary);
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-semantic-from)), color-mix(in srgb, var(--color-bg-page), var(--mesh-color) var(--tint-semantic-to)));
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mesh-color) var(--tint-semantic-border), transparent), var(--shadow-glass-drop);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  z-index: var(--z-toast);
}
:where(.toast-msg) {
  position: relative;
}
.toast-msg > .ic { flex-shrink: 0; }
.toast-msg__action {
  flex: none;
  margin-left: var(--space-sm);
}
.toast-msg--success { --mesh-color: var(--color-success-solid); }
.toast-msg--warning { --mesh-color: var(--color-warning-solid); }
.toast-msg--notice  { --mesh-color: var(--color-notice-solid); }
.toast-msg--info    { --mesh-color: var(--color-info-solid); }
.toast-msg--success > .ic { color: var(--color-success-solid); }
.toast-msg--warning   > .ic { color: var(--color-warning-solid); }
.toast-msg--notice  > .ic { color: var(--color-notice-solid); }
.toast-msg--info    > .ic { color: var(--color-info-icon); }
.toast-msg--loading { --mesh-color: var(--color-info-solid); }
.toast-msg--loading > .ic { color: var(--color-text-accent); animation: btn-spin 0.8s linear infinite; }
.progress {
  --bar-color: var(--color-success-solid);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.progress__track {
  flex: 1;
  height: var(--size-bar-height);
  border-radius: var(--radius-full);
  background: var(--color-bg-hover);
  overflow: hidden;
}
.progress__bar {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-md) var(--ease-standard);
}
.progress--notice  { --bar-color: var(--color-notice-solid); }
.progress--warning { --bar-color: var(--color-warning-solid); }
.progress__label {
  min-width: 44px;
  text-align: left;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
}
.skel {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    var(--color-bg-subtle) 25%,
    var(--color-bg-hover) 37%,
    var(--color-bg-subtle) 63%);
  background-size: 400% 100%;
  animation: skel-wave 1.4s var(--ease-standard) infinite;
}
.skel--title  { height: var(--leading-h3); width: 40%; }
.skel--text   { height: var(--leading-body); }
.skel--avatar { width: var(--size-logo); height: var(--size-logo); border-radius: var(--radius-full); }
.skel--btn    { height: var(--size-control-height-md); width: 96px; border-radius: var(--radius-md); }
@keyframes skel-wave {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  text-align: center;
}
.empty__text {
  font-size: var(--text-body);
  color: var(--color-text-primary);
}
.empty__hint {
  font-size: var(--text-caption);
  color: var(--color-text-placeholder);
}
.empty > .ic {
  width: var(--space-xl);
  height: var(--space-xl);
  color: var(--color-text-disabled);
}
.empty--error > .ic { color: var(--color-warning-solid); }
.empty--fill {
  height: 100%;
  flex: 1;
  min-height: 0;
  justify-content: center;
}
.table__emptycell .empty {
  min-height: 320px;
}
.load-wrap {
  position: relative;
}
.load-wrap.is-loading > :not(.load-wrap__veil) {
  opacity: 0.4;
  pointer-events: none;
}
.load-wrap__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-raised);
}
.load-wrap__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  backdrop-filter: var(--backdrop-glass);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
}
.table-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.table th {
  height: var(--size-table-head-height);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border-faint);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-align: left;
  white-space: nowrap;
}
.table th:first-child { border-top-left-radius: var(--radius-md); }
.table th:last-child { border-top-right-radius: var(--radius-md); }
.table td {
  height: 48px;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border-faint);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.table td.table__emptycell {
  white-space: normal;
}
.table td.table__name {
  min-width: 240px;
  color: var(--color-text-primary);
}
.table tbody tr {
  transition: background var(--duration-fast) var(--ease-standard);
}
.table tbody tr:hover,
.table tbody tr.is-hover {
  background: var(--color-bg-hover);
}
.table tbody tr.is-selected {
  background: var(--color-bg-selected-glass);
}
.table tbody tr.is-selected:hover,
.table tbody tr.is-selected.is-hover {
  background: var(--color-bg-selected-glass-hover);
}
.table__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}
.table th.table__idcell,
.table td.table__idcell {
  width: 48px;
  min-width: 48px;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}
.table th.table__check,
.table td.table__check {
  width: 48px;
  min-width: 48px;
  padding-right: var(--space-sm);
}
.table--checkless .table__check {
  display: none;
}
.table--checkless thead th.table__check + th {
  border-top-left-radius: var(--radius-md);
}
.table--sticky tbody tr {
  background: var(--color-bg-page);
}
.table--sticky th.table__check,
.table--sticky td.table__check,
.table--sticky th.table__idcell,
.table--sticky td.table__idcell,
.table--sticky th.table__namecell,
.table--sticky td.table__name,
.table--sticky th.table__actioncell,
.table--sticky td.table__actioncell {
  position: sticky;
  background: inherit;
}
.table--sticky tbody td {
  z-index: 1;
}
.table--sticky thead tr {
  background: var(--color-bg-subtle);
}
.table--sticky thead th.table__check,
.table--sticky thead th.table__idcell,
.table--sticky thead th.table__namecell,
.table--sticky thead th.table__actioncell {
  z-index: 5;
}
@media (min-width: 768px) {
  .table--sticky .table__check,
  .table--sticky .table__idcell,
  .table--sticky .table__namecell,
  .table--sticky td.table__name { left: 0; }
  .table--sticky .table__check + .table__idcell,
  .table--sticky :is(.table__check, .table__idcell) + :is(.table__namecell, td.table__name) {
    left: 48px;
  }
  .table--sticky .table__check + .table__idcell + :is(.table__namecell, td.table__name) {
    left: 96px;
  }
  .table--sticky .table__actioncell { right: 0; }
  .table--sticky.table--checkless .table__check + .table__idcell,
  .table--sticky.table--checkless .table__check + :is(.table__namecell, td.table__name) {
    left: 0;
  }
  .table--sticky.table--checkless .table__check + .table__idcell + :is(.table__namecell, td.table__name) {
    left: 48px;
  }
}
.table--sticky th.table__namecell::after,
.table--sticky td.table__name::after,
.table--sticky th.table__actioncell::after,
.table--sticky td.table__actioncell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: -1px;
  width: var(--space-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.table-scroll.is-scrolling .table--sticky th.table__namecell::after,
.table-scroll.is-scrolling .table--sticky td.table__name::after,
.table-scroll.is-scrolling .table--sticky th.table__actioncell::after,
.table-scroll.is-scrolling .table--sticky td.table__actioncell::after {
  opacity: 1;
}
.table--sticky th.table__namecell::after,
.table--sticky td.table__name::after {
  right: 0;
  transform: translateX(100%);
  background: linear-gradient(to right,
    var(--color-shadow-edge), transparent);
}
.table--sticky th.table__actioncell::after,
.table--sticky td.table__actioncell::after {
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(to left,
    var(--color-shadow-edge), transparent);
}
.table td.table__emptycell {
  height: auto;
  padding: 0;
  border-bottom: none;
}
.table--empty {
  height: 100%;
}
.table.table--empty tbody tr:hover,
.table.table--empty tbody tr.is-hover {
  background: none;
}
.table th.table__expandcell,
.table td.table__expandcell {
  width: 48px;
  padding-right: var(--space-xs);
}
.table tbody tr.table__exprow,
.table tbody tr.table__exprow:hover {
  background: var(--color-bg-subtle);
  transition: none;
}
.table tbody tr.table__exprow td {
  padding-left: calc(48px + var(--space-lg));
  color: var(--color-text-secondary);
}
.table__expand .ic {
  transition: transform var(--duration-fast) var(--ease-standard);
}
.table__expand.is-open .ic {
  transform: rotate(90deg);
}
.table__expkey {
  color: var(--color-text-tertiary);
  margin-right: var(--space-xs);
}
.table__expkey:not(:first-child) {
  margin-left: var(--space-lg);
}
.btn.table__copy {
  color: var(--color-text-tertiary);
}
@media (max-width: 767px) {
  .table--sticky tbody td.table__check,
  .table--sticky tbody td.table__idcell,
  .table--sticky tbody td.table__name,
  .table--sticky tbody td.table__actioncell {
    position: static;
  }
  .table--sticky thead th.table__check,
  .table--sticky thead th.table__idcell,
  .table--sticky thead th.table__namecell,
  .table--sticky thead th.table__actioncell {
    left: auto;
    right: auto;
    z-index: 3;
  }
  .table--sticky th.table__namecell::after,
  .table--sticky td.table__name::after,
  .table--sticky th.table__actioncell::after,
  .table--sticky td.table__actioncell::after {
    display: none;
  }
  .table th.table__idcell,
  .table td.table__idcell {
    display: none;
  }
  .table thead th.table__idcell + th {
    border-top-left-radius: var(--radius-md);
  }
}
.pager {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.pager__item {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size-control-height-md);
  height: var(--size-control-height-md);
  padding: 0 var(--space-xs);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.pager__item:hover,
.pager__item.is-hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
.pager__item.is-current {
  border-color: transparent;
  background: var(--color-bg-selected-glass);
  box-shadow: var(--shadow-selected);
  color: var(--color-text-selected);
  font-weight: var(--weight-medium);
}
.pager__item:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  background: none;
}
.pager__gap {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size-control-height-md);
  height: var(--size-control-height-md);
  color: var(--color-text-tertiary);
  user-select: none;
}
.pager__jump {
  flex: none;
}
.pager__set {
  display: contents;
}
.pager__status {
  display: none;
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .pager__jump {
    display: none;
  }
}
@media (max-width: 767px) {
  .pager__set {
    display: none;
  }
  .pager__status {
    display: inline-flex;
  }
}
.listfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  width: 100%;
}
.listfoot__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  min-width: 0;
}
.listfoot__total {
  flex: none;
  white-space: nowrap;
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}
.listfoot__end {
  margin-left: auto;
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-lg);
}
.listfoot__end > .field {
  width: auto;
}
.loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-control-height-lg);
  padding: var(--space-lg) 0;
}
.loadmore__end {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}
.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text-tertiary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.upload.is-error {
  border-color: var(--color-warning-solid);
}
.upload:hover,
.upload.is-hover,
.upload.is-dragover {
  border-color: var(--color-action-primary);
  background: var(--color-bg-selected);
  color: var(--color-text-accent);
}
.upload.is-disabled {
  border-color: var(--color-border-subtle);
  background: var(--color-bg-subtle);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
.upload-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 48px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.upload-file:hover,
.upload-file.is-hover { border-color: var(--color-action-primary); }
.upload-file__actions .btn--icon .ic {
  width: var(--icon-md);
  height: var(--icon-md);
}
.upload-file > .ic {
  width: var(--icon-lg);
  height: var(--icon-lg);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}
.upload-file.is-done > .ic { color: var(--color-success-solid); }
.upload-file.is-error > .ic { color: var(--color-warning-solid); }
.upload-file__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.upload-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--weight-regular);
  line-height: var(--leading-caption);
}
.upload-file__meta {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.upload-file__actions {
  position: absolute;
  right: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
  padding-left: var(--space-sm);
  background: var(--color-bg-page);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.upload-file:hover .upload-file__actions,
.upload-file:focus-within .upload-file__actions,
.upload-file.is-hover .upload-file__actions,
.upload-file.is-focus .upload-file__actions {
  opacity: 1;
  pointer-events: auto;
}
.upload-file.is-error .upload-file__meta { color: var(--color-warning-text); }
.crop-stage {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-image: repeating-conic-gradient(var(--color-bg-subtle) 0% 25%, var(--color-bg-page) 0% 50%);
  background-size: 16px 16px;
}
.crop-stage__img {
  position: absolute;
  inset: 0;
}
.crop-stage__hole {
  position: absolute;
  inset: var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px dashed var(--color-bg-page);
  background: transparent;
  box-shadow: 0 0 0 999px var(--color-scrim);
}
.crop-stage__hole--square { border-radius: var(--radius-sm); }
.crop-stage__handle {
  position: absolute;
  left: var(--at-x, 0%);
  top: var(--at-y, 0%);
  width: var(--space-sm);
  height: var(--space-sm);
  margin: calc(var(--space-sm) / -2) 0 0 calc(var(--space-sm) / -2);
  border: 1px solid var(--color-bg-page);
  background: var(--color-action-primary);
}
.crop-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.crop-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.crop-preview__main {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
}
.crop-preview__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  align-self: stretch;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border-faint);
}
.crop-preview__s {
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
}
.upload-pic {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  color: var(--color-text-tertiary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.upload-pic:hover,
.upload-pic.is-hover {
  border-color: var(--color-action-primary);
  color: var(--color-text-accent);
}
.upload-pic.is-filled {
  border-style: solid;
  border-color: var(--color-border-subtle);
}
.upload-pic__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-pic__mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-scrim);
  color: var(--color-text-on-accent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.upload-pic.is-filled:hover .upload-pic__mask,
.upload-pic.is-filled.is-hover .upload-pic__mask { opacity: 1; }
.upload-pic__mask .ic { cursor: pointer; }
.upload-pic--avatar {
  border-radius: var(--radius-full);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  width: 100%;
}
.kpi {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.kpi__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}
.kpi__ic {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
}
.kpi__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}
.kpi__value {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-sm);
}
.kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}
.kpi.is-good .kpi__trend { color: var(--color-success-text); }
.kpi.is-bad  .kpi__trend { color: var(--color-warning-text); }
.kpi__vs {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.kpi__spark {
  flex: 0 1 96px;
  min-width: 56px;
}
.kpi__spark polyline {
  fill: none;
  stroke: var(--color-chart-1);
  stroke-width: 2;
}
.kpi.is-good .kpi__spark polyline { stroke: var(--color-success-text); }
.kpi.is-bad  .kpi__spark polyline { stroke: var(--color-warning-text); }
@media (max-width: 1024px) { .kpi-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px)  { .kpi-row { grid-template-columns: 1fr; } }
.rankbadge {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  background: var(--color-bg-subtle);
  color: var(--color-text-tertiary);
}
.rankbadge--1 { background: var(--color-action-primary); color: var(--color-text-on-accent); }
.rankbadge--2 { background: var(--c-blue-100); color: var(--color-action-primary); }
.rankbadge--3 { background: var(--c-blue-50); color: var(--c-blue-400); }
.th-sort__btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.th-sort__btn:hover,
.th-sort__btn.is-hover { color: var(--color-action-hover); }
.th-sort__arrows {
  display: inline-flex;
  flex-direction: column;
  line-height: 0;
}
.th-sort__arrows .ic {
  width: 12px;
  height: 12px;
  color: var(--color-text-placeholder);
}
.th-sort__arrows .th-sort__down { margin-top: -4px; }
.th-sort[data-sort-state='desc'] .th-sort__btn,
.th-sort[data-sort-state='asc'] .th-sort__btn { color: var(--color-text-accent); }
.th-sort[data-sort-state='desc'] .th-sort__down,
.th-sort[data-sort-state='asc'] .th-sort__up { color: var(--color-text-accent); }
.th-sort[data-sort-state='desc'] .th-sort__up,
.th-sort[data-sort-state='asc'] .th-sort__down { visibility: hidden; }
.table th.th-sort {
  padding: 0;
}
.color-chip {
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  cursor: pointer;
}
.colorpicker {
  --picker-swatch: var(--icon-lg);
  --picker-w: calc(var(--picker-swatch) * 8 + var(--space-xs) * 7);
  width: calc(var(--picker-w) + var(--space-sm) * 2);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  font-family: var(--font-sans);
}
.menu-anchor > .colorpicker {
  width: calc(var(--picker-w) + var(--space-sm) * 2);
  min-width: 0;
}
.colorpicker[hidden] {
  display: none;
}
.colorpicker__sv {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(to top, var(--c-ink-100), transparent),
    linear-gradient(to right, var(--color-text-on-accent), transparent),
    var(--picker-hue, hsl(230 100% 50%));
  cursor: crosshair;
  touch-action: none;
}
.colorpicker__hue {
  position: relative;
  height: var(--space-lg);
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
  background: linear-gradient(
    to right,
    hsl(0 100% 50%), hsl(60 100% 50%), hsl(120 100% 50%),
    hsl(180 100% 50%), hsl(240 100% 50%), hsl(300 100% 50%), hsl(360 100% 50%)
  );
  cursor: ew-resize;
  touch-action: none;
}
.colorpicker__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--space-sm);
  height: var(--space-sm);
  margin: calc(var(--space-xs) * -1) 0 0 calc(var(--space-xs) * -1);
  border: 2px solid var(--color-text-on-accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 1px var(--c-ink-45);
  pointer-events: none;
}
.colorpicker__thumb--hue {
  top: 50%;
  width: var(--space-lg);
  height: var(--space-lg);
  margin: calc(var(--space-sm) * -1) 0 0 calc(var(--space-sm) * -1);
}
.colorpicker__sv:focus-visible,
.colorpicker__hue:focus-visible,
.colorpicker__sv.is-focus,
.colorpicker__hue.is-focus {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
}
.colorpicker__presets {
  display: grid;
  grid-template-columns: repeat(8, var(--picker-swatch));
  gap: var(--space-xs);
}
.colorpicker__preset {
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  cursor: pointer;
}
.colorpicker__preset:hover,
.colorpicker__preset.is-hover {
  box-shadow: inset 0 0 0 1px var(--color-border-subtle),
    0 0 0 2px var(--color-action-primary);
}
.colorpicker__preset.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-text-on-accent) 75%, transparent),
    0 0 0 2px var(--color-action-primary),
    0 2px 6px -1px color-mix(in srgb, var(--color-action-primary) 45%, transparent);
}
.field.is-disabled .color-chip {
  cursor: not-allowed;
}
.divider.colorpicker__divider {
  margin: var(--space-sm) 0;
}
.listbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}
.listbar .field.select {
  width: 160px;
  min-width: 0;
}
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.app > .sider {
  flex: none;
  height: 100%;
  overflow: hidden;
}
.app__col {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.app__col > .shellbar {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  flex: none;
}
.app__main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-xl);
  background: var(--color-bg-canvas);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .app__main {
      overflow-y: scroll;
      padding-right: calc(var(--space-xl) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .app__main {
    scrollbar-gutter: stable;
  }
}
.app__main--flush {
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
  background: var(--color-bg-page);
}
.page {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.panel {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .app { height: auto; overflow: visible; }
  .app > .sider { display: none; }
  .app__main { padding: var(--space-lg); }
  @media (pointer: fine) {
    @supports selector(::-webkit-scrollbar-thumb) {
      .app__main { padding-right: calc(var(--space-lg) - var(--size-scrollbar)); }
    }
  }
}
.auth-demo {
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  width: 1280px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-page);
}
.auth-demo__brand {
  margin: calc(var(--space-lg) + var(--space-sm));
  margin-right: 0;
}
.auth-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--c-blue-900), var(--c-brand-blue));
}
.auth-cover__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    var(--c-blue-900) 0deg,
    var(--c-blue-700) 70deg,
    var(--c-brand-blue) 140deg,
    var(--c-blue-600) 210deg,
    var(--c-blue-800) 290deg,
    var(--c-blue-900) 360deg);
  filter: blur(60px);
  opacity: 0.85;
  animation: auth-cover-spin 30s var(--ease-linear) infinite;
}
@keyframes auth-cover-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.auth-cover__liquid {
  position: absolute;
  inset: -25%;
  filter: blur(50px);
  opacity: 0.55;
  background:
    radial-gradient(circle 32% at 22% 30%, color-mix(in srgb, var(--c-brand-blue) 78%, transparent), transparent 60%),
    radial-gradient(circle 28% at 74% 22%, color-mix(in srgb, var(--c-blue-700) 82%, transparent), transparent 60%),
    radial-gradient(circle 34% at 55% 78%, color-mix(in srgb, var(--c-blue-400) 55%, transparent), transparent 62%);
  background-repeat: no-repeat;
  animation: auth-cover-liquid 24s var(--ease-standard) infinite alternate;
}
@keyframes auth-cover-liquid {
  0%   { background-position:   0%   0%,   0%   0%,   0%   0%; transform: scale(1); }
  50%  { background-position:  14%  -8%, -12%  10%,  -8% -12%; transform: scale(1.06); }
  100% { background-position:  -9%  12%,  11%  -9%,  13%   8%; transform: scale(1); }
}
.auth-demo__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-cover__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-cover__rail {
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}
.cover-tick {
  position: relative;
  width: 40px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.cover-tick::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 0.5px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--color-text-on-accent) 50%, transparent);
  transition: width var(--duration-fast) var(--ease-standard),
    height var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.cover-tick:hover::after,
.cover-tick.is-hover::after {
  width: 32px;
  height: 1px;
  background: color-mix(in srgb, var(--color-text-on-accent) 80%, transparent);
}
.cover-tick.is-current::after {
  width: 32px;
  height: 1px;
  background: var(--color-text-on-accent);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--color-text-on-accent) 90%, transparent),
    0 0 16px color-mix(in srgb, var(--color-text-on-accent) 55%, transparent);
}
.cover-tick:focus-visible,
.cover-tick.is-focus {
  border-radius: var(--radius-sm);
}
.auth-cover__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 62% at 50% 50%,
    transparent 38%,
    color-mix(in srgb, var(--c-neutral-900) 24%, transparent) 68%,
    color-mix(in srgb, var(--c-neutral-900) 60%, transparent) 100%);
}
.auth-cover__orb {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: 95%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
@media (prefers-reduced-motion: reduce) {
  .auth-cover__spin,
  .auth-cover__liquid { animation: none; }
}
.auth-demo__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .auth-demo__main {
      overflow-y: scroll;
      padding-right: calc(var(--space-lg) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .auth-demo__main {
    scrollbar-gutter: stable;
  }
}
.auth-demo[data-auth-mode='forgot'] {
  grid-template-columns: 1fr;
}
.auth-demo[data-auth-mode='forgot'] .auth-demo__brand {
  display: none;
}
.btn.auth-demo__lang {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: min(360px, 100%);
}
.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.auth-form__group > .pwbar {
  margin-top: var(--space-xs);
}
.auth-form__pwfield {
  padding-right: var(--space-xs);
}
.auth-form__submit {
  margin-top: calc(120px - var(--space-lg) * 2 - var(--leading-body));
}
.auth-form__logo {
  height: 40px;
  width: auto;
  align-self: center;
  margin-bottom: calc(120px - var(--space-lg));
}
.auth-form__pane {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.auth-form__pane[hidden] {
  display: none;
}
.check.auth-form__policy-check {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.auth-form__pane--reg {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-left: calc(-1 * (36px + var(--space-lg)));
}
.auth-form__fields {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}
.auth-form__back {
  flex: none;
}
.auth-form__gap24 {
  margin-top: var(--space-sm);
}
.auth-form .divider {
  margin: calc(var(--space-lg) + var(--space-xs)) 0;
}
.auth-form__policy {
  margin: calc(-1 * var(--space-sm)) 0 0;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.auth-form__policy .btn--link,
.auth-form__policy-check .btn--link,
.auth-form__links .btn--link {
  height: auto;
  padding: 0;
  font-size: inherit;
}
.auth-form__divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
}
.auth-form__divider::before,
.auth-form__divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--color-border-faint);
}
.auth-form__sso {
  gap: var(--space-sm);
}
.auth-form__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}
@media (max-width: 1024px) {
  .auth-demo { grid-template-columns: 1fr; }
  .auth-demo__brand { display: none; }
}
.notify__list[hidden] {
  display: none;
}
.sider {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: var(--size-sider-width);
  padding: var(--space-lg) var(--space-sm);
  background: var(--color-bg-page);
  border-right: 1px solid var(--color-border-faint);
}
.sider--rail {
  width: var(--size-sider-collapsed-width);
}
.sider__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--space-xl);
  max-height: var(--size-nav-item-height);
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-sm);
}
.sider__logo > * {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sider--rail .sider__logo { justify-content: center; padding: 0; }
.sider__org {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--size-control-height-md);
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
}
.sider__org:hover,
.sider__org.is-hover { background: var(--color-bg-subtle); }
.sider__org .ic { color: var(--color-text-tertiary); }
.sider__org-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--weight-medium);
}
.sider--rail .sider__org { justify-content: center; padding: 0; border: none; }
.sider__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--size-control-height-md);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast);
}
.sider__item:hover,
.sider__item.is-hover { background: var(--color-bg-item-hover); color: var(--color-text-primary); }
.sider__item:active,
.sider__item.is-active { background: var(--color-bg-item-press); }
.sider__item.is-current {
  background: var(--color-bg-selected-glass);
  box-shadow: var(--shadow-selected);
  color: var(--color-text-selected);
  font-weight: var(--weight-medium);
}
.sider__item.is-current:hover,
.sider__item.is-current.is-hover {
  background: var(--color-bg-selected-glass-hover);
  box-shadow: var(--shadow-selected-hover);
  color: var(--color-text-selected);
}
.sider__item.is-onpath:not(.is-current) {
  color: var(--color-text-accent);
  font-weight: var(--weight-medium);
}
.sider__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sider__caret {
  color: var(--color-text-disabled);
  transition: transform var(--duration-fast);
}
.sider__group.is-closed .sider__caret { transform: rotate(-90deg); }
.sider__group.is-closed .sider__subs { display: none; }
.sider__subs .sider__item { padding-left: calc(var(--space-sm) + var(--icon-md) + var(--space-sm)); }
.sider--rail .sider__item { justify-content: center; padding: 0; }
.sider__menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .sider__menu {
      overflow-y: scroll;
      margin-right: calc(var(--space-sm) * -1);
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .sider__menu {
    scrollbar-gutter: stable;
  }
}
.sider--rail .sider__menu {
  margin-right: 0;
  scrollbar-width: none;
  scrollbar-gutter: auto;
}
.sider--rail .sider__menu::-webkit-scrollbar {
  display: none;
}
.sider__foot {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-faint);
}
.shellbar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 52px;
  padding: 0 var(--space-xl);
  background: var(--color-bg-page);
  border-bottom: 1px solid var(--color-border-faint);
}
.shellbar__spacer { flex: 1; }
.shellbar__group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.shellbar__gbtn {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.shellbar__gbtn:hover,
.shellbar__gbtn.is-hover { background: var(--color-bg-subtle); color: var(--color-text-primary); }
.shellbar__gbtn .badge--dot { position: absolute; top: 4px; right: 4px; }
.shellbar__user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 48px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.shellbar__user:hover,
.shellbar__user.is-hover { background: var(--color-bg-subtle); }
.shellbar__user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.shellbar__user-name { font-weight: var(--weight-medium); }
.shellbar__user-org { font-size: var(--text-caption); color: var(--color-text-tertiary); }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
  color: var(--color-text-tertiary);
}
.crumb a { color: var(--color-text-tertiary); text-decoration: none; }
.crumb a:hover,
.crumb a.is-hover { color: var(--color-text-primary); }
.crumb .ic { width: var(--icon-sm); height: var(--icon-sm); }
.crumb b { color: var(--color-text-primary); font-weight: var(--weight-medium); }
.notify {
  width: 600px;
  background: var(--gradient-glass-sheen), var(--color-bg-glass);
  backdrop-filter: var(--backdrop-glass-heavy);
  -webkit-backdrop-filter: var(--backdrop-glass-heavy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass-edge), var(--shadow-glass-drop);
}
.notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-lg) 0;
  font-weight: var(--weight-bold);
}
.notify .tabs--fill {
  margin-top: var(--space-sm);
  margin-inline: var(--space-sm);
  overflow: visible;
}
.notify__list {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.notify-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.notify-card:hover,
.notify-card.is-hover { background: var(--color-bg-item-hover); }
.notify-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--weight-medium);
}
.notify-card__title .t {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notify-card__meta {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}
.notify-card__unread {
  color: var(--color-text-accent);
}
.notify-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  color: var(--color-text-secondary);
}
.chat-home {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: var(--space-lg);
}
.chat-home__bodywrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-home__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-home__body::-webkit-scrollbar { width: 0; }
.chat-home__inner {
  width: 100%;
  max-width: var(--size-chat-max-width);
  margin: 0 auto;
}
.chat-home__foot {
  flex: none;
  position: relative;
  z-index: var(--z-raised);
}
.chat-home__greeting {
  margin: 0 0 var(--space-xl);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-align: center;
}
.chat-home--panel-open .chat-home__body {
  justify-content: flex-start;
  overflow: visible;
}
.chat-home--panel-open .chat-home__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.chat-home--panel-open .chat-home__panel {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
}
.quick-cards {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-lg);
  width: 100px;
  height: 100px;
  flex: none;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.quick-card:hover,
.quick-card.is-hover {
  border-color: var(--color-action-primary);
  background: var(--color-action-subtle);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-accent);
}
.quick-card:active,
.quick-card.is-active {
  border-color: var(--color-action-press);
  color: var(--color-action-press);
}
.quick-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.quick-card:hover .quick-card__icon,
.quick-card.is-hover .quick-card__icon,
.quick-card:active .quick-card__icon,
.quick-card.is-active .quick-card__icon,
.quick-card.is-current .quick-card__icon { color: inherit; }
.quick-card__label {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: inherit;
}
.quick-card.is-current {
  border-color: var(--color-action-primary);
  color: var(--color-text-accent);
}
.quick-card.is-current .quick-card__label { font-weight: var(--weight-medium); }
.chathead {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--size-control-height-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-faint);
}
.chathead__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}
.chathead__tools {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--space-sm);
  margin-inline-start: auto;
}
.chathead__tools > .menu-anchor { display: flex; }
.chathead__div {
  flex: none;
  width: 1px;
  height: var(--icon-md);
  background: var(--color-border-subtle);
}
.chathead .menu-anchor > .popover,
.chathead .menu-anchor > .menu {
  top: 100%;
  bottom: auto;
  left: auto;
  right: 0;
  margin-top: var(--space-xs);
  margin-bottom: 0;
}
.hintchip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: var(--space-xs);
  max-width: 160px;
  height: 28px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  background: none;
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.hintchip.is-on { color: var(--color-text-secondary); }
.hintchip:hover,
.hintchip.is-hover,
.hintchip.is-open {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}
.hintchip:active,
.hintchip.is-active { background: var(--color-bg-hover); }
.hintchip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-inline-end: calc(var(--space-xs) * -1);
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.hintchip__x:hover,
.hintchip__x.is-hover {
  background: var(--color-bg-hover);
  box-shadow: 0 0 0 2px var(--color-bg-hover);
  color: var(--color-text-primary);
}
.agentchip {
  --chip-hue: var(--color-action-primary);
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid color-mix(in srgb, var(--chip-hue) 32%, var(--color-bg-page));
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--chip-hue) 8%, var(--color-bg-page));
  color: color-mix(in srgb, var(--chip-hue) 80%, var(--color-text-primary));
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  white-space: nowrap;
}
.agentchip > .ic { width: var(--icon-sm); height: var(--icon-sm); flex: none; }
.agenttile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.agenttile--sm { width: var(--icon-md); height: var(--icon-md); font-size: var(--text-caption); }
.agenttile--lg { width: var(--size-logo); height: var(--size-logo); font-size: var(--text-h4); }
.agenttile--sm > .ic { width: 14px; height: 14px; }
.agenttile--lg > .ic { width: var(--icon-md); height: var(--icon-md); }
.agenttile--bare { background: none; border-radius: 0; }
.agenttile--bare.agenttile--sm { width: var(--icon-sm); height: var(--icon-sm); margin: 0 2px; }
.agenttile--bare.agenttile--lg { width: var(--icon-lg); height: var(--icon-lg); margin: 0 var(--space-xs); }
.wk-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: min(var(--size-chat-max-width), 100%);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.wk-msg { display: flex; }
.wk-msg--user { justify-content: flex-end; }
.wk-msg--user .wk-bubble {
  max-width: 75%;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
.wk-msg--ai {
  flex-direction: column;
  gap: var(--space-sm);
}
.wk-sender {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}
.wk-body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
}
.wk-body p { margin: 0 0 var(--space-sm); white-space: pre-wrap; }
.wk-body p:last-child { margin-bottom: 0; }
.wk-body ul { margin: 0 0 var(--space-sm); padding-left: var(--space-lg); }
.wk-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-text-tertiary) 25%,
    var(--color-text-primary) 50%,
    var(--color-text-tertiary) 75%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wk-shimmer 1.6s linear infinite;
}
@keyframes wk-shimmer {
  to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-shimmer {
    animation: none;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--color-text-secondary);
  }
}
.composer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.composer__box {
  width: 100%;
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-halo);
  background: var(--color-bg-page);
}
.composer__textarea {
  width: 100%;
  border: 0;
  background: none;
  resize: none;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  min-height: calc(var(--leading-body) * 2 + var(--space-lg) * 2);
  max-height: calc(var(--leading-body) * 16 + var(--space-lg) * 2);
  padding: var(--space-lg);
  border-radius: inherit;
}
.composer__textarea:focus { outline: none; }
.composer__textarea::placeholder { color: var(--color-text-tertiary); }
.composer__bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: max-content;
  max-width: 100%;
  padding: var(--space-xs);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
}
.composer__chip,
.composer__bar .field.select {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  height: var(--size-control-height-md);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: none;
  box-shadow: none;
  color: var(--color-text-secondary);
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.composer__chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-sm);
  white-space: nowrap;
  font-size: var(--text-body);
  cursor: pointer;
}
.composer__chip:hover,
.composer__chip.is-hover,
.composer__chip.is-open,
.composer__bar .field.select:hover,
.composer__bar .field.select.is-open {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}
.composer__chip.is-on,
.composer__bar .field.select,
.composer__bar .field.select.is-open {
  background: var(--color-bg-selected-glass);
  box-shadow: var(--shadow-selected);
  color: var(--color-text-selected);
}
.composer__chip.is-on:hover,
.composer__chip.is-on.is-hover,
.composer__bar .field.select:hover,
.composer__bar .field.select.is-hover {
  background: var(--color-bg-selected-glass-hover);
  box-shadow: var(--shadow-selected-hover);
  color: var(--color-text-selected);
}
.composer__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--size-control-height-sm);
  height: var(--size-control-height-sm);
  border-radius: var(--radius-full);
  color: var(--color-text-selected);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}
.composer__chip-x:hover,
.composer__chip-x.is-hover {
  color: var(--color-action-hover);
  text-decoration: underline;
}
.composer__chip-x:active,
.composer__chip-x.is-active { color: var(--color-action-press); }
.composer__round.btn { border-radius: var(--radius-full); }
.composer__caps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.capchip > .ic:first-child { color: var(--color-text-tertiary); }
.capchip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}
.capchip__x:hover,
.capchip__x.is-hover {
  background: var(--color-bg-hover);
  box-shadow: 0 0 0 2px var(--color-bg-hover);
  color: var(--color-text-primary);
}
.capitem {
  height: auto;
  padding: var(--space-xs) var(--space-sm);
}
.capitem.is-selected { background: var(--color-bg-selected); }
.capitem__check {
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.capitem__check .check__box { margin-top: 3px; }
.capitem__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.capitem__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-primary);
}
.capitem__desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-text-tertiary);
}
.composer .menu-anchor > .popover,
.composer .menu-anchor > .menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}
.usage-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.usage-row__label {
  flex: 0 0 var(--size-control-min-width);
  margin-right: var(--space-sm);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body);
  color: var(--color-text-primary);
}
.usage-row__bar {
  flex: 1;
  min-width: 0;
}
.usage-row__value {
  flex: 0 0 auto;
  min-width: var(--space-2xl);
  text-align: left;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
}
.search-palette {
  min-height: 0;
}
.search-palette__head {
  flex: none;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-faint);
}
.search-palette__body {
  flex: 1;
  min-height: 0;
  padding: var(--space-sm);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .search-palette__body {
      overflow-y: scroll;
      padding-right: 0;
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .search-palette__body {
    scrollbar-gutter: stable;
  }
}
.search-palette__body .menu {
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  z-index: auto;
}
.search-palette__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scroll-area {
  --scroll-area-pad: var(--space-lg);
  overflow-y: auto;
  padding-right: var(--scroll-area-pad);
}
@media (pointer: fine) {
  @supports selector(::-webkit-scrollbar-thumb) {
    .scroll-area {
      overflow-y: scroll;
      padding-right: calc(var(--scroll-area-pad) - var(--size-scrollbar));
    }
  }
}
@supports not selector(::-webkit-scrollbar-thumb) {
  .scroll-area {
    scrollbar-gutter: stable;
  }
}
@property --scroll-fade-top {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --scroll-fade-bottom {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes scroll-edge-fade {
  0% { --scroll-fade-top: 0px; --scroll-fade-bottom: var(--size-scroll-fade); }
  6% { --scroll-fade-top: var(--size-scroll-fade); }
  94% { --scroll-fade-bottom: var(--size-scroll-fade); }
  100% { --scroll-fade-top: var(--size-scroll-fade); --scroll-fade-bottom: 0px; }
}
.player {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.player__time {
  flex: none;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.player__timeline {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.player__controls {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.player__scrub {
  position: relative;
  flex: 1;
  min-width: 160px;
}
.player__range {
  color: inherit;
  font: inherit;
  background: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.player__scrub:has(.player__range:focus-visible),
.player__scrub.is-focus {
  border-radius: var(--radius-full);
}
.player--mini {
  gap: var(--space-sm);
}
.player__track {
  display: block;
  flex: 1;
  min-width: 80px;
  height: var(--size-bar-height-sm);
  border-radius: var(--radius-full);
  background: var(--color-bg-hover);
  overflow: hidden;
}
.player__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--radius-full);
  --bar-color: var(--color-action-primary);
}
.player.is-disabled .player__time {
  color: var(--color-text-disabled);
}
.player.is-disabled .player__bar {
  background: var(--color-border-subtle);
  box-shadow: none;
}
.player.is-disabled .player__range {
  pointer-events: none;
}
.pwbar {
  --bar-color: var(--color-warning-solid);
  display: block;
  height: var(--size-bar-height-sm);
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--color-bg-hover);
  overflow: hidden;
}
.pwbar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition:
    width var(--duration-slow) var(--ease-standard),
    --bar-color var(--duration-slow) var(--ease-standard);
}
.pwbar[data-score='1'] .pwbar__fill { width: 20%; }
.pwbar[data-score='2'] .pwbar__fill { width: 40%; }
.pwbar[data-score='3'] .pwbar__fill { width: 60%; }
.pwbar[data-score='4'] .pwbar__fill { width: 80%; }
.pwbar[data-score='5'] .pwbar__fill { width: 100%; }
.pwbar[data-score='3'],
.pwbar[data-score='4'] { --bar-color: var(--color-notice-solid); }
.pwbar[data-score='5'] { --bar-color: var(--color-success-solid); }
@media (prefers-reduced-motion: reduce) {
  .pwbar__fill {
    transition: none;
  }
}
.grip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--space-sm);
  cursor: col-resize;
  touch-action: none;
  z-index: 1;
}
.grip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--color-grip);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.grip:hover::after,
.grip:focus-visible::after,
.grip.is-dragging::after,
.grip.is-hover::after,
.grip.is-focus::after {
  opacity: 1;
}
.grip.is-dragging::after {
  background: var(--color-grip-active);
}
.grip:focus-visible {
  outline: none;
}
.grip-host.is-resizing {
  cursor: col-resize;
  user-select: none;
}
.grip-host {
  position: relative;
}
.inline-edit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}
.inline-edit__input {
  flex: 1;
  min-width: 0;
  height: calc(var(--size-control-height-md) - var(--space-sm));
  padding: 0 var(--space-xs);
  border: 1px solid var(--color-action-primary);
  border-radius: var(--radius-sm);
  background: var(--color-bg-page);
  font: inherit;
  color: var(--color-text-primary);
}
.inline-edit.is-error .inline-edit__input {
  border-color: var(--color-warning-border);
}
.inline-edit__ok,
.inline-edit__cancel {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-lg);
  height: var(--icon-lg);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.inline-edit__ok:hover,
.inline-edit__ok.is-hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-accent);
}
.inline-edit__cancel:hover,
.inline-edit__cancel.is-hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}
.inline-edit-row .inline-edit__trigger {
  flex: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.inline-edit-row:hover .inline-edit__trigger,
.inline-edit-row:focus-within .inline-edit__trigger,
.inline-edit-row.is-hover .inline-edit__trigger,
.inline-edit-row.is-focus .inline-edit__trigger {
  opacity: 1;
}
.inline-edit__trigger[hidden] {
  display: none;
}
@media (hover: none) {
  .inline-edit-row .inline-edit__trigger {
    opacity: 1;
  }
}
@property --zone {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}
@property --zone-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.zone-select,
.zone-select__menu {
  --zone: var(--color-zone-work);
  transition: --zone var(--duration-xslow) var(--ease-standard);
}
.zone-select[data-zone="build"],
.zone-select__menu[data-zone="build"],
.zone-select__menu .menu__item[data-zone="build"] {
  --zone: var(--color-zone-build);
}
.zone-select[data-zone="admin"],
.zone-select__menu[data-zone="admin"],
.zone-select__menu .menu__item[data-zone="admin"] {
  --zone: var(--color-zone-admin);
}
.zone-select__menu .menu__item[data-zone="work"] {
  --zone: var(--color-zone-work);
}
.zone-select__menu:has(.menu__item[data-zone="work"]:hover),
.zone-select__menu:has(.menu__item[data-zone="work"].is-hover) { --zone: var(--color-zone-work); }
.zone-select__menu:has(.menu__item[data-zone="build"]:hover),
.zone-select__menu:has(.menu__item[data-zone="build"].is-hover) { --zone: var(--color-zone-build); }
.zone-select__menu:has(.menu__item[data-zone="admin"]:hover),
.zone-select__menu:has(.menu__item[data-zone="admin"].is-hover) { --zone: var(--color-zone-admin); }
.zone-select {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  height: calc(var(--size-control-height-lg) + var(--space-sm));
  padding: 0 var(--space-sm);
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120px 60px at 12% 120%, color-mix(in srgb, var(--zone) 22%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--zone) var(--tint-zone-from), transparent), color-mix(in srgb, var(--zone) var(--tint-zone-to), transparent));
  box-shadow:
    inset 0 1px 0 var(--color-shadow-glass-edge),
    inset 0 -1px 0 color-mix(in srgb, var(--zone) 18%, transparent),
    0 1px 2px color-mix(in srgb, var(--zone) 14%, transparent),
    0 4px 12px -4px color-mix(in srgb, var(--zone) 28%, transparent);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition:
    --zone var(--duration-xslow) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}
.zone-select:hover,
.zone-select.is-hover {
  transform: translateY(-1px);
}
.zone-select__ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--zone-angle), transparent 0 40%,
    color-mix(in srgb, var(--zone) 18%, transparent) 62%,
    color-mix(in srgb, var(--zone) 45%, transparent) 80%,
    color-mix(in srgb, color-mix(in srgb, var(--zone), white 35%) 75%, transparent) 90%,
    color-mix(in srgb, var(--zone) 20%, transparent) 96%, transparent 100%);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
  animation: zone-flow var(--cycle-flow) linear infinite;
  pointer-events: none;
}
.zone-select::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--zone-angle), transparent 0 45%,
    color-mix(in srgb, var(--zone) 22%, transparent) 75%,
    color-mix(in srgb, var(--zone) 30%, transparent) 88%, transparent 100%);
  filter: blur(6px);
  opacity: 0.8;
  -webkit-mask: linear-gradient(90deg, black, transparent var(--space-lg), transparent calc(100% - var(--space-lg)), black), linear-gradient(180deg, black, transparent var(--space-sm), transparent calc(100% - var(--space-sm)), black);
  mask: linear-gradient(90deg, black, transparent var(--space-lg), transparent calc(100% - var(--space-lg)), black), linear-gradient(180deg, black, transparent var(--space-sm), transparent calc(100% - var(--space-sm)), black);
  animation: zone-flow var(--cycle-flow) linear infinite;
  pointer-events: none;
}
@keyframes zone-flow {
  to { --zone-angle: 360deg; }
}
.zone-select__tile {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--space-xl);
  height: var(--space-xl);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--zone), color-mix(in srgb, var(--zone), white 20%));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 35%, transparent),
    0 2px 6px color-mix(in srgb, var(--zone) 35%, transparent);
  color: white;
}
.zone-select__tile > .ic {
  color: inherit;
}
.zone-select > .zone-select__tile > .ic {
  animation: zone-show-work var(--cycle-showcase) var(--ease-standard) infinite;
}
.zone-select[data-zone="build"] > .zone-select__tile > .ic {
  animation-name: zone-show-build;
  transform-origin: 50% 100%;
}
.zone-select[data-zone="admin"] > .zone-select__tile > .ic {
  animation-name: zone-show-admin;
  transform-origin: 50% 100%;
}
@keyframes zone-show-work {
  0%, 60% { transform: rotate(0) scale(1); }
  70% { transform: rotate(90deg) scale(1.25); }
  80% { transform: rotate(180deg) scale(0.9); }
  88% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(180deg) scale(1); }
}
@keyframes zone-show-build {
  0%, 60% { transform: translateY(0) rotate(0); }
  66% { transform: translateY(-4px) rotate(-10deg); }
  72% { transform: translateY(-4px) rotate(8deg); }
  78% { transform: translateY(-3px) rotate(-6deg); }
  86% { transform: translateY(0) rotate(0) scaleY(0.88); }
  92%, 100% { transform: translateY(0) rotate(0) scaleY(1); }
}
@keyframes zone-show-admin {
  0%, 60% { transform: scaleY(1); opacity: 1; }
  66% { transform: scaleY(0.2); opacity: 0.4; }
  80% { transform: scaleY(1.12); opacity: 1; }
  88% { transform: scaleY(0.96); }
  100% { transform: scaleY(1); }
}
.zone-select__name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: var(--weight-medium);
}
.zone-select__caret {
  flex: none;
  color: var(--color-zone-work-text);
  filter:
    drop-shadow(0 -0.6px 0 var(--color-shadow-glass-edge))
    drop-shadow(0 1px 0.8px color-mix(in srgb, var(--zone) 45%, transparent));
}
.zone-select[data-zone="build"] > .zone-select__caret { color: var(--color-zone-build-text); }
.zone-select[data-zone="admin"] > .zone-select__caret { color: var(--color-zone-admin-text); }
.zone-select__caret {
  transition: transform var(--duration-fast) var(--ease-standard);
}
.zone-select[aria-expanded="true"] > .zone-select__caret,
.zone-select.is-open > .zone-select__caret {
  transform: rotate(180deg);
}
.sider--rail .zone-select {
  justify-content: center;
  width: var(--size-control-height-md);
  height: var(--size-control-height-md);
  padding: 0;
  border-radius: var(--radius-md);
}
.sider--rail .zone-select__name,
.sider--rail .zone-select__caret {
  display: none;
}
.menu.zone-select__menu {
  background: var(--gradient-glass-sheen), color-mix(in srgb, color-mix(in srgb, var(--color-bg-page), var(--zone) 16%) 30%, transparent);
}
.zone-select__menu .menu__item:hover,
.zone-select__menu .menu__item.is-hover {
  background: color-mix(in srgb, var(--zone) 8%, transparent);
}
.zone-select__menu .menu__item.is-selected {
  background: color-mix(in srgb, var(--zone) 12%, transparent);
  box-shadow: none;
  color: var(--color-text-primary);
}
.zone-select__menu .menu__item > .zone-select__tile {
  width: calc(var(--space-xl) - var(--space-xs));
  height: calc(var(--space-xl) - var(--space-xs));
}
@media (prefers-reduced-motion: reduce) {
  .zone-select,
  .zone-select__menu {
    transition: none;
  }
  .zone-select__ring,
  .zone-select::after,
  .zone-select > .zone-select__tile > .ic {
    animation: none;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
button,
a,
label,
summary,
[role='button'],
[role='menuitem'],
[role='option'],
[role='tab'] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@supports not selector(::-webkit-scrollbar-thumb) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar) transparent;
  }
}
::-webkit-scrollbar {
  width: var(--size-scrollbar);
  height: var(--size-scrollbar);
  background: transparent;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: none;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar);
  border-radius: var(--radius-full);
  border: calc((var(--size-scrollbar) - var(--size-scrollbar-thumb)) / 2) solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-hover);
  border-width: calc((var(--size-scrollbar) - var(--size-scrollbar-thumb-active)) / 2);
}
::-webkit-scrollbar-thumb:active {
  background-color: var(--color-scrollbar-press);
  border-width: calc((var(--size-scrollbar) - var(--size-scrollbar-thumb-active)) / 2);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
.check__box::before,
.radio__box::before,
.switch__track::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 var(--space-sm) var(--color-action-focus-ring);
  opacity: 0;
  pointer-events: none;
  transition: box-shadow var(--duration-slow) var(--ease-standard),
    opacity var(--duration-slow) var(--ease-standard);
}
.check:active .check__box::before,
.radio:active .radio__box::before,
.switch:active .switch__track::before {
  box-shadow: 0 0 0 0 var(--color-action-focus-ring);
  opacity: 1;
  transition: none;
}
.check:has(> .check__input:disabled) .check__box::before,
.radio:has(> .radio__input:disabled) .radio__box::before,
.switch:has(> .switch__input:disabled) .switch__track::before,
.check.is-disabled .check__box::before,
.radio.is-disabled .radio__box::before,
.switch.is-disabled .switch__track::before,
.switch.is-loading .switch__track::before {
  content: none;
}
.side-collapse:focus-visible,
.tabs__item:focus-visible,
.tabs__item.is-focus,
.code-block .copy-btn:focus-visible,
.swatch:focus-visible,
.btn:focus-visible,
.btn.is-focus,
.field:has(:focus-visible),
.field.is-focus-ring,
.float-btn:focus-visible,
.float-btn.is-focus,
.check__input:focus-visible + .check__box,
.check.is-focus .check__box,
.radio__input:focus-visible + .radio__box,
.radio.is-focus .radio__box,
.switch__input:focus-visible + .switch__track,
.switch.is-focus .switch__track,
.slider__handle:focus-visible,
.slider.is-focus .slider__handle,
.alert__close:focus-visible,
.alert__close.is-focus,
.modal__close:focus-visible,
.modal__close.is-focus,
.pager__item:focus-visible,
.pager__item.is-focus,
.seg__item:focus-visible,
.seg__item.is-focus,
.steps--clickable .steps__item:focus-visible,
.steps--clickable .steps__item.is-focus,
.acc__head:focus-visible,
.acc__head.is-focus,
.cal__nav:focus-visible,
.cal__nav.is-focus,
.cal__day:focus-visible,
.cal__day.is-focus,
.upload:focus-visible,
.upload.is-focus,
.upload-pic:focus-visible,
.upload-pic.is-focus,
.chip__close:focus-visible,
.chip__close.is-focus,
.player__scrub:has(.player__range:focus-visible),
.player__scrub.is-focus,
.cover-tick:focus-visible,
.cover-tick.is-focus,
.quick-card:focus-visible,
.quick-card.is-focus,
.hintchip:focus-visible,
.hintchip.is-focus,
.composer__chip:focus-visible,
.composer__chip.is-focus,
.zone-select:focus-visible,
.zone-select.is-focus,
.composer__chip.is-on:focus-visible,
.composer__chip.is-on.is-focus,
.composer__bar .field.select:focus-visible,
.composer__bar .field.select.is-focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--shadow-focus-ring);
}
.float-btn--primary:focus-visible,
.float-btn--primary.is-focus {
  box-shadow: var(--shadow-focus-ring), var(--shadow-md);
}
.composer__box:has(:focus-visible),
.composer__box.is-focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--shadow-focus-ring), var(--shadow-halo);
}
.btn--link:focus-visible,
.btn--link.is-focus {
  box-shadow: none;
  outline: 2px solid var(--color-action-focus-ring);
  outline-offset: 2px;
}
.menu__item:focus-visible,
.menu__item.is-focus,
.menu__item.is-selected:focus-visible,
.menu__item.is-selected.is-focus {
  outline: 2px solid transparent;
  outline-offset: -2px;
  box-shadow: var(--shadow-focus-ring-inset);
}
.label > .ic:not(.label__prefix):focus-visible,
.label__info > .ic:focus-visible {
  outline: 2px solid var(--color-action-focus-ring);
  outline-offset: 2px;
}
.field.is-error:has(:focus-visible),
.field.is-error.is-focus-ring {
  box-shadow: var(--shadow-focus-ring-error);
}
.btn--primary:focus-visible,
.btn--primary.is-focus {
  box-shadow: var(--shadow-focus-ring);
}
.float-btn:focus-visible,
.float-btn.is-focus {
  box-shadow: var(--shadow-md), var(--shadow-focus-ring);
}
.float-btn:hover:focus-visible,
.float-btn.is-hover.is-focus {
  box-shadow: var(--shadow-lg), var(--shadow-focus-ring);
}
@media (hover: none) {
  .logo-cell__actions {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 767px) {
  .modal__split {
    grid-template-columns: minmax(0, 1fr);
  }
}
@property --mesh-p1x { syntax: "<percentage>"; inherits: false; initial-value: 15%; }
@property --mesh-p1y { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --mesh-p2x { syntax: "<percentage>"; inherits: false; initial-value: 65%; }
@property --mesh-p2y { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --mesh-p3x { syntax: "<percentage>"; inherits: false; initial-value: 90%; }
@property --mesh-p3y { syntax: "<percentage>"; inherits: false; initial-value: 10%; }
@keyframes mesh-drift-1 {
  0%, 100% { --mesh-p1x: 15%; --mesh-p1y: 20%; }
  25% { --mesh-p1x: 45%; --mesh-p1y: 70%; }
  50% { --mesh-p1x: 75%; --mesh-p1y: 25%; }
  75% { --mesh-p1x: 40%; --mesh-p1y: -10%; }
}
@keyframes mesh-drift-2 {
  0%, 100% { --mesh-p2x: 65%; --mesh-p2y: 80%; }
  25% { --mesh-p2x: 35%; --mesh-p2y: 40%; }
  50% { --mesh-p2x: 10%; --mesh-p2y: 85%; }
  75% { --mesh-p2x: 40%; --mesh-p2y: 110%; }
}
@keyframes mesh-drift-3 {
  0%, 100% { --mesh-p3x: 90%; --mesh-p3y: 10%; }
  25% { --mesh-p3x: 60%; --mesh-p3y: 60%; }
  50% { --mesh-p3x: 30%; --mesh-p3y: 30%; }
  75% { --mesh-p3x: 70%; --mesh-p3y: -15%; }
}
.btn--primary:not(.btn--danger):not(.btn--success):not(.btn--notice):not(:disabled):not([aria-disabled="true"])::before,
.float-btn--primary:not(:disabled):not(.is-disabled)::before,
.seg__item.is-selected:not(:disabled):not(.is-disabled)::before,
.alert::before,
.toast-msg::before,
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(42% 120% at var(--mesh-p1x) var(--mesh-p1y), color-mix(in srgb, var(--mesh-color) 10.6%, transparent), transparent 70%),
    radial-gradient(34% 110% at var(--mesh-p2x) var(--mesh-p2y), color-mix(in srgb, color-mix(in srgb, var(--mesh-color), white 45%) 15.4%, transparent), transparent 70%),
    radial-gradient(30% 110% at var(--mesh-p3x) var(--mesh-p3y), color-mix(in srgb, var(--mesh-color) 7.3%, transparent), transparent 70%);
  opacity: var(--mesh-strength, 1);
  animation:
    mesh-drift-1 var(--cycle-mesh-1) linear infinite,
    mesh-drift-2 var(--cycle-mesh-2) linear infinite calc(var(--cycle-mesh-2) * -0.3),
    mesh-drift-3 var(--cycle-mesh-3) linear infinite calc(var(--cycle-mesh-3) * -0.46);
  pointer-events: none;
}
.tag::before {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary::before,
  .float-btn--primary::before,
  .seg__item.is-selected::before,
  .alert::before,
  .toast-msg::before {
    animation: none;
  }
}
@property --bar-color {
  syntax: "<color>";
  inherits: true;
  initial-value: transparent;
}
.progress__bar,
.slider__track,
.player__bar,
.pwbar__fill {
  background: var(--bar-color);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 14%, transparent);
}
