/* Back to Train — styles de l'application d'origine, repris tels quels. Les adaptations de l'ERP sont dans erp.css. */
/* Base issue de l'enveloppe de l'artefact */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
/* Layout : appli mobile, colonne de 440px max ; barre de vue en haut, navigation en bas ; la « corde » relie les interventions et les étapes de reprise. */
:root{
  --bg:#EEF4FB; --surface:#FFFFFF; --ink:#0F1E33; --muted:#4A5B70; --line:#D3DDEA;
  --accent:#1E63E9; --accent-soft:#E2ECFF; --rope:#FF8A1F;
  --ok:#14A05A; --ok-soft:#DDF6E8; --warn:#D97A00; --warn-soft:#FFF0D9; --stop:#E5383B; --stop-soft:#FFE3E3; --conc:#1C7ED6; --conc-soft:#DCEBFF;
  --font-display:"Big Shoulders Display","Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --font-body:"IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-data:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hero:linear-gradient(135deg,#1E63E9 0%,#16A2C9 100%); --hero-fg:#FFFFFF; --hero-muted:#DCEBFF; --pitch:#2E9B5F; --shadow:0 1px 2px rgba(19,38,43,.05),0 6px 20px rgba(19,38,43,.07);
}
@media (prefers-color-scheme: dark){:root[data-theme="auto-dark"]{
  --bg:#0F1A1D; --surface:#172529; --ink:#E6EEEE; --muted:#9AAEB1; --line:#2A3B40;
  --accent:#6FB0DE; --accent-soft:#1C3443; --rope:#E0A062;
  --ok:#5CC48A; --ok-soft:#173326; --warn:#E5B256; --warn-soft:#3A2F17; --stop:#EE7A6C; --stop-soft:#3D1F1C; --conc:#6AAEF0; --conc-soft:#16283D; --hero:#0B2A33; --hero-fg:#E6EEEE; --hero-muted:#8FB1B5; --pitch:#1E5A3D; --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.3); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F1A1D; --surface:#172529; --ink:#E6EEEE; --muted:#9AAEB1; --line:#2A3B40;
  --accent:#6FB0DE; --accent-soft:#1C3443; --rope:#E0A062;
  --ok:#5CC48A; --ok-soft:#173326; --warn:#E5B256; --warn-soft:#3A2F17; --stop:#EE7A6C; --stop-soft:#3D1F1C; --conc:#6AAEF0; --conc-soft:#16283D; --hero:#0B2A33; --hero-fg:#E6EEEE; --hero-muted:#8FB1B5; --pitch:#1E5A3D; --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.3); color-scheme:dark}

html,body{height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16.5px;line-height:1.5}
.app{max-width:440px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;padding-inline:16px;padding-block:0 104px}
h1,h2,h3{font-family:var(--font-display);text-wrap:balance;margin:0;line-height:1.05;font-weight:800;letter-spacing:.01em}
h2{font-size:34px} h3{font-size:24px}
button,select,textarea,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

.proto{font-size:12px;color:var(--muted);text-align:center;padding-block:8px;border-bottom:1px dashed var(--line)}
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--bg);padding-block:12px 10px}
.brand{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:700;font-size:22px;letter-spacing:-.01em}
.role{display:flex;align-items:center;gap:6px;font-size:14.5px;color:var(--muted)}
.role select{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:6px 8px;max-width:200px}

.eyebrow{font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.view{display:flex;flex-direction:column;gap:16px;padding-block:8px}
.lead{color:var(--muted);margin:0;font-size:15.5px}
.small{font-size:14.5px;color:var(--muted)}
.num{font-family:var(--font-data);font-variant-numeric:tabular-nums}

.list{display:flex;flex-direction:column;gap:10px}
.row{display:grid;grid-template-columns:10px 1fr auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-align:left;width:100%}
button.row:hover{border-color:var(--accent)}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.row-main{min-width:0}
.row-name{font-weight:600;display:block}
.row-sub{font-size:14.5px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-date{font-family:var(--font-data);font-size:13.5px;color:var(--muted);text-align:right}

.pill{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.s-vert{color:var(--ok);background:var(--ok-soft)} .s-orange{color:var(--warn);background:var(--warn-soft)} .s-rouge{color:var(--stop);background:var(--stop-soft)} .s-bleu{color:var(--conc);background:var(--conc-soft)}
.d-vert{background:var(--ok)} .d-orange{background:var(--warn)} .d-rouge{background:var(--stop)} .d-bleu{background:var(--conc)} .d-info{background:var(--accent)}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--stop);color:#fff;font-size:12.5px;font-weight:700}

/* Aujourd'hui */
.alert{display:grid;grid-template-columns:4px 1fr auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px 10px 0;text-align:left;width:100%;overflow:hidden}
.alert .stripe{align-self:stretch;border-radius:0 3px 3px 0}
.alert .t{font-weight:600;font-size:15.5px;display:block}
.alert .d{font-size:14.5px;color:var(--muted);display:block}
.alert .go{color:var(--accent);font-weight:600;font-size:14.5px}
.group{display:flex;flex-direction:column;gap:8px}
.group-h{display:flex;align-items:baseline;justify-content:space-between}
.empty{font-size:14.5px;color:var(--muted);padding:10px 12px;border:1px dashed var(--line);border-radius:12px}

/* Fiche */
.hero{display:flex;flex-direction:column;gap:8px}
.hero h2{font-size:26px}
.meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--muted);font-size:14.5px}
.back{background:none;border:0;color:var(--accent);padding:0;font-weight:600;align-self:flex-start}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px}
.status-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.status-word{font-family:var(--font-display);font-size:20px;font-weight:700}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:15.5px;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0;font-weight:500;min-width:0}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.block{display:flex;flex-direction:column;gap:8px}
.restr{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.restr li{display:flex;gap:10px;align-items:flex-start;font-size:15.5px}
.restr li::before{content:"";flex:none;width:8px;height:8px;margin-top:7px;border-radius:2px;background:var(--stop)}
.restr li.ok::before{background:var(--ok)}

/* Plan de reprise */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;position:relative}
.step{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12.5px;color:var(--muted);font-weight:600;position:relative}
.step i{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;font-style:normal;font-size:12.5px;font-family:var(--font-data);z-index:1}
.step::before{content:"";position:absolute;top:10px;left:-50%;width:100%;height:2px;background:var(--line)}
.step:first-child::before{display:none}
.step.done i{background:var(--ok);border-color:var(--ok);color:#fff}
.step.done::before,.step.cur::before{background:var(--ok)}
.step.cur i{border-color:var(--rope);color:var(--rope)}
.step.cur{color:var(--ink)}
.crit{display:flex;flex-direction:column;gap:6px;padding-block:8px;border-top:1px solid var(--line)}
.crit:first-of-type{border-top:0}
.crit-h{display:flex;justify-content:space-between;gap:10px;font-size:15.5px}
.crit-h span:first-child{min-width:0}
.bar{height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.bar > b{display:block;height:100%;border-radius:999px;background:var(--warn)}
.bar > b.met{background:var(--ok)}
.crit-edit{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted)}
.crit-edit input{width:80px;border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:4px 8px;font-family:var(--font-data)}

/* Fil */
.rope{position:relative;display:flex;flex-direction:column;gap:14px;padding-left:22px}
.rope::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:repeating-linear-gradient(to bottom,var(--rope) 0 6px,transparent 6px 9px)}
.knot{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.knot::before{content:"";position:absolute;left:-21px;top:14px;width:12px;height:12px;border-radius:50%;background:var(--bg);border:2px solid var(--rope)}
.knot-head{display:flex;justify-content:space-between;gap:10px;font-size:14.5px}
.who{font-weight:600} .job{color:var(--muted)}
.knot p{margin:0;font-size:15.5px}
.hidden-note{font-size:14.5px;color:var(--muted);font-style:italic}
.new{font-size:12.5px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.06em}

.docs{display:flex;flex-direction:column;gap:6px}
.doc{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;font-size:15.5px}
.doc svg{width:24px;height:24px;color:var(--accent)}
.doc small{display:block;color:var(--muted);font-size:13.5px}
.file-btn{display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--accent);border-radius:12px;padding:10px;color:var(--accent);font-weight:600;font-size:15.5px;cursor:pointer}
.linkname{text-decoration:underline;text-underline-offset:3px;text-align:left}
.file-btn svg{width:22px;height:22px;flex:none}
.file-btn input{position:absolute;opacity:0;width:1px;height:1px}

details.audit{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
details.audit summary{font-weight:600;font-size:15.5px;cursor:pointer}
.log{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.log li{display:grid;grid-template-columns:auto 1fr;gap:10px}
.log time{font-family:var(--font-data);color:var(--muted);white-space:nowrap}

.chart{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.chart svg{display:block;width:100%;height:auto}

/* Formulaires */
form.card label,.card label{font-size:14.5px;font-weight:600;display:flex;flex-direction:column;gap:6px}
textarea,.f{border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:10px;font-size:15.5px;width:100%;box-sizing:border-box}
textarea{min-height:84px;resize:vertical}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.seg button{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:8px 4px;font-size:14.5px;font-weight:600}
.seg button[aria-pressed="true"].v{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}
.seg button[aria-pressed="true"].o{background:var(--warn-soft);border-color:var(--warn);color:var(--warn)}
.seg button[aria-pressed="true"].r{background:var(--stop-soft);border-color:var(--stop);color:var(--stop)}
.seg button[aria-pressed="true"].b{background:var(--conc-soft);border-color:var(--conc);color:var(--conc)}
.seg.four{grid-template-columns:repeat(2,1fr)}
.concbox{border:1.5px solid var(--conc);background:var(--conc-soft);border-radius:14px;padding:12px 14px;display:grid;gap:4px}
.concbox strong{color:var(--conc);font-size:17px}
.concbox .big{font-size:26px;font-weight:800;color:var(--conc)}
.cstep{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cstep li{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.cstep .cn{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--conc-soft);color:var(--conc);font-weight:800;font-size:14px}
.cstep li.open .cn{background:var(--conc);color:#fff}
.cstep .ct{display:grid;gap:2px}
.cstep .ct small{color:var(--conc);font-weight:700}
.cstep .ct span{color:var(--muted);font-size:14.5px}
.conc-grid{width:100%;border-collapse:collapse;font-size:14px}
.conc-grid th,.conc-grid td{border-bottom:1px solid var(--line);padding:6px 4px;text-align:left}
.conc-grid tr.on td{color:var(--conc);font-weight:700}
.pick[disabled]{opacity:.55}
.btn{background:var(--accent);color:#fff;border:0;border-radius:12px;padding:11px 12px;font-weight:600;font-size:15.5px}
.btn.ghost{background:var(--accent-soft);color:var(--accent)}
.btn.ok{background:var(--ok)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.range{display:flex;align-items:center;gap:10px}
.range input{flex:1}
.range output{font-family:var(--font-data);min-width:3ch;text-align:right;font-weight:500}
.inline{display:flex;gap:8px} .inline .f{flex:1;min-width:0}

/* Avis */
.req{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;font-size:15.5px}
.req-h{display:flex;justify-content:space-between;gap:10px;font-size:14.5px}
.req q{quotes:none;font-style:normal}
.answer{border-left:3px solid var(--ok);padding-left:10px;color:var(--ink)}
.state{font-size:13.5px;font-weight:700}
.state.wait{color:var(--warn)} .state.done{color:var(--ok)}

/* Accès */
.acc{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.acc small{display:block;color:var(--muted);font-size:13.5px}
.switch{appearance:none;width:44px;height:26px;border-radius:999px;background:var(--line);position:relative;border:0;transition:background .15s;cursor:pointer}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);transition:transform .15s}
.switch:checked{background:var(--ok)} .switch:checked::after{transform:translateX(18px)}
.consent{background:var(--accent-soft);border:1px solid var(--accent);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;font-size:15.5px}
.code{font-family:var(--font-data);font-size:24px;letter-spacing:.12em;text-align:center;padding:10px;border:1px dashed var(--accent);border-radius:12px;color:var(--accent);user-select:all}

/* Effectif club */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px}
.tile b{font-family:var(--font-data);font-size:24px;font-weight:500}
.tile span{font-size:13.5px;color:var(--muted)}
.tbl-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:14px}
table{border-collapse:collapse;width:100%;font-size:14.5px}
th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
tr:last-child td{border-bottom:0}

/* Verrou, espaces, VALD */
.hbtns{display:flex;align-items:center;gap:8px}
.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:34px;height:34px;display:grid;place-items:center;color:var(--muted);flex:none}
.icon-btn svg{width:18px;height:18px}
.space-chip{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;font-size:14.5px;width:100%;text-align:left;box-sizing:border-box}
.space-chip span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gate{display:flex;flex-direction:column;align-items:center;gap:16px;padding-block:20px;text-align:center}
.pin-dots{display:flex;gap:14px}
.pin-dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--accent)}
.pin-dots i.on{background:var(--accent)}
.pin-dots.err i{border-color:var(--stop)}
.keypad{display:grid;grid-template-columns:repeat(3,68px);gap:12px}
.keypad button{width:68px;height:68px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-family:var(--font-data);font-size:22px}
.keypad button:active{background:var(--accent-soft)}
.spaces{display:flex;flex-direction:column;gap:10px;width:100%}
.space{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-align:left;width:100%}
.space:hover{border-color:var(--accent)}
.space > span:nth-child(2){min-width:0}
.space .go{color:var(--accent);font-weight:700;font-size:20px}
.crest{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-family:var(--font-display);font-weight:700;color:var(--surface)}
.crest svg{width:22px;height:22px}
.vald-src{font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:2px 6px;white-space:nowrap}
.vtest{display:flex;flex-direction:column;gap:6px;padding-block:10px;border-top:1px solid var(--line)}
.vtest-h{display:flex;justify-content:space-between;gap:10px;font-size:15.5px;align-items:baseline}
.vtest-h > span:first-child{min-width:0}
.fly{display:grid;grid-template-columns:3.6em 1fr 1fr 3.6em;align-items:center;gap:6px;font-family:var(--font-data);font-size:13.5px;font-variant-numeric:tabular-nums}
.fly .l{display:flex;justify-content:flex-end} .fly .r{display:flex}
.fly b{display:block;height:10px;background:var(--muted);opacity:.45;border-radius:3px 0 0 3px}
.fly .r b{border-radius:0 3px 3px 0}
.fly b.weak{background:var(--warn);opacity:1}
.fly .vl{text-align:right}
.vlegend{display:flex;flex-wrap:wrap;gap:6px}
.vlegend .pill{font-size:13.5px}
.vsec{display:flex;flex-direction:column;gap:2px;padding-top:12px;border-top:1px solid var(--line)}
.vsec-h{font-size:16.5px;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;padding-bottom:4px}
.vsec .vtest:first-of-type{border-top:0}
.kv.synth{grid-template-columns:1fr;gap:2px}
.kv.synth dd{margin-bottom:8px;font-weight:400}
.fly.legend{font-family:var(--font-body);color:var(--muted);font-size:12.5px;text-transform:uppercase;letter-spacing:.06em}

/* Couche visuelle : héros, onglets, feuilles, terrain, radar */
.card,.row,.alert,.space,.tile,.req,.acc,.chart,.knot{box-shadow:var(--shadow)}
.btn,.chip,.kpi,.tile,.row,.alert,.space,.keypad button,.seg-tabs button,.mini-seg button{transition:transform .12s ease,background-color .15s ease,box-shadow .15s ease}
.btn:active,.chip:active,.kpi:active,.tile:active,.row:active,.alert:active,.space:active,.keypad button:active{transform:scale(.97)}
.btn{box-shadow:0 1px 0 rgba(255,255,255,.15) inset}
.hero-card{background:var(--hero);color:var(--hero-fg);border-radius:22px;padding:18px;display:grid;grid-template-columns:1fr auto;gap:14px;position:relative;overflow:hidden;box-shadow:var(--shadow)}
.hero-card::after{content:"";position:absolute;right:-60px;top:-60px;width:180px;height:180px;border-radius:50%;border:2px dashed var(--rope);opacity:.35;pointer-events:none}
.hero-card .eyebrow{color:var(--hero-muted)}
.hero-card h2{font-size:28px;color:var(--hero-fg);margin-block:2px 4px}
.hero-main{display:flex;flex-direction:column;gap:6px;min-width:0;position:relative;z-index:1}
.issue{font-size:14.5px;color:var(--hero-muted)}
.hero-stats{grid-column:1/-1;display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:center;position:relative;z-index:1}
.ring{width:96px;height:96px}
.count{font-size:30px;line-height:1;font-weight:500}
.hero-count{display:flex;flex-direction:column;gap:4px;min-width:0}
.hero-next{display:flex;flex-direction:column;gap:2px;margin-top:6px;font-size:15.5px;padding:8px 10px;border-radius:12px;background:color-mix(in srgb,var(--hero-fg) 8%,transparent)}
.bodymap{margin:0;width:72px;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;z-index:1}
.bodymap svg{width:72px;height:auto}
.bodymap .sil{fill:var(--hero-fg);opacity:.2}
.bodymap figcaption{font-size:11.5px;color:var(--hero-muted);letter-spacing:.04em}
.hot-pulse{transform-box:fill-box;transform-origin:center;animation:pulse 1.8s ease-out infinite}
@keyframes pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(3.2);opacity:0}}
.kpis{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:relative;z-index:1}
.kpi{border:0;border-radius:14px;padding:10px;text-align:left;color:var(--hero-fg);display:flex;flex-direction:column;gap:2px;background:color-mix(in srgb,var(--hero-fg) 10%,transparent)}
.kpi b{font-family:var(--font-data);font-size:26px;font-weight:500;line-height:1.1}
.kpi span{font-size:13.5px;color:var(--hero-muted)}
.seg-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-block:2px;margin-inline:-16px;padding-inline:16px}
.seg-tabs::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
.seg-tabs button{flex:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px;font-size:14.5px;font-weight:600;color:var(--muted)}
.seg-tabs button[aria-selected="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.ftab-body{display:flex;flex-direction:column;gap:16px}
.team{display:flex;flex-wrap:wrap;gap:8px}
.mate{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px 12px 4px 4px;font-size:14.5px}
.av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:700;color:var(--surface);background:var(--accent)}
.av-kine{background:var(--rope)} .av-medecin{background:var(--ok)} .av-prepa{background:var(--warn)}
.mini-seg{display:inline-flex;background:var(--line);border-radius:999px;padding:3px;gap:2px;align-self:flex-start}
.mini-seg button{border:0;background:transparent;border-radius:999px;padding:6px 14px;font-size:13.5px;font-weight:600;color:var(--muted)}
.mini-seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;padding-block:2px}
.chip{flex:none;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-size:14.5px;font-weight:600;color:var(--muted)}
.chip .dot{width:8px;height:8px}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
button.tile{text-align:left;cursor:pointer}
.pitch{display:flex;flex-direction:column;gap:10px}
.pitch svg{display:block;width:100%;height:auto;border-radius:16px}
.player{cursor:pointer;transition:opacity .2s}
.player.dim{opacity:.22}
.player.sel circle:first-child{stroke-width:7}
.player:focus,.player:focus-visible,.pt:focus{outline:none}
.role{font-size:0;gap:0}
.role select{font-size:14.5px;max-width:150px}
.brand{min-width:0}
.player:focus-visible circle:first-child{stroke-width:7}
.pitch-tip{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;font-size:15.5px;line-height:1.6;box-shadow:var(--shadow)}
.radar{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.radar svg{width:100%;height:auto}
.lg-row{display:flex;gap:14px;justify-content:center}
.lg{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--muted);font-weight:600}
.lg i{width:14px;height:4px;border-radius:2px;display:inline-block}
.pt{cursor:pointer}
.pdot{fill:var(--surface);stroke:var(--accent);stroke-width:2;transition:r .15s}
.pt.on .pdot{fill:var(--accent)}
.pt:focus-visible{outline:none} .pt:focus-visible .pdot{stroke-width:4}
.sheet-back{position:fixed;inset:0;background:rgba(8,18,22,.5);z-index:20;animation:fade .2s ease}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-height:88vh;overflow:auto;background:var(--bg);border-radius:24px 24px 0 0;padding:10px 16px calc(20px + env(safe-area-inset-bottom,0px));max-width:440px;margin:0 auto;box-sizing:border-box;animation:up .28s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;gap:14px;box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center}
/* Fenêtres ancrées en haut : sur iPhone, la barre de Safari et celle de Claude masquaient le bas de l'écran */
.sheet{top:calc(12px + env(safe-area-inset-top,0px));bottom:auto;left:12px;right:12px;border-radius:22px;max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px);padding-bottom:20px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
@media (min-width:464px){.sheet{left:0;right:0}}
.sheet .grab{display:none}
.sheet{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px)}
.sheet form .btn[type=submit]{position:sticky;bottom:-20px;z-index:2;box-shadow:0 -8px 16px var(--surface)}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
@keyframes up{from{transform:translateY(100%)}}
@keyframes fade{from{opacity:0}}
@keyframes viewIn{from{opacity:0;transform:translateY(10px)}}
@keyframes grow{from{transform:scaleX(0)}}
@keyframes ring{from{stroke-dashoffset:var(--circ)}}
@keyframes draw{from{stroke-dashoffset:1}}
.view.anim > *{animation:viewIn .38s cubic-bezier(.2,.8,.2,1) both}
.view.anim > *:nth-child(2){animation-delay:.04s} .view.anim > *:nth-child(3){animation-delay:.08s} .view.anim > *:nth-child(4){animation-delay:.12s} .view.anim > *:nth-child(5){animation-delay:.16s} .view.anim > *:nth-child(n+6){animation-delay:.2s}
.view.anim .bar>b,.view.anim .fly .r b{transform-origin:left;animation:grow .8s cubic-bezier(.2,.8,.2,1) .15s both}
.view.anim .fly .l b{transform-origin:right;animation:grow .8s cubic-bezier(.2,.8,.2,1) .15s both}
.view.anim .ring-fg{animation:ring 1.1s cubic-bezier(.2,.8,.2,1) .1s both}
.view.anim .chart .line{stroke-dasharray:1;animation:draw 1s ease-out .1s both}
.view.anim .rpoly{transform-box:view-box;transform-origin:170px 148px;animation:radarIn .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes radarIn{from{transform:scale(.3);opacity:0}}
.view.anim .player{animation:viewIn .4s ease both}

/* Accueil façon suivi des joueurs */
.logo span{font-family:var(--font-display);font-weight:800;font-size:28px;text-transform:uppercase;letter-spacing:.02em}
.home{display:flex;flex-direction:column;gap:14px;padding-block:8px 24px}
.home-h{font:800 72px/0.88 var(--font-display);text-transform:uppercase;letter-spacing:.01em;margin-top:18px;background:linear-gradient(transparent 62%,color-mix(in srgb,var(--rope) 45%,transparent) 62% 88%,transparent 88%);align-self:flex-start;padding-inline:2px}
.home-p{color:var(--muted);max-width:36ch;margin:0}
.teams{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:12px}
.spcard{appearance:none;width:100%;text-align:left;display:grid;grid-template-columns:1fr auto;grid-template-areas:"n l" "c l" "b b";column-gap:12px;row-gap:2px;align-items:center;background-color:var(--tc);background-image:repeating-linear-gradient(90deg,transparent 0 30px,rgba(255,255,255,.08) 30px 60px);color:#fff;border:0;border-radius:16px;padding:18px;cursor:pointer;box-shadow:var(--shadow);transition:transform .12s ease}
.spcard:active{transform:scale(.98)}
.spcard .tname{grid-area:n;font:800 38px/1 var(--font-display);text-transform:uppercase;letter-spacing:.01em}
.spcard .tcat{grid-area:c;opacity:.9;font-size:15.5px}
.spcard svg{grid-area:l;opacity:.9}
.tbar{grid-area:b;display:flex;gap:3px;height:7px;margin-top:12px}
.tbar i{border-radius:4px;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.view.anim .spcard{animation:viewIn .4s cubic-bezier(.2,.8,.2,1) both}
.view.anim li:nth-child(2) .spcard{animation-delay:.06s} .view.anim li:nth-child(3) .spcard{animation-delay:.12s}
.sheet.still,.sheet-back.still{animation:none}
.hero-card h2{font-size:40px;text-transform:uppercase}
.status-word{font-size:26px!important;font-weight:800!important;line-height:1.05}
.tile b,.kpi b{font-family:var(--font-display)!important;font-weight:800!important;font-size:34px!important}
#lockBtn[hidden]{display:none}
.brand{gap:6px}
.logo{gap:6px;flex:none}
.logo span{font-size:24px}
.role select{max-width:124px;padding:6px 4px}
.icon-btn{width:32px;height:32px}
.st-bars{display:flex;flex-direction:column;gap:8px}
.st-bar{display:grid;grid-template-columns:minmax(96px,38%) 1fr auto;gap:10px;align-items:center;font-size:14.5px}
.st-bar .lab{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-bar .trk{height:12px;border-radius:999px;background:var(--line);overflow:hidden;display:flex}
.st-bar .trk i{display:block;height:100%}
.st-bar .n{font-family:var(--font-data);font-variant-numeric:tabular-nums;min-width:3ch;text-align:right;font-weight:500}
.st-months{display:grid;grid-template-columns:repeat(11,1fr);gap:4px;align-items:end;height:150px}
.st-months .col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;font-size:11.5px;color:var(--muted)}
.st-months .col b{width:100%;max-width:24px;border-radius:5px 5px 2px 2px;background:var(--accent);min-height:2px}
.st-months .col b.zero{background:var(--line)}
.st-months .col.fut{opacity:.45}
.st-months .col em{font-style:normal;font-family:var(--font-data);color:var(--ink);font-size:12.5px}
.legend-row{display:flex;flex-wrap:wrap;gap:12px;font-size:13.5px;color:var(--muted)}
.legend-row span{display:inline-flex;align-items:center;gap:6px}
.legend-row i{width:10px;height:10px;border-radius:3px;display:inline-block}
@media print{.top,.nav,.proto,#sheet,#toast,[data-print]{display:none!important}.app{max-width:none;padding:0}.card,.tile,.tbl-wrap{break-inside:avoid}}
.stcard .seg button{padding:11px 2px;font-size:14px;white-space:nowrap}
.injfacts{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:15.5px;margin:0}
.injfacts dt{color:var(--muted)} .injfacts dd{margin:0;font-weight:500;min-width:0;overflow-wrap:anywhere}
.recur{background:var(--warn-soft);color:var(--warn);border-radius:10px;padding:8px 12px;font-size:14.5px;font-weight:600}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.two>label{min-width:0}.two input{min-width:0;width:100%;box-sizing:border-box}
.hist-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.hist-list li{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:15.5px;display:flex;justify-content:space-between;gap:10px}
.hist-list small{display:block;color:var(--muted);font-size:13.5px}
.save-state{font-size:13.5px;color:var(--muted)}
.mx-sum{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.mx-sum div{border-radius:10px;padding:8px;text-align:center;font-size:12.5px;font-weight:600}
.mx-sum b{display:block;font-family:var(--font-data);font-size:20px;font-weight:500}
.lv-1{background:var(--ok-soft);color:var(--ok)} .lv-2{background:var(--warn-soft);color:var(--warn)} .lv-3{background:var(--stop-soft);color:var(--stop)} .lv-0{background:var(--bg);color:var(--muted);border:1px solid var(--line)}
.mx-group{display:flex;flex-direction:column;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.mx-group h4{margin:0;padding:10px 14px;font-family:var(--font-display);font-size:18px;font-weight:700;border-bottom:1px solid var(--line)}
.mx-row{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;padding:10px 14px;border-left:5px solid transparent}
.mx-row + .mx-row{border-top:1px solid var(--line)}
.mx-row.v1{border-left-color:var(--ok)} .mx-row.v2{border-left-color:var(--warn)} .mx-row.v3{border-left-color:var(--stop)} .mx-row.v0{border-left-color:var(--line)}
.mx-row .lab{font-size:15.5px;font-weight:600;min-width:0}
.mx-row .lab small{display:block;font-weight:400;color:var(--muted);font-size:13.5px}
.mx-pill{display:inline-flex;align-items:center;justify-content:center;min-width:76px;border-radius:999px;padding:4px 10px;font-size:13.5px;font-weight:700}
.mx-btns{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.mx-btns button{border:1.5px solid var(--line);background:var(--bg);border-radius:9px;padding:7px 4px;font-size:14.5px;font-weight:700;color:var(--muted)}
.mx-btns button[aria-pressed="true"].b1{background:var(--ok);border-color:var(--ok);color:#fff}
.mx-btns button[aria-pressed="true"].b2{background:var(--warn);border-color:var(--warn);color:#fff}
.mx-btns button[aria-pressed="true"].b3{background:var(--stop);border-color:var(--stop);color:#fff}
.mx-row .f{grid-column:1/-1;padding:7px 10px;font-size:14.5px}
.mx-bar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:1fr 2fr;gap:8px;background:var(--bg);padding-block:8px;z-index:3}
.slot{cursor:pointer}
.slot:focus{outline:none}
.slot:focus-visible circle{stroke-width:5}
.bench{display:flex;flex-direction:column;gap:6px}
.bench-row{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px;text-align:left;width:100%}
.bench-row .no{font-family:var(--font-data);font-weight:600;color:var(--muted);text-align:center}
.bench-row .who{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bench-row .who small{display:block;font-weight:400;color:var(--muted);font-size:13.5px}
.pick-h{display:flex;align-items:center;gap:8px;font-size:13.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-top:6px}
.pick{display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;text-align:left;width:100%}
.pick:hover:not(:disabled){border-color:var(--accent)}
.pick:disabled{opacity:.6;cursor:not-allowed}
.pick[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.pick .nm{font-weight:600;min-width:0}
.pick .nm small{display:block;font-weight:400;color:var(--muted);font-size:13.5px}
.pick .tag{font-size:13.5px;color:var(--muted);text-align:right}
.picks{display:flex;flex-direction:column;gap:6px}
details.more summary{cursor:pointer;font-weight:600;font-size:15.5px;color:var(--accent);padding-block:6px}
.notif{display:grid;grid-template-columns:4px 1fr auto;gap:12px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px 10px 0;text-align:left;width:100%;overflow:hidden}
.notif .stripe{align-self:stretch;border-radius:0 3px 3px 0}
.notif .t{font-weight:600;font-size:15.5px;display:block}
.notif .d{font-size:13.5px;color:var(--muted);display:block;margin-top:2px}
.notif .when{font-family:var(--font-data);font-size:12.5px;color:var(--muted);white-space:nowrap}
.notif.old{opacity:.7}
.ntype{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.ph-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.ph{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--accent-soft);padding:0}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.ph .cap{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 4px;font-size:11.5px;font-weight:600;color:#fff;text-align:left;background:linear-gradient(transparent,rgba(0,0,0,.55));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph .star{position:absolute;top:5px;left:5px;background:var(--accent);color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:2px 7px}
.ph-missing{display:grid;place-items:center;height:100%;font-size:12px;color:var(--muted);padding:6px;text-align:center}
.ph-view{position:fixed;inset:0;z-index:30;background:rgba(10,20,35,.92);display:flex;flex-direction:column;gap:10px;padding:16px;padding-top:calc(16px + env(safe-area-inset-top,0px))}
.ph-view img{flex:1;min-height:0;width:100%;object-fit:contain}
.ph-view .bar{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.ph-view .meta{color:#fff;text-align:center;font-size:14px}
.lg-card{width:72px;height:72px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.spcard .tname{display:flex;align-items:center;gap:12px}
.lg-chip{width:30px;height:30px;object-fit:contain;vertical-align:middle;margin-right:6px}
.club-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.club-name{font-family:var(--font-display);font-weight:800;font-size:26px;line-height:1;text-transform:uppercase}
.lg-slot{flex:none;width:96px;height:96px;border-radius:16px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;position:relative;box-shadow:var(--shadow)}
.lg-slot img{width:100%;height:100%;object-fit:contain}
.lg-slot.has{background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
label.lg-slot{cursor:pointer}
.lg-slot.empty{border:2px dashed var(--accent);color:var(--accent);font-size:11.5px;font-weight:700;text-align:center;line-height:1.15;padding:4px}
.lg-slot input{position:absolute;opacity:0;width:1px;height:1px}
.crop{position:fixed;inset:0;z-index:40;background:rgba(8,16,30,.94);display:flex;flex-direction:column;align-items:center;gap:16px;padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + env(safe-area-inset-bottom,0px));color:#fff}
.crop h3{color:#fff;font-size:24px;margin:0}
.crop-box{position:relative;width:min(84vw,340px);aspect-ratio:1;overflow:hidden;touch-action:none;cursor:grab;background:#000;border-radius:14px}
.crop-box.logo{background:repeating-conic-gradient(#3a4659 0 25%,#2a3446 0 50%) 0 0/20px 20px}
.crop-box img{position:absolute;left:0;top:0;transform-origin:0 0;user-select:none;-webkit-user-drag:none;pointer-events:none;max-width:none}
.crop-box .mask{position:absolute;inset:0;pointer-events:none;box-shadow:0 0 0 2px rgba(255,255,255,.9) inset}
.crop-box.round .mask{border-radius:50%;box-shadow:0 0 0 999px rgba(8,16,30,.55),0 0 0 2px rgba(255,255,255,.9) inset}
.crop .zoom{display:flex;align-items:center;gap:10px;width:min(84vw,340px);font-size:14px}
.crop .zoom input{flex:1}
.crop .hint{font-size:14px;color:#C9D6E8;text-align:center}
.crop .acts{display:grid;grid-template-columns:1fr 2fr;gap:10px;width:min(84vw,340px)}
.name-row{display:flex;align-items:center;gap:12px}
.name-row h2{min-width:0}
.av{flex:none;display:inline-grid;place-items:center;border-radius:50%;overflow:hidden;position:relative;font-family:var(--font-display);font-weight:800}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av-big{width:76px;height:76px;border:3px solid #fff;background:rgba(255,255,255,.22);color:#fff;font-size:28px;box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer}
.av-big .cam{position:absolute;right:-1px;bottom:-1px;width:26px;height:26px;border-radius:50%;background:#fff;color:var(--accent);display:grid;place-items:center;box-shadow:var(--shadow)}
.av-big .cam svg{width:15px;height:15px}
.av-big input{position:absolute;opacity:0;width:1px;height:1px}
.av-big.busy{opacity:.6}
.av-sm{width:30px;height:30px;margin-right:8px;vertical-align:middle;background:var(--accent-soft);color:var(--accent);font-size:13px}
.row-name{display:flex;align-items:center}
.mx-next{color:var(--accent)!important;font-weight:600!important}
.mx-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px}
.mx-notes{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.mx-plan{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.mx-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 6px 4px 12px;font-size:13.5px;font-weight:700}
.mx-chip button{border:0;background:rgba(0,0,0,.08);border-radius:50%;width:22px;height:22px;font-size:12px;color:inherit}
.mx-link{grid-column:1/-1;justify-self:start;border:0;background:none;color:var(--accent);font-weight:600;font-size:14px;padding:2px 0}
.mx-sched{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;align-items:center;background:var(--accent-soft);border-radius:10px;padding:8px}
.mx-sched .btn{grid-column:1/-1}
.cal-grid{display:flex;flex-direction:column;gap:3px;overflow:hidden}
.cal-row{display:grid;grid-template-columns:104px repeat(28,1fr);gap:1px;align-items:center}
.cal-row i{display:block;height:14px}
.cal-row i:nth-child(2){border-radius:4px 0 0 4px} .cal-row i:last-child{border-radius:0 4px 4px 0}
.cal-row i.lv-1{background:var(--ok)} .cal-row i.lv-2{background:var(--warn)} .cal-row i.lv-3{background:var(--stop)} .cal-row i.lv-0{background:var(--line);border:0}
.cal-row i.today{box-shadow:-2px 0 0 var(--ink)}
.cal-lab{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:6px}
.cal-head{margin-bottom:2px}
.cal-wk{font-family:var(--font-data);font-size:11.5px;color:var(--muted);border-left:1px solid var(--line);padding-left:3px}
.legend-row i.lv-1{background:var(--ok)} .legend-row i.lv-2{background:var(--warn)} .legend-row i.lv-3{background:var(--stop)} .legend-row i.lv-0{background:var(--line)}
.wk-grid{display:flex;flex-direction:column;gap:4px}
.wk-row{display:grid;gap:2px;align-items:center}
.wk-month{font-size:13px;font-weight:700;text-transform:capitalize;color:var(--ink);border-left:2px solid var(--line);padding-left:4px}
.wk-day{font-family:var(--font-data);font-size:11.5px;color:var(--muted);text-align:center}
.wk-day.cur{color:var(--accent);font-weight:700}
.wk-cell{display:grid;place-items:center;height:24px;border-radius:6px}
.wk-cell.cur{background:var(--accent-soft)}
.wk-dot{width:16px;height:16px;border-radius:50%;display:block}
.wk-dot.lv-1{background:var(--ok)} .wk-dot.lv-2{background:var(--warn)} .wk-dot.lv-3{background:var(--stop)} .wk-dot.lv-0{background:var(--line)}
.wk-dot.chg{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--accent)}
.legend-row i.ring{box-shadow:0 0 0 2px var(--accent);border-radius:50%}
.auth{display:flex;flex-direction:column;gap:14px;align-items:flex-start;padding-top:24px}
.team-row{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.team-row img{width:36px;height:36px;border-radius:50%}
.team-row .nm{font-weight:600}
.team-row .roles{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.team-row .roles button{border:1.5px solid var(--line);background:var(--bg);border-radius:999px;padding:5px 11px;font-size:13.5px;font-weight:600;color:var(--muted)}
.team-row .roles button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.team-row .roles .rm{color:var(--stop);border-color:transparent;background:none}
.pv{background:#fff;color:#13262B;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:13px;box-shadow:var(--shadow)}
.pv-head{display:flex;gap:10px;align-items:center;color:#fff;padding:12px}
.pv-logo{background:#fff;border-radius:8px;padding:3px;display:grid;place-items:center;flex:none}
.pv-logo img{height:52px;width:auto;display:block}
.pv-club{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}
.pv-name{font-family:var(--font-display);font-size:24px;font-weight:800;line-height:1}
.pv-sub{font-size:12px;opacity:.9}
.pv-body{padding:12px;display:flex;flex-direction:column;gap:6px}
.pv-status{display:flex;justify-content:space-between;gap:8px;color:#fff;border-radius:8px;padding:8px 10px;font-size:13px}
.pv-h{font-weight:700;font-size:14px;border-bottom:2px solid;padding-bottom:2px;margin-top:6px}
.pv-kv{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:0}
.pv-kv dt{color:#5B6D71} .pv-kv dd{margin:0;font-weight:700}
.pv-wk{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:3px;align-items:center;font-size:11px}
.pv-wk b{color:#fff;border-radius:5px;padding:3px 2px;text-align:center;font-size:10.5px;line-height:1.15}
.pv-wk small{display:block;font-weight:500;font-size:9px}
.pv-wkh{text-align:center;font-weight:700;color:#5B6D71;font-size:10px}.pv-wkh small{color:#8a989c}
.pv-wkl{font-size:10.5px;line-height:1.15}
.pv-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;text-align:center;font-size:10.5px}
.pv-steps span{background:#ECF0EF;color:#5B6D71;border-radius:6px;padding:4px 2px}
.pv-g{font-size:10.5px;font-weight:700;color:#5B6D71;text-transform:uppercase;margin-top:4px}
.pv-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #E3E9E8;padding:2px 0}
.pv-row small{display:block;color:#5B6D71;font-style:italic}
.pv-row b{color:#fff;border-radius:999px;padding:1px 8px;font-size:11px;flex:none}
.pv-ul{margin:0;padding-left:16px}
.pv-msg p{margin:0;padding:6px 8px;background:#F6F8F7;border-radius:6px;white-space:pre-wrap}
.pv-contact{font-weight:700;margin:6px 0 0}
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px}
.search svg{width:20px;height:20px;color:var(--muted);flex:none}
.search input{flex:1;border:0;background:none;padding:12px 0;font-size:16px;outline:none;min-width:0}
.vfab{position:fixed;right:max(16px,calc(50% - 204px));bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:8;width:58px;height:58px;border-radius:50%;border:0;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 8px 22px rgba(30,99,233,.45)}
.vfab svg{width:26px;height:26px}
.vbox textarea{min-height:96px;font-size:16px}
.vrow{display:flex;gap:8px}
.vmic{flex:none;width:52px;border-radius:12px;border:1.5px solid var(--accent);background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.vmic.on{background:var(--stop);border-color:var(--stop);color:#fff;animation:pulse 1.2s infinite}
@keyframes pulse{50%{opacity:.6}}
.vmic svg{width:24px;height:24px}
.vact{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;text-align:left;width:100%}
.vact .ck{width:22px;height:22px;border-radius:6px;border:2px solid var(--accent);display:grid;place-items:center;color:#fff;font-size:14px;font-weight:800}
.vact.on .ck{background:var(--accent)}
.vact.off{opacity:.5}
.vact small{display:block;color:var(--muted)}
.nav{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);z-index:6}
.nav-in{max-width:440px;margin:0 auto;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.nav button{background:none;border:0;padding:10px 4px 12px;font-size:13.5px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}
.nav button[aria-current="page"]{color:var(--accent)}
.nav svg{width:22px;height:22px}
.nav .badge{position:absolute;top:4px;left:calc(50% + 6px)}
.nav-in.many button{font-size:11.5px;padding-inline:0;letter-spacing:-.1px}
.cal-month{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;gap:8px}
.cal-month h3{margin:0;font-size:18px;text-transform:capitalize}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cal-grid .wd{font-size:11.5px;font-weight:700;color:var(--muted);padding:2px 0}
.cal-grid .d{height:38px;display:grid;place-items:center;font-size:14px;color:var(--ink);position:relative}
.cal-grid .d.out{visibility:hidden}
.cal-grid .d.today{font-weight:800;color:var(--accent)}
.cal-grid button.m{width:34px;height:34px;border-radius:50%;border:2.5px solid var(--accent);background:var(--accent);color:#fff;font-weight:800;font-size:14px;padding:0}
.cal-grid button.m.away{background:var(--surface);color:var(--accent)}
.cal-grid button.m.past{opacity:.45}
.cal-grid .plus{position:absolute;top:-2px;right:1px;background:var(--ok);color:#fff;font-size:10.5px;font-weight:800;border-radius:999px;padding:0 4px;line-height:15px}
.mrow{display:grid;grid-template-columns:62px 1fr auto;gap:10px;align-items:center;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:9px 2px;color:var(--ink)}
.mrow .dd{font-family:var(--font-data);font-size:12.5px;color:var(--muted);line-height:1.25}
.mrow b{display:block;font-size:15.5px}
.mrow small{color:var(--muted)}
.mrow .ret{font-size:12.5px;font-weight:700;color:var(--ok);white-space:nowrap}
.mrow .sc{font-family:var(--font-data);font-weight:700}
.next-match{background:var(--accent);color:#fff;border-radius:18px;padding:16px;display:grid;gap:4px;border:0;text-align:left;width:100%}
.next-match .eyebrow{color:rgba(255,255,255,.8)}
.next-match strong{font-size:22px}
.cal-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);align-items:center}
.cal-legend i{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid var(--accent);vertical-align:-2px;margin-right:5px}
.cal-legend i.h{background:var(--accent)}
.ret-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--ink)}
.ret-row small{display:block;color:var(--muted)}
.ret-row .tag{font-size:12.5px;font-weight:700;white-space:nowrap}
.newb{background:var(--ok-soft);color:var(--ok);border-radius:999px;padding:1px 7px;font-size:11.5px;font-weight:800;margin-left:6px}
.toast{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-size:15px;font-weight:600;z-index:60;max-width:calc(100% - 32px);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.mark{width:36px;height:36px;border-radius:10px;overflow:hidden;background:#0E1A2B;display:grid;place-items:center;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.mark svg{width:100%;height:100%;display:block}
.logo .wm{font-style:italic;letter-spacing:.04em}
.wm b{font-weight:inherit;color:var(--zed)}
:root{--zed:#5E8A00}
:root[data-theme="dark"]{--zed:#C6F432}
@media (prefers-color-scheme: dark){:root[data-theme="auto-dark"]{--zed:#C6F432}}
.home-brand{display:flex;align-items:center;gap:16px;margin-top:18px}
.home-brand .mark{width:76px;height:76px;border-radius:22px}
.home-brand .mark svg{width:100%;height:100%}
.home-brand .home-h{margin-top:0;font-style:italic;letter-spacing:.03em;font-size:46px;line-height:.95;background:none}
/* Assistant IA */
.ai-card{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.ai-title{font-family:var(--font-display);font-size:22px;font-weight:800;line-height:1.1}
.ai-tag{font-size:12.5px;font-weight:700;letter-spacing:.06em;color:#0E1A2B;background:#C6F432;border-radius:6px;padding:3px 7px}
.ai-out{white-space:pre-wrap;font-size:15.5px;line-height:1.55}
.ai-wait{display:flex;align-items:center;gap:10px;font-size:15.5px;color:var(--muted);margin:0}
.ai-err{font-size:14.5px;color:var(--stop);margin:0}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.ai-wrap{display:flex;flex-direction:column;gap:10px}
.pub-row{display:flex;justify-content:flex-end}
.btn.mini{padding:7px 12px;font-size:14.5px}
.pweek{display:flex;flex-direction:column;gap:6px;padding-block:10px;border-top:1px solid var(--line)}
.pweek:first-of-type{border-top:0}
.pweek p{margin:0}
.pweek textarea{min-height:140px;font-size:14.5px;line-height:1.5}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
