/* gestion-cas 11 (Oct 24): « Guide des styles » (.st-guide: 4 level cards) + « Les chiffres » (one row, no Resync).
   Settings (Oct 22): the Costs page's cards (couts.css .cw .card), one row per setting: what it is on the left, the control on the right. */
.st-w{max-width:980px}
.st-c h2{font:600 17px/1.3 Figtree,system-ui,sans-serif;margin:0 0 4px;display:flex;align-items:center;gap:10px}
.st-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;padding:14px 0;border-top:1px solid var(--border)}
.st-c h2+.st-row{border-top:0}
.st-k{display:flex;flex-direction:column;gap:2px;min-width:0}
.st-k b{font-weight:600;font-size:14.5px}
.st-k small{font-size:13px;color:var(--muted);max-width:60ch}
.st-v{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.st-seg a{text-decoration:none}
.st-m{font-size:13px;color:var(--muted)}
.st-pill{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:9px;background:#D5F098;color:#201A21;font-weight:600;font-size:13.5px}
.st-ob{border:1.5px solid #BFE27A!important}
.st-pipes{display:flex;gap:10px;flex-wrap:wrap}
.st-pipes>div{display:flex;flex-direction:column;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:var(--soft)}
.st-pipes b{font-weight:600;font-size:13.5px}.st-pipes small{font-size:12.5px;color:var(--muted)}
.st-later{background:var(--soft)}
.st-tag{font:500 10.5px 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border:1px dashed var(--border-strong);border-radius:999px;padding:2px 8px}
.st-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.st-it{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px dashed var(--border-strong);border-radius:10px;background:var(--surface)}
.st-it b{font-weight:600;font-size:14px}.st-it span{font-size:13px;color:var(--muted)}
/* the style guide: an intro, then one card per level (2 × 2, one column on a phone) */
.st-guide{scroll-margin-top:72px}
.st-intro{margin:8px 0 0;font-size:13px;color:var(--muted);max-width:70ch}
.st-sg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.st-sc{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);min-width:0}
.st-sc h3{font:600 14.5px/1.3 Figtree,system-ui,sans-serif;margin:0}
.st-sc .st-sr{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.st-sc p{margin:0;font-size:13.5px;line-height:1.5}
.st-sc small{font-size:12.5px;line-height:1.45;color:var(--muted)}
.st-foot{margin:12px 0 0}
@media (max-width:760px){.st-row{grid-template-columns:minmax(0,1fr)}.st-v{justify-content:flex-start}.st-grid,.st-sg{grid-template-columns:minmax(0,1fr)}.st-guide{scroll-margin-top:64px}}
.st-seg a{padding:4px 10px;border-radius:6px;color:var(--muted);font:inherit;font-size:12px;display:inline-flex;align-items:center}
.st-seg a.on{background:#F3EEF5;color:#7A5F86;font-weight:600}
:root[data-theme="dark"] .st-seg a.on{background:rgba(201,165,230,.16);color:#E4CFF5}

.st-pipes>div{flex-direction:row;align-items:center;gap:10px}
.st-pipes .stp-t{display:flex;flex-direction:column}
.stp-x{width:26px;height:26px;border-radius:7px;color:var(--muted);font-size:17px;line-height:1;flex:none;cursor:pointer}
.stp-x:hover{background:rgba(179,38,30,.1);color:#B3261E}
.st-row:has(.st-pipes){grid-template-columns:minmax(0,1fr)}
.st-row:has(.st-pipes) .st-v{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:flex-start}
