/* Illustrations de l'application Nowgua, dessinées en HTML et CSS.
   Chaque cadre (.browser, .phone, .doc) est un conteneur : tout ce qu'il contient est dimensionné
   en em à partir d'une taille de texte proportionnelle à sa largeur (unités cqw).
   Les écrans ont leur propre palette, identique dans les deux thèmes du site. */

:root {
  --ui-bg: #FFFFFF;
  --ui-bg-2: #F2F4F8;
  --ui-bg-3: #E9EDF3;
  --ui-ink: #0F1B2D;
  --ui-ink-2: #5E7290;
  --ui-line: #E4E7EC;
  --ui-navy: #0D1B2E;
  --ui-blue: #1D63D8;
  --ui-sky: #4FB3E3;
  --ui-ok: #14955F;
  --ui-warn: #E8900C;
  --ui-danger: #D64545;
  --ui-violet: #6B4FD8;
  --ui-map: #E8EEF3;
  --ui-map-road: #FFFFFF;
  --ui-map-green: #D6E8DA;
  --ui-map-water: #CFE3F2;
}

.mock, .mock * { box-sizing: border-box; }
.mock { position: relative; font-family: var(--font-body); color: var(--ui-ink); line-height: 1.35; }
.mock svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* scène : plusieurs cadres superposés */
.scene { position: relative; isolation: isolate; }
/* conteneurs : .ph-slot pour un téléphone, .doc-slot pour un document */
.ph-slot, .doc-slot { display: block; }
.scene .browser { width: 100%; }
.scene .ph-slot.over { position: absolute; right: -2%; bottom: -6%; width: 30%; z-index: 2; }
.scene .ph-slot.over-left { position: absolute; left: -4%; bottom: -8%; width: 30%; z-index: 2; }
.scene .doc-slot.over { position: absolute; right: -3%; bottom: -14%; width: 40%; z-index: 2; }
.scene.pad-b { padding-bottom: 12%; }
@media (max-width: 600px) {
  .scene .ph-slot.over, .scene .ph-slot.over-left { width: 38%; right: -1%; left: auto; }
}

/* puces flottantes */
.chip-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .6em;
  background: var(--ui-bg); color: var(--ui-ink);
  border-radius: .9em; padding: .6em .85em .6em .6em;
  box-shadow: 0 2px 4px rgba(13, 27, 46, .12), 0 14px 34px rgba(13, 27, 46, .22);
  font-size: clamp(10px, 1.2vw, 13px); line-height: 1.25; white-space: nowrap;
}
.chip-float b { display: block; font-weight: 600; }
.chip-float small { display: block; color: var(--ui-ink-2); font-size: .85em; }
.chip-float .dot { width: 2.4em; height: 2.4em; border-radius: .7em; display: grid; place-items: center; color: #fff; flex: none; }
.chip-float .dot svg { width: 1.3em; height: 1.3em; }
@media (max-width: 600px) { .chip-float { display: none; } }

/* ---------- cadre navigateur ---------- */
.browser {
  container-type: inline-size;
  background: var(--ui-bg); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(13, 27, 46, .14);
  box-shadow: 0 2px 6px rgba(8, 17, 31, .12), 0 30px 70px rgba(8, 17, 31, .35);
}
.browser .bar { display: flex; align-items: center; gap: 1.2cqw; padding: 1.3cqw 1.8cqw; background: var(--ui-bg-2); border-bottom: 1px solid var(--ui-line); }
.browser .bar i { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: #C9D2DE; flex: none; }
.browser .url { margin-left: 1.5cqw; flex: 1; max-width: 60%; background: var(--ui-bg); border-radius: 99px; padding: .55cqw 1.6cqw; font: 500 1.45cqw/1.2 var(--font-body); color: var(--ui-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .scr { font-size: 1.62cqw; }

/* application web (back-office) */
.app { display: grid; grid-template-columns: 5.2em 1fr; min-height: 32em; }
.app .side { background: var(--ui-navy); display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding: 1.1em 0; }
.app .side .logo { width: 2.6em; height: 2.6em; border-radius: .8em; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.app .side .logo img { width: 1.7em; filter: invert(1); }
.app .side span { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; color: #8FA3C0; }
.app .side span.on { background: var(--ui-blue); color: #fff; }
.app .side svg { width: 1.35em; height: 1.35em; }
.app .main { padding: 1.3em 1.5em; display: flex; flex-direction: column; gap: 1.1em; background: var(--ui-bg-2); min-width: 0; }
.app .top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.app .top h4 { font: 700 1.5em/1 var(--font-title); text-transform: uppercase; letter-spacing: .02em; }
.live { display: inline-flex; align-items: center; gap: .5em; font-size: .85em; color: var(--ui-ink-2); }
.live::before { content: ""; width: .65em; height: .65em; border-radius: 50%; background: var(--ui-ok); box-shadow: 0 0 0 .3em rgba(20, 149, 95, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 .55em rgba(20, 149, 95, 0); } }
.ui-btn { display: inline-flex; align-items: center; gap: .45em; background: var(--ui-blue); color: #fff; border-radius: .6em; padding: .55em .9em; font-weight: 600; font-size: .9em; white-space: nowrap; }
.ui-btn svg { width: 1.1em; height: 1.1em; }
.ui-btn.ghost { background: var(--ui-bg); color: var(--ui-ink); border: 1px solid var(--ui-line); }
.ui-btn.ok { background: var(--ui-ok); }
.ui-btn.danger { background: var(--ui-bg); color: var(--ui-danger); border: 1px solid #F1C9C9; }
.ui-btn.full { width: 100%; justify-content: center; padding: .85em; border-radius: .75em; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.kpi { background: var(--ui-bg); border-radius: .8em; padding: .8em .9em; border: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .3em; }
.kpi b { font: 700 2em/1 var(--font-title); }
.kpi span { font-size: .8em; color: var(--ui-ink-2); display: flex; align-items: center; gap: .45em; }
.kpi span::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--ui-ink-2)); }

.panel { background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: .8em; overflow: hidden; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: .75em .9em; border-bottom: 1px solid var(--ui-line); font-weight: 600; font-size: .95em; }
.panel-h small { font-weight: 500; color: var(--ui-ink-2); }
.dash-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: .9em; flex: 1; }

/* lignes de missions */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr auto; gap: .2em .8em; padding: .7em .9em; border-bottom: 1px solid var(--ui-line); align-items: center; }
.row:last-child { border-bottom: 0; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .s { font-size: .82em; color: var(--ui-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .st { grid-row: span 2; }
.row.hot { background: #FFF8EC; }

/* statuts */
.st { display: inline-flex; align-items: center; gap: .4em; font-size: .78em; font-weight: 600; padding: .38em .65em; border-radius: 99px; white-space: nowrap; background: var(--ui-bg-2); color: var(--ui-ink-2); }
.st::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.st-wait { background: #FDF0DA; color: #A86206; }
.st-assigned { background: #E1F1FA; color: #1F7FAE; }
.st-route { background: #E3ECFB; color: var(--ui-blue); }
.st-site { background: #ECE8FB; color: var(--ui-violet); }
.st-valid { background: var(--ui-bg-3); color: #3E4E66; }
.st-closed { background: #DFF2E9; color: var(--ui-ok); }
.st-cancel { background: #FBE5E5; color: var(--ui-danger); }

/* ---------- carte ---------- */
.map { position: relative; background: var(--ui-map); overflow: hidden; min-height: 12em; height: 100%; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin i { width: 2.1em; height: 2.1em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--ui-blue)); border: .2em solid #fff; box-shadow: 0 .2em .5em rgba(13, 27, 46, .3); display: grid; place-items: center; }
.pin i svg { width: 1em; height: 1em; transform: rotate(45deg); color: #fff; }
.agent { position: absolute; transform: translate(-50%, -50%); width: 2em; height: 2em; border-radius: 50%; background: var(--c, var(--ui-ok)); border: .22em solid #fff; box-shadow: 0 0 0 .45em color-mix(in srgb, var(--c, var(--ui-ok)) 22%, transparent), 0 .2em .4em rgba(13, 27, 46, .3); color: #fff; font: 700 .72em/1.55 var(--font-body); text-align: center; }
.map .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .label { position: absolute; background: var(--ui-bg); border-radius: .5em; padding: .35em .55em; font-size: .78em; font-weight: 600; box-shadow: 0 .15em .5em rgba(13, 27, 46, .18); white-space: nowrap; }

/* ---------- téléphone ---------- */
.phone {
  container-type: inline-size;
  aspect-ratio: 9 / 19; max-width: 100%;
  /* pourcentages et non cqw : le cadre ne peut pas se mesurer lui-même */
  background: #0B1320; border-radius: 13% / 6.2%; padding: 3.2%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 3px 8px rgba(8, 17, 31, .25), 0 30px 70px rgba(8, 17, 31, .45);
}
.phone .scr {
  position: relative; height: 100%; border-radius: 10cqw; overflow: hidden;
  background: var(--ui-bg-2); font-size: 4.4cqw;
  display: flex; flex-direction: column;
}
.phone .notch { position: absolute; top: 1.6em; left: 50%; transform: translateX(-50%); width: 5.2em; height: 1.45em; border-radius: 1em; background: #0B1320; z-index: 5; }
.phone .status { height: 3.6em; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1.6em .5em; font-size: .78em; font-weight: 600; color: #fff; background: var(--ui-navy); }
.ph-head { background: var(--ui-navy); color: #fff; padding: .6em 1.1em 1em; display: flex; align-items: center; gap: .7em; flex: none; }
.ph-head img { width: 1.9em; filter: invert(1); }
.ph-head .ttl { font: 700 1.15em/1.05 var(--font-title); text-transform: uppercase; letter-spacing: .03em; flex: 1; min-width: 0; }
.ph-head .ttl small { display: block; font: 500 .66em/1.3 var(--font-body); color: #9FB2CC; text-transform: none; letter-spacing: 0; }
.ph-head .back { width: 1.9em; height: 1.9em; border-radius: .6em; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.ph-head .back svg { width: 1.1em; height: 1.1em; }
.toggle { display: inline-flex; align-items: center; gap: .4em; font-size: .72em; font-weight: 600; background: rgba(20, 149, 95, .2); color: #6FE0A9; padding: .45em .7em; border-radius: 99px; }
.toggle::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: currentColor; }
.ph-body { flex: 1; padding: 1em; display: flex; flex-direction: column; gap: .8em; overflow: hidden; min-height: 0; }
.ph-tabs { display: flex; background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); flex: none; }
.ph-tabs span { flex: 1; text-align: center; font-size: .78em; font-weight: 600; color: var(--ui-ink-2); padding: .9em 0 .8em; border-bottom: .2em solid transparent; }
.ph-tabs span.on { color: var(--ui-blue); border-color: var(--ui-blue); }
.card-ui { background: var(--ui-bg); border-radius: 1em; padding: .9em; border: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .55em; }
.card-ui .k { font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-2); }
.card-ui .v { font-weight: 600; }
.card-ui .meta { display: flex; flex-wrap: wrap; gap: .4em .9em; font-size: .8em; color: var(--ui-ink-2); }
.card-ui .meta span { display: inline-flex; align-items: center; gap: .35em; }
.card-ui .meta svg { width: 1.1em; height: 1.1em; }
.alert-card { border: 0; background: var(--ui-navy); color: #fff; }
.alert-card .k { color: #FFC56B; }
.alert-card .big { font: 700 1.5em/1.05 var(--font-title); text-transform: uppercase; }
.alert-card .meta { color: #B9C8DE; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45em .8em; font-size: .85em; }
.kv dt { color: var(--ui-ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.mono-ui { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* progression d'une intervention */
.track { display: flex; flex-direction: column; gap: 0; }
.track li { list-style: none; display: grid; grid-template-columns: 1.6em 1fr auto; gap: .6em; align-items: start; position: relative; padding-bottom: .8em; font-size: .85em; }
.track li::before { content: ""; width: 1.1em; height: 1.1em; border-radius: 50%; margin: .15em 0 0 .25em; background: var(--ui-bg); border: .22em solid var(--ui-line); position: relative; z-index: 1; }
.track li::after { content: ""; position: absolute; left: .78em; top: 1.2em; bottom: 0; width: .16em; background: var(--ui-line); }
.track li:last-child::after { display: none; }
.track li.done::before { background: var(--ui-ok); border-color: var(--ui-ok); }
.track li.done::after { background: var(--ui-ok); }
.track li.now::before { border-color: var(--ui-blue); box-shadow: 0 0 0 .3em rgba(29, 99, 216, .18); }
.track li b { font-weight: 600; }
.track li time { font-family: var(--font-mono); color: var(--ui-ink-2); font-size: .92em; }

/* liste de pointage de ronde */
.checkpoints { list-style: none; display: flex; flex-direction: column; gap: .45em; padding: 0; margin: 0; }
.checkpoints li { display: grid; grid-template-columns: 2.1em 1fr auto; gap: .65em; align-items: center; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: .8em; padding: .55em .7em; font-size: .86em; }
.checkpoints .n { width: 2.1em; height: 2.1em; border-radius: .6em; display: grid; place-items: center; font-weight: 700; background: var(--ui-bg-2); color: var(--ui-ink-2); }
.checkpoints li.ok .n { background: #DFF2E9; color: var(--ui-ok); }
.checkpoints li.warn { border-color: #F4D49A; background: #FFF8EC; }
.checkpoints li.warn .n { background: #FDF0DA; color: #A86206; }
.checkpoints li.next { border-color: var(--ui-blue); box-shadow: 0 0 0 .2em rgba(29, 99, 216, .12); }
.checkpoints li.next .n { background: var(--ui-blue); color: #fff; }
.checkpoints b { display: block; font-weight: 600; }
.checkpoints small { display: block; color: var(--ui-ink-2); font-size: .88em; }
.checkpoints time { font-family: var(--font-mono); font-size: .9em; color: var(--ui-ink-2); }
.progress { height: .55em; border-radius: 99px; background: var(--ui-bg-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p, 50%); background: var(--ui-ok); border-radius: inherit; }
.nfc-ring { position: relative; width: 6em; height: 6em; margin: .2em auto; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 99, 216, .1); color: var(--ui-blue); }
.nfc-ring::before, .nfc-ring::after { content: ""; position: absolute; inset: -0.8em; border-radius: 50%; border: .15em solid rgba(29, 99, 216, .25); }
.nfc-ring::after { inset: -1.7em; border-color: rgba(29, 99, 216, .12); }
.nfc-ring svg { width: 2.6em; height: 2.6em; }

/* photos (vignettes dessinées) */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: .55em; overflow: hidden; background: #5B6B7F; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb time { position: absolute; left: .35em; bottom: .3em; font: 600 .62em/1 var(--font-mono); color: #fff; background: rgba(8, 17, 31, .55); padding: .25em .35em; border-radius: .3em; }

/* questions de rapport */
.q { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .7em 0; border-bottom: 1px solid var(--ui-line); font-size: .86em; }
.q:last-child { border-bottom: 0; }
.sw { width: 2.6em; height: 1.5em; border-radius: 99px; background: var(--ui-bg-3); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .2em rgba(0, 0, 0, .2); }
.sw.on { background: var(--ui-ok); }
.sw.on::after { left: auto; right: .2em; }
.sel { font-weight: 600; color: var(--ui-blue); white-space: nowrap; }

/* signature */
.sign { background: var(--ui-bg); border: 1.5px dashed #C9D2DE; border-radius: .8em; height: 6.5em; position: relative; }
.sign svg { position: absolute; inset: .6em 1em; width: calc(100% - 2em); height: calc(100% - 1.8em); }
.sign small { position: absolute; left: 1em; bottom: .5em; font-size: .72em; color: var(--ui-ink-2); }

/* ---------- document A4 (rapport) ---------- */
.doc {
  container-type: inline-size;
  aspect-ratio: 210 / 297; background: #fff; color: var(--ui-ink);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(8, 17, 31, .15), 0 26px 60px rgba(8, 17, 31, .32);
}
.doc .pg { font-size: 3.15cqw; padding: 2.4em 2.2em; display: flex; flex-direction: column; gap: 1.1em; height: 100%; }
.doc .dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; padding-bottom: 1em; border-bottom: .2em solid var(--ui-navy); }
.doc .yourlogo { width: 6.5em; height: 2.6em; border: .12em dashed #9FB0C6; border-radius: .4em; display: grid; place-items: center; font: 700 .72em/1 var(--font-body); letter-spacing: .1em; color: #7A8BA3; }
.doc .dh h5 { margin: 0; font: 700 1.3em/1.05 var(--font-title); text-transform: uppercase; text-align: right; }
.doc .dh small { display: block; text-align: right; color: var(--ui-ink-2); font-size: .8em; margin-top: .3em; }
.doc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4em 1.4em; font-size: .82em; }
.doc .grid2 div { display: flex; flex-direction: column; gap: .1em; }
.doc .grid2 span { color: var(--ui-ink-2); font-size: .85em; }
.doc .grid2 b { font-weight: 600; }
.doc h6 { margin: 0; font: 700 .78em/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--ui-ink-2); }
.doc .tl { display: flex; flex-direction: column; gap: .35em; font-size: .8em; }
.doc .tl div { display: grid; grid-template-columns: 4.6em 1fr; gap: .6em; }
.doc .tl time { font-family: var(--font-mono); color: var(--ui-blue); font-weight: 600; }
.doc .obs { font-size: .8em; line-height: 1.45; color: #34445C; background: var(--ui-bg-2); padding: .7em .8em; border-radius: .4em; }
.doc .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; font-size: .7em; color: var(--ui-ink-2); }
.doc .foot .sig { width: 9em; border-bottom: .1em solid #9FB0C6; height: 2.6em; position: relative; }
.doc .foot .sig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc .seal { display: inline-flex; align-items: center; gap: .4em; color: var(--ui-ok); font-weight: 600; }
.doc .seal svg { width: 1.2em; height: 1.2em; }

/* ---------- console de télésurveillance (générique) ---------- */
.console .scr { background: #EEF1F5; font-size: 2.05cqw; }
.console .ctop { display: flex; align-items: center; gap: 1em; background: #2B3645; color: #DDE4EE; padding: .55em 1em; font-size: .9em; }
.console .ctop b { font-weight: 700; letter-spacing: .04em; }
.console .ctop span { color: #9FB0C6; }
.console table { width: 100%; border-collapse: collapse; font-size: .86em; background: #fff; }
.console th { text-align: left; font-weight: 600; color: #5E6B7D; background: #F5F7FA; padding: .55em .8em; border-bottom: 1px solid #DDE3EA; font-size: .9em; }
.console td { padding: .6em .8em; border-bottom: 1px solid #EDF0F4; white-space: nowrap; }
.console tr.alarm td { background: #FDECEC; }
.console tr.alarm td:first-child { box-shadow: inset .3em 0 0 var(--ui-danger); }
.console .sev { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--ui-danger); }
.console .sev.mid { background: var(--ui-warn); }
.console .sev.low { background: #9FB0C6; }
.console .cbody { display: grid; grid-template-columns: 1.5fr 1fr; gap: .8em; padding: .8em; }
.console .box { background: #fff; border: 1px solid #DDE3EA; border-radius: .4em; overflow: hidden; }
.console .box-h { font-weight: 600; font-size: .86em; padding: .55em .8em; background: #F5F7FA; border-bottom: 1px solid #DDE3EA; display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.console .mc { display: flex; flex-direction: column; font-size: .8em; }
.console .mc div { display: grid; grid-template-columns: 5.8em 1fr; gap: .5em; padding: .45em .8em; border-bottom: 1px solid #EDF0F4; }
.console .mc time { font-family: var(--font-mono); color: #5E6B7D; }
.console .mc .ng { background: #EEF3FD; }
.console .mc .ng b { color: var(--ui-blue); }
.ng-badge { display: inline-flex; align-items: center; gap: .35em; background: var(--ui-navy); color: #fff; font-size: .78em; font-weight: 600; padding: .3em .55em; border-radius: .35em; }
.ng-badge img { width: 1.1em; filter: invert(1); }

/* ---------- planning ---------- */
.cal { display: grid; grid-template-columns: 3.6em repeat(5, 1fr); background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: .8em; overflow: hidden; font-size: .82em; }
.cal .hd { padding: .6em .4em; text-align: center; font-weight: 600; border-bottom: 1px solid var(--ui-line); background: var(--ui-bg-2); }
.cal .hd small { display: block; font-weight: 500; color: var(--ui-ink-2); }
.cal .hr { font-family: var(--font-mono); color: var(--ui-ink-2); font-size: .85em; padding: .3em .4em; text-align: right; border-right: 1px solid var(--ui-line); }
.cal .cell { border-left: 1px solid var(--ui-line); border-bottom: 1px dashed var(--ui-line); min-height: 2.6em; position: relative; padding: .2em; }
.ev { border-radius: .45em; padding: .35em .45em; font-size: .86em; line-height: 1.2; font-weight: 600; background: #DDF1EE; color: #0B6E64; border-left: .25em solid #0E8A7E; }
.ev small { display: block; font-weight: 500; opacity: .8; }
.ev.b { background: #E3ECFB; color: #1753B8; border-color: var(--ui-blue); }
.ev.o { background: #FBEBD9; color: #9A5310; border-color: #C26A12; }
.ev.v { background: #ECE8FB; color: #5038B8; border-color: var(--ui-violet); }

/* ---------- schéma de flux ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.flow .node { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 14px; text-align: center; align-items: center; }
.flow .node .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--band-2); border: 1px solid var(--band-line); color: var(--seg-on-dark, var(--sky)); position: relative; z-index: 1; }
.flow .node .ic svg { width: 30px; height: 30px; }
.flow .node::after { content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 12px); opacity: .6; }
.flow .node:last-child::after { display: none; }
.flow .node b { font: 700 1.05rem/1.15 var(--font-title); text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.flow .node span { font-size: .88rem; color: var(--band-ink-2); }
.flow .node time { font: 500 .8rem/1 var(--font-mono); color: var(--sky); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow .node { display: grid; grid-template-columns: 64px 1fr; text-align: left; align-items: start; gap: 4px 16px; padding: 0; }
  .flow .node .ic { grid-row: span 3; }
  .flow .node::after { top: 70px; bottom: -18px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky) 0 6px, transparent 6px 12px); }
}
