/* Carnet d'arbitre : styles. Mobile d'abord, clair et sombre automatiques. */
:root {
  --bg: #F5F3EE; --surface: #FFFFFF; --ink: #10151B; --muted: #55606C; --line: #DAD6CC;
  --accent: #F4601A; --accent-ink: #FFFFFF; --accent-soft: #FDEBDF; --accent-text: #B83F05;
  --ok: #1E7A4C; --warn-bg: #FFF4D6; --warn-line: #E2B93B;
  --l1: #3F6FA8; --l2: #C8780A; --l3: #B3261E;
  --danger: #B3261E;
  --radius: 12px; --shadow: 0 1px 0 rgba(16,21,27,.04), 0 6px 18px -10px rgba(16,21,27,.18);
  --f-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1419; --surface: #19202A; --ink: #EEF1F4; --muted: #A2ADB9; --line: #2B3540;
    --accent: #FF7A3D; --accent-ink: #10151B; --accent-soft: #3A2417; --accent-text: #FF9A6B;
    --ok: #55C48C; --warn-bg: #3A3014; --warn-line: #8C7220;
    --l1: #7FA8DC; --l2: #EBA347; --l3: #FF8A80; --danger: #FF8A80;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1419; --surface: #19202A; --ink: #EEF1F4; --muted: #A2ADB9; --line: #2B3540;
  --accent: #FF7A3D; --accent-ink: #10151B; --accent-soft: #3A2417; --accent-text: #FF9A6B;
  --ok: #55C48C; --warn-bg: #3A3014; --warn-line: #8C7220;
  --l1: #7FA8DC; --l2: #EBA347; --l3: #FF8A80; --danger: #FF8A80;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.big { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.1; }

/* ---------- Structure ---------- */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px 96px; min-height: 100vh; }
.app.wide { max-width: 1040px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.brand { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.brand::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.top-r { display: flex; align-items: center; gap: 12px; }
.pill { font: 500 12px var(--f-mono); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
main { padding-top: 8px; outline: none; }
.foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Typographie ---------- */
.kicker { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1.q { font-family: var(--f-head); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 6px 0 14px; letter-spacing: .005em; }
.sub { color: var(--muted); margin: -4px 0 16px; }
.sub2 { color: var(--muted); font-size: 14px; margin-top: -2px; }
h2.sec { font-family: var(--f-head); font-weight: 700; font-size: 22px; margin: 28px 0 10px; }
.cap { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.lead { font-weight: 600; margin-bottom: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
a { color: var(--accent-text); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(.95); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn.danger-btn { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-ghost { color: var(--danger); border-color: var(--danger); }
.link { background: none; border: 0; padding: 4px 2px; color: var(--accent-text); text-decoration: underline; cursor: pointer; font-size: 14px; }
.nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nav .btn { flex: 1 1 160px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.actions .btn { flex: 1 1 200px; }

/* ---------- Cartes et formulaires ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 12px; }
.card.danger { border-color: var(--danger); }
.field { margin-top: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 9px 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 10px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.plain { margin-top: 8px; }
.plain li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plain li:first-child { border-top: 0; }
details.more { margin-top: 16px; }
details.more > summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--accent-text); }
details.more[open] > summary { margin-bottom: 4px; }

/* ---------- Bandeaux ---------- */
.demo-bar { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.demo-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.demo-ctrl label { font-weight: 600; }
.demo-ctrl select { width: auto; min-height: 36px; padding: 4px 10px; }
.banner { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.alert { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--danger); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.notice { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 30; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: fade 4s forwards; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.flag { border-left: 5px solid var(--l1); background: var(--surface); border-radius: 8px; padding: 12px 14px; margin-top: 14px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flag b { display: block; font-family: var(--f-head); font-size: 18px; margin-bottom: 2px; }
.flag.soft { border-left-color: var(--ok); }
.flag.lvl1 { border-left-color: var(--l1); } .flag.lvl2 { border-left-color: var(--l2); } .flag.lvl3 { border-left-color: var(--l3); }
.levelline { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Objectif ---------- */
.goal { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 22px 20px; margin-top: 10px; }
.goal .kicker { color: var(--accent); }
.goal h2 { font-family: var(--f-head); font-weight: 700; font-size: 38px; line-height: 1.02; margin: 6px 0 6px; }
.goal .sub2 { color: inherit; opacity: .75; }
.goal .why { font-size: 15px; opacity: .9; margin: 6px 0 14px; }
.goal .cue { border-top: 1px solid rgba(255,255,255,.22); padding-top: 12px; font-size: 15px; }
:root[data-theme="dark"] .goal .cue { border-top-color: rgba(0,0,0,.2); }
.goal .cue .kicker { display: block; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .goal { background: #F5F3EE; color: #10151B; } :root:not([data-theme="light"]) .goal .kicker { color: #B83F05; } :root:not([data-theme="light"]) .goal .cue { border-top-color: rgba(0,0,0,.2); } }

.tile { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.play svg { width: 18px; height: 18px; fill: var(--accent-text); }
.cliplist { margin-top: 6px; }
.cliplist li { padding: 4px 0; }
.cliplist.admin { margin-top: 14px; }
.cliplist.admin li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ex { font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 1px 5px; }

/* ---------- Choix (débrief) ---------- */
.progress { display: flex; gap: 6px; margin: 4px 0 8px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.progress i.done { background: var(--ink); } .progress i.now { background: var(--accent); }
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%;
  min-height: 56px; padding: 12px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600;
}
.opt small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.tick { font: 500 12px var(--f-mono); color: var(--accent-text); text-transform: uppercase; flex: none; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.sc .num { font-size: 26px; font-weight: 500; }
.sc span { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; }
.sc:hover { border-color: var(--ink); }
.sc[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip { min-height: 48px; padding: 8px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; text-align: left; }
.chip small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Carnet ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats b { display: block; font-size: 26px; font-weight: 500; }
.stats span { font-size: 12px; color: var(--muted); line-height: 1.2; display: block; }
.svgwrap svg { width: 100%; height: auto; display: block; }
.svgt { font: 500 9px var(--f-mono); fill: var(--muted); }
.bars li { margin-bottom: 12px; }
.bars .l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.bars .v { font-size: 13px; color: var(--muted); flex: none; }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--muted); border-radius: 5px; }
.bar i.hot { background: var(--accent); }
.tag { font: 500 11px var(--f-mono); text-transform: uppercase; background: var(--accent-soft); color: var(--accent-text); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.hist li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist .d { font-size: 13px; color: var(--muted); }
.hist .t { display: flex; gap: 10px; align-items: center; }
.hist .s { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 14px; }
.hist .m { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- CD93 / admin ---------- */
.grid-2 { display: block; }
.inc { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--l2); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.inc.lvl3 { border-left-color: var(--l3); } .inc.lvl2 { border-left-color: var(--l2); }
.inc.closed { opacity: .65; }
.inc header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.badge { font: 500 12px var(--f-mono); color: #fff; background: var(--l2); border-radius: 4px; padding: 2px 8px; }
.badge.lvl3 { background: var(--l3); }
:root[data-theme="dark"] .badge { color: #10151B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #10151B; } }
.when { font-size: 13px; color: var(--muted); }
.inc .who { margin-top: 8px; } .inc .kind { color: var(--muted); font-size: 14px; }
.inc .note { margin-top: 6px; font-style: italic; }
.statusrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.statusrow label { font-weight: 600; font-size: 14px; }
.statusrow select { width: auto; min-height: 40px; }
.users li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.users select { width: auto; min-width: 130px; }
.u-id { display: flex; flex-direction: column; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Texte long ---------- */
.prose h2 { font-family: var(--f-head); font-size: 22px; margin: 24px 0 6px; }
.prose p, .prose li { font-size: 15px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin: 4px 0; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-top: 1px solid var(--line); }
th { font: 500 12px var(--f-mono); text-transform: uppercase; color: var(--muted); }

/* ---------- Navigation ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabs-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); }
.tab { min-height: 56px; background: none; border: 0; border-top: 3px solid transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
.tab[aria-current="page"] { color: var(--ink); border-top-color: var(--accent); }

@media (min-width: 720px) {
  .tabs { position: static; border: 0; background: none; padding: 0; margin-bottom: 8px; }
  .tabs-in { display: flex; gap: 6px; max-width: none; border-bottom: 1px solid var(--line); }
  .tab { min-height: 44px; padding: 0 18px; border-top: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .tab[aria-current="page"] { border-bottom-color: var(--accent); }
  .app { padding-bottom: 40px; }
  .notice { bottom: 24px; }
  .grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
  h1.q { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .notice { animation: none; } * { scroll-behavior: auto !important; } }
.u-id .tag { align-self: flex-start; margin: 2px 0; }

/* ---------- Version 2 : suivi des arbitres, comptes ---------- */
.search { margin-top: 4px; margin-bottom: 18px; }
input[type=search] { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; }
input[type=search]:focus { border-color: var(--accent); }
.plist { border-top: 1px solid var(--line); }
.prow {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.prow small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.prow:hover b { color: var(--accent-text); text-decoration: underline; }
.prow .go { font: 700 24px/1 var(--f-head); color: var(--muted); }
.card.created { border: 2px solid var(--accent); background: var(--accent-soft); margin-top: 0; margin-bottom: 12px; }
.pwbox { font-size: 24px; font-weight: 500; letter-spacing: .06em; background: var(--surface); border: 1px dashed var(--ink); border-radius: 8px; padding: 10px 12px; user-select: all; overflow-wrap: anywhere; }
.small-link { font-size: 13px; align-self: flex-start; margin-top: 4px; }

.brand { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 19px; } .top-r { gap: 8px; } .top-r .link { font-size: 13px; } }

/* ---------- Version 3 : questions, précisions, incidents de niveau 1 ---------- */
.inc.lvl1 { border-left-color: var(--l1); }
.badge.lvl1 { background: var(--l1); }
.hist .quote { font-style: italic; color: var(--ink); }
.qcard .qbody { font-weight: 600; margin-top: 6px; white-space: pre-line; }
.qcard.waiting { border-left: 4px solid var(--accent); }
.answer { margin-top: 12px; padding: 10px 12px; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--ok); }
.answer p:last-child { margin-top: 4px; white-space: pre-line; }
.pending { margin-top: 10px; font-size: 14px; color: var(--muted); }
.qactions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 4px; }
.qactions .check { margin-top: 8px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 4px 0 6px; background: var(--surface); }
.segb { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.segb[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tabs-in[style*="--n:5"] .tab, .tabs-in[style*="--n:4"] .tab { font-size: 14px; }
@media (max-width: 400px) { .tabs-in[style*="--n:5"] .tab { font-size: 12.5px; letter-spacing: -.01em; } }

/* ---------- Version 4 : tableau de bord, champ libre du débrief ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-head h1.q { margin-bottom: 10px; }
.debrief-btn { flex: none; margin-top: 2px; white-space: nowrap; gap: 6px; }
.debrief-btn span { font: 700 20px/1 var(--f-head); }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.dt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.dt.wide { grid-column: 1 / -1; }
.dt > b { display: block; font: 700 34px/1.05 var(--f-head); margin-top: 4px; }
.dt > b small { font-size: 18px; color: var(--muted); font-weight: 600; }
.dt > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.goal-tile { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.goal-tile .kicker { color: var(--accent); }
.goal-tile > b { font-size: 34px; line-height: 1; margin-top: 6px; }
.goal-tile .cue-s { color: inherit; opacity: .85; font-size: 15px; margin-top: 8px; }
.why-d { margin-top: 10px; font-size: 14px; }
.why-d summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.why-d p { margin-top: 6px; opacity: .85; }
.dt .bars { margin-top: 10px; }
.link-tile { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; column-gap: 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.link-tile .kicker { grid-column: 1; }
.link-tile .lt { grid-column: 1; font-weight: 600; margin-top: 4px; font-size: 15px; color: var(--ink); }
.link-tile .go { grid-column: 2; grid-row: 1 / span 2; font: 700 26px/1 var(--f-head); color: var(--muted); }
.link-tile:hover { border-color: var(--ink); }
.freebox { margin-top: 18px; padding: 14px; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.freebox label { display: block; margin-bottom: 8px; }
.freebox label b { display: block; font: 700 20px/1.15 var(--f-head); }
.freebox label span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.freebox textarea { background: var(--surface); }
@media (min-width: 720px) {
  .dash { grid-template-columns: repeat(4, 1fr); }
  .dash .dt.wide { grid-column: span 2; }
}

/* ---------- Version 5 : familles de situations, observations, dernier match, historique ---------- */
.chip-group { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 -2px; }
.obs-tile { background: var(--accent-soft); border-color: var(--accent); }
.obs-tile.empty { background: var(--surface); border-style: dashed; border-color: var(--line); }
.obs-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pistes { margin: 10px 0 0; padding-left: 0; list-style: none; counter-reset: p; }
.pistes li { counter-increment: p; position: relative; padding: 8px 0 8px 38px; border-top: 1px solid var(--line); font-weight: 600; }
.pistes li:first-child { border-top: 0; }
.pistes li::before { content: counter(p); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--f-head); }
.obs-comment { margin-top: 8px; font-style: italic; color: var(--muted); font-size: 14px; }
.lm-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.lm-row b { font: 700 40px/1 var(--f-head); }
.lm-row b small { font-size: 18px; color: var(--muted); }
.lm-row span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.lm-label { font-size: 13px; font-weight: 600; margin-top: 12px; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.taglist li { font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.lm-note { margin-top: 8px; font-style: italic; font-size: 14px; }
.rb { display: inline-block; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 6px; vertical-align: 1px; }
.rb.ok { background: #DDF0E4; color: #1E6B43; } .rb.mid { background: #FFF1D6; color: #8A5A00; } .rb.no { background: #F9E1DF; color: #9B2C22; }
.dt.full { grid-column: 1 / -1; overflow-x: auto; }
.mh { margin-top: 8px; font-size: 14px; }
.mh th { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-top: 0; }
.mh td { padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.mh .s { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; }
.dt.full .link { margin-top: 8px; }
.obs-card .pistes { margin-top: 6px; }
@media (max-width: 560px) { .mh th:nth-child(4), .mh td:nth-child(4) { display: none; } }
@media (min-width: 720px) { .dash { align-items: start; } }
.who-status { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Version 7 : tableau de bord sans trous, pied de page discret ---------- */
.dash2 { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
.dash2 .dcol { display: contents; }
.dash2 .o1 { order: 1; } .dash2 .o2 { order: 2; } .dash2 .o3 { order: 3; } .dash2 .o4 { order: 4; }
.dash-hist { margin-top: 10px; }
@media (min-width: 720px) {
  .dash2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .dash2 .dcol { display: flex; flex-direction: column; gap: 10px; }
}
.foot { margin-top: 56px; padding-top: 10px; border-top: 0; text-align: right; }
.foot .link { font-size: 11px; font-weight: 400; color: var(--muted); text-decoration: none; opacity: .8; }
.foot .link:hover, .foot .link:focus-visible { text-decoration: underline; opacity: 1; }
.top-r .link { white-space: nowrap; }

/* v8 : option « espace arbitre » pour référents et admins */
.arb-opt { margin-top: 18px; }
.arb-opt .check { margin-top: 6px; }
.nav .link { align-self: center; padding: 8px 4px; }
/* En-tête sur téléphone : le badge de rôle prend trop de place à côté de « Mon compte » et « Déconnexion ». */
@media (max-width: 440px) { .top-r .pill { display: none; } }
