:root {
  --c-bg: #F5F5F7;
  --c-surface: #FFFFFF;
  --c-fill: #F2F2F7;
  --c-fill-strong: #E8E8ED;
  --c-material: rgba(250, 250, 252, .72);
  --c-separator: rgba(0, 0, 0, .08);
  --c-input-border: rgba(0, 0, 0, .12);
  --c-command-backdrop: rgba(29, 29, 31, .16);
  --c-mask: rgba(0, 0, 0, .45);
  --c-text: #1D1D1F;
  --c-text-2: #6E6E73;
  --c-text-3: #86868B;
  --c-accent: #0071E3;
  --c-accent-hover: #0077ED;
  --c-accent-soft: #E8F2FD;
  --c-success: #248A3D;
  --c-success-soft: #E8F5EC;
  --c-warning: #C93400;
  --c-warning-soft: #FFF0E5;
  --c-danger: #D70015;
  --c-danger-soft: #FDE8EA;
  --c-info: var(--c-accent);
  --c-info-soft: var(--c-accent-soft);
  --c-neutral: var(--c-text-2);
  --c-neutral-soft: var(--c-fill);
  --c-row-hover: #F9F9FB;
  --c-row-selected: #F7FAFE;
  --c-batch: #F0F6FE;
  --c-menu-fill: rgba(0, 0, 0, .06);

  /* Foregrounds for combinations that fail AA with the base palette. */
  --c-success-text: #1E7934;
  --c-danger-text: #CC0014;
  --c-link: #0066CC;
  --c-text-on-fill: #68686E;

  --material-filter: saturate(180%) blur(20px);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fs-40: 40px;
  --fs-32: 32px;
  --fs-30: 30px;
  --fs-28: 28px;
  --fs-24: 24px;
  --fs-20: 20px;
  --fs-17: 17px;
  --fs-15: 15px;
  --fs-14: 14px;
  --fs-13: 13px;
  --fs-12: 12px;
  --fs-11: 11px;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --lh-body: 1.5;
  --lh-title: 1.2;
  --lh-metric: 1.15;
  --lh-display: 1.1;
  --tracking-title: -.01em;
  --tracking-metric: -.02em;
  --tracking-display: -.03em;
  --tracking-badge: .02em;
  --r-key: 4px;
  --r-control: 8px;
  --r-tile: 12px;
  --r-card: 14px;
  --r-float: 18px;
  --r-pill: 999px;
  --shadow-workspace-tab: 0 1px 2px var(--c-separator);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --shadow-float: 0 8px 40px rgba(0, 0, 0, .12);
  --focus-ring: 0 0 0 3px rgba(0, 113, 227, .25);
  --error-ring: 0 0 0 3px rgba(215, 0, 21, .16);
  --motion-fast: 160ms ease-out;
  --hairline: 1px;
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-28: 28px;
  --s-32: 32px;
  --s-36: 36px;
  --s-40: 40px;

  --h-ctl: 36px;
  --h-ctl-sm: 30px;
  --h-btn: 34px;
  --h-btn-sm: 28px;
  --row: 44px;
  --h-table-head: 36px;
  --h-table-footer: 52px;
  --h-preview-row: 40px;
  --h-preview-tab: 24px;
  --h-batch: 44px;
  --h-doc-action: 32px;
  --h-doc-field: 36px;
  --h-doc-toolbar: 57px;
  --h-doc-status: 24px;
  --h-doc-line: 48px;
  --h-doc-line-input: 32px;
  --status-step: 10px;
  --status-connector: 80px;
  --doc-product-width: 270px;
  --doc-qty-width: 84px;
  --doc-price-width: 96px;
  --doc-discount-width: 64px;
  --picker-width: 420px;
  --chart-height: 220px;
  --chart-columns: 2fr 1fr;
  --home-todo-padding: 14px;
  --home-todo-number-size: 26px;
  --form-row-gap: 18px;
  --title-sub-gap: 6px;
  --toolbar-pad: 14px;
  --sidebar-width: 224px;
  --sidebar-collapsed-width: 64px;
  --nav-radius: 7px;
  --h-topbar: 52px;
  --h-nav: 34px;
  --h-nav-child: 30px;
  --nav-inset: 10px;
  --nav-indent: 38px;
  --h-badge: 18px;
  --badge-width: 20px;
  --avatar-size: 30px;
  --search-width: 260px;
  --h-workspace-search: 30px;
  --h-workspace-tab: 26px;
  --h-login: 44px;
  --segment-padding: 2px;
  --icon-button: 16px;
  --icon-nav: 18px;
  --icon-empty: 40px;
  --icon-gap: 6px;
  --status-dot: 7px;
}

@media (min-resolution: 2dppx) {
  :root { --hairline: .5px; }
}

body[data-density="compact"] {
  --row: 34px;
  --h-ctl: 30px;
  --h-ctl-sm: 26px;
  --h-btn: 28px;
  --h-btn-sm: 24px;
}
