/* Approved shared UI primitives. See docs/UI-STANDARDS.md before adding variants.
   Opt-in classes: loading this file does not restyle legacy pages globally. */
:root {
  --scoodle-page-max-width: 1080px;
  /* Shared workspace palette. Reuse these roles instead of copying hex colors.
     Title fill also identifies selected schedule cards and Guided Setup panels. */
  --scoodle-secondary-header-fill: #344f6b;
  --scoodle-title-fill: #d8e5f0;
  --scoodle-title-ink: #102235;
  --scoodle-selection-border: #8ca8bd;
  --scoodle-nav-fill: #f1f3f5;
  --scoodle-nav-ink: #475569;
  --scoodle-nav-selected-fill: #243447;
  --scoodle-nav-selected-ink: #fff;
  --scoodle-nav-selected-line: #e7bd51;
  --scoodle-nav-hover-fill: #e2e7ec;
  --scoodle-nav-border: #d7dce1;
  --scoodle-workspace-focus: #245d83;
  --scoodle-control-on: #006747;
  --scoodle-control-off: #819086;
  --scoodle-control-focus: #b28028;
  --scoodle-surface: #fff;
  --scoodle-surface-muted: #f5f5f5;
  --scoodle-border: #ccc;
  --scoodle-text: #252525;
  --scoodle-text-muted: #666;
  --scoodle-control-radius: 6px;
  --scoodle-control-gap: 8px;
  --scoodle-switch-width: 40px;
  --scoodle-switch-height: 24px;
  --scoodle-switch-knob: 20px;
  --scoodle-field-money: 84px;
  --scoodle-field-short: 110px;
  --scoodle-field-date: 120px;
  --scoodle-field-email: 240px;
  --scoodle-field-email-grid: 185px;
  --scoodle-field-notes-grid: 160px;
}
.scoodle-switch { display:inline-flex; align-items:center; gap:7px; }
.scoodle-add-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:0;font-size:24px;line-height:1;border-radius:var(--scoodle-control-radius)}
.scoodle-switch input[type=checkbox][role=switch] {
  appearance:none; box-sizing:border-box; flex-shrink:0;
  width:var(--scoodle-switch-width); height:var(--scoodle-switch-height);
  border-radius:999px; padding:2px; margin:0; border:0;
  background:var(--scoodle-control-off); cursor:pointer;
}
.scoodle-switch input[role=switch]::before {
  content:""; display:block; width:var(--scoodle-switch-knob);
  height:var(--scoodle-switch-knob); border-radius:50%; background:#fff;
}
.scoodle-switch input[type=checkbox][role=switch]:checked { background:var(--scoodle-control-on); }
.scoodle-switch input[role=switch]:checked::before {
  transform:translateX(calc(var(--scoodle-switch-width) - var(--scoodle-switch-knob) - 4px));
}
.scoodle-switch input[role=switch]:focus-visible { outline:2px solid var(--scoodle-control-focus); outline-offset:3px; }
.scoodle-switch input[role=switch]:disabled { cursor:default; opacity:1; }
.scoodle-inline-controls { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:var(--scoodle-control-gap); }
.scoodle-known-value { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
.scoodle-field { box-sizing:border-box; max-width:100%; min-width:0; }
.scoodle-field.scoodle-field--email { width:var(--scoodle-field-email); }
.scoodle-field.scoodle-field--money { width:var(--scoodle-field-money); text-align:right; font-variant-numeric:tabular-nums; }
.scoodle-field.scoodle-field--short { width:var(--scoodle-field-short); }
.scoodle-field.scoodle-field--date { width:var(--scoodle-field-date); }
.scoodle-sort-heading { display:grid; grid-template-columns:minmax(min-content,1fr) auto; align-items:center; gap:4px; box-sizing:border-box; width:100%; min-width:min-content; text-align:center; }
.scoodle-sort-label { min-width:0; white-space:normal; text-align:center; }
.scoodle-sort-arrow { white-space:nowrap; line-height:1; justify-self:end; align-self:center; }

/* Shared phone-scorecard width, including demo presentation. */
:root{--scoodle-scorecard-width:520px}
