/* ═══════════════════════════════════════════════════════════════════
   DIGITAL LIFE AUDIT — tool styles
   Leans on styles.css tokens and low.css patterns.
   R/A/G options never rely on colour alone: icon + word + colour.
   ═══════════════════════════════════════════════════════════════════ */

.audit-card-wrap { position: relative; }

.audit-preview-badge {
  position: absolute; top: 0.9rem; right: 1rem;
  background: var(--accent-warm); color: #fff;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem; border-radius: 999px; margin: 0;
}

.audit-benefits { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.audit-benefits li {
  padding: 0.35rem 0 0.35rem 1.6rem; position: relative; color: var(--text);
}
.audit-benefits li::before {
  content: "✓"; position: absolute; left: 0.2rem; color: var(--teal); font-weight: 700;
}

.audit-code-row { display: flex; gap: 0.6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.audit-code-row .low-input { flex: 1 1 240px; }

.audit-hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0 1rem; }

.audit-import .audit-file-input { font-size: 1rem; color: var(--text-muted); }

.audit-name { max-width: 320px; margin-bottom: 1rem; }
/* First name + surname sit side by side on a wide screen and stack on a phone */
.audit-name-row { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 660px; margin-bottom: 1rem; }
.audit-name-part { flex: 1 1 200px; width: auto; min-width: 0; }

/* welcome / introduction page — generous sizing for older readers */
.audit-welcome-p { font-size: 1.05rem; line-height: 1.65; color: var(--text); }
/* text flows the full width of the card on audit and walkthrough pages */
.audit-card-wrap .low-intro { max-width: none; }
.audit-welcome-h { color: var(--navy); font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.audit-welcome-pillars { padding-left: 1.4rem; margin: 0.5rem 0 0; }
.audit-welcome-pillars li { font-size: 1.02rem; line-height: 1.6; padding: 0.25rem 0; }
.audit-welcome-pillars strong { color: var(--navy); }

.audit-privacy-note {
  background: var(--pale-blue); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.7rem 0.9rem;
  font-size: 1rem; color: var(--navy-mid); margin: 0 0 1.5rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.audit-privacy-note .note-icon { flex-shrink: 0; display: inline-flex; margin-top: 0.15em; }
.audit-privacy-note .note-icon svg {
  width: 1.15em; height: 1.15em; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.audit-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }

.audit-encourage { color: var(--text-muted); font-size: 1rem; margin-top: 1rem; font-style: italic; }

/* ─── triage ─── */
.audit-triage-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.audit-toggle {
  display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem; background: var(--paper);
  transition: border-color var(--transition), background var(--transition);
}
.audit-toggle:hover { border-color: var(--navy-mid); }
.audit-toggle:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.audit-toggle.is-checked { border-color: var(--teal); background: var(--teal-soft); }
.audit-toggle:focus-within { box-shadow: 0 0 0 3px var(--teal-border); }
.audit-toggle input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); flex-shrink: 0; }
.audit-toggle-q { display: block; font-weight: 600; color: var(--navy); }
.audit-toggle-help { display: block; font-size: 1rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ─── question cards ─── */
.audit-q {
  border: none; border-top: 1px solid var(--border);
  padding: 1.5rem 0 0.5rem; margin: 1.5rem 0 0;
}
.audit-q-headline {
  font-weight: 600; color: var(--navy); font-size: 1.08rem;
  padding: 0; margin-bottom: 0.5rem; line-height: 1.4;
}
.audit-why { margin: 0.4rem 0 0.9rem; }
.audit-why summary {
  cursor: pointer; color: var(--navy-mid); font-size: 1rem; font-weight: 600;
}
.audit-why summary:focus-visible { outline: 2px solid var(--navy-mid); outline-offset: 2px; }
.audit-why p {
  font-size: 1rem; color: var(--text-muted); margin: 0.5rem 0 0;
  padding: 0.7rem 0.9rem; background: var(--soft-cream);
  border-left: 3px solid var(--accent-warm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.audit-ticklist { margin: 0.5rem 0 0.9rem; }
.audit-tick {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 0.3rem 0.85rem; margin: 0 0.4rem 0.45rem 0;
  font-size: 1rem; background: var(--paper);
  transition: border-color var(--transition), background var(--transition);
}
.audit-tick:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.audit-tick.is-checked { border-color: var(--teal); background: var(--teal-soft); }
.audit-tick:focus-within { box-shadow: 0 0 0 3px var(--teal-border); }
.audit-tick input { accent-color: var(--teal); width: 1rem; height: 1rem; }

.audit-options { display: flex; flex-direction: column; gap: 0.55rem; }
.audit-option {
  display: flex; gap: 0.65rem; align-items: center; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem; background: var(--paper);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.audit-option:hover { border-color: var(--navy-mid); }
.audit-option:focus-within { box-shadow: 0 0 0 3px var(--teal-border); }
.audit-option input {
  position: absolute; opacity: 0; pointer-events: none;
}
.audit-option-dot {
  flex-shrink: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--paper);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.audit-option-selected .audit-option-dot {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.audit-option-text { display: block; color: var(--text); font-size: 1rem; line-height: 1.4; }
.audit-option-selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal); }

/* pillar-by-pillar overview on the results screen */
.audit-pillar-overview { margin: 1.5rem 0 0; }
.apo-row {
  display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 0.6rem 1rem;
  padding: 0.6rem 0; border-top: 1px solid var(--border);
  align-items: baseline;
}
.apo-row:last-child { border-bottom: 1px solid var(--border); }
.apo-name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.apo-sum { color: var(--text); font-size: 1rem; line-height: 1.45; }
@media (max-width: 540px) {
  .apo-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

.audit-pillar-head h1 { margin-bottom: 0.75rem; }
.audit-progress-text { font-size: 1rem; color: var(--text-muted); margin: 0.35rem 0 0; }

/* ─── review ─── */
.audit-review-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.25rem 0; }
.audit-review-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem; background: var(--paper);
  font: inherit; color: var(--navy); font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.audit-review-row:hover { border-color: var(--navy-mid); background: var(--pale-blue); }
.audit-review-done { color: #2E6B44; font-weight: 700; font-size: 1rem; }
.audit-review-todo { color: #8A6A1F; font-weight: 700; font-size: 1rem; }

/* ─── results ─── */
.audit-results-host { margin-top: 0.5rem; }
.audit-summary-note {
  background: var(--pale-blue); border-left: 3px solid var(--accent-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem; font-size: 1rem; color: var(--navy-mid); margin: 0 0 1.25rem;
}
.audit-dial-wrap { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.audit-dial { text-align: center; }
.audit-dial-arc { stroke: var(--navy); }
.audit-dial-green .audit-dial-arc { stroke: #2E6B44; }
.audit-dial-amber .audit-dial-arc { stroke: #B58A4F; }
.audit-dial-red .audit-dial-arc { stroke: #B3372F; }
.audit-dial-num { font-size: 2.2rem; font-weight: 700; fill: var(--navy); font-family: var(--font-serif, Georgia, serif); }
.audit-dial-sub { font-size: 0.92rem; fill: var(--text-muted); } /* drawn at 1.1x inside the SVG, so 16px on screen */
.audit-dial-label { font-weight: 700; color: var(--navy); margin: 0.25rem 0 0; }
.audit-dial-side h2 { margin: 0 0 0.5rem; }
.audit-counts { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.audit-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 1rem; font-weight: 700; padding: 0.15rem 0.6rem;
  border-radius: 999px; white-space: nowrap;
}
.audit-chip-red { color: #B3372F; background: #F9E9E8; }
.audit-chip-amber { color: #8A6A1F; background: #F7F0DC; }
.audit-chip-green { color: #2E6B44; background: #E7F2EA; }
.audit-chip-na { color: #56657A; background: #EEF1F4; }

.audit-h { color: var(--navy); margin: 1.75rem 0 0.6rem; }
.audit-tf { color: var(--navy-mid); margin: 1rem 0 0.25rem; font-size: 1rem; }
.audit-goodnews {
  color: #2E6B44; background: #E7F2EA; border-radius: var(--radius-md);
  padding: 0.8rem 1rem; margin-top: 1rem;
}
.audit-first3 { padding-left: 1.25rem; }
.audit-first3 li { margin: 0.45rem 0; }

.audit-pillar-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.audit-pillar-row {
  display: grid; grid-template-columns: 220px 110px 1fr; gap: 0.75rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); align-items: center;
}
.audit-pillar-row:last-child { border-bottom: none; }
.audit-pillar-row:nth-child(odd) { background: var(--soft-cream); }
.audit-pillar-name { font-weight: 600; color: var(--navy); font-size: 1rem; }
.audit-pillar-sum { font-size: 1rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .audit-pillar-row { grid-template-columns: 1fr auto; }
  .audit-pillar-sum { grid-column: 1 / -1; }
}

.audit-recs { padding-left: 1.25rem; }
.audit-recs li { margin: 0.85rem 0; }
.audit-recs li p { margin: 0.2rem 0; }

.audit-dl-panel, .audit-pack-panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--soft-cream); padding: 1.25rem 1.4rem; margin-top: 1.75rem;
}
.audit-dl-panel h3, .audit-pack-panel h3 { margin: 0 0 0.75rem; color: var(--navy); }
.audit-dl-panel .btn { margin: 0 0.5rem 0.5rem 0; }

.audit-pack-soon { font-size: 1rem; color: var(--text-muted); font-style: italic; }

.ess-fate-row { display: block; margin: 1.1rem 0 0.15rem; }
.ess-fate-name { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.ess-fate-select { width: 100%; max-width: none; font-size: 1rem; padding: 0.5rem 0.7rem; }
.ess-fate-note, .ess-fate-hint { margin: 0 0 0.4rem; font-size: 1rem; }
.ess-fate-hint { color: var(--gold, #B58A4F); }
.ess-tier-row { margin-top: 0.3rem; }
.ess-tier-link { background: none; border: none; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.ess-tier-link.ess-tier-on { font-weight: 700; text-decoration: none; }

.eap-form { margin: 0.75rem 0 0.5rem; }
.eap-label { display: block; font-weight: 600; color: var(--navy); margin: 1rem 0 0.25rem; }
.eap-form .low-input { width: 100%; max-width: 560px; }
.eap-help { margin: 0 0 0.3rem; }
.ess-missing { border-color: #B3372F !important; outline: 1px solid #B3372F; }

.audit-step-h { display: flex; align-items: center; gap: 0.6rem; color: var(--navy); margin: 1.9rem 0 0.6rem; }
.audit-dl-panel .audit-step-h, .audit-pack-panel .audit-step-h { margin: 0 0 0.75rem; }
.audit-step-num {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 1rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

.audit-pkg-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem; margin-top: 0.5rem;
}
.audit-pkg {
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--paper); padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.audit-pkg h4 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.audit-pkg-desc { margin: 0; font-size: 1rem; color: var(--text-muted); }
.audit-pkg-docs { list-style: none; padding: 0; margin: 0; flex: 1; }
.audit-pkg-docs li {
  font-size: 1rem; padding: 0.2rem 0 0.2rem 1.3rem; position: relative;
}
.audit-pkg-docs li::before {
  content: "✓"; position: absolute; left: 0.1rem; color: var(--teal); font-weight: 700;
}
.audit-pkg-reco { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--pale-blue); }
.audit-pkg-badge {
  margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent-warm);
}
.audit-pkg-badge-plain { color: var(--text-muted); }
.audit-pkg-buys { display: flex; flex-direction: column; gap: 6px; margin-top: 0.25rem; }
.audit-pkg-buys .btn { text-align: center; white-space: normal; line-height: 1.3; }

/* package-card fields shared with the website's pricing page */
.audit-pkg-who {
  margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-warm);
}
.audit-pkg-price { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.audit-pkg-strap { margin: 0; font-size: 1rem; font-style: italic; color: var(--text-muted); }
.audit-pkg-solves {
  margin: 0.25rem 0 0; font-size: 1rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 0.5rem;
}

/* the help-level strip: on your own / add a workshop / come to you */
.audit-ways {
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--paper); margin-top: 1.1rem; overflow: hidden;
}
.audit-ways-head {
  margin: 0; background: var(--navy); color: #fff;
  padding: 0.7rem 1.1rem; font-size: 1rem;
}
.audit-ways-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.audit-way { padding: 0.9rem 1.1rem; border-top: 1px solid var(--border); }
.audit-way + .audit-way { border-left: 1px solid var(--border); }
.audit-way h4 { margin: 0 0 0.2rem; color: var(--navy); font-size: 1rem; }
.audit-way-cost { margin: 0 0 0.4rem; color: var(--accent-warm); font-weight: 700; font-size: 1rem; }
.audit-way p { font-size: 1rem; margin: 0.25rem 0; line-height: 1.5; }
.btn-small { padding: 0.3rem 0.9rem; font-size: 1rem; }

.audit-email-form { margin-top: 1.5rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-start; }
.audit-email-form .low-q-help { flex-basis: 100%; }
.audit-email-form .low-input { flex: 1 1 240px; }

/* ─── essentials walkthrough ─── */
.ess-body { margin-bottom: 0.9rem; }
.ess-count {
  background: var(--pale-blue); border-radius: 999px; display: inline-block;
  padding: 0.3rem 1rem; font-weight: 600; color: var(--navy); font-size: 1rem;
}
.ess-cat { margin: 2rem 0 0.5rem; }
.ess-cat .audit-welcome-h {
  margin: 0 0 0.5rem; font-size: 1.2rem;
  background: var(--pale-blue); border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0; padding: 0.5rem 0.9rem;
}
.ess-fold summary { font-weight: 600; color: var(--navy); }
.ess-add-row { display: flex; gap: 0.5rem; margin-top: 0.35rem; align-items: center; }
.ess-add-row .low-input { max-width: 340px; font-size: 1rem; padding: 0.45rem 0.7rem; }
.ess-custom-pill { background: var(--pale-blue); border-color: var(--navy); }
.ess-remove {
  border: none; background: none; cursor: pointer; color: var(--navy-mid);
  font-size: 1rem; padding: 0 0.1rem; line-height: 1;
}
.ess-checklist { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.ess-check { padding: 0.6rem 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .low-progress-fill { transition: none; }
}

/* ── Version B (assisted): results summary, submit & fallback ── */
.audit-summary-panel { background: #F4F7FA; border: 1px solid #E4E9F0; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1rem 0 1.75rem; }
.audit-score-big { font-family: var(--font-serif, Georgia, serif); color: var(--navy); margin: 0; }
.audit-score-big strong { font-size: 2.6rem; }
.audit-score-big span { color: var(--text-muted); font-size: 1.1rem; }
.audit-score-band { font-weight: 700; color: var(--navy); margin: 0.1rem 0 0.75rem; }
.audit-weakest { margin: 0.85rem 0 0; }
.audit-submit-panel { border: 1px solid #E4E9F0; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.audit-send-notice { margin: 0.25rem 0 1rem; padding: 0.75rem 1rem; border-left: 4px solid #B58A4F; background: #F7F3EC; font-weight: 600; color: #192D4E; }
.audit-fallback-steps { margin: 0.75rem 0 0; padding-left: 1.3rem; line-height: 1.7; }
.audit-fallback-steps li { margin-bottom: 0.4rem; }
.audit-email { margin-top: 0.6rem; }
.low-error { color: #B3372F; font-weight: 600; margin: 0.5rem 0 0; }

/* ─── illustrated walkthrough screens (one action per screen, picture under the text) ─── */
.ess-screen-count {
  font-size: 1rem; color: var(--text-muted); margin: 0 0 0.75rem;
}
.ess-screen {
  background: var(--paper, #fff); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: 0 1px 4px rgba(25, 45, 78, 0.06);
}
.ess-screen-note { background: var(--pale-blue); border-color: transparent; }
.ess-screen-text { font-size: 1.15rem; line-height: 1.55; color: var(--navy); }
.ess-screen-text p { margin: 0.2rem 0 0.9rem; }
.ess-screen-text p:last-child { margin-bottom: 0.2rem; }
.ess-screen-text h2 { margin: 0.1rem 0 0.6rem; }
.ess-shot {
  display: block; max-width: 100%; max-height: 36rem; width: auto; height: auto;
  margin: 0.9rem auto 0; border: 1px solid var(--border); border-radius: 8px;
  cursor: zoom-in;
}
.ess-shot-hint { text-align: center; font-size: 1rem; color: var(--text-muted); margin: 0.45rem 0 0; }
.ess-zoom-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(15, 27, 48, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  cursor: zoom-out;
}
.ess-zoom-img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 6px; background: #fff; }
.ess-review-note {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0; padding: 0.8rem 1rem; line-height: 1.6;
}

/* ── Buy-screen extras: pillar summary heading and sample-report excerpt ── */
.audit-gate-sub {
  font-size: 1.35rem;
  margin: 26px 0 6px;
}
.audit-sample {
  border: 1px solid var(--border, #C8D2DD);
  border-radius: 10px;
  background: #FBF7F0;
  padding: 16px 18px;
  margin: 10px 0 18px;
}
.audit-sample-kicker {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A6A1F;
  margin: 0 0 10px;
}
.audit-sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.audit-sample-pillar { font-weight: 600; }
.audit-sample-line {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 10px;
}
.audit-sample-priority {
  border-left: 3px solid #192D4E;
  padding: 6px 0 6px 12px;
  margin: 12px 0 10px;
  background: rgba(25, 45, 78, 0.03);
}
.audit-sample-priority .audit-sample-line { margin: 0; }

/* ── Version C walkthrough: decide-screen control stacks ───────────── */
.ess-fate-controls { display: flex; flex-direction: column; gap: 0.4rem; max-width: none; }
.ess-fate-controls .ess-fate-select { flex: none; width: 100%; max-width: none; }
.ess-opt-input { font-size: 1rem; padding: 0.4rem 0.6rem; color: var(--navy); }
.ess-opt-input::placeholder { font-size: 1rem; }
.ess-choice-echo { margin: 0; font-size: 1rem; color: #44536A; line-height: 1.35; }


/* ── Polish pass (Sept 2026): walkthrough stepper & milestone chip ── */
.ess-stepper { display: flex; gap: 6px; margin: 0.35rem 0 1rem; }
.ess-stepper i {
  display: block; width: 30px; height: 5px; border-radius: 3px;
  background: var(--pale-blue-2);
}
.ess-stepper i.done { background: var(--teal); }
.ess-stepper i.now { background: var(--navy); }
.audit-milestone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--teal-soft); color: var(--teal-deep);
  border-radius: 999px; padding: 0.28rem 0.85rem;
  font-size: 1rem; font-weight: 600;
  margin: 0 0 0.9rem;
}
.audit-milestone::before { content: "\2713"; font-weight: 700; }

/* ── Option B (Sept 2026): the account picker as two columns of rows ── */
.ess-cat .audit-ticklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.9rem; margin: 0.5rem 0 0.9rem;
}
.ess-cat .audit-tick {
  display: flex; margin: 0; min-height: 50px; border-radius: 9px; border-width: 1.5px;
  padding: 0.5rem 0.8rem; font-size: 1.02rem; gap: 0.8rem;
}
.ess-cat .audit-tick input { width: 26px; height: 26px; flex-shrink: 0; }
.ess-cat .ess-custom-pill { min-height: 50px; border-radius: 9px; font-size: 1.02rem; padding: 0.5rem 0.8rem; margin: 0 0 0.55rem; }
.ess-cat .ess-add > summary, .ess-cat .ess-fold > summary {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem;
  border: 1.5px dashed var(--navy-mid); border-radius: 9px; background: var(--paper);
  color: var(--navy); font-weight: 600; font-size: 1rem; cursor: pointer; margin: 0.2rem 0 0.4rem;
  list-style: none;
}
.ess-cat .ess-add:not(.ess-fold) > summary::before { content: "+"; font-weight: 700; margin-right: 0.55rem; }
.ess-cat .ess-add > summary::-webkit-details-marker { display: none; }
.ess-cat .ess-add[open] > summary { border-style: solid; }
@media (max-width: 640px) {
  .ess-cat .audit-ticklist { grid-template-columns: 1fr; }
}

/* ── Option B: decisions as a ruled list ── */
.ess-dl { border-top: 1.5px solid var(--navy); margin: 0.4rem 0 1rem; }
.ess-dl-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 0.5rem 1rem; align-items: start;
  padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--border);
}
.ess-dl-row.open { background: #FBF9F4; }
.ess-dl-name { font-weight: 600; color: var(--navy); font-size: 1.02rem; padding-top: 0.15rem; overflow-wrap: anywhere; }
.ess-dl-mid { min-width: 0; }
.ess-dl-choice { margin: 0; font-size: 1rem; color: var(--text); line-height: 1.45; }
.ess-dl-tag {
  display: inline-block; margin-left: 0.5rem; font-size: 1rem; color: var(--teal-deep);
  background: var(--teal-soft); border-radius: 999px; padding: 0.1rem 0.55rem; vertical-align: middle; white-space: nowrap;
}
.ess-dl-note { margin: 0.2rem 0 0; font-size: 1rem; color: #4F5A6B; line-height: 1.45; }
.ess-dl-change {
  min-height: 44px; padding: 0 0.5rem; background: none; border: 0; color: var(--navy-mid);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit; font-size: 1rem; cursor: pointer;
}
.ess-dl-change:hover { color: var(--navy); }
.ess-dl-opts { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.1rem 0 0.3rem; }
.ess-dl-opt {
  display: flex; align-items: center; gap: 0.8rem; min-height: 50px;
  border: 1.5px solid var(--border-strong); border-radius: 8px; padding: 0.55rem 0.9rem;
  background: var(--paper); font-size: 1rem; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.ess-dl-opt input { width: 24px; height: 24px; accent-color: var(--teal); margin: 0; flex-shrink: 0; }
.ess-dl-opt:hover { border-color: var(--navy-mid); }
.ess-dl-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal); }
.ess-dl-opt.is-checked { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal); }
.ess-dl-opt:focus-within { box-shadow: 0 0 0 3px var(--teal-border); }
.ess-dl-opt small { margin-left: auto; color: #4F5A6B; font-size: 1rem; white-space: nowrap; }
.ess-dl-keep {
  align-self: flex-start; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 8px;
  background: var(--navy); color: var(--paper); font-weight: 600; font-family: inherit; font-size: 1rem; cursor: pointer;
}
.ess-dl-extra { margin-top: 0.55rem; }
.audit-ticklist .ess-ask { grid-column: 1 / -1; margin: -0.2rem 0 0.6rem; }  /* the 'which council?' box (BI4) spans the tick grid */
.ess-dl-extra label { display: block; font-size: 1rem; color: #4F5A6B; margin-bottom: 0.25rem; }
.ess-dl-extra .low-input { min-height: 44px; max-width: 360px; font-size: 1rem; }
.ess-dl-secnote { color: #4F5A6B; font-size: 1rem; margin: 0 0 0.5rem; }
@media (max-width: 640px) {
  .ess-dl-row { grid-template-columns: 1fr auto; }
  .ess-dl-name { grid-column: 1 / 3; padding-top: 0; }
  .ess-dl-opts { grid-column: 1 / 3; }
}

.ess-dl [hidden], .ess-cat [hidden] { display: none !important; }

/* ══ Legibility standard (8 September): every flow screen reads without zooming.
   Rows at least 50px, tick boxes and radio dots 26px, labels at least 16px,
   every button at least 44px, a visible label above every box you type in. ══ */

/* answer options */
.audit-option { min-height: 50px; padding: 0.6rem 0.9rem; gap: 0.85rem; border-width: 1.5px; border-radius: 9px; }
.audit-option-dot { width: 26px; height: 26px; border-width: 2px; }
.audit-option-selected .audit-option-dot { box-shadow: inset 0 0 0 4px var(--paper); }
.audit-option-text { font-size: 1.06rem; line-height: 1.45; }
.audit-options { gap: 0.6rem; }

/* tick lists, everywhere (the audit's own lists as well as the picker) */
.audit-ticklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.9rem; margin: 0.5rem 0 0.9rem; }
.audit-ticklist > .low-q-help { grid-column: 1 / -1; margin: 0 0 0.1rem; }
.audit-tick {
  display: flex; margin: 0; min-height: 50px; border-radius: 9px; border-width: 1.5px;
  padding: 0.5rem 0.8rem; font-size: 1.02rem; gap: 0.8rem; align-items: center;
}
.audit-tick input { width: 26px; height: 26px; flex-shrink: 0; }
.ess-custom-pill { min-height: 50px; border-radius: 9px; font-size: 1.02rem; padding: 0.5rem 0.8rem; margin: 0 0 0.55rem; }
.ess-remove { font-size: 1.2rem; min-width: 44px; min-height: 44px; margin-left: auto; }

/* checklists: "I've done this" boxes on the guide screens */
.audit-toggle { min-height: 50px; gap: 0.85rem; border-width: 1.5px; border-radius: 9px; }
.audit-toggle input { width: 26px; height: 26px; margin-top: 0.05rem; }

/* folds read as something to press: "Why this matters", "Four ways to jog your memory" */
.audit-why summary, .ess-add > summary, .ess-fold > summary {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem;
  border: 1.5px dashed var(--navy-mid); border-radius: 9px; background: var(--paper);
  color: var(--navy); font-weight: 600; font-size: 1rem; cursor: pointer; margin: 0.2rem 0 0.4rem;
  list-style: none;
}
.audit-why summary::-webkit-details-marker, .ess-add > summary::-webkit-details-marker, .ess-fold > summary::-webkit-details-marker { display: none; }
.audit-why summary::before { content: "?"; font-weight: 700; margin-right: 0.55rem; }
.ess-discovery summary::before { content: "\2192"; margin-right: 0.55rem; }
.audit-why[open] summary, .ess-add[open] > summary { border-style: solid; }
.audit-why p { font-size: 1rem; line-height: 1.5; }
.ess-discovery .audit-benefits { margin-top: 0.4rem; }
.ess-discovery .audit-benefits li { font-size: 1rem; padding: 0.35rem 0 0.35rem 1.7rem; }

/* the add-a-service panel */
.ess-add-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; align-items: flex-end; margin-top: 0.5rem; }
.ess-add-field { display: flex; flex-direction: column; flex: 1 1 220px; max-width: 340px; }
.ess-add-label { font-weight: 600; color: var(--navy); font-size: 1rem; margin: 0 0 0.25rem; }
.ess-add-row .low-input { min-height: 46px; font-size: 1rem; padding: 0.5rem 0.75rem; max-width: none; }
.ess-add-btn { min-height: 46px; padding: 0 1.1rem; font-size: 1rem; }
.ess-add-hint { font-size: 1rem; }

/* progress and helper lines */
.audit-encourage { font-style: normal; font-size: 1rem; }
.audit-q-count { display: block; font-size: 1rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.3rem; }
.audit-q-headline { font-size: 1.12rem; }
.low-kicker { font-size: 1rem; }
.ess-screen-count, .ess-count, .audit-progress-text { font-size: 1rem; }

/* pictures: a real button as well as the click-on-the-picture */
.ess-shot-hint { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; justify-content: center; margin-top: 0.75rem; font-size: 1rem; }
.ess-shot-btn { min-height: 44px; padding: 0 1rem; font-size: 1rem; }

/* fields with a label above them */
.audit-field { display: flex; flex-direction: column; flex: 1 1 200px; }
.audit-field-label, .eap-label { display: block; font-weight: 600; color: var(--navy); font-size: 1rem; margin: 0.9rem 0 0.3rem; }
.audit-name-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.audit-name-row .audit-name-part { width: 100%; flex: 0 0 auto; }
.audit-name-row .audit-field { flex: 1 1 200px; }
.low-input { min-height: 50px; font-size: 1rem; }
.audit-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.audit-file-btn { display: inline-flex; align-items: center; min-height: 46px; cursor: pointer; }
.audit-file-input:focus-visible + .audit-file-btn { outline: 3px solid var(--teal); outline-offset: 2px; }
.audit-file-btn:has(+ .audit-file-input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.audit-import { margin-top: 0.4rem; }
.ess-people-note { margin-top: 0; }

/* the quiet "start again" */
.low-startagain { color: var(--text-muted); font-size: 1rem; min-height: 44px; cursor: pointer; padding: 0.4rem 0; margin-top: 0.6rem; }

/* buttons never shorter than 44px */
.btn { min-height: 46px; }
.btn-small { min-height: 44px; padding: 0.4rem 1rem; }
.ess-dl-tag { font-size: 1rem; }

@media (max-width: 640px) {
  .audit-ticklist { grid-template-columns: 1fr; }
  .ess-add-field { max-width: none; }
}

/* ── the photos step in three parts ── */
.ess-part { margin: 1.5rem 0 0.2rem; }
.ess-part .ess-part-h { margin: 0 0 0.3rem; font-size: 1.2rem; background: var(--pale-blue); border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; padding: 0.5rem 0.9rem; }
.ess-part-lead { margin: 0.2rem 0 0.4rem; }
.ess-part .ess-dl { margin-top: 0.2rem; }
.ess-part-foot { margin-top: 1rem; }

/* whose walkthrough this is (shared computers) */
.ess-owner-line { margin: 0 0 0.6rem; font-size: 1rem; color: var(--text-muted); }
.ess-owner-line a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* save-my-progress line under every step */
.ess-progress-foot .ess-save-link { display: inline-block; padding: 0 0.2rem; margin: 0; min-height: 44px; line-height: 44px; vertical-align: middle; color: var(--navy); font-weight: 600; font-size: 1rem; }
.ess-progress-foot { line-height: 1.6; }
.ess-progress-foot .ess-save-link:hover { color: var(--teal-deep); }
.ess-save-status { color: var(--teal-deep); font-weight: 600; }

/* "Why this matters": quieter than the question and its answers, a plain grey link */
.audit-why:not(.ess-discovery) summary {
  display: inline-flex; min-height: 44px; padding: 0; margin: 0 0 0.2rem; border: 0; background: none;
  color: var(--text-muted); font-weight: 500; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px;
}
.audit-why:not(.ess-discovery) summary::before { content: none; }
.audit-why:not(.ess-discovery)[open] summary { border: 0; color: var(--navy); }
.audit-why:not(.ess-discovery) summary:hover { color: var(--navy); }
/* the question, "Why this matters" and the answers sit close together */
.audit-q { padding-top: 1.1rem; margin-top: 1.1rem; }
.audit-q-headline { margin-bottom: 0; }
.audit-why { margin: 0 0 0.5rem; }
.audit-why:not(.ess-discovery) summary { min-height: 36px; margin: 0; }
.audit-why p { margin-top: 0.3rem; }

/* Line drawings (13 September): one per pillar, beside the pillar heading. Decorative only. */
.audit-pillar-sketch {
  float: right; width: 96px; height: 96px; margin: 0 0 8px 16px; border-radius: 50%;
  background: var(--pale-blue); display: grid; place-items: center;
}
.audit-pillar-sketch svg { width: 72px; height: 72px; display: block; }
.audit-pillar-head::after { content: ""; display: block; clear: both; }
.audit-pillar-head .low-progress { clear: both; }
@media (max-width: 480px) {
  .audit-pillar-sketch { width: 76px; height: 76px; margin: 0 0 6px 12px; }
  .audit-pillar-sketch svg { width: 56px; height: 56px; }
}

/* Line drawings (13 September): one per walkthrough step, beside the step heading. Decorative only. */
.ess-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 0.75rem; }
.ess-step-head h1 { margin: 0; flex: 1 1 auto; }
.ess-step-sketch {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  background: var(--pale-blue); display: grid; place-items: center;
}
.ess-step-sketch svg { width: 72px; height: 72px; display: block; }
@media (max-width: 480px) {
  .ess-step-sketch { width: 76px; height: 76px; }
  .ess-step-sketch svg { width: 56px; height: 56px; }
}

/* the Send panel at the top of the results screen: the one thing to do */
.audit-submit-top { border: 2px solid #192D4E; background: #E8F0F7; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 0.5rem 0 1.5rem; }
.audit-submit-top .audit-step-h { margin-top: 0.15rem; }
.audit-submit-top .btn-large { font-size: 1.15rem; padding: 0.95rem 1.6rem; }
@media (max-width: 600px) { .audit-submit-top .btn-large { width: 100%; } }
