/* 2.0 200:P9: the pages of the guide (guide_step.html, guide_segment.html, guide_hub.html) and the compact box of the
   required steps (_guide_compact.html). Below 700 px (the threshold of ux.css) the list of the steps folds into
   «All steps» and the form is one column; no fixed action bar (the virtual keyboard would cover the fields). */
.guide-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.guide-nav { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.guide-nav > summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; cursor: pointer;
  font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.guide-steps { list-style: none; margin: 0; padding: 4px 0; }
.guide-steps a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px; color: var(--text); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.guide-steps a:hover { background: var(--surface-2); }
.guide-steps li.cur a { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.guide-steps .gs-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--border-strong); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--muted); }
/* 200:P25: the text of a done mark mixed towards --text like the badges (--ok alone was 4.1:1 on its tint, light theme) */
.guide-steps li.gs-done .gs-mark { border-color: transparent; background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: color-mix(in srgb, var(--ok) 78%, var(--text)); }
.guide-steps li.cur .gs-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.guide-steps .gs-text { display: flex; flex-direction: column; min-width: 0; }
.guide-steps .gs-title { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.guide-steps li.gs-done .gs-title, .guide-steps li.gs-skipped .gs-title { color: var(--muted); }
.guide-steps .gs-sub { font-size: var(--fs-xs); color: var(--muted); }
.guide-why { font-size: var(--fs-md); max-width: 72ch; margin: 0; }
.guide-state { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.guide-h2 { font-size: var(--fs-sm); font-weight: var(--fw-semi); margin: 0 0 4px; }
.guide-missing { margin: 0; padding-left: 18px; font-size: var(--fs-sm); }
.guide-missing li { margin: 2px 0; }
.guide-actions form { margin: 0; }
.guide-skip-help { padding: 0 var(--s-4) 10px; text-align: right; margin: 0; }
.guide-auto { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: var(--s-4); }
.guide-auto .help { flex: 1 1 100%; }
/* the state of a step: the tint and the text of .badge.ok / .badge.warn (200:P25: not only the text colour) */
.badge.gs-badge-done { --c: var(--ok); }
.badge.gs-badge-waiting, .badge.gs-badge-blocked { --c: var(--warn); }
@media (max-width: 700px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-skip-help { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .guide * { transition: none !important; } }

/* 2.0 200:P21: the pre-flight check of the scan and plan forms (_preflight.html) and the forms of the guide. 200:P25: tokens
   only (no fallback colours), the radius and the tint of the alerts (.alert of app.css): a blocking check is tinted
   like .alert.error, its reason in the alert's text colour */
.preflight { border: 1px solid var(--border); border-radius: var(--r); padding: 10px var(--s-3); margin-top: 10px;
  background: var(--surface-2); }
.preflight.block { border-color: color-mix(in srgb, var(--err) 35%, transparent);
  background: color-mix(in srgb, var(--err) 8%, var(--surface)); }
.preflight-h { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-weight: var(--fw-semi); }
.preflight-rows, .preflight-after { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.preflight-rows li { display: flex; gap: 6px; align-items: flex-start; }
.preflight-rows .pf-mark { flex: none; display: inline-flex; margin-top: 1px; }
.preflight-rows .pf-ok .pf-mark { color: var(--ok); }
.preflight-rows .pf-warn .pf-mark { color: var(--warn); }
.preflight-rows .pf-bad .pf-mark { color: var(--err); }
.preflight .pf-why { color: var(--alert-err-text); font-weight: var(--fw-medium); margin-top: 6px; }
.guide-site { border-left: 3px solid var(--border-strong); padding-left: var(--s-3); }
