/* Customer-care design tokens, ported verbatim from the design agent's
 * DUNNING-EMAIL-DESIGN/customer-care/tokens.css. Loaded before theme.css;
 * nothing consumes these yet. */
:root {
  --color-brand-red: #ff3208; --color-brand-red-dark: #cc2806;
  --color-brand-gold: #e09824; --color-brand-gold-light: #fcec8d;
  --color-ink: #231f1d; --color-workspace: #f4f1ea;
  --color-surface: #ffffff; --color-surface-subtle: #faf9f6;
  --color-text: #231f1d; --color-text-secondary: #615a53;
  --color-text-on-dark: #f4f1ea; --color-text-on-action: #ffffff;
  --color-border: #d9d4cb; --color-border-control: #8c857c;
  --color-action-primary: #24566d; --color-action-primary-hover: #193f52;
  --color-action-quiet-hover: #eaf0f3; --color-action-secondary-hover: #eeeae3;
  --color-danger: #a92b1b; --color-danger-hover: #872013;
  --color-danger-surface: #fff0ec; --color-danger-border: #dba79d;
  --color-warning: #795009; --color-warning-surface: #fff4d9;
  --color-warning-border: #d7bb79; --color-success: #28643a;
  --color-success-surface: #edf5ed; --color-success-border: #abc8b0;
  --color-info: #24566d; --color-info-surface: #edf3f6;
  --color-info-border: #adc6d2; --color-neutral: #615a53;
  --color-neutral-surface: #efede8; --color-neutral-border: #d9d4cb;
  --color-selection: #e8f1f5; --color-focus: #006eac;
  --color-focus-on-dark: #fcec8d; --color-disabled-text: #68625a;
  --color-disabled-surface: #e9e5de; --color-transparent: transparent;
  --color-nav-hover: #37312c; --color-nav-active: #473924;
  --color-nav-divider: #4a423a; --color-scrim: #231f1d38;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-family-icon: "toolkit-entypo";
  --font-size-xs: 12px; --font-size-sm: 13px; --font-size-md: 14px;
  --font-size-lg: 16px; --font-size-xl: 20px; --font-size-title: 28px;
  --font-weight-normal: 400; --font-weight-medium: 500;
  --font-weight-semibold: 600; --font-weight-bold: 700;
  --line-height-tight: 1.2; --line-height-normal: 1.5; --line-height-icon: 1;
  --letter-spacing-normal: normal; --letter-spacing-title: -0.02em;
  --space-0: 0; --space-2: 2px; --space-4: 4px; --space-6: 6px;
  --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-40: 40px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-pill: 999px;
  --border-width: 1px; --border-width-emphasis: 3px;
  --border-default: var(--border-width) solid var(--color-border);
  --border-control: var(--border-width) solid var(--color-border-control);
  --border-none: 0; --outline-focus: 3px solid var(--color-focus);
  --outline-focus-on-dark: 3px solid var(--color-focus-on-dark);
  --focus-offset: 3px; --focus-inset: -3px;
  --shadow-none: none; --shadow-panel: 0 1px 2px #231f1d08;
  --shadow-modal: 0 16px 48px #231f1d24;
  --icon-size-sm: 14px; --icon-size-md: 18px; --icon-size-lg: 22px;
  --header-height: 60px; --nav-width: 184px; --logo-width: 100px;
  --control-height: 36px; --control-height-small: 30px;
  --checkbox-size: 18px; --textarea-height: 88px;
  --workspace-max-width: 1580px; --modal-width: 480px;
  --field-min-width: 180px; --filter-min-width: 180px;
  --header-search-width: 168px; --header-select-width: 100px;
  --table-min-width: 1040px; --table-cell-max-width: 220px;
  --specimen-min-width: 210px; --preview-min-height: 300px;
  --viewport-height: 100vh; --size-full: 100%; --size-min: 0;
  --grid-flex: 1fr; --grid-columns-two: repeat(2, minmax(0, 1fr));
  --grid-auto-fields: repeat(auto-fit, minmax(min(var(--size-full), var(--field-min-width)), var(--grid-flex)));
  --grid-auto-filters: repeat(auto-fit, minmax(min(var(--size-full), var(--filter-min-width)), var(--grid-flex)));
  --grid-auto-specimens: repeat(auto-fit, minmax(min(var(--size-full), var(--specimen-min-width)), var(--grid-flex)));
  --grid-column-full: 1 / -1; --flex-grow: 1; --flex-fixed: 0 0 auto;
  --z-header: 20; --z-nav: 10; --z-skip: 30;
  --queue-height: 460px; --queue-check-width: 40px; --queue-customer-width: calc(31% - var(--queue-check-width));
  --queue-failure-width: 25%; --queue-age-width: 10%; --queue-history-width: 20%;
  --queue-action-width: 14%; --z-table: 2; --z-toolbar: 5;
  --email-history-sent-text-width: 80px; /* "10:44:44 AM", the widest en-US date or time, measures 78.3px at --font-size-sm */
  --tooltip-width: 260px; --tooltip-left: 0px; --tooltip-top: 0px; --z-tooltip: 50;
  --editor-column-min: 360px; --email-width: 560px; --email-logo-width: 180px;
  --email-font-family: Arial, Helvetica, sans-serif; --email-body-size: 18px;
  --editor-textarea-height: 156px; --image-preview-height: 180px;
  --email-heading-size: 32px;
  --tabs-height: 52px; --queue-bar-min-height: 76px; --queue-bar-height: var(--queue-bar-min-height);
  --rotation-expanded: 180deg;
  --z-tabs: 12; --account-column-min: 280px;
  --account-note-height: 120px;
  /* Added for the whole-CMS pass (cms_briefs/no_naked_numbers.md): roles the customer-care design has no token for.
   * Small type, gold tints, opacity, charts and report layout are the reporting prototype's exact values. */
  --font-size-2xs: 11px; --font-size-3xs: 10px; --font-size-4xs: 9px;
  --color-brand-gold-dark: #b8791a; --color-brand-gold-tint: #fbe7c4;
  --opacity-none: 0; --opacity-faint: 0.4; --opacity-disabled: 0.45;
  --opacity-half: 0.5; --opacity-stale: 0.65; --opacity-full: 1;
  --z-base: 0; --z-raised: 1; --radius-none: 0;
  --flex-off: 0; --flex-fill: 1 1 auto; --position-center: 50%;
  --line-clamp-two: 2; --column-shrink-width: 1px; --widget-span-default: 4;
  --grid-columns-three: repeat(3, minmax(0, 1fr)); --grid-columns-four: repeat(4, minmax(0, 1fr));
  --grid-columns-wide-narrow: minmax(0, 2fr) minmax(0, 1fr); --grid-fill-auto: minmax(0, 1fr) auto;
  --grid-report-charts: minmax(0, 1.65fr) minmax(220px, 1fr);
  --chart-line-width: 2.4; --chart-gridline-width: 0.7; --chart-gridline-dash: 3 4;
  --chart-key-width: 13px; --chart-key-height: 3px; --trend-chart-height: 115px;
  --bar-track-height: 5px; --dot-size: 8px; --underline-offset: 3px;
  --sparkline-height: 34px; --barchart-height: 44px;
  --rail-width: 230px; --rail-width-compact: 215px; --rail-width-narrow: 205px;
  --date-input-max-width: 137px; --table-search-width: 150px; --library-search-width: 225px;
  --card-blurb-min-height: 38px; --rank-number-width: 14px; --modal-width-wide: 800px;
  --avatar-size: 36px; --thumbnail-width: 120px; --thumbnail-height: 90px;
  --video-thumb-width: 112px; --video-thumb-height: 63px;
  --side-panel-width: 360px; --canvas-offset: 230px; --canvas-min-height: 480px;
  --search-width: 320px; --dropdown-max-height: 420px; --pick-list-max-height: 180px;
  --board-column-width: 300px; --column-max-height: 70vh; --pane-height: 60vh;
  --notes-max-height: 200px; --field-wide-min-width: 260px; --list-column-width: 252px;
  --field-max-width: 420px; --readable-width: 560px;
  --code-block-max-height: 336px; --code-block-short-max-height: 168px;
  --key-column-width: 112px; --method-badge-width: 63px;
  --signin-logo-height: 44px; --status-line-min-height: 18px;
  /* Customer Care's 10-04 return (DUNNING-EMAIL-DESIGN/cms-pages/proposed-tokens.css:67,69): the code font for inline
   * identifiers, and a narrow rail beside the rest (the Email templates slot list). No existing token has either value
   * (cms_briefs/customer_care_completion_verification/dupcheck.mjs). */
  --reader-grid: var(--rail-width-narrow) minmax(0, 1fr);
  --font-family-code: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Entity report builder (REPORT_BUILDER_ENTITY_PAGE_BRIEF.md 5.9; every value as Astra wrote it in
 * DUNNING-EMAIL-DESIGN/cms-pages/proposed-tokens.css): the five round-two entity tokens, the three round-one entity
 * tokens the strip and picker read, and the keyword and sheet tokens the entity rules in shared-components.css read. */
:root {
  --entity-report-columns: minmax(var(--size-min), var(--grid-flex)) var(--side-panel-width);
  --entity-field-list-height: var(--preview-min-height);
  --entity-axis-head-gap: var(--space-12);
  --entity-footnote-padding: var(--space-20);
  --entity-group-rule: var(--border-width-emphasis) solid var(--color-border);
  --entity-strip-columns: repeat(4, minmax(var(--size-min), var(--grid-flex)));
  --entity-control-columns: minmax(var(--size-min), var(--grid-flex)) auto;
  --entity-active-rule: var(--border-width-emphasis) solid var(--color-action-primary);
  /* Report builder redesign (DUNNING-EMAIL-DESIGN/report-builder-redesign/layout.css): composites of existing tokens. */
  --grid-columns-one: minmax(0, 1fr);
  --report-inspector-columns: minmax(0, 1fr) var(--board-column-width);
  --report-search-columns: minmax(0, var(--search-width)) auto minmax(0, 1fr) var(--field-min-width);
  --report-tab-half: calc(var(--size-full) / 2 - var(--space-8));
  --order-first: -1;
  --grid-line-1: 1; --grid-line-2: 2; --grid-line-3: 3; --grid-line-4: 4;
  --display-flex: flex;
  --display-block: block;
  --text-left: left;
  --display-grid: grid;
  --display-none: none;
  --cursor-pointer: pointer;
  --flow-column: column;
  --flow-wrap: wrap;
  --layout-start: start;
  --layout-center: center;
  --layout-end: end;
  --layout-between: space-between;
  --overflow-auto: auto;
  --position-sticky: sticky;
  --size-auto: auto;
  --size-fit: fit-content;
  --white-normal: normal;
  --vertical-top: top;
  --font-tabular: tabular-nums;
  --text-decoration-none: none;
  --sheet-anchor-width: var(--library-search-width);
  --sheet-anchor-rule: var(--border-width-emphasis) solid var(--color-action-primary);
  --sheet-header-surface: var(--color-surface-subtle);
}

/* The comp end-date calendar's week grid (DUNNING-EMAIL-DESIGN/customer-payment/payment.css:4, where it was set on the
 * specimen's .PaymentPreview scope; a token here so the master sheet reads it as it reads --entity-strip-columns). */
:root {
  --calendar-columns: repeat(7, minmax(var(--size-min), var(--grid-flex)));
}

/* List slats and record detail composition, built from the CMS spacing scale. */
:root {
  --slat-title-width: 30%;
  --slat-fact-width: 17.5%;
  --record-columns: minmax(0, 1fr) minmax(var(--account-column-min), var(--side-panel-width));
}
