/* Apply to the application root. Project overrides follow this sheet. */
[data-ds] {
  --ds-white: #ffffff;
  --ds-sidebar: #f7f7f8;
  --ds-surface-soft: #f8f9fa;
  --ds-hover: #f0f1f3;
  --ds-selected: #e9ebef;
  --ds-row-selected: #f3f7ff;
  /* 文字基线加深：保证数据密集表格的长时间阅读清晰度 */
  --ds-ink: #202329;
  --ds-text: #2b323c;
  --ds-muted: #4d5765;
  --ds-meta: #5b6573;
  --ds-faint: #6d7581;
  --ds-line: #e4e6e9;
  --ds-line-subtle: #eceef1;
  --ds-line-control: #d4d7dd;
  --ds-action: #292d34;
  --ds-action-hover: #404650;
  --ds-focus: #356ce2;
  --ds-link: #2859ae;
  --ds-danger: #b93642;
  --ds-danger-hover: #a32c37;

  --ds-object-purple: #a04bd3;
  --ds-object-blue: #3270df;
  --ds-object-green: #24946b;
  --ds-object-orange: #e08b25;
  --ds-object-rose: #c64d6d;
  --ds-object-teal: #176b80;
  --ds-object-default: #6877ab;

  --ds-neutral-fg: #56606f;
  --ds-neutral-bg: #f0f1f3;
  --ds-neutral-line: #e6e8ec;
  --ds-info-fg: #285da8;
  --ds-info-bg: #edf4ff;
  --ds-info-line: #d7e5ff;
  --ds-success-fg: #196b4e;
  --ds-success-bg: #eaf7f0;
  --ds-success-line: #cfebde;
  --ds-accent-fg: #70439c;
  --ds-accent-bg: #f5edfc;
  --ds-accent-line: #e8d7f5;
  --ds-warning-fg: #81551b;
  --ds-warning-bg: #fff6e7;
  --ds-warning-line: #f2e3c4;
  --ds-error-fg: #a52e3b;
  --ds-error-bg: #fff0ee;
  --ds-error-line: #f4d9d5;

  --ds-font: 'MiSans', 'HarmonyOS Sans SC', 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans CJK SC', system-ui, sans-serif;
  --ds-font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ds-font-meta: 12.5px;
  --ds-font-control: 14px;
  --ds-font-body: 14px;
  --ds-font-section: 15px;
  --ds-font-list-title: 20px;
  --ds-font-title: 23px;
  --ds-weight-normal: 400;
  --ds-weight-medium: 500;
  --ds-weight-strong: 600;
  --ds-leading-short: 1.4;
  --ds-leading-body: 1.6;
  --ds-leading-reading: 1.9;

  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 28px;
  --ds-space-8: 32px;
  --ds-space-10: 40px;
  --ds-space-12: 48px;
  --ds-radius-label: 4px;
  --ds-radius-nav: 5px;
  --ds-radius-control: 6px;
  --ds-radius-card: 7px;
  --ds-radius-dialog: 10px;
  --ds-shadow-control: 0 1px 2px #17203305;
  --ds-shadow-menu: 0 8px 32px #20293617;
  --ds-shadow-dialog: 0 20px 70px #1d30402e;
  --ds-backdrop: #20293645;

  --ds-sidebar-width: 248px;
  --ds-drawer-width: 248px;
  --ds-header-height: 52px;
  --ds-page-gutter: 24px;
  --ds-detail-gutter: 30px;
  --ds-detail-side: 312px;
  --ds-form-main: 760px;
  --ds-form-side: 230px;
  --ds-form-gap: 48px;
  --ds-heading-height: 79px;
  --ds-viewbar-height: 47px;
  --ds-control-height: 34px;
  --ds-control-xs: 28px;
  --ds-field-height: 38px;
  --ds-row-height: 56px;
  --ds-table-min: 1090px;
  --ds-actionbar-height: 65px;
  --ds-dialog-width: 550px;
  --ds-icon-stroke: 1.6;
  --ds-motion-fast: 120ms;
  --ds-motion-drawer: 180ms;
  --ds-ease: ease-out;
  --ds-z-actionbar: 9;
  --ds-z-header: 10;
  --ds-z-scrim: 15;
  --ds-z-sidebar: 20;
  --ds-z-feedback: 30;
}

@media (min-width: 1650px) {
  [data-ds] { --ds-detail-side: 335px; --ds-detail-gutter: 40px; --ds-font-title: 26px; }
}
@media (max-width: 1279px) {
  [data-ds] {
    --ds-sidebar-width: 228px;
    --ds-page-gutter: 20px;
    --ds-detail-side: 285px;
    --ds-detail-gutter: 24px;
    --ds-form-side: 200px;
    --ds-form-gap: 28px;
    --ds-font-title: 22px;
  }
}
@media (max-width: 1023px) {
  [data-ds] { --ds-sidebar-width: 0px; }
}
@media (max-width: 767px) {
  [data-ds] {
    --ds-header-height: 50px;
    --ds-page-gutter: 16px;
    --ds-detail-gutter: 16px;
    --ds-control-height: 38px;
    --ds-field-height: 42px;
    --ds-viewbar-height: 45px;
    --ds-font-title: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-ds] { --ds-motion-fast: 0ms; --ds-motion-drawer: 0ms; }
}
