/* JBL Authentics Planner : mise en page du Flip 8 Planner (en-tête collant, étapes, colonne de travail et panneau funnel), palette du cours Pilotage : ardoise, orange, vert. */
:root {
  --bg: #F2F3F5; --surface: #FFFFFF; --sunk: #E7EAEE; --ink: #1E2229; --muted: #5B6170; --line: #1E2229; --soft-line: #D5D9E0;
  --accent: #E4572E; --accent-ink: #FFFFFF; --accent-soft: #FBE3DA;
  --aw: #F6CB8C; --aw-ink: #1E2229; --co: #A8D5CC; --co-ink: #1E2229; --cv: #3A4150; --cv-ink: #FFFFFF;
  --good: #1F7A4D; --good-bg: #DDF0E5; --warn: #A35A00; --warn-bg: #FBEBD2; --bad: #B4232A; --bad-bg: #F8DADB;
  --font: 'Sora', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14171C; --surface: #1E2229; --sunk: #272C35; --ink: #F2F3F5; --muted: #AEB4BF; --line: #E3E6EA; --soft-line: #3A4150;
  --accent: #F0704A; --accent-ink: #14171C; --accent-soft: #3B2620;
  --aw: #F6CB8C; --aw-ink: #1E2229; --co: #A8D5CC; --co-ink: #1E2229; --cv: #8A93A3; --cv-ink: #14171C;
  --good: #5CC98E; --good-bg: #17322A; --warn: #F2A93B; --warn-bg: #3A2C16; --bad: #FF6B6B; --bad-bg: #3A1D1F; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #14171C; --surface: #1E2229; --sunk: #272C35; --ink: #F2F3F5; --muted: #AEB4BF; --line: #E3E6EA; --soft-line: #3A4150;
  --accent: #F0704A; --accent-ink: #14171C; --accent-soft: #3B2620;
  --aw: #F6CB8C; --aw-ink: #1E2229; --co: #A8D5CC; --co-ink: #1E2229; --cv: #8A93A3; --cv-ink: #14171C;
  --good: #5CC98E; --good-bg: #17322A; --warn: #F2A93B; --warn-bg: #3A2C16; --bad: #FF6B6B; --bad-bg: #3A1D1F; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; padding-bottom: env(safe-area-inset-bottom, 0px); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1260px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; background: repeating-linear-gradient(45deg, var(--ink) 0 4px, transparent 4px 9px); border: 2px solid var(--ink); flex: none; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; background: var(--accent); }
.brand h1 { font-size: 18px; font-weight: 800; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sync-chip { font-size: 12px; font-weight: 700; color: var(--warn); }
.group-chip { margin-left: auto; font-size: 13px; font-weight: 700; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav.steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
nav.steps::-webkit-scrollbar { display: none; }
.step-btn { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; }
.step-btn .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--sunk); }
.step-btn[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step-btn[aria-current="page"] .n { background: var(--accent-ink); color: var(--accent); }
.step-btn .done { color: var(--good); font-size: 12px; }
.lock-banner { margin-top: 12px; background: var(--warn-bg); color: var(--ink); border: 2px solid var(--warn); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.team-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 10px; font-size: 13px; }
.team-wrap .tw-note { color: var(--muted); font-size: 12px; }
.mates { display: flex; flex-wrap: wrap; gap: 5px; }
.mate { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.3; padding: 2px 8px; border: 1.5px solid var(--soft-line); border-radius: 999px; font-weight: 600; }
.mate i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.mate.on i { background: var(--good); border-color: var(--good); }
.mate.away { opacity: .55; font-weight: 400; }

/* Rejoindre */
.join-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.join-ag { text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.join-ag[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.join-ag .who { font-size: 12px; color: var(--muted); }
.join-ag[aria-pressed="true"] .who { color: var(--bg); opacity: .8; }
.join-ag .ag-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.join-ag .here { font-size: 12px; font-weight: 700; white-space: nowrap; }
.join-ag[aria-pressed="true"] .mate { border-color: var(--bg); }
.join-ag[aria-pressed="true"] .mate i { border-color: var(--bg); }
.join-ag[aria-pressed="true"] .mate.on i { background: var(--good); border-color: var(--good); }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who-pick { border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--surface); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.who-pick[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.who-pick .tag { font-size: 11px; font-weight: 600; opacity: .75; }
.step-off { opacity: .5; }

/* Barre budget */
.budgetbar { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding-block: 8px; border-top: 1px solid var(--soft-line); font-size: 13px; }
.bb-track { flex: 1 1 180px; height: 10px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); min-width: 120px; display: flex; }
.bb-fill { height: 100%; background: var(--ink); }
.bb-meas { height: 100%; background: var(--muted); }
.bb-fill.full { background: var(--accent); }
.bb-label b { font-size: 15px; }
.bb-goals { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.bb-goals .g { white-space: nowrap; }
.bb-goals .g.ok { color: var(--good); }

main { padding-block: 20px 60px; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 18px; }
.sunk { background: var(--sunk); border-radius: 12px; padding: 14px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 16px; max-width: 70ch; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.section-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.section-title h2 { font-size: 26px; font-weight: 800; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; text-decoration: none; color: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); }
.role-aw { background: var(--aw); color: var(--aw-ink); border-color: var(--aw); }
.role-co { background: var(--co); color: var(--co-ink); border-color: var(--co); }
.role-cv { background: var(--cv); color: var(--cv-ink); border-color: var(--cv); }
.big { font-size: 34px; font-weight: 800; line-height: 1.05; }
.mid { font-size: 22px; font-weight: 800; }
.tag-good { color: var(--good); font-weight: 700; }
.tag-warn { color: var(--warn); font-weight: 700; }
.tag-bad { color: var(--bad); font-weight: 700; }
input[type="text"], input[type="number"], input[type="date"], textarea, select { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 44px; }
textarea { resize: vertical; min-height: 64px; }
label.lbl { font-weight: 700; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); }
.ro .editable { pointer-events: none; opacity: .7; }

/* Brief */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero-card { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.hero-card h2 { font-size: 32px; font-weight: 800; max-width: 22ch; }
.hero-card .hatch { position: absolute; right: -24px; top: -24px; width: 130px; height: 130px; background: repeating-linear-gradient(45deg, var(--accent) 0 6px, transparent 6px 15px); border-radius: 50%; opacity: .9; }
.hero-card .eyebrow { color: var(--accent); }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact .v { font-size: 26px; font-weight: 800; }
.compare { display: grid; grid-template-columns: 120px minmax(0, 1fr) 50px; gap: 6px 10px; align-items: center; font-size: 13px; }
.compare .bar { height: 14px; border-radius: 4px; background: var(--soft-line); }
.compare .bar.us { background: var(--accent); }
.season-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 50px; gap: 10px; align-items: center; font-size: 14px; }
.season-bar { height: 16px; background: var(--accent); border-radius: 4px; }
.timebox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.timebox > div { padding: 12px; border-right: 2px solid var(--line); }
.timebox > div:last-child { border-right: none; }
.timebox .t { font-size: 20px; font-weight: 800; }
@media (max-width: 640px) { .timebox { grid-template-columns: repeat(2, minmax(0, 1fr)); } .timebox > div:nth-child(2) { border-right: none; } .timebox > div:nth-child(-n+2) { border-bottom: 2px solid var(--line); } }
.ex { font-size: 12px; color: var(--muted); border-left: 3px solid var(--soft-line); padding-left: 10px; }
.ul { margin: 0; padding-left: 18px; font-size: 14px; }
.ul li + li { margin-top: 3px; }

/* KPI */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--surface); font-weight: 700; font-size: 13px; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.floor-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Médias */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .media-grid { grid-template-columns: minmax(0, 1fr); } }
.mcard { border: 2px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mcard.on { box-shadow: 5px 5px 0 var(--accent); }
.mcard h3 { font-size: 17px; font-weight: 800; }
.mcard .exm { font-size: 13px; color: var(--muted); }
.mrow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dots { letter-spacing: 2px; font-size: 13px; white-space: nowrap; }
.dots b { color: var(--accent); }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.role-btn { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; font-size: 13px; min-height: 36px; }
.role-btn[aria-pressed="true"].r-aw { background: var(--aw); color: var(--aw-ink); }
.role-btn[aria-pressed="true"].r-co { background: var(--co); color: var(--co-ink); }
.role-btn[aria-pressed="true"].r-cv { background: var(--cv); color: var(--cv-ink); border-color: var(--cv); }
.toggle { margin-top: auto; }

/* Plan média */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .plan-layout { grid-template-columns: minmax(0, 1fr); } }
.side { position: sticky; top: 160px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 980px) { .side { position: static; } }
.periods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .periods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .periods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.period-btn { text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.period-btn .pn { font-weight: 800; font-size: 14px; }
.period-btn .pm { font-size: 12px; color: var(--muted); }
.period-btn .ps { font-size: 13px; font-weight: 700; }
.period-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.period-btn[aria-pressed="true"] .pm { color: var(--bg); opacity: .8; }
.opts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 700px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 2px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 12px; font-weight: 700; font-size: 13px; text-align: left; min-height: 44px; }
.seg button small { display: block; font-weight: 600; font-size: 11px; opacity: .75; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.role-group { display: flex; flex-direction: column; gap: 10px; }
.role-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scard { border: 2px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.scard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scard-top h3 { font-size: 16px; font-weight: 800; }
.amount { font-size: 20px; font-weight: 800; }
.slider-row { display: flex; align-items: center; gap: 8px; }
.slider-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 30px; }
.stepb { width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--line); background: var(--bg); font-weight: 800; font-size: 18px; line-height: 1; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--sunk); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .k { font-size: 11px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: 4px; }
.kpi .v { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.kpi .v.red { color: var(--bad); }
.kpi .v small { font-size: 12px; font-weight: 600; }
.kpi.na .v { font-size: 13px; color: var(--muted); font-weight: 600; }
.note { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.note::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 1px; }
.note.warn { color: var(--warn); }
.effects { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--soft-line); padding-top: 8px; }
.effects .eh { font-size: 12px; font-weight: 700; color: var(--muted); }
.eff-row { display: flex; flex-wrap: wrap; gap: 6px; }
.eff { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.eff b { font-size: 14px; font-weight: 800; }
.eff.aw { background: var(--aw); color: var(--aw-ink); } .eff.co { background: var(--co); color: var(--co-ink); } .eff.cv { background: var(--cv); color: var(--cv-ink); } .eff.mx { background: var(--sunk); }
.empty { border: 2px dashed var(--soft-line); border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fl { border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fl .lbl { font-size: 12px; font-weight: 700; }
.fl .val { font-size: 20px; font-weight: 800; }
.fl.aw { background: var(--aw); color: var(--aw-ink); }
.fl.co { background: var(--co); color: var(--co-ink); margin-inline: 14px; }
.fl.cv { background: var(--cv); color: var(--cv-ink); margin-inline: 28px; }
.yearstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; }
.ys { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.ys-bars { position: relative; flex: 1; display: flex; align-items: flex-end; }
.ys-target { position: absolute; left: 0; right: 0; bottom: 0; border: 2px dashed var(--muted); border-radius: 4px 4px 0 0; }
.ys-sales { position: relative; width: 100%; background: var(--ink); border-radius: 4px 4px 0 0; }
.ys.cur .ys-sales { background: var(--accent); }
.ys .cap { font-size: 10px; text-align: center; color: var(--muted); font-weight: 600; }
.ys .pc { font-size: 12px; text-align: center; font-weight: 800; }
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.goal { border-radius: 10px; padding: 8px 10px; background: var(--sunk); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.goal .k { font-size: 11px; font-weight: 700; color: var(--muted); }
.goal .v { font-size: 18px; font-weight: 800; }
.goal .hint { font-size: 11px; }
.goal.ok { background: var(--good-bg); }
.goal.ok .v { color: var(--good); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
details.gloss summary { cursor: pointer; font-weight: 700; font-size: 13px; }
details.gloss dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 13px; margin: 10px 0 0; }
details.gloss dt { font-weight: 800; }
details.gloss dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { details.gloss dl { grid-template-columns: minmax(0, 1fr); } details.gloss dd { margin-bottom: 6px; } }

/* Contrôle client */
.client-card { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; flex: none; }
.verdict { border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 16px; border: 2px solid; }
.verdict.good { background: var(--good-bg); border-color: var(--good); }
.verdict.warn { background: var(--warn-bg); border-color: var(--warn); }
.verdict.bad { background: var(--bad-bg); border-color: var(--bad); }
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb { border-left: 5px solid var(--muted); background: var(--surface); border-radius: 0 10px 10px 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.fb .ttl { font-weight: 800; font-size: 14px; }
.fb.good { border-color: var(--good); } .fb.warn { border-color: var(--warn); } .fb.bad { border-color: var(--bad); }
.fb .lvl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fb.good .lvl { color: var(--good); } .fb.warn .lvl { color: var(--warn); } .fb.bad .lvl { color: var(--bad); }
.blockers li { color: var(--bad); font-weight: 600; }
.checks-left { display: inline-flex; gap: 4px; }
.checks-left i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.checks-left i.used { background: var(--ink); }
.confirm { border: 2px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--soft-line); white-space: nowrap; }
th { background: var(--ink); color: var(--bg); font-weight: 700; font-size: 12px; }
td.r, th.r { text-align: right; }
tr.tot td { font-weight: 800; background: var(--sunk); }

/* Pilotage */
.raci { border-collapse: separate; border-spacing: 0; }
.raci th, .raci td { white-space: normal; vertical-align: middle; }
.raci th.rc { text-align: center; min-width: 64px; font-size: 11px; }
.raci td.task { min-width: 200px; font-weight: 600; }
.raci td.cell { text-align: center; padding: 4px; }
.rbtn { width: 44px; height: 40px; border-radius: 8px; border: 2px solid var(--soft-line); background: var(--surface); font-weight: 800; font-size: 15px; }
.rbtn[data-v="R"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rbtn[data-v="A"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rbtn[data-v="C"] { background: var(--co); color: var(--co-ink); border-color: var(--co); }
.rbtn[data-v="I"] { background: var(--aw); color: var(--aw-ink); border-color: var(--aw); }
.raci td.st { font-size: 12px; font-weight: 700; min-width: 110px; }
.retro { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px 12px; align-items: center; }
@media (max-width: 520px) { .retro { grid-template-columns: minmax(0, 1fr); } .retro label { margin-top: 6px; } }
.member-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }

/* Deck */
.deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .deck-grid { grid-template-columns: minmax(0, 1fr); } }
.slide { container-type: inline-size; aspect-ratio: 16 / 9; background: #FFFFFF; color: #1E2229; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; font-family: Calibri, 'Segoe UI', Arial, sans-serif; }
.slide .in { position: absolute; inset: 0; padding: 4.2cqw 5cqw 3.4cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.slide .bar { position: absolute; left: 0; top: 0; width: 1.2cqw; height: 100%; background: #E4572E; }
.slide .kick { font-size: 1.5cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E4572E; }
.slide h4 { font-size: 3.4cqw; font-weight: 800; margin: 0; line-height: 1.1; color: #1E2229; }
.slide .cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.4cqw; flex: 1; min-height: 0; }
.slide .cols.one { grid-template-columns: 1fr; }
.slide .blk { display: flex; flex-direction: column; gap: 1cqw; min-height: 0; }
.slide p, .slide li { font-size: 1.55cqw; line-height: 1.32; margin: 0; }
.slide ul { margin: 0; padding-left: 2.2cqw; }
.slide .sk { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.2cqw; }
.slide .sk div { background: #F2F3F5; border-radius: .8cqw; padding: 1cqw 1.2cqw; }
.slide .sk b { display: block; font-size: 2.6cqw; color: #1E2229; line-height: 1.05; }
.slide .sk span { font-size: 1.25cqw; color: #5B6170; }
.slide table { font-size: 1.2cqw; }
.slide th, .slide td { padding: .35em .6em; white-space: nowrap; border-bottom: 1px solid #D5D9E0; }
.slide th { background: #1E2229; color: #FFFFFF; font-size: inherit; }
.slide .todo { border: .25cqw dashed #E4572E; border-radius: .8cqw; padding: 1cqw 1.3cqw; color: #A33A1B; font-size: 1.35cqw; background: #FDF1EC; }
.slide .hb { display: grid; grid-template-columns: 14cqw minmax(0, 1fr) 7cqw; gap: .5cqw 1cqw; align-items: center; font-size: 1.3cqw; }
.slide .hb i { display: block; height: 1.6cqw; border-radius: .3cqw; }
.slide .foot { position: absolute; left: 5cqw; right: 5cqw; bottom: 1.4cqw; display: flex; justify-content: space-between; font-size: 1.1cqw; color: #8A93A3; }
.slide.cover { background: #1E2229; color: #FFFFFF; }
.slide.cover h4 { color: #FFFFFF; font-size: 4.6cqw; }
.slide.cover p, .slide.cover li { color: #FFFFFF; }
.slide.cover .todo { background: transparent; color: #F6CB8C; border-color: #F6CB8C; }
.deck-print { display: none; }
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  body { background: #FFFFFF; padding: 0; }
  header.top, main, .team-wrap, .lock-banner, .toast { display: none !important; }
  .deck-print { display: block; }
  .deck-print .slide { width: 13.333in; height: 7.5in; aspect-ratio: auto; border: 0; border-radius: 0; page-break-after: always; break-after: page; }
}

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; z-index: 40; max-width: calc(100% - 32px); }
@media (max-width: 600px) {
  .brand small { display: none; } .brand h1 { font-size: 16px; } .brand-mark { width: 24px; height: 24px; }
  .top-row { padding-block: 8px; } nav.steps { padding-bottom: 8px; }
  .step-btn { padding: 5px 10px 5px 5px; font-size: 13px; } .step-btn .n { width: 20px; height: 20px; font-size: 11px; }
  .budgetbar { gap: 2px 10px; font-size: 12px; padding-block: 6px; } .bb-track { flex-basis: 100%; order: -1; height: 8px; }
  .bb-label b { font-size: 13px; } .bb-goals { margin-left: 0; flex-basis: 100%; gap: 4px 10px; font-size: 12px; } .bb-mtxt { display: none; } .group-chip { display: none; }
  .section-title h2 { font-size: 22px; } .hero-card h2 { font-size: 26px; } .panel { padding: 14px; }
  .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); } .goal .v { font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) { .bb-fill, .ys-sales, .season-bar { transition: width .25s, height .25s; } }
.hero-card .btn { background: transparent; color: inherit; border-color: currentColor; }
input[type="range"] { accent-color: var(--accent); }
