/* Gates and smaller steps live inside the existing atom families. */
.route-global { margin: 6px 0 10px; }
.route-control-label { display:block; margin-bottom:4px; font-size:11px; color:#59697b; }
.route-mode-options { display:flex; flex-wrap:wrap; gap:3px; }
.route-mode { flex:1 1 auto; min-width:0; padding:5px 6px; border:1px solid #d8e1eb; border-radius:4px; background:#fff; color:#59697b; font:inherit; font-size:10.5px; line-height:1.3; cursor:pointer; }
.route-mode.is-active { border-color:#7699c6; background:#eaf0fb; color:#234d84; }
.route-mode:hover { border-color:#7898be; background:#f3f6fb; }
.route-family { min-width:0; margin:8px 0 4px; padding-top:6px; border-top:1px solid #e4eaf0; font-size:11px; line-height:1.35; }
.route-section-mode label { display:flex; align-items:center; gap:5px; color:#627286; }
.route-section-mode label > span { flex:0 0 auto; }
.route-section-mode select { flex:1 1 0; min-width:0; max-width:100%; padding:4px 2px; border:1px solid #d8e1eb; border-radius:4px; background:#fff; color:#334d66; font:inherit; font-size:10.5px; }
.route-mode-help { margin:5px 0; color:#596f7e; font-size:10px; line-height:1.4; overflow-wrap:break-word; }
.route-mode-origin { display:block; margin-top:2px; color:#7a8994; }
.route-mode-guide { margin:4px 0 7px; color:#596f7e; font-size:10px; line-height:1.4; }
.route-mode-guide summary { cursor:pointer; padding:2px 0; color:#42698e; }
.route-mode-guide dl { margin:6px 0; }
.route-mode-guide dt { margin-top:5px; font-weight:600; }
.route-mode-guide dd { margin:1px 0 0; }
.route-mode-guide p { margin:6px 0; }
.route-proof-key { margin:5px 0; color:#6e817a; font-size:9px; }
.practice-history { min-width:0; margin:7px 0 4px; padding:6px 0 4px; border-top:1px solid #e6ebf0; }
.practice-history-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; margin-bottom:4px; color:#526a7d; font-size:10px; line-height:1.3; }
.practice-history-heading > span { min-width:0; overflow-wrap:break-word; }
.practice-history-heading small { color:#8291a0; font-size:8px; white-space:nowrap; }
.practice-history-strip { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:2px; width:100%; max-width:210px; min-width:0; }
.practice-history-mark { display:flex; align-items:center; justify-content:center; height:18px; min-width:0; border:1px solid transparent; border-radius:3px; font:600 12px/1 system-ui,sans-serif; }
.practice-history-mark.is-correct { color:#287755; background:#eaf5ed; }
.practice-history-mark.is-half { color:#996715; background:#fff3d8; }
.practice-history-mark.is-wrong { color:#b64643; background:#fbeceb; }
.practice-history-mark.is-empty { color:#c4ccd3; background:#f7f9fb; }
.practice-history-mark.is-supported { border-style:dashed; border-color:currentColor; }
.practice-history-caption,.practice-history-support { display:block; margin-top:3px; color:#788995; font-size:8.5px; line-height:1.3; }
.practice-history.is-compact .practice-history-heading { font-size:9px; }
.practice-history.is-compact .practice-history-strip { gap:1px; }
.practice-history.is-compact .practice-history-mark { height:15px; font-size:10px; }
.practice-history.is-compact .practice-history-caption,.practice-history.is-compact .practice-history-support { font-size:8px; }
.route-group { margin:8px 0 0; padding-bottom:2px; }
.route-group-label { display:flex; align-items:start; justify-content:space-between; gap:5px; width:100%; min-width:0; padding:3px 0 5px; border:0; background:none; color:#334d66; text-align:left; font:inherit; font-weight:600; cursor:pointer; }
.route-group-label small { flex:0 0 auto; color:#8593a2; font-size:9px; font-weight:400; font-variant-numeric:tabular-nums; }
.route-group-note { margin:0 0 5px; color:#738397; font-size:10px; }
.route-nodes { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.route-node { display:flex; align-items:start; gap:4px; min-width:0; max-width:100%; padding:4px 5px; border:1px solid #dce3eb; border-radius:4px; background:#fff; color:#566b80; text-align:left; font:inherit; font-size:10px; line-height:1.3; cursor:pointer; }
.route-node-label { min-width:0; overflow-wrap:break-word; }
.route-node-count { flex:0 0 auto; margin-left:auto; padding-left:3px; color:#5f7a72; font-size:9px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.route-node-dot { display:block; flex:0 0 6px; width:6px; height:6px; margin-top:3px; border:1px solid #c5d0dc; border-radius:50%; background:#fff; }
.route-node.is-secure { border-color:#badbd4; color:#296b61; background:#f4faf8; }
.route-node.is-secure .route-node-dot { border-color:#398b7b; background:var(--route-evidence-fill,#398b7b); }
.route-node.is-ready .route-node-dot { border-color:#6486b6; background:#dae6f7; }
.route-node.is-progress .route-node-dot { border-color:#398b7b; background:var(--route-evidence-fill,#9cc5bd); }
.route-node.is-remedy { border-color:#ddba76; color:#82611f; background:#fffaf1; }
.route-node.is-remedy .route-node-dot { border-color:#b48124; background:#e5bc62; }
.route-node.is-assumed { border-style:dashed; border-color:#b4c4d7; color:#69809a; background:#f8fafd; }
.route-node.is-assumed .route-node-dot { border-color:#98abc2; background:#fff; }
.route-node-meta { display:block; margin-top:2px; color:#8291a3; font-size:8.5px; font-weight:400; }
.route-assumed-note { display:block; margin-top:3px; color:#8291a3; font-size:8.5px; }
.route-node.is-selected { box-shadow:0 0 0 1px #547db1; border-color:#547db1; }
.route-group.is-selected .route-group-label { color:#234f86; }
.route-node:disabled { cursor:default; opacity:.6; }
.route-node:disabled:hover { background:#fff; border-color:#dce3eb; }
.route-node:hover { border-color:#92abc6; background:#f2f6fb; }
.route-gate { display:flex; align-items:center; gap:5px; width:100%; min-width:0; margin:2px 0 4px; padding:2px 0; border:0; background:none; color:#976d21; font:inherit; font-size:9.5px; cursor:pointer; }
.route-gate-rule { flex:1 1 8px; min-width:8px; border-top:2px dotted currentColor; opacity:.65; }
.route-gate-label { display:inline-flex; flex:0 1 auto; align-items:center; gap:3px; min-width:0; text-align:center; }
.route-gate-icon { flex:0 0 auto; font-size:11px; }
.route-gate.is-open { color:#2c8072; }
.route-gate.is-free { color:#748394; }
.route-gate:hover .route-gate-label { text-decoration:underline; }
.route-external { margin:0 0 3px; }
.route-shared-ideas { margin-top:7px; }
.route-external-label { display:block; margin-bottom:3px; color:#8290a0; font-size:9px; }
.route-external .route-node { font-size:9px; padding:3px 4px; border-style:dashed; }
.route-external-boundary { display:block; width:100%; margin:5px 0; border-top:1px dashed #c6d0dc; }
.route-microsteps { margin:8px 0 2px; color:#596e83; font-size:10px; }
.route-microsteps summary { cursor:pointer; overflow-wrap:break-word; }
.route-microsteps summary > span { display:block; margin:2px 0 0 12px; font-size:9px; color:#8291a1; }
.route-case-list { margin-top:5px; }
.route-case { padding:5px 0; border-top:1px solid #e6ebf1; }
.route-case-name { display:block; margin-bottom:4px; font-size:10px; color:#50647a; }
.route-case-nodes { display:flex; flex-wrap:wrap; align-items:center; gap:3px; }
.route-case-nodes .route-node { flex:0 1 auto; padding:4px; font-size:9px; }
.route-step-arrow { color:#98a6b6; }
.route-right { font-size:10px; }
.route-right .route-node { font-size:9px; padding:3px 4px; }
.route-right .route-group > .route-nodes > .route-node { width:19px; height:19px; min-height:19px; padding:5px; border-radius:3px; }
.route-right .route-group > .route-nodes > .route-node > .route-node-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.route-right .route-group > .route-nodes > .route-node > .route-node-count { display:none; }
.route-right .route-group > .route-nodes > .route-node > .route-node-dot { margin-top:0; }
.route-right .route-nodes { gap:3px; }
.route-right .route-group-label { font-size:10px; }
.route-right .route-section-mode select { font-size:9.5px; }
.route-right .route-gate { font-size:9px; }
.route-node.is-unavailable { border-style:dashed; background:transparent; color:#91a0ae; }
.route-remedy { display:flex; align-items:start; flex-wrap:wrap; gap:7px 12px; margin-top:10px; padding-top:9px; border-top:1px solid #e2e9f0; color:#66778b; font-size:11px; }
.route-remedy-actions { display:flex; flex-wrap:wrap; gap:5px; }
.route-remedy-actions button { max-width:100%; padding:5px 7px; border:1px solid #c9d7e8; border-radius:4px; background:#f4f7fc; color:#315a8b; text-align:left; font:inherit; font-size:11px; cursor:pointer; }
.route-mode:focus-visible,.route-node:focus-visible,.route-group-label:focus-visible,.route-gate:focus-visible,.route-section-mode select:focus-visible,.route-microsteps summary:focus-visible,.route-remedy-actions button:focus-visible { outline:2px solid #638ec2; outline-offset:2px; }
@media (max-width:920px) {
  .route-mode { min-height:30px; }
  .route-node { min-height:28px; }
  .route-group-label { min-height:28px; align-items:center; }
  .route-gate { min-height:28px; }
  .route-section-mode select { min-height:30px; }
  .route-microsteps summary { padding:4px 0; }
}
