/*! ZhaoUI 0.1.0 · css · generated by packages/ui/scripts/build.mjs, do not edit by hand */
/* @zhaoui/tokens — generated by scripts/build.mjs. Do not edit by hand. */

:root {
  --zh-font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --zh-font-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
  --zh-space-1: 4px;
  --zh-space-2: 8px;
  --zh-space-3: 12px;
  --zh-space-4: 16px;
  --zh-space-5: 20px;
  --zh-space-6: 24px;
  --zh-space-8: 32px;
  --zh-space-10: 40px;
  --zh-space-12: 48px;
  --zh-ease: cubic-bezier(.2, .7, .2, 1);
  --zh-dur-instant: 80ms;
  --zh-dur-fast: 120ms;
  --zh-dur-base: 200ms;
  --zh-dur-slow: 320ms;
  --zh-dur-slower: 480ms;
  --zh-stagger: 30ms;
  --zh-ease-standard: cubic-bezier(.2, .7, .2, 1);
  --zh-ease-enter: cubic-bezier(0, 0, .2, 1);
  --zh-ease-exit: cubic-bezier(.4, 0, 1, 1);
  --zh-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --zh-opacity-disabled: .45;
  --zh-focus-ring: 0 0 0 2px var(--zh-bg), 0 0 0 4px var(--zh-color-primary);
  --zh-font-display: clamp(2.2rem, 5.2vw, 3.6rem);
  --zh-font-title: clamp(1.7rem, 3.4vw, 2.4rem);
  --zh-section-gap: clamp(64px, 9vw, 96px);
  --zh-page-max: 112rem;
  --zh-shadow-glow: 0 8px 28px var(--zh-primary-a35);
  --zh-gradient-soft: linear-gradient(135deg, var(--zh-color-primary-subtle) 0%, var(--zh-bg) 55%, var(--zh-bg-subtle) 100%);
  --zh-gradient-brand: linear-gradient(135deg, var(--zh-color-primary) 0%, var(--zh-color-primary-active) 100%);
  --zh-gradient-accent: linear-gradient(120deg, var(--zh-accent-a) 0%, var(--zh-accent-b) 55%, var(--zh-accent-c) 110%);
  --zh-z-base: 0;
  --zh-z-sticky: 100;
  --zh-z-dropdown: 1000;
  --zh-z-drawer: 1100;
  --zh-z-modal: 1200;
  --zh-z-popover: 1300;
  --zh-z-toast: 1400;
  --zh-z-tooltip: 1500;
  --zh-icon-xs: 16px;
  --zh-icon-sm: 20px;
  --zh-icon-md: 24px;
  --zh-icon-lg: 32px;
  --zh-scale: 1;
  --zh-glass-blur: 18px;
  --zh-glass-saturate: 165%;
}

:root {
  --zh-cols: 12; --zh-gutter: 24px; --zh-inner-pad: 32px;
  --zh-container-max: none;
  --zh-touch-min: 0px;
}

@media (max-width: 1199px) {
  :root { --zh-cols: 8; --zh-gutter: 16px; --zh-inner-pad: 24px; }
}

@media (max-width: 767px) {
  :root { --zh-cols: 4; --zh-gutter: 12px; --zh-inner-pad: 16px; }
}

@media (min-width: 1920px) {
  :root { --zh-inner-pad: 40px; --zh-container-max: 1600px; }
}

@media (pointer: coarse) {
  :root { --zh-touch-min: 44px; }
}

[data-screen="phone"],
[data-screen="tablet"] {
  --zh-touch-min: 44px;
}

[data-screen="wall"] {
  --zh-scale: 1.4;
  --zh-gutter: 32px;
  --zh-inner-pad: 48px;
  --zh-container-max: none;
  --zh-touch-min: 56px;
}

:root,
[data-audience="b"] {
  --zh-radius-sm: 4px;
  --zh-radius-md: 6px;
  --zh-radius-lg: 10px;
  --zh-font-base: 14px;
  --zh-line: 1.57;
  --zh-control-h-base: 32px;
  --zh-motion: 120ms;
  --zh-section-gap: 32px;
  --zh-heading-weight: 600;
  --zh-icon-stroke: 1.75;
  --zh-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --zh-shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --zh-shadow-lg: 0 16px 40px -8px rgba(16, 24, 40, 0.16), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --zh-flat-radius-sm: 4px;
  --zh-flat-radius-md: 6px;
  --zh-flat-radius-lg: 10px;
  --zh-flat-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --zh-flat-shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --zh-flat-shadow-lg: 0 16px 40px -8px rgba(16, 24, 40, 0.16), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
}

[data-audience="c"] {
  --zh-radius-sm: 10px;
  --zh-radius-md: 14px;
  --zh-radius-lg: 24px;
  --zh-font-base: 16px;
  --zh-line: 1.7;
  --zh-control-h-base: 44px;
  --zh-motion: 200ms;
  --zh-section-gap: 56px;
  --zh-heading-weight: 700;
  --zh-icon-stroke: 2;
  --zh-shadow-sm: 0 1px 2px var(--zh-primary-a08), 0 2px 8px -2px var(--zh-primary-a08);
  --zh-shadow-md: 0 8px 24px -6px var(--zh-primary-a14), 0 2px 6px -2px var(--zh-primary-a08);
  --zh-shadow-lg: 0 24px 56px -12px var(--zh-primary-a20), 0 6px 14px -6px var(--zh-primary-a14);
  --zh-flat-radius-sm: 10px;
  --zh-flat-radius-md: 14px;
  --zh-flat-radius-lg: 24px;
  --zh-flat-shadow-sm: 0 1px 2px var(--zh-primary-a08), 0 2px 8px -2px var(--zh-primary-a08);
  --zh-flat-shadow-md: 0 8px 24px -6px var(--zh-primary-a14), 0 2px 6px -2px var(--zh-primary-a08);
  --zh-flat-shadow-lg: 0 24px 56px -12px var(--zh-primary-a20), 0 6px 14px -6px var(--zh-primary-a14);
}

[data-density="compact"] {
  --zh-density: -4px;
  --zh-pad: 0.8;
}

:root,
[data-density="standard"] {
  --zh-density: 0px;
  --zh-pad: 1;
}

[data-density="comfortable"] {
  --zh-density: 4px;
  --zh-pad: 1.2;
}

:root,
[data-audience],
[data-density],
[data-screen] {
  --zh-control-h: max(var(--zh-touch-min, 0px), calc((var(--zh-control-h-base) + var(--zh-density)) * var(--zh-scale)));
  --zh-fs: calc(var(--zh-font-base) * var(--zh-scale));
}

:root,
[data-mode="light"] {
  color-scheme: light;
  --zh-bg: #ffffff;
  --zh-bg-subtle: #f6f8fb;
  --zh-bg-elevated: #ffffff;
  --zh-bg-glass: rgba(255, 255, 255, 0.78);
  --zh-border: #e4e6ea;
  --zh-border-strong: #cccfd5;
  --zh-text: #131720;
  --zh-text-secondary: #555b66;
  --zh-text-tertiary: #626872;
  --zh-text-disabled: #abaeb4;
  --zh-text-inverse: #ffffff;
  --zh-success: #11ae5b;
  --zh-warning: #f0ad15;
  --zh-danger: #ea3c3f;
  --zh-info: #16a4e2;
  --zh-green-text: #00764f;
  --zh-amber-text: #975c00;
  --zh-red-text: #be222d;
  --zh-cyan-text: #186e97;
  --zh-overlay: rgba(16, 20, 32, 0.5);
  --zh-mark-bg: #fff0a3;
  --zh-code-bg: #f2f3f7;
  --zh-glass-fill: rgba(255, 255, 255, 0.62);
  --zh-glass-fill-strong: rgba(255, 255, 255, 0.82);
  --zh-glass-well: rgba(255, 255, 255, 0.42);
  --zh-glass-border: rgba(255, 255, 255, 0.78);
  --zh-glass-edge: rgba(24, 32, 64, 0.16);
  --zh-glass-hi: rgba(255, 255, 255, 0.92);
  --zh-glass-solid: #f6f8fc;
  --zh-text-success: var(--zh-green-text);
  --zh-text-warning: var(--zh-amber-text);
  --zh-text-danger: var(--zh-red-text);
  --zh-text-info: var(--zh-cyan-text);
  --zh-num-good: var(--zh-text-success);
  --zh-num-warn: var(--zh-text-warning);
  --zh-num-bad: var(--zh-text-danger);
  --zh-trend-flat: var(--zh-text-tertiary);
  --zh-chart-1: #2a78d6;
  --zh-chart-2: #eb6834;
  --zh-chart-3: #1baf7a;
  --zh-chart-4: #eda100;
  --zh-chart-5: #e87ba4;
  --zh-chart-6: #008300;
  --zh-chart-7: #4a3aa7;
  --zh-chart-8: #e34948;
  --zh-chart-grid: #e1e0d9;
  --zh-chart-axis: #c3c2b7;
  --zh-chart-muted: #898781;
  --zh-chart-muted-fill: #cdd2db;
  --zh-success-bg: rgba(17, 174, 91, 0.14);
  --zh-success-bg-subtle: rgba(17, 174, 91, 0.1);
  --zh-success-border: rgba(17, 174, 91, 0.35);
  --zh-warning-bg: rgba(240, 173, 21, 0.14);
  --zh-warning-bg-subtle: rgba(240, 173, 21, 0.1);
  --zh-warning-border: rgba(240, 173, 21, 0.35);
  --zh-danger-bg: rgba(234, 60, 63, 0.14);
  --zh-danger-bg-subtle: rgba(234, 60, 63, 0.1);
  --zh-danger-border: rgba(234, 60, 63, 0.35);
  --zh-info-bg: rgba(22, 164, 226, 0.14);
  --zh-info-bg-subtle: rgba(22, 164, 226, 0.1);
  --zh-info-border: rgba(22, 164, 226, 0.35);
  --zh-color-primary: var(--zh-brand-l-primary);
  --zh-color-primary-hover: var(--zh-brand-l-hover);
  --zh-color-primary-active: var(--zh-brand-l-active);
  --zh-color-primary-subtle: var(--zh-brand-l-subtle);
  --zh-color-primary-text: var(--zh-brand-l-text);
  --zh-on-primary: var(--zh-brand-l-on);
  --zh-meter-track: var(--zh-brand-2);
  --zh-selection-bg: var(--zh-brand-l-a22);
  --zh-primary-a08: var(--zh-brand-l-a08);
  --zh-primary-a14: var(--zh-brand-l-a14);
  --zh-primary-a20: var(--zh-brand-l-a20);
  --zh-primary-a22: var(--zh-brand-l-a22);
  --zh-primary-a35: var(--zh-brand-l-a35);
  --zh-glass-base: var(--zh-brand-l-glass-base);
  --zh-glass-o1: var(--zh-brand-l-glass-o1);
  --zh-glass-o2: var(--zh-brand-l-glass-o2);
  --zh-glass-o3: var(--zh-brand-l-glass-o3);
  --zh-glass-shadow: var(--zh-brand-l-a20);
  --zh-seq-0: var(--zh-brand-1);
  --zh-seq-1: var(--zh-brand-2);
  --zh-seq-2: var(--zh-brand-3);
  --zh-seq-3: var(--zh-brand-4);
  --zh-seq-4: var(--zh-brand-5);
  --zh-seq-5: var(--zh-brand-6);
  --zh-seq-6: var(--zh-brand-7);
  --zh-seq-7: var(--zh-brand-8);
  --zh-flat-bg: #ffffff;
  --zh-flat-bg-subtle: #f6f8fb;
  --zh-flat-bg-elevated: #ffffff;
  --zh-flat-bg-glass: rgba(255, 255, 255, 0.78);
  --zh-flat-border: #e4e6ea;
  --zh-flat-border-strong: #cccfd5;
}

[data-mode="dark"] {
  color-scheme: dark;
  --zh-bg: #0a0c11;
  --zh-bg-subtle: #101319;
  --zh-bg-elevated: #161920;
  --zh-bg-glass: rgba(10, 12, 17, 0.72);
  --zh-border: #282b33;
  --zh-border-strong: #3c4048;
  --zh-text: #f1f3f8;
  --zh-text-secondary: #b4b7bf;
  --zh-text-tertiary: #8e929b;
  --zh-text-disabled: #52555c;
  --zh-text-inverse: #0a0c11;
  --zh-success: #4fd57f;
  --zh-warning: #f8bd40;
  --zh-danger: #ff7072;
  --zh-info: #61c3f9;
  --zh-green-text: #67e18f;
  --zh-amber-text: #fbc456;
  --zh-red-text: #ff9592;
  --zh-cyan-text: #7bcfff;
  --zh-overlay: rgba(0, 0, 0, 0.62);
  --zh-mark-bg: rgba(250, 204, 21, 0.3);
  --zh-code-bg: #1b1e25;
  --zh-glass-fill: rgba(255, 255, 255, 0.04);
  --zh-glass-fill-strong: rgba(255, 255, 255, 0.062);
  --zh-glass-well: rgba(0, 0, 0, 0.26);
  --zh-glass-border: rgba(255, 255, 255, 0.16);
  --zh-glass-edge: rgba(255, 255, 255, 0.24);
  --zh-glass-hi: rgba(255, 255, 255, 0.2);
  --zh-glass-solid: #1b1f29;
  --zh-text-success: var(--zh-green-text);
  --zh-text-warning: var(--zh-amber-text);
  --zh-text-danger: var(--zh-red-text);
  --zh-text-info: var(--zh-cyan-text);
  --zh-num-good: var(--zh-text-success);
  --zh-num-warn: var(--zh-text-warning);
  --zh-num-bad: var(--zh-text-danger);
  --zh-trend-flat: var(--zh-text-tertiary);
  --zh-chart-1: #3987e5;
  --zh-chart-2: #d95926;
  --zh-chart-3: #199e70;
  --zh-chart-4: #c98500;
  --zh-chart-5: #d55181;
  --zh-chart-6: #008300;
  --zh-chart-7: #9085e9;
  --zh-chart-8: #e66767;
  --zh-chart-grid: #2c2c2a;
  --zh-chart-axis: #383835;
  --zh-chart-muted: #898781;
  --zh-chart-muted-fill: #3a414d;
  --zh-success-bg: rgba(79, 213, 127, 0.14);
  --zh-success-bg-subtle: rgba(79, 213, 127, 0.1);
  --zh-success-border: rgba(79, 213, 127, 0.35);
  --zh-warning-bg: rgba(248, 189, 64, 0.14);
  --zh-warning-bg-subtle: rgba(248, 189, 64, 0.1);
  --zh-warning-border: rgba(248, 189, 64, 0.35);
  --zh-danger-bg: rgba(255, 112, 114, 0.14);
  --zh-danger-bg-subtle: rgba(255, 112, 114, 0.1);
  --zh-danger-border: rgba(255, 112, 114, 0.35);
  --zh-info-bg: rgba(97, 195, 249, 0.14);
  --zh-info-bg-subtle: rgba(97, 195, 249, 0.1);
  --zh-info-border: rgba(97, 195, 249, 0.35);
  --zh-color-primary: var(--zh-brand-d-primary);
  --zh-color-primary-hover: var(--zh-brand-d-hover);
  --zh-color-primary-active: var(--zh-brand-d-active);
  --zh-color-primary-subtle: var(--zh-brand-d-subtle);
  --zh-color-primary-text: var(--zh-brand-d-text);
  --zh-on-primary: var(--zh-brand-d-on);
  --zh-meter-track: var(--zh-brand-9);
  --zh-selection-bg: var(--zh-brand-d-a35);
  --zh-primary-a08: var(--zh-brand-d-a08);
  --zh-primary-a14: var(--zh-brand-d-a14);
  --zh-primary-a20: var(--zh-brand-d-a20);
  --zh-primary-a22: var(--zh-brand-d-a22);
  --zh-primary-a35: var(--zh-brand-d-a35);
  --zh-glass-base: var(--zh-brand-d-glass-base);
  --zh-glass-o1: var(--zh-brand-d-glass-o1);
  --zh-glass-o2: var(--zh-brand-d-glass-o2);
  --zh-glass-o3: var(--zh-brand-d-glass-o3);
  --zh-glass-shadow: var(--zh-brand-d-a20);
  --zh-seq-0: var(--zh-brand-10);
  --zh-seq-1: var(--zh-brand-9);
  --zh-seq-2: var(--zh-brand-8);
  --zh-seq-3: var(--zh-brand-7);
  --zh-seq-4: var(--zh-brand-6);
  --zh-seq-5: var(--zh-brand-5);
  --zh-seq-6: var(--zh-brand-4);
  --zh-seq-7: var(--zh-brand-3);
  --zh-flat-bg: #0a0c11;
  --zh-flat-bg-subtle: #101319;
  --zh-flat-bg-elevated: #161920;
  --zh-flat-bg-glass: rgba(10, 12, 17, 0.72);
  --zh-flat-border: #282b33;
  --zh-flat-border-strong: #3c4048;
}

[data-style="flat"] {
  --zh-bg: var(--zh-flat-bg);
  --zh-bg-subtle: var(--zh-flat-bg-subtle);
  --zh-bg-elevated: var(--zh-flat-bg-elevated);
  --zh-bg-glass: var(--zh-flat-bg-glass);
  --zh-border: var(--zh-flat-border);
  --zh-border-strong: var(--zh-flat-border-strong);
  --zh-radius-sm: var(--zh-flat-radius-sm);
  --zh-radius-md: var(--zh-flat-radius-md);
  --zh-radius-lg: var(--zh-flat-radius-lg);
  --zh-shadow-sm: var(--zh-flat-shadow-sm);
  --zh-shadow-md: var(--zh-flat-shadow-md);
  --zh-shadow-lg: var(--zh-flat-shadow-lg);
}

[data-style="glass"] {
  --zh-bg: var(--zh-glass-base);
  --zh-bg-subtle: var(--zh-glass-well);
  --zh-bg-elevated: var(--zh-glass-fill);
  --zh-bg-glass: var(--zh-glass-fill);
  --zh-border: var(--zh-glass-border);
  --zh-border-strong: var(--zh-glass-edge);
  --zh-shadow-sm: 0 2px 8px -2px var(--zh-glass-shadow), inset 0 1px 0 var(--zh-glass-hi);
  --zh-shadow-md: 0 8px 24px -6px var(--zh-glass-shadow), inset 0 1px 0 var(--zh-glass-hi);
  --zh-shadow-lg: 0 20px 48px -12px var(--zh-glass-shadow), inset 0 1px 0 var(--zh-glass-hi);
  --zh-radius-sm: 10px;
  --zh-radius-md: 14px;
  --zh-radius-lg: 22px;
}

:root,
[data-trend="cn"] {
  --zh-trend-up: var(--zh-red-text);
  --zh-trend-down: var(--zh-green-text);
}

[data-trend="intl"] {
  --zh-trend-up: var(--zh-green-text);
  --zh-trend-down: var(--zh-red-text);
}

:root,
[data-brand="indigo"] {
  --zh-brand-1: #f4f6ff;
  --zh-brand-2: #e5eaff;
  --zh-brand-3: #d1dbff;
  --zh-brand-4: #b7c6ff;
  --zh-brand-5: #95a9ff;
  --zh-brand-6: #768bff;
  --zh-brand-7: #5d6ff5;
  --zh-brand-8: #4957d4;
  --zh-brand-9: #363fab;
  --zh-brand-10: #22277c;
  --zh-accent-a: #7388fc;
  --zh-accent-b: #c36fd8;
  --zh-accent-c: #009fcd;
  --zh-brand-l-primary: #5868ee;
  --zh-brand-l-hover: #4d5be0;
  --zh-brand-l-active: #444ed3;
  --zh-brand-l-subtle: #f4f6ff;
  --zh-brand-l-text: #5465de;
  --zh-brand-l-on: #ffffff;
  --zh-brand-l-a08: rgba(88, 104, 238, 0.08);
  --zh-brand-l-a14: rgba(88, 104, 238, 0.14);
  --zh-brand-l-a20: rgba(88, 104, 238, 0.2);
  --zh-brand-l-a22: rgba(88, 104, 238, 0.22);
  --zh-brand-l-a35: rgba(88, 104, 238, 0.35);
  --zh-brand-d-primary: #5868ee;
  --zh-brand-d-hover: #4f5de2;
  --zh-brand-d-active: #4652d6;
  --zh-brand-d-subtle: rgba(88, 104, 238, 0.16);
  --zh-brand-d-text: #98abff;
  --zh-brand-d-on: #ffffff;
  --zh-brand-d-a08: rgba(88, 104, 238, 0.08);
  --zh-brand-d-a14: rgba(88, 104, 238, 0.14);
  --zh-brand-d-a20: rgba(88, 104, 238, 0.2);
  --zh-brand-d-a22: rgba(88, 104, 238, 0.22);
  --zh-brand-d-a35: rgba(88, 104, 238, 0.35);
  --zh-brand-l-glass-base: #f1f3fc;
  --zh-brand-l-glass-o1: #c6d2ff;
  --zh-brand-l-glass-o2: #ffcafc;
  --zh-brand-l-glass-o3: #afedff;
  --zh-brand-d-glass-base: #0a0d16;
  --zh-brand-d-glass-o1: #110f56;
  --zh-brand-d-glass-o2: #0d0a49;
  --zh-brand-d-glass-o3: #0a0940;
}

[data-brand="teal"] {
  --zh-brand-1: #eff9f8;
  --zh-brand-2: #dcf0ee;
  --zh-brand-3: #bde6e2;
  --zh-brand-4: #92d8d3;
  --zh-brand-5: #5fc3bd;
  --zh-brand-6: #2baca5;
  --zh-brand-7: #00948e;
  --zh-brand-8: #007974;
  --zh-brand-9: #005d59;
  --zh-brand-10: #003f3c;
  --zh-accent-a: #1aa39c;
  --zh-accent-b: #459bc9;
  --zh-accent-c: #659f62;
  --zh-brand-l-primary: #00857f;
  --zh-brand-l-hover: #007873;
  --zh-brand-l-active: #006b66;
  --zh-brand-l-subtle: #eff9f8;
  --zh-brand-l-text: #007e79;
  --zh-brand-l-on: #ffffff;
  --zh-brand-l-a08: rgba(0, 133, 127, 0.08);
  --zh-brand-l-a14: rgba(0, 133, 127, 0.14);
  --zh-brand-l-a20: rgba(0, 133, 127, 0.2);
  --zh-brand-l-a22: rgba(0, 133, 127, 0.22);
  --zh-brand-l-a35: rgba(0, 133, 127, 0.35);
  --zh-brand-d-primary: #00857f;
  --zh-brand-d-hover: #007974;
  --zh-brand-d-active: #006e69;
  --zh-brand-d-subtle: rgba(0, 133, 127, 0.16);
  --zh-brand-d-text: #76c1bb;
  --zh-brand-d-on: #ffffff;
  --zh-brand-d-a08: rgba(0, 133, 127, 0.08);
  --zh-brand-d-a14: rgba(0, 133, 127, 0.14);
  --zh-brand-d-a20: rgba(0, 133, 127, 0.2);
  --zh-brand-d-a22: rgba(0, 133, 127, 0.22);
  --zh-brand-d-a35: rgba(0, 133, 127, 0.35);
  --zh-brand-l-glass-base: #ebf6f5;
  --zh-brand-l-glass-o1: #a8e1dd;
  --zh-brand-l-glass-o2: #c2e3ff;
  --zh-brand-l-glass-o3: #d4e9ca;
  --zh-brand-d-glass-base: #04100f;
  --zh-brand-d-glass-o1: #001f1d;
  --zh-brand-d-glass-o2: #001e1c;
  --zh-brand-d-glass-o3: #001a18;
}

[data-brand="coral"] {
  --zh-brand-1: #fff4f0;
  --zh-brand-2: #ffe5dc;
  --zh-brand-3: #ffd0c0;
  --zh-brand-4: #ffb49a;
  --zh-brand-5: #fe8b63;
  --zh-brand-6: #eb6b3b;
  --zh-brand-7: #d05320;
  --zh-brand-8: #b13d03;
  --zh-brand-9: #8a2c00;
  --zh-brand-10: #5f1b00;
  --zh-accent-a: #eb6b3b;
  --zh-accent-b: #b98c00;
  --zh-accent-c: #e4639e;
  --zh-brand-l-primary: #cb4e1a;
  --zh-brand-l-hover: #bd4102;
  --zh-brand-l-active: #ab3900;
  --zh-brand-l-subtle: #fff4f0;
  --zh-brand-l-text: #bd4c1f;
  --zh-brand-l-on: #ffffff;
  --zh-brand-l-a08: rgba(203, 78, 26, 0.08);
  --zh-brand-l-a14: rgba(203, 78, 26, 0.14);
  --zh-brand-l-a20: rgba(203, 78, 26, 0.2);
  --zh-brand-l-a22: rgba(203, 78, 26, 0.22);
  --zh-brand-l-a35: rgba(203, 78, 26, 0.35);
  --zh-brand-d-primary: #cb4e1a;
  --zh-brand-d-hover: #bf4305;
  --zh-brand-d-active: #b03b00;
  --zh-brand-d-subtle: rgba(203, 78, 26, 0.16);
  --zh-brand-d-text: #f19676;
  --zh-brand-d-on: #ffffff;
  --zh-brand-d-a08: rgba(203, 78, 26, 0.08);
  --zh-brand-d-a14: rgba(203, 78, 26, 0.14);
  --zh-brand-d-a20: rgba(203, 78, 26, 0.2);
  --zh-brand-d-a22: rgba(203, 78, 26, 0.22);
  --zh-brand-d-a35: rgba(203, 78, 26, 0.35);
  --zh-brand-l-glass-base: #fbf1ed;
  --zh-brand-l-glass-o1: #ffc5b1;
  --zh-brand-l-glass-o2: #efde9e;
  --zh-brand-l-glass-o3: #ffd2ea;
  --zh-brand-d-glass-base: #150a07;
  --zh-brand-d-glass-o1: #3a0c00;
  --zh-brand-d-glass-o2: #310800;
  --zh-brand-d-glass-o3: #2c0600;
}

[data-brand="violet"] {
  --zh-brand-1: #f8f5ff;
  --zh-brand-2: #eee7ff;
  --zh-brand-3: #e2d4ff;
  --zh-brand-4: #d2bbff;
  --zh-brand-5: #be98ff;
  --zh-brand-6: #ac72ff;
  --zh-brand-7: #9754ec;
  --zh-brand-8: #7e3dcc;
  --zh-brand-9: #6227a4;
  --zh-brand-10: #441376;
  --zh-accent-a: #ac72ff;
  --zh-accent-b: #e957b1;
  --zh-accent-c: #3394ff;
  --zh-brand-l-primary: #9451e9;
  --zh-brand-l-hover: #8843db;
  --zh-brand-l-active: #7d35cd;
  --zh-brand-l-subtle: #f8f5ff;
  --zh-brand-l-text: #894dd6;
  --zh-brand-l-on: #ffffff;
  --zh-brand-l-a08: rgba(148, 81, 233, 0.08);
  --zh-brand-l-a14: rgba(148, 81, 233, 0.14);
  --zh-brand-l-a20: rgba(148, 81, 233, 0.2);
  --zh-brand-l-a22: rgba(148, 81, 233, 0.22);
  --zh-brand-l-a35: rgba(148, 81, 233, 0.35);
  --zh-brand-d-primary: #9451e9;
  --zh-brand-d-hover: #8a45dd;
  --zh-brand-d-active: #7f39d1;
  --zh-brand-d-subtle: rgba(148, 81, 233, 0.16);
  --zh-brand-d-text: #bf9aff;
  --zh-brand-d-on: #ffffff;
  --zh-brand-d-a08: rgba(148, 81, 233, 0.08);
  --zh-brand-d-a14: rgba(148, 81, 233, 0.14);
  --zh-brand-d-a20: rgba(148, 81, 233, 0.2);
  --zh-brand-d-a22: rgba(148, 81, 233, 0.22);
  --zh-brand-d-a35: rgba(148, 81, 233, 0.35);
  --zh-brand-l-glass-base: #f4f2fb;
  --zh-brand-l-glass-o1: #dbcaff;
  --zh-brand-l-glass-o2: #ffcfe0;
  --zh-brand-l-glass-o3: #c8e5ff;
  --zh-brand-d-glass-base: #0f0b15;
  --zh-brand-d-glass-o1: #2a0050;
  --zh-brand-d-glass-o2: #220044;
  --zh-brand-d-glass-o3: #1e003d;
}

[data-brand="rose"] {
  --zh-brand-1: #fff3f5;
  --zh-brand-2: #ffe3e8;
  --zh-brand-3: #ffcdd7;
  --zh-brand-4: #ffafc0;
  --zh-brand-5: #ff82a2;
  --zh-brand-6: #f55386;
  --zh-brand-7: #da3870;
  --zh-brand-8: #ba1f5a;
  --zh-brand-9: #940443;
  --zh-brand-10: #67002c;
  --zh-accent-a: #f55386;
  --zh-accent-b: #e86f00;
  --zh-accent-c: #c966e3;
  --zh-brand-l-primary: #d6346d;
  --zh-brand-l-hover: #c82362;
  --zh-brand-l-active: #ba0a57;
  --zh-brand-l-subtle: #fff3f5;
  --zh-brand-l-text: #c63466;
  --zh-brand-l-on: #ffffff;
  --zh-brand-l-a08: rgba(214, 52, 109, 0.08);
  --zh-brand-l-a14: rgba(214, 52, 109, 0.14);
  --zh-brand-l-a20: rgba(214, 52, 109, 0.2);
  --zh-brand-l-a22: rgba(214, 52, 109, 0.22);
  --zh-brand-l-a35: rgba(214, 52, 109, 0.35);
  --zh-brand-d-primary: #d6346d;
  --zh-brand-d-hover: #ca2563;
  --zh-brand-d-active: #bd1259;
  --zh-brand-d-subtle: rgba(214, 52, 109, 0.16);
  --zh-brand-d-text: #fa89a5;
  --zh-brand-d-on: #ffffff;
  --zh-brand-d-a08: rgba(214, 52, 109, 0.08);
  --zh-brand-d-a14: rgba(214, 52, 109, 0.14);
  --zh-brand-d-a20: rgba(214, 52, 109, 0.2);
  --zh-brand-d-a22: rgba(214, 52, 109, 0.22);
  --zh-brand-d-a35: rgba(214, 52, 109, 0.35);
  --zh-brand-l-glass-base: #fbf0f2;
  --zh-brand-l-glass-o1: #ffc1ce;
  --zh-brand-l-glass-o2: #ffd5b3;
  --zh-brand-l-glass-o3: #edd7ff;
  --zh-brand-d-glass-base: #150a0c;
  --zh-brand-d-glass-o1: #3f0018;
  --zh-brand-d-glass-o2: #350013;
  --zh-brand-d-glass-o3: #300010;
}


/* ==== base ==== */
/* Library base. Deliberately small: it never restyles bare elements, only what components need. */
[class*="zh-"], [class*="zh-"]::before, [class*="zh-"]::after { box-sizing: border-box; }
:where(dialog.zh-modal, .zh-drawer, .zh-pop) { font-family: var(--zh-font-sans); font-size: calc(var(--zh-font-base) * var(--zh-scale, 1)); line-height: var(--zh-line); color: var(--zh-text); }
/* Library elements that set display (e.g. .zh-menu { display: flex }) must still honour [hidden]. */
[class*="zh-"][hidden] { display: none !important; }
/* Reduced motion: keep opacity and colour feedback, remove movement, loops and long animations. Scoped to library classes. */
@media (prefers-reduced-motion: reduce) {
  [class*="zh-"], [class*="zh-"]::before, [class*="zh-"]::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; }
}
/* Toast host used by ZhaoUI.message() */
.zh-toast-host { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: var(--zh-z-toast); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.zh-toast-host > * { pointer-events: auto; }
.zh-message--info .ico { color: var(--zh-text-info); }
.zh-message--warning .ico { color: var(--zh-text-warning); }
.zh-message--error .ico { color: var(--zh-text-danger); }
/* The native <select> that a data-zh-select control replaces: still in the form and focusable, just not seen. */
.zh-sel-native { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
/* The range picker holds two dates, an arrow, an icon and a clear button, so it needs about 17.5rem. In a narrower container it overflows visibly instead of silently clipping the dates;
   the fix is then obvious (give it more room). Two classes: the component's own .zh-dp { min-width: 0 } comes later in the file. */
.zh-dp.zh-dp--range { min-width: 17.5rem; }

/* ---- layout grid ----
   .zh-grid reads --cols, but the token stylesheet defines --zh-cols per breakpoint (12 / 8 / 4). Bridge them so .zh-grid works on any page. */
:root { --cols: var(--zh-cols, 12); }

/* ---- alert: success and danger next to the existing info and warning; the icon takes the variant's colour ---- */
.zh-alert.success { background: var(--zh-success-bg-subtle); border-color: var(--zh-success-border); }
.zh-alert.danger { background: var(--zh-danger-bg-subtle); border-color: var(--zh-danger-border); }
.zh-alert .ico { flex: none; margin-top: .15em; }
.zh-alert.info .ico { color: var(--zh-text-info); }
.zh-alert.success .ico { color: var(--zh-text-success); }
.zh-alert.warning .ico { color: var(--zh-text-warning); }
.zh-alert.danger .ico { color: var(--zh-text-danger); }

/* ---- table: below 768px a .zh-table turns into a card list (one field per line, labelled by data-label). Wide admin tables usually want to scroll
   sideways instead: put .zh-table-wrap--scroll on the wrapper to keep a real table at every width. ---- */
.zh-table-wrap.zh-table-wrap--scroll { overflow-x: auto; }
@media (max-width: 767px) {
  .zh-table-wrap--scroll .zh-table { display: table; }
  .zh-table-wrap--scroll .zh-table thead { position: static; left: auto; display: table-header-group; }
  .zh-table-wrap--scroll .zh-table tbody { display: table-row-group; }
  .zh-table-wrap--scroll .zh-table tr { display: table-row; padding: 0; border-bottom: 0; }
  .zh-table-wrap--scroll .zh-table th, .zh-table-wrap--scroll .zh-table td { display: table-cell; padding: calc(var(--zh-control-h) * .25) 16px; border-bottom: 1px solid var(--zh-border); white-space: nowrap; }
  .zh-table-wrap--scroll .zh-table td::before { content: none; }
  .zh-table-wrap--scroll .zh-table tr:last-child td { border-bottom: 0; }
}

/* card cover: a photo is the common case, the stylesheet only sized <svg> */
.zh-cardx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Windows High Contrast / forced colors ----
   The browser replaces our colours with the user's palette and drops shadows, so anything that meant something only by
   its fill (switch, progress, slider, selected day or option) or only by a box-shadow focus ring needs a system colour
   or a real outline.  System colours (Highlight, ButtonText, ...) are the one thing the browser lets authors keep. ---- */
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid Highlight !important; outline-offset: 2px; }
  :root .zh-btn.primary, :root .zh-dp-day.is-selected, :root .zh-dp-cell.is-selected { background: Highlight; background-image: none; forced-color-adjust: none; color: HighlightText; border-color: Highlight; }
  :root .zh-btn.danger { border-color: LinkText; }
  :root .zh-switch { border: 1px solid ButtonText; background: Canvas; }
  :root .zh-switch::after { background: ButtonText; }
  :root .zh-switch:checked { background: Highlight; border-color: Highlight; }
  :root .zh-switch:checked::after { background: HighlightText; }
  :root .zh-progress-track, :root .zh-slider-rail { border: 1px solid CanvasText; background: Canvas; }
  :root .zh-progress-fill, :root .zh-slider-fill { background: Highlight; forced-color-adjust: none; }
  :root .zh-slider-thumb { background: Canvas; border-color: Highlight; }
  :root .zh-progress-in { color: HighlightText; }
  :root .zh-tag, :root .zh-badge b, :root .zh-alert, :root .zh-card, :root .zh-table-wrap, :root .zh-descr-wrap, :root .zh-result-icon, :root .zh-avatar { border: 1px solid CanvasText; }
  :root .zh-tabs button[aria-selected="true"]::after { background: Highlight; forced-color-adjust: none; }
  :root .zh-sel-opt[aria-selected="true"], :root .zh-cas-item[aria-selected="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  :root .zh-sel-opt.is-active, :root .zh-cas-item.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
  :root .zh-dp-day.is-today, :root .zh-dp-cell.is-today { outline: 1px solid CanvasText; outline-offset: -1px; }
  :root .zh-dp-day.is-disabled, :root .zh-sel-opt[aria-disabled="true"], :root .zh-btn:disabled { color: GrayText; }
  :root .zh-rating-icons .zh-rating-base { color: GrayText; }
  :root .zh-rating-part .ico { color: Highlight; }
  :root .zh-skeleton { background: GrayText; animation: none; }
}

/* back to top: fixed to the viewport unless data-target points at a scrolling box */
.zh-backtop.zh-backtop--fixed { position: fixed; right: 24px; bottom: 24px; }
@media (max-width: 767px) { .zh-backtop.zh-backtop--fixed { right: 16px; bottom: 16px; } }

/* ---- smaller pure-style pieces: button group, list, code, image, footer, comment, mask bar, spinner, marquee, carousel ---- */

/* button group: joined buttons; .is-active or aria-pressed marks the chosen one.
   Only the two ends are rounded, by the same amount as a single button of the current audience (a small radius for B, a full pill for C).
   The doubled .zh-btn raises the specificity above the audience rule that makes every button a pill. */
.zh-btn-group { --zh-btn-r: var(--zh-radius-md); display: inline-flex; max-width: 100%; }
[data-audience="c"] .zh-btn-group { --zh-btn-r: calc(var(--zh-control-h) / 2); }
.zh-btn-group > .zh-btn.zh-btn { border-radius: 0; }
.zh-btn-group > .zh-btn.zh-btn + .zh-btn { margin-inline-start: -1px; }
.zh-btn-group > .zh-btn.zh-btn:first-child { border-start-start-radius: var(--zh-btn-r); border-end-start-radius: var(--zh-btn-r); }
.zh-btn-group > .zh-btn.zh-btn:last-child { border-start-end-radius: var(--zh-btn-r); border-end-end-radius: var(--zh-btn-r); }
.zh-btn-group > .zh-btn.zh-btn:only-child { border-radius: var(--zh-btn-r); }
.zh-btn-group > .zh-btn:hover, .zh-btn-group > .zh-btn:focus-visible, .zh-btn-group > .zh-btn.is-active, .zh-btn-group > .zh-btn[aria-pressed="true"] { position: relative; z-index: 1; }
.zh-btn-group > .zh-btn.is-active, .zh-btn-group > .zh-btn[aria-pressed="true"] { background: var(--zh-color-primary-subtle); border-color: var(--zh-color-primary); color: var(--zh-color-primary-text); }
.zh-btn-group--vertical { flex-direction: column; }
.zh-btn-group--vertical > .zh-btn.zh-btn + .zh-btn { margin-inline-start: 0; margin-top: -1px; }
.zh-btn-group--vertical > .zh-btn.zh-btn:first-child { border-radius: var(--zh-btn-r) var(--zh-btn-r) 0 0; }
.zh-btn-group--vertical > .zh-btn.zh-btn:last-child { border-radius: 0 0 var(--zh-btn-r) var(--zh-btn-r); }

/* list: rows with a divider; main text on the left, extra (tag, time, buttons) on the right */
.zh-list { list-style: none; margin: 0; padding: 0; }
.zh-list > li { display: flex; align-items: center; gap: 12px; padding: calc(var(--zh-space-3) * var(--zh-pad, 1)) 0; border-bottom: 1px solid var(--zh-border); }
.zh-list > li:last-child { border-bottom: 0; }
.zh-list-main { flex: 1; min-width: 0; }
.zh-list-title { margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.zh-list-desc { margin: 2px 0 0; color: var(--zh-text-secondary); font-size: .93em; }
.zh-list-extra { flex: none; display: flex; align-items: center; gap: 8px; color: var(--zh-text-tertiary); font-size: .93em; }
.zh-list--bordered { border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); padding-inline: 16px; background: var(--zh-bg-elevated); }
.zh-list--hover > li:hover { background: var(--zh-item-hover); }
.zh-list--plain { list-style: disc; padding-inline-start: 1.4em; }
.zh-list--plain > li { display: list-item; padding: 2px 0; border: 0; }

/* code */
.zh-code { margin: 0; padding: 12px 16px; overflow-x: auto; background: var(--zh-bg-subtle); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); font: .9em / 1.6 var(--zh-font-mono); color: var(--zh-text); tab-size: 2; }
.zh-code code { font: inherit; background: none; border: 0; padding: 0; }
.zh-code-inline { padding: .1em .4em; border-radius: var(--zh-radius-sm); background: var(--zh-bg-subtle); border: 1px solid var(--zh-border); font: .9em var(--zh-font-mono); }

/* images */
.zh-img { display: block; max-width: 100%; height: auto; }
.zh-img--rounded { border-radius: var(--zh-radius-lg); }
.zh-img--circle { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.zh-img--thumb { padding: 4px; background: var(--zh-bg-elevated); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); }
.zh-figure { margin: 0; }
.zh-figure figcaption { margin-top: 6px; color: var(--zh-text-secondary); font-size: .93em; text-align: center; }

/* footer */
.zh-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--zh-border); color: var(--zh-text-secondary); font-size: .93em; }
.zh-footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.zh-footer a { color: inherit; text-decoration: none; }
.zh-footer a:hover { color: var(--zh-color-primary-text); text-decoration: underline; text-underline-offset: 3px; }

/* comments */
.zh-comment { display: flex; gap: 12px; padding: calc(var(--zh-space-3) * var(--zh-pad, 1)) 0; }
.zh-comment-body { flex: 1; min-width: 0; }
.zh-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.zh-comment-name { font-weight: 600; }
.zh-comment-time { color: var(--zh-text-tertiary); font-size: .86em; }
.zh-comment-text { margin: 4px 0 0; word-break: break-word; }
.zh-comment-actions { display: flex; gap: 14px; margin-top: 6px; color: var(--zh-text-tertiary); font-size: .9em; }
.zh-comment-replies { margin-top: 8px; padding-inline-start: 16px; border-inline-start: 2px solid var(--zh-border); }

/* mask bar: caption strip over the bottom of an image or card; a fixed dark scrim with white text on purpose, so it reads on any photo */
.zh-mask-wrap { position: relative; overflow: hidden; }
.zh-maskbar { position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0)); color: #fff; font-size: .93em; }
.zh-maskbar--solid { padding-top: 8px; background: rgba(0, 0, 0, .6); }
.zh-maskbar--hover { opacity: 0; transition: opacity var(--zh-dur-base) var(--zh-ease-standard); }
.zh-mask-wrap:hover .zh-maskbar--hover, .zh-mask-wrap:focus-within .zh-maskbar--hover { opacity: 1; }

/* spinner */
.zh-spinner { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -.3em; border: 2px solid var(--zh-border-strong); border-top-color: var(--zh-color-primary); border-radius: 50%; animation: zh-spinner .75s linear infinite; }
.zh-spinner.sm { width: 1em; height: 1em; border-width: 2px; }
.zh-spinner.lg { width: 2.4em; height: 2.4em; border-width: 3px; }
@keyframes zh-spinner { to { transform: rotate(360deg); } }

/* marquee: one line of announcement text that scrolls; the script duplicates the content for a seamless loop */
.zh-marquee { display: flex; overflow: hidden; white-space: nowrap; }
.zh-marquee-track { display: flex; flex: none; gap: 48px; padding-inline-end: 48px; animation: zh-marquee var(--zh-marquee-dur, 20s) linear infinite; }
.zh-marquee:hover .zh-marquee-track, .zh-marquee:focus-within .zh-marquee-track { animation-play-state: paused; }
@keyframes zh-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .zh-marquee { overflow-x: auto; } .zh-marquee-track { animation: none; } }

/* carousel */
.zh-carousel { position: relative; border-radius: var(--zh-radius-lg); overflow: hidden; background: var(--zh-bg-subtle); }
.zh-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.zh-carousel-track::-webkit-scrollbar { display: none; }
.zh-carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.zh-carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zh-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--zh-border); border-radius: 50%; background: var(--zh-bg-elevated); color: var(--zh-text); box-shadow: var(--zh-shadow-sm); cursor: pointer; opacity: 0; transition: opacity var(--zh-dur-base) var(--zh-ease-standard); }
.zh-carousel-arrow.prev { inset-inline-start: 10px; } .zh-carousel-arrow.next { inset-inline-end: 10px; }
.zh-carousel:hover .zh-carousel-arrow, .zh-carousel:focus-within .zh-carousel-arrow { opacity: 1; }
.zh-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.zh-carousel-dots { position: absolute; inset-inline: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.zh-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--zh-border-strong); cursor: pointer; transition: width var(--zh-dur-base) var(--zh-ease-standard), background var(--zh-dur-base); }
.zh-carousel-dot[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--zh-color-primary); }
.zh-carousel-dot:focus-visible, .zh-carousel-arrow:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 2px; }
@media (hover: none) { .zh-carousel-arrow { opacity: 1; } }
@media (forced-colors: active) { :root .zh-carousel-dot { background: ButtonText; } :root .zh-carousel-dot[aria-current="true"] { background: Highlight; forced-color-adjust: none; } :root .zh-spinner { border-color: GrayText; border-top-color: Highlight; } :root .zh-maskbar { forced-color-adjust: none; } }

/* sortable and selectable tables */
.zh-table th[data-sort] { padding: 0; }
.zh-sort { display: flex; align-items: center; gap: 6px; width: 100%; min-height: inherit; padding: inherit; font: inherit; color: inherit; text-align: inherit; background: none; border: 0; cursor: pointer; }
.zh-table th[data-sort] .zh-sort { padding: calc(var(--zh-control-h) * .25) 16px; }
.zh-table th.num .zh-sort, .zh-table th[data-sort].num .zh-sort { justify-content: flex-end; }
.zh-sort::after { content: ""; flex: none; width: 8px; height: 12px; opacity: .35; background: linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat; clip-path: polygon(50% 0, 100% 40%, 0 40%, 50% 0, 50% 100%, 50% 100%, 0 60%, 100% 60%, 50% 100%); }
.zh-table th[aria-sort="ascending"] .zh-sort::after { opacity: 1; clip-path: polygon(50% 0, 100% 45%, 0 45%); height: 7px; color: var(--zh-color-primary); }
.zh-table th[aria-sort="descending"] .zh-sort::after { opacity: 1; clip-path: polygon(50% 100%, 100% 55%, 0 55%); height: 7px; color: var(--zh-color-primary); }
.zh-table th[aria-sort="ascending"], .zh-table th[aria-sort="descending"] { color: var(--zh-text); }
.zh-sort:hover { color: var(--zh-text); }
.zh-sort:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }
.zh-table tr.is-selected > td { background: var(--zh-color-primary-subtle); }
.zh-table .zh-col-check { width: 44px; padding-inline-end: 0; }
@media (forced-colors: active) { :root .zh-table tr.is-selected > td { outline: 1px solid Highlight; outline-offset: -1px; } :root .zh-table th[aria-sort="ascending"] .zh-sort::after, :root .zh-table th[aria-sort="descending"] .zh-sort::after { color: Highlight; } }

/* top nav: the drawer covers the viewport, not a demo frame */
.zh-nav-drawer.zh-nav-drawer--fixed { position: fixed; z-index: var(--zh-z-modal); }

/* anchor / table of contents */
.zh-anchor ul { list-style: none; margin: 0; padding: 0; }
.zh-anchor { border-inline-start: 2px solid var(--zh-border); }
.zh-anchor a { display: block; margin-inline-start: -2px; padding: 4px 14px; border-inline-start: 2px solid transparent; color: var(--zh-text-secondary); font-size: .93em; text-decoration: none; transition: color var(--zh-dur-fast) var(--zh-ease-standard), border-color var(--zh-dur-fast) var(--zh-ease-standard); }
.zh-anchor ul ul a { padding-inline-start: 28px; }
.zh-anchor a:hover { color: var(--zh-text); }
.zh-anchor a[aria-current="location"] { color: var(--zh-color-primary-text); border-inline-start-color: var(--zh-color-primary); font-weight: 600; }
.zh-anchor a:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }
@media (forced-colors: active) { :root .zh-anchor a[aria-current="location"] { border-inline-start-color: Highlight; } }


/* buttons: written as links they must not be underlined; xl is the landing-page call to action */
a.zh-btn { text-decoration: none; }
.zh-btn.xl { height: calc(var(--zh-control-h) + 16px); padding: 0 calc((var(--zh-control-h) + 16px) * .5); font-size: 1.15em; }

/* avatars in the brand colour (data-tone="brand") read as brand, not as one of the eight chart colours */
.zh-avatar[data-tone="brand"] { color: var(--zh-color-primary-text); }

/* popover card (data-zh-popover): the content needs room to breathe; menus and popconfirm keep their own padding */
.zh-pop-card .zh-pop-body { padding: 14px 16px; min-width: 12rem; max-width: min(22rem, 90vw); }
.zh-pop-card .zh-pop-body > :first-child { margin-top: 0; } .zh-pop-card .zh-pop-body > :last-child { margin-bottom: 0; }
.zh-pop-card .zh-pop-body p { margin: 0 0 6px; }

/* side menu numbers (data-num): a running order for documentation navigation */
.zh-side-num { flex: none; min-width: 1.7em; color: var(--zh-text-tertiary); font-variant-numeric: tabular-nums; }
.zh-side-item[aria-current="page"] .zh-side-num { color: inherit; }
.zh-side.is-collapsed .zh-side-num { display: none; }


/* ==== components ==== */
/* ---- base.html ---- */
.zh-card { background: var(--zh-bg-elevated); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); padding: calc(var(--zh-space-5) * var(--zh-pad)); box-shadow: var(--zh-shadow-sm); }

.zh-card > h4 { margin: 0 0 8px; font-size: 1em; }

.zh-btn {
  height: var(--zh-control-h); padding: 0 calc(var(--zh-control-h) * .45); border-radius: var(--zh-radius-md);
  border: 1px solid var(--zh-border-strong); background: var(--zh-bg); color: var(--zh-text);
  font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--zh-motion) var(--zh-ease), border-color var(--zh-motion) var(--zh-ease), transform var(--zh-motion) var(--zh-ease);
  white-space: nowrap;
}

.zh-btn:hover { border-color: var(--zh-color-primary); color: var(--zh-color-primary); }

.zh-btn:active { transform: scale(.98); }

.zh-btn.primary { background: var(--zh-color-primary); border-color: var(--zh-color-primary); color: var(--zh-on-primary); }

.zh-btn.primary:hover { background: var(--zh-color-primary-hover); border-color: var(--zh-color-primary-hover); color: var(--zh-on-primary); }

.zh-btn.primary:active { background: var(--zh-color-primary-active); }

.zh-btn.text { border-color: transparent; background: transparent; color: var(--zh-color-primary-text); }

.zh-btn.text:hover { background: var(--zh-color-primary-subtle); }

.zh-btn.danger { border-color: var(--zh-danger); color: var(--zh-text-danger); }

.zh-btn.danger:hover { background: var(--zh-danger); color: #fff; }

.zh-btn[aria-disabled="true"],
.zh-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }

.zh-btn[aria-disabled="true"]:hover { border-color: var(--zh-border-strong); color: var(--zh-text); background: var(--zh-bg); }

[data-audience="c"] .zh-btn { border-radius: 999px; }

.spin { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.zh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.zh-field label { font-size: .9em; color: var(--zh-text-secondary); }

.zh-input,
.zh-select select,
.zh-textarea {
  width: 100%; height: var(--zh-control-h); padding: 0 12px; border: 1px solid var(--zh-border-strong); border-radius: var(--zh-radius-md);
  background: var(--zh-bg); color: var(--zh-text); font: inherit;
  transition: border-color var(--zh-motion) var(--zh-ease), box-shadow var(--zh-motion) var(--zh-ease);
}

.zh-textarea { height: auto; min-height: calc(var(--zh-control-h) * 2); padding: 8px 12px; resize: vertical; }

.zh-input:hover,
.zh-select select:hover,
.zh-textarea:hover { border-color: var(--zh-color-primary); }

.zh-input:focus,
.zh-select select:focus,
.zh-textarea:focus { outline: none; border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-input[aria-invalid="true"] { border-color: var(--zh-danger); }

.zh-input[readonly] { background: transparent; border-color: transparent; padding-left: 0; }

.zh-hint { font-size: .85em; color: var(--zh-text-tertiary); }

.zh-hint.err { color: var(--zh-text-danger); }

.zh-select { position: relative; }

.zh-select select { -webkit-appearance: none; appearance: none; padding-right: 32px; }

.zh-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border: solid var(--zh-text-tertiary); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.zh-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.zh-check input { accent-color: var(--zh-color-primary); width: 1.1em; height: 1.1em; margin: 0; }

.zh-check .zh-switch,
.zh-switch { -webkit-appearance: none; appearance: none; width: 2.6em; height: 1.45em; border-radius: 999px; background: var(--zh-border-strong); position: relative; cursor: pointer; transition: background var(--zh-motion) var(--zh-ease); margin: 0; flex: none; }

.zh-switch::after { content: ""; position: absolute; top: .15em; left: .15em; width: 1.15em; height: 1.15em; border-radius: 50%; background: #fff; transition: transform var(--zh-motion) var(--zh-ease); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

.zh-switch:checked { background: var(--zh-color-primary); }

.zh-switch:checked::after { transform: translateX(1.15em); }

.zh-tag { display: inline-flex; align-items: center; height: 1.7em; padding: 0 .7em; font-size: .86em; border-radius: var(--zh-radius-sm); background: var(--zh-bg-subtle); color: var(--zh-text-secondary); border: 1px solid var(--zh-border); }

.zh-tag.primary { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); border-color: transparent; }

.zh-tag.success { background: var(--zh-success-bg); color: var(--zh-text-success); border-color: transparent; }

.zh-tag.warning { background: var(--zh-warning-bg); color: var(--zh-text-warning); border-color: transparent; }

.zh-tag.danger { background: var(--zh-danger-bg); color: var(--zh-text-danger); border-color: transparent; }

.zh-tag.info { background: var(--zh-info-bg); color: var(--zh-text-info); border-color: transparent; }

[data-audience="c"] .zh-tag { border-radius: 999px; }

.zh-badge { position: relative; display: inline-flex; }

.zh-badge b { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--zh-danger); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 600; }

.zh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--zh-border); }

.zh-tabs button { font: inherit; border: 0; background: none; padding: 0 16px; height: var(--zh-control-h); cursor: pointer; color: var(--zh-text-secondary); position: relative; transition: color var(--zh-motion); }

.zh-tabs button:hover { color: var(--zh-color-primary-text); }

.zh-tabs button[aria-selected="true"] { color: var(--zh-color-primary-text); font-weight: 600; }

.zh-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--zh-color-primary); border-radius: 2px; }

[data-audience="c"] .zh-tabs { border-bottom: 0; background: var(--zh-bg-subtle); padding: 4px; border-radius: 999px; width: fit-content; }

[data-audience="c"] .zh-tabs button { border-radius: 999px; }

[data-audience="c"] .zh-tabs button[aria-selected="true"] { background: var(--zh-bg); box-shadow: var(--zh-shadow-sm); }

[data-audience="c"] .zh-tabs button[aria-selected="true"]::after { display: none; }

.zh-crumb { display: flex; gap: 8px; align-items: center; color: var(--zh-text-tertiary); font-size: .93em; list-style: none; padding: 0; margin: 0; }

.zh-crumb li + li::before { content: "/"; margin-right: 8px; }

.zh-crumb a { color: var(--zh-text-secondary); text-decoration: none; }

.zh-crumb a:hover { color: var(--zh-color-primary-text); }

.zh-crumb [aria-current] { color: var(--zh-text); }

.zh-menu { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }

.zh-menu a { display: flex; align-items: center; gap: 10px; height: var(--zh-control-h); padding: 0 12px; border-radius: var(--zh-radius-md); color: var(--zh-text-secondary); text-decoration: none; transition: background var(--zh-motion); }

.zh-menu a:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-menu a[aria-current="page"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 600; }

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: var(--zh-icon-stroke, 2); stroke-linecap: round; stroke-linejoin: round; }

.zh-pager { display: flex; gap: 4px; align-items: center; }

.zh-pager button { min-width: calc(var(--zh-control-h) * .85); height: calc(var(--zh-control-h) * .85); border: 1px solid var(--zh-border); background: var(--zh-bg); color: var(--zh-text-secondary); border-radius: var(--zh-radius-md); font: inherit; cursor: pointer; }

.zh-pager button:hover { border-color: var(--zh-color-primary); color: var(--zh-color-primary); }

.zh-pager button[aria-current="page"] { background: var(--zh-color-primary); color: var(--zh-on-primary); border-color: var(--zh-color-primary); }

.zh-table-wrap { border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); overflow: hidden; }

.zh-table { width: 100%; border-collapse: collapse; }

.zh-table th,
.zh-table td { text-align: left; padding: calc(var(--zh-control-h) * .25) 14px; border-bottom: 1px solid var(--zh-border); white-space: nowrap; }

.zh-table th { background: var(--zh-bg-subtle); color: var(--zh-text-secondary); font-weight: 600; font-size: .93em; }

.zh-table tbody tr:hover { background: var(--zh-bg-subtle); }

.zh-table tr:last-child td { border-bottom: 0; }

.zh-pager .pg-sum { display: none; padding: 0 8px; color: var(--zh-text-secondary); }

@media (max-width: 767px) {
.zh-table thead { position: absolute; left: -9999px; }
.zh-table,
.zh-table tbody,
.zh-table tr,
.zh-table td { display: block; }
.zh-table tr { padding: 10px 14px; border-bottom: 1px solid var(--zh-border); }
.zh-table tr:last-child { border-bottom: 0; }
.zh-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: normal; }
.zh-table td::before { content: attr(data-label); color: var(--zh-text-tertiary); flex: none; }
.zh-pager .pg-num { display: none; }
.zh-pager .pg-sum { display: inline; }
.zh-crumb li:not(:last-child):not(:nth-last-child(2)) { display: none; }
.zh-crumb li:nth-last-child(2)::before { display: none; }
}

.zh-tabs { overflow-x: auto; scrollbar-width: none; }

.zh-tabs button { flex: none; white-space: nowrap; }

.zh-tip { position: relative; }

.zh-tip[data-tip]:hover::after,
.zh-tip[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--zh-text); color: var(--zh-bg); padding: 5px 10px; border-radius: var(--zh-radius-sm); font-size: 12px; white-space: nowrap; z-index: var(--zh-z-tooltip); pointer-events: none;
}

.zh-empty { text-align: center; padding: 32px 16px; color: var(--zh-text-tertiary); }

.zh-empty svg { width: 72px; height: 72px; color: var(--zh-border-strong); margin-bottom: 8px; }

.zh-skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--zh-bg-subtle), var(--zh-border), var(--zh-bg-subtle)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }

@keyframes shimmer { to { background-position: -200% 0; } }

.zh-alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--zh-radius-md); border: 1px solid; }

.zh-alert.info { background: var(--zh-info-bg-subtle); border-color: var(--zh-info-border); }

.zh-alert.warning { background: var(--zh-warning-bg-subtle); border-color: var(--zh-warning-border); }

.zh-message { background: var(--zh-bg-elevated); border: 1px solid var(--zh-border); box-shadow: var(--zh-shadow-lg); border-radius: var(--zh-radius-md); padding: 10px 18px; animation: pop var(--zh-motion) var(--zh-ease); }

@keyframes pop { from { opacity: 0; transform: translateY(-8px); } }

dialog.zh-modal { border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); padding: 0; background: var(--zh-bg-elevated); color: var(--zh-text); box-shadow: var(--zh-shadow-lg); width: min(440px, calc(100vw - 32px)); }

dialog.zh-modal::backdrop { background: var(--zh-overlay); }

.zh-modal header { padding: 18px 20px 6px; font-weight: 600; font-size: 1.07em; }

.zh-modal .body { padding: 0 20px 16px; color: var(--zh-text-secondary); }

.zh-modal footer { padding: 12px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--zh-border); }

.zh-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--zh-bg-elevated); border-left: 1px solid var(--zh-border); box-shadow: var(--zh-shadow-lg); z-index: var(--zh-z-drawer); transform: translateX(100%); transition: transform calc(var(--zh-motion) * 2) var(--zh-ease); padding: 24px; }

.zh-drawer.open { transform: none; }

@media (max-width: 767px) {
dialog.zh-modal { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--zh-radius-lg) var(--zh-radius-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
.zh-drawer { width: 100vw; }
}

.zh-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--zh-gutter); }

.zh-col { grid-column: span var(--d, 3); min-width: 0; }

@media (max-width: 1199px) {
.zh-col { grid-column: span var(--t, 4); }
}

@media (max-width: 767px) {
.zh-col { grid-column: span var(--p, 4); }
}

.zh-auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--zh-gutter); }

.zh-stack { display: flex; flex-direction: column; gap: var(--g, 12px); min-width: 0; }

.zh-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g, 12px); }

.zh-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.zh-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--zh-gutter); align-items: start; }

@media (max-width: 1199px) {
.zh-with-aside { grid-template-columns: minmax(0, 1fr); }
}

.zh-btn.sm { height: calc(var(--zh-control-h) - 8px); padding: 0 calc((var(--zh-control-h) - 8px) * .45); font-size: .93em; }

.zh-btn.lg { height: calc(var(--zh-control-h) + 8px); padding: 0 calc((var(--zh-control-h) + 8px) * .45); font-size: 1.07em; }

.zh-btn.icon { padding: 0; width: var(--zh-control-h); }

.zh-btn.icon.sm { width: calc(var(--zh-control-h) - 8px); }

.zh-btn.icon.lg { width: calc(var(--zh-control-h) + 8px); }

.zh-input.sm { height: calc(var(--zh-control-h) - 8px); }

.zh-input.lg { height: calc(var(--zh-control-h) + 8px); }

.zh-mark { background: var(--zh-mark-bg); color: inherit; padding: 0 .15em; border-radius: 2px; }

.zh-del { color: var(--zh-text-tertiary); text-decoration: line-through; }

.zh-req::after { content: " *"; color: var(--zh-text-danger); }

.zh-mention { color: var(--zh-color-primary-text); background: var(--zh-color-primary-subtle); border-radius: 4px; padding: 0 .3em; }

.zh-kbd { font: .85em var(--zh-font-mono); border: 1px solid var(--zh-border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 .4em; background: var(--zh-bg-subtle); }

.zh-table td.num,
.zh-table th.num { text-align: right; }

@media (max-width: 767px) {
.zh-table td.num { text-align: inherit; }
}

.zh-btn { box-shadow: 0 1px 0 rgba(16, 24, 40, .05); letter-spacing: .01em; }

.zh-btn:hover { background: var(--zh-color-primary-subtle); }

.zh-btn.primary { box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .18); }

.zh-btn.primary:hover { box-shadow: 0 4px 12px -4px var(--zh-color-primary), inset 0 1px 0 rgba(255, 255, 255, .18); }

.zh-btn.text,
.zh-btn.text:hover,
.zh-btn[aria-disabled="true"],
.zh-btn:disabled { box-shadow: none; }

.zh-btn.danger:hover { background: var(--zh-danger); }

.zh-btn .ico { width: 1.1em; height: 1.1em; }

.zh-input,
.zh-select select,
.zh-textarea { box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05); }

.zh-card { border-radius: var(--zh-radius-lg); }

.zh-card > h4 { font-size: .95em; margin-bottom: 10px; }

.zh-tag { font-weight: 600; letter-spacing: .01em; font-size: .82em; gap: .3em; height: 1.85em; padding: 0 .75em; }

.zh-tag .ico { width: 1.1em; height: 1.1em; flex: none; }

.zh-table th { font-weight: 500; font-size: .86em; letter-spacing: .02em; color: var(--zh-text-tertiary); }

.zh-table th,
.zh-table td { padding-left: 16px; padding-right: 16px; }

.zh-table tbody tr { transition: background var(--zh-motion); }

.zh-tip[data-tip]:hover::before,
.zh-tip[data-tip]:focus-visible::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--zh-text); border-bottom: 0; z-index: var(--zh-z-tooltip); pointer-events: none;
}

.zh-message { display: flex; align-items: center; gap: 8px; }

.zh-message .ico { color: var(--zh-text-success); }

.zh-tabs { max-width: 100%; }

.zh-drawer { visibility: hidden; transition: transform calc(var(--zh-motion) * 2) var(--zh-ease), visibility 0s linear calc(var(--zh-motion) * 2); }

.zh-drawer.open { visibility: visible; transition-delay: 0s; }

/* ---- 00-core ---- */
.zh-layer { position: fixed; inset: 0; z-index: var(--zh-z-tooltip); pointer-events: none; }

.zh-layer > .zh-pop,
dialog .zh-pop { pointer-events: auto; }

.zh-pop {
  position: fixed; left: 0; top: 0; --zh-pop-x: 0px; --zh-pop-y: 4px;
  opacity: 0; transform: translate(var(--zh-pop-x), var(--zh-pop-y)) scale(.98);
  transition: opacity var(--zh-dur-fast) var(--zh-ease-enter), transform var(--zh-dur-fast) var(--zh-ease-enter);
}

.zh-pop.is-open { opacity: 1; transform: none; }

.zh-pop.is-closing { transition-duration: var(--zh-dur-instant); transition-timing-function: var(--zh-ease-exit); }

.zh-pop[data-placement^="top"] { --zh-pop-y: -4px; }

.zh-pop[data-placement^="left"] { --zh-pop-x: -4px; --zh-pop-y: 0px; }

.zh-pop[data-placement^="right"] { --zh-pop-x: 4px; --zh-pop-y: 0px; }

.zh-pop--dropdown { z-index: var(--zh-z-dropdown); }

.zh-pop--popover { z-index: var(--zh-z-popover); }

.zh-pop--tooltip { z-index: var(--zh-z-tooltip); pointer-events: none !important; }

.zh-pop-body {
  position: relative; background: var(--zh-bg-elevated); color: var(--zh-text); border: 1px solid var(--zh-border);
  border-radius: var(--zh-radius-lg); box-shadow: var(--zh-shadow-lg); font-size: var(--zh-fs); line-height: var(--zh-line);
}

.zh-pop--tooltip .zh-pop-body { background: var(--zh-text); color: var(--zh-bg); border-color: transparent; border-radius: var(--zh-radius-md); box-shadow: var(--zh-shadow-md); padding: 6px 10px; font-size: 12px; line-height: 1.4; max-width: 260px; }

.zh-pop-arrow { position: absolute; width: 10px; height: 10px; background: var(--zh-bg-elevated); border: 1px solid var(--zh-border); transform: rotate(45deg); }

.zh-pop--tooltip .zh-pop-arrow { background: var(--zh-text); border-color: transparent; }

.zh-pop[data-placement^="top"] .zh-pop-arrow { bottom: -5px; left: calc(var(--zh-arrow-x) - 5px); border-top-color: transparent; border-left-color: transparent; }

.zh-pop[data-placement^="bottom"] .zh-pop-arrow { top: -5px; left: calc(var(--zh-arrow-x) - 5px); border-bottom-color: transparent; border-right-color: transparent; }

.zh-pop[data-placement^="left"] .zh-pop-arrow { right: -5px; top: calc(var(--zh-arrow-y) - 5px); border-bottom-color: transparent; border-left-color: transparent; }

.zh-pop[data-placement^="right"] .zh-pop-arrow { left: -5px; top: calc(var(--zh-arrow-y) - 5px); border-top-color: transparent; border-right-color: transparent; }

/* ---- 20-popover ---- */
.zh-tt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 480px; margin: 0 auto; }

.zh-tt-grid .zh-btn { width: 100%; min-width: 0; padding: 0 4px; font-size: .86em; }

.zh-tt-wrap { display: inline-flex; border-radius: var(--zh-radius-md); }

.zh-tt-wrap:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 3px; }

.zh-tt-rich { display: grid; gap: 2px; }

.zh-tt-rich strong { font-weight: 600; }

.zh-tt-rich span { opacity: .8; }

.zh-tt-key { display: inline-block; margin-left: 6px; padding: 0 5px; font: 11px var(--zh-font-mono); border: 1px solid currentColor; border-radius: 4px; opacity: .75; }

.zh-tt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.zh-pv { width: 280px; max-width: calc(100vw - 32px); padding: 14px 16px; }

.zh-pv-title { margin: 0 0 4px; font-weight: 600; }

.zh-pv-text { margin: 0; color: var(--zh-text-secondary); font-size: .93em; }

.zh-pv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.zh-pv-user { display: flex; align-items: center; gap: 12px; }

.zh-pv-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 700; }

.zh-pv-stats { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--zh-border); font-size: .9em; }

.zh-pv-stats b { display: block; font-size: 1.15em; }

.zh-pv-stats span { color: var(--zh-text-tertiary); }

.zh-pc { width: max-content; max-width: min(320px, calc(100vw - 32px)); }

.zh-pc-body { display: flex; gap: 10px; padding: 14px 16px 12px; }

.zh-pc-ico { flex: none; margin-top: 1px; }

.zh-pc-ico.warning { color: var(--zh-text-warning); }

.zh-pc-ico.danger { color: var(--zh-text-danger); }

.zh-pc-ico.info { color: var(--zh-text-info); }

.zh-pc-title { margin: 0; font-weight: 600; }

.zh-pc-desc { margin: 2px 0 0; color: var(--zh-text-secondary); font-size: .93em; }

.zh-pc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 14px; }

.zh-btn.primary.zh-pc-danger { background: var(--zh-text-danger); border-color: var(--zh-text-danger); color: var(--zh-text-inverse); }

.zh-btn.primary.zh-pc-danger:hover { background: var(--zh-text-danger); filter: brightness(.94); }

.zh-btn[aria-busy="true"] { pointer-events: none; }

.zh-btn[aria-busy="true"] .spin { margin-right: 2px; }

@keyframes zh-dlg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

@keyframes zh-dlg-out { to { opacity: 0; transform: translateY(4px) scale(.98); } }

@keyframes zh-dlg-sheet-in { from { transform: translateY(100%); } }

@keyframes zh-dlg-sheet-out { to { transform: translateY(100%); } }

@keyframes zh-dlg-fade { from { opacity: 0; } }

@keyframes zh-dlg-fade-out { to { opacity: 0; } }

@keyframes zh-dlg-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

dialog.zh-modal.zh-modal--svc { overflow: hidden; }

dialog.zh-modal.zh-modal--svc[open] { display: flex; flex-direction: column; max-height: calc(100vh - 64px); animation: zh-dlg-in var(--zh-dur-base) var(--zh-ease-enter); }

dialog.zh-modal.zh-modal--svc[open]::backdrop { animation: zh-dlg-fade var(--zh-dur-base) var(--zh-ease-enter); }

dialog.zh-modal.zh-modal--svc.is-closing { animation: zh-dlg-out var(--zh-dur-fast) var(--zh-ease-exit) forwards; }

dialog.zh-modal.zh-modal--svc.is-closing::backdrop { animation: zh-dlg-fade-out var(--zh-dur-fast) var(--zh-ease-exit) forwards; }

dialog.zh-modal.zh-modal--svc.is-shaking { animation: zh-dlg-shake var(--zh-dur-slow) var(--zh-ease-standard); }

dialog.zh-modal.zh-modal--svc .body { flex: 1 1 auto; min-height: 0; overflow: auto; }

dialog.zh-modal.zh-modal--svc footer { flex: none; }

.zh-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }

.zh-modal-head .zh-btn.icon { margin: -6px -8px -6px 0; }

.zh-modal-grab { display: none; width: 36px; height: 4px; border-radius: 2px; background: var(--zh-border-strong); margin: 8px auto 0; flex: none; }

.zh-modal--confirm .body { padding: 22px 22px 8px; }

.zh-cf { display: flex; gap: 14px; }

.zh-cf-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }

.zh-cf-ico .ico { width: 22px; height: 22px; }

.zh-cf-ico.info { background: var(--zh-info-bg); color: var(--zh-text-info); }

.zh-cf-ico.success { background: var(--zh-success-bg); color: var(--zh-text-success); }

.zh-cf-ico.warning { background: var(--zh-warning-bg); color: var(--zh-text-warning); }

.zh-cf-ico.error { background: var(--zh-danger-bg); color: var(--zh-text-danger); }

.zh-cf-title { margin: 2px 0 4px; font-weight: 600; font-size: 1.07em; color: var(--zh-text); }

.zh-cf-desc { margin: 0; color: var(--zh-text-secondary); }

.zh-modal-form { display: grid; gap: 14px; }

.zh-modal-form .zh-hint.err { display: none; }

.zh-modal-form [aria-invalid="true"] ~ .zh-hint.err { display: block; }

.zh-modal-long p { margin: 0 0 12px; color: var(--zh-text-secondary); }

@media (min-width: 768px) {
dialog.zh-modal.zh-modal--sm { width: min(360px, calc(100vw - 32px)); }
dialog.zh-modal.zh-modal--md { width: min(520px, calc(100vw - 32px)); }
dialog.zh-modal.zh-modal--lg { width: min(720px, calc(100vw - 32px)); }
dialog.zh-modal.zh-modal--full { width: calc(100vw - 32px); height: calc(100vh - 32px); max-height: none; }
}

@media (max-width: 767px) {
dialog.zh-modal.zh-modal--svc { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--zh-radius-lg) var(--zh-radius-lg) 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); }
dialog.zh-modal.zh-modal--svc[open] { animation: zh-dlg-sheet-in var(--zh-dur-slow) var(--zh-ease-enter); }
dialog.zh-modal.zh-modal--svc.is-closing { animation: zh-dlg-sheet-out var(--zh-dur-base) var(--zh-ease-exit) forwards; }
dialog.zh-modal.zh-modal--svc.zh-modal--full { height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
.zh-modal-grab { display: block; }
dialog.zh-modal.zh-modal--svc.zh-modal--full .zh-modal-grab { display: none; }
dialog.zh-modal.zh-modal--svc footer .zh-btn { flex: 1; }
}

.zh-drawer-mask { position: fixed; inset: 0; background: var(--zh-overlay); opacity: 0; transition: opacity var(--zh-dur-base) var(--zh-ease-enter); }

.zh-drawer-mask.is-open { opacity: 1; }

.zh-drawer.zh-drawer--svc { padding: 0; display: flex; flex-direction: column; width: min(var(--zh-drawer-w, 420px), 92vw); }

.zh-drawer--svc .zh-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--zh-border); flex: none; }

.zh-drawer--svc .zh-drawer-title { font-weight: 600; font-size: 1.07em; color: var(--zh-text); }

.zh-drawer--svc .zh-drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 20px; color: var(--zh-text-secondary); }

.zh-drawer--svc .zh-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--zh-border); flex: none; }

.zh-drawer.zh-drawer--svc.zh-drawer--left { left: 0; right: auto; border-left: 0; border-right: 1px solid var(--zh-border); transform: translateX(-100%); }

.zh-drawer.zh-drawer--svc.zh-drawer--right { transform: translateX(100%); }

.zh-drawer.zh-drawer--svc.zh-drawer--top { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: min(var(--zh-drawer-h, 45vh), 90vh); border-left: 0; border-bottom: 1px solid var(--zh-border); transform: translateY(-100%); }

.zh-drawer.zh-drawer--svc.zh-drawer--bottom { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(var(--zh-drawer-h, 45vh), 90vh); border-left: 0; border-top: 1px solid var(--zh-border); transform: translateY(100%); }

.zh-drawer.zh-drawer--svc.open { transform: none; }

.zh-drawer--sm { --zh-drawer-w: 320px; --zh-drawer-h: 30vh; }

.zh-drawer--md { --zh-drawer-w: 420px; --zh-drawer-h: 45vh; }

.zh-drawer--lg { --zh-drawer-w: 640px; --zh-drawer-h: 70vh; }

.zh-drawer--xl { --zh-drawer-w: 880px; }

@media (max-width: 767px) {
.zh-drawer.zh-drawer--svc.zh-drawer--left,
.zh-drawer.zh-drawer--svc.zh-drawer--right { width: 100vw; }
}

.zh-notice-host { position: fixed; z-index: var(--zh-z-toast); display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }

.zh-notice-host--tr { top: 76px; right: 16px; }

.zh-notice-host--tl { top: 76px; left: 16px; }

.zh-notice-host--br { bottom: 16px; right: 16px; flex-direction: column-reverse; }

.zh-notice-host--bl { bottom: 16px; left: 16px; flex-direction: column-reverse; }

.zh-notice { --zh-notice-c: var(--zh-text-info); position: relative; pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; overflow: hidden;
  background: var(--zh-bg-elevated); color: var(--zh-text); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); box-shadow: var(--zh-shadow-lg);
  animation: zh-notice-in var(--zh-dur-slow) var(--zh-ease-enter); }

.zh-notice-host--tl .zh-notice,
.zh-notice-host--bl .zh-notice { animation-name: zh-notice-in-l; }

.zh-notice.is-leaving { animation: zh-notice-out var(--zh-dur-base) var(--zh-ease-exit) forwards; }

@keyframes zh-notice-in { from { opacity: 0; transform: translateX(24px); } }

@keyframes zh-notice-in-l { from { opacity: 0; transform: translateX(-24px); } }

@keyframes zh-notice-out { to { opacity: 0; transform: scale(.96); } }

.zh-notice--info { --zh-notice-c: var(--zh-text-info); --zh-notice-bg: var(--zh-info-bg); }

.zh-notice--success { --zh-notice-c: var(--zh-text-success); --zh-notice-bg: var(--zh-success-bg); }

.zh-notice--warning { --zh-notice-c: var(--zh-text-warning); --zh-notice-bg: var(--zh-warning-bg); }

.zh-notice--error { --zh-notice-c: var(--zh-text-danger); --zh-notice-bg: var(--zh-danger-bg); }

.zh-notice-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--zh-notice-bg); color: var(--zh-notice-c); }

.zh-notice-ico .ico { width: 18px; height: 18px; }

.zh-notice-main { flex: 1; min-width: 0; }

.zh-notice-title { margin: 0; font-weight: 600; line-height: 1.4; }

.zh-notice-desc { margin: 2px 0 0; color: var(--zh-text-secondary); font-size: .93em; }

.zh-notice-actions { display: flex; gap: 8px; margin-top: 10px; }

.zh-notice-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--zh-radius-md); background: transparent; color: var(--zh-text-tertiary); cursor: pointer; }

.zh-notice-x:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-notice-x:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; }

.zh-notice-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--zh-notice-c); opacity: .55; transform-origin: left; animation: zh-notice-bar var(--zh-notice-dur, 5000ms) linear forwards; }

.zh-notice.is-paused .zh-notice-bar { animation-play-state: paused; }

@keyframes zh-notice-bar { to { transform: scaleX(0); } }

@media (max-width: 767px) {
.zh-notice-host { width: auto; left: 12px; right: 12px; }
.zh-notice-host--tr,
.zh-notice-host--tl { top: 72px; }
.zh-notice-host--br,
.zh-notice-host--bl { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

.zh-message.zh-message--svc { padding-right: 12px; }

.zh-message.zh-message--info .ico { color: var(--zh-text-info); }

.zh-message.zh-message--success .ico { color: var(--zh-text-success); }

.zh-message.zh-message--warning .ico { color: var(--zh-text-warning); }

.zh-message.zh-message--error .ico { color: var(--zh-text-danger); }

.zh-message.zh-message--loading .spin { color: var(--zh-color-primary); }

.zh-message.zh-message--leaving { animation: zh-msg-out var(--zh-dur-fast) var(--zh-ease-exit) forwards; }

@keyframes zh-msg-out { to { opacity: 0; transform: translateY(-8px); } }

.zh-message-x { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border: 0; border-radius: var(--zh-radius-sm); background: transparent; color: var(--zh-text-tertiary); cursor: pointer; }

.zh-message-x:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-message-x:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; }

.zh-modal-head { padding: 18px 20px 10px; }

dialog.zh-modal.zh-modal--svc:not(.zh-modal--confirm) .body { padding-top: 8px; }

.zh-modal--confirm footer { border-top: 0; padding-top: 12px; }

.zh-modal-head .zh-btn.icon.text,
.zh-drawer-head .zh-btn.icon.text { color: var(--zh-text-tertiary); }

.zh-modal-head .zh-btn.icon.text:hover,
.zh-drawer-head .zh-btn.icon.text:hover { color: var(--zh-text); background: var(--zh-bg-subtle); }

/* ---- 30-dropdown ---- */
.zh-sel-list,
.zh-cas-panel,
.zh-cas-results { --zh-item-hover: var(--zh-bg-subtle); }

[data-mode="dark"] .zh-sel-list,
[data-mode="dark"] .zh-cas-panel,
[data-mode="dark"] .zh-cas-results { --zh-item-hover: var(--zh-border); }

.zh-sel { --zh-sel-h: var(--zh-control-h); position: relative; min-width: 0; width: 100%; }

.zh-sel--sm { --zh-sel-h: calc(var(--zh-control-h) - 8px); }

.zh-sel--lg { --zh-sel-h: calc(var(--zh-control-h) + 8px); }

.zh-sel-trigger {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: var(--zh-sel-h);
  padding: 2px 58px 2px 8px; border: 1px solid var(--zh-border-strong); border-radius: var(--zh-radius-md); background: var(--zh-bg);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05); cursor: pointer;
  transition: border-color var(--zh-dur-fast) var(--zh-ease-standard), box-shadow var(--zh-dur-fast) var(--zh-ease-standard), background var(--zh-dur-fast);
}

.zh-sel.no-chev .zh-sel-trigger { padding-right: 34px; }

.zh-sel-trigger:hover { border-color: var(--zh-color-primary); }

.zh-sel:focus-within .zh-sel-trigger,
.zh-sel.is-open .zh-sel-trigger { border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-sel.is-invalid .zh-sel-trigger { border-color: var(--zh-danger); }

.zh-sel.is-invalid:focus-within .zh-sel-trigger { box-shadow: 0 0 0 3px var(--zh-danger-bg); }

.zh-sel.is-disabled .zh-sel-trigger { background: var(--zh-bg-subtle); cursor: not-allowed; opacity: var(--zh-opacity-disabled); box-shadow: none; border-color: var(--zh-border-strong); }

.zh-sel.is-disabled .zh-sel-input { cursor: not-allowed; }

.zh-sel-prefix { display: grid; color: var(--zh-text-tertiary); padding-left: 2px; }

.zh-sel-input {
  flex: 1 1 56px; min-width: 40px; width: 0; height: calc(var(--zh-sel-h) - 8px); padding: 0 4px; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--zh-text); text-overflow: ellipsis; cursor: inherit; box-shadow: none;
}

.zh-sel-input::placeholder { color: var(--zh-text-tertiary); opacity: 1; }

.zh-sel-input[readonly] { caret-color: transparent; }

.zh-sel-suffix { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; color: var(--zh-text-tertiary); }

.zh-sel-chev { display: grid; pointer-events: none; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-sel.is-open .zh-sel-chev { transform: rotate(180deg); color: var(--zh-color-primary-text); }

.zh-sel-clear {
  display: none; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--zh-bg-subtle);
  color: var(--zh-text-secondary); cursor: pointer;
}

.zh-sel-clear:hover { background: var(--zh-border); color: var(--zh-text); }

.zh-sel.has-value.can-clear:hover .zh-sel-clear,
.zh-sel.has-value.can-clear:focus-within .zh-sel-clear { display: grid; }

@media (hover: none) {
.zh-sel.has-value.can-clear .zh-sel-clear { display: grid; }
}

.zh-sel-spin { display: none; }

.zh-sel.is-loading .zh-sel-spin { display: grid; animation: zh-sel-rot .8s linear infinite; }

.zh-sel.is-loading .zh-sel-clear { display: none !important; }

@keyframes zh-sel-rot { to { transform: rotate(360deg); } }

.zh-sel-tag {
  display: inline-flex; align-items: center; gap: 2px; max-width: 150px; height: calc(var(--zh-sel-h) - 12px); min-height: 20px; padding: 0 4px 0 8px;
  border-radius: var(--zh-radius-sm); background: var(--zh-bg-subtle); border: 1px solid var(--zh-border); font-size: .9em; color: var(--zh-text);
  animation: zh-sel-tag-in var(--zh-dur-base) var(--zh-ease-spring);
}

.zh-sel-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-sel-tag--more { padding-right: 8px; color: var(--zh-text-secondary); cursor: default; }

.zh-sel-tag button { flex: none; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--zh-text-tertiary); cursor: pointer; }

.zh-sel-tag button:hover { background: var(--zh-border); color: var(--zh-text); }

.zh-sel-tag .ico { width: 12px; height: 12px; }

@keyframes zh-sel-tag-in { from { opacity: 0; transform: scale(.85); } }

.zh-sel-list { max-height: min(280px, 50vh); overflow: auto; padding: 6px; overscroll-behavior: contain; outline: none; }

.zh-sel-opt {
  display: flex; align-items: center; gap: 8px; min-height: calc(var(--zh-control-h) - 4px); padding: 2px 10px; border-radius: var(--zh-radius-md);
  color: var(--zh-text); cursor: pointer; transition: background var(--zh-dur-instant);
}

.zh-sel-opt + .zh-sel-opt { margin-top: 1px; }

.zh-sel-opt.is-active { background: var(--zh-item-hover); }

.zh-sel-opt[aria-selected="true"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-sel-opt[aria-selected="true"].is-active { box-shadow: inset 0 0 0 1px var(--zh-color-primary); }

.zh-sel-opt[aria-disabled="true"] { color: var(--zh-text-disabled); cursor: not-allowed; background: none; font-weight: 400; }

.zh-sel-opt .zh-sel-ico { display: grid; color: var(--zh-text-secondary); }

.zh-sel-opt[aria-selected="true"] .zh-sel-ico { color: inherit; }

.zh-sel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.zh-sel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-sel-desc { font-size: .82em; font-weight: 400; color: var(--zh-text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-sel-check { display: grid; color: var(--zh-color-primary-text); }

.zh-sel-box { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--zh-border-strong); display: grid; place-items: center; color: var(--zh-on-primary); background: var(--zh-bg); transition: all var(--zh-dur-fast); }

.zh-sel-box .ico { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }

.zh-sel-opt[aria-selected="true"] .zh-sel-box { background: var(--zh-color-primary); border-color: var(--zh-color-primary); }

.zh-sel-opt[aria-selected="true"] .zh-sel-box .ico { opacity: 1; }

.zh-sel-hl { background: var(--zh-mark-bg); color: inherit; border-radius: 2px; padding: 0 1px; }

.zh-sel-group { padding: 8px 10px 4px; font-size: .78em; font-weight: 600; letter-spacing: .04em; color: var(--zh-text-tertiary); }

.zh-sel-msg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: calc(var(--zh-control-h) + 8px); padding: 8px 12px; color: var(--zh-text-tertiary); font-size: .93em; }

.zh-sel-msg .ico { width: 16px; height: 16px; }

.zh-sel-msg .zh-sel-rot { display: grid; animation: zh-sel-rot .8s linear infinite; }

.zh-cas-panel { display: flex; align-items: stretch; max-width: 92vw; overflow-x: auto; }

.zh-cas-col { list-style: none; margin: 0; padding: 6px; min-width: 148px; max-height: 264px; overflow-y: auto; border-right: 1px solid var(--zh-border); flex: none; }

.zh-cas-col:last-child { border-right: 0; }

.zh-cas-item {
  display: flex; align-items: center; gap: 8px; min-height: calc(var(--zh-control-h) - 4px); padding: 2px 8px 2px 10px; border-radius: var(--zh-radius-md);
  cursor: pointer; color: var(--zh-text); transition: background var(--zh-dur-instant);
}

.zh-cas-item + .zh-cas-item { margin-top: 1px; }

.zh-cas-item > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-cas-item .zh-cas-arrow { display: grid; color: var(--zh-text-tertiary); }

.zh-cas-item .zh-cas-arrow .ico { width: 14px; height: 14px; }

.zh-cas-item:hover,
.zh-cas-item.is-expanded { background: var(--zh-item-hover); }

.zh-cas-panel.is-kbd .zh-cas-item.is-active,
.zh-cas-results .zh-cas-item.is-active { box-shadow: inset 0 0 0 2px var(--zh-color-primary); }

.zh-cas-item[aria-selected="true"] { color: var(--zh-color-primary-text); font-weight: 600; background: var(--zh-color-primary-subtle); }

.zh-cas-item[aria-disabled="true"] { color: var(--zh-text-disabled); cursor: not-allowed; background: none; }

.zh-cas-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: .9em; color: var(--zh-text-secondary); border-bottom: 1px solid var(--zh-border); min-height: 40px; }

.zh-cas-head strong { color: var(--zh-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-cas-back { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--zh-radius-md); background: var(--zh-bg-subtle); color: var(--zh-text); cursor: pointer; flex: none; }

.zh-cas-panel.is-drill { flex-direction: column; max-width: none; overflow: visible; }

.zh-cas-panel.is-drill .zh-cas-col { border-right: 0; min-width: 0; }

.zh-cas-results { list-style: none; margin: 0; padding: 6px; max-height: 264px; overflow-y: auto; min-width: 280px; }

/* ---- 30-dropdown-menu ---- */
.zh-dd-menu { --zh-item-hover: var(--zh-bg-subtle); }

[data-mode="dark"] .zh-dd-menu { --zh-item-hover: var(--zh-border); }

.zh-dd-menu { padding: 6px; min-width: 208px; max-width: min(320px, 92vw); display: flex; flex-direction: column; gap: 1px; outline: none; }

.zh-dd-item {
  display: flex; align-items: center; gap: 10px; min-height: calc(var(--zh-control-h) - 4px); padding: 0 10px;
  border-radius: var(--zh-radius-md); color: var(--zh-text); cursor: pointer; outline: none; user-select: none;
  transition: background var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-dd-item:hover,
.zh-dd-item.is-hot { background: var(--zh-item-hover); }

.zh-dd-item:focus-visible { background: var(--zh-item-hover); box-shadow: inset 0 0 0 2px var(--zh-color-primary); }

.zh-dd-item[aria-expanded="true"] { background: var(--zh-item-hover); }

.zh-dd-item[aria-disabled="true"] { color: var(--zh-text-disabled); cursor: not-allowed; background: none; }

.zh-dd-item.is-danger { color: var(--zh-text-danger); }

.zh-dd-item.is-danger:hover,
.zh-dd-item.is-danger:focus-visible { background: var(--zh-danger-bg); }

.zh-dd-lead { width: 16px; height: 16px; flex: none; display: grid; place-items: center; color: var(--zh-text-secondary); }

.zh-dd-item.is-danger .zh-dd-lead { color: inherit; }

.zh-dd-item[aria-disabled="true"] .zh-dd-lead { color: inherit; }

.zh-dd-lead .ico { width: 16px; height: 16px; }

.zh-dd-item[role="menuitemcheckbox"] .zh-dd-lead .ico { opacity: 0; color: var(--zh-color-primary-text); }

.zh-dd-item[role="menuitemcheckbox"][aria-checked="true"] .zh-dd-lead .ico { opacity: 1; }

.zh-dd-radio { width: 6px; height: 6px; border-radius: 50%; background: var(--zh-color-primary); transform: scale(0); transition: transform var(--zh-dur-fast) var(--zh-ease-spring); }

.zh-dd-item[aria-checked="true"] .zh-dd-radio { transform: scale(1); }

.zh-dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-dd-kbd { font: .82em var(--zh-font-mono); color: var(--zh-text-tertiary); letter-spacing: .02em; white-space: nowrap; }

.zh-dd-caret { color: var(--zh-text-tertiary); display: grid; }

.zh-dd-caret .ico { width: 14px; height: 14px; }

.zh-dd-sep { height: 1px; margin: 5px 4px; background: var(--zh-border); }

.zh-dd-group { padding: 8px 10px 4px; font-size: .78em; font-weight: 600; letter-spacing: .04em; color: var(--zh-text-tertiary); }

.zh-dd-vanchor { position: fixed; width: 1px; height: 1px; pointer-events: none; }

.zh-sel { --zh-sel-h: var(--zh-control-h); position: relative; min-width: 0; width: 100%; }

/* ---- 33-input ---- */
.zh-inp {
  display: flex; align-items: stretch; width: 100%; min-width: 0; height: var(--zh-control-h);
  border: 1px solid var(--zh-border-strong); border-radius: var(--zh-radius-md); background: var(--zh-bg); color: var(--zh-text);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05); overflow: hidden;
  transition: border-color var(--zh-dur-fast) var(--zh-ease-standard), box-shadow var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-inp.sm { height: calc(var(--zh-control-h) - 8px); }

.zh-inp.lg { height: calc(var(--zh-control-h) + 8px); }

.zh-inp:hover,
.zh-inp.is-hover { border-color: var(--zh-color-primary); }

.zh-inp:focus-within,
.zh-inp.is-focus { border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-inp-box { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 0 12px; }

.zh-inp-el { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: inherit; font: inherit; -webkit-appearance: none; appearance: none; }

.zh-inp-el::placeholder { color: var(--zh-text-tertiary); }

.zh-inp-el[type="search"]::-webkit-search-cancel-button,
.zh-inp-el[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

.zh-inp-pre { color: var(--zh-text-tertiary); flex: none; transition: color var(--zh-dur-fast); }

.zh-inp:focus-within .zh-inp-pre { color: var(--zh-color-primary-text); }

.zh-inp-suf { color: var(--zh-text-secondary); flex: none; }

.zh-inp-btn {
  flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--zh-radius-sm); background: transparent; color: var(--zh-text-tertiary);
  display: inline-grid; place-items: center; cursor: pointer; transition: background var(--zh-dur-fast), color var(--zh-dur-fast);
}

.zh-inp-btn:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-inp-btn:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-inp-btn[hidden] { display: none; }

.zh-inp-addon { display: flex; align-items: center; padding: 0 12px; background: var(--zh-bg-subtle); color: var(--zh-text-secondary); white-space: nowrap; font: inherit; }

.zh-inp-addon:first-child { border-inline-end: 1px solid var(--zh-border); }

.zh-inp-addon:last-child { border-inline-start: 1px solid var(--zh-border); }

button.zh-inp-addon-btn { border: 0; cursor: pointer; color: var(--zh-color-primary-text); font-weight: 500; transition: background var(--zh-dur-fast); }

button.zh-inp-addon-btn:hover { background: var(--zh-color-primary-subtle); }

button.zh-inp-addon-btn:focus-visible { outline: none; box-shadow: inset var(--zh-focus-ring); }

.zh-inp-addon-select { padding: 0 4px 0 8px; }

.zh-inp-select { height: 100%; border: 0; background: transparent; color: inherit; font: inherit; outline: none; cursor: pointer; padding-inline-end: 4px; }

.zh-inp-addon-kbd { padding: 0 8px; }

.zh-inp-status { flex: none; display: inline-flex; align-items: center; color: var(--zh-text-success); }

.zh-inp.is-disabled { opacity: var(--zh-opacity-disabled); background: var(--zh-bg-subtle); cursor: not-allowed; }

.zh-inp.is-disabled:hover { border-color: var(--zh-border-strong); }

.zh-inp.is-disabled .zh-inp-el { cursor: not-allowed; }

.zh-inp.is-error { border-color: var(--zh-danger); }

.zh-inp.is-error:focus-within { box-shadow: 0 0 0 3px var(--zh-danger-bg); }

.zh-inp.is-success { border-color: var(--zh-success); }

.zh-inp.is-success:focus-within { box-shadow: 0 0 0 3px var(--zh-success-bg); }

.zh-inp.is-loading .zh-inp-status { color: var(--zh-text-tertiary); }

.zh-input.is-warning { border-color: var(--zh-warning); }

.zh-input.is-warning:focus { box-shadow: 0 0 0 3px var(--zh-warning-bg); }

.zh-inp-spin { animation: zh-inp-spin .8s linear infinite; }

@keyframes zh-inp-spin { to { transform: rotate(360deg); } }

.zh-inp-msg { display: flex; align-items: flex-start; gap: 6px; font-size: .85em; line-height: 1.45; }

.zh-inp-msg .ico { margin-top: 1px; flex: none; }

.zh-inp-msg.is-error { color: var(--zh-text-danger); }

.zh-inp-msg.is-warning { color: var(--zh-text-warning); }

.zh-inp-msg.is-success { color: var(--zh-text-success); }

.zh-inp-msg[hidden] { display: none; }

.zh-inp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.zh-num .zh-inp-el { text-align: center; font-variant-numeric: tabular-nums; }

.zh-num-btn {
  flex: none; width: var(--zh-control-h); padding: 0; border: 0; background: var(--zh-bg-subtle); color: var(--zh-text-secondary);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background var(--zh-dur-fast), color var(--zh-dur-fast);
}

.zh-num.sm .zh-num-btn { width: calc(var(--zh-control-h) - 8px); }

.zh-num.lg .zh-num-btn { width: calc(var(--zh-control-h) + 8px); }

.zh-num-btn:first-child { border-inline-end: 1px solid var(--zh-border); }

.zh-num-btn:last-child { border-inline-start: 1px solid var(--zh-border); }

.zh-num-btn:hover:not(:disabled) { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

.zh-num-btn:active:not(:disabled) { background: var(--zh-primary-a22); }

.zh-num-btn:disabled { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-num-split .zh-num-stack { display: flex; flex-direction: column; width: 30px; flex: none; border-inline-start: 1px solid var(--zh-border); }

.zh-num-split .zh-num-btn { flex: 1; width: 100%; border: 0; }

.zh-num-split .zh-num-btn + .zh-num-btn { border-top: 1px solid var(--zh-border); }

.zh-num-split .zh-inp-el { text-align: start; }

.zh-otp { display: flex; gap: 10px; }

.zh-otp-cell {
  width: calc(var(--zh-control-h) + 8px); height: calc(var(--zh-control-h) + 8px); padding: 0; text-align: center;
  font: inherit; font-size: 1.3em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--zh-text); caret-color: var(--zh-color-primary);
  border: 1px solid var(--zh-border-strong); border-radius: var(--zh-radius-md); background: var(--zh-bg); box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color var(--zh-dur-fast), box-shadow var(--zh-dur-fast), background var(--zh-dur-fast);
}

.zh-otp-cell:hover { border-color: var(--zh-color-primary); }

.zh-otp-cell:focus { outline: none; border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-otp-cell.is-filled { background: var(--zh-bg-subtle); }

.zh-otp.is-error .zh-otp-cell { border-color: var(--zh-danger); animation: zh-inp-shake .32s var(--zh-ease-standard); }

.zh-otp.is-ok .zh-otp-cell { border-color: var(--zh-success); }

@keyframes zh-inp-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.zh-ta { position: relative; }

.zh-ta .zh-textarea { display: block; width: 100%; resize: none; overflow-y: hidden; padding-bottom: 30px; }

.zh-ta-count { position: absolute; inset-inline-end: 12px; bottom: 8px; padding-inline-start: 8px; background: var(--zh-bg); font-size: .8em; color: var(--zh-text-tertiary); font-variant-numeric: tabular-nums; pointer-events: none; }

.zh-ta.is-over .zh-ta-count { color: var(--zh-text-danger); font-weight: 600; }

.zh-ta.is-over .zh-textarea { border-color: var(--zh-danger); }

.zh-edit { display: inline-flex; max-width: calc(100% + 16px); min-width: 0; margin: -4px -8px; }

.zh-edit-view { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 8px; border: 0; border-radius: var(--zh-radius-md); background: transparent; color: var(--zh-text); font: inherit; font-weight: 600; cursor: text; transition: background var(--zh-dur-fast); }

.zh-edit-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.zh-edit-view:hover,
.zh-edit-view:focus-visible { background: var(--zh-bg-subtle); }

.zh-edit-view:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-edit-view .ico { color: var(--zh-text-tertiary); opacity: 0; transition: opacity var(--zh-dur-fast); }

.zh-edit-view:hover .ico,
.zh-edit-view:focus-visible .ico { opacity: 1; }

@media (pointer: coarse) {
.zh-edit-view .ico { opacity: 1; }
}

.zh-edit .zh-inp { width: min(320px, 100%); }

@media (max-width: 767px) {
.zh-otp { gap: 6px; }
.zh-otp-cell { flex: 1; min-width: 0; max-width: 52px; width: auto; }
.zh-inp-addon { padding: 0 8px; }
}

/* ---- 31-datepicker ---- */
.zh-dp { --zh-dp-h: var(--zh-control-h); position: relative; min-width: 0; width: 100%; }

.zh-dp--sm { --zh-dp-h: calc(var(--zh-control-h) - 8px); }

.zh-dp--lg { --zh-dp-h: calc(var(--zh-control-h) + 8px); }

.zh-dp-ico { position: absolute; left: 11px; top: 0; bottom: 0; display: grid; place-items: center; color: var(--zh-text-tertiary); pointer-events: none; z-index: 1; }

.zh-dp .zh-input { height: var(--zh-dp-h); padding-left: 34px; padding-right: 32px; }

.zh-dp.is-open .zh-input { border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-dp-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: var(--zh-bg-subtle); color: var(--zh-text-secondary); cursor: pointer; z-index: 1;
}

.zh-dp-clear:hover { background: var(--zh-border); color: var(--zh-text); }

.zh-dp.has-value:hover .zh-dp-clear,
.zh-dp.has-value:focus-within .zh-dp-clear { display: grid; }

@media (hover: none) {
.zh-dp.has-value .zh-dp-clear { display: grid; }
}

.zh-dp-field {
  display: flex; align-items: center; gap: 4px; height: var(--zh-dp-h); padding: 0 32px 0 34px; border: 1px solid var(--zh-border-strong); border-radius: var(--zh-radius-md);
  background: var(--zh-bg); box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05); transition: border-color var(--zh-dur-fast), box-shadow var(--zh-dur-fast);
}

.zh-dp-field:hover { border-color: var(--zh-color-primary); }

.zh-dp-field:focus-within,
.zh-dp.is-open .zh-dp-field { border-color: var(--zh-color-primary); box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-dp.is-invalid .zh-dp-field { border-color: var(--zh-danger); }

.zh-dp-rin { flex: 1; width: 0; min-width: 0; height: calc(var(--zh-dp-h) - 10px); border: 0; outline: 0; background: transparent; font: inherit; color: var(--zh-text); text-align: center; padding: 0; border-radius: 2px; }

.zh-dp-rin::placeholder { color: var(--zh-text-tertiary); opacity: 1; }

.zh-dp-rin.is-active { box-shadow: 0 2px 0 var(--zh-color-primary); }

.zh-dp-sep { display: grid; color: var(--zh-text-tertiary); flex: none; }

.zh-dp-msg-err { color: var(--zh-text-danger); }

.zh-dp-panel,
.zh-tp-panel { --zh-item-hover: var(--zh-bg-subtle); }

[data-mode="dark"] .zh-dp-panel,
[data-mode="dark"] .zh-tp-panel { --zh-item-hover: var(--zh-border); }

.zh-dp-panel { --zh-dp-cell: min(44px, calc(var(--zh-control-h) + 4px), calc((100vw - 72px) / 7)); padding: 12px; display: flex; flex-direction: column; gap: 10px; outline: none; }

.zh-dp-panel.is-range { flex-direction: row; gap: 14px; }

.zh-dp-panel.is-range.is-phone { flex-direction: column; gap: 8px; }

.zh-dp-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.zh-dp-presets { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; border-right: 1px solid var(--zh-border); min-width: 96px; }

.zh-dp-panel.is-phone .zh-dp-presets { flex-direction: row; overflow-x: auto; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--zh-border); min-width: 0; scrollbar-width: none; }

.zh-dp-preset { text-align: left; white-space: nowrap; height: calc(var(--zh-control-h) - 4px); padding: 0 12px; border: 0; background: none; border-radius: var(--zh-radius-md); color: var(--zh-text-secondary); cursor: pointer; font: inherit; flex: none; }

.zh-dp-panel.is-phone .zh-dp-preset { border: 1px solid var(--zh-border-strong); border-radius: 999px; height: calc(var(--zh-control-h) - 8px); }

.zh-dp-preset:hover { background: var(--zh-item-hover); color: var(--zh-text); }

.zh-dp-preset:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }

.zh-dp-cal { display: flex; gap: 20px; }

.zh-dp-month { min-width: 0; }

.zh-dp-head { display: flex; align-items: center; gap: 2px; height: 34px; margin-bottom: 4px; }

.zh-dp-title { flex: 1; min-width: 0; height: 32px; border: 0; background: none; border-radius: var(--zh-radius-md); font: inherit; font-weight: 600; color: var(--zh-text); cursor: pointer; }

.zh-dp-title:hover { background: var(--zh-item-hover); }

.zh-dp-nav { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--zh-radius-md); color: var(--zh-text-secondary); cursor: pointer; }

.zh-dp-nav:hover { background: var(--zh-item-hover); color: var(--zh-text); }

.zh-dp-nav.is-ghost { visibility: hidden; }

.zh-dp-title:focus-visible,
.zh-dp-nav:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; }

.zh-dp-grid { border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }

.zh-dp-grid th { width: var(--zh-dp-cell); height: 28px; padding: 0; font-size: .78em; font-weight: 500; color: var(--zh-text-tertiary); text-align: center; }

.zh-dp-td { padding: 0; width: var(--zh-dp-cell); height: var(--zh-dp-cell); text-align: center; }

.zh-dp-day {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: var(--zh-radius-md); font: inherit; color: var(--zh-text);
  cursor: pointer; display: grid; place-items: center; transition: background var(--zh-dur-instant), color var(--zh-dur-instant);
}

.zh-dp-num { font-variant-numeric: tabular-nums; line-height: 1; }

.zh-dp-day:hover:not(.is-selected):not(.is-disabled) { background: var(--zh-item-hover); }

.zh-dp-day.is-outside { color: var(--zh-text-tertiary); }

.zh-dp-day.is-today { box-shadow: inset 0 0 0 1px var(--zh-color-primary); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-dp-day.is-selected { background: var(--zh-color-primary); color: var(--zh-on-primary); box-shadow: none; font-weight: 600; }

.zh-dp-day.is-disabled { color: var(--zh-text-disabled); cursor: not-allowed; }

.zh-dp-day.is-disabled.is-today { box-shadow: inset 0 0 0 1px var(--zh-border-strong); color: var(--zh-text-disabled); }

.zh-dp-day:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; z-index: 1; }

.zh-dp-day[data-heat="1"] { background: var(--zh-seq-1); color: var(--zh-text); }

.zh-dp-day[data-heat="2"] { background: var(--zh-seq-2); color: var(--zh-text); }

.zh-dp-day[data-heat="3"] { background: var(--zh-seq-3); color: var(--zh-text); font-weight: 600; }

.zh-dp-day.is-selected[data-heat] { background: var(--zh-color-primary); color: var(--zh-on-primary); }

.zh-dp-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }

.zh-dp-dots i { width: 4px; height: 4px; border-radius: 50%; }

.zh-dp-dots .c1 { background: var(--zh-chart-1); }

.zh-dp-dots .c2 { background: var(--zh-chart-2); }

.zh-dp-dots .c3 { background: var(--zh-chart-3); }

.zh-dp-day.is-selected .zh-dp-dots i { background: var(--zh-on-primary); }

td.is-in-range .zh-dp-day:not(.is-selected) { border-radius: 0; color: var(--zh-color-primary-text); }

td.is-preview.is-in-range .zh-dp-day:not(.is-selected) { color: var(--zh-text); }

.zh-dp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: calc(var(--zh-dp-cell) * 7); }

.zh-dp-cell { height: calc(var(--zh-dp-cell) * 1.15); border: 0; border-radius: var(--zh-radius-md); background: none; font: inherit; color: var(--zh-text); cursor: pointer; }

.zh-dp-cell:hover:not(.is-selected) { background: var(--zh-item-hover); }

.zh-dp-cell.is-outside { color: var(--zh-text-tertiary); }

.zh-dp-cell.is-today { box-shadow: inset 0 0 0 1px var(--zh-color-primary); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-dp-cell.is-selected { background: var(--zh-color-primary); color: var(--zh-on-primary); box-shadow: none; font-weight: 600; }

.zh-dp-cell:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; }

.zh-dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--zh-border); }

.zh-dp-foot .zh-dp-picked { font-size: .86em; color: var(--zh-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-tp-cols { --zh-tp-item: max(32px, calc(var(--zh-control-h) - 2px)); position: relative; display: flex; gap: 4px; }

.zh-tp-band { position: absolute; left: 0; right: 0; top: calc(var(--zh-tp-item) * 3); height: var(--zh-tp-item); border-radius: var(--zh-radius-md); background: var(--zh-color-primary-subtle); pointer-events: none; }

.zh-tp-col {
  position: relative; list-style: none; margin: 0; padding: calc(var(--zh-tp-item) * 3) 0; width: calc(var(--zh-tp-item) * 1.9); height: calc(var(--zh-tp-item) * 7); overflow-y: auto;
  scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; border-radius: var(--zh-radius-md);
}

.zh-tp-col::-webkit-scrollbar { display: none; }

.zh-tp-col:focus-visible { box-shadow: inset 0 0 0 2px var(--zh-color-primary); }

.zh-tp-item { height: var(--zh-tp-item); display: grid; place-items: center; scroll-snap-align: center; cursor: pointer; color: var(--zh-text-secondary); font-variant-numeric: tabular-nums; position: relative; z-index: 1; transition: color var(--zh-dur-fast); }

.zh-tp-item:hover { color: var(--zh-text); }

.zh-tp-item.is-selected { color: var(--zh-color-primary-text); font-weight: 600; }

.zh-tp-label { position: absolute; left: 0; right: 0; top: 2px; text-align: center; font-size: .72em; color: var(--zh-text-tertiary); z-index: 2; pointer-events: none; }

.zh-tp-col-wrap { position: relative; }

.zh-tp-panel { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.zh-dp-panel.is-dt { flex-direction: row; gap: 14px; align-items: stretch; }

.zh-dp-panel.is-dt.is-phone { flex-direction: column; }

.zh-dp-panel.is-dt .zh-dp-side { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--zh-border); padding-left: 14px; }

.zh-dp-panel.is-dt.is-phone .zh-dp-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--zh-border); padding-top: 10px; align-items: center; }

/* ---- 32-slider-rating ---- */
.zh-slider {
  --zh-slider-track: 6px; --zh-slider-thumb: 18px; --zh-slider-c: var(--zh-color-primary); --zh-slider-halo: var(--zh-primary-a14); --zh-dir: 1;
  position: relative; width: 100%; height: calc(var(--zh-slider-thumb) + 14px);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: pointer;
}

.zh-slider.sm { --zh-slider-track: 4px; --zh-slider-thumb: 14px; }

.zh-slider.lg { --zh-slider-track: 8px; --zh-slider-thumb: 24px; }

.zh-slider.has-marks { margin-bottom: 28px; }

.zh-slider-rail { position: absolute; inset-inline: 0; top: 50%; height: var(--zh-slider-track); margin-top: calc(var(--zh-slider-track) / -2); background: var(--zh-meter-track); border-radius: 999px; }

.zh-slider-fill { position: absolute; top: 0; bottom: 0; background: var(--zh-slider-c); border-radius: inherit; transition: background var(--zh-dur-base) var(--zh-ease-standard); }

.zh-slider-thumb {
  position: absolute; top: 50%; inset-inline-start: 0; width: var(--zh-slider-thumb); height: var(--zh-slider-thumb);
  transform: translate(calc(var(--zh-dir) * -50%), -50%); border-radius: 50%; background: var(--zh-bg-elevated);
  border: 2px solid var(--zh-slider-c); box-shadow: var(--zh-shadow-sm); cursor: grab; outline: none; z-index: 2;
  transition: box-shadow var(--zh-dur-fast) var(--zh-ease-standard), border-color var(--zh-dur-base) var(--zh-ease-standard);
}

.zh-slider-thumb:hover { box-shadow: var(--zh-shadow-sm), 0 0 0 6px var(--zh-slider-halo); }

.zh-slider-thumb.is-drag { cursor: grabbing; box-shadow: var(--zh-shadow-sm), 0 0 0 8px var(--zh-slider-halo); }

.zh-slider-thumb:focus-visible { box-shadow: var(--zh-focus-ring); }

.zh-slider-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); padding: 6px 8px; border-radius: var(--zh-radius-sm);
  background: var(--zh-text); color: var(--zh-bg); font-size: 12px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; transition: opacity var(--zh-dur-fast) var(--zh-ease-enter), transform var(--zh-dur-fast) var(--zh-ease-enter);
}

.zh-slider-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--zh-text); border-bottom: 0; }

.zh-slider-thumb:hover .zh-slider-tip,
.zh-slider-thumb:focus-visible .zh-slider-tip,
.zh-slider-thumb.is-drag .zh-slider-tip { opacity: 1; transform: translate(-50%, 0); }

.zh-slider-marks { position: absolute; inset: 0; pointer-events: none; }

.zh-slider-mark { position: absolute; top: 50%; inset-inline-start: 0; width: 0; height: 0; pointer-events: auto; }

.zh-slider-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; background: var(--zh-bg-elevated); border: 2px solid var(--zh-border-strong); transform: translate(calc(var(--zh-dir) * -50%), -50%); transition: border-color var(--zh-dur-base); }

.zh-slider-mark.is-in .zh-slider-dot { border-color: var(--zh-slider-c); }

.zh-slider-mlabel { position: absolute; left: 0; top: calc(var(--zh-slider-thumb) / 2 + 8px); transform: translateX(calc(var(--zh-dir) * -50%)); font-size: 12px; line-height: 1.2; color: var(--zh-text-tertiary); white-space: nowrap; }

.zh-slider-mark.is-first .zh-slider-mlabel { transform: translateX(calc((var(--zh-dir) - 1) * 50%)); }

.zh-slider-mark.is-last .zh-slider-mlabel { transform: translateX(calc((var(--zh-dir) + 1) * -50%)); }

.zh-slider.is-vertical .zh-slider-mark.is-first .zh-slider-mlabel,
.zh-slider.is-vertical .zh-slider-mark.is-last .zh-slider-mlabel { transform: translateY(50%); }

.zh-slider-mark.is-cur .zh-slider-mlabel { color: var(--zh-text); font-weight: 600; }

.zh-slider.is-disabled { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-slider.is-disabled .zh-slider-thumb { cursor: not-allowed; box-shadow: var(--zh-shadow-sm); }

.zh-slider.is-vertical { width: calc(var(--zh-slider-thumb) + 14px); height: var(--zh-slider-len, 160px); touch-action: pan-x; }

.zh-slider.is-vertical .zh-slider-rail { inset-inline: auto; left: 50%; top: 0; bottom: 0; width: var(--zh-slider-track); height: auto; margin: 0 0 0 calc(var(--zh-slider-track) / -2); }

.zh-slider.is-vertical .zh-slider-fill { left: 0; right: 0; top: auto; bottom: 0; }

.zh-slider.is-vertical .zh-slider-thumb { inset-inline-start: auto; top: auto; left: 50%; transform: translate(-50%, 50%); }

.zh-slider.is-vertical .zh-slider-tip { bottom: auto; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); }

.zh-slider.is-vertical .zh-slider-tip::after { left: auto; right: 100%; top: 50%; margin: -4px 0 0; border: 4px solid transparent; border-right-color: var(--zh-text); border-left: 0; }

.zh-slider.is-vertical .zh-slider-thumb:hover .zh-slider-tip,
.zh-slider.is-vertical .zh-slider-thumb:focus-visible .zh-slider-tip,
.zh-slider.is-vertical .zh-slider-thumb.is-drag .zh-slider-tip { transform: translate(0, -50%); }

.zh-slider.is-vertical .zh-slider-marks { inset: 0; }

.zh-slider.is-vertical .zh-slider-mark { top: auto; inset-inline-start: auto; left: 50%; }

.zh-slider.is-vertical .zh-slider-dot { transform: translate(-50%, 50%); }

.zh-slider.is-vertical .zh-slider-mlabel { left: calc(var(--zh-slider-thumb) / 2 + 8px); top: auto; bottom: 0; transform: translateY(50%); }

.zh-slider.is-vertical.has-marks { margin: 0 44px 0 0; }

.zh-slider-row { display: flex; align-items: center; gap: 16px; }

.zh-slider-row .zh-slider { flex: 1; min-width: 0; }

.zh-slider-num { width: 96px; flex: none; text-align: center; font-variant-numeric: tabular-nums; }

.zh-slider-out { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--zh-text); font-size: .93em; }

.zh-slider-vgroup { display: flex; gap: 32px; justify-content: center; padding: 8px 0; }

.zh-slider-vitem { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.zh-rating { --zh-rating-size: 22px; --zh-rating-gap: 4px; --zh-rating-c: var(--zh-warning); display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }

.zh-rating.sm { --zh-rating-size: 16px; --zh-rating-gap: 2px; }

.zh-rating.lg { --zh-rating-size: 30px; --zh-rating-gap: 6px; }

.zh-rating.is-heart { --zh-rating-c: var(--zh-danger); }

.zh-rating-stars { display: inline-flex; gap: var(--zh-rating-gap); }

.zh-rating-cell { position: relative; width: var(--zh-rating-size); height: var(--zh-rating-size); flex: none; }

.zh-rating-icons { position: absolute; inset: 0; border-radius: 6px; pointer-events: none; transition: transform var(--zh-dur-fast) var(--zh-ease-spring); }

.zh-rating-icons .zh-rating-base { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--zh-border-strong); }

.zh-rating-part { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; overflow: hidden; }

.zh-rating-part .ico { position: absolute; top: 0; inset-inline-start: 0; width: var(--zh-rating-size); height: var(--zh-rating-size); color: var(--zh-rating-c); fill: currentColor; }

.zh-rating-in { position: absolute; top: 0; bottom: 0; margin: 0; width: 100%; opacity: 0; cursor: pointer; z-index: 1; -webkit-appearance: none; appearance: none; }

.zh-rating.is-half .zh-rating-in { width: 50%; }

.zh-rating.is-half .zh-rating-in.hi { inset-inline-start: 50%; }

.zh-rating-cell:hover .zh-rating-icons { transform: scale(1.12); }

.zh-rating-in:focus-visible ~ .zh-rating-icons { box-shadow: var(--zh-focus-ring); }

.zh-rating.is-readonly .zh-rating-cell:hover .zh-rating-icons { transform: none; }

.zh-rating.is-disabled { opacity: var(--zh-opacity-disabled); }

.zh-rating.is-disabled .zh-rating-in { cursor: not-allowed; }

.zh-rating-text { font-size: .93em; color: var(--zh-text-secondary); min-width: 3.2em; white-space: nowrap; }

.zh-rating-text.is-empty { color: var(--zh-text-tertiary); }

.zh-rating-num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--zh-text); min-width: 2.2em; }

@media (max-width: 767px) {
.zh-slider-num { width: 84px; }
.zh-slider-vgroup { gap: 24px; }
}

/* ---- 40-badge ---- */
.zh-bdg { position: relative; display: inline-flex; vertical-align: middle; }

.zh-bdg[data-size="sm"] > .zh-bdg-mark { --zh-bdg-h: 14px; --zh-bdg-fs: 10px; }

.zh-bdg[data-size="lg"] > .zh-bdg-mark { --zh-bdg-h: 22px; --zh-bdg-fs: 12px; }

.zh-bdg-mark {
  --zh-bdg-h: 18px; --zh-bdg-fs: 11px; --zh-bdg-bg: var(--zh-text-danger); --zh-bdg-fg: var(--zh-text-inverse); --zh-bdg-tx: 50%; --zh-bdg-ty: -50%;
  position: absolute; top: 0; right: 0; z-index: 1; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--zh-bdg-h); height: var(--zh-bdg-h); padding: 0 calc(var(--zh-bdg-h) * .3); border-radius: calc(var(--zh-bdg-h) / 2);
  background: var(--zh-bdg-bg); color: var(--zh-bdg-fg); font: 600 var(--zh-bdg-fs) / 1 var(--zh-font-sans);
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 0 0 2px var(--zh-bg-elevated);
  transform: translate(var(--zh-bdg-tx), var(--zh-bdg-ty));
  transition: transform var(--zh-dur-base) var(--zh-ease-spring), opacity var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-bdg-mark[data-tone="primary"] { --zh-bdg-bg: var(--zh-color-primary); --zh-bdg-fg: var(--zh-on-primary); }

.zh-bdg-mark[data-tone="success"] { --zh-bdg-bg: var(--zh-text-success); }

.zh-bdg-mark[data-tone="warning"] { --zh-bdg-bg: var(--zh-text-warning); }

.zh-bdg-mark[data-tone="info"] { --zh-bdg-bg: var(--zh-text-info); }

.zh-bdg-mark[data-tone="neutral"] { --zh-bdg-bg: var(--zh-text-secondary); }

.zh-bdg-mark.is-dot { min-width: 0; width: calc(var(--zh-bdg-h) * .5); height: calc(var(--zh-bdg-h) * .5); padding: 0; }

.zh-bdg-mark.is-text { border-radius: var(--zh-radius-sm); letter-spacing: .04em; text-transform: uppercase; padding: 0 calc(var(--zh-bdg-h) * .35); }

.zh-bdg[data-pos="top-left"] .zh-bdg-mark { right: auto; left: 0; --zh-bdg-tx: -50%; }

.zh-bdg[data-pos="bottom-right"] .zh-bdg-mark { top: auto; bottom: 0; --zh-bdg-ty: 50%; }

.zh-bdg[data-pos="bottom-left"] .zh-bdg-mark { top: auto; right: auto; bottom: 0; left: 0; --zh-bdg-tx: -50%; --zh-bdg-ty: 50%; }

.zh-bdg[data-shape="circle"] .zh-bdg-mark { top: 14%; right: 14%; }

.zh-bdg[data-shape="circle"][data-pos="bottom-right"] .zh-bdg-mark { top: auto; bottom: 14%; }

.zh-bdg[data-shape="circle"][data-pos="top-left"] .zh-bdg-mark { right: auto; left: 14%; }

.zh-bdg-mark.is-inline { position: static; transform: none; box-shadow: none; margin-left: 6px; }

.zh-bdg-mark.is-hidden { opacity: 0; pointer-events: none; transform: translate(var(--zh-bdg-tx), var(--zh-bdg-ty)) scale(.4); }

.zh-bdg-mark.is-inline.is-hidden { transform: scale(.4); }

.zh-bdg-mark.is-pop { animation: zh-bdg-pop var(--zh-dur-slow) var(--zh-ease-spring); }

@keyframes zh-bdg-pop {
  0% { transform: translate(var(--zh-bdg-tx), var(--zh-bdg-ty)) scale(.6); }
  60% { transform: translate(var(--zh-bdg-tx), var(--zh-bdg-ty)) scale(1.18); }
  100% { transform: translate(var(--zh-bdg-tx), var(--zh-bdg-ty)) scale(1); }
}

.zh-bdg-mark.is-inline.is-pop { animation-name: zh-bdg-pop-inline; }

@keyframes zh-bdg-pop-inline { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.zh-bdg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.zh-bdg-status { --dot: var(--zh-text-tertiary); display: inline-flex; align-items: center; gap: 8px; }

.zh-bdg-status[data-tone="primary"] { --dot: var(--zh-color-primary); }

.zh-bdg-status[data-tone="success"] { --dot: var(--zh-success); }

.zh-bdg-status[data-tone="warning"] { --dot: var(--zh-warning); }

.zh-bdg-status[data-tone="danger"] { --dot: var(--zh-danger); }

.zh-bdg-status[data-tone="info"] { --dot: var(--zh-info); }

.zh-bdg-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }

.zh-bdg-status.is-processing i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); animation: zh-bdg-ping 1.4s var(--zh-ease-standard) infinite; }

@keyframes zh-bdg-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.zh-tabs button .zh-bdg-mark { vertical-align: 1px; }

.zh-tag--x { gap: .4em; white-space: nowrap; line-height: 1; font-family: inherit; position: relative; transition: opacity var(--zh-dur-fast) var(--zh-ease-exit), transform var(--zh-dur-fast) var(--zh-ease-exit), background var(--zh-dur-fast) var(--zh-ease-standard), border-color var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-tag.zh-tag--sm { height: 1.55em; font-size: .74em; padding: 0 .6em; }

.zh-tag.zh-tag--lg { height: 2.05em; font-size: .95em; padding: 0 .9em; }

.zh-tag--filled { background: var(--zh-text-secondary); color: var(--zh-text-inverse); border-color: transparent; }

.zh-tag--filled.primary { background: var(--zh-color-primary); color: var(--zh-on-primary); }

.zh-tag--filled.success { background: var(--zh-text-success); color: var(--zh-text-inverse); }

.zh-tag--filled.warning { background: var(--zh-text-warning); color: var(--zh-text-inverse); }

.zh-tag--filled.danger { background: var(--zh-text-danger); color: var(--zh-text-inverse); }

.zh-tag--filled.info { background: var(--zh-text-info); color: var(--zh-text-inverse); }

.zh-tag--outline { background: transparent; border-color: var(--zh-border-strong); color: var(--zh-text-secondary); }

.zh-tag--outline.primary { background: transparent; border-color: var(--zh-primary-a35); color: var(--zh-color-primary-text); }

.zh-tag--outline.success { background: transparent; border-color: var(--zh-success-border); color: var(--zh-text-success); }

.zh-tag--outline.warning { background: transparent; border-color: var(--zh-warning-border); color: var(--zh-text-warning); }

.zh-tag--outline.danger { background: transparent; border-color: var(--zh-danger-border); color: var(--zh-text-danger); }

.zh-tag--outline.info { background: transparent; border-color: var(--zh-info-border); color: var(--zh-text-info); }

.zh-tag-dot { width: .62em; height: .62em; border-radius: 50%; background: var(--dot, var(--zh-text-tertiary)); flex: none; }

.zh-tag.is-leaving { opacity: 0; transform: scale(.8); pointer-events: none; }

.zh-tag-close { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin: 0 -.3em 0 -.1em; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .65; transition: opacity var(--zh-dur-fast), background var(--zh-dur-fast); }

.zh-tag-close:hover { opacity: 1; background: var(--zh-primary-a14); }

.zh-tag-close:focus-visible,
.zh-tag--check:focus-visible,
.zh-tag-add:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-tag-close .ico { width: 1em; height: 1em; }

.zh-tag--check { cursor: pointer; user-select: none; }

.zh-tag--check:hover { border-color: var(--zh-primary-a35); color: var(--zh-color-primary-text); }

.zh-tag--check[aria-checked="true"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); border-color: var(--zh-primary-a35); }

.zh-tag--check .zh-tag-tick { display: none; }

.zh-tag--check[aria-checked="true"] .zh-tag-tick { display: inline-block; animation: zh-tag-pop var(--zh-dur-base) var(--zh-ease-spring); }

@keyframes zh-tag-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

.zh-tag[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); cursor: not-allowed; pointer-events: none; }

.zh-tag-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.zh-tag-add { display: inline-flex; align-items: center; gap: .35em; height: 1.7em; padding: 0 .7em; font-family: inherit; font-size: .82em; font-weight: 500; line-height: 1; color: var(--zh-text-secondary); background: transparent; border: 1px dashed var(--zh-border-strong); border-radius: var(--zh-radius-sm); cursor: pointer; transition: border-color var(--zh-dur-fast), color var(--zh-dur-fast); }

[data-audience="c"] .zh-tag-add { border-radius: 999px; }

.zh-tag-add:hover { border-color: var(--zh-color-primary); color: var(--zh-color-primary-text); }

.zh-tag-input { height: 1.9em; width: 8.5em; padding: 0 .7em; font-family: inherit; font-size: .82em; font-weight: 500; line-height: 1; color: var(--zh-text); background: var(--zh-bg); border: 1px solid var(--zh-color-primary); border-radius: var(--zh-radius-sm); outline: none; box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

[data-audience="c"] .zh-tag-input { border-radius: 999px; }

.zh-tag-msg { flex-basis: 100%; min-height: 1.2em; margin: 0; }

.zh-avatar { --zh-avatar-size: 40px; position: relative; display: inline-block; flex: none; width: var(--zh-avatar-size); height: var(--zh-avatar-size); border-radius: 50%; vertical-align: middle; font-size: calc(var(--zh-avatar-size) * .4); font-weight: 600; line-height: 1; color: var(--zh-text); }

.zh-avatar[data-size="xs"] { --zh-avatar-size: 24px; }

.zh-avatar[data-size="sm"] { --zh-avatar-size: 32px; }

.zh-avatar[data-size="lg"] { --zh-avatar-size: 56px; }

.zh-avatar[data-size="xl"] { --zh-avatar-size: 72px; }

.zh-avatar[data-shape="square"] { border-radius: calc(var(--zh-avatar-size) * .22); }

.zh-avatar-face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: inherit; background: var(--zh-bg-subtle); }

.zh-avatar-face::before { content: ""; position: absolute; inset: 0; background: var(--av, var(--zh-text-tertiary)); opacity: .2; }

.zh-avatar-face > span,
.zh-avatar-face > .ico { position: relative; }

.zh-avatar-face > .ico { width: 50%; height: 50%; color: var(--zh-text-secondary); }

.zh-avatar-face img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }

.zh-avatar-status { --dot: var(--zh-text-tertiary); position: absolute; right: 0; bottom: 0; width: max(8px, calc(var(--zh-avatar-size) * .26)); height: max(8px, calc(var(--zh-avatar-size) * .26)); border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--zh-bg-elevated); }

.zh-avatar-status[data-tone="success"] { --dot: var(--zh-success); }

.zh-avatar-status[data-tone="warning"] { --dot: var(--zh-warning); }

.zh-avatar-status[data-tone="danger"] { --dot: var(--zh-danger); }

.zh-avatar-status[data-tone="primary"] { --dot: var(--zh-color-primary); }

.zh-avatar-group { display: inline-flex; align-items: center; }

.zh-avatar-group > .zh-avatar { box-shadow: 0 0 0 2px var(--zh-bg-elevated); transition: transform var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-avatar-group > .zh-avatar + .zh-avatar { margin-left: calc(var(--zh-avatar-size) * -.28); }

.zh-avatar-group > .zh-avatar:hover,
.zh-avatar-group > .zh-avatar:focus-visible { transform: translateY(-2px); z-index: 2; }

.zh-avatar.is-more { border: 0; padding: 0; cursor: pointer; font-family: inherit; background: transparent; }

.zh-avatar.is-more .zh-avatar-face { background: var(--zh-bg-subtle); border: 1px solid var(--zh-border); box-sizing: border-box; color: var(--zh-text-secondary); }

.zh-avatar.is-more .zh-avatar-face::before { display: none; }

.zh-avatar.is-more:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

/* ---- 41-panel ---- */
.zh-card--flush { padding: 0; overflow: hidden; }

.zh-cardx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--zh-space-3) * var(--zh-pad)) calc(var(--zh-space-5) * var(--zh-pad)); border-bottom: 1px solid var(--zh-border); }

.zh-cardx-title { margin: 0; font-size: .95em; font-weight: 600; }

.zh-cardx-extra { display: flex; align-items: center; gap: 4px; }

.zh-cardx-body { padding: calc(var(--zh-space-5) * var(--zh-pad)); }

.zh-cardx-body > :first-child { margin-top: 0; }

.zh-cardx-body > :last-child { margin-bottom: 0; }

.zh-cardx-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: calc(var(--zh-space-3) * var(--zh-pad)) calc(var(--zh-space-5) * var(--zh-pad)); border-top: 1px solid var(--zh-border); background: var(--zh-bg-subtle); }

.zh-cardx-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--zh-bg-subtle); }

.zh-cardx-cover svg { display: block; width: 100%; height: 100%; }

.zh-card--hover { display: block; color: inherit; text-decoration: none; transition: transform var(--zh-dur-base) var(--zh-ease-standard), box-shadow var(--zh-dur-base) var(--zh-ease-standard), border-color var(--zh-dur-base) var(--zh-ease-standard); }

.zh-card--hover:hover { transform: translateY(-3px); box-shadow: var(--zh-shadow-md); border-color: var(--zh-primary-a35); }

.zh-card--hover:focus-visible,
.zh-card--select:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-card--select { position: relative; cursor: pointer; user-select: none; transition: border-color var(--zh-dur-fast) var(--zh-ease-standard), box-shadow var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-card--select:hover { border-color: var(--zh-primary-a35); }

.zh-card--select[aria-checked="true"] { border-color: var(--zh-color-primary); box-shadow: 0 0 0 1px var(--zh-color-primary), var(--zh-shadow-sm); }

.zh-card--select[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-card-tick { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zh-color-primary); color: var(--zh-on-primary); transform: scale(0); transition: transform var(--zh-dur-base) var(--zh-ease-spring); }

.zh-card--select[aria-checked="true"] .zh-card-tick { transform: scale(1); }

.zh-card-tick .ico { width: 14px; height: 14px; stroke-width: 2.6; }

.zh-cardx-stat-label { display: flex; align-items: center; gap: 6px; color: var(--zh-text-secondary); font-size: .9em; }

.zh-cardx-stat-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; }

.zh-cardx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.zh-cardx-loading[hidden] { display: none; }

.zh-collapse { --zh-collapse-radius: var(--zh-radius-lg); border: 1px solid var(--zh-border); border-radius: var(--zh-collapse-radius); background: var(--zh-bg-elevated); overflow: hidden; }

.zh-collapse--ghost { border: 0; border-radius: 0; background: transparent; overflow: visible; }

.zh-collapse-item + .zh-collapse-item { border-top: 1px solid var(--zh-border); }

.zh-collapse--ghost > .zh-collapse-item:last-child { border-bottom: 1px solid var(--zh-border); }

.zh-collapse--ghost > .zh-collapse-item:first-child { border-top: 1px solid var(--zh-border); }

.zh-collapse-h { margin: 0; font-size: inherit; font-weight: inherit; }

.zh-collapse-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: var(--zh-control-h); padding: 8px calc(var(--zh-space-4) * var(--zh-pad)); border: 0; background: transparent; color: var(--zh-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-collapse--ghost > .zh-collapse-item > .zh-collapse-h > .zh-collapse-trigger { padding-left: 0; padding-right: 0; }

.zh-collapse-trigger:hover { background: var(--zh-bg-subtle); }

.zh-collapse-trigger:focus-visible { outline: none; box-shadow: inset var(--zh-focus-ring); }

.zh-collapse-trigger:disabled { opacity: var(--zh-opacity-disabled); cursor: not-allowed; background: transparent; }

.zh-collapse-trigger .lead { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

.zh-collapse-chev { flex: none; color: var(--zh-text-tertiary); transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-collapse-item.is-open > .zh-collapse-h .zh-collapse-chev { transform: rotate(90deg); }

.zh-collapse-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--zh-dur-base) var(--zh-ease-standard), visibility 0s linear var(--zh-dur-base); }

.zh-collapse-item.is-open > .zh-collapse-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }

.zh-collapse-inner { min-height: 0; overflow: hidden; }

.zh-collapse-content { padding: 4px calc(var(--zh-space-4) * var(--zh-pad)) calc(var(--zh-space-4) * var(--zh-pad)); color: var(--zh-text-secondary); }

.zh-collapse--ghost > .zh-collapse-item > .zh-collapse-panel > .zh-collapse-inner > .zh-collapse-content { padding-left: 0; padding-right: 0; }

.zh-collapse-content > :first-child { margin-top: 0; }

.zh-collapse-content > :last-child { margin-bottom: 0; }

.zh-collapse .zh-collapse { margin-top: 8px; }

.zh-descr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }

.zh-descr[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.zh-descr[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }

.zh-descr-item { min-width: 0; }

.zh-descr-item[data-span="2"] { grid-column: span 2; }

.zh-descr-item[data-span="3"] { grid-column: span 3; }

.zh-descr-item dt { color: var(--zh-text-tertiary); font-size: .88em; }

.zh-descr-item dd { margin: 0; color: var(--zh-text); word-break: break-word; }

.zh-descr[data-variant="plain"] { gap: 18px 32px; }

.zh-descr[data-variant="plain"] .zh-descr-item dd { margin-top: 3px; }

.zh-descr-wrap { border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); overflow: hidden; }

.zh-descr-wrap > .zh-descr { margin: 0 -1px -1px 0; width: calc(100% + 1px); }

.zh-descr[data-variant="bordered"] .zh-descr-item { display: grid; grid-template-columns: minmax(5em, 7.5em) minmax(0, 1fr); border-right: 1px solid var(--zh-border); border-bottom: 1px solid var(--zh-border); margin: 0; }

.zh-descr[data-variant="bordered"] .zh-descr-item dt { display: flex; align-items: center; padding: 10px 14px; background: var(--zh-bg-subtle); border-right: 1px solid var(--zh-border); }

.zh-descr[data-variant="bordered"] .zh-descr-item dd { padding: 10px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.zh-descr-link { color: var(--zh-color-primary-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1199px) {
.zh-descr[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zh-descr-item[data-span="3"] { grid-column: span 2; }
}

@media (max-width: 767px) {
.zh-descr,
.zh-descr[data-cols="2"],
.zh-descr[data-cols="3"] { grid-template-columns: minmax(0, 1fr); }
.zh-descr-item[data-span] { grid-column: auto; }
}

.zh-result { --r-bg: var(--zh-bg-subtle); --r-fg: var(--zh-text-secondary); text-align: center; padding: 36px 16px 32px; }

.zh-result[data-tone="success"] { --r-bg: var(--zh-success-bg); --r-fg: var(--zh-text-success); }

.zh-result[data-tone="error"] { --r-bg: var(--zh-danger-bg); --r-fg: var(--zh-text-danger); }

.zh-result[data-tone="info"] { --r-bg: var(--zh-info-bg); --r-fg: var(--zh-text-info); }

.zh-result[data-tone="warning"] { --r-bg: var(--zh-warning-bg); --r-fg: var(--zh-text-warning); }

.zh-result-code { font-size: calc(var(--zh-fs) * 5); font-weight: 700; letter-spacing: .04em; line-height: 1; color: var(--zh-border-strong); margin-bottom: 14px; }

.zh-result-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--r-bg); color: var(--r-fg); }

.zh-result-icon .ico { width: 34px; height: 34px; stroke-width: 1.8; }

.zh-result-title { margin: 0 0 6px; font-size: 1.35em; font-weight: var(--zh-heading-weight); }

.zh-result-desc { margin: 0 auto; max-width: 46ch; color: var(--zh-text-secondary); }

.zh-result-extra { margin: 18px auto 0; max-width: 46ch; text-align: left; padding: 12px 16px; border-radius: var(--zh-radius-md); background: var(--zh-bg-subtle); border: 1px solid var(--zh-border); color: var(--zh-text-secondary); font-size: .93em; }

.zh-result-extra ul { margin: 0; padding-left: 1.2em; }

.zh-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.zh-result.is-in .zh-result-icon { animation: zh-result-pop var(--zh-dur-slow) var(--zh-ease-spring) both; }

.zh-result.is-in .zh-result-code,
.zh-result.is-in .zh-result-title,
.zh-result.is-in .zh-result-desc,
.zh-result.is-in .zh-result-extra,
.zh-result.is-in .zh-result-actions { animation: zh-result-rise var(--zh-dur-slow) var(--zh-ease-enter) both; }

.zh-result.is-in .zh-result-title { animation-delay: var(--zh-stagger); }

.zh-result.is-in .zh-result-desc { animation-delay: calc(var(--zh-stagger) * 2); }

.zh-result.is-in .zh-result-extra { animation-delay: calc(var(--zh-stagger) * 3); }

.zh-result.is-in .zh-result-actions { animation-delay: calc(var(--zh-stagger) * 4); }

@keyframes zh-result-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

@keyframes zh-result-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 767px) {
.zh-result-actions .zh-btn { flex: 1 1 100%; }
}

.zh-splitpane { --zh-sp-size: 36%; position: relative; display: flex; height: 260px; border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); overflow: hidden; background: var(--zh-bg-elevated); }

.zh-splitpane-pane { min-width: 0; overflow: auto; }

.zh-splitpane-pane.is-a { flex: 0 0 var(--zh-sp-size); }

.zh-splitpane-pane.is-b { flex: 1 1 0; }

.zh-splitpane.is-animating .is-a { transition: flex-basis var(--zh-dur-base) var(--zh-ease-standard); }

.zh-splitpane.is-collapsed .is-a { flex-basis: 0; visibility: hidden; }

.zh-splitpane-bar { position: relative; flex: none; width: 9px; margin: 0 -4px; z-index: 1; cursor: col-resize; touch-action: none; outline: none; display: grid; place-items: center; }

.zh-splitpane-bar::before { content: ""; width: 1px; height: 100%; background: var(--zh-border); transition: background var(--zh-dur-fast), width var(--zh-dur-fast); }

.zh-splitpane-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 28px; border-radius: 2px; background: var(--zh-border-strong); transform: translate(-50%, -50%); transition: background var(--zh-dur-fast), height var(--zh-dur-fast); }

.zh-splitpane-bar:hover::before,
.zh-splitpane-bar.is-drag::before,
.zh-splitpane-bar:focus-visible::before { width: 2px; background: var(--zh-color-primary); }

.zh-splitpane-bar:hover::after,
.zh-splitpane-bar.is-drag::after,
.zh-splitpane-bar:focus-visible::after { height: 40px; background: var(--zh-color-primary); }

.zh-splitpane.is-collapsed .zh-splitpane-bar { pointer-events: none; opacity: .5; }

.zh-splitpane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--zh-border); background: var(--zh-bg-subtle); position: sticky; top: 0; font-weight: 600; font-size: .9em; }

.zh-splitpane-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }

.zh-splitpane-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--zh-radius-md); background: transparent; color: var(--zh-text-secondary); font: inherit; text-align: left; cursor: pointer; }

.zh-splitpane-list button:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-splitpane-list button[aria-current="true"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-splitpane-list button:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-splitpane-body { padding: 16px; }

.zh-splitpane-readout { display: inline-block; margin-right: 10px; font: 11px var(--zh-font-mono); color: var(--zh-text-tertiary); }

@media (max-width: 767px) {
.zh-splitpane { display: block; height: auto; }
.zh-splitpane-pane.is-a { max-height: 200px; border-bottom: 1px solid var(--zh-border); }
.zh-splitpane-bar { display: none; }
.zh-splitpane.is-collapsed .is-a { display: none; }
}

.zh-panelsec { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--zh-border); }

.zh-panelsec:first-child { border-top: 0; padding-top: 0; }

.zh-panelsec-intro h4 { margin: 0 0 4px; font-size: 1em; }

.zh-panelsec-intro p { margin: 0; }

.zh-panelrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px calc(var(--zh-space-5) * var(--zh-pad)); }

.zh-panelrow + .zh-panelrow { border-top: 1px solid var(--zh-border); }

.zh-panelrow-text { min-width: 0; }

.zh-panelrow-text b { display: block; font-weight: 600; }

.zh-panelrow-text span { color: var(--zh-text-tertiary); font-size: .88em; }

.zh-panelrow-ctl { flex: none; display: flex; align-items: center; gap: 8px; }

.zh-panelrow-ctl .zh-input { width: 200px; max-width: 100%; }

.zh-panelrow-ctl .zh-select { width: 160px; }

.zh-panelrow--danger .zh-panelrow-text b { color: var(--zh-text-danger); }

.zh-panelbar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--zh-border); border-radius: var(--zh-radius-lg); background: var(--zh-bg-elevated); box-shadow: var(--zh-shadow-lg); animation: zh-result-rise var(--zh-dur-base) var(--zh-ease-enter); }

.zh-panelbar[hidden] { display: none; }

@media (max-width: 767px) {
.zh-panelsec { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.zh-panelrow { flex-wrap: wrap; }
.zh-panelrow-ctl { width: 100%; }
.zh-panelrow-ctl .zh-input,
.zh-panelrow-ctl .zh-select { width: 100%; }
.zh-panelbar { flex-direction: column; align-items: stretch; }
}

/* ---- 43-timeline ---- */
.zh-tl { --zh-tl-rail: 24px; --zh-tl-gap: calc(20px * var(--zh-pad)); list-style: none; margin: 0; padding: 0; }

.zh-tl--rail-lg { --zh-tl-rail: 32px; }

.zh-tl-item {
  --zh-tl-c: var(--zh-border-strong); --zh-tl-bg: var(--zh-bg-subtle); --zh-tl-fg: var(--zh-text-secondary);
  display: grid; column-gap: 12px; align-items: start;
  grid-template-columns: var(--zh-tl-rail) minmax(0, 1fr); grid-template-areas: "rail body";
}

.zh-tl-item--primary { --zh-tl-c: var(--zh-color-primary); --zh-tl-bg: var(--zh-color-primary-subtle); --zh-tl-fg: var(--zh-color-primary-text); }

.zh-tl-item--success { --zh-tl-c: var(--zh-success); --zh-tl-bg: var(--zh-success-bg); --zh-tl-fg: var(--zh-text-success); }

.zh-tl-item--warning { --zh-tl-c: var(--zh-warning); --zh-tl-bg: var(--zh-warning-bg); --zh-tl-fg: var(--zh-text-warning); }

.zh-tl-item--danger { --zh-tl-c: var(--zh-danger); --zh-tl-bg: var(--zh-danger-bg); --zh-tl-fg: var(--zh-text-danger); }

.zh-tl-item--info { --zh-tl-c: var(--zh-info); --zh-tl-bg: var(--zh-info-bg); --zh-tl-fg: var(--zh-text-info); }

.zh-tl-item--pending { --zh-tl-c: var(--zh-color-primary); --zh-tl-bg: var(--zh-color-primary-subtle); --zh-tl-fg: var(--zh-color-primary-text); }

.zh-tl-rail { grid-area: rail; align-self: stretch; display: flex; flex-direction: column; align-items: center; }

.zh-tl-rail::after { content: ""; flex: 1; width: 2px; margin: 4px 0; border-radius: 1px; background: var(--zh-border); }

.zh-tl-item:last-child > .zh-tl-rail::after { display: none; }

.zh-tl-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--zh-tl-c); box-shadow: 0 0 0 4px var(--zh-tl-bg);
  margin-top: calc((1em * var(--zh-line) - 10px) / 2);
}

.zh-tl-dot--hollow { width: 12px; height: 12px; background: var(--zh-bg-elevated); border: 2px solid var(--zh-tl-c); box-shadow: none; margin-top: calc((1em * var(--zh-line) - 12px) / 2); }

.zh-tl-dot--icon { width: 24px; height: 24px; margin-top: calc((1em * var(--zh-line) - 24px) / 2); background: var(--zh-tl-bg); color: var(--zh-tl-fg); box-shadow: none; display: grid; place-items: center; }

.zh-tl-dot--lg { width: 32px; height: 32px; margin-top: 0; }

.zh-tl-dot--icon .ico { width: 14px; height: 14px; }

.zh-tl-dot--lg .ico { width: 18px; height: 18px; }

.zh-tl-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--zh-tl-bg); color: var(--zh-tl-fg); font-weight: 600; font-size: .86em; }

.zh-tl-spin { animation: zh-tl-rot 900ms linear infinite; }

@keyframes zh-tl-rot { to { transform: rotate(360deg); } }

.zh-tl-body { grid-area: body; min-width: 0; padding-bottom: var(--zh-tl-gap); }

.zh-tl-item:last-child > .zh-tl-body { padding-bottom: 0; }

.zh-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }

.zh-tl-title { font-weight: 600; color: var(--zh-text); }

.zh-tl-item--pending .zh-tl-title { color: var(--zh-text-secondary); font-weight: 500; }

.zh-tl-time { color: var(--zh-text-tertiary); font-size: .86em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.zh-tl-desc { color: var(--zh-text-secondary); margin-top: 2px; }

.zh-tl-quote { margin-top: 6px; padding: 8px 12px; border-inline-start: 3px solid var(--zh-border-strong); border-radius: 2px var(--zh-radius-md) var(--zh-radius-md) 2px; background: var(--zh-bg-subtle); color: var(--zh-text-secondary); font-size: .93em; }

.zh-tl-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.zh-tl-file {
  display: inline-flex; align-items: center; gap: 6px; height: calc(var(--zh-control-h) - 8px); padding: 0 10px; font: inherit; font-size: .86em;
  color: var(--zh-text-secondary); background: var(--zh-bg); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); cursor: pointer;
  transition: border-color var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard), background var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-tl-file:hover { border-color: var(--zh-color-primary); color: var(--zh-color-primary-text); background: var(--zh-color-primary-subtle); }

.zh-tl-file:focus-visible,
.zh-tl-toggle:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-tl-fsize { color: var(--zh-text-tertiary); }

.zh-tl-toggle {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 6px 2px 2px; font: inherit; font-size: .86em; color: var(--zh-color-primary-text);
  background: none; border: 0; border-radius: var(--zh-radius-sm); cursor: pointer;
}

.zh-tl-toggle .ico { width: 14px; height: 14px; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-tl-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }

.zh-tl-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--zh-dur-base) var(--zh-ease-standard); }

.zh-tl-detail-wrap { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear var(--zh-dur-base); }

.zh-tl-body.is-open .zh-tl-detail { grid-template-rows: 1fr; }

.zh-tl-body.is-open .zh-tl-detail-wrap { visibility: visible; transition-delay: 0s; }

.zh-tl-detail-in { margin-top: 6px; padding: 10px 12px; border-left: 2px solid var(--zh-tl-c, var(--zh-border-strong)); background: var(--zh-bg-subtle); border-radius: 0 var(--zh-radius-md) var(--zh-radius-md) 0; color: var(--zh-text-secondary); font-size: .93em; }

.zh-tl-date { display: grid; grid-template-columns: var(--zh-tl-rail) minmax(0, 1fr); column-gap: 12px; padding: 2px 0 10px; font-size: .86em; font-weight: 600; color: var(--zh-text-secondary); }

.zh-tl-date::before { content: ""; grid-column: 1; justify-self: center; width: 2px; background: var(--zh-border); }

.zh-tl-date span { grid-column: 2; }

.zh-tl-date em { font-style: normal; color: var(--zh-text-tertiary); font-weight: 400; margin-left: 8px; }

.zh-tl--compact { --zh-tl-gap: calc(10px * var(--zh-pad)); font-size: .93em; }

.zh-tl--compact .zh-tl-desc,
.zh-tl--compact .zh-tl-files { display: none; }

.zh-tl--feed .zh-tl-title { font-weight: 400; color: var(--zh-text-secondary); }

.zh-tl--feed .zh-tl-title b { color: var(--zh-text); font-weight: 600; }

.zh-tl--feed .zh-tl-item { --zh-tl-gap: calc(18px * var(--zh-pad)); }

.zh-tl--feed .zh-tl-rail::after { margin-top: 6px; }

.zh-tl--right .zh-tl-item { grid-template-columns: minmax(0, 1fr) var(--zh-tl-rail); grid-template-areas: "body rail"; text-align: right; }

.zh-tl--right .zh-tl-head,
.zh-tl--right .zh-tl-files { justify-content: flex-end; }

.zh-tl--alt .zh-tl-item { grid-template-columns: minmax(0, 1fr) var(--zh-tl-rail) minmax(0, 1fr); grid-template-areas: "body rail time"; }

.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-body { text-align: right; }

.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-head,
.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-files { justify-content: flex-end; }

.zh-tl--alt .zh-tl-item:nth-child(even) { grid-template-areas: "time rail body"; }

.zh-tl--alt .zh-tl-item:nth-child(even) .zh-tl-time { text-align: right; }

.zh-tl-time--opp { grid-area: time; padding-top: calc((1em * var(--zh-line) - 1em * .86 * var(--zh-line)) / 2); }

@media (max-width: 767px) {
.zh-tl--alt .zh-tl-item,
.zh-tl--alt .zh-tl-item:nth-child(even) { grid-template-columns: var(--zh-tl-rail) minmax(0, 1fr); grid-template-areas: "rail time" "rail body"; }
.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-body { text-align: left; }
.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-head,
.zh-tl--alt .zh-tl-item:nth-child(odd) .zh-tl-files { justify-content: flex-start; }
.zh-tl--alt .zh-tl-item:nth-child(even) .zh-tl-time { text-align: left; }
.zh-tl--alt .zh-tl-time--opp { padding-top: 0; }
}

.zh-tl-item--new { animation: zh-tl-in var(--zh-dur-slow) var(--zh-ease-enter) both; }

@keyframes zh-tl-in { from { opacity: 0; transform: translateY(8px); } }

.zh-steps { --zh-step-icon: 32px; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }

.zh-steps--lg { --zh-step-icon: 40px; }

.zh-steps--sm { --zh-step-icon: 24px; font-size: .93em; }

.zh-steps--dot { --zh-step-icon: 12px; }

.zh-step { position: relative; display: flex; align-items: flex-start; flex: 1 1 0; min-width: max-content; }

.zh-step:last-child { flex: none; }

.zh-step-hit { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: var(--zh-radius-md); cursor: default; }

button.zh-step-hit { cursor: pointer; }

button.zh-step-hit:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

button.zh-step-hit:disabled { cursor: not-allowed; opacity: var(--zh-opacity-disabled); }

.zh-step-icon {
  flex: none; width: var(--zh-step-icon); height: var(--zh-step-icon); border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--zh-border-strong); color: var(--zh-text-tertiary); background: var(--zh-bg); font-weight: 600; font-size: .86em; font-variant-numeric: tabular-nums;
  transition: background var(--zh-dur-base) var(--zh-ease-standard), border-color var(--zh-dur-base) var(--zh-ease-standard), color var(--zh-dur-base) var(--zh-ease-standard), transform var(--zh-dur-base) var(--zh-ease-spring);
}

.zh-step-icon .ico { width: 55%; height: 55%; }

.zh-step.is-process .zh-step-icon { background: var(--zh-color-primary); border-color: var(--zh-color-primary); color: var(--zh-on-primary); }

.zh-step.is-finish .zh-step-icon { background: var(--zh-color-primary-subtle); border-color: transparent; color: var(--zh-color-primary-text); }

.zh-step.is-error .zh-step-icon { background: var(--zh-danger-bg); border-color: transparent; color: var(--zh-text-danger); }

button.zh-step-hit:not(:disabled):hover .zh-step-icon { border-color: var(--zh-color-primary); transform: scale(1.06); }

.zh-step-main { min-width: 0; padding-top: calc((var(--zh-step-icon) - 1.6em) / 2); }

.zh-steps--dot .zh-step-main { padding-top: 0; margin-top: calc((var(--zh-step-icon) - 1.6em) / 2); }

.zh-step-title { font-weight: 600; line-height: 1.6; white-space: nowrap; color: var(--zh-text); transition: color var(--zh-dur-base) var(--zh-ease-standard); }

.zh-step.is-wait .zh-step-title { color: var(--zh-text-tertiary); font-weight: 500; }

.zh-step.is-error .zh-step-title { color: var(--zh-text-danger); }

.zh-step-desc { color: var(--zh-text-secondary); font-size: .86em; line-height: 1.5; margin-top: 2px; white-space: normal; }

.zh-step-msg { color: var(--zh-text-danger); font-size: .86em; margin-top: 2px; }

.zh-step-line { flex: 1 1 auto; min-width: 20px; height: 2px; margin: calc(var(--zh-step-icon) / 2 - 1px) 12px 0; background: var(--zh-border); border-radius: 1px; overflow: hidden; position: relative; }

.zh-step-line i { position: absolute; inset: 0; background: var(--zh-color-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--zh-dur-slow) var(--zh-ease-standard); }

.zh-step.is-finish > .zh-step-line i { transform: scaleX(1); }

.zh-step:last-child > .zh-step-line { display: none; }

.zh-steps--dot .zh-step-icon { border-width: 2px; font-size: 0; }

.zh-steps--dot .zh-step.is-process .zh-step-icon { box-shadow: 0 0 0 4px var(--zh-color-primary-subtle); }

.zh-steps--dot .zh-step.is-finish .zh-step-icon { background: var(--zh-color-primary); border-color: var(--zh-color-primary); }

.zh-steps--dot .zh-step.is-error .zh-step-icon { background: var(--zh-danger); border-color: var(--zh-danger); }

.zh-steps--dot .zh-step-icon .ico { display: none; }

.zh-steps--sm .zh-step-main { padding-top: calc((var(--zh-step-icon) - 1.6em) / 2); }

.zh-steps--v { flex-direction: column; }

.zh-steps--v .zh-step { flex: none; display: block; min-width: 0; padding-bottom: 22px; }

.zh-steps--v .zh-step:last-child { padding-bottom: 0; }

.zh-steps--v .zh-step-line { position: absolute; left: calc(var(--zh-step-icon) / 2 - 1px); top: calc(var(--zh-step-icon) + 4px); bottom: 4px; width: 2px; height: auto; min-width: 0; margin: 0; }

.zh-steps--v .zh-step-line i { transform: scaleY(0); transform-origin: top; }

.zh-steps--v .zh-step.is-finish > .zh-step-line i { transform: scaleY(1); }

.zh-steps--v .zh-step-title { white-space: normal; }

@media (max-width: 767px) {
.zh-steps--h { flex-direction: column; }
.zh-steps--h .zh-step { flex: none; display: block; padding-bottom: 22px; }
.zh-steps--h .zh-step:last-child { padding-bottom: 0; }
.zh-steps--h .zh-step-line { position: absolute; left: calc(var(--zh-step-icon) / 2 - 1px); top: calc(var(--zh-step-icon) + 4px); bottom: 4px; width: 2px; height: auto; min-width: 0; margin: 0; }
.zh-steps--h .zh-step-line i { transform: scaleY(0); transform-origin: top; }
.zh-steps--h .zh-step.is-finish > .zh-step-line i { transform: scaleY(1); }
.zh-steps--h .zh-step-title { white-space: normal; }
}

.zh-steps.is-stacked { flex-direction: column; }

.zh-steps.is-stacked .zh-step { flex: none; display: block; min-width: 0; padding-bottom: 22px; }

.zh-steps.is-stacked .zh-step:last-child { padding-bottom: 0; }

.zh-steps.is-stacked .zh-step-line { position: absolute; left: calc(var(--zh-step-icon) / 2 - 1px); top: calc(var(--zh-step-icon) + 4px); bottom: 4px; width: 2px; height: auto; min-width: 0; margin: 0; }

.zh-steps.is-stacked .zh-step-line i { transform: scaleY(0); transform-origin: top; }

.zh-steps.is-stacked .zh-step.is-finish > .zh-step-line i { transform: scaleY(1); }

.zh-steps.is-stacked .zh-step-title { white-space: normal; }

/* ---- 34-upload ---- */
.zh-upload { position: relative; }

.zh-upload [hidden] { display: none !important; }

.zh-upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; text-align: center;
  border: 1.5px dashed var(--zh-border-strong); border-radius: var(--zh-radius-lg); background: var(--zh-bg-subtle); color: var(--zh-text-secondary); cursor: pointer;
  transition: border-color var(--zh-dur-fast) var(--zh-ease-standard), background var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-upload-drop .ico { color: var(--zh-text-tertiary); transition: transform var(--zh-dur-base) var(--zh-ease-spring), color var(--zh-dur-fast); }

.zh-upload-drop:hover,
.zh-upload-drop:focus-visible { border-color: var(--zh-color-primary); background: var(--zh-color-primary-subtle); }

.zh-upload-drop:focus-visible { outline: none; box-shadow: var(--zh-focus-ring); }

.zh-upload-drop.is-over { border-style: solid; border-color: var(--zh-color-primary); background: var(--zh-color-primary-subtle); }

.zh-upload-drop.is-over .ico { transform: translateY(-4px) scale(1.1); color: var(--zh-color-primary); }

.zh-upload-title { color: var(--zh-text); font-weight: 500; }

.zh-upload-link { color: var(--zh-color-primary-text); font-weight: 600; }

.zh-upload-hint { font-size: .85em; color: var(--zh-text-tertiary); max-width: 60ch; }

.zh-upload.is-disabled .zh-upload-drop { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-upload.is-disabled .zh-upload-drop:hover { border-color: var(--zh-border-strong); background: var(--zh-bg-subtle); }

.zh-upload-errors:empty { display: none; }

.zh-upload-errors { margin-top: 10px; display: grid; gap: 4px; }

.zh-upload-err { display: flex; gap: 8px; align-items: flex-start; font-size: .88em; color: var(--zh-text-danger); line-height: 1.45; }

.zh-upload-err .ico { flex: none; margin-top: 2px; }

.zh-upload-err .zh-upload-errx { margin-inline-start: auto; flex: none; }

.zh-upload-foot { margin-top: 10px; }

.zh-upload-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }

.zh-upload-list:empty { display: none; }

.zh-upload-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); background: var(--zh-bg-elevated); animation: zh-upload-in var(--zh-dur-base) var(--zh-ease-enter);
}

@keyframes zh-upload-in { from { opacity: 0; transform: translateY(6px); } }

.zh-upload-ico { width: 36px; height: 36px; border-radius: var(--zh-radius-md); background: var(--zh-bg-subtle); color: var(--zh-text-secondary); display: grid; place-items: center; transition: background var(--zh-dur-base), color var(--zh-dur-base); }

.zh-upload-item.is-done .zh-upload-ico { background: var(--zh-success-bg); color: var(--zh-text-success); }

.zh-upload-item.is-error .zh-upload-ico { background: var(--zh-danger-bg); color: var(--zh-text-danger); }

.zh-upload-item.is-error { border-color: var(--zh-danger-border); }

.zh-upload-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.zh-upload-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82em; color: var(--zh-text-tertiary); font-variant-numeric: tabular-nums; }

.zh-upload-item.is-done .zh-upload-status { color: var(--zh-text-success); }

.zh-upload-item.is-error .zh-upload-status { color: var(--zh-text-danger); }

.zh-upload-bar { height: 4px; border-radius: 2px; background: var(--zh-meter-track); margin-top: 6px; overflow: hidden; }

.zh-upload-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--zh-color-primary); transition: width var(--zh-dur-fast) linear, background var(--zh-dur-base); }

.zh-upload-item.is-error .zh-upload-bar i { background: var(--zh-danger); }

.zh-upload-item.is-done .zh-upload-bar,
.zh-upload-item.is-queued .zh-upload-bar { display: none; }

.zh-upload-actions { display: flex; gap: 2px; }

@media (max-width: 767px) {
.zh-upload-drop { padding: 22px 12px; }
.zh-upload-item { gap: 10px; padding: 10px; }
}

/* ---- 50-navigation-cmd ---- */
dialog.zh-cmd { position: fixed; top: 12vh; left: 50%; margin: 0; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: 72vh; border: 1px solid var(--zh-border); border-radius: calc(var(--zh-radius-lg) + 2px); background: var(--zh-bg-elevated); color: var(--zh-text); box-shadow: var(--zh-shadow-lg); transform: translateX(-50%); overflow: hidden; font-size: var(--zh-fs); line-height: var(--zh-line); }

dialog.zh-cmd[open] { display: flex; flex-direction: column; animation: zh-cmd-in var(--zh-dur-base) var(--zh-ease-enter); }

dialog.zh-cmd[open]::backdrop { background: var(--zh-overlay); animation: zh-cmd-fade var(--zh-dur-base) var(--zh-ease-standard); }

dialog.zh-cmd.is-closing { animation: zh-cmd-out var(--zh-dur-fast) var(--zh-ease-exit) forwards; }

dialog.zh-cmd.is-closing::backdrop { animation: zh-cmd-fade var(--zh-dur-fast) var(--zh-ease-exit) reverse forwards; }

@keyframes zh-cmd-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0); } }

@keyframes zh-cmd-out { to { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }

@keyframes zh-cmd-fade { from { opacity: 0; } to { opacity: 1; } }

.zh-cmd-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--zh-border); color: var(--zh-text-tertiary); }

.zh-cmd-input input { flex: 1; min-width: 0; height: max(52px, calc(var(--zh-control-h) + 12px)); border: 0; outline: none; background: none; color: var(--zh-text); font: inherit; font-size: 1.05em; }

.zh-cmd-input input::placeholder { color: var(--zh-text-tertiary); }

.zh-cmd-list { flex: 1; overflow: auto; padding: 8px; }

.zh-cmd-gl { padding: 10px 10px 4px; font: 600 11px var(--zh-font-mono); letter-spacing: .08em; color: var(--zh-text-tertiary); }

.zh-cmd-item { display: flex; align-items: center; gap: 12px; min-height: max(var(--zh-touch-min, 0px), calc(var(--zh-control-h) + 4px)); padding: 0 10px; border-radius: var(--zh-radius-md); cursor: pointer; }

.zh-cmd-item .ico { flex: none; color: var(--zh-text-tertiary); }

.zh-cmd-item[aria-selected="true"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

.zh-cmd-item[aria-selected="true"] .ico { color: inherit; }

.zh-cmd-item .zh-cmd-hint { margin-left: auto; color: var(--zh-text-tertiary); font-size: .86em; white-space: nowrap; }

.zh-cmd-item[aria-selected="true"] .zh-cmd-hint { color: inherit; opacity: .8; }

.zh-cmd-item mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--zh-color-primary); }

.zh-cmd-empty { padding: 36px 16px; text-align: center; color: var(--zh-text-tertiary); }

.zh-cmd-foot { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--zh-border); background: var(--zh-bg-subtle); color: var(--zh-text-tertiary); font-size: .86em; }

.zh-cmd-foot span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 767px) {
dialog.zh-cmd { top: 8px; max-height: calc(100vh - 16px); }
.zh-cmd-foot { display: none; }
}

/* ---- 44-tree ---- */
.zh-tree { --zh-tree-row: calc(var(--zh-control-h) - 2px); --zh-tree-indent: 20px; position: relative; overflow: auto; overscroll-behavior: contain; border-radius: var(--zh-radius-md); }

.zh-tree-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.zh-tree-row {
  position: relative; display: flex; align-items: center; gap: 6px; height: var(--zh-tree-row); padding: 0 8px 0 calc((var(--zh-tree-lvl) - 1) * var(--zh-tree-indent) + 4px);
  border-radius: var(--zh-radius-md); color: var(--zh-text); cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap;
  transition: background var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-tree-row:hover { background: var(--zh-bg-subtle); }

.zh-tree-row:focus { outline: none; }

.zh-tree-row:focus-visible { box-shadow: inset 0 0 0 2px var(--zh-color-primary); }

.zh-tree-row.is-selected { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

.zh-tree-row[aria-disabled="true"]:not(.zh-tree-row--status) { color: var(--zh-text-disabled); cursor: not-allowed; }

.zh-tree-row--status { cursor: default; color: var(--zh-text-secondary); font-size: .93em; }

.zh-tree-row--status:hover { background: transparent; }

.zh-tree-row.is-error { color: var(--zh-text-danger); }

.zh-tree--guides .zh-tree-row::before {
  content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: calc((var(--zh-tree-lvl) - 1) * var(--zh-tree-indent)); pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--zh-border) 0 1px, transparent 1px var(--zh-tree-indent)); background-position: 9px 0;
}

.zh-tree-toggle { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: var(--zh-text-tertiary); border-radius: var(--zh-radius-sm); }

.zh-tree-toggle .ico { width: 14px; height: 14px; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-tree-row.is-open > .zh-tree-toggle .ico:not(.zh-tree-spin) { transform: rotate(90deg); }

.zh-tree-toggle:hover { background: var(--zh-border); color: var(--zh-text); }

.zh-tree-toggle--leaf { visibility: hidden; }

.zh-tree-spin { animation: zh-tree-rot 900ms linear infinite; }

@keyframes zh-tree-rot { to { transform: rotate(360deg); } }

.zh-tree-check {
  flex: none; width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid var(--zh-border-strong); border-radius: var(--zh-radius-sm); background: var(--zh-bg); color: var(--zh-on-primary);
  transition: background var(--zh-dur-fast) var(--zh-ease-standard), border-color var(--zh-dur-fast) var(--zh-ease-standard);
}

.zh-tree-check .ico { width: 12px; height: 12px; stroke-width: 3; }

.zh-tree-row:hover > .zh-tree-check { border-color: var(--zh-color-primary); }

.zh-tree-row[aria-checked="true"] > .zh-tree-check,
.zh-tree-row[aria-checked="mixed"] > .zh-tree-check { background: var(--zh-color-primary); border-color: var(--zh-color-primary); }

.zh-tree-row[aria-disabled="true"] > .zh-tree-check { opacity: var(--zh-opacity-disabled); }

.zh-tree-icon { flex: none; display: grid; place-items: center; color: var(--zh-text-tertiary); }

.zh-tree-icon .ico { width: 16px; height: 16px; }

.zh-tree-row.is-selected > .zh-tree-icon { color: inherit; }

.zh-tree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.zh-tree-row.is-enter { animation: zh-tree-in var(--zh-dur-base) var(--zh-ease-enter) both; animation-delay: calc(min(var(--zh-i, 0), 8) * var(--zh-stagger)); }

.zh-tree-row.is-leave { animation: zh-tree-out var(--zh-dur-fast) var(--zh-ease-exit) both; }

@keyframes zh-tree-in { from { opacity: 0; transform: translateY(-6px); } }

@keyframes zh-tree-out { to { opacity: 0; transform: translateY(-4px); } }

.zh-tree-row.is-dragging { opacity: .4; }

.zh-tree-row.is-drop-before::after,
.zh-tree-row.is-drop-after::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 1px; background: var(--zh-color-primary); pointer-events: none; }

.zh-tree-row.is-drop-before::after { top: -1px; }

.zh-tree-row.is-drop-after::after { bottom: -1px; }

.zh-tree-row.is-drop-inside { background: var(--zh-color-primary-subtle); box-shadow: inset 0 0 0 1.5px var(--zh-color-primary); }

/* ---- 50-navigation ---- */
.zh-nav-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.zh-nav-menu { min-width: 208px; max-width: 320px; padding: 6px; display: flex; flex-direction: column; gap: 1px; }

.zh-nav-mhead { padding: 8px 10px 6px; }

.zh-nav-mhead b { display: block; font-weight: 600; }

.zh-nav-mhead span { color: var(--zh-text-tertiary); font-size: .88em; }

.zh-nav-mgroup { padding: 8px 10px 4px; font: 600 11px var(--zh-font-mono); letter-spacing: .08em; color: var(--zh-text-tertiary); }

.zh-nav-mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: max(var(--zh-touch-min, 0px), calc(var(--zh-control-h) - 2px)); padding: 0 10px; border: 0; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }

.zh-nav-mi .ico { color: var(--zh-text-tertiary); flex: none; }

.zh-nav-mi:hover,
.zh-nav-mi:focus-visible { background: var(--zh-bg-subtle); }

.zh-nav-mi:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }

.zh-nav-mi[aria-current="page"] { color: var(--zh-color-primary-text); font-weight: 600; }

.zh-nav-mi[aria-current="page"] .ico { color: inherit; }

.zh-nav-mi[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-nav-mi--danger,
.zh-nav-mi--danger .ico { color: var(--zh-text-danger); }

.zh-nav-mi .zh-kbd { margin-left: auto; }

.zh-nav-sep { height: 1px; margin: 4px 6px; background: var(--zh-border); }

.zh-nav { --zh-nav-h: calc(var(--zh-control-h) + 24px); display: flex; align-items: center; gap: 8px; min-height: var(--zh-nav-h); padding: 0 var(--zh-space-4); background: var(--zh-bg); border-bottom: 1px solid var(--zh-border); }

.zh-nav-logo { display: flex; align-items: center; gap: 10px; margin-right: var(--zh-space-4); font-weight: 700; letter-spacing: .01em; color: var(--zh-text); text-decoration: none; white-space: nowrap; }

.zh-nav-logo i { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--zh-brand-4), var(--zh-brand-7)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }

.zh-nav-linkwrap { position: relative; }

.zh-nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }

.zh-nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--zh-control-h); padding: 0 12px; border: 0; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text-secondary); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color var(--zh-dur-fast) var(--zh-ease-standard), background var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-nav-link:hover { color: var(--zh-text); background: var(--zh-bg-subtle); }

.zh-nav-link:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }

.zh-nav-link[aria-current="page"] { color: var(--zh-color-primary-text); }

.zh-nav-link[aria-expanded="true"] { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-nav-link .ico { width: 1em; height: 1em; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }

.zh-nav-ink { position: absolute; left: 0; bottom: calc((var(--zh-nav-h) - var(--zh-control-h)) / -2 - 1px); height: 2px; width: var(--ink-w, 0px); background: var(--zh-color-primary); border-radius: 2px; transform: translateX(var(--ink-x, 0px)); opacity: 0; transition: transform var(--zh-dur-slow) var(--zh-ease-standard), width var(--zh-dur-slow) var(--zh-ease-standard), opacity var(--zh-dur-fast); pointer-events: none; }

.zh-nav-ink.is-on { opacity: 1; }

.zh-nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.zh-nav-iconbtn { position: relative; display: inline-grid; place-items: center; width: var(--zh-control-h); height: var(--zh-control-h); padding: 0; border: 0; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text-secondary); cursor: pointer; transition: background var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-nav-iconbtn:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-nav-iconbtn[aria-expanded="true"] { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-nav-iconbtn .ico { width: 1.25em; height: 1.25em; }

.zh-nav-burger,
.zh-nav-search-icon { display: none; }

.zh-nav-search { display: flex; align-items: center; gap: 8px; height: var(--zh-control-h); min-width: 210px; padding: 0 10px; border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); background: var(--zh-bg-subtle); color: var(--zh-text-tertiary); font: inherit; cursor: pointer; transition: border-color var(--zh-dur-fast), background var(--zh-dur-fast); }

.zh-nav-search:hover { border-color: var(--zh-border-strong); background: var(--zh-bg); }

.zh-nav-search .zh-nav-st { margin-right: auto; }

.zh-nav-search .zh-kbd { font-size: .78em; padding: 0 .35em; }

.zh-kbd .ico { width: 1em; height: 1em; vertical-align: -.16em; stroke-width: 2.2; }

.zh-nav-avatar { display: inline-grid; place-items: center; width: calc(var(--zh-control-h) - 2px); height: calc(var(--zh-control-h) - 2px); margin-left: 4px; border: 1px solid var(--zh-border); border-radius: 50%; background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font: inherit; font-size: .82em; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: box-shadow var(--zh-dur-fast); }

.zh-nav-avatar:hover,
.zh-nav-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--zh-color-primary-subtle); }

.zh-nav-mega { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px; width: min(560px, calc(100vw - 32px)); }

.zh-nav-mega a { display: flex; gap: 12px; padding: 10px; border-radius: var(--zh-radius-md); color: var(--zh-text); text-decoration: none; }

.zh-nav-mega a:hover,
.zh-nav-mega a:focus-visible { background: var(--zh-bg-subtle); }

.zh-nav-mega a:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }

.zh-nav-mega .zh-nav-mi-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--zh-radius-md); background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

.zh-nav-mega b { display: block; font-weight: 600; }

.zh-nav-mega small { display: block; color: var(--zh-text-tertiary); font-size: .86em; line-height: 1.4; }

.zh-nav-mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 10px 10px 4px; border-top: 1px solid var(--zh-border); color: var(--zh-text-secondary); font-size: .9em; }

.zh-nav-drawer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.zh-nav-mask { position: absolute; inset: 0; background: var(--zh-overlay); opacity: 0; transition: opacity var(--zh-dur-base) var(--zh-ease-standard); }

.zh-nav-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 86%); display: flex; flex-direction: column; background: var(--zh-bg-elevated); border-right: 1px solid var(--zh-border); box-shadow: var(--zh-shadow-lg); transform: translateX(-100%); visibility: hidden; transition: transform var(--zh-dur-slow) var(--zh-ease-exit), visibility 0s linear var(--zh-dur-slow); }

.zh-nav-drawer.is-open { pointer-events: auto; }

.zh-nav-drawer.is-open .zh-nav-mask { opacity: 1; }

.zh-nav-drawer.is-open .zh-nav-panel { transform: none; visibility: visible; transition: transform var(--zh-dur-slow) var(--zh-ease-enter), visibility 0s; }

.zh-nav-panel header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--zh-border); }

.zh-nav-panel nav { flex: 1; overflow: auto; padding: 8px; }

.zh-nav-dl { display: flex; align-items: center; gap: 10px; width: 100%; min-height: max(44px, var(--zh-control-h)); padding: 0 12px; border: 0; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text-secondary); font: inherit; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; }

.zh-nav-dl:hover { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-nav-dl[aria-current="page"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-nav-dl .zh-nav-caret { margin-left: auto; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-nav-dl[aria-expanded="true"] .zh-nav-caret { transform: rotate(180deg); }

.zh-nav-dsub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--zh-dur-base) var(--zh-ease-standard); }

.zh-nav-dsub.is-open { grid-template-rows: 1fr; }

.zh-nav-dsub > div { overflow: hidden; min-height: 0; padding-left: 14px; }

.zh-nav-panel footer { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--zh-border); }

@media (max-width: 767px) {
.zh-nav { padding: 0 var(--zh-space-2); }
.zh-nav-burger,
.zh-nav-search-icon { display: inline-grid; }
.zh-nav-linkwrap,
.zh-nav-search { display: none; }
.zh-nav-logo { margin-right: 0; }
}

.zh-side { --zh-side-w: 252px; position: relative; display: flex; flex-direction: column; width: var(--zh-side-w); background: var(--zh-bg-subtle); border-right: 1px solid var(--zh-border); transition: width var(--zh-dur-slow) var(--zh-ease-standard); }

.zh-side.is-collapsed { --zh-side-w: 64px; }

.zh-side-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; white-space: nowrap; overflow: hidden; }

.zh-side-head i { flex: none; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--zh-brand-4), var(--zh-brand-7)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }

.zh-side.is-collapsed .zh-side-head { padding: 14px 20px; }

.zh-side-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; padding: 4px 0 8px; }

.zh-side ul { list-style: none; margin: 0; padding: 0; }

.zh-side-group { padding: 14px 18px 6px; font: 600 11px var(--zh-font-mono); letter-spacing: .1em; color: var(--zh-text-tertiary); white-space: nowrap; overflow: hidden; }

.zh-side.is-collapsed .zh-side-group { height: 1px; padding: 0; margin: 10px 16px; background: var(--zh-border); font-size: 0; }

.zh-side-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: max(var(--zh-touch-min, 0px), var(--zh-control-h)); margin: 1px 8px; padding: 0 10px; border-radius: var(--zh-radius-md); color: var(--zh-text-secondary); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; outline: none; transition: background var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard); }

.zh-side-item:hover { background: var(--zh-bg); color: var(--zh-text); }

.zh-side-item:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: -2px; }

.zh-side-item .ico { flex: none; width: 1.2em; height: 1.2em; }

.zh-side-item[aria-current="page"] { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); font-weight: 600; }

.zh-side-item[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--zh-color-primary); }

.zh-side-item.has-active { color: var(--zh-text); }

.zh-side-item[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-side-item[aria-disabled="true"]:hover { background: none; color: var(--zh-text-secondary); }

.zh-side-label { overflow: hidden; text-overflow: ellipsis; }

.zh-side-caret { margin-left: auto; transition: transform var(--zh-dur-base) var(--zh-ease-standard); }

.zh-side-item[aria-expanded="true"] > .zh-side-caret { transform: rotate(90deg); }

.zh-side-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--zh-danger); color: var(--zh-text-inverse); font: 600 11px/18px var(--zh-font-sans); text-align: center; font-variant-numeric: tabular-nums; }

.zh-side-item .zh-side-badge + .zh-side-caret { margin-left: 6px; }

.zh-side-badge--soft { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

.zh-side-badge--dot { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }

.zh-side-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--zh-dur-base) var(--zh-ease-standard); }

.zh-side-sub.is-open { grid-template-rows: 1fr; }

.zh-side-sub > ul { overflow: hidden; min-height: 0; }

.zh-side-sub .zh-side-item { padding-left: 38px; }

.zh-side-sub .zh-side-sub .zh-side-item { padding-left: 54px; }

.zh-side-foot { padding: 8px; border-top: 1px solid var(--zh-border); }

.zh-side-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: max(var(--zh-touch-min, 0px), var(--zh-control-h)); padding: 0 10px; border: 0; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text-tertiary); font: inherit; cursor: pointer; white-space: nowrap; }

.zh-side-toggle:hover { background: var(--zh-bg); color: var(--zh-text); }

.zh-side-toggle[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-side.is-collapsed .zh-side-label,
.zh-side.is-collapsed .zh-side-caret,
.zh-side.is-collapsed .zh-side-head span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.zh-side.is-collapsed .zh-side-item { justify-content: center; padding: 0; margin: 2px 10px; }

.zh-side.is-collapsed .zh-side-item[aria-current="page"]::before { left: -10px; }

.zh-side.is-collapsed .zh-side-sub { display: none; }

.zh-side.is-collapsed .zh-side-badge { position: absolute; top: 6px; right: 6px; margin: 0; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; box-shadow: 0 0 0 2px var(--zh-bg-subtle); }

.zh-side.is-collapsed .zh-side-toggle { justify-content: center; padding: 0; }

.zh-side.is-collapsed .zh-side-toggle .zh-side-label { position: absolute; }

.zh-backtop { position: absolute; right: 232px; bottom: 16px; z-index: 3; display: grid; place-items: center; width: max(44px, var(--zh-control-h)); height: max(44px, var(--zh-control-h)); padding: 0; border: 1px solid var(--zh-border); border-radius: 50%; background: var(--zh-bg-elevated); color: var(--zh-text); box-shadow: var(--zh-shadow-md); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--zh-dur-base) var(--zh-ease-enter), transform var(--zh-dur-base) var(--zh-ease-enter), visibility 0s linear var(--zh-dur-base), background var(--zh-dur-fast); }

.zh-backtop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.zh-backtop:hover { background: var(--zh-color-primary-subtle); color: var(--zh-color-primary-text); }

@media (max-width: 767px) {
.zh-backtop { right: 16px; }
}

.zh-ph { padding: 16px 20px 0; background: var(--zh-bg); }

.zh-ph-main { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 8px; }

.zh-ph-title { display: flex; align-items: center; gap: 10px; min-width: 0; }

.zh-ph-title h4 { margin: 0; font-size: 1.35em; font-weight: var(--zh-heading-weight); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zh-ph-back { flex: none; display: inline-grid; place-items: center; width: var(--zh-control-h); height: var(--zh-control-h); margin-left: -6px; padding: 0; border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); background: var(--zh-bg); color: var(--zh-text-secondary); cursor: pointer; }

.zh-ph-back:hover { color: var(--zh-color-primary-text); border-color: var(--zh-color-primary); }

.zh-ph-actions { display: flex; align-items: center; gap: 8px; }

.zh-ph-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 12px 0 0; }

.zh-ph-meta div { display: flex; gap: 8px; }

.zh-ph-meta dt { color: var(--zh-text-tertiary); }

.zh-ph-meta dd { margin: 0; color: var(--zh-text); }

.zh-ph--compact { padding: 8px 16px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--zh-border); }

.zh-ph--compact .zh-ph-title h4 { font-size: 1.05em; }

.zh-ph--compact .zh-ph-actions { margin-left: auto; padding-bottom: 8px; }

@media (max-width: 767px) {
.zh-ph { padding: 12px 14px 0; }
.zh-ph .zh-ph-sec { display: none; }
.zh-ph-actions { margin-left: auto; }
.zh-ph-meta { gap: 4px 16px; font-size: .93em; }
}

/* ---- 42-progress ---- */
.zh-progress { --zh-p: 0; --zh-b: 0; --zh-progress-h: 8px; --zh-progress-color: var(--zh-color-primary); --zh-progress-on: var(--zh-on-primary); display: flex; align-items: center; gap: 12px; width: 100%; }

.zh-progress[data-size="sm"] { --zh-progress-h: 4px; }

.zh-progress[data-size="lg"] { --zh-progress-h: 12px; }

.zh-progress[data-label="inside"] { --zh-progress-h: 20px; }

.zh-progress[data-tone="success"] { --zh-progress-color: var(--zh-success); --zh-progress-on: var(--zh-text-inverse); }

.zh-progress[data-tone="exception"] { --zh-progress-color: var(--zh-danger); --zh-progress-on: var(--zh-text-inverse); }

.zh-progress[data-tone="warning"] { --zh-progress-color: var(--zh-warning); --zh-progress-on: var(--zh-text-inverse); }

.zh-progress[data-label="inside"][data-tone="success"] { --zh-progress-color: var(--zh-text-success); }

.zh-progress[data-label="inside"][data-tone="exception"] { --zh-progress-color: var(--zh-text-danger); }

.zh-progress[data-label="inside"][data-tone="warning"] { --zh-progress-color: var(--zh-text-warning); }

.zh-progress[data-label="top"] { flex-direction: column; align-items: stretch; gap: 6px; }

.zh-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9em; color: var(--zh-text-secondary); }

.zh-progress-head .pct { font-variant-numeric: tabular-nums; color: var(--zh-text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

.zh-progress-bar { position: relative; flex: 1; min-width: 0; }

.zh-progress-track { position: relative; height: var(--zh-progress-h); border-radius: calc(var(--zh-progress-h) / 2); background: var(--zh-meter-track); overflow: hidden; }

.zh-progress-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--zh-progress-color); transform: translateX(calc((var(--zh-p) - 1) * 100%)); transition: transform var(--zh-dur-slow) var(--zh-ease-standard), background var(--zh-dur-base) var(--zh-ease-standard); }

.zh-progress-buffer { position: absolute; inset: 0; border-radius: inherit; background: var(--zh-primary-a22); transform: translateX(calc((var(--zh-b) - 1) * 100%)); transition: transform var(--zh-dur-slow) var(--zh-ease-standard); }

.zh-progress-in { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--zh-progress-on); font: 600 11px / 1 var(--zh-font-sans); font-variant-numeric: tabular-nums; transition: opacity var(--zh-dur-fast); }

.zh-progress-in.is-hidden { opacity: 0; }

.zh-progress-label { flex: none; min-width: 3.4em; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .88em; font-variant-numeric: tabular-nums; color: var(--zh-text-secondary); }

.zh-progress-label .ico,
.zh-progress-head .ico { width: 1.15em; height: 1.15em; }

.zh-progress[data-tone="success"] .zh-progress-label,
.zh-progress[data-tone="success"] .pct { color: var(--zh-text-success); }

.zh-progress[data-tone="exception"] .zh-progress-label,
.zh-progress[data-tone="exception"] .pct { color: var(--zh-text-danger); }

.zh-progress[data-tone="warning"] .zh-progress-label,
.zh-progress[data-tone="warning"] .pct { color: var(--zh-text-warning); }

.zh-progress.is-active .zh-progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); transform: translateX(-100%); animation: zh-progress-sheen 1.7s var(--zh-ease-standard) infinite; }

.zh-progress.is-striped .zh-progress-fill { overflow: hidden; }

.zh-progress.is-striped .zh-progress-fill::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -17px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px); animation: zh-progress-stripes .8s linear infinite; }

.zh-progress[data-indeterminate="true"] .zh-progress-fill { inset: 0 auto 0 0; width: 40%; transform: translateX(-100%); animation: zh-progress-indet 1.5s var(--zh-ease-standard) infinite; }

@keyframes zh-progress-sheen { to { transform: translateX(100%); } }

@keyframes zh-progress-stripes { to { transform: translateX(-16.97px); } }

@keyframes zh-progress-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.zh-progress--steps .zh-progress-track { display: flex; gap: 4px; height: var(--zh-progress-h); background: none; overflow: visible; border-radius: 0; }

.zh-progress--steps .zh-progress-track i { flex: 1; border-radius: 2px; background: var(--zh-meter-track); transition: background var(--zh-dur-base) var(--zh-ease-standard); }

.zh-progress--steps .zh-progress-track i.on { background: var(--zh-progress-color); }

.zh-progress-target { position: absolute; top: -4px; bottom: -4px; left: calc(var(--zh-t) * 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--zh-text); }

.zh-progress-target em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; white-space: nowrap; font: normal 11px / 1 var(--zh-font-sans); color: var(--zh-text-secondary); }

.zh-progress-bar.has-target { margin-top: 18px; }

.zh-progress-stack { display: flex; gap: 2px; height: var(--zh-progress-h, 8px); border-radius: 4px; overflow: hidden; background: var(--zh-meter-track); }

.zh-progress-stack i { flex: var(--w) 0 0; background: var(--c); min-width: 0; }

.zh-progress-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .88em; color: var(--zh-text-secondary); }

.zh-progress-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

.zh-progress-legend b { color: var(--zh-text); font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 4px; }

.zh-progress-mini { width: 132px; }

.zh-ring { --zh-p: 0; --zh-ring-size: 88px; --zh-progress-color: var(--zh-color-primary); position: relative; flex: none; width: var(--zh-ring-size); height: var(--zh-ring-size); }

.zh-ring[data-size="sm"] { --zh-ring-size: 56px; }

.zh-ring[data-size="lg"] { --zh-ring-size: 128px; }

.zh-ring[data-tone="success"] { --zh-progress-color: var(--zh-success); }

.zh-ring[data-tone="exception"] { --zh-progress-color: var(--zh-danger); }

.zh-ring[data-tone="warning"] { --zh-progress-color: var(--zh-warning); }

.zh-ring--semi { height: calc(var(--zh-ring-size) * .6); }

.zh-ring > svg { display: block; width: 100%; height: auto; overflow: visible; }

.zh-ring-track { fill: none; stroke: var(--zh-meter-track); stroke-width: 8; }

.zh-ring-arc { fill: none; stroke: var(--zh-progress-color); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 263.89px 263.89px; stroke-dashoffset: calc(263.89px * (1 - var(--zh-p))); transition: stroke-dashoffset var(--zh-dur-slow) var(--zh-ease-standard), stroke var(--zh-dur-base); }

.zh-ring--gauge .zh-ring-track { stroke-dasharray: 197.92px 263.89px; }

.zh-ring--gauge .zh-ring-arc { stroke-dasharray: calc(197.92px * var(--zh-p)) 263.89px; stroke-dashoffset: 0; transition: stroke-dasharray var(--zh-dur-slow) var(--zh-ease-standard), stroke var(--zh-dur-base); }

.zh-ring--semi .zh-ring-track { stroke-dasharray: 131.95px 263.89px; }

.zh-ring--semi .zh-ring-arc { stroke-dasharray: calc(131.95px * var(--zh-p)) 263.89px; stroke-dashoffset: 0; transition: stroke-dasharray var(--zh-dur-slow) var(--zh-ease-standard), stroke var(--zh-dur-base); }

.zh-ring.is-zero .zh-ring-arc { opacity: 0; }

.zh-ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: calc(var(--zh-ring-size) * .22); line-height: 1.1; font-variant-numeric: tabular-nums; }

.zh-ring-center small { display: block; font-size: .5em; font-weight: 500; color: var(--zh-text-tertiary); margin-top: 2px; }

.zh-ring-center .ico { width: calc(var(--zh-ring-size) * .36); height: calc(var(--zh-ring-size) * .36); stroke-width: 2.4; vertical-align: 0; }

.zh-ring[data-tone="success"] .zh-ring-center { color: var(--zh-text-success); }

.zh-ring[data-tone="exception"] .zh-ring-center { color: var(--zh-text-danger); }

.zh-ring[data-tone="warning"] .zh-ring-center { color: var(--zh-text-warning); }

.zh-ring--gauge .zh-ring-center { place-items: center; padding-top: 6%; }

.zh-ring--semi .zh-ring-center { place-items: end center; padding-bottom: 2%; }

.zh-ring-ends { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: space-between; padding: 0 8%; font: 10px var(--zh-font-mono); color: var(--zh-text-tertiary); pointer-events: none; }

.zh-ring--multi { --zh-ring-size: 132px; }

.zh-ring--multi .zh-ring-arc,
.zh-ring--multi .zh-ring-track { stroke-width: 7; }

/* ---- 51-pagination ---- */
.zh-pg { display: block; --zh-pg-h: max(var(--zh-touch-min, 0px), calc(var(--zh-control-h) - 4px)); }

.zh-pg[hidden] { display: none; }

.zh-pg--sm { --zh-pg-h: max(var(--zh-touch-min, 0px), calc(var(--zh-control-h) - 10px)); font-size: .93em; }

.zh-pg--lg { --zh-pg-h: max(var(--zh-touch-min, 0px), calc(var(--zh-control-h) + 4px)); }

.zh-pg-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }

.zh-pg-total { color: var(--zh-text-secondary); font-variant-numeric: tabular-nums; }

.zh-pg-total b { color: var(--zh-text); font-weight: 600; }

.zh-pg-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.zh-pg-btn {
  min-width: var(--zh-pg-h); height: var(--zh-pg-h); padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--zh-radius-md); background: none; color: var(--zh-text-secondary);
  font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background var(--zh-dur-fast) var(--zh-ease-standard), color var(--zh-dur-fast) var(--zh-ease-standard), border-color var(--zh-dur-fast) var(--zh-ease-standard), transform var(--zh-dur-instant) var(--zh-ease-standard);
}

.zh-pg-btn .ico { width: 1.1em; height: 1.1em; }

.zh-pg-btn:hover:not([aria-current]):not([aria-disabled="true"]):not(:disabled) { background: var(--zh-bg-subtle); color: var(--zh-text); }

.zh-pg-btn:active:not([aria-disabled="true"]):not(:disabled) { transform: scale(.94); }

.zh-pg-btn[aria-current="page"] { background: var(--zh-color-primary); color: var(--zh-on-primary); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .18); cursor: default; }

.zh-pg-prev,
.zh-pg-next { border-color: var(--zh-border); }

.zh-pg--bordered .zh-pg-btn:not([aria-current]) { border-color: var(--zh-border); }

.zh-pg-btn[aria-disabled="true"],
.zh-pg-btn:disabled { opacity: var(--zh-opacity-disabled); cursor: not-allowed; }

.zh-pg-ellipsis .zh-pg-jump { display: none; }

.zh-pg-ellipsis:hover .zh-pg-dots,
.zh-pg-ellipsis:focus-visible .zh-pg-dots { display: none; }

.zh-pg-ellipsis:hover .zh-pg-jump,
.zh-pg-ellipsis:focus-visible .zh-pg-jump { display: inline-block; color: var(--zh-color-primary-text); }

.zh-pg-mid { display: none; align-items: center; gap: 6px; color: var(--zh-text-secondary); font-variant-numeric: tabular-nums; }

.zh-input.zh-pg-num { height: var(--zh-pg-h); width: 3.6em; padding: 0 4px; text-align: center; font-variant-numeric: tabular-nums; }

.zh-pg--simple .zh-pg-list { display: none; }

.zh-pg--simple .zh-pg-mid { display: inline-flex; }

.zh-pg-size { width: 7.5em; flex: none; }

.zh-pg-size select { height: var(--zh-pg-h); padding-right: 28px; }

.zh-pg-jumpbox { display: inline-flex; align-items: center; gap: 6px; color: var(--zh-text-secondary); }

.zh-pg-jumpbox .zh-input[aria-invalid="true"] { border-color: var(--zh-danger); box-shadow: 0 0 0 3px var(--zh-danger-bg); }

.zh-pg[aria-disabled="true"] { opacity: var(--zh-opacity-disabled); pointer-events: none; }

.zh-pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 767px) {
.zh-pg .zh-pg-list,
.zh-pg .zh-pg-size,
.zh-pg .zh-pg-jumpbox { display: none; }
.zh-pg .zh-pg-mid { display: inline-flex; }
.zh-pg .zh-pg-in { justify-content: center; }
.zh-pg .zh-pg-total { flex: 1 0 100%; text-align: center; }
}

/* ---- chart ---- */
/* charts */
.zh-chart { position: relative; color: var(--zh-text); }
.zh-chart-stage { position: relative; width: 100%; }
.zh-chart-stage svg { max-width: 100%; border-radius: var(--zh-radius-sm); }
.zh-chart-stage svg:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 2px; }
.zh-chart-grid { stroke: var(--zh-border); stroke-width: 1; shape-rendering: crispEdges; }   /* keeps 1px lines sharp at 125% and 150% display scaling */
.zh-chart-grid.is-zero { stroke: var(--zh-border-strong); }
.zh-chart-tick { fill: var(--zh-text-tertiary); font-size: 11px; font-family: var(--zh-font-sans); font-variant-numeric: tabular-nums; }
.zh-chart-total { fill: var(--zh-text); font-size: 22px; font-weight: 700; font-family: var(--zh-font-sans); }
.zh-chart-cursor { stroke: var(--zh-border-strong); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.zh-chart-slice { transition: opacity var(--zh-dur-fast) var(--zh-ease-standard); }
.zh-chart-slice:hover { opacity: .85; }
.zh-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.zh-chart-key { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; font: inherit; font-size: .9em; color: var(--zh-text-secondary); background: none; border: 0; border-radius: var(--zh-radius-sm); cursor: pointer; }
.zh-chart-key i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.zh-chart-key[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.zh-chart-key:hover { color: var(--zh-text); background: var(--zh-bg-subtle); }
.zh-chart-key:focus-visible { outline: 2px solid var(--zh-color-primary); outline-offset: 1px; }
.zh-chart-tip { position: absolute; z-index: 2; min-width: 120px; padding: 8px 10px; background: var(--zh-bg-elevated); border: 1px solid var(--zh-border); border-radius: var(--zh-radius-md); box-shadow: var(--zh-shadow-md); font-size: .88em; pointer-events: none; }
.zh-chart-tip b { display: block; margin-bottom: 4px; }
.zh-chart-tip div { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.zh-chart-tip div i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.zh-chart-tip div span { margin-inline-start: auto; padding-inline-start: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (forced-colors: active) { :root .zh-chart-grid { stroke: GrayText; } :root .zh-chart-tick, :root .zh-chart-total { fill: CanvasText; } }

