/* ==========================================================================
   Sayohatchi design system — component layer
   --------------------------------------------------------------------------
   Every measurement comes from the Platform Element Spec; every colour from
   the Sayohatchi tokens. Requires css/sayohatchi-tokens.css first.

   The grammar, in one place:
     - spacing on the 4px scale (4 8 12 16 20 24 32 40 48 56 64), siblings use gap
     - three control heights: 30 sm / 36 md / 44 lg (inputs 38); 44 on phones
     - two radii plus pill: 8 for anything pressed or typed in, 12 for anything
       that holds content, pill for badges and counts only
     - hairlines first: 1px borders and background steps; Rest shadow on panels,
       inputs and outline buttons, Float on menus and toasts, Lift on dialogs
     - type: 14 body, 13.5 dense, 12/500 sentence-case labels, 14/600 titles,
       22/600 page titles; every figure in Geist Mono with tabular numerals
     - motion: 120ms colour/background/border on hover; overlays 150–200ms
       ease-out rise; nothing animates layout; all instant under reduced motion

   House prohibitions this file never breaks: no coloured left-border accents
   (attention is a full cream wash), no gradients, no blur, no uppercase or
   widely tracked labels, no shadow outside the three elevation tokens.
   ========================================================================== */

/* ==========================================================================
   Browser surfaces — the parts no component draws
   ========================================================================== */

[hidden] { display: none !important; }

.ds-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

input,
textarea,
[contenteditable] { caret-color: var(--focus-ring); }

input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress { accent-color: var(--green-700); }

* { scrollbar-width: thin; }
html { scrollbar-color: var(--neutral-300) transparent; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Every figure — time, price, count, ID — in mono with even-width digits. */
.num,
.ds-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-figure);
}

/* ==========================================================================
   core
   ========================================================================== */

/* Button --------------------------------------------------------------------
   30 sm · 36 md · 44 lg. Padding 10 · 14 · 18. Radius 8. Label 13 · 14 · 15
   at 500. Icon 16, gap 8 (6 sm). One solid button per area. */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--h-md);
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 500 var(--text-base) / 1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-btn svg { width: 16px; height: 16px; flex: none; }

.ds-btn--sm { height: var(--h-sm); padding: 0 10px; gap: 6px; font-size: var(--text-sm); }
.ds-btn--md { height: var(--h-md); padding: 0 14px; font-size: var(--text-base); }
.ds-btn--lg,
.ds-btn--xl { height: var(--h-lg); padding: 0 18px; font-size: 15px; }
.ds-btn--full { width: 100%; }
/* A full-width CTA keeps the 44px floor even when its label wraps. */
.ds-btn--full.ds-btn--xl {
  height: auto;
  min-height: var(--h-lg);
  padding: 10px 18px;
  white-space: normal;
  line-height: 1.3;
}

/* Solid: the area's one primary action. */
.ds-btn--primary {
  background: var(--action-primary);
  color: var(--action-primary-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), var(--shadow-sm);
}
.ds-btn--primary:hover:not(:disabled) { background: var(--hover-primary); }

/* Lime: only on a dark panel, at most one per panel. */
.ds-btn--accent {
  background: var(--action-accent);
  color: var(--action-accent-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), var(--shadow-sm);
}
.ds-btn--accent:hover:not(:disabled) { background: var(--hover-accent); }

/* Outline: hairline + Rest shadow. */
.ds-btn--secondary {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-control);
  box-shadow: var(--shadow-sm);
}
.ds-btn--secondary:hover:not(:disabled) { background: var(--hover-quiet-bg); }

/* Ghost: no border, fills on hover. */
.ds-btn--quiet {
  background: transparent;
  color: var(--text-body);
}
.ds-btn--quiet:hover:not(:disabled) { background: var(--hover-quiet-bg); color: var(--text-strong); }

/* Destructive: red text on an outline, never a red fill. */
.ds-btn--danger {
  background: var(--surface-card);
  color: var(--action-danger-text);
  border-color: var(--border-control);
  box-shadow: var(--shadow-sm);
}
.ds-btn--danger:hover:not(:disabled) { background: var(--red-100); border-color: var(--border-danger); }

.ds-btn--on-dark {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: var(--border-on-dark);
}
.ds-btn--on-dark:hover:not(:disabled) { background: var(--surface-on-dark); color: var(--text-on-dark); }
/* Both live on ink panels, where the agent-green ring would not show. */
.ds-btn--on-dark:focus-visible,
.ds-btn--accent:focus-visible { outline-color: var(--text-on-dark); }

.ds-btn:disabled,
.ds-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ds-btn__shortcut {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.16);
  font: 500 11px / 1 var(--font-mono);
}
.ds-btn--secondary .ds-btn__shortcut,
.ds-btn--quiet .ds-btn__shortcut,
.ds-btn--danger .ds-btn__shortcut { background: var(--surface-muted); color: var(--text-muted); }

/* Badge ---------------------------------------------------------------------
   22 tall, pad 0 8, 12/500, pill. Always carries a word — colour is never the
   only signal. Optional 6px dot, gap 6. */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  font: 500 var(--text-xs) / 1 var(--font-sans);
  white-space: nowrap;
  background: var(--status-neutral-bg);
  color: var(--status-neutral-text);
}
.ds-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.ds-badge--ok        { background: var(--status-ok-bg);        color: var(--status-ok-text); }
.ds-badge--attention { background: var(--status-attention-bg); color: var(--status-attention-text); }
.ds-badge--danger    { background: var(--status-danger-bg);    color: var(--status-danger-text); }
.ds-badge--neutral   { background: var(--status-neutral-bg);   color: var(--status-neutral-text); }
.ds-badge--external  { background: var(--status-external-bg);  color: var(--status-external-text); }
.ds-badge--dark      { background: var(--surface-dark);        color: var(--lime-500); }

/* Count --------------------------------------------------------------------
   18 tall, min-w 20, pad 0 6, mono 11.5. */
.ds-count,
.ds-nav-item__count,
.ds-tab__count,
.ds-card-head__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  color: var(--text-body);
  font: 500 11.5px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Key ----------------------------------------------------------------------
   20 tall, min-w 20, radius 5, 2px bottom border, mono 11. The search
   field's shortcut hint is the same key. */
.ds-key,
.ds-search__shortcut {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--border-control);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-card);
  color: var(--text-muted);
  font: 500 11px / 1 var(--font-mono);
}

/* FilterChip ---------------------------------------------------------------
   A small control: 30 tall, radius 8. The selected view is solid ink. */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--h-sm);
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  color: var(--text-body);
  font: 500 var(--text-sm) / 1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-chip:hover { background: var(--hover-quiet-bg); color: var(--text-strong); }
.ds-chip--selected,
.ds-chip--selected:hover {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--text-on-dark);
}
.ds-chip__count {
  font: 500 11.5px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.ds-chip--selected .ds-chip__count { color: var(--lime-500); }

/* Card / Panel -------------------------------------------------------------
   Radius 12, 1px border, Rest shadow. Padding 20 (16 under 720px). A panel
   is the same shell with a 44px header bar and an unpadded body for rows. */
.ds-card,
.ds-panel {
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.ds-card { padding: var(--s-5); }
.ds-panel { overflow: hidden; }

.ds-card--attention { background: var(--surface-attention); }
.ds-card--advice    { background: var(--lime-050); border-color: var(--border-accent); }
.ds-card--danger    { border-color: var(--border-danger); }
.ds-card--dark      { background: var(--surface-dark); border-color: var(--surface-dark); color: var(--text-on-dark); box-shadow: none; }
.ds-card--sunken    { background: var(--surface-sunken); border-color: transparent; box-shadow: none; }
.ds-card--dashed    { border-style: dashed; border-color: var(--border-dashed); background: var(--surface-subtle); box-shadow: none; }

.ds-panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--h-lg);
  padding: var(--s-2) var(--s-4);
  border-bottom: 1px solid var(--border-default);
}
.ds-panel__title {
  margin: 0;
  font: var(--type-title);
  letter-spacing: var(--tracking-title);
  color: var(--text-strong);
}
.ds-panel__meta { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.ds-panel__body { padding: var(--s-4); font: var(--type-dense); color: var(--text-body); }

/* Eyebrow ------------------------------------------------------------------
   Retired as a design element (the spec bans small uppercase labels above
   headings). The class survives so existing markup does not break, rendered
   as a plain 12/500 sentence-case label. Do not add new ones. */
.ds-eyebrow {
  font: var(--type-label);
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
}
.ds-eyebrow--sm      { font: var(--type-label); }
.ds-eyebrow--accent  { color: var(--text-accent); }
.ds-eyebrow--on-dark { color: var(--text-on-dark-muted); }
.ds-eyebrow--body    { color: var(--text-body); }

/* ==========================================================================
   forms
   ========================================================================== */

/* Field ---------------------------------------------------------------------
   Input 38 (44 + 16px text on phones, which stops iOS zoom), padding 12,
   radius 8, Rest shadow. Label 13/500, 6 above. Hint/error 12.5, 6 below.
   Focus: border to accent + 3px soft ring, no outline. Textarea min 104.
   Input, select, date and textarea are one family: same box, border, radius,
   fill, padding, font (tabular figures) and text position. The select's
   chevron and the date's calendar are the same 16px stroke icon, 12px from
   the right edge. WebKit's date internals carry 1px paddings per segment that
   push the value right and spread its digits; they are zeroed so a date
   starts at exactly the x of text in the input beside it. */
.ds-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ds-field__label {
  font: 500 var(--text-sm) / 1.35 var(--font-sans);
  color: var(--text-body);
}
.ds-field__control,
.ds-input,
.ds-select,
.ds-textarea {
  box-sizing: border-box;
  width: 100%;
  height: var(--h-input);
  min-height: 0;
  margin: 0;
  padding: 0 var(--s-3);
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  /* Whole-pixel line box: (38 - 2 - 20) / 2 = 8 above and below, so the text
     of every control type lands on the same device pixel. */
  font: 400 var(--text-base) / 20px var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  text-align: left;
  color: var(--text-strong);
  -webkit-appearance: none;
  appearance: none;
  transition: var(--transition-control);
}

/* Date: value at the text's x, calendar where the select's chevron sits. */
input[type="date"].ds-field__control,
input[type="date"].ds-input {
  padding-right: var(--s-3);
  cursor: text;
}
.ds-field__control::-webkit-datetime-edit,
.ds-input::-webkit-datetime-edit { padding: 0; line-height: inherit; }
.ds-field__control::-webkit-datetime-edit-fields-wrapper,
.ds-input::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.ds-field__control::-webkit-datetime-edit-day-field,
.ds-field__control::-webkit-datetime-edit-month-field,
.ds-field__control::-webkit-datetime-edit-year-field,
.ds-input::-webkit-datetime-edit-day-field,
.ds-input::-webkit-datetime-edit-month-field,
.ds-input::-webkit-datetime-edit-year-field { padding: 0; border-radius: 3px; }
.ds-field__control::-webkit-datetime-edit-text,
.ds-input::-webkit-datetime-edit-text { padding: 0; }
.ds-field__control::-webkit-datetime-edit-day-field:focus,
.ds-field__control::-webkit-datetime-edit-month-field:focus,
.ds-field__control::-webkit-datetime-edit-year-field:focus,
.ds-input::-webkit-datetime-edit-day-field:focus,
.ds-input::-webkit-datetime-edit-month-field:focus,
.ds-input::-webkit-datetime-edit-year-field:focus { background: var(--focus-ring-soft); color: var(--text-strong); }
.ds-field__control::-webkit-calendar-picker-indicator,
.ds-input::-webkit-calendar-picker-indicator {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0 0 0 auto;
  padding: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2365746F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  opacity: 1;
  cursor: pointer;
}
/* iOS centres the value and drops the height of an empty date. */
.ds-field__control::-webkit-date-and-time-value,
.ds-input::-webkit-date-and-time-value { margin: 0; text-align: left; }
/* Firefox: no spin buttons on numbers. */
input[type="number"].ds-field__control,
input[type="number"].ds-input { -moz-appearance: textfield; }
.ds-field__control::placeholder,
.ds-input::placeholder,
.ds-textarea::placeholder { color: var(--text-muted); opacity: 1; }

.ds-field__control:focus,
.ds-input:focus,
.ds-select:focus,
.ds-textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

textarea.ds-field__control,
.ds-textarea {
  height: auto;
  min-height: 104px;
  padding: 10px var(--s-3);
  line-height: 1.5;
  resize: vertical;
}

select.ds-field__control,
.ds-select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2365746F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.ds-field__control:disabled,
.ds-input:disabled,
.ds-select:disabled,
.ds-textarea:disabled {
  background-color: var(--surface-sunken);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.ds-field--prefilled .ds-field__control { background-color: var(--surface-selected); }

.ds-field__hint,
.ds-field__error {
  font: 400 12.5px / 1.4 var(--font-sans);
  color: var(--text-muted);
}
.ds-field--prefilled .ds-field__hint { color: var(--text-accent); }
.ds-field__error { color: var(--red-700); }
.ds-field--error .ds-field__control,
.ds-field__control[aria-invalid="true"] { border-color: var(--red-700); }
.ds-field--error .ds-field__control:focus,
.ds-field__control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--red-100); }

/* SearchField --------------------------------------------------------------
   A 36px control row: icon, input, key hint. */
.ds-search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: var(--h-md);
  padding: 0 10px 0 var(--s-3);
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: var(--transition-control);
}
.ds-search svg { width: 16px; height: 16px; flex: none; }
.ds-search:focus-within {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}
.ds-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 var(--text-base) / 1.4 var(--font-sans);
  color: var(--text-strong);
}
.ds-search__input:focus-visible { outline: 0; }
.ds-search__input::placeholder { color: var(--text-muted); opacity: 1; }
.ds-search__shortcut { margin-left: auto; white-space: nowrap; }

.ds-search--on-dark { border-color: var(--border-on-dark); background: transparent; box-shadow: none; color: rgba(255, 255, 255, 0.6); }
.ds-search--on-dark .ds-search__input { color: var(--text-on-dark); }
.ds-search--on-dark .ds-search__input::placeholder { color: rgba(255, 255, 255, 0.6); }
.ds-search--on-dark .ds-search__shortcut { border-color: var(--border-on-dark); background: transparent; color: rgba(255, 255, 255, 0.6); }

/* RadioOption --------------------------------------------------------------
   A 44px pressable row, radius 8. Selected = accent hairline + selected wash. */
.ds-radio {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: var(--h-lg);
  padding: 10px var(--s-3);
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-radio:hover { background: var(--hover-row-bg); }
.ds-radio--selected,
.ds-radio--selected:hover {
  background: var(--surface-selected);
  border-color: var(--border-strong);
}
.ds-radio__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid var(--neutral-300);
  background: var(--surface-card);
}
.ds-radio--selected .ds-radio__dot { border: 5px solid var(--green-700); }
.ds-radio__body { flex: 1; min-width: 0; }
.ds-radio__label,
.ds-radio__hint { display: block; }
.ds-radio__label { font: 500 var(--text-base) / 1.4 var(--font-sans); color: var(--text-strong); }
.ds-radio__hint { margin-top: 2px; font: 400 12.5px / 1.4 var(--font-sans); color: var(--text-muted); }
.ds-radio--selected .ds-radio__hint { color: var(--text-accent); }
.ds-radio__recommended { font: var(--type-label); color: var(--text-accent); }

/* Dropzone -----------------------------------------------------------------
   The empty-state shape: dashed, radius 12, padding 40 20, subtle fill. */
.ds-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--s-10) var(--s-5);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--r-lg);
  background: var(--surface-subtle);
  text-align: center;
  transition: var(--transition-control);
}
.ds-dropzone__icon { display: inline-flex; color: var(--green-700); margin-bottom: 6px; }
.ds-dropzone__icon svg { width: 24px; height: 24px; }
.ds-dropzone__title { font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }
.ds-dropzone__hint { font: var(--type-meta); color: var(--text-muted); max-width: 48ch; }
.ds-dropzone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.ds-dropzone--active { border-color: var(--green-700); background: var(--surface-selected); }

/* Option card (required-document pickers and similar grids) ---------------- */
.ds-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: var(--s-2); }
.ds-option {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: var(--h-lg);
  padding: 11px var(--s-3);
  border: 1px solid var(--border-default);
  border-radius: var(--r);
  background: var(--surface-card);
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-option:hover { background: var(--hover-row-bg); }
.ds-option input[type="checkbox"],
.ds-option input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.ds-option__label { font: 500 var(--text-dense) / 1.45 var(--font-sans); color: var(--text-strong); }
.ds-option:has(input:checked) { background: var(--surface-selected); border-color: var(--border-strong); }

/* ==========================================================================
   data
   ========================================================================== */

/* StatCard ------------------------------------------------------------------ */
.ds-statcard {
  padding: var(--s-5);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.ds-statcard--dark { background: var(--surface-dark); border-color: var(--surface-dark); box-shadow: none; }
.ds-statcard__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.ds-statcard__value {
  font: 600 var(--title-page) / 1.2 var(--font-mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-strong);
}
.ds-statcard--dark .ds-statcard__value { color: var(--text-on-dark); }
.ds-statcard__unit { font: var(--type-meta); color: var(--text-muted); }
.ds-statcard__delta { font: 500 var(--text-sm) / 1.3 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ds-statcard__delta--good { color: var(--green-700); }
.ds-statcard__delta--bad  { color: var(--red-700); }
.ds-statcard--dark .ds-statcard__delta--good { color: var(--lime-500); }
.ds-statcard--dark .ds-statcard__delta--bad  { color: var(--red-on-dark); }
.ds-statcard__note { margin-top: var(--s-1); font: var(--type-meta); color: var(--text-muted); }
.ds-statcard--dark .ds-statcard__note { color: var(--text-on-dark-muted); }

/* StepProgress -------------------------------------------------------------
   Segmented and counted: the only progress form for a person's journey. */
.ds-steps { display: flex; align-items: center; gap: var(--s-2); }
.ds-steps__label {
  font: 500 var(--text-sm) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
  white-space: nowrap;
}
.ds-steps--on-dark .ds-steps__label { color: var(--text-on-dark); }
.ds-steps__track { flex: 1; display: flex; gap: var(--s-1); }
.ds-steps__seg { flex: 1; height: var(--bar-height); border-radius: var(--r-pill); background: var(--progress-track); }
.ds-steps__seg--done { background: var(--progress-fill-done); }
.ds-steps--on-dark .ds-steps__seg { background: var(--progress-track-on-dark); }
.ds-steps--on-dark .ds-steps__seg--done { background: var(--lime-500); }

/* ProgressBar — true ratios only ------------------------------------------- */
.ds-bar { display: flex; align-items: center; gap: var(--s-2); flex: 1; min-width: 0; }
.ds-bar__track {
  flex: 1;
  height: var(--bar-height);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--progress-track);
}
.ds-bar__fill { height: 100%; border-radius: inherit; background: var(--progress-fill); }
.ds-bar__fill--done   { background: var(--progress-fill-done); }
.ds-bar__fill--accent { background: var(--progress-fill); }
.ds-bar__fill--mid    { background: var(--progress-fill-mid); }
.ds-bar__fill--low    { background: var(--neutral-300); }
.ds-bar__fill--danger { background: var(--red-700); }
.ds-bar__value {
  font: 500 var(--text-sm) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.ds-bar--on-dark .ds-bar__track { background: var(--progress-track-on-dark); }
.ds-bar--on-dark .ds-bar__value { color: var(--lime-500); }

/* MiniBars ------------------------------------------------------------------ */
.ds-minibars { display: flex; align-items: flex-end; gap: var(--s-1); height: 44px; }
.ds-minibars__bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--green-100); }
.ds-minibars__bar--last { background: var(--green-700); }
.ds-minibars--danger .ds-minibars__bar { background: var(--red-100); }
.ds-minibars--danger .ds-minibars__bar--last { background: var(--red-700); }

/* DataTable ----------------------------------------------------------------
   A panel holding a 34px header strip (subtle fill, 12/500 muted, sentence
   case) and 56px rows. Scrolls sideways rather than clipping; the --cards
   variant hides the strip under 760px and stacks each row. */
.ds-table {
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
}
.ds-table__head,
.ds-table__row {
  display: grid;
  gap: var(--s-3);
  /* grid-template-columns and min-width are set per table from the column
     spec, since they are data, not style. */
}
.ds-table__head {
  align-items: center;
  min-height: 34px;
  padding: 0 var(--s-4);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-subtle);
  font: var(--type-label);
  color: var(--text-muted);
}
.ds-table__row {
  align-items: center;
  min-height: var(--h-row);
  padding: 10px var(--s-4);
  border-bottom: 1px solid var(--divider);
  font: var(--type-dense);
  color: var(--text-body);
}
.ds-table__row:last-child { border-bottom: 0; }
.ds-table__row--link { cursor: pointer; transition: var(--transition-control); }
.ds-table__row--link:hover { background: var(--hover-row-bg); }
.ds-table__row--attention { background: var(--surface-attention); }
.ds-table__row--dimmed { color: var(--text-muted); }
.ds-table__cell { min-width: 0; }
.ds-table__cell--right { text-align: right; }
.ds-table__cell--center { text-align: center; }

/* Key–value list -----------------------------------------------------------
   160px label | 1fr value, gap 10 / 16, 13.5px, label muted. Stacks to one
   column under 640px. Label and value are always separate elements. */
.ds-kv {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px var(--s-4);
  margin: 0;
  font: var(--type-dense);
}
.ds-kv__item { display: contents; }
.ds-kv__label { color: var(--text-muted); }
.ds-kv__value {
  margin: 0;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
/* An absent value reads as "—", not as an empty gap. */
.ds-kv__value--empty { color: var(--text-muted); }

/* List row ------------------------------------------------------------------
   Min 56, pad 10 16, lead | main | side, gap 12. Title 14/600, line 13.5,
   meta 13 muted. The whole row is the link; hover is a subtle background.
   Under 760px the side drops below the content. */
.ds-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--h-row);
  padding: 10px var(--s-4);
  border-top: 1px solid var(--divider);
}
.ds-row:first-child { border-top: 0; }
/* Inside a padded card the card already supplies the side inset. */
.ds-card .ds-row { padding-left: 0; padding-right: 0; }
a.ds-row,
.ds-row--link { color: inherit; text-decoration: none; cursor: pointer; transition: var(--transition-control); }
a.ds-row:hover,
.ds-row--link:hover { background: var(--hover-row-bg); }
.ds-row__main { flex: 1 1 200px; min-width: 0; }
.ds-row__title {
  display: block;
  font: var(--type-title);
  letter-spacing: var(--tracking-title);
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.ds-row__sub {
  display: block;
  margin-top: 1px;
  font: var(--type-meta);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.ds-row__meta {
  flex: none;
  font: 500 var(--text-sm) / 1.35 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.ds-row__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.ds-row-avatar,
.ds-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 28%;
  font: 600 var(--text-xs) / 1 var(--font-sans);
}
.ds-row-avatar { background: var(--surface-muted); color: var(--text-body); }

/* ==========================================================================
   navigation
   ========================================================================== */

/* TopBar --------------------------------------------------------------------
   Phone top bar is 56 with 44px targets; on desktop every right-side control
   sits on the 36px row. */
.ds-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--s-14);
  padding: var(--s-2) var(--s-5);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-card);
}
.ds-topbar--dark { background: var(--surface-dark); border-bottom-color: var(--surface-dark); }
.ds-topbar__left  { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ds-topbar__right { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.ds-topbar__right > .ds-btn,
.ds-topbar__right .ds-btn--sm { height: var(--h-md); }

/* The brand is the name only, no mark. .ds-logo is an agency's own uploaded logo. */
.ds-wordmark { flex: none; font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); white-space: nowrap; }
.ds-wordmark--on-dark { color: var(--text-on-dark); }
.ds-logo { display: block; width: 28px; height: 28px; border-radius: var(--r); flex: none; object-fit: cover; }
.ds-logo[hidden] { display: none; }

.ds-avatar { background: var(--surface-dark); color: var(--text-on-dark); }
.ds-avatar--plate   { background: var(--surface-muted); color: var(--text-strong); }
.ds-avatar--on-dark { background: rgba(255, 255, 255, 0.14); color: var(--text-on-dark); }

/* The language control sits on the same 36px row as every header control. */
.ds-langchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h-md);
  min-width: var(--h-md);
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  font: 500 var(--text-xs) / 1 var(--font-mono);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-langchip:hover { background: var(--hover-quiet-bg); color: var(--text-strong); }

/* Sidebar -------------------------------------------------------------------
   240 wide, padding 10, on the subtle canvas. Items 32 tall, 1px apart, pad
   0 8, icon 16, gap 10, 13.5 secondary text. Active = raised chip: panel
   fill + hairline + Rest shadow, 500 weight, accent icon. Group labels
   12/500 muted, pad 4 8, groups 12 apart. */
.ds-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: none;
  width: var(--sidebar);
  padding: 10px;
  border-right: 1px solid var(--border-default);
  background: var(--surface-sunken);
}
.ds-sidebar__head { padding: var(--s-1) var(--s-2) var(--s-3); }
.ds-sidebar__workspace { margin-top: 2px; font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }

.ds-nav-label {
  padding: var(--s-1) var(--s-2);
  font: var(--type-label);
  color: var(--text-muted);
}
.ds-nav-label:not(:first-child) { margin-top: var(--s-3); }

.ds-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: var(--h-nav);
  padding: 0 var(--s-2);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  font: 400 var(--text-dense) / 1 var(--font-sans);
  color: var(--text-body);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-nav-item svg { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.ds-nav-item > span:not([class]) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ds-nav-item:hover { background: var(--surface-muted); color: var(--text-strong); }
.ds-nav-item--active,
.ds-nav-item--active:hover {
  background: var(--surface-card);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
  font-weight: 500;
}
.ds-nav-item--active svg { color: var(--green-700); }
.ds-nav-item--spacer { margin-top: auto; }
.ds-nav-item__count { margin-left: auto; }
.ds-nav-item__count--urgent { background: var(--red-100); color: var(--red-700); }

/* PageHeader ----------------------------------------------------------------
   Title left (22/600), subtitle 13.5 below, actions right; 20 below the head. */
.ds-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
}
.ds-page-header .ds-eyebrow { margin-bottom: var(--s-1); }
.ds-page-header__title {
  margin: 0;
  font: var(--type-page-title);
  letter-spacing: var(--tracking-page);
  color: var(--text-strong);
  text-wrap: balance;
}
.ds-page-header__subtitle { margin: var(--s-1) 0 0; font: var(--type-dense); color: var(--text-muted); max-width: 72ch; }
.ds-page-header__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }

/* Tabs ----------------------------------------------------------------------
   Min 40, 20 apart, 13.5/500 muted; active is primary text with a 2px
   underline over the 1px rule. 16 to the content below. */
.ds-tabs {
  display: flex;
  gap: var(--s-5);
  border-bottom: 1px solid var(--border-default);
  overflow-x: auto;
  scrollbar-width: none;
}
.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-bottom: -1px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: 500 var(--text-dense) / 1 var(--font-sans);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-tab:hover { color: var(--text-strong); }
.ds-tab--active {
  border-bottom-color: var(--text-strong);
  color: var(--text-strong);
}
.ds-tab__count--urgent { background: var(--red-100); color: var(--red-700); }

/* Segmented variant for mode switches: 30px items on a muted track. */
.ds-tabs--pill {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 0;
  border-radius: var(--r);
  background: var(--surface-muted);
}
.ds-tabs--pill .ds-tab {
  min-height: 0;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
}
.ds-tabs--pill .ds-tab--active {
  background: var(--surface-card);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   feedback
   ========================================================================== */

/* AdviceCard — automatic check: advisory, attached to what it judges. ------ */
.ds-advice {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  background: var(--lime-050);
}
.ds-advice--panel {
  padding: var(--s-5);
  border-color: var(--border-default);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.ds-advice__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.ds-advice__head svg { width: 16px; height: 16px; flex: none; }
.ds-advice__title { font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }
.ds-advice__action {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font: 500 var(--text-sm) / 1.3 var(--font-sans);
  color: var(--text-accent);
  cursor: pointer;
}
.ds-advice__action:hover { text-decoration: underline; }
.ds-advice__body { margin: var(--s-2) 0 0; font: var(--type-dense); color: var(--text-body); }
.ds-advice__findings { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.ds-advice__finding { display: flex; align-items: center; gap: var(--s-2); font: var(--type-dense); color: var(--text-body); }
.ds-advice__finding--warn { color: var(--amber-700); }
.ds-advice__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--green-700); }
.ds-advice__finding--warn .ds-advice__dot { background: var(--amber-500); }

/* EmptyState ----------------------------------------------------------------
   Dashed, radius 12, padding 40 20, subtle fill. One title, one line, at
   most one action. Replaces the whole list, headers included. */
.ds-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--s-10) var(--s-5);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--r-lg);
  background: var(--surface-subtle);
  text-align: center;
}
.ds-empty__icon,
.ds-error__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: var(--r);
  background: var(--green-100);
  color: var(--green-700);
}
.ds-empty__icon svg,
.ds-error__icon svg { width: 20px; height: 20px; }
.ds-empty__title,
.ds-error__title {
  margin: 0;
  font: 600 15px / 1.35 var(--font-sans);
  letter-spacing: var(--tracking-title);
  color: var(--text-strong);
  text-wrap: balance;
}
.ds-empty__body,
.ds-error__body { margin: 0; max-width: 56ch; font: var(--type-dense); color: var(--text-muted); }

/* The "given" variant leads with work the platform already did. */
.ds-empty__given { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); text-align: left; }
.ds-empty__given-item { display: flex; align-items: center; gap: var(--s-2); font: var(--type-dense); color: var(--text-body); }
.ds-empty__given-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-700); flex: none; }

.ds-empty__actions,
.ds-error__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

/* ErrorState ----------------------------------------------------------------
   The filled shape of the surface that failed: a panel, left-aligned. Names
   what failed, what is shown instead and what was not lost; the upstream
   string is demoted to a mono code line. */
.ds-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--s-5);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.ds-error__icon { background: var(--red-100); color: var(--red-700); }
.ds-error__body { color: var(--text-body); }
.ds-error__reassurance {
  align-self: stretch;
  margin-top: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  background: var(--surface-sunken);
  font: var(--type-dense);
  color: var(--text-body);
}
.ds-error__code {
  margin-top: var(--s-1);
  font: 400 var(--text-xs) / 1.4 var(--font-mono);
  color: var(--text-muted);
}

/* SkeletonRow — static: no shimmer, no fade. ------------------------------- */
.ds-skeleton {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--h-row);
  border-top: 1px solid var(--divider-soft);
}
.ds-skeleton--dimmed { opacity: 0.55; }
.ds-skeleton__main { flex: 1; }
.ds-skeleton__line { width: 128px; height: 12px; border-radius: 4px; background: var(--neutral-150); }
.ds-skeleton__line--sub { margin-top: var(--s-2); width: 168px; height: 8px; background: var(--divider-soft); }
.ds-skeleton__pill { width: 88px; height: 22px; border-radius: var(--r-pill); background: var(--divider-soft); }
.ds-skeleton__tail { width: 44px; height: 12px; border-radius: 4px; background: var(--divider-soft); }

/* Note — one plain fact per screen. Never a countdown, never red. --------- */
.ds-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  background: var(--surface-sunken);
  font: var(--type-dense);
  color: var(--text-body);
}
.ds-note--attention { background: var(--surface-attention); }
.ds-note--on-dark   { background: var(--surface-on-dark); color: var(--text-on-dark-muted); }
.ds-note__icon { display: inline-flex; color: var(--text-muted); flex: none; }
.ds-note__icon svg { width: 16px; height: 16px; }

/* Passport check panel (js/passport-check.js) — DS panel + notes + .ds-row list rows. */
.pc-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.pc-lead { margin: 0; }
.pc-rows { border-top: 1px solid var(--divider); }
.pc-rows .ds-row:first-child { border-top: 0; }
.pc-end { border-top: 1px solid var(--divider); }
.pc-strong { color: var(--text-strong); }
.pc-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pc-foot { margin: 0; font: var(--type-meta); color: var(--text-muted); }
.pc-file { overflow-wrap: anywhere; color: var(--text-strong); }

/* ==========================================================================
   patterns
   ========================================================================== */

/* CaseHeader ----------------------------------------------------------------
   The ink panel at the top of a case: radius 12, padding 20. Who it is, the one
   plain fact and the one next action on top; how far along it is and the lesser
   actions under a hairline. */
.ds-case-header {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.ds-case-header__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title next" "ref ref";
  align-items: center;
  gap: var(--s-1) var(--s-5);
}
.ds-case-header__title {
  grid-area: title;
  margin: 0;
  font: var(--type-page-title);
  letter-spacing: var(--tracking-page);
  color: var(--text-on-dark);
  text-wrap: balance;
}
.ds-case-header__next { grid-area: next; display: flex; align-items: center; gap: var(--s-3); }
.ds-case-header__meta { max-width: 28ch; font: var(--type-meta); color: var(--text-on-dark); text-align: right; text-wrap: balance; }
.ds-case-header__ref { grid-area: ref; font: var(--type-meta); color: var(--text-on-dark-muted); overflow-wrap: anywhere; }
.ds-case-header__id { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ds-case-header__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-on-dark);
}
.ds-case-header__foot .ds-readiness { flex: 1 1 240px; flex-wrap: nowrap; min-width: 0; }
.ds-case-header__foot .ds-readiness__track { flex: 1 1 48px; width: auto; max-width: 160px; }
.ds-case-header__foot .ds-bar { width: 160px; flex: none; }
.ds-case-header__secondary { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-left: auto; }

@media (max-width: 720px) {
  .ds-case-header { gap: var(--s-3); padding: var(--s-4); }
  .ds-case-header__top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "ref" "next"; }
  .ds-case-header__next { flex-direction: column; align-items: stretch; gap: var(--s-2); margin-top: var(--s-2); }
  .ds-case-header__foot { row-gap: var(--s-2); padding-top: var(--s-3); }
  .ds-case-header__next .ds-btn { width: 100%; }
  .ds-case-header__meta { max-width: none; text-align: left; }
  .ds-case-header__secondary { flex-wrap: nowrap; width: 100%; margin-left: 0; }
  .ds-case-header__secondary .ds-btn { flex: 1 1 0; min-width: 0; height: auto; min-height: var(--h-lg); padding-block: var(--s-1); white-space: normal; }
}

/* CaseListItem --------------------------------------------------------------
   The queue row. Attention is a FULL cream wash across the row — a coloured
   left-border accent was tried and rejected; never reintroduce one. */
.ds-case-item {
  display: block;
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-case-item:hover { background: var(--hover-row-bg); }
.ds-case-item--attention,
.ds-case-item--attention:hover { background: var(--surface-attention); }
.ds-case-item--selected,
.ds-case-item--selected:hover { background: var(--surface-selected); }

.ds-case-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ds-case-item__meta,
.ds-case-item__status,
.ds-case-item__steps,
.ds-case-item__action { display: block; }
.ds-case-item__name { font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }
.ds-case-item__ref {
  font: 400 var(--text-xs) / 1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}
.ds-case-item__meta { margin-top: 2px; font: var(--type-meta); color: var(--text-muted); }
/* Status is the blocker in the user's words, not a system enum. */
.ds-case-item__status { margin-top: var(--s-2); font: 500 var(--text-sm) / 1.35 var(--font-sans); color: var(--text-body); }
.ds-case-item__status--danger    { color: var(--red-700); }
.ds-case-item__status--attention { color: var(--amber-700); }
.ds-case-item__status--ok        { color: var(--green-700); }
.ds-case-item__steps  { margin-top: var(--s-2); }
.ds-case-item__action { margin-top: var(--s-3); }
/* Closed cases recede by colour, not opacity, so text keeps its contrast. */
.ds-case-item--dimmed .ds-case-item__name { color: var(--text-body); font-weight: 500; }
.ds-case-item--dimmed .ds-steps__seg--done { background: var(--neutral-300); }

/* ChecklistItem ------------------------------------------------------------- */
.ds-checklist-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--h-lg);
  padding: var(--s-2) var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
}
.ds-checklist-item--current { background: var(--surface-selected); border-color: var(--green-100); }
.ds-checklist-item__box {
  display: grid;
  place-items: center;
  width: var(--check-size);
  height: var(--check-size);
  flex: none;
  border: 1.5px solid var(--neutral-300);
  border-radius: 4px;
  background: transparent;
  color: var(--neutral-000);
}
.ds-checklist-item__box svg { width: 12px; height: 12px; }
.ds-checklist-item--done .ds-checklist-item__box      { background: var(--green-700); border-color: var(--green-700); }
.ds-checklist-item--current .ds-checklist-item__box   { background: var(--surface-card); border-color: var(--lime-500); }
.ds-checklist-item--attention .ds-checklist-item__box { background: var(--amber-100); border-color: var(--amber-500); }

.ds-checklist-item__body { flex: 1; min-width: 0; }
.ds-checklist-item__label { font: 500 var(--text-base) / 1.4 var(--font-sans); color: var(--text-muted); }
.ds-checklist-item--done .ds-checklist-item__label { font-weight: 400; color: var(--text-body); }
.ds-checklist-item--current .ds-checklist-item__label,
.ds-checklist-item--attention .ds-checklist-item__label { color: var(--text-strong); }
.ds-checklist-item__hint { margin-top: 2px; font: var(--type-meta); color: var(--text-muted); }
.ds-checklist-item--attention .ds-checklist-item__hint { color: var(--amber-700); }

/* TimelineItem — every audit entry names actor, object, before → after. --- */
.ds-timeline-item { display: flex; gap: var(--s-3); }
.ds-timeline-item__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--decor-faint);
}
.ds-timeline-item--active .ds-timeline-item__dot { width: 8px; height: 8px; margin-top: 6px; background: var(--green-700); }
.ds-timeline-item__body { min-width: 0; }
.ds-timeline-item__title { font: var(--type-dense); color: var(--text-strong); }
.ds-timeline-item__actor { font-weight: 600; }
.ds-timeline-item__diff {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding: 6px 10px;
  border-radius: var(--r);
  background: var(--surface-sunken);
}
.ds-timeline-item__from,
.ds-timeline-item__to {
  font: 400 var(--text-sm) / 1.35 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ds-timeline-item__from { color: var(--text-muted); text-decoration: line-through; }
.ds-timeline-item__arrow { color: var(--text-muted); }
.ds-timeline-item__to { font-weight: 500; color: var(--green-700); }
.ds-timeline-item__meta { margin-top: var(--s-1); font: var(--type-meta); color: var(--text-muted); }
.ds-timeline-item__time {
  margin-top: 2px;
  font: 400 var(--text-xs) / 1.35 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.ds-timeline-item--on-dark .ds-timeline-item__dot { background: rgba(255, 255, 255, 0.3); }
.ds-timeline-item--on-dark.ds-timeline-item--active .ds-timeline-item__dot { background: var(--lime-500); }
.ds-timeline-item--on-dark .ds-timeline-item__title { color: var(--text-on-dark); }
.ds-timeline-item--on-dark .ds-timeline-item__meta,
.ds-timeline-item--on-dark .ds-timeline-item__time { color: var(--text-on-dark-muted); }

/* DecisionBar — evidence next to verdict. ---------------------------------- */
.ds-decision__options { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.ds-decision--horizontal .ds-decision__options { flex-direction: row; flex-wrap: wrap; }
.ds-decision__reasons-label { margin-top: var(--s-4); }
.ds-decision__reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.ds-reason {
  display: inline-flex;
  align-items: center;
  height: var(--h-sm);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--surface-muted);
  font: 500 var(--text-sm) / 1 var(--font-sans);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-reason:hover { background: var(--neutral-100); color: var(--text-strong); }
.ds-decision__footnote { margin-top: var(--s-4); font: var(--type-meta); color: var(--text-muted); }

/* ==========================================================================
   Shell — sidebar 240 | main; content max 1240, padding 28 32 64
   ========================================================================== */
.ds-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ds-shell__body { display: flex; flex: 1; min-height: 0; background: var(--surface-canvas); }
.ds-shell__content { flex: 1; min-width: 0; overflow-y: auto; padding: 28px var(--s-8) var(--s-16); }

/* The work queue never leaves the screen — the detail opens beside it. */
.ds-case-list {
  display: flex;
  flex-direction: column;
  flex: none;
  width: var(--list-width);
  min-height: 0;
  border-right: 1px solid var(--border-default);
  background: var(--surface-card);
}
.ds-case-list__head { padding: var(--s-4) var(--s-4) var(--s-3); border-bottom: 1px solid var(--divider); }
.ds-case-list__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.ds-case-list__title { margin: 0; font: var(--type-page-title); letter-spacing: var(--tracking-page); color: var(--text-strong); }
.ds-case-list__count { font: 500 var(--text-sm) / 1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ds-case-list__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.ds-case-list__sort { margin-top: var(--s-3); }
.ds-case-list__scroll { flex: 1; overflow-y: auto; }

/* ==========================================================================
   Shared layout patterns
   ========================================================================== */

/* A card never renders title-only: rows, this, or no card at all. */
.ds-card-empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font: var(--type-dense);
  color: var(--text-muted);
}
.ds-card-empty__action { margin-top: var(--s-3); }

.ds-section-grid { display: grid; gap: var(--s-4); }

/* Card header: title + count left, one quiet action right. */
.ds-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.ds-card-head__title { margin: 0; font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }
.ds-card-head__left { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }

/* ==========================================================================
   Overlays
   ========================================================================== */

/* Dialog — dsDialog() / dsPresent() / dsConfirm() in js/ds.js ----------------
   One anatomy for every overlay: a fixed header (title 17/600, an optional
   one-line subtitle, a quiet 36px close), a content area that is the only
   thing that scrolls, and a fixed footer bar (hairline on top; quiet extras
   left, then secondary and primary on the right). A native <dialog>
   (showModal: inert page); ds.js moves focus in, traps it, and returns it.
   Radius 12, Lift shadow, a flat ink wash behind (no blur). Opens with a
   150ms 4px rise + scale 0.98 → 1. Widths sm 400 · md 520 · lg 720; on a
   phone it docks to the bottom as a sheet (top radius 16, max 85dvh).
   `--sheet` is the right-hand side sheet for create/edit forms (560, full
   height; full screen on a phone). */
.ds-dialog {
  --dialog-w: 520px;
  width: min(var(--dialog-w), calc(100vw - 32px));
  max-width: none;
  max-height: min(85dvh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  color: var(--text-body);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ds-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: ds-rise var(--t-menu) var(--ease-out);
}
.ds-dialog:focus { outline: none; }
.ds-dialog::backdrop { background: rgb(15 46 38 / 0.28); }
.ds-dialog--sm,
.ds-langpick { --dialog-w: 400px; }
.ds-dialog--md { --dialog-w: 520px; }
.ds-dialog--lg { --dialog-w: 720px; }

.ds-dialog__frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}
.ds-dialog__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  flex: none;
  padding: var(--s-5) var(--s-5) 0;
}
.ds-dialog__heading { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ds-dialog__title {
  margin: 0;
  font: 600 var(--text-lead) / 1.35 var(--font-sans);
  letter-spacing: var(--tracking-title);
  color: var(--text-strong);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ds-dialog__subtitle {
  margin: 0;
  overflow: hidden;
  font: var(--type-meta);
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Quiet: no outline at rest; the focus ring shows only for the keyboard. */
.ds-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--h-md);
  height: var(--h-md);
  margin: -6px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-dialog__close svg { width: 16px; height: 16px; }
.ds-dialog__close:hover { background: var(--hover-quiet-bg); color: var(--text-strong); }
.ds-dialog__close:focus:not(:focus-visible) { outline: none; }

.ds-dialog__content {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--s-4) var(--s-5) var(--s-5);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ds-dialog__content:empty { display: none; }
.ds-dialog__head:has(+ .ds-dialog__content:empty) { padding-bottom: var(--s-5); }
.ds-dialog__body { margin: 0; font: var(--type-body); color: var(--text-body); text-wrap: pretty; }

/* Grouping inside the content: sections split by a hairline, a two-up row,
   and a status line (dot + words). */
.ds-dialog__section { display: grid; gap: var(--s-3); min-width: 0; }
.ds-dialog__section + .ds-dialog__section { padding-top: var(--s-4); border-top: 1px solid var(--divider); }
.ds-dialog__section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--h-sm); }
.ds-dialog__section-title { margin: 0; font: var(--type-title); letter-spacing: var(--tracking-title); color: var(--text-strong); }
.ds-dialog__note { margin: 0; font: var(--type-meta); color: var(--text-muted); text-wrap: pretty; }
.ds-dialog__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.ds-dialog__status { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: var(--type-meta); color: var(--text-muted); }
.ds-dialog__status::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--decor-faint, var(--neutral-350));
}
.ds-dialog__status--ok::before { background: var(--green-700); }
.ds-dialog__status--attention::before { background: var(--amber-700, #97610A); }

.ds-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  flex: none;
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--border-default);
  background: var(--surface-subtle);
}
.ds-dialog__foot-start { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-right: auto; }
.ds-dialog__foot-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); margin-left: auto; }
.ds-dialog__error { flex-basis: 100%; margin: 0; font: 400 var(--text-sm) / 1.45 var(--font-sans); color: var(--red-700); }

/* Side sheet: create/edit forms. Header and footer stay; the form scrolls. */
.ds-dialog--sheet {
  --dialog-w: 560px;
  width: min(var(--dialog-w), 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-width: 0 0 0 1px;
  border-radius: 0;
}
.ds-dialog--sheet[open] { animation: ds-sheet-side 200ms var(--ease-out); }
.ds-dialog--sheet .ds-dialog__head { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-default); }
.ds-dialog--sheet .ds-dialog__content { gap: var(--s-5); padding: var(--s-5); }
.ds-dialog--sheet .ds-dialog__section + .ds-dialog__section { padding-top: var(--s-5); }

/* Older markup (the language chooser) keeps working inside the frame. */
.ds-dialog__inner { min-height: 0; padding: var(--s-5); overflow-y: auto; }
.ds-dialog__inner .ds-dialog__body { margin-top: var(--s-2); }
.ds-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

@keyframes ds-sheet-side {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes ds-rise {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes ds-sheet-in {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Bottom sheet ---------------------------------------------------------------
   Phone menus and dialogs: top radius 16, rows 48, max 85dvh. */
.ds-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  max-height: 85dvh;
  overflow: auto;
  padding: var(--s-2) 0 calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--border-default);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  animation: ds-sheet-in 200ms var(--ease-out);
}
.ds-sheet__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 0;
  background: transparent;
  font: 400 var(--text-base) / 1.4 var(--font-sans);
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-sheet__row:hover { background: var(--hover-row-bg); }

/* Toast — dsToast() in js/ds.js ----------------------------------------------
   Bottom-right stack on desktop, full width above the thumb zone on phones.
   Float shadow. Toasts report; they never ask (asking is dsConfirm). */
.ds-toast-host {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.ds-toast {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font: 500 var(--text-dense) / 1.4 var(--font-sans);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: ds-rise var(--t-menu) var(--ease-out);
}
.ds-toast--ok { background: var(--action-primary); }
.ds-toast--error { background: var(--red-700); }

/* Language — js/lang.js. One dropdown naming the current language, the
   same control as the landing's .sy-lang; the first-run chooser is a dialog
   with one 48px option per language. */
.ds-langmenu { position: relative; }
.ds-langmenu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  height: var(--h-md);
  padding: 0 var(--s-2) 0 var(--s-3);
  border-radius: var(--r);
  font: 500 var(--text-dense) / 1 var(--font-sans);
  color: var(--text-body);
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-langmenu summary::-webkit-details-marker { display: none; }
.ds-langmenu summary:hover,
.ds-langmenu[open] summary { background: var(--hover-quiet-bg); color: var(--text-strong); }
.ds-langmenu summary .ds-langmenu__ico { color: var(--text-muted); transition: rotate var(--t-fast) var(--ease-out); }
.ds-langmenu[open] summary .ds-langmenu__ico { rotate: 180deg; }
.ds-langmenu__menu {
  position: absolute;
  top: calc(100% + var(--s-2));
  right: 0;
  z-index: 70;
  display: grid;
  gap: 1px;
  min-width: 180px;
  padding: var(--s-1);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow);
}
.ds-langmenu[open] .ds-langmenu__menu { animation: ds-langmenu-in 150ms var(--ease-out); }
@keyframes ds-langmenu-in { from { opacity: 0; translate: 0 -4px; } }
.ds-langmenu__menu > button,
.ds-langmenu__menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-md);
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font: 400 var(--text-dense) / 1 var(--font-sans);
  color: var(--text-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-langmenu__menu > :hover { background: var(--hover-quiet-bg); color: var(--text-strong); text-decoration: none; }
.ds-langmenu__menu > [aria-current] { font-weight: 500; color: var(--text-strong); }
.ds-langmenu__menu > [aria-current] .ds-langmenu__ico { color: var(--green-700); }
@media (prefers-reduced-motion: reduce) {
  .ds-langmenu summary .ds-langmenu__ico { transition: none; }
  .ds-langmenu[open] .ds-langmenu__menu { animation: none; }
}

.ds-langpick__options { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.ds-langpick__option {
  height: 48px;
  border: 1px solid var(--border-control);
  border-radius: var(--r);
  background: var(--surface-card);
  font: 500 15px / 1 var(--font-sans);
  color: var(--text-strong);
  cursor: pointer;
  transition: var(--transition-control);
}
.ds-langpick__option:hover { background: var(--hover-quiet-bg); }
.ds-langpick__option[aria-pressed="true"] { border-color: var(--border-strong); background: var(--surface-selected); }

/* ==========================================================================
   Responsive — phones and narrow containers
   ========================================================================== */
@media (max-width: 760px) {
  .ds-table--cards { border: 0; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
  .ds-table--cards .ds-table__head { display: none; }
  .ds-table--cards .ds-table__row {
    display: block;
    /* Inline min-width/columns come from the column spec; a stacked row drops them. */
    min-width: 0 !important;
    margin-bottom: var(--s-3);
    padding: var(--s-4);
    border: 1px solid var(--border-default);
    border-radius: var(--r-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-sm);
  }
  .ds-table--cards .ds-table__row--attention { background: var(--surface-attention); }
  .ds-table--cards .ds-table__cell { text-align: left; }
  .ds-table--cards .ds-table__cell + .ds-table__cell { margin-top: var(--s-2); }

  .ds-row__meta,
  .ds-row__actions { flex-basis: 100%; }

  .ds-case-list { width: 100%; border-right: 0; }
}

@media (max-width: 720px) {
  .ds-card { padding: var(--s-4); }
  .ds-shell__content { padding: var(--s-4) var(--s-4) var(--s-8); }

  /* Every control is a 44px touch target; text in fields is 16px so iOS
     does not zoom. */
  .ds-btn,
  .ds-chip,
  .ds-reason,
  .ds-langchip { min-height: var(--h-lg); }
  .ds-btn--xl,
  .ds-btn--mobile-cta { width: 100%; }
  .ds-field__control,
  .ds-input,
  .ds-select,
  .ds-search { height: var(--h-lg); font-size: 16px; }
  .ds-field__control,
  .ds-input,
  .ds-select { line-height: 22px; }
  /* At 16px Chrome centres a text input's value half a pixel lower than a
     select's or a date's (measured from rendered pixels); this evens it. */
  select.ds-field__control,
  .ds-select,
  input[type="date"].ds-field__control,
  input[type="date"].ds-input { padding-top: 1px; }
  .ds-field__control::-webkit-calendar-picker-indicator,
  .ds-input::-webkit-calendar-picker-indicator { margin-top: -1px; }
  .ds-search__input { font-size: 16px; }
  .ds-textarea,
  textarea.ds-field__control { height: auto; font-size: 16px; line-height: 1.5; }
  .ds-langmenu summary, .ds-langmenu__menu > button, .ds-langmenu__menu > a { height: var(--h-lg); }

  /* Dialogs dock to the bottom as a sheet; the side sheet goes full screen.
     The close button grows to a 44px target; footer actions stack full
     width with the primary on top. */
  .ds-dialog {
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .ds-dialog[open] { animation: ds-sheet-in 200ms var(--ease-out); }
  .ds-dialog--sheet { height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ds-dialog__head { padding: var(--s-4) var(--s-4) 0; }
  .ds-dialog--sheet .ds-dialog__head { padding: var(--s-3) var(--s-4); }
  .ds-dialog__close { width: var(--h-lg); height: var(--h-lg); margin: -10px -10px -10px 0; }
  .ds-dialog__content,
  .ds-dialog--sheet .ds-dialog__content { padding: var(--s-4); }
  .ds-dialog__head:has(+ .ds-dialog__content:empty) { padding-bottom: var(--s-4); }
  .ds-dialog__row { grid-template-columns: minmax(0, 1fr); }
  .ds-dialog__foot { padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); }
  .ds-dialog__foot-start,
  .ds-dialog__foot-end { width: 100%; margin: 0; }
  .ds-dialog__foot-start { order: 2; }
  .ds-dialog__foot-end { flex-direction: column-reverse; }
  .ds-dialog__foot .ds-btn,
  .ds-dialog__actions .ds-btn { width: 100%; }
  .ds-dialog__actions { flex-direction: column-reverse; }

  .ds-toast-host { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); max-width: none; align-items: stretch; }
}

@media (max-width: 640px) {
  .ds-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds-kv__value { margin-bottom: var(--s-2); }
}

@media (prefers-reduced-motion: reduce) {
  .ds-dialog[open],
  .ds-dialog--sheet[open],
  .ds-toast,
  .ds-sheet { animation: none; }
  [class*="ds-"] { transition: none !important; }
}
