/* ---- 00-base.css ---- */
/* =====================================================================
   Deedline v2.0.0 — base: runtime variables, reset, focus, type, layout,
   icons, pictograms, motion utilities, buttons, fields, status pills, cards.
   Every colour comes from tokens. Lead colour follows [data-lead]. Prefix: dl-
   ===================================================================== */

:root {
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --duration-instant: 120ms; --duration-fast: 200ms; --duration-base: 320ms; --duration-slow: 480ms; --duration-draw: 1200ms;
  --control-h: var(--control-h-lg, 56px); --row-h: var(--row-h-comfortable, 64px);
  --pad-x: 24px; --gap: var(--space-4, 16px); --card-pad: var(--space-6, 24px);
  --field-font: 16px; --field-lh: 24px; --label-font: 16px;
  --dl-icon-knock: var(--surface);
}
[data-density="compact"] {
  --control-h: var(--control-h-sm, 36px); --row-h: var(--row-h-compact, 44px);
  --pad-x: 14px; --gap: var(--space-3, 12px); --card-pad: var(--space-4, 16px);
  --field-font: 14px; --field-lh: 20px; --label-font: 13px;
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-instant: 0ms; --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; --duration-draw: 0ms; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface-canvas); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px;
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
[data-density="compact"] { font-size: 14px; line-height: 20px; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }

/* ---- Focus: ink ring (3:1 everywhere) with a lead-colour glow between it and the element */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-focus-inset:focus-visible { outline-offset: -3px; box-shadow: inset 0 0 0 3px var(--focus-halo); }
html { scroll-padding-top: 96px; }

/* ---- Type helpers (tokens.css also ships one class per type style) */
.dl-display, .dl-serif { font-family: var(--font-display); }
.dl-mono { font-family: var(--font-mono); }
.dl-num, .dl-date, .dl-money, table { font-variant-numeric: tabular-nums; }
.dl-muted { color: var(--text-muted); }
.dl-secondary { color: var(--text-secondary); }
.dl-overline { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-display-1, .dl-display-2, .dl-h1, .dl-h2, .dl-h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
.dl-display-1 { font-size: clamp(56px, 9vw, 112px); line-height: .93; letter-spacing: -0.05em; font-weight: 650; }
.dl-display-2 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.dl-h1 { font-size: 44px; line-height: 46px; letter-spacing: -0.04em; }
.dl-h2 { font-size: 34px; line-height: 36px; letter-spacing: -0.04em; }
.dl-h3 { font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
.dl-h4 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
[data-density="compact"] .dl-h3 { font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
@media (max-width: 767px) { .dl-h1 { font-size: 34px; line-height: 36px; } .dl-h2 { font-size: 28px; line-height: 30px; } }
.dl-stat { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.04em; font-weight: 650; font-variant-numeric: tabular-nums; }
.dl-body-lg { font-size: 18px; line-height: 27px; }
.dl-body-sm { font-size: 14px; line-height: 20px; }
.dl-caption { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-muted); }
.dl-measure { max-width: var(--measure, 62ch); }
.dl-lead-text { color: var(--lead-text); }
.dl-link, .dl-prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 3px; }
.dl-link:hover, .dl-prose a:hover { color: var(--link-hover); text-decoration-thickness: 2.5px; }
.dl-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dl-kbd { font-family: var(--font-mono); font-size: 12px; line-height: 16px; padding: 2px 7px; border-radius: 6px; background: var(--surface-raised); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border), 0 1px 0 var(--border); }
.dl-ref { font-family: var(--font-mono); font-size: 0.875em; }

/* ---- Layout */
.dl-stack { display: flex; flex-direction: column; gap: var(--gap); }
.dl-stack--sm { gap: var(--space-2); } .dl-stack--lg { gap: var(--space-8); }
.dl-cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.dl-cluster--md { gap: var(--space-4); }
.dl-spread { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.dl-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap); }
.dl-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.dl-divider { border: 0; border-top: 1px solid var(--border-subtle); margin: 0; }
.dl-divider--strong { border-top-color: var(--border); }
.dl-divider-label { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.dl-divider-label::before, .dl-divider-label::after { content: ""; flex: 1; border-top: 1px solid var(--border-subtle); }

/* ---- Icons: <span class="dl-icon" data-icon="name"> (bundle.js injects SVG). 1.75 stroke; .dl-dot marks the key detail in the lead colour */
.dl-icon { display: inline-flex; flex: none; width: var(--icon-md, 20px); height: var(--icon-md, 20px); color: inherit; vertical-align: -0.25em; }
.dl-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.75; }
.dl-icon .dl-dot { fill: var(--icon-dot, var(--lead)); stroke: none; }
.dl-icon--sm { width: var(--icon-sm, 16px); height: var(--icon-sm, 16px); }
.dl-icon--sm svg { stroke-width: 2; }
.dl-icon--lg { width: var(--icon-lg, 24px); height: var(--icon-lg, 24px); }
.dl-icon--xl { width: 32px; height: 32px; }
.dl-icon--xl svg { stroke-width: 1.5; }
.dl-spin svg { animation: dl-spin 0.9s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }

/* ---- Pictograms: <span class="dl-picto" data-picto="searches"> — ink outline, tint fill set off-register, lead dot */
.dl-picto { display: inline-block; width: var(--pictogram-sm, 64px); height: var(--pictogram-sm, 64px); flex: none; }
.dl-picto--lg { width: var(--pictogram-lg, 120px); height: var(--pictogram-lg, 120px); }
.dl-picto--md { width: 88px; height: 88px; }
.dl-picto svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dl-picto .ol { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dl-picto .ol.fill { fill: var(--surface-canvas); }
.dl-picto .t1 { fill: var(--tint-1); } .dl-picto .t2 { fill: var(--tint-2); } .dl-picto .t3 { fill: var(--tint-3); } .dl-picto .t4 { fill: var(--tint-4); }
.dl-picto .ld { fill: var(--lead); } .dl-picto .ink { fill: var(--text); } .dl-picto .cv { fill: var(--surface-canvas); }
.dl-picto .on-ld { stroke: var(--on-lead); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dl-picto .off { transition: transform var(--duration-slow) var(--ease-standard); }
.dl-picto--hover:hover .off, :hover > .dl-picto--hover .off { transform: translate(-3px, -3px); }

/* ---- Motion utilities */
.dl-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dl-draw var(--duration-draw) var(--ease-standard) forwards; }
@keyframes dl-draw { to { stroke-dashoffset: 0; } }
.dl-pop { transform-box: fill-box; transform-origin: center; animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
@keyframes dl-pop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.dl-rise { animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
@keyframes dl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dl-lift { transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.dl-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .dl-draw { stroke-dashoffset: 0; animation: none; } .dl-pop, .dl-rise { animation: none; } .dl-lift:hover { transform: none; } }

/* ---- Buttons: every button is a pill */
.dl-btn {
  --btn-bg: transparent; --btn-fg: var(--action-secondary); --btn-bd: transparent; --btn-bg-hover: var(--action-secondary-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--pad-x); min-width: var(--control-h);
  border: 0; box-shadow: inset 0 0 0 1.5px var(--btn-bd); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: var(--label-font); line-height: 20px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; position: relative;
  transition: background-color var(--duration-instant) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast);
}
.dl-btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.dl-btn:active { transform: scale(0.98); }
.dl-btn .dl-icon:last-child:not(:first-child) { transition: transform var(--duration-fast) var(--ease-standard); }
.dl-btn:hover .dl-icon:last-child:not(:first-child) { transform: translateX(3px); }
.dl-btn--primary { --btn-bg: var(--action-primary); --btn-fg: var(--on-action-primary); --btn-bg-hover: var(--action-primary-hover); }
.dl-btn--primary:active { background: var(--action-primary-active); }
.dl-btn--lead { --btn-bg: var(--lead); --btn-fg: var(--on-lead); --btn-bg-hover: var(--lead); }
.dl-btn--lead:hover { filter: brightness(1.06); }
.dl-btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--action-secondary); --btn-bg-hover: var(--action-secondary-hover); }
.dl-btn--outline { --btn-bd: var(--border-strong); --btn-fg: var(--action-secondary); }
.dl-btn--tertiary { --btn-fg: var(--action-secondary); }
.dl-btn--destructive { --btn-bg: var(--action-destructive); --btn-fg: var(--on-action-destructive); --btn-bg-hover: var(--action-destructive-hover); }
.dl-btn--destructive-secondary { --btn-bg: var(--error-bg); --btn-fg: var(--error-fg); --btn-bg-hover: var(--error-bg); --btn-bd: transparent; }
.dl-btn--link { --btn-fg: var(--link); --btn-bg-hover: transparent; min-height: auto; min-width: 0; padding: 0; border-radius: 3px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dl-btn--link:hover { color: var(--link-hover); transform: none; }
.dl-btn--sm { min-height: var(--control-h-sm, 36px); min-width: var(--control-h-sm, 36px); padding: 0 14px; font-size: 14px; }
.dl-btn--md { min-height: var(--control-h-md, 48px); min-width: var(--control-h-md, 48px); padding: 0 20px; }
.dl-btn--lg { min-height: var(--control-h-lg, 56px); min-width: var(--control-h-lg, 56px); padding: 0 28px; font-size: 17px; }
[data-density="compact"] .dl-btn { font-size: 13px; }
.dl-btn--icon { padding: 0; }
.dl-btn--block { display: flex; width: 100%; }
@media (max-width: 767px) { .dl-btn--block-mobile { display: flex; width: 100%; } }
.dl-btn:disabled, .dl-btn[aria-disabled="true"] { cursor: not-allowed; transform: none; filter: none; --btn-bg: var(--border-subtle); --btn-fg: var(--text-disabled); --btn-bd: transparent; --btn-bg-hover: var(--border-subtle); }
.dl-btn--link:disabled { --btn-bg: transparent; --btn-bg-hover: transparent; }
.dl-btn[aria-busy="true"] { cursor: progress; }
.dl-btn[aria-busy="true"] > .dl-btn__label { opacity: 0; }
.dl-btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dl-spin 0.8s linear infinite; }

/* ---- Form fields: filled, soft, 12px corners */
.dl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
[data-density="compact"] .dl-field { gap: 5px; }
.dl-label { font-size: var(--label-font); line-height: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
[data-density="compact"] .dl-label { line-height: 18px; }
.dl-label__opt { font-weight: 400; color: var(--text-muted); }
.dl-label__req { color: var(--error-fg); font-weight: 600; margin-left: 2px; }
.dl-hint { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
.dl-field-error[hidden], .dl-field-success[hidden] { display: none; }
.dl-field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--error-fg); margin: 0; }
.dl-field-success { display: flex; gap: 6px; align-items: center; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--success-fg); margin: 0; }
.dl-field--error { }

.dl-input, .dl-textarea, .dl-select {
  width: 100%; min-height: var(--control-h); padding: 0 16px;
  font-size: var(--field-font); line-height: var(--field-lh); color: var(--text);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-md, 12px);
  transition: border-color var(--duration-instant) var(--ease-standard), background-color var(--duration-instant);
}
[data-density="compact"] .dl-input, [data-density="compact"] .dl-select, [data-density="compact"] .dl-textarea { border-radius: 10px; padding: 0 12px; }
.dl-textarea { padding: 14px 16px; min-height: 112px; resize: vertical; display: block; }
.dl-input::placeholder, .dl-textarea::placeholder { color: var(--text-muted); opacity: 1; }
.dl-input:hover, .dl-textarea:hover, .dl-select:hover { border-color: var(--border-strong); }
.dl-input:focus-visible, .dl-textarea:focus-visible, .dl-select:focus-visible { border-color: var(--focus-ring); background: var(--surface-canvas); }
.dl-input[aria-invalid="true"], .dl-textarea[aria-invalid="true"], .dl-select[aria-invalid="true"], .dl-input-group[data-invalid] { border-color: var(--error-border); background: var(--error-bg); }
.dl-input:disabled, .dl-textarea:disabled, .dl-select:disabled { background: var(--surface-sunken); color: var(--text-disabled); border-color: transparent; cursor: not-allowed; }
.dl-input[readonly], .dl-textarea[readonly] { background: transparent; border: 1.5px dashed var(--border); }
.dl-input--sm { width: 8ch; } .dl-input--md { width: 16ch; } .dl-input--lg { width: 28ch; }
.dl-input--sm, .dl-input--md, .dl-input--lg { max-width: 100%; box-sizing: content-box; }
.dl-select-wrap { position: relative; display: block; }
.dl-select { appearance: none; padding-right: 44px; cursor: pointer; }
.dl-select-wrap > .dl-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); }

.dl-input-group { display: flex; align-items: stretch; width: 100%; min-height: var(--control-h); background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-md, 12px); transition: border-color var(--duration-instant); }
[data-density="compact"] .dl-input-group { border-radius: 10px; }
.dl-input-group:hover { border-color: var(--border-strong); }
.dl-input-group:focus-within { border-color: var(--focus-ring); background: var(--surface-canvas); outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-input-group > .dl-input { border: 0; min-height: calc(var(--control-h) - 3px); background: transparent; flex: 1; min-width: 0; }
.dl-input-group > .dl-input:focus-visible { outline: none; box-shadow: none; }
.dl-affix { display: inline-flex; align-items: center; padding: 0 14px; color: var(--text-secondary); font-size: var(--field-font); white-space: nowrap; }
.dl-affix--box { border-right: 1px solid var(--border); }
.dl-affix--box-end { border-left: 1px solid var(--border); }
.dl-input-group > .dl-affix + .dl-input { padding-left: 2px; }
.dl-input-group > .dl-affix--box + .dl-input { padding-left: 14px; }
.dl-clear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: auto 8px auto 0; border: 0; background: var(--surface-sunken); color: var(--text-secondary); cursor: pointer; border-radius: 999px; }
.dl-clear:hover { color: var(--text); }
.dl-counter { font-size: 14px; line-height: 20px; color: var(--text-muted); text-align: right; }
.dl-counter[data-over] { color: var(--error-fg); font-weight: 600; }

/* checkbox / radio: native input (opacity 0, full target) over a drawn box */
.dl-check { display: inline-grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; cursor: pointer; position: relative; min-height: 24px; }
.dl-check__input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.dl-check__box { width: 24px; height: 24px; flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--border-strong); border-radius: 8px; background: var(--surface-canvas); color: var(--on-action-primary); transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast), transform var(--duration-fast) var(--ease-standard); }
.dl-check--radio .dl-check__box { border-radius: 50%; }
.dl-check__box .dl-icon { width: 16px; height: 16px; opacity: 0; position: absolute; inset: 0; margin: auto; }
.dl-check__box .dl-icon svg { stroke-width: 3; }
.dl-check__input:checked + .dl-check__box { background: var(--action-primary); border-color: var(--action-primary); }
.dl-check__input:checked + .dl-check__box .dl-icon[data-icon="check"] { opacity: 1; }
.dl-check:not(.dl-check--radio) .dl-check__input:indeterminate + .dl-check__box { background: var(--action-primary); border-color: var(--action-primary); }
.dl-check:not(.dl-check--radio) .dl-check__input:indeterminate + .dl-check__box .dl-icon[data-icon="minus"] { opacity: 1; }
.dl-check--radio .dl-check__input:checked + .dl-check__box { background: var(--surface-canvas); border-color: var(--action-primary); box-shadow: inset 0 0 0 5px var(--action-primary); }
.dl-check__input:active + .dl-check__box { transform: scale(0.92); }
.dl-check__input:focus-visible + .dl-check__box { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-check--radio .dl-check__input:checked:focus-visible + .dl-check__box { box-shadow: inset 0 0 0 5px var(--action-primary), 0 0 0 3px var(--focus-halo); }
.dl-check__input:hover:not(:disabled) + .dl-check__box { border-color: var(--text); }
.dl-check__input[aria-invalid="true"] + .dl-check__box { border-color: var(--error-border); }
.dl-check__input:disabled + .dl-check__box { background: var(--surface-sunken); border-color: var(--border); }
.dl-check__input:disabled:checked + .dl-check__box { background: var(--text-disabled); border-color: var(--text-disabled); }
.dl-check__input:disabled ~ .dl-check__text { color: var(--text-disabled); cursor: not-allowed; }
.dl-check__text { font-size: var(--field-font); line-height: 24px; }
.dl-check__hint { grid-column: 2; font-size: 14px; line-height: 20px; color: var(--text-muted); margin-top: -4px; }
[data-density="compact"] .dl-check__box { width: 20px; height: 20px; border-radius: 6px; }
[data-density="compact"] .dl-check--radio .dl-check__box { border-radius: 50%; }
[data-density="compact"] .dl-check__input { width: 20px; height: 20px; }
[data-density="compact"] .dl-check__text { line-height: 20px; }
[data-density="compact"] .dl-check { gap: 2px 8px; }

fieldset.dl-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dl-legend { padding: 0; font-size: var(--label-font); line-height: 22px; font-weight: 600; margin-bottom: 4px; }
.dl-legend--lg { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.04em; margin-bottom: 8px; }

/* ---- Status pills: icon + word, soft fill, pill shape */
.dl-status {
  --st-fg: var(--status-not-started-fg); --st-bg: var(--status-not-started-bg); --st-bd: var(--status-not-started-border);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; min-height: 30px;
  border: 1.5px solid var(--st-bd); border-radius: 999px; background: var(--st-bg); color: var(--st-fg);
  font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; --dl-icon-knock: var(--st-bg);
}
.dl-status .dl-icon { width: 16px; height: 16px; }
[data-density="compact"] .dl-status, .dl-status--sm { min-height: 24px; padding: 2px 10px 2px 6px; font-size: 12px; line-height: 18px; gap: 4px; }
[data-density="compact"] .dl-status .dl-icon, .dl-status--sm .dl-icon { width: 14px; height: 14px; }
.dl-status--not-started { --st-fg: var(--status-not-started-fg); --st-bg: var(--status-not-started-bg); --st-bd: var(--status-not-started-border); }
.dl-status--in-progress { --st-fg: var(--status-in-progress-fg); --st-bg: var(--status-in-progress-bg); --st-bd: var(--status-in-progress-border); }
.dl-status--done { --st-fg: var(--status-done-fg); --st-bg: var(--status-done-bg); --st-bd: var(--status-done-border); }
.dl-status--blocked { --st-fg: var(--status-blocked-fg); --st-bg: var(--status-blocked-bg); --st-bd: var(--status-blocked-border); }
.dl-status--at-risk { --st-fg: var(--status-at-risk-fg); --st-bg: var(--status-at-risk-bg); --st-bd: var(--status-at-risk-border); }
.dl-status--reported { --st-fg: var(--status-reported-fg); --st-bg: var(--status-reported-bg); --st-bd: var(--status-reported-border); border-style: dashed; }
.dl-status--checking { --st-fg: var(--status-checking-fg); --st-bg: var(--status-checking-bg); --st-bd: var(--status-checking-border); }
.dl-status--held { --st-fg: var(--status-held-fg); --st-bg: var(--status-held-bg); --st-bd: var(--status-held-border); }
.dl-status--not-shared { --st-fg: var(--status-not-shared-fg); --st-bg: var(--status-not-shared-bg); --st-bd: var(--status-not-shared-border); font-weight: 500; }
.dl-status--plain { border: 0; background: transparent; padding: 0; min-height: 0; }

/* ---- Cards and tiles: soft grey tiles with generous corners; outline cards on grey backgrounds */
.dl-card { background: var(--surface); border-radius: var(--radius-lg, 24px); padding: var(--card-pad); min-width: 0; position: relative; }
.dl-card--raised, .dl-card--flat { background: var(--surface-raised); box-shadow: 0 0 0 1px var(--border-subtle); }
.dl-card--outline { background: var(--surface-canvas); box-shadow: inset 0 0 0 1px var(--border); }
.dl-card--sunken { background: var(--surface-sunken); }
.dl-card--lead { background: var(--lead); color: var(--on-lead); }
.dl-card--soft { background: var(--lead-soft); }
.dl-card--ink { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-card--interactive { cursor: pointer; transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); text-decoration: none; color: inherit; display: block; }
.dl-card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dl-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
[data-density="compact"] .dl-card { border-radius: 18px; }

/* ---- Spinner */
.dl-spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-sunken); border-top-color: var(--lead); animation: dl-spin 0.8s linear infinite; }

/* ---- Skip link */
.dl-skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--action-primary); color: var(--on-action-primary); font-weight: 600; border-radius: 999px; text-decoration: none; }
.dl-skip-link:focus { top: 16px; }

/* ---- Preview scaffolding (component library pages only) */
.dl-demo { padding: 24px; display: flex; flex-direction: column; gap: 24px; background: var(--surface-canvas); color: var(--text); min-width: 0; }
.dl-demo__row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.dl-demo__row--center { align-items: center; }
.dl-demo__cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dl-demo__label { font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.dl-demo__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.dl-demo__pane { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--radius-lg, 24px); min-width: 0; }
.dl-demo__pane > .dl-demo__label:first-child { margin-bottom: -4px; }
.dl-demo__pane .dl-card:not(.dl-card--sunken):not(.dl-card--soft):not(.dl-card--lead):not(.dl-card--ink):not(.dl-card--outline) { background: var(--surface-raised); }
.dl-demo__phone { width: 360px; max-width: 100%; border-radius: 40px; overflow: hidden; background: var(--surface-canvas); box-shadow: 0 0 0 8px var(--text), var(--shadow-lg); margin: 8px; }
.dl-demo__do, .dl-demo__dont { padding: 16px 20px; border-radius: var(--radius-lg, 24px); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.dl-demo__do::before { content: "Do"; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--success-fg); }
.dl-demo__dont::before { content: "Don't"; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--error-fg); }
.is-hover.dl-btn { background: var(--btn-bg-hover); transform: translateY(-1px); }
.is-hover.dl-input, .is-hover.dl-input-group, .is-hover.dl-select, .is-hover.dl-textarea { border-color: var(--border-strong); }
.is-focus { outline: 2px solid var(--focus-ring) !important; outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo) !important; }
.is-focus.dl-input, .is-focus.dl-select, .is-focus.dl-textarea { border-color: var(--focus-ring); background: var(--surface-canvas); }
.is-active.dl-btn { transform: scale(0.98); }
.is-active.dl-btn--primary { background: var(--action-primary-active); }

/* ---- 01-lead.css ---- */
/* Lead-colour contexts: movers = Tangerine, pro = Ultramarine, brand = Raspberry (default). Put data-lead on any container. */
[data-lead="mover"] { --lead: #ff5b2e; --on-lead: #121316; --lead-text: #a8380c; --lead-soft: #ffe2d6; --tint-1: #ffe2d6; --tint-2: #d9e9ff; --tint-3: #d3f3e3; --tint-4: #e7e0ff; --focus-halo: var(--lead); --accent: var(--lead); --accent-strong: var(--lead-text); --accent-subtle: var(--lead-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-lead="mover"], :root:not([data-theme="light"])[data-lead="mover"] { --lead: #ff5b2e; --on-lead: #121316; --lead-text: #ffa17f; --lead-soft: #3b2117; --tint-1: #3b2117; --tint-2: #1e2a3d; --tint-3: #17322a; --tint-4: #2a2342; } }
:root[data-theme="dark"] [data-lead="mover"], :root[data-theme="dark"][data-lead="mover"], [data-theme="dark"] [data-lead="mover"] { --lead: #ff5b2e; --on-lead: #121316; --lead-text: #ffa17f; --lead-soft: #3b2117; --tint-1: #3b2117; --tint-2: #1e2a3d; --tint-3: #17322a; --tint-4: #2a2342; }
[data-lead="pro"] { --lead: #3d3bff; --on-lead: #ffffff; --lead-text: #3d3bff; --lead-soft: #e3e2ff; --tint-1: #e3e2ff; --tint-2: #fff2c2; --tint-3: #cff3ef; --tint-4: #ffdce6; --focus-halo: var(--lead); --accent: var(--lead); --accent-strong: var(--lead-text); --accent-subtle: var(--lead-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-lead="pro"], :root:not([data-theme="light"])[data-lead="pro"] { --lead: #3d3bff; --on-lead: #ffffff; --lead-text: #9ebfff; --lead-soft: #1f1f4a; --tint-1: #1f1f4a; --tint-2: #3a3214; --tint-3: #14322f; --tint-4: #3a1a26; } }
:root[data-theme="dark"] [data-lead="pro"], :root[data-theme="dark"][data-lead="pro"], [data-theme="dark"] [data-lead="pro"] { --lead: #3d3bff; --on-lead: #ffffff; --lead-text: #9ebfff; --lead-soft: #1f1f4a; --tint-1: #1f1f4a; --tint-2: #3a3214; --tint-3: #14322f; --tint-4: #3a1a26; }
[data-lead="brand"] { --lead: #d92b61; --on-lead: #ffffff; --lead-text: #a80344; --lead-soft: #ffd9e4; --tint-1: #ffd9e4; --tint-2: #ffe7cc; --tint-3: #d6f2e6; --tint-4: #dce7ff; --focus-halo: var(--lead); --accent: var(--lead); --accent-strong: var(--lead-text); --accent-subtle: var(--lead-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-lead="brand"], :root:not([data-theme="light"])[data-lead="brand"] { --lead: #d92b61; --on-lead: #ffffff; --lead-text: #ffa0b6; --lead-soft: #3a1825; --tint-1: #3a1825; --tint-2: #3a2a17; --tint-3: #17322a; --tint-4: #1e2a3d; } }
:root[data-theme="dark"] [data-lead="brand"], :root[data-theme="dark"][data-lead="brand"], [data-theme="dark"] [data-lead="brand"] { --lead: #d92b61; --on-lead: #ffffff; --lead-text: #ffa0b6; --lead-soft: #3a1825; --tint-1: #3a1825; --tint-2: #3a2a17; --tint-3: #17322a; --tint-4: #1e2a3d; }

/* ---- 20-forms-text.css ---- */
/* =====================================================================
   Deedline v2 — Forms: text entry. TextInput, Textarea, TypedInputs,
   CurrencyInput, SearchInput, AddressLookup, DatePicker, DateRangePicker,
   TimeInput, Select (native + listbox), Combobox, MultiSelect.
   Filled --surface fields with 12px corners (10px compact), an ink edge and
   a soft lead-colour glow on focus, and 24px floating popovers.
   Preview helpers use the dl-ft- prefix.
   ===================================================================== */

:root {
  --dl-field-bg: var(--surface);
  --dl-pop-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-lg);
}
/* Fields that sit on a grey tile switch to a white (canvas) fill so they still read */
:where(.dl-demo__pane, .dl-card:not(.dl-card--raised, .dl-card--flat, .dl-card--outline, .dl-card--ink, .dl-card--lead), .dl-card--soft, .dl-on-surface) {
  --dl-field-bg: var(--surface-canvas);
}
:where(.dl-card--raised, .dl-card--outline, .dl-demo__phone, .dl-listpop, .dl-calendar) { --dl-field-bg: var(--surface); }

/* ---- Field shell: one look for inputs, textareas, selects, groups, listbox buttons and chip boxes */
.dl-input, .dl-textarea, .dl-select, .dl-input-group, .dl-listselect__btn, .dl-multiselect__box {
  background: var(--dl-field-bg); border: 1.5px solid transparent; border-radius: var(--radius-md, 12px);
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
[data-density="compact"] :is(.dl-input, .dl-textarea, .dl-select, .dl-input-group, .dl-listselect__btn, .dl-multiselect__box) { border-radius: 10px; }
.dl-input-group > .dl-input { background: transparent; border: 0; border-radius: inherit; }
.dl-input-group > .dl-input:focus-visible { box-shadow: none; outline: none; background: transparent; }

/* Hover: an ink-grey edge */
:is(.dl-input, .dl-textarea, .dl-select, .dl-input-group, .dl-listselect__btn, .dl-multiselect__box):hover:not(:disabled, :focus-visible, :focus-within, [aria-invalid="true"], [readonly]) { border-color: var(--border-strong); }

/* Focus: canvas fill, ink edge, lead-colour glow (the edge carries the 3:1 contrast) */
.dl-input:focus-visible, .dl-textarea:focus-visible, .dl-select:focus-visible, .dl-listselect__btn:focus-visible, .dl-listselect__btn[aria-expanded="true"],
.dl-input-group:focus-within, .dl-multiselect__box:focus-within,
:is(.dl-input, .dl-textarea, .dl-select, .dl-input-group, .dl-listselect__btn, .dl-multiselect__box).is-focus {
  outline: none !important; border-color: var(--focus-ring); background: var(--surface-canvas); box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus-halo) 34%, transparent) !important;
}
.dl-input-group > .dl-input.is-focus { box-shadow: none !important; }

/* Error: soft red fill and a red edge; focus keeps the red edge with a red glow */
.dl-input[aria-invalid="true"], .dl-textarea[aria-invalid="true"], .dl-select[aria-invalid="true"], .dl-listselect__btn[aria-invalid="true"],
.dl-input-group:has(> .dl-input[aria-invalid="true"]), .dl-input-group[data-invalid], .dl-multiselect__box:has(.dl-multiselect__input[aria-invalid="true"]) {
  background: var(--error-bg); border-color: var(--error-border);
}
.dl-input-group > .dl-input[aria-invalid="true"] { background: transparent; border: 0; }
:is(.dl-input, .dl-textarea, .dl-select, .dl-listselect__btn)[aria-invalid="true"]:focus-visible,
.dl-input-group:has(> .dl-input[aria-invalid="true"]):focus-within, .dl-multiselect__box:has(.dl-multiselect__input[aria-invalid="true"]):focus-within {
  border-color: var(--error-border); background: var(--surface-canvas); box-shadow: 0 0 0 4px color-mix(in oklab, var(--error-border) 22%, transparent) !important;
}

/* Disabled: sunken fill, quiet text */
.dl-input:disabled, .dl-textarea:disabled, .dl-select:disabled, .dl-listselect__btn:disabled, .dl-input-group:has(> .dl-input:disabled) {
  background: var(--surface-sunken); color: var(--text-disabled); border-color: var(--border-subtle); cursor: not-allowed;
}
.dl-input-group:has(> .dl-input:disabled) > .dl-input { background: transparent; }
.dl-input-group:has(> .dl-input:disabled) :is(.dl-affix, .dl-field-btn) { color: var(--text-disabled); }
.dl-input:disabled::placeholder { color: var(--text-disabled); }

/* Read-only: no fill, a hairline edge, full-strength text (it is still information) */
.dl-input[readonly], .dl-textarea[readonly], .dl-input-group:has(> .dl-input[readonly]) {
  background: transparent; border: 1.5px solid var(--border); border-style: solid;
}
.dl-input-group > .dl-input[readonly] { border: 0; }
.dl-input[readonly]:focus-visible, .dl-textarea[readonly]:focus-visible { background: transparent; }

/* Success: green edge + icon + words, never colour alone */
.dl-input--success, .dl-input-group--success, .dl-input-group:has(> .dl-input[data-valid]) { border-color: var(--success-border); }
.dl-affix--success { color: var(--success-fg); }

/* No left-border accent bar on fields in error: the red field and message carry it */
.dl-field.dl-field--error { padding-left: 0; border-left: 0; }

/* ---- Shared field extras */
.dl-field__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.dl-field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.dl-field__foot > .dl-counter { margin: 0 0 0 auto; }
.dl-field > .dl-counter { margin: -2px 0 0; }
.dl-field-error .dl-icon, .dl-field-success .dl-icon { margin-top: 2px; }

/* Affixes: plain text inside the fill, no dividers */
.dl-affix { color: var(--text-secondary); font-weight: 500; }
.dl-affix--box { border: 0; padding: 0 2px 0 16px; font-weight: 600; color: var(--text-secondary); }
.dl-affix--box-end { border: 0; padding: 0 16px 0 4px; font-weight: 500; }
.dl-input-group > .dl-affix--box + .dl-input { padding-left: 8px; }
.dl-input-group > .dl-input:has(+ .dl-affix--box-end) { padding-right: 4px; }
[data-density="compact"] .dl-affix--box { padding: 0 0 0 12px; }
[data-density="compact"] .dl-affix--box-end { padding: 0 12px 0 2px; }
[data-density="compact"] .dl-input-group > .dl-affix--box + .dl-input { padding-left: 6px; }
.dl-affix--icon { padding: 0 2px 0 16px; color: var(--text-secondary); }
.dl-input-group:focus-within > .dl-affix--icon { color: var(--text); }
[data-density="compact"] .dl-affix--icon { padding: 0 0 0 12px; }
[data-density="compact"] .dl-affix--icon .dl-icon { width: var(--icon-sm); height: var(--icon-sm); }
[data-density="compact"] .dl-affix { font-size: var(--field-font); }
.dl-input-group > .dl-affix--icon + .dl-input { padding-left: 10px; }
[data-density="compact"] .dl-input-group > .dl-affix--icon + .dl-input { padding-left: 8px; }

/* Clear: small round button at the end of the fill */
.dl-clear { width: 28px; height: 28px; margin: auto 12px auto 0; background: var(--surface-sunken); transition: background-color var(--duration-fast), color var(--duration-fast); }
.dl-clear:hover { background: var(--surface-hover); color: var(--text); }
.dl-clear[hidden] { display: none; }
[data-density="compact"] .dl-clear { width: 22px; height: 22px; margin-right: 8px; }
[data-density="compact"] .dl-clear .dl-icon { width: 14px; height: 14px; }

/* Round icon button inside a field (calendar toggle, show list) */
.dl-field-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center;
  width: 40px; height: 40px; margin: 0 8px 0 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast), transform var(--duration-fast) var(--ease-standard);
}
[data-density="compact"] .dl-field-btn { width: 28px; height: 28px; margin-right: 4px; }
[data-density="compact"] .dl-field-btn .dl-icon { width: var(--icon-sm); height: var(--icon-sm); }
.dl-field-btn:hover { background: var(--surface-hover); color: var(--text); }
.dl-field-btn:active { transform: scale(0.94); }
.dl-field-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus-halo) 34%, transparent); }
.dl-field-btn[aria-expanded="true"] { background: var(--lead); color: var(--on-lead); }
.dl-field-btn:disabled { cursor: not-allowed; color: var(--text-disabled); background: transparent; transform: none; }

/* Fixed widths that match the expected answer */
.dl-input--w4 { width: calc(4ch + 44px); max-width: 100%; }
.dl-input--w5 { width: calc(5ch + 48px); max-width: 100%; }
.dl-input--w10 { width: calc(10ch + 48px); max-width: 100%; }
.dl-input--w20 { width: calc(20ch + 48px); max-width: 100%; }
.dl-input-group.dl-input--w10, .dl-input-group.dl-input--w20 { width: auto; max-width: 100%; align-self: flex-start; }
.dl-field > .dl-input--w4, .dl-field > .dl-input--w5, .dl-field > .dl-input--w10, .dl-field > .dl-input--w20 { align-self: flex-start; }
.dl-input-group--fit { width: auto; max-width: 100%; display: inline-flex; align-self: flex-start; }
.dl-input-group--fit > .dl-input { flex: none; }
.dl-input-group--fit > .dl-input.dl-input--w10 { width: calc(10ch + 24px); }
.dl-input-group--fit > .dl-input.dl-input--w20 { width: calc(20ch + 24px); }

.dl-input[type="search"]::-webkit-search-cancel-button, .dl-input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* Inline spinner used in status rows */
.dl-forms-spinner { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--lead); animation: dl-spin 0.8s linear infinite; }

/* ---- Big value: currency and stepper numbers set in display type */
.dl-input--display, .dl-qty > .dl-input { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dl-input-group--money > .dl-affix--box { font-family: var(--font-display); font-size: 20px; color: var(--text); padding-left: 18px; }
.dl-input-group--money > .dl-input { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
[data-density="compact"] .dl-input-group--money > .dl-affix--box { font-size: 15px; padding-left: 12px; }
[data-density="compact"] .dl-input-group--money > .dl-input { font-size: 15px; }
.dl-input-group--money:has(> .dl-input:disabled) > .dl-affix--box { color: var(--text-disabled); }

/* ---- Quantity stepper: a pill track with two round buttons */
.dl-qty { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 4px; max-width: 100%; background: var(--dl-field-bg); border-radius: 999px; }
.dl-qty__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(var(--control-h) - 8px); height: calc(var(--control-h) - 8px); padding: 0; border: 0; border-radius: 999px;
  background: var(--surface-raised); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
  transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast);
}
:where(.dl-demo__pane, .dl-card:not(.dl-card--raised, .dl-card--outline)) .dl-qty__btn { background: var(--surface); box-shadow: none; }
.dl-qty__btn:hover:not(:disabled) { background: var(--action-primary); color: var(--on-action-primary); }
.dl-qty__btn:active:not(:disabled) { transform: scale(0.92); }
.dl-qty__btn:disabled { color: var(--text-disabled); background: transparent; box-shadow: none; cursor: not-allowed; }
.dl-qty > .dl-input { width: calc(3ch + 24px); min-height: calc(var(--control-h) - 8px); flex: none; padding: 0 4px; text-align: center; background: transparent; border: 0; border-radius: 999px; font-size: 20px; }
.dl-qty > .dl-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 0; box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus-halo) 34%, transparent) !important; background: var(--surface-canvas); }
[data-density="compact"] .dl-qty { padding: 3px; gap: 2px; }
[data-density="compact"] .dl-qty__btn { width: 30px; height: 30px; }
[data-density="compact"] .dl-qty > .dl-input { min-height: 30px; font-size: 15px; width: calc(3ch + 16px); }

/* ---- Shared floating popup + listbox (Search, Select, Combobox, MultiSelect) */
@keyframes dl-ft-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.dl-listpop {
  position: absolute; z-index: var(--z-tooltip, 600); top: calc(100% + 8px); left: 0; right: 0;
  display: flex; flex-direction: column; min-width: 240px; padding: 8px;
  background: var(--surface-raised); color: var(--text); border: 0; border-radius: var(--radius-lg, 24px); box-shadow: var(--dl-pop-shadow);
  overflow: hidden; transform-origin: top center; animation: dl-ft-pop var(--duration-fast) var(--ease-standard);
}
[data-density="compact"] .dl-listpop { padding: 6px; border-radius: 18px; }
.dl-listpop[hidden] { display: none; }
.dl-listpop__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 8px 12px 6px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-listpop__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-3); margin: 6px -8px -8px; padding: 10px 16px; border-top: 1px solid var(--border-subtle); font-size: 13px; line-height: 18px; color: var(--text-muted); }
[data-density="compact"] .dl-listpop__foot { margin: 6px -6px -6px; padding: 8px 12px; }
.dl-listpop__foot .dl-btn--link { font-size: 13px; min-height: 24px; white-space: nowrap; margin-left: auto; }
.dl-listpop__status { display: flex; align-items: center; gap: var(--space-3); padding: 12px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-listpop__status[hidden] { display: none; }
.dl-listpop__status strong { color: var(--text); font-weight: 600; }
.dl-listpop__empty { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-listpop__empty strong { color: var(--text); font-weight: 600; font-size: 15px; }
.dl-listpop__status .dl-picto { width: 52px; height: 52px; }
[data-density="compact"] .dl-listpop__status .dl-picto { width: 44px; height: 44px; }

.dl-listbox { list-style: none; margin: 0; padding: 0; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.dl-listbox:empty { display: none; }
.dl-listbox:focus { outline: none; }
.dl-listbox__option {
  display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 8px 12px; border-radius: 14px;
  font-size: var(--field-font); line-height: var(--field-lh); cursor: pointer; color: var(--text);
  transition: background-color var(--duration-instant);
}
[data-density="compact"] .dl-listbox__option { min-height: 36px; padding: 6px 10px; gap: var(--space-2); border-radius: 10px; }
.dl-listbox__option:hover { background: var(--surface-hover); }
.dl-listbox__option.is-active { background: var(--surface-hover); box-shadow: inset 0 0 0 2px var(--focus-ring); }
.dl-listbox__option[aria-selected="true"] { font-weight: 600; }
.dl-listbox__option[aria-disabled="true"] { color: var(--text-disabled); cursor: not-allowed; }
.dl-listbox__option > .dl-icon:first-child { color: var(--text-secondary); }
.dl-listbox__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-listbox__text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-listbox__meta { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text-muted); }
[data-density="compact"] .dl-listbox__meta { font-size: 12px; line-height: 16px; }
/* Selected tick: a lead-colour disc */
.dl-listbox__check { visibility: hidden; width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: var(--lead); color: var(--on-lead); }
.dl-listbox__check svg { stroke-width: 3; }
[data-density="compact"] .dl-listbox__check { width: 18px; height: 18px; padding: 3px; }
.dl-listbox__option[aria-selected="true"] .dl-listbox__check { visibility: visible; animation: dl-pop var(--duration-base) var(--ease-standard); }
/* Multi-select lists show an empty ring for unpicked options */
.dl-listbox[aria-multiselectable="true"] .dl-listbox__check { visibility: visible; background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dl-listbox[aria-multiselectable="true"] [aria-selected="true"] .dl-listbox__check { background: var(--lead); color: var(--on-lead); box-shadow: none; }
.dl-listbox__mark { background: var(--lead-soft); color: inherit; font-weight: 700; border-radius: 4px; padding: 0 1px; }
.dl-listbox__group { padding: 10px 12px 4px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ---- SearchInput: a pill */
.dl-search { position: relative; width: 100%; }
.dl-search > .dl-input-group { border-radius: 999px; }
.dl-search > .dl-input-group > .dl-affix--icon { padding-left: 18px; }
[data-density="compact"] .dl-search > .dl-input-group > .dl-affix--icon { padding-left: 14px; }
.dl-search__kbd { gap: 4px; padding: 0 14px 0 4px; color: var(--text-muted); }
[data-density="compact"] .dl-search__kbd { padding-right: 10px; }
.dl-search__kbd .dl-kbd { line-height: 16px; background: var(--surface-canvas); }
.dl-search:focus-within .dl-search__kbd, .dl-search[data-filled] .dl-search__kbd { display: none; }
.dl-search .dl-clear[hidden] { display: none; }
.dl-search__recent-icon { color: var(--text-muted); }

/* ---- Native select */
.dl-select { padding-right: 48px; }
.dl-select:invalid, .dl-select[data-placeholder] { color: var(--text-muted); }
.dl-select option { color: var(--text); }
.dl-select-wrap > .dl-icon { transition: transform var(--duration-fast) var(--ease-standard); }
[data-density="compact"] .dl-select { padding-right: 36px; }
[data-density="compact"] .dl-select-wrap > .dl-icon { right: 12px; }
.dl-select-wrap:has(.dl-select:disabled) > .dl-icon { color: var(--text-disabled); }

/* ---- Listbox select (custom) */
.dl-listselect { position: relative; width: 100%; }
.dl-listselect__btn {
  width: 100%; min-height: var(--control-h); padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  font-size: var(--field-font); line-height: var(--field-lh); text-align: left; color: var(--text); cursor: pointer;
}
[data-density="compact"] .dl-listselect__btn { padding: 0 10px 0 12px; }
.dl-listselect__btn.is-hover { border-color: var(--border-strong); }
.dl-listselect__btn > .dl-icon { color: var(--text-secondary); transition: transform var(--duration-base) var(--ease-standard); }
.dl-listselect__btn[aria-expanded="true"] > .dl-icon { transform: rotate(180deg); color: var(--text); }
.dl-listselect__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-listselect__value[data-placeholder] { color: var(--text-muted); }
.dl-listselect__btn:disabled .dl-listselect__value, .dl-listselect__btn:disabled > .dl-icon { color: var(--text-disabled); }

/* ---- Combobox */
.dl-combobox { position: relative; width: 100%; }
.dl-combobox .dl-listbox[aria-busy="true"] { opacity: 0.6; }

/* ---- MultiSelect: pill chips inside the fill */
.dl-multiselect { position: relative; width: 100%; }
.dl-multiselect__box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: var(--control-h); padding: 7px 8px; cursor: text; }
[data-density="compact"] .dl-multiselect__box { padding: 4px 5px; gap: 4px; }
.dl-multiselect__chips { display: contents; list-style: none; margin: 0; padding: 0; }
.dl-multiselect__chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 36px; padding: 0 4px 0 14px;
  background: var(--lead-soft); border: 0; border-radius: 999px;
  font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text);
  animation: dl-pop var(--duration-base) var(--ease-standard);
}
[data-density="compact"] .dl-multiselect__chip { min-height: 26px; padding: 0 2px 0 10px; font-size: 13px; line-height: 18px; gap: 2px; }
.dl-multiselect__chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-multiselect__remove {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
[data-density="compact"] .dl-multiselect__remove { width: 22px; height: 22px; }
.dl-multiselect__remove .dl-icon { width: 16px; height: 16px; }
[data-density="compact"] .dl-multiselect__remove .dl-icon { width: 13px; height: 13px; }
.dl-multiselect__remove:hover { background: var(--action-primary); color: var(--on-action-primary); }
.dl-multiselect__remove:focus-visible { outline-offset: 0; }
.dl-multiselect__input { flex: 1 1 10ch; min-width: 10ch; min-height: 36px; border: 0; padding: 0 8px; background: transparent; font-size: var(--field-font); line-height: var(--field-lh); color: var(--text); }
[data-density="compact"] .dl-multiselect__input { min-height: 26px; padding: 0 6px; }
.dl-multiselect__input:focus-visible { outline: none; box-shadow: none; }
.dl-multiselect__input::placeholder { color: var(--text-muted); opacity: 1; }

/* ---- AddressLookup */
.dl-address { display: flex; flex-direction: column; gap: var(--gap); max-width: 560px; }
.dl-address [hidden] { display: none !important; }
.dl-address__row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.dl-address__row > .dl-input { width: calc(8ch + 40px); flex: none; text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
.dl-address__row > .dl-input::placeholder { text-transform: none; font-weight: 400; }
.dl-address__status { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; line-height: 22px; color: var(--text-secondary); margin: 0; }
.dl-address__status:empty { display: none; }
.dl-address__status > .dl-address__notice { flex: 1; }
.dl-address__notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px 16px; border: 0; background: var(--info-bg); color: var(--text); border-radius: 18px; font-size: 14px; line-height: 20px; }
.dl-address__notice > .dl-icon { color: var(--info-fg); margin-top: 0; }
.dl-address__notice > .dl-picto { width: 48px; height: 48px; margin: -2px 0; }
.dl-address__notice:has(> .dl-picto) { align-items: center; background: var(--surface); }
.dl-address__notice--error:has(> .dl-picto) { background: var(--error-bg); }
.dl-address__notice--error { background: var(--error-bg); }
.dl-address__notice--error > .dl-icon { color: var(--error-fg); }
.dl-address__notice p { margin: 0; }
.dl-address__results { display: flex; flex-direction: column; gap: var(--space-2); animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-address__count { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-secondary); margin: 0; }
.dl-address__list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; border: 0; border-radius: 20px; background: var(--dl-field-bg); display: flex; flex-direction: column; gap: 2px; }
.dl-address__option {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 48px; padding: 6px 12px 6px 6px; text-align: left;
  border: 0; border-radius: 14px; background: transparent; color: var(--text); font-size: var(--field-font); line-height: var(--field-lh); cursor: pointer;
  transition: background-color var(--duration-instant);
}
[data-density="compact"] .dl-address__option { min-height: 36px; padding: 4px 8px 4px 4px; }
.dl-address__option > .dl-icon { width: 36px; height: 36px; padding: 9px; border-radius: 999px; background: var(--surface-canvas); color: var(--text-secondary); transition: background-color var(--duration-fast), color var(--duration-fast); }
:where(.dl-demo__pane, .dl-card:not(.dl-card--raised, .dl-card--outline)) .dl-address__option > .dl-icon { background: var(--surface); }
.dl-address__option:hover { background: var(--surface-hover); }
.dl-address__option:hover > .dl-icon { background: var(--lead); color: var(--on-lead); }
.dl-address__option:focus-visible { outline-offset: -2px; box-shadow: none; }
.dl-address__option::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-top: 2px solid var(--text-muted); transform: rotate(45deg); opacity: 0; transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-standard); }
.dl-address__option:hover::after, .dl-address__option:focus-visible::after { opacity: 1; transform: translateX(-4px) rotate(45deg); }
.dl-address__card { display: flex; gap: var(--space-4); align-items: flex-start; padding: 20px; background: var(--lead-soft); border: 0; border-radius: var(--radius-lg, 24px); animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-address__pin { position: relative; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--lead); color: var(--on-lead); display: inline-flex; align-items: center; justify-content: center; }
.dl-address__card > .dl-icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 999px; background: var(--lead); color: var(--on-lead); }
.dl-address__card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-address__lines { margin: 0; font-style: normal; font-size: 15px; line-height: 21px; color: var(--text-secondary); }
.dl-address__lines strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; letter-spacing: -0.03em; color: var(--text); margin-bottom: 2px; }
.dl-address__uprn { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-canvas); font-size: 12px; line-height: 18px; color: var(--text-secondary); }
.dl-address__uprn abbr { text-decoration: none; font-family: var(--font-mono); letter-spacing: 0.06em; cursor: help; }
.dl-address__card .dl-btn--link { flex: none; margin-top: 4px; }
.dl-address__manual { display: flex; flex-direction: column; gap: var(--gap); }
.dl-address__manual > .dl-legend { font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; margin-bottom: 4px; }
.dl-address__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.dl-address__links .dl-btn--link { font-size: 15px; line-height: 22px; min-height: 24px; text-align: left; white-space: normal; }

/* ---- Calendar popover (DatePicker + DateRangePicker) */
.dl-datepicker, .dl-daterange__anchor { position: relative; width: 100%; }
.dl-datepicker { max-width: calc(10ch + 48px + var(--control-h)); }
[data-density="compact"] .dl-datepicker { max-width: calc(10ch + 72px); }
.dl-calendar {
  --cal-cell: 42px;
  position: absolute; z-index: var(--z-tooltip, 600); top: calc(100% + 8px); left: 0;
  width: max-content; max-width: calc(100vw - 32px); padding: 18px 18px 14px;
  background: var(--surface-raised); color: var(--text); border: 0; border-radius: var(--radius-lg, 24px); box-shadow: var(--dl-pop-shadow);
  transform-origin: top left; animation: dl-ft-pop var(--duration-base) var(--ease-standard);
}
[data-density="compact"] .dl-calendar { --cal-cell: 34px; padding: 12px 12px 10px; border-radius: 20px; }
.dl-calendar[hidden] { display: none; }
.dl-calendar__months { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); }
.dl-calendar__month { display: flex; flex-direction: column; gap: 6px; }
.dl-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 40px; margin-bottom: 4px; }
[data-density="compact"] .dl-calendar__head { min-height: 32px; margin-bottom: 0; }
.dl-calendar__title { margin: 0; flex: 1; text-align: center; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; }
[data-density="compact"] .dl-calendar__title { font-size: 16px; line-height: 20px; letter-spacing: -0.02em; }
/* Single month: title left, arrows grouped right */
.dl-calendar:not(.dl-calendar--range) .dl-calendar__title { order: -1; text-align: left; padding-left: 6px; }
.dl-calendar__nav {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color var(--duration-fast), transform var(--duration-fast) var(--ease-standard);
}
[data-density="compact"] .dl-calendar__nav { width: 30px; height: 30px; }
[data-density="compact"] .dl-calendar__nav .dl-icon { width: 16px; height: 16px; }
.dl-calendar__nav:hover:not(:disabled) { background: var(--action-primary); color: var(--on-action-primary); }
.dl-calendar__nav:active:not(:disabled) { transform: scale(0.92); }
.dl-calendar__nav:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }
.dl-calendar__nav-spacer { width: 36px; flex: none; }
[data-density="compact"] .dl-calendar__nav-spacer { width: 30px; }
.dl-calendar__grid { border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums lining-nums; }
[data-density="compact"] .dl-calendar__grid { border-spacing: 0 2px; }
.dl-calendar__grid th { width: var(--cal-cell); height: 24px; padding: 0; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.dl-calendar__grid th abbr { text-decoration: none; }
.dl-calendar__grid td { padding: 0; width: var(--cal-cell); height: var(--cal-cell); text-align: center; position: relative; }
.dl-calendar__day {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: var(--cal-cell); height: var(--cal-cell); padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--text);
  font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color var(--duration-instant), color var(--duration-instant), transform var(--duration-fast) var(--ease-standard);
}
[data-density="compact"] .dl-calendar__day { font-size: 13px; }
.dl-calendar__day:hover { background: var(--surface-hover); }
.dl-calendar__day:active { transform: scale(0.92); }
.dl-calendar__day:focus-visible, .dl-calendar__day.is-focus { z-index: 2; outline: 2px solid var(--focus-ring) !important; outline-offset: 1px; box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus-halo) 34%, transparent) !important; }
.dl-calendar__day[aria-current="date"] { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dl-calendar__day[aria-current="date"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lead); }
[data-density="compact"] .dl-calendar__day[aria-current="date"]::after { bottom: 4px; }
.dl-calendar__day[aria-disabled="true"] { color: var(--text-disabled); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; background: transparent; transform: none; }
/* Selected: a lead-colour circle */
td[aria-selected="true"] > .dl-calendar__day { background: var(--lead); color: var(--on-lead); font-weight: 700; box-shadow: none; animation: dl-pop var(--duration-base) var(--ease-standard); }
td[aria-selected="true"] > .dl-calendar__day[aria-current="date"]::after { background: var(--on-lead); }
/* Range: a --lead-soft band between two lead circles, rounded at week edges */
td.is-in-range { background: var(--lead-soft); }
td.is-in-range:first-child { border-radius: 999px 0 0 999px; }
td.is-in-range:last-child { border-radius: 0 999px 999px 0; }
td.is-range-start, td.is-range-end { background: transparent; }
td.is-range-start::before, td.is-range-end::before { content: ""; position: absolute; top: 0; bottom: 0; background: var(--lead-soft); }
td.is-range-start::before { left: 50%; right: 0; }
td.is-range-end::before { left: 0; right: 50%; }
td.is-range-start:last-child::before, td.is-range-end:first-child::before, td.is-range-start.is-range-end::before { display: none; }
td.is-in-range:not([aria-selected="true"]) > .dl-calendar__day:hover { background: var(--surface-raised); }
td.is-preview, td.is-preview::before { background: var(--surface-hover); }
td.is-preview.is-range-start, td.is-preview.is-range-end { background: transparent; }
.dl-calendar__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 13px; line-height: 18px; color: var(--text-secondary); max-width: calc(var(--cal-cell) * 7); }
.dl-calendar--range .dl-calendar__foot { max-width: none; }
.dl-calendar__foot strong { color: var(--text); font-weight: 600; }
.dl-calendar__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dl-calendar__key { display: inline-flex; align-items: center; gap: 6px; }
.dl-calendar__swatch { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 999px; }
.dl-calendar__swatch--today { box-shadow: inset 0 0 0 1.5px var(--border-strong); background: radial-gradient(circle, var(--lead) 0 2px, transparent 2.5px); }
.dl-calendar__swatch--off { background: linear-gradient(135deg, transparent 45%, var(--text-disabled) 45% 55%, transparent 55%); box-shadow: inset 0 0 0 1.5px var(--text-disabled); }
.dl-calendar__actions { display: flex; gap: var(--space-2); margin-left: auto; }
.dl-calendar--range { max-width: 100%; }

/* ---- DateRangePicker */
.dl-daterange { display: flex; flex-direction: column; gap: 12px; }
.dl-daterange__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.dl-daterange__fields .dl-field { width: calc(10ch + 44px); }
.dl-daterange__sep { align-self: flex-end; line-height: var(--control-h); color: var(--text-muted); font-weight: 600; }
.dl-daterange__summary { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--lead-soft); font-size: 14px; line-height: 20px; color: var(--text); }
.dl-daterange__summary .dl-icon { width: 16px; height: 16px; color: var(--lead-text); }
.dl-daterange__summary strong { font-weight: 700; }
.dl-daterange__summary:empty { display: none; }
.dl-daterange .dl-calendar { top: calc(100% + 8px); }

/* ---- TimeInput */
.dl-time { width: calc(5ch + 96px); max-width: 100%; }
.dl-time > .dl-input { font-variant-numeric: tabular-nums; }
[data-density="compact"] .dl-time { width: calc(5ch + 64px); }

/* ---- Preview helpers (component library pages only) */
.dl-ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 48px; align-items: start; }
.dl-ft-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
[data-density="compact"].dl-ft-panel { gap: 16px; }
.dl-ft-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.dl-ft-head .dl-overline { display: inline-flex; align-items: center; gap: 8px; }
.dl-ft-head .dl-overline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lead); }
.dl-ft-head .dl-h3 { font-size: 26px; line-height: 30px; letter-spacing: -0.035em; }
.dl-ft-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.dl-ft-states--2 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.dl-ft-screen { padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 20px; }
.dl-ft-screen__top { display: flex; align-items: center; justify-content: space-between; }
.dl-ft-screen .dl-display-2 { font-size: 36px; line-height: 38px; letter-spacing: -0.045em; }
.dl-ft-hint-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-ft-hint-tile .dl-icon { flex: none; color: var(--text); }
.dl-ft-space { flex: none; }
.dl-ft-logo { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.dl-ft-logo svg { flex: none; }
.dl-ft-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint-4); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--text); }
.dl-address__lines strong + br { display: none; }
@media (max-width: 640px) { .dl-ft-space--tall { height: 640px !important; } }

/* ---- 21-forms-choice.css ---- */
/* =====================================================================
   Deedline v2 — forms: choice controls, uploads and form structure.
   Checkbox/radio (ink box, "node" radio), choice tiles, conditional reveal,
   radio cards (soft tiles, ink ring), switch (lead track), segmented control
   (pill with a sliding ink thumb), slider (the line + lead node), OTP,
   file upload (pictogram tile), form structure, check your answers,
   error summary (soft red tile), stepper ("the line"), multi-step form, layouts.
   ===================================================================== */

/* Tile / well colours flip when a component sits on a grey surface */
:root { --dl-fc-tile: var(--surface); --dl-fc-well: var(--surface-canvas); }
.dl-demo__pane, .dl-on-grey { --dl-fc-tile: var(--surface-raised); --dl-fc-well: var(--surface); }
.dl-demo__pane .dl-card, .dl-demo__pane .dl-demo__phone, .dl-on-grey .dl-card, .dl-demo__phone { --dl-fc-tile: var(--surface); --dl-fc-well: var(--surface-canvas); }

/* ---- Checkbox and radio (extends base dl-check) */
.dl-check__box { transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast), box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.dl-check__box .dl-icon { transition: opacity var(--duration-instant); }
/* Tick draws itself when checked */
.dl-check__box .dl-icon[data-icon="check"] svg * { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset var(--duration-base) var(--ease-standard); }
.dl-check__input:checked + .dl-check__box .dl-icon[data-icon="check"] svg * { stroke-dashoffset: 0; }
.dl-check .dl-check__box { position: relative; }
.dl-check .dl-check__box .dl-icon[data-icon="minus"] { position: absolute; inset: 0; margin: auto; transform: none; }
/* Radio = the node: ink ring, lead centre */
.dl-check--radio .dl-check__input:checked + .dl-check__box { background: var(--lead); border-color: var(--action-primary); box-shadow: inset 0 0 0 5px var(--action-primary); }
.dl-check--radio .dl-check__input:checked:focus-visible + .dl-check__box,
.dl-check--radio .dl-check__input.is-focus:checked + .dl-check__box { box-shadow: inset 0 0 0 5px var(--action-primary), 0 0 0 3px var(--focus-halo); }
[data-density="compact"] .dl-check--radio .dl-check__box { border-radius: 50%; }
[data-density="compact"] .dl-check--radio .dl-check__input:checked + .dl-check__box { box-shadow: inset 0 0 0 4px var(--action-primary); }
.dl-check--radio .dl-check__input:disabled:checked + .dl-check__box { background: var(--surface-sunken); border-color: var(--text-disabled); box-shadow: inset 0 0 0 5px var(--text-disabled); }
/* A radio group with nothing chosen matches :indeterminate; keep those radios unselected */
.dl-check--radio .dl-check__input:indeterminate + .dl-check__box { background: var(--surface-canvas); border-color: var(--border-strong); }
.dl-check--radio .dl-check__input:indeterminate:hover:not(:disabled) + .dl-check__box { border-color: var(--text); }
.dl-check--radio .dl-check__input:indeterminate[aria-invalid="true"] + .dl-check__box { border-color: var(--error-border); }
.dl-check--radio .dl-check__input:indeterminate:disabled + .dl-check__box { background: var(--surface-sunken); border-color: var(--border); }
/* Forced states for static previews */
.dl-check__input.is-hover + .dl-check__box { border-color: var(--text); }
.dl-check__input.is-focus { outline: none !important; box-shadow: none !important; }
.dl-check__input.is-focus + .dl-check__box { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-check__input[aria-invalid="true"] + .dl-check__box { border-color: var(--error-border); background: var(--error-bg); }
.dl-check__text { font-weight: 500; }
.dl-check__input:checked ~ .dl-check__text { font-weight: 600; }

/* Choice group: vertical list; --inline lays them out in a row; --tiles makes each option a soft tile */
.dl-choices { display: flex; flex-direction: column; gap: var(--space-4); }
[data-density="compact"] .dl-choices { gap: var(--space-2); }
.dl-choices--inline { flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
[data-density="compact"] .dl-choices--inline { gap: var(--space-2) var(--space-5); }
.dl-choices__or { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
/* Hit area: the whole row, not just the box */
.dl-choices > .dl-check { padding: 10px 0; margin: -10px 0; }
[data-density="compact"] .dl-choices > .dl-check { padding: 2px 0; margin: -2px 0; }
.dl-choices--tiles { gap: var(--space-2); }
.dl-choices--tiles > .dl-check {
  margin: 0; padding: 16px 20px; border-radius: 18px; background: var(--dl-fc-tile); display: grid; width: 100%;
  transition: box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-instant);
}
.dl-choices--tiles > .dl-check:hover { background: var(--surface-hover); }
.dl-choices--tiles > .dl-check:has(.dl-check__input:checked) { box-shadow: inset 0 0 0 2px var(--border-selected); }
.dl-choices--tiles > .dl-check:has(.dl-check__input:disabled) { background: var(--surface-sunken); cursor: not-allowed; }
[data-density="compact"] .dl-choices--tiles > .dl-check { padding: 10px 14px; border-radius: 12px; }

/* Conditional reveal: a soft tile tucked under the option that opened it */
.dl-reveal {
  position: relative; margin: 2px 0 0 36px; padding: var(--space-5); border-radius: 20px; background: var(--dl-fc-tile);
  display: flex; flex-direction: column; gap: var(--space-4); animation: dl-rise var(--duration-slow) var(--ease-standard) both;
}
.dl-reveal::before { content: ""; position: absolute; left: -24px; top: -14px; width: 14px; height: 30px; border: solid var(--border-strong); border-width: 0 0 3px 3px; border-bottom-left-radius: 12px; }
.dl-reveal .dl-input, .dl-reveal .dl-select, .dl-reveal .dl-textarea, .dl-reveal .dl-input-group { background: var(--dl-fc-well); }
[data-density="compact"] .dl-reveal { margin-left: 28px; padding: var(--space-3) var(--space-4); border-radius: 14px; gap: var(--space-3); }
[data-density="compact"] .dl-reveal::before { left: -20px; width: 12px; }
.dl-reveal[hidden] { display: none; }

/* ---- Radio cards: one-tap answers. Soft tiles; selected gains an ink ring */
.dl-radio-cards { display: flex; flex-direction: column; gap: var(--space-3); }
.dl-radio-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-1) var(--space-4);
  min-height: var(--answer-h, 64px); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  background: var(--dl-fc-tile); border-radius: 20px; cursor: pointer; color: var(--text);
  transition: box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-instant), transform var(--duration-slow) var(--ease-standard);
}
.dl-radio-card__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; border-radius: inherit; }
.dl-radio-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-radio-card__title { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.dl-radio-card__desc { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-radio-card__picto { width: 56px; height: 56px; }
.dl-radio-card:has(> .dl-radio-card__picto) { grid-template-columns: auto 1fr auto; padding-left: var(--space-4); }
.dl-radio-card__mark {
  width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--dl-fc-well); color: var(--on-action-primary);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.dl-radio-card__mark .dl-icon { width: 20px; height: 20px; opacity: 0; transform: scale(0.4); transition: opacity var(--duration-fast), transform var(--duration-base) var(--ease-standard); }
.dl-radio-card__mark .dl-icon svg { stroke-width: 2.5; }
.dl-radio-card:hover, .dl-radio-card.is-hover { background: var(--surface-hover); }
.dl-radio-card:hover .dl-radio-card__mark, .dl-radio-card.is-hover .dl-radio-card__mark { transform: translateX(2px); }
.dl-radio-card:hover .dl-picto .off, .dl-radio-card.is-hover .dl-picto .off { transform: translate(-3px, -3px); }
.dl-radio-card:has(.dl-radio-card__input:checked), .dl-radio-card.is-selected { box-shadow: inset 0 0 0 2.5px var(--border-selected); background: var(--dl-fc-tile); }
.dl-radio-card:has(.dl-radio-card__input:checked) .dl-radio-card__mark, .dl-radio-card.is-selected .dl-radio-card__mark { background: var(--action-primary); }
.dl-radio-card:has(.dl-radio-card__input:checked) .dl-radio-card__mark .dl-icon, .dl-radio-card.is-selected .dl-radio-card__mark .dl-icon { opacity: 1; transform: none; }
.dl-radio-card:has(.dl-radio-card__input:checked) .dl-picto .off { transform: translate(-3px, -3px); }
.dl-radio-card:has(.dl-radio-card__input:focus-visible), .dl-radio-card.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: inset 0 0 0 2.5px var(--border-selected), 0 0 0 3px var(--focus-halo); }
.dl-radio-card__input:focus-visible { outline: none; box-shadow: none; }
.dl-radio-card:has(.dl-radio-card__input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--error-border); }
.dl-radio-card:has(.dl-radio-card__input:disabled) { cursor: not-allowed; background: var(--surface-sunken); }
.dl-radio-card:has(.dl-radio-card__input:disabled) .dl-radio-card__input { cursor: not-allowed; }
.dl-radio-card:has(.dl-radio-card__input:disabled) .dl-radio-card__title, .dl-radio-card:has(.dl-radio-card__input:disabled) .dl-radio-card__desc { color: var(--text-disabled); }
.dl-radio-card:has(.dl-radio-card__input:disabled) .dl-radio-card__mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.dl-radio-cards > .dl-reveal { margin-left: var(--space-6); }
.dl-radio-cards > .dl-reveal::before { display: none; }
/* Grid of tiles with pictograms (choose a path) */
.dl-radio-cards--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(176px, 100%), 1fr)); }
.dl-radio-cards--grid .dl-radio-card { grid-template-columns: 1fr auto; align-items: start; padding: var(--space-5); min-height: 184px; gap: var(--space-4) var(--space-3); border-radius: var(--radius-lg, 24px); }
.dl-radio-cards--grid .dl-radio-card__picto { grid-row: 1; grid-column: 1; width: 64px; height: 64px; }
.dl-radio-cards--grid .dl-radio-card__mark { grid-row: 1; grid-column: 2; width: 32px; height: 32px; }
.dl-radio-cards--grid .dl-radio-card__mark .dl-icon { width: 16px; height: 16px; }
.dl-radio-cards--grid .dl-radio-card__body { grid-column: 1 / -1; align-self: end; }
.dl-radio-cards--grid .dl-radio-card__title { font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
.dl-radio-cards--grid .dl-radio-card:hover { transform: translateY(-3px); }
[data-density="compact"] .dl-radio-card { min-height: 48px; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-radius: 14px; }
[data-density="compact"] .dl-radio-card__title { font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-radio-card__desc { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-radio-card__mark { width: 28px; height: 28px; }
[data-density="compact"] .dl-radio-card__mark .dl-icon { width: 14px; height: 14px; }

/* Check-in question header used with radio cards */
.dl-checkin { display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--mover-max, 520px); }
.dl-checkin__q { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.045em; margin: 0 0 4px; padding: 0; text-wrap: balance; }

/* ---- Switch: role="switch" button, lead track when on, visible On/Off text */
.dl-switch {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 44px; padding: var(--space-1) 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; border-radius: 12px;
}
.dl-switch--block { display: flex; width: 100%; }
.dl-switch__label { font-size: var(--field-font); line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.dl-switch__hint { display: block; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--text-muted); margin-top: 2px; }
.dl-switch__control { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.dl-switch__track {
  position: relative; width: 52px; height: 32px; flex: none; border-radius: var(--radius-full);
  background: var(--surface-sunken); box-shadow: inset 0 0 0 2px var(--border-strong);
  transition: background-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.dl-switch__thumb {
  position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center; color: var(--lead);
  transition: transform var(--duration-base) var(--ease-standard), width var(--duration-base) var(--ease-standard), height var(--duration-base) var(--ease-standard), top var(--duration-base) var(--ease-standard), left var(--duration-base) var(--ease-standard), background-color var(--duration-fast);
}
.dl-switch__thumb .dl-icon { width: 14px; height: 14px; opacity: 0; transition: opacity var(--duration-fast); }
.dl-switch__thumb .dl-icon svg { stroke-width: 3; }
.dl-switch__state { min-width: 3ch; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-switch[aria-checked="true"] .dl-switch__track { background: var(--lead); box-shadow: none; }
.dl-switch[aria-checked="true"] .dl-switch__thumb { top: 4px; left: 4px; width: 24px; height: 24px; transform: translateX(20px); background: var(--on-lead); }
.dl-switch[aria-checked="true"] .dl-switch__thumb .dl-icon { opacity: 1; }
.dl-switch[aria-checked="true"] .dl-switch__state { color: var(--text); }
.dl-switch:hover .dl-switch__track, .dl-switch.is-hover .dl-switch__track { box-shadow: inset 0 0 0 2px var(--text); }
.dl-switch:hover .dl-switch__thumb, .dl-switch.is-hover .dl-switch__thumb { background: var(--text); }
.dl-switch[aria-checked="true"]:hover .dl-switch__track, .dl-switch[aria-checked="true"].is-hover .dl-switch__track { box-shadow: none; filter: brightness(1.06); }
.dl-switch[aria-checked="true"]:hover .dl-switch__thumb { background: var(--on-lead); }
.dl-switch:active .dl-switch__thumb { width: 28px; }
.dl-switch[aria-checked="true"]:active .dl-switch__thumb { transform: translateX(16px); }
.dl-switch:focus-visible { outline: none; box-shadow: none; }
.dl-switch:focus-visible .dl-switch__track, .dl-switch.is-focus .dl-switch__track { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.dl-switch.is-focus { outline: none !important; box-shadow: none !important; }
.dl-switch:disabled { cursor: not-allowed; }
.dl-switch:disabled .dl-switch__label, .dl-switch:disabled .dl-switch__state { color: var(--text-disabled); }
.dl-switch:disabled .dl-switch__track { background: var(--surface-sunken); box-shadow: inset 0 0 0 2px var(--border); filter: none; }
.dl-switch:disabled .dl-switch__thumb { background: var(--border); }
.dl-switch[aria-checked="true"]:disabled .dl-switch__track { background: var(--text-disabled); box-shadow: none; }
.dl-switch[aria-checked="true"]:disabled .dl-switch__thumb { background: var(--surface-canvas); color: var(--text-disabled); }
[data-density="compact"] .dl-switch { min-height: 32px; gap: var(--space-3); }
[data-density="compact"] .dl-switch__label { font-weight: 500; }
[data-density="compact"] .dl-switch__track { width: 40px; height: 24px; }
[data-density="compact"] .dl-switch__thumb { top: 6px; left: 6px; width: 12px; height: 12px; }
[data-density="compact"] .dl-switch__thumb .dl-icon { width: 10px; height: 10px; }
[data-density="compact"] .dl-switch[aria-checked="true"] .dl-switch__thumb { top: 3px; left: 3px; width: 18px; height: 18px; transform: translateX(16px); }
[data-density="compact"] .dl-switch__state { font-size: 12px; line-height: 16px; }
.dl-switch-list { display: flex; flex-direction: column; }
.dl-switch-list > .dl-switch { padding: var(--space-4) 0; border-radius: 0; }
.dl-switch-list > .dl-switch + .dl-switch { box-shadow: 0 -1px 0 var(--border-subtle); }
[data-density="compact"] .dl-switch-list > .dl-switch { padding: var(--space-2) 0; }
/* Settings tile: a switch list inside a soft tile */
.dl-switch-list--tile { background: var(--dl-fc-tile); border-radius: var(--radius-lg, 24px); padding: 4px 24px; }
[data-density="compact"] .dl-switch-list--tile { border-radius: 16px; padding: 2px 16px; }

/* ---- Segmented control: pill radiogroup; the selected item rides an ink thumb that slides */
.dl-segmented {
  position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; padding: 4px; gap: 2px; isolation: isolate;
  background: var(--dl-fc-tile); border-radius: var(--radius-full); scrollbar-width: none;
}
.dl-segmented--block { display: flex; }
.dl-segmented--block > .dl-segmented__item { flex: 1; }
.dl-segmented__thumb {
  position: absolute; top: 0; left: 0; z-index: -1; border-radius: var(--radius-full); background: var(--action-primary); pointer-events: none;
  transition: transform var(--duration-base) var(--ease-standard), width var(--duration-base) var(--ease-standard);
}
.dl-segmented__item {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); flex: none;
  min-height: 40px; padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-secondary);
  font-size: var(--label-font); line-height: 20px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color var(--duration-instant) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.dl-segmented__item:hover, .dl-segmented__item.is-hover { color: var(--text); background: var(--surface-hover); }
.dl-segmented__item[aria-checked="true"] { background: var(--action-primary); color: var(--on-action-primary); }
.dl-segmented--js .dl-segmented__item[aria-checked="true"] { background: transparent; }
.dl-segmented__item:focus-visible { outline-offset: 2px; }
.dl-segmented__item:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }
.dl-segmented__count {
  min-width: 24px; padding: 0 7px; border-radius: var(--radius-full); background: var(--dl-fc-well);
  font-size: 12px; line-height: 20px; font-weight: 600; color: var(--text-secondary); text-align: center; font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-base), color var(--duration-base);
}
.dl-segmented__item[aria-checked="true"] .dl-segmented__count { background: var(--lead); color: var(--on-lead); }
.dl-segmented__item .dl-icon { width: 18px; height: 18px; }
[data-density="compact"] .dl-segmented { padding: 3px; }
[data-density="compact"] .dl-segmented__item { min-height: 30px; padding: 0 var(--space-3); font-size: 13px; }
[data-density="compact"] .dl-segmented__count { font-size: 11px; line-height: 16px; min-width: 18px; padding: 0 5px; }
[data-density="compact"] .dl-segmented__item .dl-icon { width: 16px; height: 16px; }

/* ---- Slider: the line (ink fill on a soft rail) with a lead node as the thumb */
.dl-slider { display: flex; flex-direction: column; gap: var(--space-2); max-width: 520px; min-width: 0; }
.dl-slider__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.dl-slider__value {
  display: inline-block; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 18px; line-height: 28px; letter-spacing: -0.02em; color: var(--text);
  padding: 2px 12px; border-radius: var(--radius-full); background: var(--dl-fc-tile); white-space: nowrap;
}
.dl-slider__sentence { font-size: 18px; line-height: 36px; margin: 0; }
.dl-slider__sentence .dl-slider__value { margin: 0 2px; }
.dl-slider__track { position: relative; height: 44px; --lo: 0; --hi: 0.5; --half: 14px; --rail: 8px; }
.dl-slider__rail, .dl-slider__fill { position: absolute; top: 50%; height: var(--rail); margin-top: calc(var(--rail) / -2); border-radius: var(--radius-full); pointer-events: none; }
.dl-slider__rail { left: 0; right: 0; background: var(--timeline-rail); }
.dl-demo__pane .dl-slider__rail, .dl-on-grey .dl-slider__rail { background: var(--surface-raised); }
.dl-slider__fill { left: calc(var(--half) + (100% - 2 * var(--half)) * var(--lo)); right: calc(100% - var(--half) - (100% - 2 * var(--half)) * var(--hi)); background: var(--timeline-rail-done); }
.dl-slider:not(.dl-slider--range) .dl-slider__fill { left: 0; }
.dl-slider__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dl-slider__input::-webkit-slider-runnable-track { height: 100%; background: transparent; border: 0; }
.dl-slider__input::-moz-range-track { height: var(--rail); background: transparent; border: 0; }
.dl-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: 8px; border-radius: var(--radius-full);
  background: var(--lead); border: 5px solid var(--text); cursor: grab; pointer-events: auto;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.dl-slider__input::-moz-range-thumb { box-sizing: border-box; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--lead); border: 5px solid var(--text); cursor: grab; pointer-events: auto; }
.dl-slider__input:hover::-webkit-slider-thumb { transform: scale(1.1); }
.dl-slider__input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.18); }
.dl-slider__input:focus-visible { outline: none; box-shadow: none; }
.dl-slider__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-slider__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-slider__input.is-focus { outline: none !important; box-shadow: none !important; }
.dl-slider__input.is-focus::-webkit-slider-thumb { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-slider__input:disabled { cursor: not-allowed; }
.dl-slider__input:disabled::-webkit-slider-thumb { border-color: var(--text-disabled); background: var(--surface-sunken); cursor: not-allowed; transform: none; }
.dl-slider__input:disabled::-moz-range-thumb { border-color: var(--text-disabled); background: var(--surface-sunken); }
.dl-slider--disabled .dl-slider__fill { background: var(--text-disabled); }
.dl-slider--disabled .dl-slider__value, .dl-slider--disabled .dl-label { color: var(--text-disabled); }
/* Range: two inputs share the track; only the thumbs take pointer events */
.dl-slider--range .dl-slider__input { pointer-events: none; }
.dl-slider__scale { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
[data-density="compact"] .dl-slider__track { height: 32px; --half: 10px; --rail: 6px; }
[data-density="compact"] .dl-slider__input::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: 6px; border-width: 4px; }
[data-density="compact"] .dl-slider__input::-moz-range-thumb { width: 20px; height: 20px; border-width: 4px; }
[data-density="compact"] .dl-slider__value { font-family: var(--font-sans); font-size: 13px; line-height: 20px; padding: 2px 10px; letter-spacing: 0; }
[data-density="compact"] .dl-slider__scale { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-slider__sentence { font-size: 14px; line-height: 28px; }

/* ---- OTP input: six filled boxes in a labelled group */
.dl-otp { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.dl-otp__label { font-size: var(--label-font); line-height: 22px; font-weight: 600; margin: 0; }
.dl-otp__boxes { display: flex; gap: var(--space-2); flex-wrap: nowrap; align-items: center; max-width: 400px; }
.dl-otp__box {
  width: 56px; height: 64px; min-width: 0; flex: 1 1 0; max-width: 56px; padding: 0; text-align: center;
  font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--dl-fc-tile); border: 2px solid transparent; border-radius: 16px; caret-color: var(--lead);
  transition: border-color var(--duration-instant) var(--ease-standard), background-color var(--duration-instant), transform var(--duration-fast) var(--ease-standard);
}
.dl-otp__box:nth-child(3) { margin-right: var(--space-3); }
.dl-otp__box:hover { border-color: var(--border-strong); }
.dl-otp__box:focus-visible, .dl-otp__box:focus, .dl-otp__box.is-focus { border-color: var(--focus-ring); background: var(--surface-canvas); outline: none; box-shadow: 0 0 0 4px var(--focus-halo); transform: translateY(-2px); }
.dl-otp__box[aria-invalid="true"] { border-color: var(--error-border); background: var(--error-bg); }
.dl-otp__box:disabled { background: var(--surface-sunken); color: var(--text-secondary); border-color: transparent; cursor: progress; }
.dl-otp--error .dl-otp__boxes { animation: dl-fc-shake var(--duration-slow) var(--ease-standard) 1; }
@keyframes dl-fc-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.dl-otp__status { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--text-secondary); margin: 0; min-height: 20px; }
.dl-otp__status .dl-spinner { width: 18px; height: 18px; }
.dl-otp__status--success { color: var(--success-fg); font-weight: 600; }
.dl-otp__resend { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
.dl-otp__resend .dl-btn--link { font-size: 14px; min-height: 24px; }
.dl-otp__status:empty { display: none; }
@media (max-width: 380px) { .dl-otp__box { height: 56px; font-size: 24px; border-radius: 14px; } .dl-otp__boxes { gap: 6px; } .dl-otp__box:nth-child(3) { margin-right: var(--space-2); } }
.dl-demo__phone .dl-otp__box { height: 56px; font-size: 24px; border-radius: 14px; }
[data-density="compact"] .dl-otp__box { max-width: 40px; height: 44px; font-family: var(--font-mono); font-size: 18px; font-weight: 500; border-radius: 10px; }
[data-density="compact"] .dl-otp__box:nth-child(3) { margin-right: var(--space-2); }

/* ---- File upload: a soft tile with the upload pictogram */
.dl-upload { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.dl-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dl-upload__zone {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5);
  padding: var(--space-6); border-radius: var(--radius-lg, 24px); background: var(--dl-fc-tile);
  transition: background-color var(--duration-fast) var(--ease-standard), outline-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: 2px dashed transparent; outline-offset: -10px;
}
.dl-upload__zone > .dl-picto { width: 80px; height: 80px; }
.dl-upload__zone > .dl-icon { width: 32px; height: 32px; color: var(--text-secondary); }
.dl-upload__text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-upload__title { font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.dl-upload__hint { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
.dl-upload__zone > .dl-btn { flex: none; }
.dl-upload__zone.is-dragover { background: var(--lead-soft); outline-color: var(--text); }
.dl-upload__zone.is-dragover .dl-picto .off { transform: translate(-4px, -4px); }
.dl-upload__zone.is-dragover > .dl-picto { animation: dl-fc-bob 1.4s var(--ease-standard) infinite; }
@keyframes dl-fc-bob { 50% { transform: translateY(-6px); } }
.dl-upload__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.dl-upload__actions .dl-btn { width: 100%; }
.dl-upload__hero { display: flex; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg, 24px); background: var(--lead-soft); }
[data-density="compact"] .dl-upload__zone { padding: var(--space-3) var(--space-4); gap: var(--space-3); border-radius: 16px; outline-offset: -6px; }
[data-density="compact"] .dl-upload__zone > .dl-picto { width: 44px; height: 44px; }
[data-density="compact"] .dl-upload__zone > .dl-picto .ol { stroke-width: 4; }
[data-density="compact"] .dl-upload__zone > .dl-icon { width: 24px; height: 24px; }
[data-density="compact"] .dl-upload__title { font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }

.dl-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.dl-file {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-1) var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-3); background: var(--dl-fc-tile); border-radius: 18px; min-width: 0;
  animation: dl-rise var(--duration-slow) var(--ease-standard) both;
}
.dl-file__icon { width: 44px; height: 44px; padding: 12px; border-radius: var(--radius-full); background: var(--dl-fc-well); color: var(--text-secondary); }
.dl-file__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-file__name { font-size: 15px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-file__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-file__meta .dl-icon { width: 16px; height: 16px; }
.dl-file__actions { display: flex; align-items: center; gap: var(--space-1); }
.dl-file__actions .dl-btn--icon { min-width: 40px; min-height: 40px; }
.dl-file__progress { grid-column: 2 / 4; height: 6px; margin-right: var(--space-2); border-radius: var(--radius-full); background: var(--dl-fc-well); overflow: hidden; }
.dl-file__bar { display: block; height: 100%; width: 0; background: var(--lead); border-radius: var(--radius-full); transition: width var(--duration-base) var(--ease-standard); }
.dl-file--success .dl-file__icon { background: var(--success-bg); color: var(--success-fg); }
.dl-file--success .dl-file__state { color: var(--success-fg); }
.dl-file--error { background: var(--error-bg); }
.dl-file--error .dl-file__icon { background: var(--surface-canvas); color: var(--error-fg); }
.dl-file--error .dl-file__state { color: var(--error-fg); font-weight: 600; }
.dl-file--blocked { background: var(--info-bg); align-items: start; }
.dl-file--blocked .dl-file__icon { background: var(--surface-canvas); color: var(--info-fg); }
.dl-file--blocked .dl-file__name { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--text-secondary); }
.dl-file--blocked .dl-file__main { padding-top: 2px; }
.dl-file__note { font-size: 14px; line-height: 20px; color: var(--text); margin: 0; white-space: normal; }
.dl-file__state { font-weight: 600; }
[data-density="compact"] .dl-file { padding: var(--space-2); gap: 2px var(--space-2); border-radius: 12px; }
[data-density="compact"] .dl-file__icon { width: 32px; height: 32px; padding: 8px; }
[data-density="compact"] .dl-file__name { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-file__meta, [data-density="compact"] .dl-file__note { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-file__actions .dl-btn--icon { min-width: 28px; min-height: 28px; }

/* Blocked notice (whole-panel form, used above a list) */
.dl-upload-notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); background: var(--info-bg); border-radius: 18px; }
.dl-upload-notice > .dl-icon { color: var(--info-fg); margin-top: 2px; }
.dl-upload-notice__body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 22px; }
.dl-upload-notice__title { font-weight: 600; }

/* ---- Form structure */
.dl-form { display: flex; flex-direction: column; gap: var(--space-6); max-width: var(--mover-max, 520px); min-width: 0; }
.dl-form--wide { max-width: 880px; }
[data-density="compact"] .dl-form { gap: var(--space-4); }
.dl-form__head { display: flex; flex-direction: column; gap: var(--space-3); }
.dl-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-top: var(--space-2); }
.dl-form__saved { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--radius-full); background: var(--success-bg); font-size: 14px; line-height: 20px; color: var(--success-fg); font-weight: 600; animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-form__saved .dl-icon { width: 16px; height: 16px; }
.dl-form__back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 16px; font-weight: 600; }
.dl-form__back .dl-icon { width: 16px; height: 16px; }
.dl-form-screen { padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); background: var(--surface-canvas); }

/* Anatomy callouts (FormStructure preview): soft outline with a lead tag */
.dl-anatomy { position: relative; padding: var(--space-5) var(--space-4) var(--space-4); border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--border-subtle); }
.dl-anatomy__tag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--lead-soft); font-family: var(--font-mono); font-size: 11px; line-height: 18px; font-weight: 500; color: var(--lead-text); letter-spacing: 0.06em; text-transform: uppercase; }

/* Check your answers: read-only summary in a soft tile, Change links on the right */
.dl-check-answers { margin: 0; display: flex; flex-direction: column; background: var(--dl-fc-tile); border-radius: var(--radius-lg, 24px); padding: var(--space-1) var(--space-6); }
.dl-check-answers__row { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr auto; gap: var(--space-1) var(--space-5); padding: var(--space-4) 0; align-items: baseline; }
.dl-check-answers__row + .dl-check-answers__row { box-shadow: 0 -1px 0 var(--border-subtle); }
.dl-check-answers__key { margin: 0; font-weight: 500; font-size: 14px; line-height: 24px; color: var(--text-muted); }
.dl-check-answers__value { margin: 0; font-size: var(--field-font); line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.dl-check-answers__value--empty { color: var(--text-muted); font-weight: 400; }
.dl-check-answers__action { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 600px) {
  .dl-check-answers { padding: var(--space-1) var(--space-5); }
  .dl-check-answers__row { grid-template-columns: 1fr auto; }
  .dl-check-answers__key { grid-column: 1; }
  .dl-check-answers__value { grid-column: 1 / -1; grid-row: 2; }
  .dl-check-answers__action { grid-column: 2; grid-row: 1; }
}
.dl-form-screen .dl-check-answers, .dl-demo__phone .dl-check-answers { padding: var(--space-1) var(--space-5); }
.dl-form-screen .dl-check-answers__row, .dl-demo__phone .dl-check-answers__row { grid-template-columns: 1fr auto; }
.dl-form-screen .dl-check-answers__key, .dl-demo__phone .dl-check-answers__key { grid-column: 1; }
.dl-form-screen .dl-check-answers__value, .dl-demo__phone .dl-check-answers__value { grid-column: 1 / -1; grid-row: 2; }
.dl-form-screen .dl-check-answers__action, .dl-demo__phone .dl-check-answers__action { grid-column: 2; grid-row: 1; }
[data-density="compact"] .dl-check-answers { padding: 0 var(--space-4); border-radius: 16px; }
[data-density="compact"] .dl-check-answers__row { padding: var(--space-2) 0; }
[data-density="compact"] .dl-check-answers__key { font-size: 13px; line-height: 20px; }
[data-density="compact"] .dl-check-answers__value { font-size: 14px; line-height: 20px; }

/* ---- Error summary: a soft red tile, focused on submit. Content indents past the icon disc */
.dl-error-summary {
  --es-indent: 60px; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-6); border-radius: var(--radius-lg, 24px); background: var(--error-bg); color: var(--text);
  animation: dl-rise var(--duration-slow) var(--ease-standard) both;
}
.dl-error-summary > :not(.dl-error-summary__title) { margin-left: var(--es-indent); }
.dl-error-summary[hidden] { display: none; }
.dl-error-summary:focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-error-summary.is-focus { outline: 2px solid var(--focus-ring) !important; outline-offset: 3px; }
.dl-error-summary__title { display: flex; align-items: center; gap: var(--space-4); margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; }
.dl-error-summary__title .dl-icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-full); background: var(--error-fg); color: var(--error-bg); }
.dl-error-summary__title .dl-icon svg { stroke-width: 2.25; }
.dl-error-summary__body { margin: 0; font-size: var(--field-font); line-height: 24px; color: var(--text-secondary); }
.dl-error-summary__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.dl-error-summary__list li { display: flex; gap: 10px; align-items: baseline; }
.dl-error-summary__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--error-fg); transform: translateY(-3px); }
.dl-error-summary__list a { color: var(--error-fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; border-radius: 3px; }
.dl-error-summary__list a:hover { text-decoration-thickness: 2.5px; }
@media (max-width: 420px) { .dl-error-summary { --es-indent: 0px; padding: var(--space-5); } }
[data-density="compact"] .dl-error-summary { --es-indent: 44px; padding: var(--space-4); gap: var(--space-1); border-radius: 16px; }
[data-density="compact"] .dl-error-summary__title { gap: var(--space-3); font-family: var(--font-sans); font-size: 16px; line-height: 22px; letter-spacing: -0.01em; }
[data-density="compact"] .dl-error-summary__title .dl-icon { width: 32px; height: 32px; padding: 7px; }
[data-density="compact"] .dl-error-summary__body, [data-density="compact"] .dl-error-summary__list { font-size: 14px; line-height: 20px; }

/* ---- Stepper: "the line" through milestone circles; the current step is the lead node */
.dl-stepper { --step-dot: 36px; --step-line: 6px; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.dl-stepper__count { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.dl-stepper__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.dl-stepper__step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding-right: var(--space-3); }
.dl-stepper__step:last-child { flex: 0 1 auto; padding-right: 0; }
/* Rail (::before) and the travelled ink line (::after), both running centre to centre */
.dl-stepper__step:not(:last-child)::before, .dl-stepper__step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; top: calc(var(--step-dot) / 2 - var(--step-line) / 2); left: calc(var(--step-dot) / 2); right: calc(var(--step-dot) / -2);
  height: var(--step-line); border-radius: var(--radius-full); background: var(--timeline-rail);
}
.dl-stepper__step:not(:last-child)::after { background: var(--timeline-rail-done); transform-origin: left center; transform: scaleX(0); }
.dl-stepper__step--done:not(:last-child)::after { transform: none; animation: dl-fc-line-x var(--duration-draw) var(--ease-standard) both; }
@keyframes dl-fc-line-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dl-fc-line-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dl-stepper__marker {
  position: relative; z-index: 1; width: var(--step-dot); height: var(--step-dot); flex: none; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center;
  border: 4px solid var(--timeline-rail); background: var(--surface-canvas); color: var(--text-muted); font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), color var(--duration-base);
}
.dl-stepper__marker .dl-icon { width: 18px; height: 18px; }
.dl-stepper__marker .dl-icon svg { stroke-width: 2.75; }
.dl-stepper__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.dl-stepper__label { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-secondary); }
.dl-stepper__state { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-stepper__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; border-radius: 3px; }
.dl-stepper__link:hover { text-decoration-thickness: 2.5px; }
.dl-stepper__step--done .dl-stepper__marker { background: var(--timeline-rail-done); border-color: var(--timeline-rail-done); color: var(--on-action-primary); }
.dl-stepper__step--done .dl-stepper__marker .dl-icon { animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-stepper__step--done .dl-stepper__label { color: var(--text); }
.dl-stepper__step--current .dl-stepper__marker { background: var(--lead); border-color: var(--text); color: var(--on-lead); animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-stepper__step--current .dl-stepper__marker::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 0 var(--lead); animation: dl-fc-pulse 2.4s var(--ease-standard) 0.6s infinite; }
@keyframes dl-fc-pulse { 0% { box-shadow: 0 0 0 0 var(--lead); opacity: 0.55; } 70%, 100% { box-shadow: 0 0 0 12px var(--lead); opacity: 0; } }
.dl-stepper__step--current .dl-stepper__label { color: var(--text); font-weight: 700; }
.dl-stepper__step--current .dl-stepper__state { color: var(--lead-text); font-weight: 600; }
.dl-stepper__step--error .dl-stepper__marker { border-color: var(--error-border); color: var(--error-fg); background: var(--error-bg); }
.dl-stepper__step--error .dl-stepper__label { color: var(--text); }
.dl-stepper__step--error .dl-stepper__state { color: var(--error-fg); font-weight: 600; }
.dl-stepper__step--error:not(:last-child)::after { transform: none; }
/* Vertical (phones, side panels) */
.dl-stepper--vertical .dl-stepper__list { flex-direction: column; }
.dl-stepper--vertical .dl-stepper__step { flex-direction: row; align-items: flex-start; gap: var(--space-4); padding: 0 0 var(--space-6); }
.dl-stepper--vertical .dl-stepper__step:last-child { padding-bottom: 0; }
.dl-stepper--vertical .dl-stepper__step:not(:last-child)::before, .dl-stepper--vertical .dl-stepper__step:not(:last-child)::after {
  top: calc(var(--step-dot) / 2); bottom: calc(var(--step-dot) / -2); left: calc(var(--step-dot) / 2 - var(--step-line) / 2); right: auto; width: var(--step-line); height: auto;
}
.dl-stepper--vertical .dl-stepper__step:not(:last-child)::after { transform-origin: center top; transform: scaleY(0); }
.dl-stepper--vertical .dl-stepper__step--done:not(:last-child)::after { transform: none; animation-name: dl-fc-line-y; }
.dl-stepper--vertical .dl-stepper__step--error:not(:last-child)::after { transform: none; }
.dl-stepper--vertical .dl-stepper__text { padding-top: calc((var(--step-dot) - 38px) / 2); }
.dl-stepper--vertical .dl-stepper__label { font-size: 17px; line-height: 22px; }
[data-density="compact"] .dl-stepper, .dl-stepper[data-density="compact"] { --step-dot: 26px; --step-line: 4px; gap: var(--space-3); }
[data-density="compact"] .dl-stepper__marker { font-size: 12px; border-width: 3px; }
[data-density="compact"] .dl-stepper__marker .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-stepper__step { gap: var(--space-2); }
[data-density="compact"] .dl-stepper__label { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-stepper__state { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-stepper--vertical .dl-stepper__step { padding-bottom: var(--space-4); gap: var(--space-3); }
[data-density="compact"] .dl-stepper--vertical .dl-stepper__label { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-stepper--vertical .dl-stepper__text { padding-top: 0; }
/* Narrow screens: horizontal steppers keep every node but only show the current step's words (others stay readable to screen readers) */
@media (max-width: 560px) {
  .dl-stepper:not(.dl-stepper--vertical) .dl-stepper__step:not(.dl-stepper__step--current) .dl-stepper__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dl-stepper:not(.dl-stepper--vertical) .dl-stepper__step--current .dl-stepper__text { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .dl-stepper__step--current .dl-stepper__marker::after { display: none; } }

/* ---- Multi-step form */
.dl-multistep { display: flex; flex-direction: column; gap: var(--space-6); max-width: 640px; min-width: 0; }
.dl-multistep__panel { display: flex; flex-direction: column; gap: var(--space-6); animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-multistep__panel[hidden] { display: none; }
.dl-multistep__panel:focus { outline: none; }
.dl-multistep__title { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.dl-multistep__title:focus { outline: none; }
.dl-multistep__title:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 6px; }
.dl-multistep__done {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); align-items: center;
  padding: var(--space-6); background: var(--lead-soft); border-radius: var(--radius-lg, 24px); animation: dl-rise var(--duration-slow) var(--ease-standard) both;
}
.dl-multistep__done > .dl-picto { grid-row: 1 / span 2; }
.dl-multistep__done-title { font-family: var(--font-display); font-size: 28px; line-height: 30px; font-weight: 600; letter-spacing: -0.04em; margin: 0; align-self: end; }
.dl-multistep__done-title:focus { outline: none; }
.dl-multistep__done > p { margin: 0; align-self: start; color: var(--text-secondary); }
@media (max-width: 520px) { .dl-multistep__done { grid-template-columns: 1fr; } .dl-multistep__done > .dl-picto { grid-row: auto; } .dl-multistep__title { font-size: 28px; line-height: 30px; } }

/* ---- Form layouts */
.dl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
.dl-form-grid__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .dl-form-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-form-screen .dl-form-grid, .dl-demo__phone .dl-form-grid { grid-template-columns: minmax(0, 1fr); }
[data-density="compact"] .dl-form-grid { gap: var(--space-3) var(--space-4); }
/* Width guidance: size the box to the expected answer */
.dl-w-2ch { width: calc(3ch + 34px); } .dl-w-4ch { width: calc(5.4ch + 34px); } .dl-w-8ch { width: calc(9ch + 34px); }
.dl-w-12ch { width: calc(13ch + 34px); } .dl-w-20ch { width: calc(21ch + 34px); }
.dl-w-2ch, .dl-w-4ch, .dl-w-8ch, .dl-w-12ch, .dl-w-20ch { max-width: 100%; }
.dl-date-parts { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.dl-date-parts .dl-field { gap: 4px; }
.dl-date-parts .dl-label { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* Inline filter bar for professional tables (compact): a soft tile with white wells */
.dl-filter-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); padding: var(--space-4);
  background: var(--dl-fc-tile); border-radius: 20px; min-width: 0;
}
.dl-filter-bar .dl-input, .dl-filter-bar .dl-select, .dl-filter-bar .dl-input-group { background: var(--dl-fc-well); }
.dl-filter-bar .dl-input-group > .dl-input { background: transparent; }
.dl-filter-bar .dl-input-group, .dl-filter-bar .dl-input, .dl-filter-bar .dl-select { border-radius: var(--radius-full); }
.dl-filter-bar > .dl-field { flex: 0 1 auto; }
.dl-filter-bar__search { flex: 1 1 220px !important; min-width: min(220px, 100%); }
.dl-filter-bar__status { flex: 0 1 170px !important; min-width: 140px; }
.dl-filter-bar__dates { display: flex; gap: var(--space-2); flex: 0 1 auto; flex-wrap: wrap; }
.dl-filter-bar__dates .dl-input { width: calc(10ch + 28px); }
.dl-filter-bar__end { display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-h); margin-left: auto; }
.dl-filter-bar__count { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-filter-bar .dl-input-group > .dl-affix { padding: 0 4px 0 12px; }
@media (max-width: 560px) {
  .dl-filter-bar > .dl-field, .dl-filter-bar__dates { flex: 1 1 100% !important; }
  .dl-filter-bar__dates > .dl-field { flex: 1 1 0; }
  .dl-filter-bar__dates .dl-input { width: 100%; }
  .dl-filter-bar__end { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Misc */
fieldset.dl-fieldset.dl-field--error { border-left: 3px solid var(--error-border); padding-left: 14px; }
.dl-field-error[hidden] { display: none; }
.dl-nowrap { white-space: nowrap; }
.dl-field-success[hidden], .dl-form__saved[hidden], .dl-multistep__done[hidden], .dl-form__back[hidden] { display: none; }
.dl-form__actions[hidden], .dl-btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dl-reveal, .dl-file, .dl-error-summary, .dl-multistep__panel, .dl-multistep__done, .dl-form__saved, .dl-otp--error .dl-otp__boxes, .dl-upload__zone.is-dragover > .dl-picto { animation: none; }
  .dl-stepper__step--done:not(:last-child)::after { animation: none; }
}

/* ---- 30-actions-nav.css ---- */
/* =====================================================================
   Deedline v2 — actions & navigation: button extensions, segmented
   toggle, split button, action menu, avatars, account switcher, floating
   action, answer buttons, app bar (+ logo lockup), side nav, bottom nav,
   tabs, breadcrumbs, pagination, skip link demo.
   Tokens only. Every control is a pill; one lead colour per surface.
   ===================================================================== */

/* ---------------------------------------------------------------- Button extensions (base .dl-btn lives in 00-base) */
/* On a lead or ink band: the button takes the band's text colour as its fill */
.dl-btn--on-lead { --btn-bg: var(--on-lead); --btn-fg: var(--lead); --btn-bg-hover: var(--on-lead); }
.dl-btn--on-lead:hover { filter: brightness(1.08); }
.dl-btn--inverse { --btn-bg: var(--text-inverse); --btn-fg: var(--surface-inverse); --btn-bg-hover: var(--text-inverse); }
.dl-btn--inverse:hover { filter: brightness(0.94); }
.dl-btn--ghost-on { --btn-fg: currentColor; --btn-bd: currentColor; --btn-bg-hover: color-mix(in oklab, currentColor 12%, transparent); color: inherit; }
.dl-btn--ghost-on:disabled { color: inherit; opacity: 0.5; }
.dl-btn--xl { min-height: 64px; min-width: 64px; padding: 0 32px; font-size: 18px; }
.dl-btn--lead:focus-visible, .dl-btn--on-lead:focus-visible { box-shadow: 0 0 0 3px var(--focus-halo); }

/* ---------------------------------------------------------------- Segmented toggle (.dl-btn-group) */
.dl-btn-group {
  --seg-track: var(--surface);
  position: relative; isolation: isolate; display: inline-flex; align-items: stretch; gap: 2px; max-width: 100%;
  padding: 4px; border-radius: var(--radius-full, 999px); background: var(--seg-track);
}
.dl-btn-group--on-surface { --seg-track: var(--surface-sunken); }
.dl-btn-group > .dl-btn {
  --btn-bg: transparent; --btn-fg: var(--text-secondary); --btn-bg-hover: transparent; --btn-bd: transparent;
  min-height: calc(var(--control-h) - 8px); padding: 0 18px; font-weight: 600; z-index: 1;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.dl-btn-group > .dl-btn--icon { padding: 0; width: calc(var(--control-h) - 8px); min-width: calc(var(--control-h) - 8px); }
.dl-btn-group > .dl-btn:hover, .dl-btn-group > .dl-btn.is-hover { --btn-fg: var(--text); transform: none; }
.dl-btn-group > .dl-btn:active { transform: scale(0.97); }
.dl-btn-group > .dl-btn[aria-pressed="true"] { --btn-bg: var(--surface-raised); --btn-bg-hover: var(--surface-raised); --btn-fg: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle); }
.dl-btn-group[data-ink] > .dl-btn[aria-pressed="true"] { --btn-bg: transparent; --btn-bg-hover: transparent; box-shadow: none; }
.dl-btn-group > .dl-btn:disabled { --btn-bg: transparent; --btn-bg-hover: transparent; --btn-fg: var(--text-disabled); }
.dl-btn-group > .dl-btn:focus-visible { z-index: 2; }
.dl-btn-group__thumb {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; z-index: 0; border-radius: var(--radius-full, 999px);
  background: var(--surface-raised); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle); pointer-events: none;
  transition: transform var(--duration-base) var(--ease-standard), width var(--duration-base) var(--ease-standard);
}
[data-density="compact"] .dl-btn-group { padding: 3px; }
[data-density="compact"] .dl-btn-group > .dl-btn { min-height: calc(var(--control-h) - 6px); padding: 0 12px; }
[data-density="compact"] .dl-btn-group > .dl-btn--icon { padding: 0; width: calc(var(--control-h) - 6px); min-width: calc(var(--control-h) - 6px); }
[data-density="compact"] .dl-btn-group__thumb { top: 3px; bottom: 3px; }

/* ---------------------------------------------------------------- Split button: two pills joined by a 2px seam */
.dl-split { position: relative; display: inline-flex; align-items: stretch; gap: 2px; }
.dl-split > .dl-btn:first-child { border-radius: var(--radius-full, 999px) 6px 6px var(--radius-full, 999px); padding-right: calc(var(--pad-x) - 4px); }
.dl-split__toggle.dl-btn { border-radius: 6px var(--radius-full, 999px) var(--radius-full, 999px) 6px; padding: 0 4px 0 0; min-width: calc(var(--control-h) - 4px); width: calc(var(--control-h) - 4px); }
.dl-split__toggle .dl-icon { transition: transform var(--duration-base) var(--ease-standard); }
.dl-split__toggle[aria-expanded="true"] .dl-icon { transform: rotate(180deg); }
.dl-split > .dl-btn:hover { transform: none; }
.dl-split > .dl-btn:active { transform: scale(0.98); }
.dl-split > .dl-btn:focus-visible { z-index: 1; }

/* ---------------------------------------------------------------- Action menu (split button, account switcher) */
.dl-menu-anchor { position: relative; display: inline-flex; }
.dl-action-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: var(--z-tooltip);
  min-width: 248px; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 6px;
  background: var(--surface-raised); color: var(--text); border: 0; border-radius: 20px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-subtle);
  margin: 0; list-style: none; text-align: left; transform-origin: top left;
  animation: dl-menu-in var(--duration-fast) var(--ease-standard) both;
}
@keyframes dl-menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.dl-action-menu[hidden] { display: none; }
.dl-action-menu--end { left: auto; right: 0; transform-origin: top right; }
.dl-action-menu--up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
.dl-action-menu__item {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 14px; background: transparent; color: var(--text); font-size: 15px; line-height: 20px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-instant) var(--ease-standard);
}
.dl-action-menu__item > .dl-icon { color: var(--text-secondary); }
.dl-action-menu__item:hover, .dl-action-menu__item:focus, .dl-action-menu__item.is-hover { background: var(--surface-hover); }
.dl-action-menu__item:focus-visible, .dl-action-menu__item.is-focus { outline: 2px solid var(--focus-ring); outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--focus-halo); background: var(--surface-hover); }
.dl-action-menu__item[aria-disabled="true"] { color: var(--text-disabled); cursor: not-allowed; }
.dl-action-menu__text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-weight: 600; }
.dl-action-menu__hint { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text-muted); }
.dl-action-menu__item > .dl-action-menu__check, .dl-action-menu__check { margin-left: auto; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--lead); color: var(--on-lead); visibility: hidden; transform: scale(0.4); transition: transform var(--duration-base) var(--ease-standard); }
.dl-action-menu__check svg { stroke-width: 3; }
[aria-checked="true"] > .dl-action-menu__check { visibility: visible; transform: none; }
.dl-action-menu__heading { padding: 10px 12px 6px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-action-menu__sep { height: 0; margin: 6px 8px; border: 0; border-top: 1px solid var(--border-subtle); }
.dl-action-menu__item--danger { color: var(--error-fg); }
.dl-action-menu__item--danger > .dl-icon { color: var(--error-fg); }
[data-density="compact"] .dl-action-menu { border-radius: 16px; padding: 4px; }
[data-density="compact"] .dl-action-menu__item { min-height: 36px; font-size: 14px; line-height: 20px; padding: 6px 10px; gap: var(--space-2); border-radius: 12px; }
[data-density="compact"] .dl-action-menu__hint { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-action-menu__heading { padding: 8px 10px 4px; }

/* ---------------------------------------------------------------- Avatars: people are circles on a tint; firms are soft squares */
.dl-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--tint-4); color: var(--text);
  font-family: var(--font-sans); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase;
}
.dl-avatar--firm { border-radius: 30%; background: var(--tint-2); color: var(--text); font-size: 12px; }
.dl-avatar--guest { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); color: var(--text-secondary); }
.dl-avatar--lead { background: var(--lead); color: var(--on-lead); }
.dl-avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.dl-avatar--lg { width: 44px; height: 44px; font-size: 15px; }

/* ---------------------------------------------------------------- Account switcher */
.dl-account { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.dl-account__trigger {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; min-width: 0;
  padding: 4px 12px 4px 4px; border: 0; border-radius: var(--radius-full, 999px);
  background: transparent; color: var(--text); cursor: pointer; text-align: left;
  transition: background-color var(--duration-instant) var(--ease-standard);
}
.dl-account__trigger:hover, .dl-account__trigger.is-hover, .dl-account__trigger[aria-expanded="true"] { background: var(--surface-hover); }
.dl-account__trigger--outline { background: var(--surface); }
.dl-account__trigger--outline:hover, .dl-account__trigger--outline[aria-expanded="true"] { background: var(--surface-hover); }
.dl-account__trigger:not(:has(.dl-account__inline, .dl-account__who)) { padding: 4px; }
.dl-account__who { display: flex; flex-direction: column; min-width: 0; line-height: 18px; }
.dl-account__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-account__firm { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-account__inline { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dl-account__inline .dl-account__sep { color: var(--text-muted); font-weight: 400; padding: 0 2px; }
.dl-account__inline .dl-account__firmname { font-weight: 400; color: var(--text-secondary); }
.dl-account__trigger > .dl-icon { color: var(--text-muted); }
.dl-account .dl-action-menu { min-width: 300px; }
.dl-account__me { display: flex; align-items: center; gap: var(--space-3); padding: 10px 12px 12px; }
.dl-account__me .dl-account__name { font-family: var(--font-display); font-size: 18px; line-height: 22px; letter-spacing: -0.02em; }
.dl-account__me .dl-account__email { font-size: 13px; line-height: 18px; color: var(--text-muted); }
[data-density="compact"] .dl-account__trigger { min-height: 36px; padding: 2px 10px 2px 2px; gap: 8px; }
[data-density="compact"] .dl-account__trigger .dl-avatar:not(.dl-avatar--lg) { width: 28px; height: 28px; font-size: 11px; }
[data-density="compact"] .dl-account__me { padding: 8px 10px 10px; }

/* ---------------------------------------------------------------- Floating action (mobile only) */
.dl-fab {
  position: fixed; right: var(--space-4); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-sticky);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; min-width: 56px; padding: 0 22px 0 18px;
  border: 0; border-radius: var(--radius-full, 999px);
  background: var(--action-primary); color: var(--on-action-primary); box-shadow: var(--shadow-lg);
  font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-instant) var(--ease-standard), transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base);
  animation: dl-fab-in var(--duration-slow) var(--ease-standard) both;
}
@keyframes dl-fab-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }
.dl-fab .dl-icon { width: 22px; height: 22px; }
.dl-fab__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; background: var(--lead); color: var(--on-lead); flex: none; }
.dl-fab__icon .dl-icon { width: 20px; height: 20px; }
.dl-fab:hover, .dl-fab.is-hover { background: var(--action-primary-hover); transform: translateY(-3px); }
.dl-fab:active, .dl-fab.is-active { background: var(--action-primary-active); transform: scale(0.96); }
.dl-fab--icon { padding: 0; width: 56px; }
.dl-fab--lead { background: var(--lead); color: var(--on-lead); }
.dl-fab--lead:hover, .dl-fab--lead.is-hover, .dl-fab--lead:active, .dl-fab--lead.is-active { background: var(--lead); filter: brightness(1.06); }
.dl-fab--static { position: static; box-shadow: var(--shadow-md); }
.dl-fab--secondary { background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle); }
.dl-fab--secondary:hover { background: var(--surface-raised); }
@media (min-width: 768px) { .dl-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .dl-fab { animation: none; } .dl-fab:hover { transform: none; } }
/* Preview only: the phone frame simulates a mobile viewport. */
.dl-demo__phone .dl-fab, .dl-demo .dl-fab--static { display: inline-flex; }
.dl-phone-screen { position: relative; height: 600px; overflow: hidden; transform: translateZ(0); display: flex; flex-direction: column; background: var(--surface-canvas); }
.dl-phone-screen__body { flex: 1; overflow: hidden; padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; }

/* ---------------------------------------------------------------- Answer buttons: big pills for one-tap check-ins */
.dl-answers { container-type: inline-size; container-name: dl-answers; display: block; max-width: var(--mover-max, 520px); }
.dl-answers--row { max-width: 760px; }
.dl-answers__q { margin: 0 0 var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 34px; letter-spacing: -0.04em; text-wrap: balance; }
.dl-answers__list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@container dl-answers (min-width: 560px) {
  .dl-answers--row .dl-answers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dl-answer {
  position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%;
  min-height: var(--answer-h, 64px); padding: 8px 10px 8px 26px;
  border: 0; border-radius: var(--radius-full, 999px); background: var(--surface); color: var(--text);
  font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; text-align: left; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-fast);
}
.dl-answer:hover, .dl-answer.is-hover { background: var(--surface-hover); transform: scale(1.015); }
.dl-answer:active, .dl-answer.is-active { transform: scale(0.98); background: var(--surface-selected); }
.dl-answer__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-left: -14px; border-radius: 50%; background: var(--surface-canvas); color: var(--text); }
.dl-answer__icon .dl-icon { width: 22px; height: 22px; }
.dl-answer__label { flex: 1; min-width: 0; }
.dl-answer__sub { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
/* The "go" disc on the right: arrow by default, tick once chosen */
.dl-answer__go {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface-canvas); color: var(--text);
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.dl-answer__go > .dl-icon { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-fast); }
.dl-answer__go > .dl-answer__check { opacity: 0; transform: scale(0.3); }
.dl-answer__go > .dl-answer__check svg { stroke-width: 2.75; }
.dl-answer:hover .dl-answer__go > .dl-answer__arrow { transform: translateX(3px); }
.dl-answer__tick { display: none; }
.dl-answer[aria-pressed="true"] { background: var(--action-primary); color: var(--on-action-primary); cursor: default; transform: none; }
.dl-answer[aria-pressed="true"] .dl-answer__sub { color: inherit; opacity: 0.75; }
.dl-answer[aria-pressed="true"] .dl-answer__go { background: var(--lead); color: var(--on-lead); animation: dl-answer-pop var(--duration-slow) var(--ease-standard); }
.dl-answer[aria-pressed="true"] .dl-answer__go > .dl-answer__arrow { opacity: 0; transform: translateX(10px); }
.dl-answer[aria-pressed="true"] .dl-answer__go > .dl-answer__check { opacity: 1; transform: none; }
.dl-answer[aria-pressed="true"] .dl-answer__icon { background: var(--lead); color: var(--on-lead); }
@keyframes dl-answer-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.dl-answer:disabled { cursor: not-allowed; color: var(--text-disabled); background: var(--surface); transform: none; }
.dl-answer:disabled .dl-answer__go, .dl-answer:disabled .dl-answer__icon { color: var(--text-disabled); background: transparent; }
.dl-answer:disabled .dl-answer__sub { color: var(--text-disabled); }
.dl-answer[aria-busy="true"] { cursor: progress; background: var(--surface-hover); box-shadow: inset 0 0 0 2px var(--text); transform: none; }
.dl-answer[aria-busy="true"] .dl-answer__go > .dl-icon, .dl-answer[aria-busy="true"] .dl-answer__icon .dl-icon { opacity: 0; }
.dl-answer[aria-busy="true"] .dl-answer__go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-sunken); border-top-color: var(--lead); animation: dl-spin 0.8s linear infinite; }
.dl-answer[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--text); background: var(--surface-canvas); }
.dl-answer[aria-expanded="true"] .dl-answer__go { background: var(--surface); }
.dl-answer[aria-expanded] .dl-answer__go > .dl-answer__arrow { transform: rotate(90deg); }
.dl-answer[aria-expanded="true"] .dl-answer__go > .dl-answer__arrow { transform: rotate(-90deg); }
.dl-answer[aria-pressed="true"][aria-expanded] .dl-answer__go > .dl-answer__arrow { opacity: 0; }
.dl-answers__reveal { padding: var(--space-5); border-radius: var(--radius-lg, 24px); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-3); animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-answers__reveal[hidden] { display: none; }
.dl-answers__reveal .dl-input { background: var(--surface-canvas); }
.dl-answers__reveal .dl-input[aria-invalid="true"] { background: var(--error-bg); }
.dl-answers__reveal-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.dl-answers__reveal-row .dl-input { max-width: 14ch; flex: none; }
.dl-answers__done {
  display: flex; gap: var(--space-4); align-items: center; margin-top: var(--space-4); padding: var(--space-5);
  border: 0; border-radius: var(--radius-lg, 24px); background: var(--tint-3); color: var(--text);
  animation: dl-rise var(--duration-slow) var(--ease-standard) both;
}
.dl-answers__done[hidden] { display: none; }
.dl-answers__done > .dl-icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--action-primary); color: var(--on-action-primary); }
.dl-answers__done > .dl-picto { flex: none; width: 64px; height: 64px; }
.dl-answers__done-title { margin: 0 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.03em; }
.dl-answers__done-title:focus { outline: none; }
.dl-answers__done p { margin: 0; }
.dl-answers__done .dl-btn--link { margin-top: var(--space-2); --btn-fg: var(--text); }
.dl-answers__note { display: flex; gap: 8px; margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.dl-answers__note .dl-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ---------------------------------------------------------------- Logo lockup (node mark + outlined wordmark) */
.dl-appbar__brand { display: inline-flex; align-items: center; gap: 6px; flex: none; color: inherit; text-decoration: none; border-radius: 10px; padding: 4px; margin-left: -4px; }
.dl-appbar__mark { width: 28px; height: 28px; flex: none; display: block; }
.dl-appbar__word { height: 20px; width: auto; display: block; flex: none; }
.dl-appbar__brand--sm .dl-appbar__mark { width: 24px; height: 24px; }
.dl-appbar__brand--sm .dl-appbar__word { height: 17px; }
.dl-appbar__node { fill: var(--lead); }

/* ---------------------------------------------------------------- App bar */
.dl-appbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky);
  container-type: inline-size; container-name: dl-appbar;
  background: color-mix(in oklab, var(--surface-canvas) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text); box-shadow: inset 0 -1px 0 var(--border-subtle);
}
.dl-appbar__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; padding: 10px var(--space-4) 10px var(--space-6); }
.dl-appbar__ws { font-size: 13px; line-height: 18px; color: var(--text-muted); padding: 4px 12px; margin-left: 4px; border-radius: var(--radius-full, 999px); background: var(--surface); white-space: nowrap; font-weight: 600; }
.dl-appbar__search { flex: 1 1 360px; max-width: 520px; margin: 0 auto 0 var(--space-6); min-width: 200px; }
.dl-appbar__search .dl-input-group { min-height: 44px; border-radius: var(--radius-full, 999px); background: var(--surface); }
.dl-appbar__search .dl-input-group:focus-within { background: var(--surface-canvas); }
.dl-appbar__search .dl-input-group > .dl-input { min-height: 41px; font-size: 15px; border-radius: var(--radius-full, 999px); }
.dl-appbar__search .dl-affix { padding: 0 2px 0 16px; color: var(--text-muted); }
.dl-appbar__search .dl-kbd { margin-right: 12px; align-self: center; background: var(--surface-canvas); }
.dl-appbar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; flex: none; }
.dl-appbar__icon-btn.dl-btn { position: relative; --btn-fg: var(--text-secondary); --btn-bg-hover: var(--surface-hover); min-height: 44px; min-width: 44px; width: 44px; }
.dl-appbar__icon-btn.dl-btn:hover { --btn-fg: var(--text); transform: none; }
.dl-appbar__search-btn.dl-btn { display: none; }
.dl-appbar__badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full, 999px);
  background: var(--lead); color: var(--on-lead); box-shadow: 0 0 0 2px var(--surface-canvas);
  font-size: 11px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center;
  animation: dl-pop var(--duration-slow) var(--ease-standard) both;
}
.dl-appbar__divider { width: 1px; height: 24px; background: var(--border-subtle); margin: 0 var(--space-2); flex: none; }
.dl-appbar .dl-account { max-width: 380px; flex: none; }
.dl-appbar__links { display: flex; gap: 2px; align-items: center; margin: 0 auto 0 var(--space-6); flex-wrap: wrap; }
.dl-appbar__links a { padding: 8px 14px; border-radius: var(--radius-full, 999px); color: inherit; opacity: 0.8; text-decoration: none; font-size: 15px; font-weight: 500; }
.dl-appbar__links a:hover, .dl-appbar__links a[aria-current="page"] { opacity: 1; background: color-mix(in oklab, currentColor 10%, transparent); }
@container dl-appbar (max-width: 860px) {
  .dl-appbar__ws { display: none; }
  .dl-appbar .dl-account__inline { display: none; }
  .dl-appbar .dl-account__trigger > .dl-icon { display: none; }
  .dl-appbar .dl-account__trigger { padding: 4px; }
  .dl-appbar__links { display: none; }
}
@container dl-appbar (max-width: 640px) {
  .dl-appbar__search { display: none; }
  .dl-appbar__search-btn.dl-btn { display: inline-flex; }
  .dl-appbar__inner { padding-left: var(--space-4); gap: var(--space-2); min-height: 64px; }
  .dl-appbar__divider { display: none; }
}
@container dl-appbar (max-width: 280px) {
  .dl-appbar__brand:has(.dl-appbar__mark) .dl-appbar__word { display: none; }
}
/* Ink bar: website and marketing (brand lead) */
.dl-appbar--ink { background: var(--surface-inverse); color: var(--text-inverse); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dl-appbar--ink :focus-visible { outline-color: var(--text-inverse); }
/* Home mover header: canvas, no rule, roomy round buttons */
.dl-appbar--mover { box-shadow: none; }
.dl-appbar--mover .dl-appbar__inner { min-height: 64px; padding: 8px 12px 8px 18px; }
.dl-appbar--mover .dl-appbar__title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 20px; }
.dl-appbar__title-main { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; }
.dl-appbar__title-sub { font-size: 13px; line-height: 18px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-appbar--mover .dl-btn--icon { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bg-hover: var(--surface-hover); min-height: 44px; min-width: 44px; width: 44px; flex: none; }
.dl-appbar--mover .dl-btn--icon:hover { transform: none; }
.dl-appbar--mover .dl-appbar__spacer { flex: 1; }

/* ---------------------------------------------------------------- Side nav */
.dl-sidenav {
  --sidenav-w: 256px; --sidenav-rail: 76px;
  display: flex; flex-direction: column; width: var(--sidenav-w); flex: none; height: 100%; min-height: 0;
  background: var(--surface-canvas); box-shadow: inset -1px 0 0 var(--border-subtle); color: var(--text);
  transition: width var(--duration-base) var(--ease-standard);
}
.dl-sidenav__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 14px 12px 10px 18px; min-height: 64px; }
.dl-sidenav__head .dl-appbar__brand { min-width: 0; overflow: hidden; }
.dl-sidenav__title { font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.dl-sidenav__toggle.dl-btn { --btn-fg: var(--text-muted); --btn-bg-hover: var(--surface-hover); min-height: 36px; min-width: 36px; width: 36px; flex: none; }
.dl-sidenav__toggle.dl-btn:hover { --btn-fg: var(--text); transform: none; }
.dl-sidenav__toggle .dl-icon { transition: transform var(--duration-base) var(--ease-standard); }
.dl-sidenav__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; }
.dl-sidenav__section { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dl-sidenav__section + .dl-sidenav__heading { margin-top: var(--space-4); }
.dl-sidenav__heading { padding: 8px 14px 6px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.dl-sidenav__link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 14px;
  border-radius: var(--radius-full, 999px); color: var(--text-secondary); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.dl-sidenav__link > .dl-icon { flex: none; width: 22px; height: 22px; }
.dl-sidenav__link:hover, .dl-sidenav__link.is-hover { background: var(--surface-hover); color: var(--text); }
.dl-sidenav__link[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; }
.dl-sidenav__link[aria-current="page"] > .dl-icon { color: var(--text); }
.dl-sidenav__link[aria-current="page"]::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--lead); animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-sidenav__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sidenav__badge {
  flex: none; min-width: 24px; padding: 0 6px; border-radius: var(--radius-full, 999px); text-align: center;
  background: transparent; color: var(--text-muted); border: 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.dl-sidenav__link[aria-current="page"] .dl-sidenav__badge { color: var(--text); }
.dl-sidenav__badge--lead, .dl-sidenav__link[aria-current="page"] .dl-sidenav__badge--lead { background: var(--lead); color: var(--on-lead); font-family: var(--font-sans); font-weight: 700; }
.dl-sidenav__foot { padding: 10px 12px 12px; box-shadow: inset 0 1px 0 var(--border-subtle); }
[data-density="compact"] .dl-sidenav { --sidenav-w: 232px; --sidenav-rail: 64px; }
[data-density="compact"] .dl-sidenav__link { min-height: 36px; font-size: 14px; gap: 10px; }
[data-density="compact"] .dl-sidenav__link > .dl-icon { width: 20px; height: 20px; }
/* Collapsed rail */
.dl-sidenav[data-collapsed] { width: var(--sidenav-rail); }
.dl-sidenav[data-collapsed] .dl-sidenav__head { flex-direction: column; justify-content: center; padding: 14px 0 8px; gap: 8px; }
.dl-sidenav[data-collapsed] .dl-sidenav__head .dl-appbar__brand { margin: 0; }
.dl-sidenav[data-collapsed] .dl-appbar__word, .dl-sidenav[data-collapsed] .dl-sidenav__title { display: none; }
.dl-sidenav[data-collapsed] .dl-sidenav__toggle .dl-icon { transform: scaleX(-1); }
.dl-sidenav[data-collapsed] .dl-sidenav__scroll { padding: 4px 10px 12px; overflow: visible; }
.dl-sidenav[data-collapsed] .dl-sidenav__heading { height: 1px; padding: 0; margin: var(--space-3) 8px; background: var(--border-subtle); color: transparent; overflow: hidden; }
.dl-sidenav[data-collapsed] .dl-sidenav__link { justify-content: center; padding: 0; min-height: 44px; }
.dl-sidenav[data-collapsed] .dl-sidenav__link[aria-current="page"]::before { left: 2px; }
.dl-sidenav[data-collapsed] .dl-sidenav__badge { position: absolute; top: 0; right: 0; min-width: 18px; padding: 0 4px; font-size: 10px; line-height: 16px; background: var(--surface-sunken); color: var(--text); box-shadow: 0 0 0 2px var(--surface-canvas); }
.dl-sidenav[data-collapsed] .dl-sidenav__badge--lead { background: var(--lead); color: var(--on-lead); }
/* Label becomes the tooltip: still in the accessibility tree, shown on hover and keyboard focus */
.dl-sidenav[data-collapsed] .dl-sidenav__label {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); z-index: var(--z-tooltip);
  padding: 6px 12px; border-radius: var(--radius-full, 999px); background: var(--surface-inverse); color: var(--text-inverse);
  font-size: 13px; line-height: 18px; font-weight: 600; overflow: visible; pointer-events: none;
  clip-path: inset(50%); opacity: 0; transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.dl-sidenav[data-collapsed] .dl-sidenav__link:hover .dl-sidenav__label,
.dl-sidenav[data-collapsed] .dl-sidenav__link:focus-visible .dl-sidenav__label,
.dl-sidenav[data-collapsed] .dl-sidenav__link.is-hover .dl-sidenav__label { clip-path: none; opacity: 1; transform: translate(0, -50%); }
.dl-sidenav[data-collapsed] .dl-sidenav__foot { padding: 10px; }
.dl-sidenav[data-collapsed] .dl-sidenav__foot .dl-account__who,
.dl-sidenav[data-collapsed] .dl-sidenav__foot .dl-account__trigger > .dl-icon { display: none; }
.dl-sidenav__foot .dl-account { width: 100%; }
.dl-sidenav__foot .dl-account__trigger { width: 100%; }
.dl-sidenav__foot .dl-account__who { flex: 1; }
.dl-sidenav[data-collapsed] .dl-sidenav__foot .dl-account__trigger { justify-content: center; padding: 4px; }

/* Preview layout shell for side nav and app bar (a desktop window) */
.dl-shell { container-type: inline-size; display: flex; height: 560px; border-radius: 20px; overflow: hidden; background: var(--surface-canvas); box-shadow: 0 0 0 1px var(--border-subtle); min-width: 0; }
.dl-shell__main { flex: 1; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: var(--space-4); overflow: hidden; }
.dl-shell__ghost { height: 12px; border-radius: var(--radius-full, 999px); background: var(--surface); }
.dl-shell__kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.dl-shell__kpi { border-radius: 18px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-shell__kpi small { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dl-shell__kpi b { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dl-shell__kpi--lead { background: var(--lead); color: var(--on-lead); }
.dl-shell__kpi--lead small { color: inherit; opacity: 0.85; }
.dl-shell__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; box-shadow: inset 0 -1px 0 var(--border-subtle); font-size: 14px; min-width: 0; }
.dl-shell__row b { font-weight: 600; display: block; }
.dl-shell__row small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

/* ---------------------------------------------------------------- Bottom nav: labels always on; current item = ink label + lead dot */
.dl-bottomnav {
  background: color-mix(in oklab, var(--surface-canvas) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--border-subtle); color: var(--text-muted);
  padding-bottom: env(safe-area-inset-bottom, 0px); z-index: var(--z-sticky);
}
.dl-bottomnav--fixed { position: fixed; left: 0; right: 0; bottom: 0; }
.dl-phone-screen .dl-bottomnav--fixed { position: absolute; }
.dl-bottomnav__list { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin: 0; padding: 0 var(--space-1); list-style: none; }
.dl-bottomnav__link {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 68px; padding: 8px 2px 14px; color: var(--text-muted); text-decoration: none; border-radius: 18px;
  font-size: 11.5px; line-height: 14px; font-weight: 500; text-align: center;
  transition: color var(--duration-fast) var(--ease-standard);
}
.dl-bottomnav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--lead); transform: scale(0); transition: transform var(--duration-base) var(--ease-standard);
}
.dl-bottomnav__pill { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: var(--radius-full, 999px); transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.dl-bottomnav__pill .dl-icon { width: 24px; height: 24px; }
.dl-bottomnav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-bottomnav__link:hover .dl-bottomnav__pill, .dl-bottomnav__link.is-hover .dl-bottomnav__pill { background: var(--surface-hover); }
.dl-bottomnav__link:hover, .dl-bottomnav__link.is-hover { color: var(--text); }
.dl-bottomnav__link:active .dl-bottomnav__pill { transform: scale(0.9); }
.dl-bottomnav__link:focus-visible { outline-offset: -2px; }
.dl-bottomnav__link[aria-current="page"] { color: var(--text); font-weight: 700; }
.dl-bottomnav__link[aria-current="page"]::after { transform: scale(1); }
.dl-bottomnav__link[aria-current="page"] .dl-bottomnav__pill .dl-icon svg { stroke-width: 2.25; }
.dl-bottomnav__dot { position: absolute; top: 1px; right: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2.5px var(--surface-canvas); }

/* ---------------------------------------------------------------- Tabs: underline (default) or pill; the marker slides */
.dl-tabs { min-width: 0; }
.dl-tabs__list {
  position: relative; display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 0 0 8px; box-shadow: inset 0 -1px 0 var(--border-subtle); -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--space-6);
}
.dl-tabs__list::-webkit-scrollbar { display: none; }
.dl-tabs__tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--space-2); flex: none;
  min-height: 44px; padding: 0 16px; margin: 0; border: 0; border-radius: var(--radius-full, 999px); background: transparent; color: var(--text-muted);
  font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.dl-tabs__tab:hover, .dl-tabs__tab.is-hover { color: var(--text); background: var(--surface-hover); }
.dl-tabs__tab[aria-selected="true"] { color: var(--text); }
.dl-tabs__list:not([data-ink]) .dl-tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -8px; height: 3px; border-radius: 3px; background: var(--text); }
.dl-tabs__ink { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px; background: var(--text); pointer-events: none; z-index: 2; transition: transform var(--duration-base) var(--ease-standard), width var(--duration-base) var(--ease-standard); }
.dl-tabs__tab:focus-visible, .dl-tabs__tab.is-focus { outline: 2px solid var(--focus-ring); outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--focus-halo) !important; }
.dl-tabs__tab:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }
.dl-tabs__tab .dl-icon { color: inherit; }
.dl-tabs__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-full, 999px);
  background: var(--surface); color: var(--text-secondary);
  font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.dl-tabs__tab[aria-selected="true"] .dl-tabs__count { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-tabs__tab:disabled .dl-tabs__count { color: var(--text-disabled); }
.dl-tabs__panel { padding: var(--space-5) 0 0; }
.dl-tabs__panel:not([hidden]) { animation: dl-tabs-in var(--duration-base) var(--ease-standard) both; }
@keyframes dl-tabs-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dl-tabs__panel:focus-visible { outline-offset: 4px; border-radius: 8px; }
.dl-tabs__panel[hidden] { display: none; }
/* Pill tabs: a soft track with a raised thumb that slides */
.dl-tabs--pill .dl-tabs__list { display: inline-flex; max-width: 100%; padding: 4px; gap: 2px; border-radius: var(--radius-full, 999px); background: var(--surface); box-shadow: none; isolation: isolate; vertical-align: top; }
.dl-tabs--pill .dl-tabs__tab { min-height: 40px; padding: 0 16px; }
.dl-tabs--pill .dl-tabs__tab:hover, .dl-tabs--pill .dl-tabs__tab.is-hover { background: transparent; }
.dl-tabs--pill .dl-tabs__list:not([data-ink]) .dl-tabs__tab[aria-selected="true"] { background: var(--surface-raised); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle); }
.dl-tabs--pill .dl-tabs__list:not([data-ink]) .dl-tabs__tab[aria-selected="true"]::after { display: none; }
.dl-tabs--pill .dl-tabs__ink { top: 4px; bottom: 4px; height: auto; z-index: 0; border-radius: var(--radius-full, 999px); background: var(--surface-raised); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle); }
.dl-tabs--pill .dl-tabs__count { background: var(--surface-sunken); }
.dl-tabs--pill .dl-tabs__tab[aria-selected="true"] .dl-tabs__count { background: var(--lead); color: var(--on-lead); }
[data-density="compact"] .dl-tabs__list { padding-bottom: 6px; }
[data-density="compact"] .dl-tabs__tab { min-height: 34px; padding: 0 12px; font-size: 14px; line-height: 18px; gap: 6px; }
[data-density="compact"] .dl-tabs__list:not([data-ink]) .dl-tabs__tab[aria-selected="true"]::after { left: 12px; right: 12px; bottom: -6px; height: 2px; }
[data-density="compact"] .dl-tabs__ink { height: 2px; }
[data-density="compact"] .dl-tabs--pill .dl-tabs__list { padding: 3px; }
[data-density="compact"] .dl-tabs--pill .dl-tabs__ink { top: 3px; bottom: 3px; height: auto; }
[data-density="compact"] .dl-tabs__count { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
[data-density="compact"] .dl-tabs__panel { padding-top: var(--space-3); }

/* ---------------------------------------------------------------- Breadcrumbs */
.dl-breadcrumbs { container-type: inline-size; container-name: dl-crumbs; min-width: 0; }
.dl-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 22px; }
.dl-breadcrumbs__item { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.dl-breadcrumbs__sep { color: var(--text-muted); width: 16px; height: 16px; margin: 0 4px; flex: none; opacity: 0.8; }
.dl-breadcrumbs__link {
  color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  border-radius: var(--radius-full, 999px); padding: 4px 8px; margin: 0 -4px; min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;
  transition: background-color var(--duration-instant), color var(--duration-instant);
}
.dl-breadcrumbs__link:hover, .dl-breadcrumbs__link.is-hover { color: var(--text); background: var(--surface-hover); text-decoration-color: currentColor; }
.dl-breadcrumbs__current { color: var(--text); font-weight: 600; text-decoration: none; padding: 4px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-breadcrumbs__more { display: none; align-items: center; }
.dl-breadcrumbs__more-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 28px; padding: 0 8px;
  border: 0; border-radius: var(--radius-full, 999px); background: var(--surface); color: var(--text-secondary); cursor: pointer;
}
.dl-breadcrumbs__more-btn:hover { background: var(--surface-hover); color: var(--text); }
.dl-breadcrumbs--back .dl-breadcrumbs__link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--surface); padding: 6px 14px 6px 10px; margin: 0; color: var(--text); font-weight: 600; }
[data-density="compact"] .dl-breadcrumbs__list { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-breadcrumbs__sep { width: 14px; height: 14px; margin: 0 2px; }
[data-density="compact"] .dl-breadcrumbs__link { padding: 3px 6px; }
@container dl-crumbs (max-width: 360px) {
  .dl-breadcrumbs:not([data-expanded]) .dl-breadcrumbs__item--mid { display: none; }
  .dl-breadcrumbs:not([data-expanded]) .dl-breadcrumbs__more { display: inline-flex; }
  .dl-breadcrumbs__list { flex-wrap: nowrap; }
  .dl-breadcrumbs[data-expanded] .dl-breadcrumbs__list { flex-wrap: wrap; }
  .dl-breadcrumbs__item:last-child { flex: 1 1 auto; min-width: 0; }
}

/* ---------------------------------------------------------------- Pagination: round page numbers, ink for current */
.dl-pagination { container-type: inline-size; container-name: dl-pagination; min-width: 0; }
.dl-pagination__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); }
.dl-pagination__summary { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-pagination__summary strong { color: var(--text); font-weight: 600; }
.dl-pagination__nav { display: flex; align-items: center; gap: var(--space-2); }
.dl-pagination__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dl-pagination__page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--radius-full, 999px); background: transparent; color: var(--text-secondary);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast), transform var(--duration-fast) var(--ease-standard);
}
.dl-pagination__page:hover, .dl-pagination__page.is-hover { background: var(--surface-hover); color: var(--text); }
.dl-pagination__page:active { transform: scale(0.92); }
.dl-pagination__page[aria-current="page"] { background: var(--action-primary); color: var(--on-action-primary); cursor: default; animation: dl-pop var(--duration-base) var(--ease-standard); }
.dl-pagination__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; color: var(--text-muted); }
.dl-pagination__step.dl-btn { min-height: 40px; padding: 0 16px 0 12px; }
.dl-pagination__step.dl-btn[data-page-step="1"] { padding: 0 12px 0 16px; }
.dl-pagination__pageof { display: none; font-size: 15px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 var(--space-2); }
.dl-pagination__size { display: flex; align-items: center; gap: var(--space-2); font-size: 15px; color: var(--text-muted); }
.dl-pagination__size .dl-label { font-size: inherit; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.dl-pagination__size .dl-select { min-height: 40px; width: auto; padding-right: 38px; border-radius: var(--radius-full, 999px); font-weight: 600; }
[data-density="compact"] .dl-pagination__summary, [data-density="compact"] .dl-pagination__size, [data-density="compact"] .dl-pagination__pageof { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-pagination__page { min-width: 30px; height: 30px; font-size: 13px; padding: 0 6px; }
[data-density="compact"] .dl-pagination__step.dl-btn { min-height: 30px; padding: 0 10px; }
[data-density="compact"] .dl-pagination__size .dl-select { min-height: 30px; padding-left: 12px; }
[data-density="compact"] .dl-pagination__bar { gap: var(--space-2) var(--space-4); }
@container dl-pagination (max-width: 560px) {
  .dl-pagination__list { display: none; }
  .dl-pagination__pageof { display: inline; }
  .dl-pagination__size { display: none; }
  .dl-pagination__bar { flex-direction: column; align-items: stretch; }
  .dl-pagination__nav { justify-content: space-between; }
  .dl-pagination__summary { text-align: center; }
  .dl-pagination__step.dl-btn { min-height: 48px; min-width: 48px; }
}
@container dl-pagination (max-width: 300px) {
  .dl-pagination__steptext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- Skip link (preview frame; the link itself is base .dl-skip-link) */
.dl-skipdemo { position: relative; overflow: hidden; border-radius: 20px; background: var(--surface-canvas); box-shadow: 0 0 0 1px var(--border-subtle); min-height: 200px; }
.dl-skipdemo .dl-skip-link { box-shadow: var(--shadow-md); }
.dl-skipdemo .dl-skip-link.is-focus { top: 16px; }
.dl-skipdemo__bar { display: flex; align-items: center; gap: var(--space-2); min-height: 64px; padding: 0 var(--space-5); box-shadow: inset 0 -1px 0 var(--border-subtle); color: var(--text-secondary); font-size: 14px; flex-wrap: wrap; }
.dl-skipdemo__bar .dl-appbar__brand { margin-right: auto; color: var(--text); }
.dl-skipdemo__bar a:not(.dl-appbar__brand) { padding: 6px 12px; border-radius: var(--radius-full, 999px); color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.dl-skipdemo__bar a:not(.dl-appbar__brand):hover { background: var(--surface-hover); color: var(--text); }
.dl-skipdemo__main { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }

/* Logo dot on lead bands takes the band's text colour (white on Ultramarine/Raspberry, ink on Tangerine) */
.dl-card--lead, .dl-appbar--lead { --dl-mark-dot: var(--on-lead); }
.dl-appbar--lead { background: var(--lead); color: var(--on-lead); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@container dl-appbar (max-width: 480px) { .dl-appbar__wide-only { display: none !important; } }
@container (max-width: 520px) { .dl-shell:has(> .dl-sidenav:not([data-collapsed])) > .dl-shell__main { display: none; } .dl-shell > .dl-sidenav:not([data-collapsed]) { width: 100%; } }

/* ---- 40-data.css ---- */
/* =====================================================================
   Deedline v2 — Data display: cards and tiles (sale, chain, task, document,
   stat), table, lists, description list, confidence, badges/tags/chips,
   avatars, tooltip/popover/glossary, accordion, divider extras, progress
   (the lead line), skeleton shimmer, empty state with pictogram.
   Soft grey tiles, 24px corners, no borders; one lead colour per surface.
   Tokens only. Base .dl-card / .dl-status live in 00-base.css.
   ===================================================================== */

/* Tiles that sit inside a grey demo pane or another tile lift to raised */
.dl-demo__pane :is(.dl-chain-card, .dl-task, .dl-doc, .dl-list, .dl-accordion__item, .dl-table-wrap, .dl-empty--boxed),
.dl-demo__pane .dl-stat:has(> .dl-stat__label),
.dl-card :is(.dl-list:not(.dl-list--plain), .dl-chain-card) { background: var(--surface-raised); }

/* Variants keep their fill inside panes (base lifts every pane card to raised) */
.dl-demo__pane .dl-card--sunken { background: var(--border-subtle); }
.dl-demo__pane .dl-card--outline { background: var(--surface-canvas); }
.dl-demo__pane .dl-card--soft { background: var(--lead-soft); }
.dl-demo__pane .dl-card--lead { background: var(--lead); }
.dl-demo__pane .dl-card--ink { background: var(--surface-inverse); }
.dl-card--lead, .dl-card--ink, .dl-card--soft { display: flex; flex-direction: column; }
:is(.dl-card--lead, .dl-card--ink, .dl-card--soft) > .dl-card__foot { margin-top: auto; padding-top: var(--space-5); }

/* ---------- Card anatomy ---------- */
.dl-card__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; color: inherit; text-wrap: balance; }
[data-density="compact"] .dl-card__title { font-size: 18px; line-height: 22px; letter-spacing: -0.02em; }
.dl-card__sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-card--lead .dl-card__sub, .dl-card--ink .dl-card__sub, .dl-card--lead .dl-card__foot, .dl-card--ink .dl-card__foot { color: inherit; opacity: 0.78; }
.dl-card__eyebrow { display: block; margin: 0 0 var(--space-2); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-card--lead .dl-card__eyebrow, .dl-card--ink .dl-card__eyebrow { color: inherit; opacity: 0.72; }
.dl-card__actions { display: flex; gap: var(--space-1); flex: none; align-items: center; }
.dl-card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.dl-card__body > p { margin: 0; }
.dl-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); font-size: 14px; line-height: 20px; color: var(--text-muted); }
[data-density="compact"] .dl-card__foot { margin-top: var(--space-3); font-size: 12px; line-height: 16px; }
.dl-card__meta { display: inline-flex; align-items: center; gap: 6px; }
.dl-card__big { display: block; font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.dl-card__picto { margin-bottom: var(--space-3); }
.dl-card .dl-link { color: inherit; }
.dl-card:not(.dl-card--lead):not(.dl-card--ink) .dl-link { color: var(--link); }

/* whole-card link: stretched title link, lifts on hover */
.dl-card--link { position: relative; transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.dl-card--link:hover, .dl-card--link.is-hover, .dl-card--interactive.is-hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dl-card__link { color: inherit; text-decoration: none; border-radius: 4px; }
.dl-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.dl-card--link { border-radius: var(--radius-lg, 24px); }
[data-density="compact"] .dl-card--link { border-radius: 18px; }
.dl-card__link:focus-visible { outline: none; box-shadow: none; }
.dl-card__link:focus-visible::after, .dl-card--link.is-focus::after, .dl-card--interactive.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-card--link.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-card--link .dl-card__raise { position: relative; z-index: 2; }
.dl-card__go { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--surface-canvas); color: var(--text); flex: none; transition: transform var(--duration-slow) var(--ease-standard), background-color var(--duration-fast); }
.dl-card--link:hover .dl-card__go, .dl-card--link.is-hover .dl-card__go { transform: translateX(3px); background: var(--action-primary); color: var(--on-action-primary); }
.dl-card--lead .dl-card__go { background: var(--on-lead); color: var(--lead); }
.dl-card--ink .dl-card__go { background: var(--lead); color: var(--on-lead); }
@media (prefers-reduced-motion: reduce) { .dl-card--link:hover, .dl-card--link.is-hover { transform: none; } }

/* selectable (checkbox-backed) */
.dl-card--selectable { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; cursor: pointer; transition: box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast); }
.dl-card--selectable:hover { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dl-card--selectable .dl-check__input { inset: auto; }
.dl-card--selectable.is-selected, .dl-card--selectable:has(.dl-card__check:checked) { box-shadow: inset 0 0 0 2px var(--border-selected); background: var(--surface-selected); }
.dl-card--selectable:has(.dl-card__check:focus-visible), .dl-card--selectable.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-card--selectable:has(.dl-card__check:focus-visible) .dl-check__box { outline: none; box-shadow: none; }
.dl-card--selectable:has(.dl-card__check:disabled) { cursor: not-allowed; background: var(--border-subtle); box-shadow: none; }
.dl-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--gap); }

/* ---------- The mini line: stage n of 7 as a thick ink line with milestone nodes ----------
   <div class="dl-sale-line" style="--at:3;--n:7" role="img" aria-label="Stage 3 of 7"><span class="dl-sale-line__fill"></span><i class="is-done"></i>…<i class="is-current"></i><i></i>…</div> */
.dl-sale-line { --at: 1; --n: 7; --node: 12px; --cur: 22px; --track: 6px; position: relative; display: flex; justify-content: space-between; align-items: center; height: var(--cur); }
.dl-sale-line::before { content: ""; position: absolute; left: calc(var(--node) / 2); right: calc(var(--node) / 2); top: 50%; height: var(--track); margin-top: calc(var(--track) / -2); border-radius: var(--radius-full); background: var(--border-subtle); }
.dl-card .dl-sale-line::before, .dl-sale-card .dl-sale-line::before { background: var(--surface-canvas); }
.dl-sale-line__fill { position: absolute; left: calc(var(--node) / 2); top: 50%; height: var(--track); margin-top: calc(var(--track) / -2); width: calc((100% - var(--node)) * (var(--at) - 1) / (var(--n) - 1)); border-radius: var(--radius-full); background: var(--text); transform-origin: left center; animation: dl-line-grow var(--duration-base) var(--ease-standard) both; }
.dl-sale-line > i { position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: var(--radius-full); background: var(--surface-canvas); box-shadow: inset 0 0 0 2px var(--border-subtle); flex: none; }
.dl-card .dl-sale-line > i, .dl-sale-card .dl-sale-line > i { box-shadow: inset 0 0 0 2px var(--border); }
.dl-sale-line > i.is-done { background: var(--text); box-shadow: none; }
.dl-sale-line > i.is-current { width: var(--cur); height: var(--cur); margin: 0 calc((var(--node) - var(--cur)) / 2); background: var(--lead); box-shadow: inset 0 0 0 4px var(--text); animation: dl-pop var(--duration-base) var(--ease-standard) 80ms both; }
.dl-sale-line > i.is-current:first-of-type { margin-left: 0; }
.dl-sale-line > i.is-current:last-of-type { margin-right: 0; }
.dl-sale-line--done > i.is-current { background: var(--status-done-fg); }
.dl-sale-line--risk > i.is-current { background: var(--status-at-risk-fg); }
.dl-sale-line--blocked .dl-sale-line__fill { background: var(--text-muted); }
.dl-sale-line--blocked > i.is-current { background: var(--surface-canvas); box-shadow: inset 0 0 0 4px var(--status-blocked-fg); }
[data-density="compact"] .dl-sale-line { --node: 10px; --cur: 18px; --track: 5px; }
.dl-card--lead .dl-sale-line { --text: var(--on-lead); }
@keyframes dl-line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .dl-sale-line__fill, .dl-sale-line > i.is-current { animation: none; } }

/* ---------- Sale card ---------- */
.dl-sale-card { display: flex; flex-direction: column; gap: var(--space-5); }
[data-density="compact"] .dl-sale-card { gap: var(--space-3); }
.dl-sale-card__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.dl-sale-card__head > div { min-width: 0; }
.dl-sale-card__addr { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 32px; letter-spacing: -0.04em; color: var(--text); text-wrap: balance; }
.dl-sale-card__addr small { display: block; font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); margin-top: 6px; }
[data-density="compact"] .dl-sale-card__addr { font-size: 21px; line-height: 24px; letter-spacing: -0.03em; }
[data-density="compact"] .dl-sale-card__addr small { font-size: 13px; line-height: 18px; margin-top: 2px; }
.dl-sale-card__id { display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-muted); letter-spacing: 0.02em; }
.dl-sale-card__head .dl-sale-card__id { margin-bottom: 8px; }
.dl-sale-card__progress { display: flex; flex-direction: column; gap: 10px; }
.dl-sale-card__stage { display: flex; gap: var(--space-2); align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.dl-sale-card__stage-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dl-sale-card__k { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-sale-card__v { font-weight: 600; color: var(--text); }
[data-density="compact"] .dl-sale-card__k { font-size: 12px; line-height: 16px; }
.dl-sale-card__ms { display: none; }
.dl-sale-card__rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--space-2); margin: 0; }
.dl-sale-card__row { padding: 12px 14px; border-radius: 16px; background: var(--surface-canvas); min-width: 0; }
.dl-sale-card__row--wide { grid-column: 1 / -1; }
[data-density="compact"] .dl-sale-card__rows { grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr)); }
[data-density="compact"] .dl-sale-card__row { padding: 8px 10px; border-radius: 12px; }
.dl-sale-card__row dt { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.dl-sale-card__row dt .dl-icon { width: 14px; height: 14px; }
.dl-sale-card__row dd { margin: 0; color: var(--text); font-weight: 600; }
[data-density="compact"] .dl-sale-card__row dd { font-size: 13px; line-height: 18px; }
.dl-sale-card__row dd .dl-secondary { font-weight: 400; font-size: 14px; }
.dl-sale-card__est { font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-density="compact"] .dl-sale-card__est { font-size: 15px; line-height: 20px; letter-spacing: -0.01em; }
.dl-sale-card__who { font-weight: 600; }
.dl-sale-card__reason { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--status-blocked-bg); color: var(--text); font-size: 14px; line-height: 20px; display: flex; gap: 10px; align-items: flex-start; }
.dl-sale-card__reason > .dl-icon { color: var(--status-blocked-fg); margin-top: 0; }
.dl-sale-card__reason strong { color: var(--status-blocked-fg); }
.dl-sale-card__disclaimer { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-muted); }
.dl-sale-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-3); align-items: center; font-size: 13px; line-height: 18px; color: var(--text-muted); }
[data-density="compact"] .dl-sale-card__foot { font-size: 12px; line-height: 16px; }
.dl-sale-card__stale { display: inline-flex; align-items: center; gap: 4px; color: var(--warning-fg); font-weight: 600; }
.dl-sale-card .dl-card__link::after { z-index: 1; }
.dl-sale-card .dl-link, .dl-sale-card .dl-card__raise { position: relative; z-index: 2; }

/* ---------- Chain link card ---------- */
.dl-chainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-chainlist__item { position: relative; padding-left: 36px; padding-bottom: var(--space-3); }
.dl-chainlist__item:last-child { padding-bottom: 0; }
.dl-chainlist__item::before { content: ""; position: absolute; left: 9px; top: 30px; bottom: -22px; width: 6px; border-radius: var(--radius-full); background: var(--text); }
.dl-chainlist__item:last-child::before { display: none; }
.dl-chainlist__item::after { content: ""; position: absolute; left: 4px; top: 20px; width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--text); }
.dl-chainlist__item--you::after { left: 0; top: 16px; width: 24px; height: 24px; background: var(--lead); box-shadow: inset 0 0 0 5px var(--text); }
.dl-chainlist__item--muted::after { background: var(--surface-canvas); box-shadow: inset 0 0 0 3px var(--border-strong); }
.dl-chainlist__item:has(+ .dl-chainlist__item--muted)::before { background: linear-gradient(var(--text), var(--border-strong)); }
.dl-chain-card { background: var(--surface); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.dl-chain-card--you { background: var(--lead-soft); }
.dl-chain-card--not-shared, .dl-demo__pane .dl-chain-card--not-shared { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--text-secondary); }
.dl-chain-card__label { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-chain-card__you { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: var(--radius-full); background: var(--text); color: var(--surface-canvas); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; }
.dl-chain-card__stage { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--text); }
.dl-chain-card__stage .dl-icon { color: var(--text); }
.dl-chain-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.dl-chain-card__meta { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-chain-card--not-shared p { margin: 0; font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-chain-card { padding: 12px 14px; gap: 6px; border-radius: 18px; }
[data-density="compact"] .dl-chain-card__label { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); }
[data-density="compact"] .dl-chain-card--you .dl-chain-card__label { color: var(--lead-text); }
[data-density="compact"] .dl-chain-card__meta, [data-density="compact"] .dl-chain-card--not-shared p { font-size: 12px; line-height: 16px; }
/* horizontal (dashboard): tiles joined by the line */
.dl-chainlist--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr)); gap: var(--space-3); position: relative; }
.dl-chainlist--row .dl-chainlist__item { padding: 0; display: flex; }
.dl-chainlist--row .dl-chainlist__item::after { display: none; }
.dl-chainlist--row .dl-chainlist__item::before { display: block; left: auto; right: calc(var(--space-3) * -1 - 2px); top: 50%; bottom: auto; width: calc(var(--space-3) + 4px); height: 5px; margin-top: -2.5px; z-index: 0; }
.dl-chainlist--row .dl-chainlist__item:last-child::before { display: none; }
.dl-chainlist--row .dl-chain-card { flex: 1; position: relative; z-index: 1; }

/* ---------- Task card ---------- */
.dl-task { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; position: relative; min-width: 0; transition: background-color var(--duration-base) var(--ease-standard), opacity var(--duration-base); }
[data-density="compact"] .dl-task { padding: 12px 14px; border-radius: 16px; gap: 4px var(--space-3); }
.dl-task__check { position: relative; width: 28px; height: 28px; margin-top: 0; }
.dl-task__check .dl-check__input { width: 28px; height: 28px; }
.dl-task__check .dl-check__box { width: 28px; height: 28px; border-radius: var(--radius-full); }
.dl-task__check .dl-check__input:checked + .dl-check__box { background: var(--status-done-fg); border-color: var(--status-done-fg); color: var(--surface-canvas); animation: dl-pop var(--duration-slow) var(--ease-standard); }
[data-density="compact"] .dl-task__check, [data-density="compact"] .dl-task__check .dl-check__input, [data-density="compact"] .dl-task__check .dl-check__box { width: 22px; height: 22px; }
.dl-task__main { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
[data-density="compact"] .dl-task__main { gap: 4px; }
.dl-task__title { margin: 2px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
[data-density="compact"] .dl-task__title { margin: 0; font-size: 14px; line-height: 20px; }
.dl-task__title label { cursor: pointer; }
.dl-task__sale { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-task__sale .dl-ref { color: var(--text-muted); font-size: 12px; }
[data-density="compact"] .dl-task__sale { font-size: 12px; line-height: 16px; }
.dl-task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
[data-density="compact"] .dl-task__meta { font-size: 12px; line-height: 16px; gap: 4px var(--space-3); }
.dl-task__owner { display: inline-flex; align-items: center; gap: 6px; }
.dl-task__due { display: inline-flex; align-items: center; gap: 0; white-space: pre-wrap; }
.dl-task__due > .dl-icon { margin-right: 6px; }
.dl-task__mine-flag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 8px; border-radius: var(--radius-full); background: var(--text); color: var(--surface-canvas); font-weight: 600; }
.dl-task__mine-flag .dl-icon { color: var(--lead); }
[data-density="compact"] .dl-task__mine-flag { min-height: 20px; padding: 1px 8px 1px 6px; }
.dl-task--mine .dl-task__check .dl-check__box { border-color: var(--text); }
.dl-task__due--overdue { color: var(--warning-fg); font-weight: 600; }
.dl-task--done, .dl-task:has(.dl-task__input:checked) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-subtle); }
.dl-task--done .dl-task__title, .dl-task:has(.dl-task__input:checked) .dl-task__title { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dl-task:has(.dl-task__input:checked) .dl-task__due--overdue { color: var(--text-secondary); font-weight: 400; }
.dl-demo__pane .dl-task--done, .dl-demo__pane .dl-task:has(.dl-task__input:checked) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }

/* ---------- Document card ---------- */
.dl-doc { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 16px 16px 16px 16px; min-width: 0; transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.dl-doc:has(.dl-doc__title a):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-density="compact"] .dl-doc { padding: 10px 12px; border-radius: 16px; gap: var(--space-3); }
.dl-doc__icon { width: 52px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--tint-2); color: var(--text); position: relative; align-self: start; }
.dl-doc__icon--pdf { background: var(--tint-1); } .dl-doc__icon--img { background: var(--tint-3); } .dl-doc__icon--search { background: var(--tint-4); }
.dl-doc__icon .dl-icon { width: 24px; height: 24px; }
[data-density="compact"] .dl-doc__icon { width: 36px; height: 40px; border-radius: 10px; }
[data-density="compact"] .dl-doc__icon .dl-icon { width: 18px; height: 18px; }
.dl-doc__ext { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 9px; line-height: 10px; font-weight: 500; letter-spacing: 0.06em; color: var(--text); }
.dl-doc__icon:has(.dl-doc__ext) .dl-icon { margin-top: -10px; }
[data-density="compact"] .dl-doc__ext { display: none; }
[data-density="compact"] .dl-doc__icon .dl-icon { margin-top: 0; }
.dl-doc__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-doc__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; }
.dl-doc__title a { color: inherit; text-decoration: none; border-radius: 4px; }
.dl-doc__title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dl-doc__meta, .dl-doc__source { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; line-height: 20px; color: var(--text-secondary); margin: 0; }
.dl-doc__source { color: var(--text-muted); font-size: 13px; line-height: 18px; }
.dl-doc__source .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-doc__title { font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-doc__meta, [data-density="compact"] .dl-doc__source { font-size: 12px; line-height: 16px; }
.dl-doc__sep { color: var(--text-muted); }
.dl-doc__actions { display: flex; gap: var(--space-1); }
.dl-doc__actions .dl-btn { background: var(--surface-canvas); }
.dl-doc__actions .dl-btn:hover { background: var(--action-primary); color: var(--on-action-primary); }
.dl-doc__flag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; min-height: 26px; padding: 2px 12px 2px 8px; border-radius: var(--radius-full); background: var(--redact-bg); color: var(--redact-fg); font-size: 13px; line-height: 18px; font-weight: 600; }
[data-density="compact"] .dl-doc__flag { font-size: 12px; line-height: 16px; min-height: 20px; padding: 1px 8px 1px 6px; margin-top: 2px; }
.dl-doc__flag .dl-icon { width: 16px; height: 16px; }
.dl-doc--quarantined, .dl-demo__pane .dl-doc--quarantined { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.dl-doc--quarantined .dl-doc__icon { background: var(--border-subtle); color: var(--text-secondary); }
.dl-doc__note { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
[data-density="compact"] .dl-doc__note { font-size: 12px; line-height: 16px; margin: 0; }

/* ---------- Stat card (bento tile; base .dl-stat is also the big-number type style) ---------- */
.dl-stat:has(> .dl-stat__label) { background: var(--surface); border-radius: var(--radius-lg); padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; position: relative; overflow: hidden;
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; color: var(--text); }
[data-density="compact"] .dl-stat:has(> .dl-stat__label) { border-radius: 18px; gap: var(--space-2); }
.dl-stat--lead:has(> .dl-stat__label), .dl-demo__pane .dl-stat--lead:has(> .dl-stat__label) { background: var(--lead); color: var(--on-lead); }
.dl-stat--ink:has(> .dl-stat__label), .dl-demo__pane .dl-stat--ink:has(> .dl-stat__label) { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-stat--soft:has(> .dl-stat__label) { background: var(--lead-soft); }
.dl-stat__label { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.dl-stat--lead .dl-stat__label, .dl-stat--ink .dl-stat__label { color: inherit; opacity: 0.85; }
[data-density="compact"] .dl-stat__label { font-size: 13px; line-height: 18px; }
.dl-stat__value { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 64px; line-height: 0.95; letter-spacing: -0.05em; color: inherit; font-variant-numeric: tabular-nums lining-nums; }
.dl-stat__unit { font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 500; color: var(--text-secondary); margin-left: 6px; letter-spacing: 0; }
.dl-stat--lead .dl-stat__unit, .dl-stat--ink .dl-stat__unit { color: inherit; opacity: 0.8; }
[data-density="compact"] .dl-stat__value { font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.dl-stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-top: auto; }
.dl-stat__delta { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dl-stat--lead .dl-stat__delta, .dl-stat--ink .dl-stat__delta { color: inherit; }
.dl-stat__delta .dl-icon { width: 22px; height: 22px; padding: 4px; border-radius: var(--radius-full); background: var(--surface-canvas); color: var(--text); }
.dl-stat--lead .dl-stat__delta .dl-icon { background: var(--on-lead); color: var(--lead); }
.dl-stat--ink .dl-stat__delta .dl-icon { background: var(--lead); color: var(--on-lead); }
[data-density="compact"] .dl-stat__delta { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-stat__delta .dl-icon { width: 18px; height: 18px; padding: 3px; }
/* sparkline: lead stroke, soft lead area, lead end node */
.dl-stat__spark { width: 112px; height: 44px; flex: none; color: var(--lead); overflow: visible; margin-bottom: 6px; }
.dl-stat__spark polyline, .dl-stat__spark path:not(.dl-stat__spark-area) { stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dl-draw var(--duration-slow) var(--ease-standard) forwards; }
.dl-stat__spark-area { fill: var(--lead); opacity: 0.14; stroke: none; }
.dl-stat__spark .dl-stat__spark-end { fill: var(--lead); stroke: var(--surface); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: dl-pop var(--duration-base) var(--ease-standard) 120ms both; }
.dl-demo__pane .dl-stat__spark .dl-stat__spark-end { stroke: var(--surface-raised); }
.dl-stat__spark--attention { color: var(--status-at-risk-fg); }
.dl-stat__spark--attention .dl-stat__spark-area { fill: var(--status-at-risk-fg); }
.dl-stat__spark--attention .dl-stat__spark-end { fill: var(--status-at-risk-fg); }
.dl-stat--lead .dl-stat__spark, .dl-stat--ink .dl-stat__spark { color: currentColor; }
.dl-stat--lead .dl-stat__spark-area, .dl-stat--ink .dl-stat__spark-area { fill: currentColor; }
.dl-stat--lead .dl-stat__spark .dl-stat__spark-end { fill: var(--on-lead); stroke: var(--lead); }
.dl-stat--ink .dl-stat__spark .dl-stat__spark-end { fill: var(--lead); stroke: var(--surface-inverse); }
@media (prefers-reduced-motion: reduce) { .dl-stat__spark polyline, .dl-stat__spark path { stroke-dashoffset: 0; animation: none; } .dl-stat__spark .dl-stat__spark-end { animation: none; } }
/* mini bars: <span class="dl-stat__bars" aria-hidden="true"><i style="--h:40%"></i>…</span>; the last bar is the lead */
.dl-stat__bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 44px; flex: none; margin-bottom: 6px; }
.dl-stat__bars i { width: 9px; height: var(--h, 50%); border-radius: var(--radius-full); background: var(--text); opacity: 0.16; transform-origin: bottom; animation: dl-bar-rise var(--duration-slow) var(--ease-standard) both; }
.dl-stat__bars i:nth-child(2) { animation-delay: 40ms; } .dl-stat__bars i:nth-child(3) { animation-delay: 80ms; } .dl-stat__bars i:nth-child(4) { animation-delay: 120ms; } .dl-stat__bars i:nth-child(5) { animation-delay: 160ms; } .dl-stat__bars i:nth-child(6) { animation-delay: 200ms; } .dl-stat__bars i:nth-child(7) { animation-delay: 240ms; } .dl-stat__bars i:nth-child(8) { animation-delay: 280ms; }
.dl-stat__bars i:last-child { background: var(--lead); opacity: 1; }
.dl-stat--lead .dl-stat__bars i { background: var(--on-lead); opacity: 0.35; } .dl-stat--lead .dl-stat__bars i:last-child { opacity: 1; }
.dl-stat--ink .dl-stat__bars i { background: var(--text-inverse); opacity: 0.25; } .dl-stat--ink .dl-stat__bars i:last-child { background: var(--lead); opacity: 1; }
[data-density="compact"] .dl-stat__bars { height: 32px; gap: 3px; } [data-density="compact"] .dl-stat__bars i { width: 7px; }
@keyframes dl-bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .dl-stat__bars i { animation: none; } }
.dl-stat__foot { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-stat--link { transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.dl-stat--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dl-stat--link .dl-card__link { color: inherit; }
.dl-stat-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.dl-stat-bento > .dl-span-3 { grid-column: span 3; } .dl-stat-bento > .dl-span-4 { grid-column: span 4; } .dl-stat-bento > .dl-span-5 { grid-column: span 5; } .dl-stat-bento > .dl-span-6 { grid-column: span 6; } .dl-stat-bento > .dl-span-8 { grid-column: span 8; }
@media (max-width: 760px) { .dl-stat-bento > [class*="dl-span-"] { grid-column: span 6; } }
@media (max-width: 480px) { .dl-stat-bento > [class*="dl-span-"] { grid-column: span 12; } }

/* ---------- Table: soft grey frame, white sheet, roomy rows, no vertical rules ---------- */
.dl-table-wrap { background: var(--surface); border-radius: var(--radius-lg); padding: 8px; min-width: 0; display: flex; flex-direction: column; position: relative; }
.dl-table-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); padding: 10px 10px 14px; }
.dl-table-toolbar .dl-field { flex: 1 1 200px; max-width: 320px; }
.dl-table-toolbar .dl-field--status { flex: 0 1 180px; }
.dl-table-toolbar .dl-input-group, .dl-table-toolbar .dl-select { background: var(--surface-canvas); }
.dl-table-toolbar__end { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.dl-table-toolbar__end .dl-btn--secondary { background: var(--surface-canvas); }
.dl-table-summary { padding: 0 10px 10px; font-size: 13px; line-height: 18px; color: var(--text-secondary); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; }
.dl-table-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 8px; padding: 6px 8px 6px 18px; border-radius: var(--radius-full); background: var(--surface-inverse); color: var(--text-inverse); animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-table-bulk[hidden] { display: none; }
.dl-table-bulk__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-table-bulk__sep { width: 1px; height: 20px; background: currentColor; opacity: 0.3; }
.dl-table-bulk__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.dl-table-bulk .dl-btn--tertiary, .dl-table-bulk .dl-btn--link { --btn-fg: var(--text-inverse); color: var(--text-inverse); }
.dl-table-bulk .dl-btn--tertiary:hover { background: color-mix(in oklab, var(--text-inverse) 14%, transparent); }
.dl-table-bulk .dl-btn--link { padding: 0 10px; }
.dl-table-scroll { position: relative; overflow: auto; max-height: 520px; min-width: 0; overscroll-behavior: contain; background: var(--surface-canvas); border-radius: 18px; }
.dl-table-scroll--auto { max-height: none; }
.dl-table-scroll:focus-visible { outline-offset: 2px; }
.dl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 22px; color: var(--text); }
[data-density="compact"] .dl-table { font-size: 14px; line-height: 20px; }
.dl-table caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: 600; }
.dl-table th, .dl-table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-subtle); height: var(--row-h); }
.dl-table tbody tr:last-child > td { border-bottom: 0; }
[data-density="compact"] .dl-table th, [data-density="compact"] .dl-table td { padding: 8px 14px; }
.dl-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; border-bottom: 0; height: 44px; }
.dl-table thead th:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.dl-table thead th:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.dl-table thead tr { box-shadow: none; }
.dl-table-scroll > .dl-table { border-spacing: 0; }
.dl-table-scroll > .dl-table thead th { box-shadow: 0 -8px 0 var(--surface-canvas); }
[data-density="compact"] .dl-table thead th { font-size: 12px; line-height: 16px; height: 36px; }
.dl-table tbody tr > td { transition: background-color var(--duration-instant) var(--ease-standard); }
.dl-table tbody tr:hover > td { background: var(--surface-hover); }
.dl-table tbody tr.is-selected > td, .dl-table tbody tr[aria-selected="true"] > td { background: var(--surface-selected); }
.dl-table .dl-table__num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.dl-table__nowrap, .dl-table td[data-col="waiting"], .dl-table__sub .dl-ref { white-space: nowrap; }
.dl-table__sel { width: 1%; padding-right: 0 !important; }
.dl-table__sel .dl-check { display: inline-grid; vertical-align: middle; }
.dl-table__exp { width: 1%; padding-left: var(--space-2) !important; padding-right: 0 !important; }
.dl-table__id, .dl-table .dl-ref { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); white-space: nowrap; letter-spacing: 0.01em; }
[data-density="compact"] .dl-table__id { font-size: 12px; }
.dl-table__addr { font-weight: 600; min-width: 180px; }
.dl-table__addr a { color: var(--text); text-decoration: none; border-radius: 4px; }
.dl-table__addr a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dl-table__sub { display: block; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-table__sub .dl-ref { font-size: 12px; color: var(--text-muted); }
[data-density="compact"] .dl-table__sub { font-size: 12px; line-height: 16px; }
.dl-table__stage { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dl-table__stage .dl-icon { width: 18px; height: 18px; color: var(--text); }
.dl-table__stale { display: inline-flex; align-items: center; gap: 4px; color: var(--warning-fg); font-weight: 600; }
.dl-table__stale .dl-icon { width: 14px; height: 14px; }
/* exchange-window bar: <span class="dl-table__window"><span class="dl-table__bar" style="--from:30%;--to:65%"></span>3–17 Nov</span> */
.dl-table__window { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-table__bar { position: relative; width: 112px; height: 8px; border-radius: var(--radius-full); background: var(--border-subtle); flex: none; }
.dl-table__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--from, 0%); right: calc(100% - var(--to, 50%)); border-radius: var(--radius-full); background: var(--text); }
.dl-table__bar--risk::after { background: var(--status-at-risk-fg); }
[data-density="compact"] .dl-table__bar { width: 80px; height: 6px; }
/* sortable header */
.dl-table__sort { display: inline-flex; align-items: center; gap: 4px; margin: -4px -8px; padding: 4px 8px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-full); white-space: nowrap; min-height: 28px; }
.dl-table__sort:hover { color: var(--text); background: var(--surface-canvas); }
.dl-table__sort .dl-icon { width: 14px; height: 14px; color: var(--text-muted); }
th[aria-sort="ascending"] .dl-table__sort, th[aria-sort="descending"] .dl-table__sort { color: var(--text); }
th[aria-sort="ascending"] .dl-table__sort .dl-icon, th[aria-sort="descending"] .dl-table__sort .dl-icon { color: var(--lead-text); }
.dl-table__num .dl-table__sort { flex-direction: row-reverse; }
/* expand */
.dl-table__toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-secondary); cursor: pointer; }
.dl-table__toggle:hover { background: var(--surface); color: var(--text); }
.dl-table__toggle[aria-expanded="true"] { background: var(--action-primary); color: var(--on-action-primary); }
.dl-table__toggle .dl-icon { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-standard); }
.dl-table__toggle[aria-expanded="true"] .dl-icon { transform: rotate(90deg); }
.dl-table__detail > td { background: var(--surface-canvas); padding: var(--space-2) var(--space-4) var(--space-5) 88px !important; height: auto; }
[data-density="compact"] .dl-table__detail > td { padding-left: 76px !important; }
.dl-table tbody tr.dl-table__detail:hover > td { background: var(--surface-canvas); }
.dl-table__detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4) var(--space-8); max-width: 900px; padding: var(--space-4) var(--space-5); border-radius: 18px; background: var(--surface); }
/* mini timeline inside expanded rows: the line, vertical */
.dl-minitl { list-style: none; margin: 0; padding: 0; }
.dl-minitl li { position: relative; padding: 0 0 10px 24px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.dl-minitl li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--surface-canvas); box-shadow: inset 0 0 0 2px var(--border-strong); z-index: 1; }
.dl-minitl li::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: -4px; width: 4px; border-radius: 2px; background: var(--timeline-rail); }
.dl-minitl li:last-child::after { display: none; }
.dl-minitl li.is-done::before { background: var(--text); box-shadow: none; }
.dl-minitl li.is-done::after { background: var(--text); }
.dl-minitl li.is-current::before { left: 0; top: 2px; width: 14px; height: 14px; background: var(--lead); box-shadow: inset 0 0 0 3px var(--text); }
.dl-minitl strong { color: var(--text); font-weight: 600; }
.dl-minitl time { font-variant-numeric: tabular-nums; }
/* states */
.dl-table--state thead th { white-space: normal; }
.dl-table__state > td { height: auto; padding: var(--space-8) var(--space-4) !important; text-align: center; }
.dl-table tbody tr.dl-table__state:hover > td { background: transparent; }
.dl-table-error { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); color: var(--text); max-width: 420px; margin: 0 auto; }
.dl-table-error > .dl-icon { color: var(--error-fg); width: 28px; height: 28px; }
.dl-table-error p { margin: 0; }
.dl-table-error strong { font-family: var(--font-display); font-size: 20px; line-height: 24px; letter-spacing: -0.02em; font-weight: 600; display: block; }
.dl-table-foot { padding: 10px 10px 2px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
/* column menu */
.dl-menu-wrap { position: relative; display: inline-flex; }
.dl-colmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-tooltip, 600); min-width: 230px; background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--space-2); animation: dl-rise var(--duration-fast) var(--ease-standard) both; }
.dl-colmenu[hidden] { display: none; }
.dl-colmenu__title { margin: 0; padding: var(--space-2) var(--space-3); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-colmenu .dl-check { display: grid; width: 100%; padding: 8px var(--space-3); border-radius: 10px; }
.dl-colmenu .dl-check:hover { background: var(--surface-hover); }
.dl-colmenu .dl-check__input { left: var(--space-3); }

/* ---------- Lists ---------- */
.dl-list { list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: var(--radius-lg); }
.dl-list--plain { background: transparent; border-radius: 0; padding: 0; }
.dl-list__item { display: flex; align-items: center; gap: var(--space-4); padding: 10px 12px; min-height: var(--row-h); color: var(--text); position: relative; border-radius: 18px; }
.dl-list__item + .dl-list__item::before { content: ""; position: absolute; top: 0; left: 64px; right: 12px; border-top: 1px solid var(--border-subtle); }
.dl-list__item:not(:has(.dl-list__icon)) + .dl-list__item::before, .dl-list__item--action + .dl-list__item--action::before { left: 12px; }
.dl-list:has(.dl-list__icon) .dl-list__item--action + .dl-list__item--action::before { left: 64px; }
.dl-list__item:has(.dl-list__action:hover)::before, .dl-list__item:has(.dl-list__action:hover) + .dl-list__item::before,
.dl-list__item:has(.dl-list__action.is-hover)::before, .dl-list__item:has(.dl-list__action.is-hover) + .dl-list__item::before,
.dl-list__item:has([aria-current="page"])::before, .dl-list__item:has([aria-current="page"]) + .dl-list__item::before { opacity: 0; }
[data-density="compact"] .dl-list__item { padding: 6px 10px; gap: var(--space-3); border-radius: 12px; }
[data-density="compact"] .dl-list__item + .dl-list__item::before { left: 10px; }
.dl-list--plain .dl-list__item { padding-left: 0; padding-right: 0; }
.dl-list--plain .dl-list__item + .dl-list__item::before { left: 52px; right: 0; }
.dl-list--bulleted { list-style: none; padding: 0; background: transparent; border-radius: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-list--bulleted li { position: relative; padding: 0 0 0 22px; }
.dl-list--bulleted li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--lead); }
.dl-list__icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--surface-canvas); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.dl-demo__pane .dl-list .dl-list__icon, .dl-card .dl-list__icon { background: var(--surface); }
.dl-list__icon .dl-icon { width: 20px; height: 20px; }
[data-density="compact"] .dl-list__icon { width: 30px; height: 30px; }
[data-density="compact"] .dl-list__icon .dl-icon { width: 16px; height: 16px; }
.dl-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-list__primary { font-weight: 600; overflow-wrap: anywhere; }
.dl-list__secondary { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-list__secondary .dl-ref { font-size: 12px; color: var(--text-muted); }
[data-density="compact"] .dl-list__secondary { font-size: 12px; line-height: 16px; }
.dl-list__meta { flex: none; font-size: 13px; line-height: 18px; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
[data-density="compact"] .dl-list__meta { font-size: 12px; line-height: 16px; }
.dl-list__item--action { padding: 0; }
.dl-list__action { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: 10px 12px; min-height: var(--row-h); color: var(--text); text-decoration: none; background: transparent; border: 0; border-radius: inherit; text-align: left; cursor: pointer; font: inherit; transition: background-color var(--duration-instant) var(--ease-standard); }
[data-density="compact"] .dl-list__action { padding: 6px 10px; gap: var(--space-3); }
.dl-list__action:hover, .dl-list__action.is-hover { background: var(--surface-hover); }
.dl-demo__pane .dl-list__action:hover, .dl-demo__pane .dl-list__action.is-hover, .dl-card .dl-list__action:hover { background: var(--surface); }
.dl-list__action:focus-visible, .dl-list__action.is-focus { outline: 2px solid var(--focus-ring); outline-offset: -2px; box-shadow: inset 0 0 0 5px var(--focus-halo) !important; }
.dl-list__action[aria-current="page"] { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-list__action[aria-current="page"] .dl-list__secondary, .dl-list__action[aria-current="page"] .dl-list__chev { color: inherit; opacity: 0.75; }
.dl-list__action[aria-current="page"] .dl-list__icon { background: var(--lead); color: var(--on-lead); }
.dl-list__chev { flex: none; color: var(--text-muted); transition: transform var(--duration-fast) var(--ease-standard); }
.dl-list__action:hover .dl-list__chev, .dl-list__action.is-hover .dl-list__chev { transform: translateX(3px); color: var(--text); }

/* ---------- Description list ---------- */
.dl-dlist { margin: 0; container-type: inline-size; }
.dl-dlist__row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.dl-dlist__row:first-child { padding-top: 0; }
.dl-dlist__row:last-child { border-bottom: 0; padding-bottom: 0; }
[data-density="compact"] .dl-dlist__row { padding: var(--space-2) 0; }
.dl-dlist dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-muted); }
.dl-dlist dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-dlist dd .dl-ref { font-size: 14px; }
.dl-dlist__big { font-family: var(--font-display); font-size: 24px; line-height: 28px; letter-spacing: -0.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-density="compact"] .dl-dlist dt { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-dlist dd { font-size: 14px; line-height: 20px; }
.dl-dlist__source { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 6px; border-radius: var(--radius-full); background: var(--surface); font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.dl-card .dl-dlist__source, .dl-demo__pane .dl-dlist__source { background: var(--surface-canvas); }
.dl-dlist__source .dl-icon { width: 14px; height: 14px; }
.dl-dlist__with-action { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center !important; gap: var(--space-3) !important; }
.dl-dlist__action { margin-left: auto; }
@container (min-width: 520px) {
  .dl-dlist--columns .dl-dlist__row { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: var(--space-4); align-items: baseline; }
  .dl-dlist--columns dt { font-size: 14px; line-height: 22px; }
  [data-density="compact"] .dl-dlist--columns dt { font-size: 13px; line-height: 20px; }
}

/* ---------- Status pills extras ---------- */
.dl-grayscale { filter: grayscale(1); }
.dl-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--space-4); }
.dl-status-grid > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dl-status { transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base), border-color var(--duration-base); }
.dl-status--enter { animation: dl-status-in var(--duration-base) var(--ease-standard) both; }
@keyframes dl-status-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.dl-confidence { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; min-height: 30px; border-radius: var(--radius-full); background: var(--surface); color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.dl-demo__pane .dl-confidence, .dl-card .dl-confidence { background: var(--surface-canvas); }
[data-density="compact"] .dl-confidence, .dl-confidence--sm { min-height: 24px; padding: 2px 10px 2px 8px; font-size: 12px; line-height: 18px; gap: 6px; }
.dl-confidence__bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.dl-confidence__bars i { width: 4px; border-radius: 2px; background: var(--confidence-track); }
.dl-confidence__bars i:nth-child(1) { height: 6px; } .dl-confidence__bars i:nth-child(2) { height: 10px; } .dl-confidence__bars i:nth-child(3) { height: 14px; }
.dl-confidence--high .dl-confidence__bars i { background: var(--confidence-high); }
.dl-confidence--medium .dl-confidence__bars i:nth-child(-n+2) { background: var(--confidence-medium); }
.dl-confidence--low .dl-confidence__bars i:nth-child(1) { background: var(--confidence-low); }
.dl-confidence__word { font-weight: 400; color: var(--text-secondary); }

/* ---------- Badges, tags, chips ---------- */
.dl-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-full); background: var(--lead); color: var(--on-lead); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-badge--ink { background: var(--action-primary); color: var(--on-action-primary); }
.dl-badge--subtle { background: var(--border-subtle); color: var(--text); }
.dl-badge-anchor { position: relative; display: inline-flex; }
.dl-badge-anchor > .dl-badge { position: absolute; top: -6px; right: -8px; box-shadow: 0 0 0 3px var(--surface-canvas); animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-demo__pane .dl-badge-anchor > .dl-badge { box-shadow: 0 0 0 3px var(--surface); }
.dl-badge-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--lead); box-shadow: 0 0 0 2px var(--surface-canvas); }
.dl-demo__pane .dl-badge-dot { box-shadow: 0 0 0 2px var(--surface); }
@media (prefers-reduced-motion: no-preference) { .dl-badge-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lead); animation: dl-badge-ping 2.4s var(--ease-standard) infinite; } }
@keyframes dl-badge-ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.dl-meta-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 12px; border-radius: var(--radius-full); background: var(--surface); color: var(--text-secondary); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.dl-demo__pane .dl-meta-tag, .dl-card .dl-meta-tag { background: var(--surface-canvas); }
.dl-meta-tag .dl-icon { width: 14px; height: 14px; }
.dl-meta-tag--mono { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.02em; }
[data-density="compact"] .dl-meta-tag { min-height: 22px; font-size: 12px; line-height: 16px; padding: 1px 9px; }
.dl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 0; box-shadow: inset 0 0 0 1.5px var(--border); background: var(--surface-canvas); color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast), transform var(--duration-fast) var(--ease-standard), color var(--duration-fast); }
[data-density="compact"] .dl-chip { min-height: 30px; padding: 0 12px; font-size: 13px; line-height: 18px; }
.dl-chip:hover, .dl-chip.is-hover { box-shadow: inset 0 0 0 1.5px var(--text); transform: translateY(-1px); }
.dl-chip:active { transform: scale(0.97); }
.dl-chip .dl-icon { width: 16px; height: 16px; }
.dl-chip__check { display: none; }
.dl-chip[aria-pressed="true"] { background: var(--action-primary); color: var(--on-action-primary); box-shadow: none; padding-left: 12px; }
[data-density="compact"] .dl-chip[aria-pressed="true"] { padding-left: 9px; }
.dl-chip[aria-pressed="true"] .dl-chip__check { display: inline-flex; width: 18px; height: 18px; padding: 3px; border-radius: var(--radius-full); background: var(--lead); color: var(--on-lead); animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-chip[aria-pressed="true"] .dl-chip__check svg { stroke-width: 3; }
.dl-chip[aria-pressed="true"] .dl-chip__count { color: inherit; opacity: 0.7; }
.dl-chip:disabled { cursor: not-allowed; color: var(--text-disabled); box-shadow: none; background: var(--border-subtle); transform: none; }
.dl-chip__count { font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-chip--removable { cursor: default; padding-right: 5px; background: var(--surface); box-shadow: none; }
.dl-demo__pane .dl-chip--removable { background: var(--surface-canvas); }
.dl-chip--removable:hover { box-shadow: none; transform: none; }
.dl-chip__remove { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-secondary); cursor: pointer; transition: background-color var(--duration-fast), color var(--duration-fast); }
[data-density="compact"] .dl-chip__remove { width: 24px; height: 24px; }
.dl-chip__remove:hover { background: var(--action-primary); color: var(--on-action-primary); }
.dl-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; list-style: none; margin: 0; padding: 0; }

/* ---------- Avatars: tinted discs for people, rounded squares for firms ---------- */
.dl-avatar--24, .dl-avatar--32, .dl-avatar--40, .dl-avatar--56, .dl-avatar--t1, .dl-avatar--t2, .dl-avatar--t3, .dl-avatar--t4 { border: 0; font-weight: 700; letter-spacing: 0; }
.dl-avatar--24 { --av: 24px; width: 24px; height: 24px; font-size: 10px; }
.dl-avatar--32 { --av: 32px; width: 32px; height: 32px; font-size: 12px; }
.dl-avatar--40 { --av: 40px; width: 40px; height: 40px; font-size: 14px; }
.dl-avatar--56 { --av: 56px; width: 56px; height: 56px; font-size: 19px; letter-spacing: -0.02em; }
.dl-avatar--t1 { background: var(--tint-1); color: var(--text); } .dl-avatar--t2 { background: var(--tint-2); color: var(--text); }
.dl-avatar--t3 { background: var(--tint-3); color: var(--text); } .dl-avatar--t4 { background: var(--tint-4); color: var(--text); }
.dl-avatar--firm.dl-avatar--24 { border-radius: 7px; } .dl-avatar--firm.dl-avatar--32 { border-radius: 9px; }
.dl-avatar--firm.dl-avatar--40 { border-radius: 12px; } .dl-avatar--firm.dl-avatar--56 { border-radius: 16px; font-size: 17px; }
.dl-avatar--firm:is(.dl-avatar--24, .dl-avatar--32, .dl-avatar--40, .dl-avatar--56) { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-avatar--you { position: relative; background: var(--action-primary); color: var(--on-action-primary); border-color: var(--action-primary); }
.dl-avatar--you::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 8px; min-height: 8px; border-radius: var(--radius-full); background: var(--lead); box-shadow: 0 0 0 2px var(--surface-canvas); }
.dl-avatar--guest, .dl-avatar--guest:is(.dl-avatar--24, .dl-avatar--32, .dl-avatar--40, .dl-avatar--56) { color: var(--text-muted); background: transparent; border: 1.5px dashed var(--border-strong); }
.dl-avatar--guest .dl-icon { width: 55%; height: 55%; }
.dl-avatar-pair { display: inline-flex; align-items: center; }
.dl-avatar-pair > .dl-avatar { box-shadow: 0 0 0 3px var(--surface-canvas); position: relative; }
.dl-demo__pane .dl-avatar-pair > .dl-avatar, .dl-task .dl-avatar-pair > .dl-avatar { box-shadow: 0 0 0 3px var(--surface); }
.dl-avatar-pair > .dl-avatar:first-child { z-index: 1; }
.dl-avatar-pair > .dl-avatar + .dl-avatar { margin-left: calc(var(--av, 32px) * -0.25); }
.dl-avatar-pair > .dl-avatar + .dl-avatar:not([class*="dl-avatar--t"]) { background: var(--tint-2); }
.dl-avatar-pair > .dl-avatar:first-child:not([class*="dl-avatar--t"]) { background: var(--tint-1); }
.dl-person { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; }
.dl-person__text { display: flex; flex-direction: column; min-width: 0; }
.dl-person__name { font-weight: 600; color: var(--text); }
.dl-person__role { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
[data-density="compact"] .dl-person { gap: var(--space-2); }
[data-density="compact"] .dl-person__role { font-size: 12px; line-height: 16px; }

/* ---------- Tooltip, popover, glossary term ---------- */
.dl-tooltip-wrap { position: relative; display: inline-flex; }
.dl-tooltip { position: absolute; z-index: var(--z-tooltip, 600); left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 240px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--text-inverse); font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; pointer-events: none; box-shadow: var(--shadow-md); animation: dl-tip-in var(--duration-fast) var(--ease-standard) both; }
.dl-tooltip::after { content: ""; position: absolute; left: 50%; top: calc(100% - 5px); width: 10px; height: 10px; margin-left: -5px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
.dl-tooltip--below { bottom: auto; top: calc(100% + 10px); }
.dl-tooltip--below::after { top: auto; bottom: calc(100% - 5px); }
.dl-tooltip[hidden] { display: none; }
.dl-tooltip .dl-ref { font-weight: 500; opacity: 0.85; }
@keyframes dl-tip-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
.dl-term { display: inline; padding: 0 2px; margin: 0 -2px; border: 0; background: transparent; font: inherit; color: inherit; cursor: help; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--lead); border-radius: 6px; transition: background-color var(--duration-fast); }
.dl-term:hover, .dl-term[aria-expanded="true"] { text-decoration-style: solid; background: var(--lead-soft); color: var(--text); }
.dl-pop-anchor { position: relative; display: inline; }
.dl-popover { position: absolute; z-index: var(--z-tooltip, 600); left: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: var(--space-5); background: var(--surface-raised); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: left; font-size: 15px; line-height: 22px; font-weight: 400; white-space: normal; animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-popover[hidden] { display: none; }
.dl-popover--static { position: relative; top: auto; left: auto; display: block; }
.dl-popover__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.dl-popover__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 10px; }
.dl-popover__title .dl-picto { width: 40px; height: 40px; }
.dl-popover__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -4px -6px 0 0; border: 0; border-radius: var(--radius-full); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.dl-popover__close:hover { background: var(--action-primary); color: var(--on-action-primary); }
.dl-popover p { margin: 0 0 var(--space-2); }
.dl-popover p:last-child { margin-bottom: 0; }
.dl-popover__more { font-size: 14px; font-weight: 600; }
[data-density="compact"] .dl-popover { font-size: 14px; line-height: 20px; padding: var(--space-4); }

/* ---------- Accordion: stacked soft tiles ---------- */
.dl-accordion { display: flex; flex-direction: column; gap: 8px; }
.dl-accordion__item { background: var(--surface); border-radius: var(--radius-lg); transition: background-color var(--duration-fast) var(--ease-standard); }
.dl-accordion__summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 18px 16px 18px 24px; min-height: 64px; cursor: pointer; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); border-radius: var(--radius-lg); }
.dl-accordion__summary::-webkit-details-marker { display: none; }
.dl-accordion__summary:focus-visible { outline-offset: 2px; }
.dl-accordion__chev { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--surface-canvas); color: var(--text); transition: transform var(--duration-base) var(--ease-standard), background-color var(--duration-fast), color var(--duration-fast); }
.dl-demo__pane .dl-accordion__chev { background: var(--surface); }
.dl-accordion__chev .dl-icon { width: 18px; height: 18px; }
.dl-accordion__summary:hover .dl-accordion__chev { background: var(--action-primary); color: var(--on-action-primary); }
.dl-accordion__item[open] > .dl-accordion__summary .dl-accordion__chev { transform: rotate(180deg); background: var(--action-primary); color: var(--on-action-primary); }
.dl-accordion__panel { padding: 0 var(--space-10) var(--space-6) var(--space-6); color: var(--text-secondary); max-width: var(--measure, 66ch); }
.dl-accordion__item[open] > .dl-accordion__panel { animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-accordion__panel p { margin: 0 0 var(--space-3); }
.dl-accordion__panel p:last-child { margin-bottom: 0; }
.dl-accordion__panel strong { color: var(--text); }
.dl-accordion__tools { display: flex; justify-content: flex-end; margin-bottom: var(--space-1); }
[data-density="compact"] .dl-accordion { gap: 4px; }
[data-density="compact"] .dl-accordion__item, [data-density="compact"] .dl-accordion__summary { border-radius: 14px; }
[data-density="compact"] .dl-accordion__summary { padding: 8px 10px 8px 14px; min-height: 44px; font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
[data-density="compact"] .dl-accordion__chev { width: 26px; height: 26px; }
[data-density="compact"] .dl-accordion__chev .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-accordion__panel { padding: 0 var(--space-4) var(--space-3) 14px; font-size: 14px; line-height: 20px; }
.dl-accordion__item--disabled > .dl-accordion__summary { color: var(--text-disabled); cursor: not-allowed; }

/* ---------- Divider extras ---------- */
.dl-divider--vertical { border-top: 0; border-left: 1px solid var(--border); align-self: stretch; width: 0; min-height: 24px; margin: 0 var(--space-1); }
.dl-divider-label--start::before { display: none; }

.dl-divider--spaced { margin: var(--space-6) 0; }
.dl-divider--line { border: 0; height: 6px; border-radius: var(--radius-full); background: var(--text); margin: 0; position: relative; overflow: visible; }
.dl-divider--line::after { content: ""; position: absolute; right: -2px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: var(--radius-full); background: var(--lead); box-shadow: 0 0 0 4px var(--text); }
.dl-divider-dot { display: inline-block; width: 4px; height: 4px; border-radius: var(--radius-full); background: var(--text-muted); flex: none; }
.dl-toolbar { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--space-1); padding: 4px; border-radius: var(--radius-full); background: var(--surface); flex-wrap: wrap; }
.dl-demo__pane .dl-toolbar { background: var(--surface-canvas); }
.dl-toolbar .dl-btn--tertiary:hover { background: var(--surface-hover); }

/* ---------- Progress: a thick rounded lead line ending in a node ---------- */
.dl-progress { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dl-progress__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: 15px; line-height: 22px; }
.dl-progress__label { font-weight: 600; color: var(--text); min-width: 0; }
.dl-progress__value { color: var(--text-secondary); font-variant-numeric: tabular-nums; font-weight: 500; }
.dl-progress__value--big { font-family: var(--font-display); font-size: 28px; line-height: 28px; font-weight: 650; letter-spacing: -0.04em; color: var(--text); }
.dl-progress__track { --h: 12px; position: relative; height: var(--h); border-radius: var(--radius-full); background: var(--border-subtle); }
.dl-demo__pane .dl-progress__track, .dl-card .dl-progress__track { background: var(--surface-canvas); }
.dl-progress--sm .dl-progress__track { --h: 6px; }
.dl-progress--lg .dl-progress__track { --h: 16px; }
.dl-progress__fill { position: absolute; left: 0; top: 0; bottom: 0; width: max(var(--h), var(--pct, 0%)); border-radius: var(--radius-full); background: var(--lead); transition: width var(--duration-slow) var(--ease-standard), background-color var(--duration-base); transform-origin: left center; animation: dl-line-grow var(--duration-base) var(--ease-standard) both; }
.dl-progress__fill::after { content: ""; position: absolute; right: calc(var(--h) * -0.25); top: 50%; width: calc(var(--h) * 1.5); height: calc(var(--h) * 1.5); transform: translateY(-50%); border-radius: var(--radius-full); background: var(--lead); box-shadow: 0 0 0 3px var(--text); }
.dl-progress--sm .dl-progress__fill::after, .dl-progress--indeterminate .dl-progress__fill::after { display: none; }
.dl-progress--ink .dl-progress__fill { background: var(--text); }
.dl-progress--ink .dl-progress__fill::after { background: var(--lead); }
.dl-progress--done .dl-progress__fill, .dl-progress--done .dl-progress__fill::after { background: var(--status-done-fg); }
.dl-progress--error .dl-progress__fill, .dl-progress--error .dl-progress__fill::after { background: var(--error-fg); }
.dl-progress__hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.dl-progress__hint--error { color: var(--error-fg); font-weight: 600; }
.dl-progress__hint--done { color: var(--success-fg); font-weight: 600; }
.dl-progress--indeterminate .dl-progress__track { overflow: hidden; }
.dl-progress--indeterminate .dl-progress__fill { width: 35%; left: 0; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .dl-progress--indeterminate .dl-progress__fill { animation: dl-progress-slide 1.6s var(--ease-standard) infinite; }
}
@keyframes dl-progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) {
  .dl-progress__fill { animation: none; }
  .dl-progress--indeterminate .dl-progress__fill { animation: none !important; transform: none; width: 100%; background: repeating-linear-gradient(90deg, var(--lead) 0 10px, transparent 10px 18px); }
}
/* segmented: stage n of 7 as rounded segments (ink travelled, lead current) */
.dl-steps { display: flex; gap: 6px; }
.dl-steps__seg { flex: 1; height: 12px; border-radius: var(--radius-full); background: var(--border-subtle); transform-origin: left center; }
.dl-demo__pane .dl-steps__seg, .dl-card .dl-steps__seg { background: var(--surface-canvas); }
.dl-steps__seg.is-done, .dl-demo__pane .dl-steps__seg.is-done, .dl-card .dl-steps__seg.is-done { background: var(--text); animation: dl-line-grow var(--duration-slow) var(--ease-standard) both; }
.dl-steps__seg.is-current, .dl-demo__pane .dl-steps__seg.is-current, .dl-card .dl-steps__seg.is-current { background: var(--lead); box-shadow: inset 0 0 0 3px var(--text); animation: dl-line-grow var(--duration-slow) var(--ease-standard) 240ms both; }
.dl-steps__seg:nth-child(2) { animation-delay: 60ms; } .dl-steps__seg:nth-child(3) { animation-delay: 120ms; } .dl-steps__seg:nth-child(4) { animation-delay: 180ms; } .dl-steps__seg:nth-child(5) { animation-delay: 240ms; } .dl-steps__seg:nth-child(6) { animation-delay: 300ms; }
[data-density="compact"] .dl-steps { gap: 4px; } [data-density="compact"] .dl-steps__seg { height: 8px; } [data-density="compact"] .dl-steps__seg.is-current { box-shadow: inset 0 0 0 2px var(--text); }
@media (prefers-reduced-motion: reduce) { .dl-steps__seg { animation: none !important; } }
.dl-steps__names { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dl-steps__names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-steps__names .is-current { color: var(--text); font-weight: 700; }
@media (max-width: 520px) { .dl-steps__names { display: none; } }

/* ---------- Skeleton: soft pills with a shimmer (static under reduced motion) ---------- */
.dl-skeleton { display: block; background: var(--border-subtle); border-radius: var(--radius-full); height: 14px; position: relative; overflow: hidden; }
.dl-card .dl-skeleton, .dl-demo__pane .dl-skeleton { background: var(--surface-hover); }
.dl-card--raised .dl-skeleton, .dl-table-scroll .dl-skeleton { background: var(--border-subtle); }
.dl-skeleton--text { height: 10px; margin: 6px 0; }
.dl-skeleton--title { height: 24px; border-radius: 10px; }
.dl-skeleton--display { height: 40px; border-radius: 12px; }
.dl-skeleton--pill { height: 28px; width: 104px; }
.dl-skeleton--circle { width: 40px; height: 40px; flex: none; }
.dl-skeleton--dot { width: 14px; height: 14px; flex: none; }
.dl-skeleton--btn { height: 48px; width: 140px; }
.dl-skeleton--block { height: 72px; border-radius: 16px; }
.dl-skeleton--line { height: 6px; }
.dl-skeleton-w-20 { width: 20%; } .dl-skeleton-w-30 { width: 30%; } .dl-skeleton-w-40 { width: 40%; } .dl-skeleton-w-50 { width: 50%; } .dl-skeleton-w-60 { width: 60%; } .dl-skeleton-w-70 { width: 70%; } .dl-skeleton-w-80 { width: 80%; } .dl-skeleton-w-90 { width: 90%; } .dl-skeleton-w-100 { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  [aria-busy="true"] .dl-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--surface-canvas) 70%, transparent) 50%, transparent 80%); transform: translateX(-100%); animation: dl-skeleton-shimmer 1.6s var(--ease-standard) infinite; }
}
@keyframes dl-skeleton-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .dl-skeleton::after { content: none !important; animation: none !important; } }
.dl-skeleton-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.dl-skeleton-tl li { display: grid; grid-template-columns: 14px 1fr; gap: var(--space-3); position: relative; }
.dl-skeleton-tl li::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: calc(var(--space-5) * -1 + 4px); width: 4px; border-radius: 2px; background: var(--border-subtle); }
.dl-skeleton-tl li:last-child::after { display: none; }

/* ---------- Empty state: pictogram, one line, one action ---------- */
.dl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-10) var(--space-6); color: var(--text); max-width: 460px; margin: 0 auto; }
[data-density="compact"] .dl-empty { padding: var(--space-6) var(--space-4); gap: var(--space-2); }
.dl-empty > .dl-picto { margin-bottom: var(--space-2); }
.dl-empty > .dl-picto.dl-rise { animation-delay: 60ms; }
[data-density="compact"] .dl-empty > .dl-picto { width: 64px; height: 64px; margin-bottom: 0; }
.dl-empty__art { position: relative; width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--lead-soft); color: var(--text); margin-bottom: var(--space-2); }
.dl-empty__art::after { content: ""; position: absolute; right: 4px; top: 4px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--lead); box-shadow: 0 0 0 3px var(--surface-canvas); }
.dl-empty__art .dl-icon { width: 30px; height: 30px; }
[data-density="compact"] .dl-empty__art { width: 52px; height: 52px; margin-bottom: 0; }
[data-density="compact"] .dl-empty__art::after { width: 10px; height: 10px; right: 2px; top: 2px; }
[data-density="compact"] .dl-empty__art .dl-icon { width: 22px; height: 22px; }
.dl-empty__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 30px; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
[data-density="compact"] .dl-empty__title { font-size: 20px; line-height: 24px; letter-spacing: -0.03em; }
.dl-empty__text { margin: 0; color: var(--text-secondary); max-width: 36ch; text-wrap: pretty; }
[data-density="compact"] .dl-empty__text { font-size: 14px; line-height: 20px; }
.dl-empty .dl-btn { margin-top: var(--space-3); }
[data-density="compact"] .dl-empty .dl-btn { margin-top: var(--space-1); }
.dl-empty--boxed { background: var(--surface); border-radius: var(--radius-lg); max-width: none; height: 100%; }
.dl-empty--boxed .dl-empty__art::after { box-shadow: 0 0 0 3px var(--surface); }
.dl-empty--soft { background: var(--lead-soft); border-radius: var(--radius-lg); max-width: none; height: 100%; }
.dl-empty--soft .dl-empty__art::after { box-shadow: 0 0 0 3px var(--lead-soft); }
.dl-empty--start { align-items: flex-start; text-align: left; margin: 0; }
@media (max-width: 560px) { .dl-chainlist--row .dl-chainlist__item::before { display: none; } }
.dl-table__state .dl-empty { padding: var(--space-2) var(--space-4); }
.dl-table__state > td { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
.dl-demo__pane :is(.dl-demo__do, .dl-demo__dont) { background: var(--surface-raised); }

/* ---- 50-deedline.css ---- */
/* =====================================================================
   Deedline v2 — signature product components: the line (milestones,
   timeline, chain), provenance, estimates, automated answers, review
   queue, confidence, reported / confirmed. Prefix: dl-. Tokens only.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Shared small parts
   --------------------------------------------------------------------- */

/* Source chip: outline pill, icon + plain word, optional mono reference */
.dl-src { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); color: var(--text-secondary); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.dl-src .dl-icon { width: 16px; height: 16px; color: var(--text); }
.dl-src__ref { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 400; color: var(--text-muted); padding-left: 7px; margin-left: 1px; box-shadow: inset 1px 0 0 var(--border); }
[data-density="compact"] .dl-src { min-height: 22px; padding: 1px 8px 1px 6px; font-size: 12px; line-height: 16px; gap: 4px; }
[data-density="compact"] .dl-src .dl-icon { width: 14px; height: 14px; }

/* Metadata line: chips and words separated by space (never leading separators) */
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.dl-meta > * { white-space: nowrap; }
[data-density="compact"] .dl-meta { font-size: 13px; line-height: 18px; gap: 4px 10px; }
.dl-meta time { font-variant-numeric: tabular-nums lining-nums; }

/* "Why?" — opens provenance. A quiet outline pill, always the same words */
.dl-why {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; min-width: 32px; padding: 0 12px 0 9px; margin: 0;
  border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--border);
  color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast), transform var(--duration-fast) var(--ease-standard);
}
.dl-why .dl-icon { width: 16px; height: 16px; }
.dl-why:hover, .dl-why.is-hover { background: var(--surface-hover); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dl-why:active { transform: scale(0.97); }
.dl-why[aria-expanded="true"] { background: var(--action-primary); color: var(--on-action-primary); box-shadow: none; }
[data-density="compact"] .dl-why { min-height: 26px; min-width: 26px; padding: 0 9px 0 7px; font-size: 12px; line-height: 16px; gap: 4px; }
[data-density="compact"] .dl-why .dl-icon { width: 14px; height: 14px; }

/* Inline glossary term: dotted underline, a toggletip with the plain-English meaning */
.dl-gloss {
  display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: help; letter-spacing: inherit;
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--text-muted);
  border-radius: 4px; text-align: inherit;
}
.dl-gloss:hover { text-decoration-color: var(--text); }
.dl-gloss[aria-expanded="true"] { text-decoration-style: solid; text-decoration-color: var(--lead); }

/* Toggletip bubble (positioned by the toggletip controller) */
.dl-tip {
  position: fixed; z-index: var(--z-tooltip, 600); max-width: min(300px, calc(100vw - 24px));
  padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--text-inverse);
  font-size: 14px; line-height: 20px; font-weight: 400; box-shadow: var(--shadow-md); text-align: left; white-space: normal;
  animation: dl-rise var(--duration-base) var(--ease-standard) both;
}
.dl-tip[hidden] { display: none; }

/* Redaction bar — where bank details were removed */
.dl-redact {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 7px; margin: 0 2px; border-radius: 999px;
  background: var(--redact-bg); color: var(--redact-fg); font-family: var(--font-sans); font-style: normal;
  font-size: 13px; line-height: 20px; font-weight: 600; vertical-align: baseline;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dl-redact .dl-icon { width: 14px; height: 14px; }

/* Quoted original excerpt (email / document / check-in text): soft tile, an open-quote mark, no side bar */
.dl-quote { position: relative; margin: 0; padding: 14px 16px 14px 40px; background: var(--quote-bg, var(--surface)); border-radius: var(--radius-md); color: var(--text); font-size: 15px; line-height: 24px; }
.dl-quote::before { content: "\201C"; position: absolute; left: 13px; top: 6px; font-family: var(--font-display); font-size: 40px; line-height: 40px; font-weight: 650; color: var(--lead); }
.dl-quote p { margin: 0; }
.dl-quote p + p { margin-top: 8px; }
.dl-quote mark, .dl-mark { background: var(--lead-soft); color: var(--text); padding: 1px 3px; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--lead); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-density="compact"] .dl-quote { padding: 9px 12px 9px 32px; font-size: 13px; line-height: 20px; border-radius: 10px; }
[data-density="compact"] .dl-quote::before { left: 10px; top: 3px; font-size: 30px; line-height: 32px; }

/* Small label tags used on timeline entries / facts */
.dl-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 0 10px 0 7px; min-height: 24px; border-radius: 999px;
  background: var(--surface-sunken); color: var(--text-secondary);
  font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; vertical-align: middle;
}
.dl-tag .dl-icon { width: 14px; height: 14px; }
.dl-tag--done { background: var(--status-done-bg); color: var(--status-done-fg); }
.dl-tag--reported { background: transparent; box-shadow: inset 0 0 0 1.5px var(--status-reported-border); color: var(--status-reported-fg); }
.dl-tag--reported { background-image: none; outline: 1.5px dashed var(--status-reported-border); outline-offset: -1.5px; box-shadow: none; }
.dl-tag--correction { background: var(--status-in-progress-bg); color: var(--status-in-progress-fg); }
.dl-tag--superseded { background: var(--surface-sunken); color: var(--text-secondary); }
.dl-tag--checking { background: var(--status-checking-bg); color: var(--status-checking-fg); }
.dl-tag--lead { background: var(--lead); color: var(--on-lead); }

/* ---------------------------------------------------------------------
   ConfidenceIndicator — three pill segments + the word. Low is never red.
   --------------------------------------------------------------------- */
.dl-conf { --conf-fill: var(--confidence-high); display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.dl-conf--medium { --conf-fill: var(--confidence-medium); }
.dl-conf--low { --conf-fill: var(--confidence-low); }
.dl-conf__bar { display: inline-flex; gap: 3px; align-items: center; }
.dl-conf__bar i { display: block; width: 12px; height: 6px; border-radius: 999px; background: var(--confidence-track); transition: background-color var(--duration-base) var(--ease-standard); }
.dl-conf__bar i:nth-child(1) { background: var(--conf-fill); }
.dl-conf--high .dl-conf__bar i:nth-child(2), .dl-conf--medium .dl-conf__bar i:nth-child(2) { background: var(--conf-fill); }
.dl-conf--high .dl-conf__bar i:nth-child(3) { background: var(--conf-fill); }
.dl-conf__word { color: var(--text); }
.dl-conf__word-pre { font-weight: 400; color: var(--text-secondary); }
.dl-conf--sm { gap: 5px; font-size: 12px; line-height: 16px; }
.dl-conf--sm .dl-conf__bar { gap: 2px; }
.dl-conf--sm .dl-conf__bar i { width: 8px; height: 5px; }
[data-density="compact"] .dl-conf { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-conf.dl-conf--sm { font-size: 12px; line-height: 16px; }
.dl-conf--lg { gap: 10px; font-size: 16px; line-height: 24px; }
.dl-conf--lg .dl-conf__bar { gap: 4px; }
.dl-conf--lg .dl-conf__bar i { width: 20px; height: 8px; }
/* Hero: the word in display type, for answer cards and estimates */
.dl-conf--xl { gap: 12px; font-family: var(--font-display); font-size: 24px; line-height: 28px; letter-spacing: -0.03em; }
.dl-conf--xl .dl-conf__bar { gap: 4px; }
.dl-conf--xl .dl-conf__bar i { width: 26px; height: 10px; }
/* Dots-only (table cell): the word stays for screen readers */
.dl-conf--dots .dl-conf__bar i { width: 7px; height: 7px; }
/* As a toggletip trigger */
button.dl-conf { padding: 3px 8px; margin: -3px -8px; border: 0; background: transparent; border-radius: 999px; cursor: help; font-family: inherit; min-height: 24px; }
button.dl-conf:hover { background: var(--surface-hover); }
button.dl-conf .dl-conf__word { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--text-muted); }
/* Explained: in drawers and detail panels */
.dl-conf-detail { display: flex; flex-direction: column; gap: 4px; }
.dl-conf-detail__why { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-conf-detail__why { font-size: 13px; line-height: 18px; }
@media (forced-colors: active) {
  .dl-conf__bar i { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .dl-conf__bar i:nth-child(1), .dl-conf--high .dl-conf__bar i:nth-child(2), .dl-conf--medium .dl-conf__bar i:nth-child(2), .dl-conf--high .dl-conf__bar i:nth-child(3) { background: CanvasText; }
}

/* ---------------------------------------------------------------------
   ReportedConfirmed — fact tiles. Confirmed = solid soft tile + check disc;
   reported = dashed outline tile, no fill, speech disc.
   --------------------------------------------------------------------- */
.dl-fact {
  --fact-bg: var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start;
  padding: 16px 18px; border-radius: 20px; background: var(--fact-bg); position: relative;
  transition: background-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.dl-demo__pane .dl-fact, .dl-card .dl-fact { --fact-bg: var(--surface-raised); }
.dl-fact__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-fact__label { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-fact__value { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: lining-nums; }
.dl-fact__by { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-fact__by .dl-icon { width: 22px; height: 22px; padding: 3px; flex: none; border-radius: 50%; }
.dl-fact__by strong { font-weight: 600; color: var(--text); }
.dl-fact__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dl-fact--confirmed .dl-fact__by .dl-icon { background: var(--status-done-bg); color: var(--status-done-fg); }
.dl-fact--reported { background: transparent; box-shadow: none; outline: 1.5px dashed var(--status-reported-border); outline-offset: -1.5px; }
.dl-fact--reported .dl-fact__value { color: var(--text); }
.dl-fact--reported .dl-fact__by { color: var(--status-reported-fg); }
.dl-fact--reported .dl-fact__by .dl-icon { color: var(--status-reported-fg); outline: 1.5px dashed var(--status-reported-border); outline-offset: -1.5px; }
.dl-fact--confirming { outline-style: solid; outline-color: var(--border-strong); }
.dl-fact--just-confirmed { background: var(--status-done-bg); animation: dl-fact-ok var(--duration-slow) var(--ease-standard); }
.dl-fact--just-confirmed .dl-fact__by .dl-icon { background: var(--surface-raised); animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
@keyframes dl-fact-ok { 0% { transform: scale(0.98); } 60% { transform: scale(1.01); } 100% { transform: none; } }
.dl-fact__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-subtle); }
.dl-fact__note { font-size: 13px; line-height: 18px; color: var(--text-muted); }
[data-density="compact"] .dl-fact { padding: 12px 14px; gap: 2px 12px; border-radius: 16px; }
[data-density="compact"] .dl-fact__label { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-fact__value { font-size: 17px; line-height: 22px; letter-spacing: -0.02em; }
[data-density="compact"] .dl-fact__by { font-size: 13px; line-height: 18px; margin-top: 4px; gap: 6px; }
[data-density="compact"] .dl-fact__by .dl-icon { width: 18px; height: 18px; padding: 2px; }
[data-density="compact"] .dl-fact__actions { padding-top: 10px; margin-top: 4px; }
@media (max-width: 420px) { .dl-fact { grid-template-columns: minmax(0, 1fr); } .dl-fact__side { flex-direction: row; align-items: center; justify-content: space-between; } }
.dl-fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------------
   EventTimeline — a thick ink line, newest at the top in a lead node.
   <div class="dl-tl"><section class="dl-tl__group"><h3 class="dl-tl__day">Today …
     <ol class="dl-tl__list"><li class="dl-tl__item">…
   --------------------------------------------------------------------- */
.dl-tl {
  --tl-x: 14px; --tl-gutter: 44px; --tl-rail: 4px; --tl-node: 18px; --tl-node-y: 13px; --tl-gap: 26px; --tl-ring: 3.5px; --tl-bg: var(--surface-canvas);
  position: relative; display: flex; flex-direction: column;
}
.dl-tl__group { position: relative; margin: 0; }
.dl-tl__list { list-style: none; margin: 0; padding: 0; }
.dl-tl__day {
  position: relative; margin: 0; padding: 2px 0 14px var(--tl-gutter);
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.dl-tl__day-date { color: var(--text-muted); margin-left: 8px; letter-spacing: 0.04em; }
/* The line runs through day labels (not above the newest entry) */
.dl-tl__day::before { content: ""; position: absolute; left: calc(var(--tl-x) - var(--tl-rail) / 2); top: 0; bottom: 0; width: var(--tl-rail); background: var(--timeline-rail-done); }
.dl-tl__group:first-child .dl-tl__day::before { content: none; }

.dl-tl__item { position: relative; padding: 0 0 var(--tl-gap) var(--tl-gutter); min-width: 0; animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-tl__item::before { content: ""; position: absolute; left: calc(var(--tl-x) - var(--tl-rail) / 2); top: 0; bottom: 0; width: var(--tl-rail); background: var(--timeline-rail-done); }
.dl-tl__group:first-child .dl-tl__item:first-child::before { top: var(--tl-node-y); border-radius: 999px 999px 0 0; }
.dl-tl__group:last-child .dl-tl__item:last-child::before { bottom: auto; height: var(--tl-node-y); border-radius: 0 0 999px 999px; }
.dl-tl__group:first-child:last-child .dl-tl__list > .dl-tl__item:only-child::before { content: none; }
.dl-tl__group:last-child .dl-tl__item:last-child { padding-bottom: 0; }

/* Node: hollow ring on the line; type changes the node, the tag says what it means */
.dl-tl__node {
  position: absolute; z-index: 1; left: calc(var(--tl-x) - var(--tl-node) / 2); top: calc(var(--tl-node-y) - var(--tl-node) / 2);
  width: var(--tl-node); height: var(--tl-node); border-radius: 50%;
  background: var(--tl-bg); box-shadow: inset 0 0 0 var(--tl-ring) var(--timeline-rail-done);
  animation: dl-pop var(--duration-slow) var(--ease-standard) both;
}
/* Newest entry: the lead node, with a soft halo */
.dl-tl__group:first-child .dl-tl__item:first-child:not(.dl-tl__item--milestone) .dl-tl__node { --tl-node: 22px; outline: 0; background: var(--lead); box-shadow: inset 0 0 0 var(--tl-ring) var(--timeline-rail-done), 0 0 0 6px var(--lead-soft); }
.dl-tl__item--milestone { --tl-node: 34px; --tl-node-y: 15px; }
.dl-tl__item--milestone .dl-tl__node { display: flex; align-items: center; justify-content: center; background: var(--timeline-rail-done); box-shadow: 0 0 0 4px var(--tl-bg); color: var(--tl-bg); --icon-dot: var(--lead); }
.dl-tl__item--milestone .dl-tl__node .dl-icon { width: 18px; height: 18px; }
.dl-tl__item--reported .dl-tl__node { background: var(--tl-bg); box-shadow: none; outline: 2.5px dashed var(--status-reported-border); outline-offset: -2.5px; }
.dl-tl__item--superseded .dl-tl__node { background: var(--tl-bg); box-shadow: inset 0 0 0 var(--tl-ring) var(--border-strong); }
.dl-tl__item--correction .dl-tl__node { background: var(--status-in-progress-fg); box-shadow: inset 0 0 0 var(--tl-ring) var(--timeline-rail-done), 0 0 0 5px var(--status-in-progress-bg); }
.dl-tl__item--checking .dl-tl__node { background: var(--status-checking-fg); }

.dl-tl__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-tl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dl-tl__what { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-wrap: pretty; }
.dl-tl__group:first-child .dl-tl__item:first-child .dl-tl__what { font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
.dl-tl__detail { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.dl-tl__who { margin: 0; font-size: 15px; line-height: 22px; color: var(--text); }
.dl-tl__firm { color: var(--text-secondary); }
.dl-tl__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.dl-tl__foot > .dl-meta { display: contents; }
.dl-tl__foot > .dl-why { margin-left: auto; }
.dl-tl__relate { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-tl__relate .dl-link { font-weight: 600; }
.dl-tl__item:target .dl-tl__body, .dl-tl__item.is-target .dl-tl__body { background: var(--lead-soft); box-shadow: 0 0 0 8px var(--lead-soft); border-radius: 8px; }

/* Reported by a home mover: dashed outline tile, no fill */
.dl-tl__item--reported .dl-tl__body { padding: 12px 14px; margin-top: -10px; outline: 1.5px dashed var(--status-reported-border); outline-offset: -1.5px; border-radius: 16px; }
.dl-tl__item--reported { --tl-node-y: 22px; }
/* Superseded: muted, never struck through (still readable, still evidence) */
.dl-tl__item--superseded .dl-tl__what { color: var(--text-secondary); font-weight: 500; }
.dl-tl__item--superseded .dl-tl__who, .dl-tl__item--superseded .dl-tl__firm { color: var(--text-muted); }

/* Compact: time in its own column left of the line */
[data-density="compact"] .dl-tl, .dl-tl--compact { --tl-x: 66px; --tl-gutter: 86px; --tl-rail: 3px; --tl-node: 14px; --tl-node-y: 10px; --tl-gap: 16px; --tl-ring: 3px; }
[data-density="compact"] .dl-tl__item--milestone, .dl-tl--compact .dl-tl__item--milestone { --tl-node: 26px; --tl-node-y: 11px; }
[data-density="compact"] .dl-tl__group:first-child .dl-tl__item:first-child:not(.dl-tl__item--milestone) .dl-tl__node { --tl-node: 18px; box-shadow: inset 0 0 0 var(--tl-ring) var(--timeline-rail-done), 0 0 0 4px var(--lead-soft); }
[data-density="compact"] .dl-tl__item--milestone .dl-tl__node .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-tl__day, .dl-tl--compact .dl-tl__day { font-size: 11px; line-height: 16px; padding: 2px 0 10px var(--tl-gutter); }
[data-density="compact"] .dl-tl__what, [data-density="compact"] .dl-tl__group:first-child .dl-tl__item:first-child .dl-tl__what { font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
[data-density="compact"] .dl-tl__who, [data-density="compact"] .dl-tl__detail { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-tl__relate { font-size: 13px; line-height: 18px; margin-top: 2px; }
[data-density="compact"] .dl-tl__tags { margin-bottom: 3px; gap: 4px; }
[data-density="compact"] .dl-tl__foot { gap: 4px 8px; margin-top: 5px; font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-tl__item--reported .dl-tl__body { padding: 8px 10px; margin-top: -7px; border-radius: 12px; }
[data-density="compact"] .dl-tl__item--reported { --tl-node-y: 16px; }
[data-density="compact"] .dl-tl__item--correction .dl-tl__node { box-shadow: inset 0 0 0 var(--tl-ring) var(--timeline-rail-done), 0 0 0 3px var(--status-in-progress-bg); }
.dl-tl__clock { display: none; }
[data-density="compact"] .dl-tl__clock, .dl-tl--compact .dl-tl__clock {
  display: block; position: absolute; left: 0; top: calc(var(--tl-node-y) - 9px); width: 46px; text-align: right;
  font-size: 12px; line-height: 18px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums lining-nums;
}
[data-density="compact"] .dl-tl__fulltime { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0 !important; }
.dl-tl .dl-tl__item:nth-child(2) { animation-delay: 60ms; } .dl-tl .dl-tl__item:nth-child(3) { animation-delay: 120ms; } .dl-tl .dl-tl__item:nth-child(n+4) { animation-delay: 180ms; }

/* ---------------------------------------------------------------------
   MilestoneTracker — the line. Thick rounded ink line through milestone
   circles: done = filled ink + check, current = lead node with a halo,
   upcoming = hollow. Vertical by default, horizontal when the container
   is wide (≥620px). The travelled line draws itself, nodes pop in turn.
   --------------------------------------------------------------------- */
.dl-ms { container: dl-ms / inline-size; --ms-node: 44px; --ms-line: 6px; --ms-hole: var(--surface-canvas); --ms-step: 110ms; }
.dl-ms__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-ms__step { --i: 0; position: relative; display: grid; grid-template-columns: var(--ms-node) minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; min-width: 0; }
.dl-ms__step:nth-child(2) { --i: 1; } .dl-ms__step:nth-child(3) { --i: 2; } .dl-ms__step:nth-child(4) { --i: 3; } .dl-ms__step:nth-child(5) { --i: 4; }
.dl-ms__step:nth-child(6) { --i: 5; } .dl-ms__step:nth-child(7) { --i: 6; } .dl-ms__step:nth-child(8) { --i: 7; } .dl-ms__step:nth-child(9) { --i: 8; }
.dl-ms__step:last-child { padding-bottom: 0; }
/* Connector: from this node's centre to the next node's centre (under the nodes) */
.dl-ms__step::after { content: ""; position: absolute; z-index: 0; left: calc(var(--ms-node) / 2 - var(--ms-line) / 2); top: calc(var(--ms-node) / 2); bottom: calc(var(--ms-node) / -2); width: var(--ms-line); background: var(--timeline-rail); }
.dl-ms__step:last-child::after { content: none; }
/* The travelled line: ink, drawn in order */
.dl-ms__step--done::after { background: var(--timeline-rail-done); transform-origin: 50% 0; animation: dl-ms-draw-y var(--duration-slow) var(--ease-standard) both; animation-delay: calc(var(--i) * var(--ms-step) + 80ms); }
@keyframes dl-ms-draw-y { from { transform: scaleY(0); } }
@keyframes dl-ms-draw-x { from { transform: scaleX(0); } }
.dl-ms__step:first-child::before { content: none; }

.dl-ms__node {
  position: relative; z-index: 1; width: var(--ms-node); height: var(--ms-node); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ms-hole); color: var(--text-muted); box-shadow: inset 0 0 0 3px var(--timeline-rail);
  transform-box: fill-box; transform-origin: center;
  animation: dl-pop var(--duration-slow) var(--ease-standard) both; animation-delay: calc(var(--i) * var(--ms-step));
}
.dl-ms__node > .dl-icon { width: 20px; height: 20px; }
.dl-ms__badge {
  position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--ms-hole); box-shadow: 0 0 0 2px var(--ms-hole); --dl-icon-knock: var(--ms-hole);
}
.dl-ms__badge .dl-icon { width: 18px; height: 18px; }
.dl-ms__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 9px; }
.dl-ms__name { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.dl-ms__state { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-ms__state .dl-icon { width: 16px; height: 16px; flex: none; }
.dl-ms__state-label { font-weight: 600; }

/* Done: filled ink with a check */
.dl-ms__step--done .dl-ms__node { background: var(--timeline-rail-done); color: var(--ms-hole); box-shadow: none; }
.dl-ms__step--done .dl-ms__node > .dl-icon svg { stroke-width: 3; }
.dl-ms__step--done .dl-ms__state { color: var(--status-done-fg); }
/* Current: the lead node pops, sits a little larger, with a soft halo that breathes */
.dl-ms__step[aria-current="step"] .dl-ms__node { background: var(--lead); color: var(--on-lead); --icon-dot: var(--on-lead); box-shadow: inset 0 0 0 3.5px var(--timeline-rail-done), 0 0 0 7px var(--lead-soft); scale: 1.14; z-index: 2; }
.dl-ms__step[aria-current="step"] .dl-ms__node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; box-shadow: 0 0 0 0 var(--lead); opacity: .55; animation: dl-ms-halo 2.4s var(--ease-standard) calc(var(--i) * var(--ms-step) + 600ms) infinite; }
@keyframes dl-ms-halo { 0% { box-shadow: 0 0 0 0 var(--lead); opacity: .5; } 70%, 100% { box-shadow: 0 0 0 12px var(--lead); opacity: 0; } }
.dl-ms__step[aria-current="step"] .dl-ms__name { font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
.dl-ms__step[aria-current="step"] .dl-ms__text { padding-top: 7px; }
/* Upcoming: hollow ring. Status colours only when something needs attention */
.dl-ms__step--in-progress .dl-ms__state { color: var(--status-in-progress-fg); }
.dl-ms__step--at-risk .dl-ms__node { background: var(--status-at-risk-bg); color: var(--status-at-risk-fg); box-shadow: inset 0 0 0 3px var(--status-at-risk-fg); }
.dl-ms__step--at-risk .dl-ms__badge, .dl-ms__step--at-risk .dl-ms__state { color: var(--status-at-risk-fg); }
.dl-ms__step--blocked .dl-ms__node { background: var(--status-blocked-bg); color: var(--status-blocked-fg); box-shadow: inset 0 0 0 3px var(--status-blocked-border); }
.dl-ms__step--blocked .dl-ms__badge, .dl-ms__step--blocked .dl-ms__state { color: var(--status-blocked-fg); }
.dl-ms__step--reported .dl-ms__node { box-shadow: none; outline: 2.5px dashed var(--status-reported-border); outline-offset: -2.5px; color: var(--status-reported-fg); }
.dl-ms__step--reported .dl-ms__badge, .dl-ms__step--reported .dl-ms__state { color: var(--status-reported-fg); }
.dl-ms__step--reported[aria-current="step"] .dl-ms__node { outline: 2px dashed var(--status-reported-border); outline-offset: 5px; box-shadow: inset 0 0 0 3.5px var(--timeline-rail-done); }
.dl-ms__step--reported[aria-current="step"] .dl-ms__node::after { content: none; }
.dl-ms__step--not-started .dl-ms__name { color: var(--text-secondary); font-weight: 500; }
.dl-ms__step--not-started .dl-ms__state { color: var(--text-muted); }
.dl-ms__date { font-variant-numeric: tabular-nums lining-nums; font-weight: 400; color: var(--text-secondary); }
.dl-ms__now { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--lead); color: var(--on-lead); font-size: 12px; line-height: 16px; font-weight: 700; }

/* Optional stage hero above a tracker: pictogram + where you are, in display type */
.dl-ms-hero { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dl-ms-hero__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-ms-hero__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.045em; color: var(--text); text-wrap: balance; }
.dl-ms-hero .dl-picto { animation: dl-pop var(--duration-slow) var(--ease-standard) both; }

/* Journey band: the line as an illustration (compact, home mover). Built by the "ms-journey" controller */
.dl-ms-journey { background: var(--lead-soft); border-radius: var(--radius-lg); padding: 14px 16px 10px; max-width: var(--mover-max, 520px); }
.dl-ms-journey svg { display: block; width: 100%; height: auto; overflow: visible; }
.dl-ms-journey { --j-hole: var(--surface-raised); }
.dl-ms-journey .j-rail { stroke: var(--j-hole); }
.dl-ms-journey .j-line { stroke: var(--timeline-rail-done); }
.dl-ms-journey .j-done { fill: var(--timeline-rail-done); }
.dl-ms-journey .j-next { fill: var(--j-hole); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl-ms-journey { --j-hole: var(--timeline-rail); } }
:root[data-theme="dark"] .dl-ms-journey { --j-hole: var(--timeline-rail); }
.dl-ms-journey .j-now { fill: var(--lead); stroke: var(--timeline-rail-done); }
.dl-ms-journey .j-arch { fill: none; stroke: var(--timeline-rail-done); }
.dl-ms-journey .j-label { font-family: var(--font-sans); font-weight: 700; font-size: 13px; fill: var(--text); }
.dl-ms-journey .j-count { font-family: var(--font-sans); font-size: 12px; fill: var(--text-secondary); font-variant-numeric: tabular-nums; }

@container dl-ms (min-width: 620px) {
  .dl-ms__list { flex-direction: row; }
  .dl-ms__step { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 0 6px; row-gap: 14px; align-content: start; }
  .dl-ms__step::after { left: 50%; right: -50%; top: calc(var(--ms-node) / 2 - var(--ms-line) / 2); bottom: auto; width: auto; height: var(--ms-line); }
  .dl-ms__step--done::after { transform-origin: 0 50%; animation-name: dl-ms-draw-x; }
  .dl-ms__step:first-child::after { border-radius: 999px 0 0 999px; }
  .dl-ms__text, .dl-ms__step[aria-current="step"] .dl-ms__text { padding-top: 0; align-items: center; }
  .dl-ms__name { font-size: 15px; line-height: 20px; }
  .dl-ms__step[aria-current="step"] .dl-ms__name { font-size: 19px; line-height: 22px; }
  .dl-ms__state { justify-content: center; gap: 0 4px; font-size: 13px; line-height: 18px; }
  .dl-ms__state .dl-icon { width: 14px; height: 14px; }
  .dl-ms__date { flex-basis: 100%; text-align: center; }
  .dl-ms__now { margin: 6px 0 0; align-self: center; }
}
/* Compact: smaller nodes, thinner line, quieter type */
[data-density="compact"] .dl-ms { --ms-node: 30px; --ms-line: 4px; --ms-step: 80ms; }
[data-density="compact"] .dl-ms__node > .dl-icon { width: 15px; height: 15px; }
[data-density="compact"] .dl-ms__node { box-shadow: inset 0 0 0 2.5px var(--timeline-rail); }
[data-density="compact"] .dl-ms__step--done .dl-ms__node { box-shadow: none; }
[data-density="compact"] .dl-ms__step--at-risk .dl-ms__node { box-shadow: inset 0 0 0 2.5px var(--status-at-risk-fg); }
[data-density="compact"] .dl-ms__step--blocked .dl-ms__node { box-shadow: inset 0 0 0 2.5px var(--status-blocked-border); }
[data-density="compact"] .dl-ms__step--reported .dl-ms__node { box-shadow: none; outline-width: 2px; outline-offset: -2px; }
[data-density="compact"] .dl-ms__step[aria-current="step"] .dl-ms__node { box-shadow: inset 0 0 0 3px var(--timeline-rail-done), 0 0 0 5px var(--lead-soft); scale: 1.1; }
[data-density="compact"] .dl-ms__step--reported[aria-current="step"] .dl-ms__node { box-shadow: inset 0 0 0 3px var(--timeline-rail-done); outline-offset: 4px; }
[data-density="compact"] .dl-ms__badge { width: 16px; height: 16px; right: -5px; bottom: -5px; }
[data-density="compact"] .dl-ms__badge .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-ms__step { padding-bottom: 12px; column-gap: 12px; }
[data-density="compact"] .dl-ms__text, [data-density="compact"] .dl-ms__step[aria-current="step"] .dl-ms__text { padding-top: 5px; gap: 0; }
[data-density="compact"] .dl-ms__name, [data-density="compact"] .dl-ms__step[aria-current="step"] .dl-ms__name { font-family: var(--font-sans); font-size: 13px; line-height: 18px; letter-spacing: 0; }
[data-density="compact"] .dl-ms__step[aria-current="step"] .dl-ms__name { font-weight: 700; }
[data-density="compact"] .dl-ms__state { font-size: 12px; line-height: 16px; gap: 0 4px; }
[data-density="compact"] .dl-ms__state .dl-icon { width: 14px; height: 14px; }
[data-density="compact"] .dl-ms__now { margin-top: 3px; padding: 0 8px; font-size: 11px; }
@container dl-ms (min-width: 620px) {
  [data-density="compact"] .dl-ms__step { padding-bottom: 0; row-gap: 8px; }
  [data-density="compact"] .dl-ms__text, [data-density="compact"] .dl-ms__step[aria-current="step"] .dl-ms__text { padding-top: 0; }
}
/* The blocked / at-risk explanation below a horizontal tracker */
.dl-ms__notes { list-style: none; margin: 20px 0 0; padding: 0; display: none; flex-wrap: wrap; gap: 8px; }
.dl-ms__note { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--status-not-started-bg); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-ms__note .dl-icon { width: 16px; height: 16px; flex: none; }
.dl-ms__note strong { color: var(--text); }
.dl-ms__note--blocked { background: var(--status-blocked-bg); }
.dl-ms__note--blocked .dl-icon { color: var(--status-blocked-fg); }
.dl-ms__note--at-risk { background: var(--status-at-risk-bg); }
.dl-ms__note--at-risk .dl-icon { color: var(--status-at-risk-fg); }
[data-density="compact"] .dl-ms__notes { margin-top: 14px; gap: 6px; }
[data-density="compact"] .dl-ms__note { font-size: 12px; line-height: 16px; padding: 4px 12px 4px 8px; }
/* Reason inline when vertical; moved to the notes row when horizontal */
@container dl-ms (min-width: 620px) {
  .dl-ms__reason { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dl-ms__notes { display: flex; }
}

/* ---------------------------------------------------------------------
   ChainView — linked sales as doorways (arches) on one line.
   Your sale is the lead arch; a delay is amber, a true block is red,
   a sale we can't see is a dashed doorway on a dashed stretch of line.
   Vertical on phones, a street of arches when wide (≥720px).
   --------------------------------------------------------------------- */
.dl-chain { container: dl-chain / inline-size; --chain-card: var(--surface); --arch-w: 46px; --arch-h: 54px; --chain-line: 6px; display: flex; flex-direction: column; gap: 18px; }
.dl-demo__pane .dl-chain, .dl-card .dl-chain { --chain-card: var(--surface-raised); }
.dl-chain__summary { margin: 0; font-size: 17px; line-height: 26px; color: var(--text); max-width: var(--measure); text-wrap: pretty; }
.dl-chain__summary strong { font-weight: 700; }
.dl-chain__axis { display: none; }
.dl-chain__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-chain__link { --seg: var(--timeline-rail-done); position: relative; display: grid; grid-template-columns: var(--arch-w) minmax(0, 1fr); column-gap: 14px; align-items: start; min-width: 0; animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-chain__link:nth-child(2) { animation-delay: 70ms; } .dl-chain__link:nth-child(3) { animation-delay: 140ms; } .dl-chain__link:nth-child(4) { animation-delay: 210ms; } .dl-chain__link:nth-child(n+5) { animation-delay: 280ms; }
/* The line: from this arch's middle to the next arch's middle */
.dl-chain__link::after { content: ""; position: absolute; z-index: 0; left: calc(var(--arch-w) / 2 - var(--chain-line) / 2); top: calc(var(--arch-h) / 2 + 4px); height: calc(100% + 12px); width: var(--chain-line); background: var(--seg); }
.dl-chain__link:last-child::after { content: none; }
.dl-chain__link--not-shared::after, .dl-chain__link:has(+ .dl-chain__link--not-shared)::after { background: repeating-linear-gradient(180deg, var(--seg) 0 9px, transparent 9px 17px); }
.dl-chain__link:has(.dl-chain__card--blocked)::after, .dl-chain__link:has(+ .dl-chain__link .dl-chain__card--blocked)::after { --seg: var(--status-blocked-fg); }

/* The doorway */
.dl-chain__arch {
  position: relative; z-index: 1; display: block; width: var(--arch-w); height: var(--arch-h); margin-top: 4px;
  border-radius: 999px 999px 6px 6px; background: var(--surface-canvas); box-shadow: inset 0 0 0 3.5px var(--timeline-rail-done);
}
.dl-chain__arch::after { content: ""; position: absolute; right: 9px; top: 58%; width: 8px; height: 8px; border-radius: 50%; background: var(--timeline-rail-done); }
.dl-chain__link:has(.dl-chain__card--you) .dl-chain__arch { background: var(--lead); box-shadow: inset 0 0 0 3.5px var(--timeline-rail-done), 0 0 0 6px var(--lead-soft); animation: dl-pop var(--duration-slow) var(--ease-standard) 300ms both; }
.dl-chain__link:has(.dl-chain__card--holding) .dl-chain__arch { background: var(--status-at-risk-bg); box-shadow: inset 0 0 0 3.5px var(--status-at-risk-fg), 0 0 0 6px var(--status-at-risk-bg); }
.dl-chain__link:has(.dl-chain__card--holding) .dl-chain__arch::after { background: var(--status-at-risk-fg); }
.dl-chain__link:has(.dl-chain__card--blocked) .dl-chain__arch { background: var(--status-blocked-fg); box-shadow: inset 0 0 0 3.5px var(--status-blocked-fg), 0 0 0 6px var(--status-blocked-bg); }
.dl-chain__link:has(.dl-chain__card--blocked) .dl-chain__arch::after { background: var(--status-blocked-bg); }
.dl-chain__link--not-shared .dl-chain__arch { background: var(--surface-canvas); box-shadow: none; outline: 3px dashed var(--border-strong); outline-offset: -3px; }
.dl-chain__link--not-shared .dl-chain__arch::after { content: none; }

.dl-chain__card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 100%;
  padding: 14px 16px 16px; border-radius: 20px; background: var(--chain-card);
}
.dl-chain__pos { margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-chain__name { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; }
.dl-chain__name small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); }
.dl-chain__stage { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-chain__stage .dl-icon { width: 18px; height: 18px; flex: none; color: var(--text); }
.dl-chain__stage strong { color: var(--text); font-weight: 600; }
.dl-chain__card .dl-status { align-self: flex-start; white-space: normal; margin-top: 2px; }
.dl-chain__card--you { background: var(--lead-soft); }
.dl-chain__you { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; background: var(--lead); color: var(--on-lead); font-size: 12px; line-height: 16px; font-weight: 700; }
/* Bottleneck: at-risk tokens; blocked only if truly blocked */
.dl-chain__card--holding { background: var(--status-at-risk-bg); }
.dl-chain__card--holding.dl-chain__card--blocked { background: var(--status-blocked-bg); }
.dl-chain__holding { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin: 0; padding: 2px 10px 2px 7px; border-radius: 999px; background: var(--status-at-risk-fg); color: var(--status-at-risk-bg); font-size: 12px; line-height: 18px; font-weight: 700; --dl-icon-knock: var(--status-at-risk-fg); }
.dl-chain__holding .dl-icon { width: 14px; height: 14px; }
.dl-chain__card--blocked .dl-chain__holding { background: var(--status-blocked-fg); color: var(--status-blocked-bg); --dl-icon-knock: var(--status-blocked-fg); }
.dl-chain__card--holding .dl-status { background: var(--surface-canvas); }
.dl-chain__card--not-shared { background: transparent; outline: 1.5px dashed var(--status-not-shared-border); outline-offset: -1.5px; }
.dl-chain__card--not-shared .dl-chain__name { color: var(--text-secondary); }
.dl-chain__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-secondary); }

@container dl-chain (min-width: 720px) {
  .dl-chain__axis { display: flex; justify-content: space-between; gap: 16px; margin-bottom: -6px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
  .dl-chain__axis span::before { content: "\2190  "; } .dl-chain__axis span:last-child::before { content: none; } .dl-chain__axis span:last-child::after { content: "  \2192"; }
  .dl-chain__list { flex-direction: row; align-items: stretch; gap: 0; }
  .dl-chain__link { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); row-gap: 14px; justify-items: center; padding: 0 5px; }
  .dl-chain__link::after { left: 50%; top: calc(var(--arch-h) / 2 + 4px - var(--chain-line) / 2); width: 100%; height: var(--chain-line); }
  .dl-chain__link--not-shared::after, .dl-chain__link:has(+ .dl-chain__link--not-shared)::after { background: repeating-linear-gradient(90deg, var(--seg) 0 9px, transparent 9px 17px); }
  .dl-chain__link { grid-template-rows: auto 1fr; }
  .dl-chain__card { width: 100%; }
  .dl-chain__you { position: static; align-self: flex-start; order: -1; margin-bottom: 2px; }
}
[data-density="compact"] .dl-chain { --arch-w: 34px; --arch-h: 40px; --chain-line: 4px; gap: 14px; }
[data-density="compact"] .dl-chain__arch { box-shadow: inset 0 0 0 3px var(--timeline-rail-done); }
[data-density="compact"] .dl-chain__arch::after { width: 6px; height: 6px; right: 7px; }
[data-density="compact"] .dl-chain__link:has(.dl-chain__card--you) .dl-chain__arch { box-shadow: inset 0 0 0 3px var(--timeline-rail-done), 0 0 0 4px var(--lead-soft); }
[data-density="compact"] .dl-chain__link:has(.dl-chain__card--holding) .dl-chain__arch { box-shadow: inset 0 0 0 3px var(--status-at-risk-fg), 0 0 0 4px var(--status-at-risk-bg); }
[data-density="compact"] .dl-chain__link:has(.dl-chain__card--blocked) .dl-chain__arch { box-shadow: inset 0 0 0 3px var(--status-blocked-fg), 0 0 0 4px var(--status-blocked-bg); }
[data-density="compact"] .dl-chain__list { gap: 8px; }
[data-density="compact"] .dl-chain__link { column-gap: 10px; }
[data-density="compact"] .dl-chain__link::after { height: calc(100% + 8px); }
[data-density="compact"] .dl-chain__card { padding: 10px 12px 12px; gap: 4px; border-radius: 14px; }
[data-density="compact"] .dl-chain__name { font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
[data-density="compact"] .dl-chain__name small { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-chain__stage { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-chain__stage .dl-icon { width: 16px; height: 16px; }
[data-density="compact"] .dl-chain__summary { font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-chain__you { top: 9px; right: 9px; padding: 0 8px; font-size: 11px; }
@container dl-chain (min-width: 720px) { [data-density="compact"] .dl-chain__list { gap: 0; } }

/* ---------------------------------------------------------------------
   ProvenanceDrawer — side sheet ≥768px, bottom sheet below
   --------------------------------------------------------------------- */
.dl-prov { position: fixed; inset: 0; z-index: var(--z-drawer, 300); }
.dl-prov[hidden] { display: none; }
.dl-prov__scrim { position: absolute; inset: 0; background: var(--scrim); animation: dl-prov-fade var(--duration-base) var(--ease-standard); }
.dl-prov__sheet {
  position: absolute; display: flex; flex-direction: column; background: var(--surface-raised); color: var(--text);
  box-shadow: var(--shadow-lg); overflow: hidden;
  left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; border-radius: var(--radius-xl, 36px) var(--radius-xl, 36px) 0 0;
  animation: dl-prov-up var(--duration-slow) var(--ease-standard);
}
.dl-prov__sheet:focus { outline: none; }
.dl-prov__grab { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--border-strong); margin: 10px auto 0; flex: none; }
@media (min-width: 768px) {
  .dl-prov__sheet { left: auto; top: 8px; bottom: 8px; right: 8px; width: 440px; max-width: calc(100% - 16px); max-height: none; border-radius: var(--radius-lg); animation-name: dl-prov-in; }
  .dl-prov__grab { display: none; }
}
@keyframes dl-prov-fade { from { opacity: 0; } }
@keyframes dl-prov-up { from { transform: translateY(32px); opacity: 0; } }
@keyframes dl-prov-in { from { transform: translateX(32px); opacity: 0; } }
.dl-prov__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 16px 16px 24px; flex: none; }
.dl-prov__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dl-prov__eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-prov__eyebrow .dl-icon { width: 18px; height: 18px; color: var(--text); }
.dl-prov__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 30px; letter-spacing: -0.04em; color: var(--text); text-wrap: balance; }
.dl-prov__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: background-color var(--duration-fast), transform var(--duration-fast) var(--ease-standard); }
.dl-prov__close:hover { background: var(--surface-hover); transform: rotate(90deg); }
.dl-prov__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 24px; }
.dl-prov__facts { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0; padding: 4px 18px; border-radius: 20px; background: var(--surface); }
.dl-prov__facts dt, .dl-prov__facts dd { padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.dl-prov__facts dt:first-of-type, .dl-prov__facts dt:first-of-type + dd { border-top: 0; }
.dl-prov__facts dt { font-size: 14px; line-height: 22px; color: var(--text-muted); }
.dl-prov__facts dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); min-width: 0; }
.dl-prov__facts dd .dl-src { box-shadow: none; padding: 0; min-height: 0; color: var(--text); font-size: 15px; line-height: 22px; white-space: normal; }
.dl-prov__facts .dl-sub { display: block; color: var(--text-secondary); font-size: 14px; line-height: 20px; font-weight: 400; }
.dl-prov__section { display: flex; flex-direction: column; gap: 10px; }
.dl-prov__h { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-prov__excerpt { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dl-prov__excerpt figcaption { font-size: 13px; line-height: 18px; color: var(--text-muted); }
/* History: a short run of the line */
.dl-prov__history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-prov__history li { position: relative; padding: 0 0 16px 30px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-prov__history li:last-child { padding-bottom: 0; }
.dl-prov__history li::before { content: ""; position: absolute; left: 7.5px; top: 10px; bottom: -10px; width: 3px; background: var(--timeline-rail-done); }
.dl-prov__history li:last-child::before { content: none; }
.dl-prov__history li::after { content: ""; position: absolute; z-index: 1; left: 1px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-raised); box-shadow: inset 0 0 0 3px var(--timeline-rail-done); }
.dl-prov__history li:last-child::after { background: var(--lead); box-shadow: inset 0 0 0 3px var(--timeline-rail-done), 0 0 0 4px var(--lead-soft); }
.dl-prov__history li.is-reported::after { background: var(--surface-raised); box-shadow: none; outline: 2px dashed var(--status-reported-border); outline-offset: -2px; }
.dl-prov__history strong { color: var(--text); font-weight: 600; }
.dl-prov__foot { flex: none; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-subtle); background: var(--surface-raised); }
.dl-prov__foot .dl-caption { flex: 1 1 160px; }
/* Static (documentation) instance: stays inside its frame */
.dl-prov--static { position: relative; inset: auto; z-index: auto; height: 640px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.dl-prov--static .dl-prov__scrim, .dl-prov--static .dl-prov__sheet { animation: none; }
.dl-prov--static.dl-prov--bottom .dl-prov__sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 86%; border-radius: var(--radius-xl, 36px) var(--radius-xl, 36px) 0 0; }
.dl-prov--static.dl-prov--bottom .dl-prov__grab { display: block; }
.dl-prov--static.dl-prov--side .dl-prov__sheet { left: auto; top: 10px; bottom: 10px; right: 10px; width: 440px; max-width: calc(100% - 20px); max-height: none; border-radius: var(--radius-lg); }
.dl-prov--static.dl-prov--side .dl-prov__grab { display: none; }
.dl-prov__behind { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dl-prov__behind .dl-fact { --fact-bg: var(--surface-raised); max-width: 420px; }
html.dl-scroll-lock, html.dl-scroll-lock body { overflow: hidden; }
[data-density="compact"] .dl-prov__title { font-size: 24px; line-height: 26px; }

/* ---------------------------------------------------------------------
   EstimateWindow — always a range: the headline range in display type,
   and the window as a lead pill on a calendar strip of weeks.
   --------------------------------------------------------------------- */
.dl-est { --est-cell: var(--surface); container-type: inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl-demo__pane .dl-est { --est-cell: var(--surface-raised); }
.dl-demo__pane .dl-card .dl-est, .dl-demo__pane .dl-dl-frame .dl-est, .dl-demo__phone .dl-est { --est-cell: var(--surface); }
.dl-est__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; }
.dl-est__head > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-est__kicker { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-est__range { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: clamp(32px, 12.5cqi, 44px); line-height: 1; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: lining-nums; text-wrap: balance; }
.dl-est__range strong { font-weight: inherit; white-space: nowrap; }
.dl-est__sub { margin: -8px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-est__scale-wrap { --weeks: 7; min-width: 0; }
.dl-est__scale { position: relative; padding: 24px 0 0; }
.dl-est__track { position: relative; height: 48px; }
.dl-est__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 3px; pointer-events: none; }
.dl-est__grid i { background: var(--est-cell); border-radius: 8px; }
.dl-est__grid i:first-child { border-radius: 16px 8px 8px 16px; }
.dl-est__grid i:last-child { border-radius: 8px 16px 16px 8px; }
/* The window: a lead pill with ink ends, drawn open from its centre */
.dl-est__bar { position: absolute; top: 8px; bottom: 8px; left: var(--from); right: calc(100% - var(--to)); border-radius: 999px; background: var(--lead); box-shadow: 0 0 0 3px var(--surface-canvas); transform-origin: center; animation: dl-est-open var(--duration-slow) var(--ease-standard) 150ms both; }
.dl-est__bar::before, .dl-est__bar::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--timeline-rail-done); box-shadow: 0 0 0 3px var(--lead); }
.dl-est__bar::before { left: 3px; } .dl-est__bar::after { right: 3px; }
@keyframes dl-est-open { from { transform: scaleX(0.2); opacity: 0; } }
.dl-est__bar--was { background: transparent; box-shadow: none; outline: 2px dashed var(--text-muted); outline-offset: -2px; top: 26px; bottom: 5px; animation: none; }
.dl-est__bar--was::before, .dl-est__bar--was::after { content: none; }
.dl-est__bar--now { bottom: 25px; top: 5px; }
.dl-est__bar--now::before, .dl-est__bar--now::after { width: 10px; height: 10px; margin-top: -5px; box-shadow: none; }
.dl-est__today { position: absolute; top: 4px; bottom: -4px; left: var(--at); width: 0; border-left: 2.5px solid var(--timeline-rail-done); }
.dl-est__today::after { content: ""; position: absolute; top: 18px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--timeline-rail-done); box-shadow: 0 0 0 3px var(--surface-canvas); }
.dl-est__today span { position: absolute; top: -4px; left: -1px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.dl-est__today--edge span { transform: none; left: 6px; }
.dl-est__weeks { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 3px; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums lining-nums; }
.dl-est__weeks span { padding-left: 6px; white-space: nowrap; overflow: hidden; }
.dl-est__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.dl-est__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dl-est__legend i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; background: var(--lead); }
.dl-est__legend i.is-was { background: transparent; outline: 1.5px dashed var(--text-muted); outline-offset: -1.5px; }
.dl-est__conf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-est__h { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-est__drivers { list-style: none; margin: 0; padding: 0; }
.dl-est__driver { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-subtle); font-size: 15px; line-height: 22px; }
.dl-est__driver:first-child { border-top: 0; }
.dl-est__driver > .dl-icon { margin-top: 1px; }
.dl-est__driver strong { font-weight: 600; color: var(--text); }
.dl-est__driver span.dl-est__val { color: var(--text-secondary); }
.dl-est__driver--done > .dl-icon { color: var(--status-done-fg); }
.dl-est__driver--in-progress > .dl-icon { color: var(--status-in-progress-fg); }
.dl-est__driver--at-risk > .dl-icon { color: var(--status-at-risk-fg); }
.dl-est__driver--blocked > .dl-icon { color: var(--status-blocked-fg); }
.dl-est__driver--not-started > .dl-icon { color: var(--text-muted); }
/* The fixed disclaimer — always visible, never truncated, never collapsed */
.dl-est__disclaimer { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--est-cell); font-size: 15px; line-height: 22px; color: var(--text); white-space: normal; overflow: visible; }
.dl-est__disclaimer .dl-icon { width: 22px; height: 22px; color: var(--text); }
/* Too early */
.dl-est--early .dl-est__range { color: var(--text-secondary); font-size: 34px; line-height: 36px; letter-spacing: -0.04em; }
.dl-est--early .dl-est__grid { display: none; }
.dl-est--early .dl-est__track { border-radius: 16px; outline: 2px dashed var(--border); outline-offset: -2px; }
.dl-est__early-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-muted); }
.dl-est__changed { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--status-at-risk-bg); color: var(--text); font-size: 15px; line-height: 22px; }
.dl-est__changed .dl-icon { color: var(--status-at-risk-fg); margin-top: 1px; }
/* Compact inline (table cell) */
.dl-est-cell { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-est-cell__range { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.dl-est-cell__mini { position: relative; display: block; width: 104px; height: 6px; border-radius: 999px; background: var(--confidence-track); }
.dl-est-cell__mini i { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); border-radius: 999px; background: var(--lead); }
.dl-est-cell--early .dl-est-cell__range { font-weight: 400; color: var(--text-muted); }
[data-density="compact"] .dl-est { gap: 12px; }
[data-density="compact"] .dl-est__range { font-size: clamp(24px, 10cqi, 30px); line-height: 1.05; letter-spacing: -0.045em; }
[data-density="compact"] .dl-est__track { height: 40px; }
[data-density="compact"] .dl-est__bar--was { top: 22px; bottom: 4px; }
[data-density="compact"] .dl-est__bar--now { top: 4px; bottom: 21px; }
[data-density="compact"] .dl-est__today::after { top: 14px; }
[data-density="compact"] .dl-est__driver { font-size: 13px; line-height: 18px; padding: 7px 0; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
[data-density="compact"] .dl-est__driver > .dl-icon { width: 16px; height: 16px; }
[data-density="compact"] .dl-est__disclaimer { font-size: 13px; line-height: 18px; padding: 10px 12px; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; border-radius: 14px; }
[data-density="compact"] .dl-est__disclaimer .dl-icon { width: 18px; height: 18px; }
[data-density="compact"] .dl-est__changed { font-size: 13px; line-height: 18px; padding: 10px 12px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .dl-est__bar { animation: none; } }

/* Minimal table for showing components in table cells */
.dl-mini-table-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--border-subtle); }
.dl-mini-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.dl-mini-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-muted); padding: 10px 14px; white-space: nowrap; background: var(--surface); }
.dl-mini-table td { padding: 10px 14px; border-top: 1px solid var(--border-subtle); vertical-align: middle; color: var(--text); }
.dl-mini-table code { font-family: var(--font-mono); font-size: 11px; }

/* ---------------------------------------------------------------------
   AIAnswerCard — a large soft tile: the answer in display type, its
   sources, how sure we are, and a way to say it's wrong.
   --------------------------------------------------------------------- */
.dl-ai { --ai-bg: var(--surface); --ai-inner: var(--surface-raised); container-type: inline-size; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 28px; background: var(--ai-bg); min-width: 0; }
.dl-demo__pane .dl-ai, .dl-card .dl-ai { --ai-bg: var(--surface-raised); --ai-inner: var(--surface); }
.dl-ai__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-ai__label .dl-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--lead); color: var(--on-lead); --icon-dot: var(--on-lead); }
.dl-ai__label-note { color: var(--text-muted); }
.dl-ai__q { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.dl-ai__q q { color: var(--text); font-weight: 600; quotes: "\201C" "\201D"; }
.dl-ai__answer { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 26px; color: var(--text); }
.dl-ai__answer p { margin: 0; }
.dl-ai__answer p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 32px; letter-spacing: -0.035em; text-wrap: pretty; }
.dl-ai__answer p:first-child .dl-cite { font-family: var(--font-sans); letter-spacing: 0; vertical-align: 6px; }
.dl-cite { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin: 0 2px; border-radius: 999px; background: var(--lead-soft); color: var(--lead-text); font-size: 12px; line-height: 1; font-weight: 700; text-decoration: none; vertical-align: 2px; font-variant-numeric: tabular-nums; transition: background-color var(--duration-fast), color var(--duration-fast); }
.dl-cite:hover { background: var(--lead); color: var(--on-lead); }
/* How sure + provenance link */
.dl-ai__sure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 12px 14px 12px 16px; border-radius: 18px; background: var(--ai-inner); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-ai__sure .dl-why { margin-left: auto; }
.dl-ai__sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-ai__sources > ol { display: contents; }
.dl-ai__sources-h { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-ai__source { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px; border-radius: 16px; background: var(--ai-inner); font-size: 14px; line-height: 20px; transition: box-shadow var(--duration-base) var(--ease-standard), background-color var(--duration-base); }
.dl-ai__source:target, .dl-ai__source.is-target { background: var(--lead-soft); box-shadow: inset 0 0 0 2px var(--lead); }
.dl-ai__num { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--timeline-rail-done); color: var(--surface-canvas); font-family: var(--font-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dl-ai__fact { margin: 0; font-weight: 600; color: var(--text); }
.dl-ai__source .dl-meta { font-size: 13px; line-height: 18px; gap: 4px 10px; }
.dl-ai__source .dl-why { min-height: 24px; padding: 0 4px; margin-left: -4px; font-size: 13px; }
.dl-ai__feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-ai__feedback-q { flex-basis: 100%; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); margin-right: 4px; }
@container (min-width: 520px) { .dl-ai__feedback-q { flex-basis: auto; } }
.dl-ai__fb { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color var(--duration-fast), transform var(--duration-fast) var(--ease-standard); }
.dl-ai__fb .dl-icon { width: 18px; height: 18px; }
.dl-ai__fb:hover { background: var(--surface-hover); transform: translateY(-1px); }
.dl-ai__fb:active { transform: scale(0.97); }
.dl-ai__fb[aria-pressed="true"] { background: var(--action-primary); color: var(--on-action-primary); box-shadow: none; }
.dl-ai__fb[aria-pressed="true"] .dl-icon { animation: dl-pop var(--duration-slow) var(--ease-standard) both; }
.dl-ai__fb--wrong { margin-left: auto; box-shadow: none; color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; padding: 0 10px; }
.dl-ai__fb--wrong[aria-expanded="true"] { background: var(--ai-inner); text-decoration: none; }
.dl-ai__fb:disabled { cursor: not-allowed; color: var(--text-disabled); text-decoration: none; transform: none; }
.dl-ai__form { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 20px; background: var(--ai-inner); }
.dl-ai__form .dl-textarea { background: var(--ai-bg); }
.dl-ai__form[hidden] { display: none; }
.dl-ai__thanks { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--status-done-bg); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-ai__thanks .dl-icon { width: 18px; height: 18px; flex: none; color: var(--status-done-fg); }
.dl-ai__thanks[hidden] { display: none; }
.dl-ai__never { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
/* Fallback: we can't answer, and who will */
.dl-ai--fallback .dl-ai__answer p:first-child { color: var(--text); }
.dl-ai__handoff { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; align-items: center; margin: 0; padding: 14px 16px; border-radius: 20px; background: var(--ai-inner); font-size: 15px; line-height: 22px; font-weight: 600; }
.dl-ai__handoff > .dl-picto, .dl-ai__handoff > .dl-icon { grid-row: span 2; }
.dl-ai__handoff > .dl-icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--lead-soft); color: var(--text); }
.dl-ai__handoff small { grid-column: 2; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-secondary); }
/* Loading */
.dl-ai__status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
.dl-skel { display: block; height: 22px; border-radius: 999px; background: var(--surface-sunken); position: relative; overflow: hidden; }
.dl-skel + .dl-skel { margin-top: 10px; }
.dl-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--lead-soft), transparent); animation: dl-skel 1.4s var(--ease-standard) infinite; }
@keyframes dl-skel { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .dl-skel::after { animation: none; display: none; } }
[data-density="compact"] .dl-ai { padding: 18px; gap: 14px; border-radius: 22px; }
[data-density="compact"] .dl-ai__answer { font-size: 14px; line-height: 21px; }
[data-density="compact"] .dl-ai__answer p:first-child { font-size: 21px; line-height: 25px; }
[data-density="compact"] .dl-ai__label .dl-icon { width: 26px; height: 26px; padding: 5px; }
[data-density="compact"] .dl-skel { height: 16px; }
[data-density="compact"] .dl-ai__fb { min-height: 32px; font-size: 13px; }

/* ---------------------------------------------------------------------
   ReviewQueueItem — a soft tray of raised items; the proposed change
   beside the words it came from.
   --------------------------------------------------------------------- */
.dl-rq { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.dl-rq__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px 6px 14px; }
.dl-rq__bar-title { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.dl-rq__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 0 auto; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dl-rq__keys span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dl-rq__keys .dl-kbd { font-size: 11px; padding: 0 6px; background: var(--surface-raised); }
.dl-rq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-rq__item {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 0.9fr) minmax(0, 1.25fr); grid-template-areas: "sel prop src" "sel act act";
  gap: 12px 18px; padding: 16px 16px 14px 14px; border-radius: 18px; background: var(--surface-raised); scroll-margin: 60px;
  transition: box-shadow var(--duration-base) var(--ease-standard), background-color var(--duration-base);
}
.dl-rq__item:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 4px var(--focus-halo); z-index: 1; }
.dl-rq__item:focus, .dl-rq__item.is-current { box-shadow: inset 0 0 0 2px var(--border-selected), var(--shadow-sm); }
.dl-rq__item.is-selected { background: var(--lead-soft); }
.dl-rq__sel { grid-area: sel; padding-top: 1px; }
.dl-rq__prop { grid-area: prop; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dl-rq__ref { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dl-rq__ref .dl-ref { font-family: var(--font-mono); color: var(--text-secondary); font-size: 11px; }
.dl-rq__field { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.dl-rq__change { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.dl-rq__change .dl-arrow { color: var(--text-muted); width: 16px; height: 16px; }
.dl-rq__change-val { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.dl-rq__change-old { color: var(--text-muted); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; }
.dl-rq__src { grid-area: src; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dl-rq__src .dl-quote { font-size: 13px; line-height: 20px; }
.dl-rq__from { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; line-height: 16px; color: var(--text-secondary); }
.dl-rq__from strong { color: var(--text); font-weight: 600; }
.dl-rq__act { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 2px; }
.dl-rq__act .dl-btn .dl-kbd { margin-left: 2px; padding: 0 5px; font-size: 10px; line-height: 14px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.7; border-radius: 5px; }
.dl-rq__act-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dl-rq__done { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); animation: dl-rise var(--duration-base) var(--ease-standard) both; }
.dl-rq__done[hidden] { display: none; }
.dl-rq__done .dl-icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--status-done-bg); color: var(--status-done-fg); }
.dl-rq__item.is-resolved { grid-template-areas: "sel done done"; padding-top: 10px; padding-bottom: 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.dl-rq__item.is-resolved > :not(.dl-rq__done):not(.dl-rq__sel) { display: none; }
.dl-rq__item.is-resolved .dl-rq__sel { visibility: hidden; }
.dl-rq__edit { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.dl-rq__edit[hidden] { display: none; }
.dl-rq__edit .dl-field { flex: 1 1 200px; }
.dl-rq__edit .dl-input { background: var(--surface-raised); }
/* Conflict */
.dl-rq__item--conflict { grid-template-areas: "sel prop prop" "sel src src" "sel act act"; }
.dl-rq__conflict-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-rq__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.dl-rq__choice { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; transition: box-shadow var(--duration-fast), background-color var(--duration-fast); }
.dl-rq__choice:hover { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.dl-rq__choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--border-selected); background: var(--lead-soft); }
.dl-rq__choice .dl-quote { --quote-bg: var(--surface-raised); }
.dl-rq__choice .dl-check__text { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.dl-rq__msg { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--error-fg); }
.dl-rq__msg[hidden] { display: none; }
.dl-rq__msg .dl-icon { width: 16px; height: 16px; margin-top: 1px; }
/* Fraud alert */
.dl-rq__item--fraud { grid-template-areas: "sel prop prop" "sel src src" "sel act act"; }
.dl-rq__alert { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: var(--error-bg); color: var(--text); }
.dl-rq__alert > .dl-icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--action-destructive); color: var(--on-action-destructive); grid-row: span 2; }
.dl-rq__alert-title { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--error-fg); }
.dl-rq__alert p { margin: 0; font-size: 13px; line-height: 18px; }
.dl-rq__alert .dl-alert-safety { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-raised); color: var(--text-secondary); }
.dl-rq__alert .dl-alert-safety .dl-icon { width: 18px; height: 18px; flex: none; color: var(--text); }
.dl-rq__safe { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.dl-rq__safe[hidden] { display: none; }
.dl-rq__safe .dl-textarea { background: var(--surface-raised); }
.dl-rq__noshort { font-size: 12px; line-height: 16px; color: var(--text-muted); }
@media (max-width: 700px) {
  .dl-rq__item, .dl-rq__item--conflict, .dl-rq__item--fraud { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "sel prop" "sel src" "sel act"; }
  .dl-rq__item.is-resolved { grid-template-areas: "sel done"; }
  .dl-rq__keys { margin-left: 0; }
  .dl-rq__act-end { margin-left: 0; }
}

/* ---------------------------------------------------------------------
   Preview-only helpers
   --------------------------------------------------------------------- */
.dl-dl-frame { border-radius: var(--radius-lg); background: var(--surface); padding: 20px; min-width: 0; }
.dl-demo__pane .dl-dl-frame { background: var(--surface-raised); }
.dl-phone-pad { padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.dl-phone-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-phone-bar svg { display: block; }
.dl-phone-lockup { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.dl-ms__reason { flex-basis: 100%; font-weight: 400; color: var(--text-secondary); }
.dl-phone-lockup { gap: 5px; }
.dl-prov__facts .dl-conf-detail__why, .dl-prov__facts .dl-conf__word-pre { font-weight: 400; }
@container (max-width: 360px) { .dl-ai__answer p:first-child { font-size: 24px; line-height: 28px; } }
@container (max-width: 380px) { .dl-est__weeks { font-size: 10.5px; letter-spacing: -0.02em; } .dl-est__weeks span { padding-left: 2px; overflow: visible; } }

/* ---- 60-feedback.css ---- */
/* =====================================================================
   Deedline v2 — feedback and safety: Alert, PaymentSafetyNotice, FraudAlert,
   RedactionMarker, QuarantineNotice, Toast, Dialog, Drawer, ReportSuspicious.
   Soft tinted tiles, icons in filled circles, pill controls, display titles.
   Token colours only. Prefixes: dl-alert, dl-safety, dl-fraud, dl-redact,
   dl-quarantine, dl-toast, dl-dialog, dl-drawer, dl-report, dl-fb (shared).
   ===================================================================== */

/* Shared: an icon sitting in a filled circle. Put the class on the .dl-icon itself. */
.dl-fb-dot {
  --dot-bg: var(--text); --dot-fg: var(--surface-canvas); --dot-size: 40px;
  width: var(--dot-size); height: var(--dot-size); padding: calc(var(--dot-size) * 0.25); flex: none;
  border-radius: 50%; background: var(--dot-bg); color: var(--dot-fg); --dl-icon-knock: var(--dot-bg);
}
.dl-fb-dot svg { stroke-width: 2.25; }

/* ---------------------------------------------------------------------
   Alert: soft tinted tile, 24px corners, icon in a filled status circle.
   --------------------------------------------------------------------- */
.dl-alert {
  --al-fg: var(--info-fg); --al-bg: var(--info-bg);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: start;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4); border-radius: var(--radius-lg, 24px);
  background: var(--al-bg); color: var(--text);
}
.dl-alert[hidden] { display: none; }
.dl-alert--info { --al-fg: var(--info-fg); --al-bg: var(--info-bg); }
.dl-alert--success { --al-fg: var(--success-fg); --al-bg: var(--success-bg); }
.dl-alert--warning { --al-fg: var(--warning-fg); --al-bg: var(--warning-bg); }
.dl-alert--error { --al-fg: var(--error-fg); --al-bg: var(--error-bg); }
.dl-alert__icon {
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--al-fg); color: var(--al-bg); --dl-icon-knock: var(--al-fg);
}
.dl-alert__icon svg { stroke-width: 2.25; }
.dl-alert__content { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 7px; }
.dl-alert__title { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.dl-alert__body { margin: 0; font-size: 16px; line-height: 24px; color: var(--text); max-width: var(--measure, 62ch); }
.dl-alert__actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin-top: var(--space-3); }
.dl-alert__link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 3px; }
.dl-alert__link:hover { text-decoration-thickness: 2.5px; }
.dl-alert__actions .dl-btn--secondary { --btn-bg: var(--surface-canvas); --btn-bg-hover: var(--surface-canvas); }
.dl-alert__close {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 2px -6px 0 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color var(--duration-instant) var(--ease-standard);
}
.dl-alert__close:hover, .dl-alert__close.is-hover { background: color-mix(in oklab, var(--text) 9%, transparent); }
.dl-alert__close .dl-icon { width: 20px; height: 20px; }

/* Density */
[data-density="compact"] .dl-alert { padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); column-gap: var(--space-3); border-radius: 18px; }
[data-density="compact"] .dl-alert__icon { width: 32px; height: 32px; padding: 8px; }
[data-density="compact"] .dl-alert__content { padding-top: 5px; }
[data-density="compact"] .dl-alert__title { font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
[data-density="compact"] .dl-alert__body { font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-alert__actions { margin-top: var(--space-2); }
[data-density="compact"] .dl-alert__close { width: 28px; height: 28px; margin: 2px -6px 0 0; }

/* Compact variant: one line, title runs into the body (pill when it fits) */
.dl-alert--compact { padding: 6px var(--space-4) 6px 6px; column-gap: var(--space-3); align-items: center; border-radius: 22px; }
[data-density="compact"] .dl-alert--compact { padding: 6px var(--space-3) 6px 6px; border-radius: 22px; }
.dl-alert--compact .dl-alert__icon, [data-density="compact"] .dl-alert--compact .dl-alert__icon { width: 32px; height: 32px; padding: 8px; }
.dl-alert--compact .dl-alert__content { display: block; padding: 4px 0; font-size: 14px; line-height: 20px; }
.dl-alert--compact .dl-alert__title, .dl-alert--compact .dl-alert__body { display: inline; font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
.dl-alert--compact .dl-alert__title { font-weight: 600; }
.dl-alert--compact .dl-alert__title::after { content: " "; }
.dl-alert--compact .dl-alert__actions { display: inline-flex; margin: 0 0 0 var(--space-2); }
.dl-alert--compact .dl-alert__close { width: 28px; height: 28px; margin: 0 -8px 0 0; }
.dl-alert--compact .dl-alert__close .dl-icon { width: 16px; height: 16px; }

/* Banner: full-width tinted band (square ends) for page-level news */
.dl-alert--banner { border-radius: var(--radius-none, 0); padding: var(--space-3) var(--space-4); align-items: center; }
.dl-alert--banner .dl-alert__icon { width: 32px; height: 32px; padding: 8px; }
.dl-alert--banner .dl-alert__content { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); padding-top: 0; }
.dl-alert--banner .dl-alert__title { font-family: var(--font-sans); font-size: 16px; letter-spacing: -0.01em; }
.dl-alert--banner .dl-alert__actions { margin-top: 0; }
.dl-alert--banner .dl-alert__close { margin: 0 -6px 0 0; }
@media (min-width: 768px) { .dl-alert--banner { padding: var(--space-3) var(--space-10); } }

/* ---------------------------------------------------------------------
   PaymentSafetyNotice: a calm soft tile with the safety pictogram.
   Always visible, never dismissible. The lead dot follows data-lead.
   --------------------------------------------------------------------- */
.dl-safety {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-5); align-items: start;
  background: var(--safety-bg); color: var(--safety-fg); border-radius: var(--radius-lg, 24px);
  padding: var(--space-6); --dl-icon-knock: var(--safety-bg);
}
.dl-safety__picto { width: 88px; height: 88px; margin: -4px 0 -4px -4px; }
.dl-safety__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.dl-safety__title { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-safety__text { margin: 0; font-size: 16px; line-height: 24px; max-width: var(--measure, 62ch); color: var(--safety-fg); }
.dl-safety__text strong { display: block; margin-bottom: var(--space-2); font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.dl-safety__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3);
  min-height: 40px; padding: 0 18px 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border-strong);
  color: var(--safety-fg); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transition: background-color var(--duration-instant) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.dl-safety__link:hover { background: var(--surface-canvas); transform: translateY(-1px); }
.dl-safety__link .dl-icon { width: 16px; height: 16px; }
@media (max-width: 479px) {
  .dl-safety { grid-template-columns: 1fr; row-gap: var(--space-3); padding: var(--space-5); }
  .dl-safety__picto { width: 56px; height: 56px; margin: 0; }
  .dl-safety__text strong { font-size: 22px; line-height: 26px; }
}
/* In a narrow container (phone frames, sidebars) the stacked layout is used too */
.dl-safety--stack { grid-template-columns: 1fr; row-gap: var(--space-3); padding: var(--space-5); }
.dl-safety--stack .dl-safety__picto { width: 56px; height: 56px; margin: 0; }
.dl-safety--stack .dl-safety__text strong { font-size: 22px; line-height: 26px; }
/* On a grey surface: canvas fill with a hairline */
.dl-safety--outline { background: var(--surface-canvas); box-shadow: inset 0 0 0 1px var(--safety-border); --dl-icon-knock: var(--surface-canvas); }

/* Compact inline: the small tile used in footers and next to money */
.dl-safety--compact {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border-radius: 20px;
}
.dl-safety__badge {
  flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  background: var(--surface-canvas); color: var(--safety-fg); --dl-icon-knock: var(--surface-canvas);
}
.dl-safety--outline .dl-safety__badge { background: var(--safety-bg); --dl-icon-knock: var(--safety-bg); }
.dl-safety--compact .dl-safety__main { gap: 2px; padding-top: 1px; }
.dl-safety--compact .dl-safety__text { font-size: 14px; line-height: 20px; max-width: none; }
.dl-safety--compact .dl-safety__text strong { display: inline; margin: 0; font-family: var(--font-sans); font-size: inherit; line-height: inherit; letter-spacing: 0; }
.dl-safety--compact .dl-safety__label { font-weight: 600; margin-right: var(--space-1); }
.dl-safety--compact .dl-safety__link { margin-top: var(--space-1); min-height: 24px; padding: 0; box-shadow: none; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 3px; }
.dl-safety--compact .dl-safety__link:hover { background: transparent; transform: none; text-decoration-thickness: 2.5px; }
.dl-safety-email-demo { overflow-x: auto; max-width: 100%; }

/* ---------------------------------------------------------------------
   FraudAlert (professional): the strongest tile in the system. Red status
   fill, a solid red disc, a red priority pill and one clear action.
   --------------------------------------------------------------------- */
.dl-fraud {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4);
  padding: var(--space-6); background: var(--error-bg); color: var(--text);
  border-radius: var(--radius-lg, 24px); box-shadow: inset 0 0 0 2px var(--error-border);
  --dl-icon-knock: var(--error-bg);
}
.dl-fraud__icon {
  width: 48px; height: 48px; padding: 12px; border-radius: 50%;
  background: var(--action-destructive); color: var(--on-action-destructive); --dl-icon-knock: var(--action-destructive);
}
.dl-fraud__icon svg { stroke-width: 2.25; }
.dl-fraud__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dl-fraud__live { gap: var(--space-3) !important; }
.dl-fraud__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 13px; line-height: 18px; min-height: 28px; }
.dl-fraud__priority {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--action-destructive); color: var(--on-action-destructive);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.dl-fraud__time { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dl-fraud__meta .dl-ref { color: var(--text-secondary); }
.dl-fraud__title { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); max-width: 44ch; text-wrap: balance; }
.dl-fraud__body { margin: 0; font-size: 16px; line-height: 24px; color: var(--text); max-width: 64ch; }
.dl-fraud__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-2); }
.dl-fraud__actions .dl-btn--secondary { --btn-bg: var(--surface-canvas); --btn-bg-hover: var(--surface-canvas); }
.dl-fraud__actions .dl-btn--link { color: var(--text); }
.dl-fraud__lock { font-size: 14px; line-height: 20px; color: var(--text-secondary); display: inline-flex; gap: var(--space-2); align-items: center; }
.dl-fraud__outcome {
  margin-top: var(--space-2); padding: var(--space-5); background: var(--surface-raised); border-radius: 20px;
  display: flex; flex-direction: column; gap: var(--space-4); --dl-icon-knock: var(--surface-raised);
}
.dl-fraud__outcome[hidden] { display: none; }
.dl-fraud__outcome .dl-legend { font-family: var(--font-display); font-size: 20px; line-height: 24px; letter-spacing: -0.02em; }
.dl-fraud__resolved {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  background: var(--success-bg); border-radius: var(--radius-lg, 24px); font-size: 15px; line-height: 22px; color: var(--text);
}
.dl-fraud__resolved[hidden] { display: none; }
.dl-fraud__resolved strong { font-weight: 600; }
.dl-fraud__resolved > .dl-icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--success-fg); color: var(--success-bg); --dl-icon-knock: var(--success-fg); }
.dl-fraud__resolved > .dl-icon svg { stroke-width: 2.5; }
.dl-fraud__resolved > span:last-child { padding-top: 5px; }
[data-density="compact"] .dl-fraud { padding: var(--space-4); column-gap: var(--space-3); border-radius: 20px; }
[data-density="compact"] .dl-fraud__icon { width: 36px; height: 36px; padding: 9px; }
[data-density="compact"] .dl-fraud__main { gap: var(--space-2); }
[data-density="compact"] .dl-fraud__title { font-size: 18px; line-height: 22px; letter-spacing: -0.02em; }
[data-density="compact"] .dl-fraud__body { font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-fraud__priority { min-height: 24px; padding: 0 10px; font-size: 11px; }
[data-density="compact"] .dl-fraud__actions { margin-top: var(--space-1); gap: var(--space-2) var(--space-3); }
[data-density="compact"] .dl-fraud__outcome { padding: var(--space-4); gap: var(--space-3); border-radius: 16px; }
[data-density="compact"] .dl-fraud__outcome .dl-legend { font-size: 16px; line-height: 22px; }
@media (max-width: 479px) {
  .dl-fraud { grid-template-columns: 1fr; row-gap: var(--space-3); padding: var(--space-5); }
  .dl-fraud__title { font-size: 21px; line-height: 25px; }
  .dl-fraud__actions > .dl-btn:not(.dl-btn--link) { width: 100%; }
}

/* ---------------------------------------------------------------------
   RedactionMarker: a solid ink pill (inline) or bar (block) that stands in
   for removed details. The words are the content; screen readers hear them.
   --------------------------------------------------------------------- */
.dl-redact {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: -0.3em;
  padding: 2px 12px 2px 3px; border-radius: 999px;
  background: var(--redact-bg); color: var(--redact-fg);
  font-family: var(--font-sans); font-size: 0.875em; line-height: 1.5; font-weight: 600; letter-spacing: 0; font-style: normal; white-space: normal;
}
.dl-redact .dl-icon {
  width: 1.65em; height: 1.65em; padding: 0.3em; margin: 0; border-radius: 50%; flex: none;
  background: color-mix(in oklab, var(--redact-fg) 16%, transparent); color: var(--redact-fg);
}
.dl-redact .dl-icon svg { stroke-width: 2.25; }
.dl-redact--block {
  display: flex; gap: var(--space-3); min-height: 48px; padding: 8px var(--space-4) 8px 8px;
  font-size: 15px; line-height: 20px; border-radius: 16px; vertical-align: 0;
  background-image: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in oklab, var(--redact-fg) 6%, transparent) 10px 20px);
}
.dl-redact--block .dl-icon { width: 32px; height: 32px; padding: 7px; }
.dl-redact--personal { background-color: color-mix(in oklab, var(--text) 11%, transparent); color: var(--text); }
.dl-redact--personal .dl-icon { background: var(--surface-canvas); color: var(--text); }
.dl-redact--personal.dl-redact--block { background-image: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in oklab, var(--text) 5%, transparent) 10px 20px); }
[data-density="compact"] .dl-redact { padding: 1px 10px 1px 2px; }

/* Excerpt and document holders used around redactions */
.dl-fb-excerpt { background: var(--surface); border-radius: var(--radius-lg, 24px); padding: var(--space-5) var(--space-6) var(--space-6); font-size: 15px; line-height: 26px; max-width: 60ch; min-width: 0; }
.dl-fb-excerpt__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--space-4); font-size: 13px; line-height: 18px; color: var(--text-secondary); padding-bottom: var(--space-4); margin: 0 0 var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.dl-fb-excerpt__head dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dl-fb-excerpt__head dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.dl-fb-excerpt p { margin: 0 0 var(--space-3); }
.dl-fb-excerpt p:last-child { margin-bottom: 0; }
.dl-fb-doc { background: var(--surface-raised); border-radius: var(--radius-lg, 24px); padding: var(--space-6); font-size: 16px; line-height: 26px; max-width: 60ch; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle); min-width: 0; }
.dl-fb-doc h4 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--text-muted); }
.dl-fb-doc p { margin: 0 0 var(--space-3); }
.dl-fb-doc .dl-redact--block { margin: var(--space-1) 0 var(--space-3); }

/* ---------------------------------------------------------------------
   QuarantineNotice: an ID or funds document arrived and was not kept.
   Calm grey tile, "held" stone disc, never error-red.
   --------------------------------------------------------------------- */
.dl-quarantine {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4);
  padding: var(--space-5) var(--space-6) var(--space-6) var(--space-5); background: var(--surface); color: var(--text);
  border-radius: var(--radius-lg, 24px); --dl-icon-knock: var(--surface);
}
.dl-quarantine__icon {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: var(--status-held-fg); color: var(--status-held-bg); --dl-icon-knock: var(--status-held-fg);
}
.dl-quarantine__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); padding-top: 6px; }
.dl-quarantine__title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.dl-quarantine__body { margin: 0; color: var(--text-secondary); max-width: var(--measure, 62ch); }
.dl-quarantine__facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-5); margin: var(--space-2) 0 0;
  padding: var(--space-4); background: var(--surface-raised); border-radius: 16px; font-size: 14px; line-height: 20px;
}
.dl-quarantine__facts dt { color: var(--text-muted); }
.dl-quarantine__facts dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.dl-quarantine__file {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: 999px; background: var(--surface-sunken);
  font-family: var(--font-mono); font-size: 12.5px; text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--text-secondary);
}
[data-density="compact"] .dl-quarantine { padding: var(--space-4); column-gap: var(--space-3); border-radius: 20px; }
[data-density="compact"] .dl-quarantine__icon { width: 32px; height: 32px; padding: 8px; }
[data-density="compact"] .dl-quarantine__main { padding-top: 5px; }
[data-density="compact"] .dl-quarantine__title { font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; }
[data-density="compact"] .dl-quarantine__body { font-size: 13px; line-height: 18px; }
[data-density="compact"] .dl-quarantine__facts { font-size: 13px; line-height: 18px; padding: var(--space-3); border-radius: 12px; gap: var(--space-1) var(--space-4); }
.dl-demo__pane .dl-quarantine { background: var(--surface-raised); --dl-icon-knock: var(--surface-raised); }
.dl-demo__pane .dl-quarantine__facts { background: var(--surface); }
@media (max-width: 479px) {
  .dl-quarantine { grid-template-columns: 1fr; row-gap: var(--space-3); padding: var(--space-5); }
  .dl-quarantine__main { padding-top: 0; }
  .dl-quarantine__facts { grid-template-columns: 1fr; gap: 0; }
  .dl-quarantine__facts dd { margin-bottom: var(--space-2); }
}
/* Inline row (a line in a document list or timeline) */
.dl-quarantine-row {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-h); padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 14px; line-height: 20px;
  background: color-mix(in oklab, var(--status-held-bg) 55%, transparent);
}
.dl-quarantine-row > .dl-icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--status-held-fg); color: var(--status-held-bg); --dl-icon-knock: var(--status-held-fg); }
[data-density="compact"] .dl-quarantine-row > .dl-icon { width: 26px; height: 26px; padding: 6px; }
.dl-quarantine-row__text { flex: 1; min-width: 0; }
.dl-quarantine-row__text strong { color: var(--text); font-weight: 600; }
.dl-quarantine-row__time { color: var(--text-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-fb-list { list-style: none; margin: 0; padding: 0; background: var(--surface-raised); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--border-subtle); }
.dl-fb-list > li:last-child > * { border-bottom: 0; }
.dl-fb-list__row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-h); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--border-subtle); font-size: 14px; line-height: 20px; }
.dl-fb-list__row > .dl-icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--surface); color: var(--text); }
[data-density="compact"] .dl-fb-list__row > .dl-icon { width: 26px; height: 26px; padding: 6px; }
.dl-fb-list__row span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; }

/* ---------------------------------------------------------------------
   Toast: ink pill that slides up from the bottom. Kind shows as a small
   status disc. Bottom-centre on phones, bottom-right on desktop.
   --------------------------------------------------------------------- */
.dl-toast-region {
  position: fixed; z-index: var(--z-toast, 500); left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); pointer-events: none;
}
@media (min-width: 768px) { .dl-toast-region { left: auto; right: var(--space-6); bottom: var(--space-6); align-items: flex-end; width: 440px; } }
.dl-toast-region--static { position: static; left: auto; right: auto; bottom: auto; width: auto; align-items: flex-start; pointer-events: auto; gap: var(--space-3); }
.dl-toast {
  --tk-bg: var(--info-bg); --tk-fg: var(--info-fg);
  pointer-events: auto; display: flex; align-items: center; gap: var(--space-3); width: max-content; max-width: min(440px, 100%);
  min-height: 56px; padding: 8px 8px 8px 10px;
  background: var(--surface-inverse); color: var(--text-inverse); border-radius: 28px; box-shadow: var(--shadow-lg);
  font-size: 15px; line-height: 20px; font-weight: 500; --dl-icon-knock: var(--surface-inverse);
  animation: dl-toast-in var(--duration-slow) var(--ease-standard) both;
}
.dl-toast--success, .dl-toast--undo { --tk-bg: var(--success-bg); --tk-fg: var(--success-fg); }
.dl-toast--error { --tk-bg: var(--error-bg); --tk-fg: var(--error-fg); }
.dl-toast.is-leaving { animation: dl-toast-out var(--duration-fast) var(--ease-exit) forwards; }
@keyframes dl-toast-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dl-toast-out { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .dl-toast, .dl-toast.is-leaving { animation: none; } }
.dl-toast__icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--tk-bg); color: var(--tk-fg); --dl-icon-knock: var(--tk-bg); }
.dl-toast__icon svg { stroke-width: 2.25; }
.dl-toast__msg { flex: 1; min-width: 0; padding: var(--space-1) var(--space-2) var(--space-1) 0; }
.dl-toast__action {
  flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--text-inverse); color: var(--surface-inverse); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.dl-toast__action:hover { transform: translateY(-1px); }
.dl-toast__close {
  flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; margin-left: -4px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-inverse); cursor: pointer;
  transition: background-color var(--duration-instant) var(--ease-standard);
}
.dl-toast__close:hover { background: color-mix(in oklab, var(--text-inverse) 14%, transparent); }
.dl-toast :focus-visible, .dl-toast .is-focus { outline: 2px solid var(--text-inverse) !important; outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo) !important; }
.dl-toast__sep { opacity: 0.7; }
[data-density="compact"] .dl-toast { min-height: 48px; padding: 6px 6px 6px 8px; border-radius: 24px; font-size: 14px; }
[data-density="compact"] .dl-toast__icon { width: 30px; height: 30px; padding: 7px; }
[data-density="compact"] .dl-toast__action { min-height: 36px; padding: 0 14px; font-size: 13px; }
[data-density="compact"] .dl-toast__close { width: 36px; height: 36px; }

/* ---------------------------------------------------------------------
   Dialog + Drawer: soft blurred scrim, large rounded panels, display titles
   --------------------------------------------------------------------- */
.dl-dialog, .dl-drawer { position: fixed; inset: 0; z-index: var(--z-modal, 400); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.dl-drawer { z-index: var(--z-drawer, 300); padding: var(--space-3); justify-content: flex-end; align-items: stretch; }
.dl-dialog[hidden], .dl-drawer[hidden] { display: none; }
.dl-dialog__scrim, .dl-drawer__scrim {
  position: absolute; inset: 0; background: color-mix(in oklab, var(--scrim) 72%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: dl-fade-in var(--duration-base) var(--ease-standard);
}
@keyframes dl-fade-in { from { opacity: 0; } }
.dl-dialog__panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--surface-raised); color: var(--text); border-radius: var(--radius-xl, 36px); box-shadow: var(--shadow-lg);
  --dl-icon-knock: var(--surface-raised); animation: dl-dialog-in var(--duration-slow) var(--ease-standard);
}
@keyframes dl-dialog-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.dl-dialog--sm .dl-dialog__panel { max-width: 440px; border-radius: 32px; }
.dl-dialog__head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-8) var(--space-8) var(--space-2); flex-wrap: wrap; }
.dl-dialog__mark { flex-basis: 100%; display: flex; margin-bottom: var(--space-3); }
.dl-dialog__mark .dl-icon { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--error-bg); color: var(--error-fg); --dl-icon-knock: var(--error-bg); }
.dl-dialog__mark .dl-picto { width: 72px; height: 72px; }
.dl-dialog__title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 32px; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.dl-dialog__title-icon { color: var(--error-fg); width: 24px; height: 24px; margin-top: 4px; }
.dl-dialog__body { padding: var(--space-3) var(--space-8) var(--space-4); overflow-y: auto; color: var(--text-secondary); display: flex; flex-direction: column; gap: var(--space-4); font-size: 16px; line-height: 24px; }
.dl-dialog__body p { margin: 0; }
.dl-dialog__foot { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-8) var(--space-8); }
.dl-fb-close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -12px 0 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color var(--duration-instant) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.dl-fb-close:hover { background: var(--surface-hover); transform: rotate(90deg); }
[data-density="compact"] .dl-fb-close { width: 36px; height: 36px; margin: -4px -8px 0 0; }
[data-density="compact"] .dl-dialog__panel { border-radius: 24px; }
[data-density="compact"] .dl-dialog__head { padding: var(--space-5) var(--space-5) var(--space-1); }
[data-density="compact"] .dl-dialog__title { font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
[data-density="compact"] .dl-dialog__body { padding: var(--space-2) var(--space-5) var(--space-3); font-size: 14px; line-height: 20px; gap: var(--space-3); }
[data-density="compact"] .dl-dialog__foot { padding: var(--space-3) var(--space-5) var(--space-5); gap: var(--space-2); }
@media (max-width: 767px) {
  .dl-dialog:not(.dl-dialog--sm):not(.dl-dialog--static) { padding: 0; }
  .dl-dialog:not(.dl-dialog--sm):not(.dl-dialog--static) .dl-dialog__panel { max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .dl-dialog:not(.dl-dialog--sm) .dl-dialog__body { flex: 1; }
  .dl-dialog__head { padding: var(--space-6) var(--space-5) var(--space-2); }
  .dl-dialog__body { padding: var(--space-2) var(--space-5) var(--space-4); }
  .dl-dialog__foot { padding: var(--space-3) var(--space-5) var(--space-5); }
  .dl-dialog__title { font-size: 26px; line-height: 28px; }
  .dl-dialog__foot > .dl-btn { flex: 1 1 auto; }
}

/* Static (in-flow) instances for documentation: a mini page under the scrim */
.dl-fb-stage { position: relative; overflow: hidden; border-radius: var(--radius-lg, 24px); background: var(--surface-canvas); box-shadow: inset 0 0 0 1px var(--border-subtle); min-height: 320px; }
.dl-fb-stage__page { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.dl-fb-stage__page .dl-h2 { font-size: 30px; line-height: 32px; }
.dl-fb-stage__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }
.dl-fb-stage__tile { background: var(--surface); border-radius: 18px; padding: var(--space-4); min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2); font-size: 13px; color: var(--text-secondary); }
.dl-fb-stage__tile b { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: var(--text); }
.dl-fb-stage__tile--lead { background: var(--lead); color: var(--on-lead); }
.dl-fb-stage__tile--lead b { color: var(--on-lead); }
.dl-fb-stage__bar { height: 12px; border-radius: 999px; background: var(--surface); }
.dl-dialog--static, .dl-drawer--static { position: absolute; z-index: auto; }
.dl-dialog--static .dl-dialog__panel { max-height: none; }
.dl-dialog--static *, .dl-drawer--static * { animation: none !important; }

/* Drawer: floating side sheet on desktop; bottom sheet with a grab handle under 768px */
.dl-drawer__panel {
  position: relative; display: flex; flex-direction: column; width: 440px; max-width: 100%; height: 100%; overflow: hidden;
  background: var(--surface-raised); color: var(--text); border-radius: 28px; box-shadow: var(--shadow-lg);
  --dl-icon-knock: var(--surface-raised); animation: dl-drawer-in var(--duration-slow) var(--ease-standard);
}
@keyframes dl-drawer-in { from { transform: translateX(48px); opacity: 0; } }
.dl-drawer__head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-6) var(--space-6) var(--space-4); }
.dl-drawer__titles { flex: 1; min-width: 0; }
.dl-drawer__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 30px; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.dl-drawer__sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.dl-drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-2) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.dl-drawer__foot { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-6); background: var(--surface-raised); box-shadow: 0 -1px 0 var(--border-subtle); }
.dl-drawer__handle { display: none; }
[data-density="compact"] .dl-drawer__panel { border-radius: 22px; }
[data-density="compact"] .dl-drawer__head { padding: var(--space-4) var(--space-4) var(--space-2); }
[data-density="compact"] .dl-drawer__title { font-size: 20px; line-height: 24px; letter-spacing: -0.03em; }
[data-density="compact"] .dl-drawer__body { padding: var(--space-2) var(--space-4) var(--space-4); gap: var(--space-3); }
[data-density="compact"] .dl-drawer__foot { padding: var(--space-3) var(--space-4) var(--space-4); gap: var(--space-2); }
@media (max-width: 767px) {
  .dl-drawer { align-items: flex-end; justify-content: stretch; padding: 0; }
  .dl-drawer__panel { width: 100%; height: auto; max-height: 90vh; border-radius: 32px 32px 0 0; animation-name: dl-sheet-in; }
  .dl-drawer--static .dl-drawer__panel { max-height: 88%; }
  .dl-drawer__handle { display: block; flex: none; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--border-strong); }
  .dl-drawer__head { padding: var(--space-4) var(--space-5) var(--space-3); }
  .dl-drawer__title { font-size: 26px; line-height: 28px; }
  .dl-drawer__body { padding: var(--space-1) var(--space-5) var(--space-5); }
  .dl-drawer__foot { padding: var(--space-3) var(--space-5) var(--space-5); }
  .dl-drawer__foot > .dl-btn { flex: 1 1 auto; }
}
@keyframes dl-sheet-in { from { transform: translateY(64px); opacity: 0; } }
/* Force the bottom-sheet form at any width (phone demos, narrow containers) */
.dl-drawer--sheet { align-items: flex-end; justify-content: stretch; padding: 0; }
.dl-drawer--sheet .dl-drawer__panel { width: 100%; max-width: none !important; height: auto; max-height: 88%; border-radius: 32px 32px 0 0; }
.dl-drawer--sheet .dl-drawer__handle { display: block; flex: none; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--border-strong); }
.dl-drawer--sheet .dl-drawer__head { padding: var(--space-4) var(--space-5) var(--space-3); }
.dl-drawer--sheet .dl-drawer__title { font-size: 26px; line-height: 28px; }
.dl-drawer--sheet .dl-drawer__body { padding: var(--space-1) var(--space-5) var(--space-5); }
.dl-drawer--sheet .dl-drawer__foot { padding: var(--space-3) var(--space-5) var(--space-5); }
.dl-drawer--sheet .dl-drawer__foot > .dl-btn { flex: 1 1 auto; }

/* Non-modal (push) drawer: a tile beside the page, no scrim, page stays usable */
.dl-drawer-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-lg, 24px); background: var(--surface); min-height: 360px; }
.dl-drawer-layout.is-open { grid-template-columns: minmax(0, 1fr) 320px; }
.dl-drawer-layout__main { min-width: 0; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface-canvas); border-radius: 18px; }
.dl-drawer--push { position: relative; inset: auto; z-index: auto; display: flex; padding: 0; align-items: stretch; }
.dl-drawer--push[hidden] { display: none; }
.dl-drawer--push .dl-drawer__panel { width: 100%; box-shadow: none; animation: none; border-radius: 18px; }
@keyframes dl-push-in { from { opacity: 0; transform: translateX(16px); } }
@media (max-width: 767px) {
  .dl-drawer-layout.is-open { grid-template-columns: minmax(0, 1fr); }
  .dl-drawer--push .dl-drawer__panel { border-radius: 18px; max-height: none; animation: none; }
}

/* ---------------------------------------------------------------------
   ReportSuspicious: entry link + a three-step, one-thing-per-screen flow
   --------------------------------------------------------------------- */
.dl-report-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 3px; background: none; border: 0; padding: 0; cursor: pointer; min-height: 24px; font-size: inherit; }
.dl-report-link:hover { text-decoration-thickness: 2.5px; }
.dl-report-link .dl-icon { width: 16px; height: 16px; }
.dl-report-link--pill { min-height: 44px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--surface); text-decoration: none; transition: background-color var(--duration-instant), transform var(--duration-fast) var(--ease-standard); }
.dl-report-link--pill:hover { background: var(--surface-hover); transform: translateY(-1px); }
.dl-report { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5) var(--space-5) var(--space-6); background: var(--surface-canvas); }
.dl-report__step[hidden] { display: none; }
.dl-report__step { display: flex; flex-direction: column; gap: var(--space-5); }
.dl-report__step:not([hidden]) { animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-report__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.dl-report__bar { display: flex; gap: 6px; flex: 1; max-width: 140px; margin-left: auto; }
.dl-report__bar i { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--text) 14%, transparent); }
.dl-report__bar i.is-on { background: var(--lead); }
.dl-report__progress { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0; font-variant-numeric: tabular-nums; }
.dl-report__title { margin: 0; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.045em; text-wrap: balance; }
.dl-report__back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 36px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.dl-report__back:hover { background: var(--surface-hover); }
.dl-report__options { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.dl-report__option {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: var(--answer-h, 64px); padding: 0 10px 0 var(--space-5);
  background: var(--surface); border-radius: 999px; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast);
}
.dl-report__option:hover { transform: scale(1.015); background: var(--surface-hover); }
.dl-report__option:has(input:checked) { background: var(--surface-inverse); color: var(--text-inverse); }
.dl-report__option:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-report__option:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--error-border); }
.dl-report__option .dl-check__box { flex: none; border-radius: 50%; }
.dl-report__option > .dl-icon { margin-left: auto; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--surface-canvas); color: var(--text); }
.dl-report__option:has(input:checked) > .dl-icon { background: var(--lead); color: var(--on-lead); }
.dl-report__option input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.dl-report__option input:checked + .dl-check__box { background: var(--surface-inverse); border-color: var(--lead); box-shadow: inset 0 0 0 5px var(--lead); }
.dl-report__note { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.dl-report__note > .dl-icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--surface-canvas); color: var(--text); }
.dl-report__note > span:last-child { padding-top: 4px; }
.dl-report__upload { display: flex; flex-direction: column; gap: var(--space-2); }
.dl-report__file { position: relative; align-self: flex-start; }
.dl-report__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dl-report__file:focus-within .dl-btn { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-report__filename { font-size: 14px; color: var(--text-muted); }
.dl-report__done-icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--success-bg); color: var(--success-fg); }
.dl-report__done { width: 104px; height: 104px; }
.dl-report__steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.dl-report__steps-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: 18px; font-size: 15px; line-height: 22px; }
.dl-report__steps-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--lead); }
.dl-report__safe { margin: 0; padding: var(--space-5); border-radius: var(--radius-lg, 24px); background: var(--surface-inverse); color: var(--text-inverse); font-size: 16px; line-height: 24px; }
.dl-report__safe strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 26px; letter-spacing: -0.03em; font-weight: 600; margin-bottom: var(--space-1); }
.dl-report__error-summary { padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4); border-radius: 20px; background: var(--error-bg); box-shadow: inset 0 0 0 2px var(--error-border); --dl-icon-knock: var(--error-bg); }
.dl-report__error-summary[hidden] { display: none; }
.dl-report__error-summary h3 { margin: 0 0 var(--space-1); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--error-fg); display: flex; gap: var(--space-2); align-items: center; }
.dl-report__error-summary h3 .dl-icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--error-fg); color: var(--error-bg); }
.dl-report__error-summary a { margin-left: 36px; color: var(--error-fg); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dl-report__flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); align-items: start; }
.dl-report__flow .dl-demo__phone { width: auto; }
.dl-report .dl-field-error[hidden], .dl-fraud .dl-field-error[hidden] { display: none; }
/* Workaround: base `:indeterminate` fill also matches radios in a group with nothing chosen */
.dl-fraud .dl-check--radio .dl-check__input:indeterminate:not(:checked) + .dl-check__box { background: var(--surface-canvas); border-color: var(--border-strong); }
.dl-fraud .dl-check--radio .dl-check__input[aria-invalid="true"]:indeterminate:not(:checked) + .dl-check__box { border-color: var(--error-border); }
.dl-fraud__live[hidden] { display: none; }
.dl-fraud.is-resolved { background: transparent; box-shadow: none; padding: 0; display: block; }
.dl-fraud.is-resolved > .dl-fraud__icon { display: none; }

.dl-fraud .dl-check--radio .dl-check__box { border-radius: 50%; }

/* ---- 70-comms.css ---- */
/* =====================================================================
   70-comms — Communication (v2): chat thread + composer, check-in page,
   SMS patterns, email previews, payment-safety tile.
   Tokens only. Lead colour follows [data-lead].
   Prefixes: dl-msg, dl-composer, dl-file-chip, dl-checkin, dl-sms, dl-email, dl-comms-safety
   ===================================================================== */

/* ---- Payment safety: a soft tile with the safety icon (lead dot). Never a warning. */
.dl-comms-safety {
  display: flex; gap: var(--space-3); align-items: flex-start; margin: 0;
  padding: 12px 16px; border-radius: 18px;
  background: var(--surface); color: var(--text-secondary);
  font-size: 14px; line-height: 20px; --dl-icon-knock: var(--surface);
}
.dl-comms-safety > .dl-icon { width: 20px; height: 20px; color: var(--text); flex: none; }
.dl-comms-safety strong { font-weight: 600; color: var(--text); }
.dl-comms-safety--lg { padding: 16px 20px; font-size: 16px; line-height: 24px; border-radius: var(--radius-lg); }
.dl-comms-safety--lg > .dl-icon { width: 24px; height: 24px; }

/* ---- Message thread: modern chat. Them = soft grey bubble left, You = ink bubble right. */
.dl-msg-thread { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; min-width: 0; container-type: inline-size; }
.dl-msg-thread > .dl-msg-day { list-style: none; }
.dl-msg-day.dl-divider-label, .dl-msg-day {
  align-self: center; display: inline-flex; margin: var(--space-2) 0 0; padding: 4px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase;
}
.dl-msg-day.dl-divider-label::before, .dl-msg-day.dl-divider-label::after { content: none; }

.dl-msg { display: flex; flex-direction: column; gap: 6px; max-width: min(84%, 62ch); min-width: 0; position: relative; }
.dl-msg--them { align-self: flex-start; align-items: flex-start; }
.dl-msg--you { align-self: flex-end; align-items: flex-end; }
.dl-msg--new { animation: dl-msg-in var(--duration-slow) var(--ease-standard) both; }
@keyframes dl-msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.dl-msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 0 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-msg__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-4); color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; position: relative;
}
.dl-msg__avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--lead); box-shadow: 0 0 0 2px var(--surface-canvas); }
.dl-msg__who { font-weight: 600; color: var(--text); }
.dl-msg__role { color: var(--text-muted); }
.dl-msg__time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dl-msg--you .dl-msg__head { flex-direction: row; }
.dl-msg--you .dl-msg__role { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dl-msg__body {
  padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere;
  background: var(--surface); color: var(--text);
  transition: opacity var(--duration-base) var(--ease-standard), background-color var(--duration-base);
}
.dl-msg--them .dl-msg__body { border-bottom-left-radius: 6px; }
.dl-msg--you .dl-msg__body { background: var(--action-primary); color: var(--on-action-primary); border-bottom-right-radius: 6px; }
.dl-msg__body p { margin: 0 0 var(--space-2); }
.dl-msg__body p:last-child { margin-bottom: 0; }
.dl-msg__body:empty { display: none; }

.dl-msg__files { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; max-width: 100%; }
.dl-msg--you .dl-msg__files { justify-content: flex-end; }
.dl-msg__files > li { display: flex; min-width: 0; max-width: 100%; }
.dl-msg__files .dl-file-chip { min-width: 0; }
.dl-msg__files .dl-file-chip__name { white-space: normal; overflow-wrap: anywhere; }

.dl-msg__status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-msg__status .dl-icon { width: 16px; height: 16px; }
.dl-msg__status [data-icon="eye"] { color: var(--lead-text); }
.dl-msg__status--failed { color: var(--error-fg); font-weight: 600; }
.dl-msg__status--failed .dl-btn--link { font-size: 13px; color: var(--error-fg); }
.dl-msg--failed .dl-msg__body { background: var(--error-bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--error-border); }
.dl-msg--sending .dl-msg__body { opacity: 0.6; }

[data-density="compact"] .dl-msg-thread { gap: 10px; }
[data-density="compact"] .dl-msg__body { padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 20px; }
[data-density="compact"] .dl-msg--them .dl-msg__body { border-bottom-left-radius: 5px; }
[data-density="compact"] .dl-msg--you .dl-msg__body { border-bottom-right-radius: 5px; }
[data-density="compact"] .dl-msg__head, [data-density="compact"] .dl-msg__status { font-size: 12px; line-height: 16px; }
[data-density="compact"] .dl-msg__avatar { width: 24px; height: 24px; font-size: 10px; }
@container (max-width: 420px) { .dl-msg { max-width: 92%; } }

/* ---- File chip */
.dl-file-chip {
  display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-height: 44px;
  padding: 4px 6px 4px 6px; background: var(--surface-raised); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border-subtle);
  font-size: 14px; line-height: 20px; color: var(--text); text-decoration: none;
}
a.dl-file-chip { padding-right: 14px; transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast); }
a.dl-file-chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.dl-file-chip > .dl-icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--lead-soft); color: var(--text); flex: none; }
.dl-file-chip__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dl-file-chip__size { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-file-chip__remove {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); cursor: pointer;
}
.dl-file-chip__remove:hover { background: var(--surface-hover); color: var(--text); }

/* ---- Composer: a soft tile with the safety line on top, a filled field and pill actions */
.dl-composer { display: flex; flex-direction: column; gap: var(--space-3); padding: 12px; background: var(--surface); border-radius: var(--radius-lg); }
.dl-composer > .dl-comms-safety { background: transparent; padding: 4px 6px 0; font-size: 13px; line-height: 18px; }
.dl-composer > .dl-comms-safety > .dl-icon { width: 18px; height: 18px; }
.dl-composer__body { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 4px 4px; }
.dl-composer .dl-textarea { min-height: 88px; background: var(--surface-raised); }
.dl-composer .dl-textarea:focus-visible { background: var(--surface-raised); }
.dl-composer__meta { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.dl-composer__meta .dl-counter { margin: 0; }
.dl-composer__files { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.dl-composer__files:empty { display: none; }
.dl-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.dl-composer__attach { position: relative; overflow: hidden; --btn-bg: var(--surface-raised); }
.dl-composer__attach input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }
.dl-composer__attach:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-composer__send { margin-left: auto; }
.dl-composer__send .dl-btn__label { display: inline-flex; align-items: center; gap: var(--space-2); }
.dl-composer .dl-field-error[hidden] { display: none; }
[data-density="compact"] .dl-composer { padding: 8px; border-radius: 18px; }
@media (max-width: 420px) { .dl-composer__send { flex: 1 1 auto; } }

/* ---- Chat header used in previews and screens */
.dl-msg-header { display: flex; align-items: center; gap: var(--space-3); }
.dl-msg-header .dl-msg__avatar { width: 44px; height: 44px; font-size: 14px; margin: 0; }
.dl-msg-header__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.03em; margin: 0; }
.dl-msg-header__sub { font-size: 13px; line-height: 18px; color: var(--text-muted); margin: 0; }

/* ---- Check-in page (no login, mobile first) */
.dl-checkin { display: flex; flex-direction: column; min-height: 100%; background: var(--surface-canvas); color: var(--text); }
.dl-checkin__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 18px 20px 6px; color: var(--text); }
.dl-checkin__bar svg { display: block; height: 24px; width: auto; }
.dl-checkin__bar-note { font-size: 13px; line-height: 18px; color: var(--text-muted); text-align: right; }
.dl-checkin__main { flex: 1; width: 100%; max-width: var(--mover-max); margin: 0 auto; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.dl-checkin__picto { margin-bottom: -4px; }
.dl-checkin__asker { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-checkin__asker-line { font-size: 16px; line-height: 24px; color: var(--text-secondary); margin: 0; }
.dl-checkin__asker-line strong { color: var(--text); font-weight: 600; }
.dl-checkin__asker-sub { font-size: 13px; line-height: 18px; color: var(--text-muted); margin: 0; }
.dl-checkin__q {
  font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.045em;
  margin: 0 0 var(--space-3); padding: 0; text-wrap: balance;
}
.dl-checkin__choices { display: flex; flex-direction: column; gap: 10px; }
.dl-checkin__choice {
  position: relative; display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--answer-h, 64px); padding: 0 10px 0 24px; border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 17px; line-height: 22px; font-weight: 600; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), color var(--duration-base);
}
.dl-checkin__choice:hover { background: var(--surface-hover); transform: scale(1.015); }
.dl-checkin__choice:active { transform: scale(0.99); }
.dl-checkin__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; border-radius: 999px; }
.dl-checkin__choice > span:not(.dl-checkin__radio) { flex: 1; min-width: 0; padding: 12px 0; }
.dl-checkin__radio {
  order: 2; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-canvas);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  transition: background-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.dl-checkin__radio::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--border-strong); transition: box-shadow var(--duration-fast); }
.dl-checkin__choice:has(input:checked), .dl-checkin__choice.is-checked { background: var(--action-primary); color: var(--on-action-primary); }
.dl-checkin__choice input:checked ~ .dl-checkin__radio, .dl-checkin__choice.is-checked .dl-checkin__radio { background: var(--lead); animation: dl-pop var(--duration-slow) var(--ease-standard); }
.dl-checkin__choice input:checked ~ .dl-checkin__radio::before, .dl-checkin__choice.is-checked .dl-checkin__radio::before {
  width: 18px; height: 10px; border-radius: 0; box-shadow: none; border: solid var(--on-lead); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg);
}
.dl-checkin__choice:has(input:focus-visible), .dl-checkin__choice.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.dl-checkin__choice[data-invalid] { box-shadow: inset 0 0 0 2px var(--error-border); }
.dl-checkin__reveal { padding: 18px 20px 20px; background: var(--lead-soft); border-radius: var(--radius-lg); animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-checkin__reveal[hidden] { display: none; }
.dl-checkin__reveal .dl-input { max-width: 16ch; font-variant-numeric: tabular-nums; background: var(--surface-canvas); }
.dl-checkin__note { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
.dl-checkin__result { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.dl-checkin__result-icon { width: 40px; height: 40px; color: var(--text-secondary); }
.dl-checkin__result-icon svg { width: 100%; height: 100%; }
.dl-checkin__result--done .dl-checkin__result-icon { color: var(--success-fg); }
.dl-checkin__result-title { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.dl-checkin__result p { margin: 0; }
.dl-checkin__answer { width: 100%; margin: 0; padding: 16px 20px; background: var(--surface); border-radius: 20px; }
.dl-checkin__answer dt { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.dl-checkin__answer dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; letter-spacing: -0.03em; }
.dl-checkin > .dl-comms-safety { margin: auto 20px 20px; }
.dl-checkin__error-summary { padding: 14px 18px; background: var(--error-bg); color: var(--text); border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--error-border); }
.dl-checkin__error-summary[hidden] { display: none; }
.dl-checkin__error-summary p { margin: 0; font-weight: 600; color: var(--error-fg); display: flex; gap: var(--space-2); align-items: center; }
.dl-checkin .dl-field-error[hidden], .dl-checkin [hidden] { display: none; }

/* ---- SMS patterns: phone message bubbles */
.dl-sms-phone {
  width: 320px; max-width: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-canvas); border-radius: 36px; box-shadow: 0 0 0 6px var(--text), var(--shadow-md); margin: 6px;
}
.dl-sms-phone__head {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 16px 12px;
  background: var(--surface); border-bottom: 1px solid var(--border-subtle);
}
.dl-sms-phone__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-inverse); color: var(--text-inverse); display: inline-flex; align-items: center; justify-content: center; }
.dl-sms-phone__avatar .dl-icon { width: 24px; height: 24px; }
.dl-sms-phone__sender { font-weight: 600; font-size: 15px; line-height: 20px; }
.dl-sms-phone__kind { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dl-sms-phone__body { min-height: 190px; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 20px; }
.dl-sms-phone__stamp { font-size: 12px; line-height: 16px; color: var(--text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.dl-sms__bubble {
  align-self: flex-start; max-width: 88%; margin: 0; padding: 10px 14px;
  background: var(--surface); color: var(--text); border-radius: 20px 20px 20px 6px;
  font-size: 15px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.dl-sms-phone__body .dl-sms__bubble { animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.dl-sms__bubble .dl-sms__link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.dl-sms__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin: 0; }
.dl-sms__meta > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface); }
.dl-sms__meta b { color: var(--text); font-weight: 600; }
.dl-sms__meta [data-enc="GSM-7"] { background: var(--status-done-bg); color: var(--status-done-fg); font-weight: 600; }
.dl-sms__meta [data-enc="UCS-2"] { background: var(--error-bg); color: var(--error-fg); font-weight: 600; }
.dl-demo__do .dl-sms__meta > span, .dl-demo__dont .dl-sms__meta > span, .dl-demo__pane .dl-sms__meta > span { background: var(--surface-raised); }
.dl-sms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-8) var(--space-6); }
.dl-sms__example { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.dl-sms__example .dl-sms-phone { width: calc(100% - 12px); }
.dl-sms__spec { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--space-3); }
.dl-sms__spec > div { background: var(--surface); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.dl-sms__spec dt { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 22px; letter-spacing: -0.02em; }
.dl-sms__spec dd { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.dl-demo__do .dl-sms__bubble, .dl-demo__dont .dl-sms__bubble { background: var(--surface-raised); }
.dl-sms__mark { padding: 0 3px; margin: 0 1px; background: var(--error-bg); color: var(--error-fg); box-shadow: inset 0 0 0 1px var(--error-border); border-radius: 4px; }

/* ---- Email previews (library pages: real email markup, scaled) */
.dl-email-head { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.dl-email-head > .dl-stack { flex: 1 1 320px; min-width: 0; }
.dl-email-pair, .dl-email-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--space-6); }
.dl-email-grid { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.dl-email-shot { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; margin: 0; }
.dl-email-shot__frame { border-radius: var(--radius-lg); overflow: hidden; width: 432px; max-width: 100%; box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-sm); transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow); }
.dl-email-shot__frame:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-md); }
.dl-email-shot__scale { width: 600px; zoom: 0.72; }
.dl-email-shot--sm .dl-email-shot__frame { width: 384px; }
.dl-email-shot--sm .dl-email-shot__scale { zoom: 0.64; }
@media (max-width: 520px) {
  .dl-email-shot__frame, .dl-email-shot--sm .dl-email-shot__frame { width: 100%; }
  .dl-email-shot__scale, .dl-email-shot--sm .dl-email-shot__scale { zoom: 0.56; }
}
.dl-email-list { list-style: none; margin: 0; padding: 6px 20px; border-radius: var(--radius-lg); background: var(--surface); }
.dl-email-list__item { display: grid; grid-template-columns: 12px 180px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--border-subtle); align-items: baseline; }
.dl-email-list__item:first-child { border-top: 0; }
.dl-email-list__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lead); align-self: center; }
.dl-email-list__file { white-space: nowrap; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.dl-email-list__subject { font-weight: 600; margin: 0; }
.dl-email-list__pre { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) { .dl-email-list__item { grid-template-columns: 12px 1fr; } .dl-email-list__item > div { grid-column: 1 / -1; } }

/* ---- 80-screens-mover.css ---- */
/* ==========================================================================
   80-screens-mover.css (v2): home-mover reference screens and the email screen.
   ScreenYourMove, ScreenAIAnswer, ScreenCheckIn, ScreenEmail.
   Phone frames, app chrome, the line, answer pills, mail client. Tokens only.
   Prefix: scr-m-
   ========================================================================== */

/* ---- Stage: phones side by side with a notes column ---------------------- */
.scr-m-stage { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.scr-m-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 100%; }
.scr-m-col > .dl-demo__label { padding-left: 10px; }
.scr-m-notes { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.scr-m-notes__title { font-family: var(--font-display); font-size: 28px; line-height: 30px; font-weight: 600; letter-spacing: -0.04em; margin: 0 0 4px; text-wrap: balance; }
.scr-m-notes__intro { margin: 0 0 8px; color: var(--text-secondary); }
.scr-m-note { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: 20px; }
.scr-m-note b { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.scr-m-note p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.scr-m-note__n { width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--surface-canvas); display: grid; place-items: center; font: 600 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.scr-m-note--lead .scr-m-note__n { background: var(--lead); color: var(--on-lead); }

/* ---- Phone ---------------------------------------------------------------- */
.dl-demo__phone.scr-m-phone { width: 390px; flex: none; border-radius: 48px; box-shadow: 0 0 0 10px var(--text), var(--shadow-lg); margin: 10px; }
.scr-m-screen { height: 844px; display: flex; flex-direction: column; overflow: hidden; position: relative; background: var(--surface-canvas); color: var(--text); }
.scr-m-sb { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 36px; font: 600 15px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.scr-m-sb svg { width: 66px; height: 14px; display: block; }
.scr-m-app { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 8px 20px 20px; }
.scr-m-app--tight { gap: 14px; padding-top: 4px; }
.scr-m-app--tight .scr-m-sec { gap: 10px; }
.scr-m-app > * { flex: none; }
.scr-m-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.scr-m-top__end { display: flex; align-items: center; gap: 8px; }
.scr-m-top__title { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; line-height: 22px; text-align: center; }
.scr-m-top__for { font-size: 13px; line-height: 16px; color: var(--text-muted); text-align: right; }

/* inline lockup: node mark + outlined wordmark */
.scr-m-lockup { display: inline-flex; align-items: center; gap: 4px; color: var(--text); text-decoration: none; }
.scr-m-lockup__mark { width: 28px; height: 28px; flex: none; }
.scr-m-lockup__wm { height: 18px; width: 94px; flex: none; }
.scr-m-lockup--sm .scr-m-lockup__mark { width: 22px; height: 22px; }
.scr-m-lockup--sm .scr-m-lockup__wm { height: 14px; width: 73px; }
.scr-m-lockup--lg .scr-m-lockup__mark { width: 34px; height: 34px; }
.scr-m-lockup--lg .scr-m-lockup__wm { height: 22px; width: 114px; }

.scr-m-iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; position: relative; padding: 0; transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-instant); }
.scr-m-iconbtn:hover { background: var(--surface-hover); transform: translateY(-1px); }
.scr-m-iconbtn__dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--lead); box-shadow: 0 0 0 2px var(--surface); }
.scr-m-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--tint-4); color: var(--text); font: 600 14px/1 var(--font-sans); letter-spacing: 0.01em; }
.scr-m-avatar--1 { background: var(--tint-1); } .scr-m-avatar--2 { background: var(--tint-2); } .scr-m-avatar--3 { background: var(--tint-3); }
.scr-m-avatar--ink { background: var(--surface-inverse); color: var(--text-inverse); }
.scr-m-avatar--sm { width: 36px; height: 36px; font-size: 12px; }

/* ---- Your move: hero, status statement, the line ---------------------- */
.scr-m-hero { display: flex; flex-direction: column; gap: 6px; }
.scr-m-hero__title { font-family: var(--font-display); font-weight: 650; font-size: 44px; line-height: 42px; letter-spacing: -0.05em; margin: 0; }
.scr-m-hero__sub { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scr-m-ref { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-muted); }

.scr-m-journey { background: var(--lead-soft); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.scr-m-ontrack { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--surface-canvas); font-size: 14px; line-height: 20px; font-weight: 600; }
.scr-m-ontrack i { width: 10px; height: 10px; border-radius: 50%; background: var(--status-done-fg); box-shadow: 0 0 0 4px var(--status-done-bg); }
.scr-m-statement { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 32px; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.scr-m-statement span { display: block; }
.scr-m-statement .scr-m-statement__est { font-size: 40px; line-height: 42px; letter-spacing: -0.045em; font-weight: 650; font-variant-numeric: tabular-nums; }
.scr-m-conf { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.scr-m-conf__bar { display: inline-flex; gap: 3px; }
.scr-m-conf__bar i { width: 18px; height: 6px; border-radius: 999px; background: var(--surface-canvas); }
.scr-m-conf__bar i.on { background: var(--text); }
.scr-m-conf a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; margin-left: auto; }
.scr-m-line { display: block; width: 100%; height: auto; overflow: visible; }
.scr-m-line__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: -4px; }
.scr-m-line__meta b { color: var(--text); font-weight: 600; }

/* next-step card: ink */
.scr-m-next { background: var(--surface-inverse); color: var(--text-inverse); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.scr-m-next .dl-overline { color: inherit; opacity: 0.72; }
.scr-m-next__title { font-family: var(--font-display); font-size: 23px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.scr-m-next__meta { margin: 0; font-size: 14px; line-height: 20px; opacity: 0.78; }
.scr-m-next__actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.scr-m-next .scr-m-btn-inv { --btn-fg: var(--text-inverse); --btn-bg-hover: transparent; text-decoration: underline; text-underline-offset: 3px; }

.scr-m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scr-m-tile { color: var(--text); text-decoration: none; border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: var(--surface); }
.scr-m-tile small { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.scr-m-tile b { font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scr-m-tile--2 { background: var(--tint-2); } .scr-m-tile--3 { background: var(--tint-3); } .scr-m-tile--4 { background: var(--tint-4); }

/* section heads inside phones */
.scr-m-sec { display: flex; flex-direction: column; gap: 12px; }
.scr-m-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scr-m-sec__title { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.035em; margin: 0; }
.scr-m-sec__aside { font-size: 14px; color: var(--text-muted); }

/* vertical line with pictograms */
.scr-m-vline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scr-m-vline li { display: grid; grid-template-columns: 42px 1fr auto; column-gap: 14px; align-items: center; position: relative; min-height: 50px; }
.scr-m-vline li::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 6px; background: var(--timeline-rail, var(--surface-sunken)); }
.scr-m-vline li:first-child::before { top: 50%; }
.scr-m-vline li:last-child::before { bottom: 50%; }
.scr-m-vline li.is-done::before { background: var(--text); }
.scr-m-vline li.is-now::before { background: linear-gradient(var(--text) 50%, var(--timeline-rail, var(--surface-sunken)) 50%); }
.scr-m-vline__node { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; }
.scr-m-vline__node .dl-picto { width: 30px; height: 30px; }
.scr-m-vline li.is-done .scr-m-vline__node { background: var(--surface); box-shadow: 0 0 0 2px var(--text); }
.scr-m-vline li.is-now .scr-m-vline__node { background: var(--lead-soft); box-shadow: 0 0 0 4px var(--lead); }
.scr-m-vline li.is-todo .scr-m-vline__node .dl-picto { opacity: 0.55; filter: grayscale(1); }
.scr-m-vline__tick { position: absolute; right: -4px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: var(--surface-canvas); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface-canvas); }
.scr-m-vline__tick .dl-icon { width: 12px; height: 12px; }
.scr-m-vline__tick .dl-icon svg { stroke-width: 3; }
.scr-m-vline__name { font-weight: 600; font-size: 16px; line-height: 20px; display: block; }
.scr-m-vline__when { font-size: 13px; line-height: 18px; color: var(--text-muted); display: block; font-variant-numeric: tabular-nums; }
.scr-m-vline li.is-now .scr-m-vline__name { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }

/* who's who */
.scr-m-people { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px; }
.scr-m-people li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 8px; }
.scr-m-people li + li { border-top: 1px solid var(--border-subtle); }
.scr-m-people__who { min-width: 0; }
.scr-m-people__who b { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.scr-m-people__who span { display: block; font-size: 13px; line-height: 18px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-m-people .scr-m-iconbtn { width: 40px; height: 40px; background: var(--surface-canvas); }

/* payment safety: soft tile */
.scr-m-safety { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--surface); border-radius: 20px; padding: 14px 16px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.scr-m-safety b { color: var(--text); font-weight: 600; display: block; font-size: 14px; }
.scr-m-safety .dl-icon { width: 22px; height: 22px; color: var(--text); margin-top: 1px; }
.scr-m-safety--canvas { background: var(--surface-canvas); }

/* tab bar */
.scr-m-tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 12px 26px; border-top: 1px solid var(--border-subtle); background: var(--surface-canvas); }
.scr-m-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; position: relative; }
.scr-m-tabbar a .dl-icon { width: 24px; height: 24px; }
.scr-m-tabbar a[aria-current="page"] { color: var(--text); font-weight: 650; }
.scr-m-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -9px; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--lead); }
.scr-m-tabbar__badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lead); color: var(--on-lead); font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }

/* scrolled header */
.scr-m-mini { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); margin: 0 -20px; padding-inline: 20px; }
.scr-m-mini__t { flex: 1; min-width: 0; }
.scr-m-mini__t b { display: block; font-family: var(--font-display); font-size: 20px; line-height: 24px; letter-spacing: -0.03em; font-weight: 600; }
.scr-m-mini__t span { font-size: 13px; color: var(--text-muted); }

/* ---- Ask: question, answer, sources ------------------------------------- */
.scr-m-day { align-self: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-muted); }
.scr-m-q { margin: 0; align-self: flex-end; max-width: 82%; background: var(--surface-inverse); color: var(--text-inverse); border-radius: 24px 24px 6px 24px; padding: 12px 18px; font-size: 17px; line-height: 24px; font-weight: 500; }
.scr-m-q small { display: block; text-align: right; font-size: 11px; opacity: 0.7; margin-top: 2px; }
.scr-m-ans { background: var(--surface); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.scr-m-ans__by { display: flex; align-items: center; gap: 10px; }
.scr-m-ans__badge { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-canvas); display: grid; place-items: center; flex: none; }
.scr-m-ans__badge svg { width: 22px; height: 22px; margin-left: 2px; }
.scr-m-ans__by b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.scr-m-ans__by span { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.scr-m-ans__big { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 32px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.scr-m-ans__big small { display: block; font-family: var(--font-sans); font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.scr-m-ans__text { margin: 0; font-size: 16px; line-height: 24px; }
.scr-m-cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 1px; border-radius: 999px; background: var(--surface-canvas); color: var(--text); font-size: 11px; line-height: 1; font-weight: 700; text-decoration: none; vertical-align: 2px; box-shadow: inset 0 0 0 1px var(--border); }
.scr-m-cite:hover { background: var(--lead); color: var(--on-lead); box-shadow: none; }
.scr-m-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 18px; color: var(--text-secondary); padding: 10px 12px; border-radius: 14px; background: var(--surface-canvas); }
.scr-m-warn .dl-icon { width: 16px; height: 16px; margin-top: 1px; color: var(--text); }
.scr-m-ans .scr-m-conf__bar i { background: var(--surface-sunken); }
.scr-m-ans .scr-m-conf__bar i.on { background: var(--lead); }
.scr-m-srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scr-m-srcs li { display: grid; grid-template-columns: 22px 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--surface-canvas); }
.scr-m-srcs__n { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.scr-m-srcs__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--tint-2); display: grid; place-items: center; }
.scr-m-srcs li:nth-child(2) .scr-m-srcs__ic { background: var(--tint-3); }
.scr-m-srcs li:nth-child(3) .scr-m-srcs__ic { background: var(--tint-1); }
.scr-m-srcs__ic .dl-icon { width: 18px; height: 18px; }
.scr-m-srcs b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.scr-m-srcs span.m { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.scr-m-help { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.scr-m-help > span { font-size: 14px; font-weight: 600; margin-right: auto; }
.scr-m-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 0; background: var(--surface-canvas); color: var(--text); font: 600 14px/1 var(--font-sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--border); transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-instant); }
.scr-m-pill:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.scr-m-pill .dl-icon { width: 18px; height: 18px; }
.scr-m-pill[aria-pressed="true"] { background: var(--action-primary); color: var(--on-action-primary); box-shadow: none; }
.scr-m-thanks { font-size: 13px; color: var(--text-muted); width: 100%; margin: 0; }

.scr-m-hand { background: var(--surface-canvas); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.scr-m-hand b { font-weight: 600; font-size: 15px; line-height: 20px; display: block; }
.scr-m-hand span.m { display: block; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.scr-m-hand .dl-status { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.scr-m-hand p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.scr-m-related { display: flex; flex-direction: column; gap: 8px; }
.scr-m-related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 12px 0 18px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform var(--duration-fast) var(--ease-standard); }
.scr-m-related a:hover { transform: translateX(2px); }
.scr-m-related a .dl-icon { width: 18px; height: 18px; }
.scr-m-related a > span:last-child { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-canvas); display: grid; place-items: center; }

.scr-m-dock { flex: none; padding: 10px 16px 28px; border-top: 1px solid var(--border-subtle); background: var(--surface-canvas); display: flex; flex-direction: column; gap: 10px; }
.scr-m-chips { display: flex; gap: 8px; overflow: hidden; }
.scr-m-chips a { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--lead-soft); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.scr-m-compose { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 6px 6px 6px 18px; min-height: 56px; }
.scr-m-compose label { flex: 1; min-width: 0; }
.scr-m-compose input { width: 100%; border: 0; background: transparent; font-size: 16px; line-height: 24px; padding: 8px 0; color: var(--text); }
.scr-m-compose input::placeholder { color: var(--text-muted); opacity: 1; }
.scr-m-compose input:focus-visible { outline: none; box-shadow: none; }
.scr-m-compose:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.scr-m-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lead); color: var(--on-lead); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.scr-m-send .dl-icon { width: 20px; height: 20px; }

/* ---- Check-in ------------------------------------------------------------ */
.scr-m-progress { display: flex; flex-direction: column; gap: 8px; }
.scr-m-progress__row { display: flex; justify-content: space-between; font-size: 13px; line-height: 16px; color: var(--text-muted); font-weight: 500; }
.scr-m-progress__row b { color: var(--text); font-weight: 600; }
.scr-m-progress__bar { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 6px; }
.scr-m-progress__bar i { height: 6px; border-radius: 999px; background: var(--border); }
.scr-m-progress__bar i.on { background: var(--lead); }
.scr-m-ask { font-family: var(--font-display); font-weight: 650; font-size: 40px; line-height: 40px; letter-spacing: -0.05em; margin: 6px 0 0; text-wrap: balance; }
.scr-m-ask-sub { margin: 0; font-size: 17px; line-height: 25px; color: var(--text-secondary); }
.scr-m-answers { display: flex; flex-direction: column; gap: 10px; margin-top: auto; border: 0; padding: 0; min-width: 0; }
.scr-m-answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; width: 100%; padding: 0 10px 0 26px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); font: 600 18px/22px var(--font-sans); letter-spacing: -0.01em; text-align: left; cursor: pointer; transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.scr-m-answer:hover { transform: scale(1.015); background: var(--surface-hover); }
.scr-m-answer__go { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-canvas); display: grid; place-items: center; flex: none; transition: background-color var(--duration-fast); }
.scr-m-answer__go .dl-icon { width: 20px; height: 20px; }
.scr-m-answer[aria-pressed="true"] { background: var(--action-primary); color: var(--on-action-primary); }
.scr-m-answer[aria-pressed="true"] .scr-m-answer__go { background: var(--lead); color: var(--on-lead); }
.scr-m-later { align-self: center; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.scr-m-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.scr-m-moved { background: var(--lead-soft); border-radius: 28px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.scr-m-moved__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scr-m-moved__row b { font-weight: 600; font-size: 15px; }
.scr-m-moved .dl-status { background: var(--surface-canvas); }
.scr-m-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---- Email: mail client -------------------------------------------------- */
.scr-m-mail { background: var(--surface); border-radius: 32px; padding: 12px; min-width: 0; }
.scr-m-mail__in { background: var(--surface-canvas); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 208px 300px minmax(0, 1fr); min-height: 900px; }
.scr-m-mail__side { padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border-subtle); }
.scr-m-mail__app { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-weight: 650; font-size: 16px; }
.scr-m-mail__app i { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-sunken); display: grid; place-items: center; font-style: normal; }
.scr-m-mail__app .dl-icon { width: 18px; height: 18px; }
.scr-m-mail__compose { margin-bottom: 14px; }
.scr-m-mail__side a:not(.dl-btn) { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-secondary); text-decoration: none; font-size: 14px; line-height: 20px; }
.scr-m-mail__side a .dl-icon { width: 18px; height: 18px; }
.scr-m-mail__side a:not(.dl-btn) span:last-child { margin-left: auto; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scr-m-mail__side a[aria-current="page"] { background: var(--surface-selected); color: var(--text); font-weight: 600; }
.scr-m-mail__list { border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; min-width: 0; }
.scr-m-mail__search { margin: 16px 14px 8px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--surface); border-radius: 999px; color: var(--text-muted); font-size: 14px; }
.scr-m-mail__search .dl-icon { width: 16px; height: 16px; }
.scr-m-mail__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 14px 16px 14px 22px; margin: 0 8px; border-radius: 16px; position: relative; color: var(--text); text-decoration: none; }
.scr-m-mail__item + .scr-m-mail__item { margin-top: 2px; }
.scr-m-mail__item b { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-m-mail__item time { font-size: 12px; line-height: 20px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.scr-m-mail__item .s { grid-column: 1 / -1; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-m-mail__item .p { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scr-m-mail__item.is-unread::before { content: ""; position: absolute; left: 8px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--lead); }
.scr-m-mail__item.is-unread .s { font-weight: 600; }
.scr-m-mail__item[aria-current="true"] { background: var(--surface-selected); }
.scr-m-mail__item:not([aria-current="true"]):not(.is-unread) b { font-weight: 500; }
.scr-m-mail__read { min-width: 0; display: flex; flex-direction: column; }
.scr-m-mail__head { padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--border-subtle); }
.scr-m-mail__subject { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.035em; margin: 0; }
.scr-m-mail__from { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.scr-m-mail__from b { font-weight: 600; font-size: 14px; }
.scr-m-mail__from .addr { color: var(--text-muted); font-size: 13px; }
.scr-m-mail__from .to { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.scr-m-mail__from time { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scr-m-mail__acts { display: flex; gap: 6px; }
.scr-m-mail__acts .scr-m-iconbtn { width: 36px; height: 36px; }
.scr-m-mail__acts .dl-icon { width: 18px; height: 18px; }
.scr-m-mail__body { flex: 1; background: var(--surface); padding: 32px 24px 40px; }

/* the email itself */
.scr-m-email { max-width: 600px; margin: 0 auto; background: var(--surface-canvas); border-radius: 28px; overflow: hidden; }
.scr-m-email__band { background: var(--surface-brand); color: var(--text-on-brand); padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scr-m-email__band .scr-m-lockup { color: var(--text-on-brand); }
.scr-m-email__band small { font-size: 13px; opacity: 0.8; }
.scr-m-email__main { padding: 32px 32px 8px; display: flex; flex-direction: column; gap: 18px; }
.scr-m-email__main p { margin: 0; font-size: 16px; line-height: 25px; }
.scr-m-email__h1 { font-family: var(--font-display); font-weight: 650; font-size: 40px; line-height: 40px; letter-spacing: -0.05em; margin: 0; text-wrap: balance; }
.scr-m-email__prop { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.scr-m-email__prop b { display: block; font-weight: 600; }
.scr-m-email__line { background: var(--lead-soft); border-radius: 24px; padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 10px; }
.scr-m-email__line .scr-m-line__meta { margin-top: 0; }
.scr-m-email__line .scr-m-line { max-width: 380px; }
.scr-m-email__est { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: 24px; background: var(--surface); }
.scr-m-email__est small { display: block; font-size: 14px; color: var(--text-secondary); }
.scr-m-email__est b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 38px; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.scr-m-email__est p { grid-column: 1 / -1; font-size: 14px !important; line-height: 20px !important; color: var(--text-secondary); }
.scr-m-email__est .dl-picto { width: 64px; height: 64px; }
.scr-m-email__foot { padding: 20px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.scr-m-email__small { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-muted); }
.scr-m-email__small a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .scr-m-mail__in { grid-template-columns: 280px minmax(0, 1fr); }
  .scr-m-mail__side { display: none; }
}
@media (max-width: 760px) {
  .scr-m-mail { padding: 6px; border-radius: 24px; }
  .scr-m-mail__in { grid-template-columns: minmax(0, 1fr); border-radius: 18px; min-height: 0; }
  .scr-m-mail__list { display: none; }
  .scr-m-mail__head { padding: 16px; }
  .scr-m-mail__subject { font-size: 22px; line-height: 26px; }
  .scr-m-mail__from { grid-template-columns: auto 1fr; }
  .scr-m-mail__from time { grid-column: 2; }
  .scr-m-mail__acts { display: none; }
  .scr-m-mail__body { padding: 12px 8px 16px; }
  .scr-m-email { border-radius: 20px; }
  .scr-m-email__band, .scr-m-email__main, .scr-m-email__foot { padding-left: 20px; padding-right: 20px; }
  .scr-m-email__h1 { font-size: 32px; line-height: 32px; }
  .scr-m-email__est b { font-size: 28px; line-height: 32px; }
  .scr-m-notes { padding-top: 0; }
}
@media (max-width: 440px) {
  .scr-m-stage { gap: 24px; }
  .dl-demo__phone.scr-m-phone { margin: 10px 0; width: 100%; }
  .scr-m-hero__title { font-size: 38px; line-height: 38px; }
  .scr-m-ask { font-size: 34px; line-height: 36px; }
}

/* ---- 81-screens-pro.css ---- */
/* =====================================================================
   Deedline v2 — Reference screens, professional desktop (prefix scr-p-).
   Progressor dashboard, sale detail, review queue. Lead = Ultramarine via
   data-lead="pro" on .scr-p-app. Tokens only; no hex.
   The screens are assembled from the v2 components (dl-sidenav, dl-appbar,
   dl-stat, dl-table, dl-status, dl-ms, dl-tl, dl-chain, dl-est, dl-conf,
   dl-redact, dl-btn). This file only adds layout and screen-only pieces.
   ===================================================================== */

/* ---- App shell: slim side nav + column (top bar, main) */
.scr-p-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--surface-canvas); color: var(--text); font-family: var(--font-sans); }
.scr-p-app h1, .scr-p-app h2, .scr-p-app h3, .scr-p-app p, .scr-p-app dl, .scr-p-app dd { margin: 0; }
.scr-p-app--rail { grid-template-columns: 76px minmax(0, 1fr); }
.scr-p-app > .dl-sidenav { width: auto; height: auto; min-height: 100vh; position: relative; }
.scr-p-app > .dl-sidenav .dl-sidenav__scroll { overflow: visible; }
.scr-p-col { display: flex; flex-direction: column; min-width: 0; }
.scr-p-col > .dl-appbar .dl-appbar__inner { padding-left: 40px; padding-right: 28px; }
.scr-p-col > .dl-appbar .dl-appbar__search { margin-left: 0; }
.scr-p-main { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 36px 40px 56px; min-width: 0; }

/* ---- Page head */
.scr-p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.scr-p-head__t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scr-p-title { font-family: var(--font-display); font-weight: 650; font-size: 48px; line-height: 48px; letter-spacing: -0.05em; text-wrap: balance; }
.scr-p-title--xl { font-size: 64px; line-height: 60px; letter-spacing: -0.055em; }
.scr-p-sub { font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.scr-p-sub b { color: var(--text); font-weight: 600; }
.scr-p-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scr-p-crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.scr-p-crumbs a { color: var(--text-secondary); font-weight: 600; text-decoration: none; }
.scr-p-crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.scr-p-crumbs .dl-icon { width: 16px; height: 16px; }
.scr-p-ref { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 13px; line-height: 18px; letter-spacing: 0.02em; color: var(--text-secondary); }
.scr-p-ref .dl-icon { width: 14px; height: 14px; }

/* ---- Bento grid + tiles */
.scr-p-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.scr-p-grid--stretch { align-items: stretch; }
.scr-p-s3 { grid-column: span 3; } .scr-p-s4 { grid-column: span 4; } .scr-p-s5 { grid-column: span 5; } .scr-p-s6 { grid-column: span 6; } .scr-p-s7 { grid-column: span 7; } .scr-p-s8 { grid-column: span 8; } .scr-p-s12 { grid-column: 1 / -1; }
.scr-p-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.scr-p-tile { position: relative; background: var(--surface); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.scr-p-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scr-p-tile__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 28px; letter-spacing: -0.035em; display: flex; align-items: center; gap: 10px; }
.scr-p-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; background: var(--surface-canvas); font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.scr-p-count--lead { background: var(--lead); color: var(--on-lead); }
.scr-p-more { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; margin: -6px -8px -6px 0; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-decoration: none; }
.scr-p-more:hover { background: var(--surface-hover); }
.scr-p-more .dl-icon { width: 16px; height: 16px; }
.scr-p-cardin { background: var(--surface-raised); border-radius: 18px; }

/* ---- Dashboard stat tiles (dl-stat with extra content) */
.scr-p-grid > .dl-stat { min-height: 280px; }
.scr-p-hero-n { display: flex; align-items: baseline; gap: 10px; }
.scr-p-hero-n .dl-stat__value { font-size: 104px; line-height: .86; letter-spacing: -0.06em; }
.scr-p-hero-n .dl-stat__unit { font-family: var(--font-display); font-size: 28px; line-height: 30px; font-weight: 600; letter-spacing: -0.035em; margin: 0; opacity: 1; }
.dl-stat .scr-p-hero-n .dl-stat__value { font-size: 88px; }
.scr-p-stages { display: block; width: 100%; height: auto; overflow: visible; margin-top: auto; }
.scr-p-stages text { font-family: var(--font-sans); fill: currentColor; }
.scr-p-stages .n { font-family: var(--font-display); font-weight: 650; font-size: 22px; letter-spacing: -0.03em; }
.scr-p-stages .l { font-size: 12px; font-weight: 500; opacity: .82; }
.scr-p-reasons { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.scr-p-reason { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.scr-p-reason b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.scr-p-reason i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-canvas); position: relative; overflow: hidden; }
.scr-p-reason i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: var(--status-at-risk-fg); transform-origin: left; animation: scr-p-grow var(--duration-draw) var(--ease-standard) both; }
@keyframes scr-p-grow { from { transform: scaleX(0); } to { transform: none; } }
.scr-p-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.scr-p-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 12px; border-radius: 16px; background: color-mix(in oklab, var(--text-inverse) 9%, transparent); font-size: 12px; line-height: 16px; }
.scr-p-day span { opacity: .72; }
.scr-p-day b { font-family: var(--font-display); font-size: 20px; line-height: 22px; font-weight: 650; letter-spacing: -0.03em; }
.scr-p-day__dots { display: flex; gap: 3px; height: 8px; }
.scr-p-day__dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .9; }
.scr-p-day__dots i.d { background: var(--status-done-bg); opacity: 1; }
.scr-p-day--today { background: var(--lead); color: var(--on-lead); }
.scr-p-day--today span { opacity: .9; }

/* ---- Needs you today */
.scr-p-todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scr-p-todo li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 14px 14px 14px; border-radius: 20px; background: var(--surface-raised); transition: transform var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard); }
.scr-p-todo li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scr-p-todo b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.scr-p-todo small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--text-muted); margin-top: 3px; }
.scr-p-todo small .dl-ref, .scr-p-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; }
.scr-p-ic { width: 44px; height: 44px; border-radius: 15px; display: inline-grid; place-items: center; background: var(--tint-1); color: var(--text); flex: none; }
.scr-p-ic .dl-icon { width: 22px; height: 22px; }
.scr-p-ic--blocked { background: var(--status-blocked-bg); color: var(--status-blocked-fg); }
.scr-p-ic--risk { background: var(--status-at-risk-bg); color: var(--status-at-risk-fg); }
.scr-p-ic--check { background: var(--status-checking-bg); color: var(--status-checking-fg); }
.scr-p-ic--done { background: var(--status-done-bg); color: var(--status-done-fg); }
.scr-p-ic--ink { background: var(--surface-inverse); color: var(--text-inverse); }
.scr-p-ic--sm { width: 36px; height: 36px; border-radius: 12px; }
.scr-p-ic--sm .dl-icon { width: 18px; height: 18px; }

/* ---- Sales table extras */
.scr-p-tablehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 12px 14px 16px; }
.scr-p-tile__head .dl-btn--icon.dl-btn--sm { min-height: 36px; min-width: 36px; width: 36px; }
.scr-p-tablehead .dl-segmented { background: var(--surface-canvas); }
.scr-p-tablefoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 8px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.scr-p-prop a { font-weight: 600; color: var(--text); text-decoration: none; display: block; white-space: nowrap; }
.scr-p-prop a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scr-p-prop .dl-ref { display: block; font-size: 12px; margin-top: 2px; }
.scr-p-stage { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.scr-p-stage span { font-size: 14px; line-height: 18px; }
.scr-p-wait b { display: block; font-weight: 500; white-space: nowrap; }
.scr-p-wait small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); white-space: nowrap; }
.scr-p-quiet { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scr-p-quiet--late { color: var(--status-at-risk-fg); }
.scr-p-quiet .dl-icon { width: 16px; height: 16px; }

/* Mini line: 7 milestones, travelled in ink, current node in lead */
.scr-p-mini { --at: 1; position: relative; display: flex; align-items: center; justify-content: space-between; width: 112px; height: 14px; }
.scr-p-mini::before, .scr-p-mini::after { content: ""; position: absolute; left: 3px; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; }
.scr-p-mini::before { right: 3px; background: var(--surface-sunken); }
.scr-p-mini::after { width: calc((100% - 6px) * (var(--at) - 1) / 6); background: var(--text); transform-origin: left; animation: scr-p-grow var(--duration-draw) var(--ease-standard) both; }
.scr-p-mini i { position: relative; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-sunken); }
.scr-p-mini i.d { width: 8px; height: 8px; background: var(--text); }
.scr-p-mini i.n { width: 14px; height: 14px; background: var(--lead); box-shadow: 0 0 0 3px var(--surface-canvas), 0 0 0 4.5px var(--text); }
.scr-p-mini--risk i.n { background: var(--status-at-risk-fg); }
.scr-p-mini--blocked i.n { background: var(--status-blocked-fg); }
.scr-p-mini--done::after { width: calc(100% - 6px); }

/* ---- Sale detail */
.scr-p-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; }
.scr-p-hero__t { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.scr-p-hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scr-p-hero__addr { font-size: 18px; line-height: 26px; color: var(--text-secondary); }
.scr-p-facts { display: flex; gap: 8px; flex-wrap: wrap; }
.scr-p-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 18px; background: var(--surface); font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.scr-p-fact b { font-family: var(--font-display); font-size: 20px; line-height: 24px; letter-spacing: -0.03em; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.scr-p-linetile { padding: 24px 28px 28px; }
.scr-p-linetile .dl-ms { --ms-hole: var(--surface); }
.scr-p-quietnote { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.scr-p-quietnote .dl-status { flex: none; }
.scr-p-tile .dl-tl { --tl-bg: var(--surface); }
.scr-p-tile .dl-est { --est-cell: var(--surface-raised); }
.scr-p-tile .dl-chain { --chain-card: var(--surface-raised); }

/* Parties + documents */
.scr-p-rows { display: flex; flex-direction: column; gap: 6px; }
.scr-p-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface-raised); }
.scr-p-row b { display: block; font-size: 14px; line-height: 19px; font-weight: 600; }
.scr-p-row small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.scr-p-rows--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.scr-p-row .dl-avatar { flex: none; }
.scr-p-row__acts { display: flex; gap: 2px; }
.scr-p-row__acts .dl-btn { min-height: 36px; min-width: 36px; width: 36px; }
.scr-p-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text); background: var(--tint-1); }
.scr-p-av--t2 { background: var(--tint-2); } .scr-p-av--t3 { background: var(--tint-3); } .scr-p-av--t4 { background: var(--tint-4); }
.scr-p-av--ink { background: var(--surface-inverse); color: var(--text-inverse); }
.scr-p-av--lead { background: var(--lead); color: var(--on-lead); }
.scr-p-av--firm { border-radius: 12px; }
.scr-p-doc { position: relative; width: 34px; height: 42px; border-radius: 6px 12px 6px 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); display: grid; place-items: end center; padding-bottom: 5px; font-family: var(--font-mono); font-size: 8px; font-weight: 500; color: var(--text-muted); }
.scr-p-doc::before { content: ""; position: absolute; top: 9px; left: 8px; right: 9px; height: 2px; border-radius: 2px; background: var(--border); box-shadow: 0 4px 0 var(--border), 0 8px 0 var(--border); }
.scr-p-doc--new::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--lead); box-shadow: 0 0 0 2px var(--surface-raised); }

/* Safety tile (payment safety notice as soft tile) */
.scr-p-safety { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--surface); font-size: 13px; line-height: 19px; color: var(--text-secondary); }
.scr-p-safety b { display: block; color: var(--text); font-size: 14px; line-height: 20px; }
.scr-p-safety .dl-picto { width: 44px; height: 44px; }

/* ---- Review queue */
.scr-p-rq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.scr-p-qlist { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 24px; background: var(--surface); }
.scr-p-qlist__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 8px; }
.scr-p-qlist__sec { padding: 12px 12px 4px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.scr-p-q { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 18px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--duration-fast), box-shadow var(--duration-fast); }
.scr-p-q:hover { background: var(--surface-hover); }
.scr-p-q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.scr-p-q[aria-current="true"] { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--text), var(--shadow-sm); }
.scr-p-q__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.scr-p-q__top b { font-size: 15px; line-height: 20px; font-weight: 600; }
.scr-p-q__top time { flex: none; font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.scr-p-q__addr { display: block; font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: 2px; }
.scr-p-q__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.scr-p-q__foot .dl-ref { font-size: 11px; color: var(--text-muted); }
.scr-p-q .scr-p-ic { width: 36px; height: 36px; border-radius: 12px; }
.scr-p-q .scr-p-ic .dl-icon { width: 18px; height: 18px; }

.scr-p-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.scr-p-prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.scr-p-prop-head .scr-p-tile__title { font-size: 28px; line-height: 32px; }
.scr-p-prop-head p { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scr-p-change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.scr-p-change__side { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--surface-raised); font-size: 13px; line-height: 18px; color: var(--text-muted); }
.scr-p-change__side--to { box-shadow: inset 0 0 0 2px var(--text); }
.scr-p-change__side b { font-family: var(--font-display); font-size: 30px; line-height: 32px; letter-spacing: -0.04em; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.scr-p-change__side--from b { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--border-strong); }
.scr-p-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lead); color: var(--on-lead); }
.scr-p-arrow .dl-icon { width: 20px; height: 20px; }
.scr-p-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.scr-p-signal { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--surface-raised); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.scr-p-signal .dl-icon { width: 16px; height: 16px; color: var(--status-done-fg); }
.scr-p-signal--warn .dl-icon { color: var(--status-at-risk-fg); }

.scr-p-sxs { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scr-p-source { display: flex; flex-direction: column; border-radius: 24px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--border-subtle); overflow: hidden; }
.scr-p-source__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 14px; line-height: 20px; background: var(--surface); }
.scr-p-source__bar b { font-weight: 600; }
.scr-p-source__bar .dl-ref { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.scr-p-source__hdr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; padding: 16px 20px; font-size: 13px; line-height: 18px; border-bottom: 1px solid var(--border-subtle); }
.scr-p-source__hdr dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 1px; }
.scr-p-source__hdr dd { min-width: 0; overflow-wrap: anywhere; }
.scr-p-source__body { padding: 18px 20px 22px; font-size: 15px; line-height: 25px; display: flex; flex-direction: column; gap: 12px; }
.scr-p-source mark { background: var(--lead-soft); color: var(--text); border-radius: 6px; padding: 1px 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.scr-p-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lead); color: var(--on-lead); font-family: var(--font-sans); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; margin-left: 4px; flex: none; }
.scr-p-source .dl-redact { vertical-align: 1px; }
.scr-p-source__foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 13px; line-height: 18px; color: var(--text-muted); background: var(--surface); }
.scr-p-source__foot .dl-icon { width: 16px; height: 16px; flex: none; }

.scr-p-fields { display: flex; flex-direction: column; gap: 8px; }
.scr-p-fieldrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface-raised); }
.scr-p-fieldrow .scr-p-n { margin: 0; }
.scr-p-fieldrow small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.scr-p-fieldrow b { display: block; font-size: 15px; line-height: 21px; font-weight: 600; }
.scr-p-fieldrow .dl-conf, .scr-p-fieldrow__note { grid-column: 2 / -1; }
.scr-p-fieldrow__acts { display: flex; gap: 4px; }
.scr-p-fieldrow__acts .dl-btn { min-height: 32px; min-width: 32px; width: 32px; }
.scr-p-fieldrow--off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.scr-p-fieldrow--off b { color: var(--text-secondary); }

.scr-p-decide { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 10px 10px 10px 24px; border-radius: 999px; background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--shadow-lg); }
.scr-p-decide p { font-size: 14px; line-height: 20px; display: flex; align-items: center; gap: 10px; }
.scr-p-decide p b { font-weight: 600; }
.scr-p-decide__acts { display: flex; gap: 8px; }
.scr-p-decide .dl-kbd { background: color-mix(in oklab, currentColor 16%, transparent); color: inherit; border: 0; box-shadow: none; }
.scr-p-decide .scr-p-reject { --btn-bg: color-mix(in oklab, var(--text-inverse) 12%, transparent); --btn-fg: var(--text-inverse); --btn-bg-hover: color-mix(in oklab, var(--text-inverse) 20%, transparent); }
.scr-p-decide .scr-p-edit { --btn-bg: var(--surface-canvas); --btn-fg: var(--text); --btn-bg-hover: var(--surface); }
.scr-p-shortcuts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.scr-p-shortcuts span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Entry motion */
.scr-p-main > * { animation: dl-rise var(--duration-slow) var(--ease-standard) both; }
.scr-p-main > *:nth-child(2) { animation-delay: 60ms; } .scr-p-main > *:nth-child(3) { animation-delay: 120ms; } .scr-p-main > *:nth-child(4) { animation-delay: 180ms; } .scr-p-main > *:nth-child(5) { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .scr-p-main > *, .scr-p-reason i::after, .scr-p-mini::after { animation: none; } .scr-p-todo li:hover { transform: none; } }

@media (max-width: 1100px) {
  .scr-p-app { grid-template-columns: 76px minmax(0, 1fr); }
  .scr-p-app > .dl-sidenav .dl-appbar__word, .scr-p-app > .dl-sidenav .dl-sidenav__label, .scr-p-app > .dl-sidenav .dl-sidenav__badge, .scr-p-app > .dl-sidenav .dl-sidenav__heading, .scr-p-app > .dl-sidenav .dl-account__who { display: none; }
  .scr-p-rq, .scr-p-sxs { grid-template-columns: 1fr; }
  .scr-p-todo { grid-template-columns: 1fr; }
}
