/* Studio Piano LED : système visuel sobre, une seule couleur d'accent */
:root {
  /* DA « La balançoire » : clair, arrondi, un violet de marque, la mascotte Virtuoso */
  --bg: #fbfafc;
  --panel: #ffffff;
  --soft: #f3eff7;
  --soft-2: #ebe6f0;
  --line: #efecf2;
  --line-2: #e1dbe7;
  --ink: #1b1620;
  --ink-2: #5e5666;
  --mute: #7d7486;
  --mute-2: #a29aab;
  --accent: #6d28d9;
  --accent-soft: #f3eff7;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --bad: #b91c1c;
  --bad-soft: #fcefee;
  --radius: 20px;
  --radius-s: 10px;
  --shadow: none;
  --shadow-l: 0 16px 44px rgba(27, 22, 32, .14), 0 2px 6px rgba(27, 22, 32, .06);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --side: 224px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--accent-soft); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- structure ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; height: 100vh; }
.side {
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11.5px; color: var(--mute); margin-top: -2px; }

.search-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 12px;
  padding: 7px 9px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg);
  color: var(--mute); font-size: 13px; text-align: left;
}
.search-btn:hover { border-color: var(--line-2); }
.search-btn kbd { margin-left: auto; }
kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--mute); background: var(--panel);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 17px;
}

.nav-label { font-size: 11px; color: var(--mute-2); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 6px; font-weight: 500; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-s);
  color: var(--ink-2); font-weight: 450; font-size: 13.5px; position: relative;
}
.nav-item svg { color: var(--mute); flex: none; }
.nav-item:hover { background: var(--soft); }
.nav-item.on { background: var(--soft); color: var(--ink); font-weight: 550; }
.nav-item.on svg { color: var(--ink); }
.nav-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.nav-count.hot { color: #fff; background: var(--accent); border-radius: 10px; padding: 0 6px; line-height: 17px; }

.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 6px 0; display: flex; flex-direction: column; gap: 10px; }
.online { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); }
.me { display: flex; align-items: center; gap: 9px; }
.me-name { font-weight: 550; font-size: 13px; }
.me-role { font-size: 11.5px; color: var(--mute); }
.me .icon-btn { margin-left: auto; }

.main { overflow: auto; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 34px 40px 80px; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.page-head .sub { color: var(--mute); font-size: 13.5px; margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.eyebrow { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; font-weight: 500; }

/* ---------- composants ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03); transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2a2a28; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12.5px; }
.btn.ok { color: var(--ok); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn {
  width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: var(--radius-s);
  border: 0; background: transparent; color: var(--mute);
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn.on { background: var(--ink); color: #fff; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.card-head .meta { color: var(--mute); font-size: 12.5px; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.card-body { padding: 14px 18px 18px; }

.avatar {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 10.5px; font-weight: 600; color: #fff; letter-spacing: 0;
}
.avatar.lg { width: 30px; height: 30px; font-size: 12px; }
.avatar.xs { width: 18px; height: 18px; font-size: 9px; }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--panel); }
.avatars .avatar + .avatar { margin-left: -6px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 500; background: var(--soft); color: var(--ink-2); white-space: nowrap;
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--mute); background: var(--soft); border-radius: 5px; padding: 1px 6px; }
.s-idee { color: var(--mute); }
.s-prod { color: var(--ink-2); }
.s-revue { color: var(--accent); }
.s-corrections { color: var(--warn); }
.s-valide { color: var(--ok); }
.s-test { color: #6d28d9; }
.s-gagnant { color: var(--ok); }
.s-coupe { color: var(--bad); }

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--radius-s);
  padding: 7px 10px; outline: none; font-size: 13.5px; transition: border-color .12s, box-shadow .12s;
}
.textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(17, 17, 16, .06); }
.input.bare { border-color: transparent; background: transparent; padding-left: 0; }
.input.bare:focus { box-shadow: none; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--mute); font-weight: 500; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--mute); }
.small { font-size: 12.5px; }
.empty { color: var(--mute); font-size: 13px; padding: 18px 0; text-align: center; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.progress { height: 6px; background: var(--soft-2); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width .4s ease; }
.progress.accent > i { background: var(--accent); }

.check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--panel);
  display: inline-grid; place-items: center; flex: none; padding: 0; color: transparent; transition: all .12s;
}
.check:hover { border-color: var(--ink-2); }
.check.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Aujourd'hui ---------- */
.today-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.focus {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; padding: 26px 28px;
  background: var(--ink); color: #fff; border-radius: 14px; position: relative; overflow: hidden;
}
.focus::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 108, 255, .35), transparent 65%); pointer-events: none;
}
.focus .eyebrow { color: rgba(255, 255, 255, .55); }
.focus h2 { margin: 6px 0 6px; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.25; }
.focus p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.focus .btn { background: #fff; color: var(--ink); border-color: #fff; height: 38px; padding: 0 16px; font-size: 13.5px; position: relative; z-index: 1; }
.focus .btn:hover { background: #ececea; }
.focus-thumb { width: 74px; height: 92px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.focus-steps { display: flex; gap: 6px; margin-top: 14px; }
.focus-steps span { font-size: 12px; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); padding: 3px 9px; border-radius: 6px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .k-label { font-size: 12px; color: var(--mute); }
.kpi .k-val { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.04em; margin: 4px 0 8px; }
.kpi .k-val small { font-size: 14px; color: var(--mute-2); font-weight: 400; }
.kpi .k-note { font-size: 12px; color: var(--mute); margin-top: 7px; }
.kpi .k-note.good { color: var(--ok); }
.kpi .k-note.late { color: var(--warn); }

.task { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .t-title { flex: 1; min-width: 0; font-size: 13.5px; }
.task.done .t-title { color: var(--mute-2); text-decoration: line-through; text-decoration-color: var(--line-2); }
.task .t-del { opacity: 0; }
.task:hover .t-del { opacity: 1; }
.task-add { display: flex; align-items: center; gap: 11px; padding-top: 10px; }
.task-add .plus { width: 18px; height: 18px; display: grid; place-items: center; color: var(--mute-2); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.wday { border-right: 1px solid var(--line); padding: 10px 10px 12px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.wday:last-child { border-right: 0; }
.wday.today { background: linear-gradient(var(--accent-soft), transparent 60px); }
.wday-head { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--mute); }
.wday-head b { font-family: var(--mono); font-size: 15px; color: var(--ink); font-weight: 500; }
.wday.today .wday-head b { color: var(--accent); }
.wday.past { background: #fbfbfa; }
.wday-item { font-size: 12px; line-height: 1.35; padding: 5px 7px; border-radius: 6px; background: var(--soft); color: var(--ink-2); }
.wday-item.done { color: var(--mute-2); text-decoration: line-through; background: transparent; padding-left: 0; }
.wday-item.due { background: var(--panel); border: 1px solid var(--line); }
.wday-score { margin-top: auto; display: flex; gap: 3px; }
.wday-score i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.wday-add { opacity: 0; font-size: 12px; color: var(--mute); background: none; border: 0; text-align: left; padding: 2px 0; }
.wday:hover .wday-add { opacity: 1; }

.feed-item { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; }
.feed-item .f-text { flex: 1; color: var(--ink-2); line-height: 1.45; }
.feed-item .f-text b { font-weight: 600; color: var(--ink); }
.feed-item .f-time { color: var(--mute-2); font-size: 12px; white-space: nowrap; }

/* ---------- Pipeline ---------- */
.board { display: flex; gap: 12px; padding: 0 40px 40px; overflow-x: auto; align-items: flex-start; min-height: calc(100vh - 140px); }
.col { width: 268px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; font-size: 13px; font-weight: 550; position: sticky; top: 0; }
.col-head .count { font-family: var(--mono); font-size: 11.5px; color: var(--mute); font-weight: 400; }
.col-head .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 80px; border-radius: var(--radius); padding: 2px; transition: background .15s; }
.col-body.over { background: var(--soft-2); }
.kcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: grab;
  box-shadow: var(--shadow); transition: border-color .12s, transform .12s;
}
.kcard:hover { border-color: var(--line-2); }
.kcard.dragging { opacity: .4; }
.kcard-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 6px; background: var(--soft); margin-bottom: 9px; }
.kcard-title { font-size: 13px; font-weight: 550; line-height: 1.35; letter-spacing: -0.01em; }
.kcard-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--mute); font-size: 12px; }
.kcard-meta .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kcard-meta .c { display: inline-flex; align-items: center; gap: 3px; }
.kcard-meta .c.hot { color: var(--warn); }
.kcard .roas { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.col-add { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 8px 10px; }
.col-add input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }

/* ---------- tiroir détail ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 16, .18); z-index: 40; animation: fade .15s; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: 480px; z-index: 41; background: var(--panel);
  border-radius: 14px; box-shadow: var(--shadow-l); display: flex; flex-direction: column; animation: slide .2s ease;
}
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 22px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer-title { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; border: 0; outline: 0; width: 100%; padding: 0; }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; align-items: center; font-size: 13px; }
.props > span { color: var(--mute); }
.props .select, .props .input { padding: 4px 8px; font-size: 13px; }
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asset { position: relative; border-radius: 8px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.asset img { width: 100%; height: 100%; object-fit: cover; }
.asset span { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 6px; border-radius: 4px; }
.drop {
  border: 1px dashed var(--line-2); border-radius: 8px; display: grid; place-items: center; text-align: center;
  color: var(--mute); font-size: 12px; padding: 12px; aspect-ratio: 1; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--ink-2); color: var(--ink); background: var(--soft); }
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--soft); border-radius: 8px; padding: 9px 10px; }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: 16px; letter-spacing: -0.03em; }
.stat span { font-size: 11.5px; color: var(--mute); }

/* ---------- Revue (canvas) ---------- */
.review { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 248px 1fr 320px; grid-template-rows: 48px 1fr; background: #ececea; }
.rv-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px;
  background: var(--panel); border-bottom: 1px solid var(--line); z-index: 3;
}
.rv-title { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.rv-tools { display: flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 9px; margin-left: 12px; }
.rv-tools .icon-btn { width: 30px; height: 28px; }
.rv-zoom { font-family: var(--mono); font-size: 12px; color: var(--mute); min-width: 46px; text-align: center; background: none; border: 0; }
.rv-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rv-pages { background: var(--panel); border-right: 1px solid var(--line); overflow: auto; padding: 10px 8px; }
.rv-page {
  display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: var(--ink-2);
}
.rv-page:hover { background: var(--soft); }
.rv-page.on { background: var(--soft); color: var(--ink); font-weight: 550; }
.rv-page img { width: 34px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--soft-2); flex: none; }
.rv-page .grow > div:last-child { font-size: 11.5px; font-weight: 400; color: var(--mute); }

.canvas { position: relative; overflow: hidden; cursor: default; background-color: #ececea;
  background-image: radial-gradient(#d6d6d1 1px, transparent 1px); background-size: 22px 22px; }
.canvas.comment-mode { cursor: crosshair; }
.canvas.panning, .canvas.space { cursor: grab; }
.canvas.panning { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.frame { position: absolute; }
.frame-label { position: absolute; top: -22px; left: 0; font-size: 12px; color: var(--mute); white-space: nowrap; transform-origin: 0 100%; }
.frame-img { position: absolute; inset: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 8px 30px rgba(0, 0, 0, .08); }
.frame-img img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.frame.selected .frame-img { outline: 2px solid var(--accent); outline-offset: 0; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -30px 0 0 0; pointer-events: auto; cursor: pointer;
  border-radius: 50% 50% 50% 0; display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 2px #fff; transform-origin: 0 100%; transition: transform .12s;
}
.pin:hover, .pin.on { transform: scale(var(--pin-s, 1)) scale(1.12); }
.pin.resolved { opacity: .45; }
.pin.draft { background: var(--accent); }
.composer {
  position: absolute; width: 280px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-l);
  padding: 10px; pointer-events: auto; transform-origin: 0 0; z-index: 2;
}
.composer textarea { border: 0; outline: 0; resize: none; width: 100%; min-height: 56px; font-size: 13.5px; }
.composer .row { justify-content: flex-end; }
.cursor-remote { position: absolute; pointer-events: none; z-index: 5; transition: transform .08s linear; left: 0; top: 0; }
.cursor-remote span { position: absolute; left: 14px; top: 16px; font-size: 11.5px; font-weight: 550; color: #fff; padding: 2px 7px; border-radius: 5px 5px 5px 0; white-space: nowrap; }
.rv-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-size: 12.5px; padding: 7px 12px; border-radius: 9px; display: flex; align-items: center; gap: 8px; z-index: 2; box-shadow: var(--shadow-l); white-space: nowrap;
}
.rv-hint kbd { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .15); color: #fff; }

.rv-side { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rv-tabs { display: flex; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rv-tab { border: 0; background: none; padding: 5px 9px; white-space: nowrap; border-radius: 7px; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.rv-tab.on { background: var(--soft); color: var(--ink); }
.rv-side-body { overflow: auto; flex: 1; }
.thread { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.thread:hover { background: #fafaf9; }
.thread.on { background: var(--accent-soft); }
.thread.resolved { opacity: .55; }
.t-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.t-head b { font-weight: 600; }
.t-head .t-time { color: var(--mute-2); font-size: 11.5px; }
.t-head .t-num { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.t-body { font-size: 13.5px; margin: 5px 0 0 32px; color: var(--ink-2); white-space: pre-wrap; }
.t-replies { margin: 8px 0 0 32px; display: flex; flex-direction: column; gap: 8px; }
.t-reply { font-size: 13px; color: var(--ink-2); }
.t-reply b { font-weight: 600; color: var(--ink); margin-right: 5px; }
.t-actions { display: flex; gap: 4px; margin: 8px 0 0 26px; }
.t-reply-box { margin: 8px 0 0 32px; }
.t-reply-box input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; outline: 0; font-size: 13px; }
.rules { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.rule { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.rule:hover { background: var(--soft); }
.rule .check { margin-top: 1px; }
.rule small { display: block; color: var(--mute); font-size: 12px; }
.decision { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.decision .btn { flex: 1; justify-content: center; height: 36px; }
.typing { font-size: 12px; color: var(--mute); padding: 6px 14px; }

.versions { display: flex; gap: 2px; background: var(--soft); border-radius: 8px; padding: 3px; }
.versions button { border: 0; background: none; font-size: 12px; font-family: var(--mono); padding: 3px 8px; border-radius: 6px; color: var(--mute); }
.versions button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Angles ---------- */
.angles-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.persona-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; }
.persona {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent;
}
.persona:hover { background: var(--panel); border-color: var(--line); }
.persona.on { background: var(--panel); border-color: var(--line-2); box-shadow: var(--shadow); }
.persona b { font-size: 13.5px; font-weight: 600; }
.persona span { font-size: 12px; color: var(--mute); }
.persona .cov { display: flex; gap: 3px; margin-top: 5px; }
.persona .cov i { height: 4px; flex: 1; border-radius: 3px; background: var(--soft-2); }
.persona .cov i.t { background: var(--ink); }
.persona .cov i.w { background: var(--ok); }
.jtbd { font-size: 17px; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); margin: 0; font-weight: 450; }
.jtbd::before { content: '« '; color: var(--mute-2); }
.jtbd::after { content: ' »'; color: var(--mute-2); }
.insight-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.insight { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.insight:last-child { border-bottom: 0; }
.insight .heat { width: 34px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.insight .heat button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; font-family: var(--mono); font-size: 11.5px; width: 34px; height: 22px; padding: 0; }
.insight .heat button:hover { border-color: var(--ink-2); }
.insight .heat-bar { width: 26px; height: 3px; background: var(--soft-2); border-radius: 3px; overflow: hidden; }
.insight .heat-bar i { display: block; height: 100%; background: var(--warn); }
.insight .i-text { flex: 1; line-height: 1.45; }
.insight .i-src { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.insight .i-act { opacity: 0; display: flex; gap: 2px; }
.insight:hover .i-act { opacity: 1; }
.angle-row { display: grid; grid-template-columns: 52px 1fr 120px 110px 92px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.angle-row:last-child { border-bottom: 0; }
.angle-row .a-title { font-weight: 550; }
.angle-row .a-hook { color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.gap-card { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: center; background: #fbfbfa; }
.seg { display: inline-flex; gap: 2px; background: var(--soft); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; color: var(--mute); font-weight: 500; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.matrix { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matrix th { text-align: left; font-weight: 500; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.matrix td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.matrix .cell { display: inline-block; width: 22px; height: 22px; border-radius: 5px; background: var(--soft); }

/* ---------- Stats ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.table th.r, .table td.r { text-align: right; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafaf9; }
.table .thumb { width: 32px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--soft); }
.bar-row { display: grid; grid-template-columns: 170px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; padding: 6px 0; }
.bar { height: 22px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.verdict { font-size: 12px; font-weight: 500; }
.verdict.good { color: var(--ok); }
.verdict.bad { color: var(--bad); }
.verdict.wait { color: var(--mute); }

/* ---------- palette, toasts, login ---------- */
.palette-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 16, .25); display: grid; place-items: start center; padding-top: 14vh; animation: fade .12s; }
.palette { width: 600px; max-width: calc(100vw - 32px); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-l); overflow: hidden; }
.palette input { width: 100%; border: 0; outline: 0; padding: 16px 18px; font-size: 16px; border-bottom: 1px solid var(--line); }
.palette-list { max-height: 360px; overflow: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.palette-item.on { background: var(--soft); }
.palette-item .hint { margin-left: auto; font-size: 12px; color: var(--mute); }
.palette-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 9px; box-shadow: var(--shadow-l); animation: rise .2s ease; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 360px; max-width: 100%; }
.login-card h1 { font-size: 22px; letter-spacing: -0.03em; margin: 22px 0 4px; font-weight: 600; }
.login-card p { color: var(--mute); margin: 0 0 22px; }
.login-users { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.login-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-align: left; }
.login-user.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) {
  .today-grid { grid-template-columns: 1fr; }
  .review { grid-template-columns: 0 1fr 300px; }
  .rv-pages { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .page { padding: 22px 16px 60px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .week { grid-template-columns: 1fr; }
  .focus { flex-direction: column; align-items: flex-start; }
  .angles-layout, .insight-cols { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; grid-template-rows: 48px 1fr 40vh; }
  .rv-side { border-left: 0; border-top: 1px solid var(--line); }
  .drawer { left: 10px; width: auto; }
  .board { padding: 0 16px 40px; }
}

/* ---------- Tableau blanc ---------- */
/* --iz = 1/zoom : les libellés, bulles et curseurs gardent la même taille à l'écran quel que soit le zoom */
.wb .world { --iz: 5; }
.wb .canvas.tool-move { cursor: default; }
.wb .canvas.tool-hand { cursor: grab; }
.wb .canvas.tool-comment, .wb .canvas.tool-section { cursor: crosshair; }
.wb .canvas.tool-note { cursor: copy; }
.wb .canvas.panning { cursor: grabbing; }
.board-name { border: 0; background: transparent; font-weight: 600; font-size: 13.5px; padding: 5px 8px; border-radius: 6px; width: 190px; outline: 0; }
.board-name:hover { background: var(--soft); }
.board-name:focus { background: var(--soft); box-shadow: 0 0 0 1px var(--line-2); }

.b-crea { position: absolute; }
.b-crea.sel { box-shadow: 0 0 0 calc(2px * var(--iz)) var(--accent); border-radius: 2px; }
.b-crea-head {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--iz)) translateY(calc(-100% - 10px));
  display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px;
}
.b-crea-title { font-weight: 600; color: var(--ink); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.b-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); background: var(--panel); border-radius: 6px; padding: 2px 7px; box-shadow: var(--shadow); }
.b-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 2px 7px; }
.b-frame { position: absolute; background: #fff; box-shadow: 0 calc(2px * var(--iz)) calc(12px * var(--iz)) rgba(0, 0, 0, .12); }
.b-frame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.b-frame-label {
  position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; transform: scale(var(--iz)) translateY(calc(100% + 6px));
  font-size: 11.5px; color: var(--mute); white-space: nowrap; font-family: var(--mono);
}
.b-frame.missing { background: rgba(255, 255, 255, .45); box-shadow: none; }
.b-missing { position: absolute; inset: 0; border: calc(2px * var(--iz)) dashed var(--line-2); border-radius: calc(4px * var(--iz)); display: grid; place-items: center; }
.b-missing > div { transform: scale(var(--iz)); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 210px; text-align: center; font-size: 12.5px; color: var(--mute); }
.b-missing b { color: var(--warn); font-weight: 600; }
.canvas.dropping .b-frame.missing .b-missing, .b-frame.missing:hover .b-missing { border-color: var(--accent); }

.b-pin {
  position: absolute; z-index: 3; transform-origin: 0 0; transform: scale(var(--iz)) translateY(-100%);
  width: 38px; height: 38px; padding: 4px; background: #fff; border-radius: 19px 19px 19px 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: pointer;
}
.b-pin .avatar { width: 30px; height: 30px; font-size: 12px; }
.b-pin.on { box-shadow: 0 0 0 2px var(--accent), 0 2px 10px rgba(0, 0, 0, .25); }
.b-pin.resolved { opacity: .45; }
.b-pin-preview {
  display: none; position: absolute; left: 46px; bottom: 0; width: 250px; background: var(--panel); border-radius: 10px;
  box-shadow: var(--shadow-l); padding: 10px 12px; font-size: 12.5px; line-height: 1.45; cursor: default;
}
.b-pin-preview div { margin-top: 3px; color: var(--ink-2); }
.b-pin:hover .b-pin-preview { display: block; }
.b-composer { position: absolute; z-index: 6; transform-origin: 0 0; transform: scale(var(--iz)); display: flex; align-items: flex-start; gap: 10px; }
.b-pin-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); transform: translate(-8px, -8px); flex: none; }
.b-composer-box { width: 290px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-l); padding: 10px; }
.b-composer-box textarea { border: 0; outline: 0; resize: none; width: 100%; min-height: 58px; font-size: 13.5px; }
.b-composer-box .row { justify-content: flex-end; }

.b-section { position: absolute; background: rgba(255, 255, 255, .55); border: calc(1px * var(--iz)) solid var(--line-2); border-radius: calc(6px * var(--iz)); }
.b-section.sel { box-shadow: 0 0 0 calc(2px * var(--iz)) var(--accent); }
.b-section.ghost { background: rgba(47, 91, 234, .06); border-color: var(--accent); pointer-events: none; }
.b-section-title {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--iz)) translateY(calc(-100% - 8px));
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 550; padding: 4px 10px; border-radius: 7px; white-space: nowrap;
}
.b-section-title input { background: transparent; border: 0; outline: 0; color: #fff; font-weight: 550; width: 240px; padding: 0; }
.b-resize {
  position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; transform-origin: 100% 100%; transform: scale(var(--iz)) translate(50%, 50%);
  background: #fff; border: 2px solid var(--accent); border-radius: 3px; cursor: nwse-resize;
}
.b-note {
  position: absolute; background: #fff3b0; padding: 44px 48px; border-radius: 8px; font-size: 64px; line-height: 1.3; color: #3a3100;
  box-shadow: 0 calc(3px * var(--iz)) calc(14px * var(--iz)) rgba(0, 0, 0, .12); white-space: pre-wrap; word-break: break-word;
}
.b-note.sel { box-shadow: 0 0 0 calc(2px * var(--iz)) var(--accent); }
.b-note-text[contenteditable] { outline: 0; min-height: 1.3em; cursor: text; }
.b-note-by { font-size: 34px; opacity: .55; margin-top: 24px; }
.b-cursor { position: absolute; z-index: 20; pointer-events: none; transform-origin: 0 0; transform: scale(var(--iz)); transition: left .08s linear, top .08s linear; }
.b-cursor span { position: absolute; left: 15px; top: 17px; font-size: 11.5px; font-weight: 550; color: #fff; padding: 2px 7px; border-radius: 5px 5px 5px 0; white-space: nowrap; }

.board-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; text-align: center; color: var(--mute); font-size: 13px; line-height: 1.55; }
.board-empty b { color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 10px; }
.board-empty-icons { display: flex; gap: 8px; align-items: flex-end; }
.board-empty-icons span { border: 2px dashed var(--line-2); border-radius: 5px; display: block; background: rgba(255, 255, 255, .5); }
.drop-hint { display: none; }
.canvas.dropping .drop-hint {
  display: flex; position: absolute; inset: 14px; border: 2px dashed var(--accent); border-radius: 14px; align-items: center; justify-content: center;
  gap: 8px; background: rgba(47, 91, 234, .05); color: var(--accent); font-weight: 550; pointer-events: none; z-index: 30;
}
.layer-item { padding: 5px 8px; font-size: 12.5px; gap: 8px; }
.layer-item .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-item .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.side-crea { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.side-crea-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; flex: 1; }
.side-formats { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; font-size: 12.5px; }
.side-formats > div { display: flex; align-items: center; gap: 6px; }
.side-formats .ok { color: var(--ok); }
.side-formats .ko { color: var(--warn); }
.side-formats span { margin-left: auto; color: var(--mute); font-family: var(--mono); font-size: 11.5px; }
.side-alert { margin: 12px 14px 4px; display: flex; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; }
.side-alert div div { color: var(--ink-2); margin-top: 2px; }
.rule.auto { cursor: default; }
.rule.auto:hover { background: none; }
.world.far .b-frame-label, .world.far .b-missing > div, .world.far .b-crea-head .pill, .world.far .b-crea-head .b-warn, .world.far .b-crea-head .tag { display: none; }
.palette.modal { width: 400px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.palette.modal h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.palette.modal p { margin: -6px 0 2px; color: var(--mute); font-size: 13px; }
.palette.modal input { border: 1px solid var(--line-2); padding: 7px 10px; font-size: 13.5px; }

/* ---------- Kit de marque ---------- */
.kit-frame { display: block; width: 100%; height: 100vh; border: 0; }

/* ---------- Objectifs du jour et de la semaine ---------- */
.goal { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.goal.editing { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.goal-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.goal-head .icon-btn { margin-left: auto; }
.goal-when { font-size: 12.5px; color: var(--mute); }
.goal-line { display: flex; align-items: baseline; gap: 10px; }
.goal-val { font-size: 40px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.goal-val small { font-size: 20px; color: var(--mute-2); font-weight: 400; letter-spacing: -0.03em; }
.goal-unit { color: var(--ink-2); font-size: 14px; }
.goal-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 550; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 2px 8px; }
.progress.ok > i { background: var(--ok); }
.goal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.goal-row .num { color: var(--mute); }
.goal-row .num b { color: var(--ink); font-weight: 500; font-size: 17px; }
.goal-text { font-size: 13.5px; color: var(--ink); background: var(--soft); border-radius: 7px; padding: 7px 10px; }
.goal-meta { font-size: 12.5px; color: var(--mute); }
.goal-meta.good { color: var(--ok); }
.goal-meta.late { color: var(--warn); }
.goal-form { display: flex; flex-direction: column; gap: 10px; }
.goal-input-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.goal-input { width: 84px; font-size: 22px; padding: 6px 10px; text-align: center; }
.goal-two { display: flex; gap: 18px; flex-wrap: wrap; }
.goals-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .goals-row { grid-template-columns: 1fr; } }


/* =================== DA « La balançoire » : surcharges des composants =================== */
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 22px 12px 14px; }
.brand { padding: 0 10px 18px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; }
.search-btn { border-radius: 12px; background: var(--bg); }
.nav-label { font-size: 11px; letter-spacing: .1em; color: var(--mute-2); padding: 16px 10px 6px; font-weight: 500; }
.nav-item { border-radius: 12px; padding: 8px 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-item.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.nav-item.on svg { color: var(--accent); }
.nav-count { font-size: 12px; }
.nav-count.hot { background: var(--accent); }
.avatar { font-weight: 700; }

.page { padding-top: 40px; }
.page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.page-head .sub { font-size: 14.5px; }
.eyebrow { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--mute-2); font-weight: 500; }

.btn { border-radius: 30px; height: 34px; padding: 0 15px; font-weight: 600; box-shadow: none; }
.btn.sm { border-radius: 30px; height: 28px; padding: 0 11px; }
.btn.primary { background: var(--ink); border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.icon-btn { border-radius: 10px; }
.card { border-radius: var(--radius); box-shadow: none; }
.input, .textarea, .select { border-radius: 12px; }
.pill, .tag { border-radius: 20px; }
.tag { padding: 1px 8px; font-weight: 500; }
.progress { height: 8px; border-radius: 8px; }
.progress > i { background: var(--accent); }
.check { border-radius: 6px; }
.check.on { background: var(--accent); border-color: var(--accent); }

/* bloc « À faire maintenant » : carte blanche, accent violet */
.focus { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.focus::after { display: none; }
.focus .eyebrow { color: var(--accent); font-weight: 700; }
.focus h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; }
.focus p { color: var(--ink-2); font-size: 14.5px; }
.focus .btn { background: var(--accent); color: #fff; border-color: var(--accent); height: 40px; padding: 0 18px; }
.focus .btn:hover { background: var(--accent); filter: brightness(1.08); }
.focus-thumb { border-radius: 10px; box-shadow: none; }
.focus-steps span { color: var(--ink-2); background: var(--soft); border-radius: 20px; }

/* objectifs : segments arrondis, la mascotte se balance sur l'objectif du jour */
.goals-row { margin-top: 70px; }
.goal { border-radius: var(--radius); padding: 20px 24px 22px; position: relative; }
.goal-val { font-family: var(--font); font-weight: 700; font-size: 46px; letter-spacing: -0.04em; }
.goal-val small { font-size: 20px; }
.goal-row .num b { font-size: 16px; font-weight: 700; }
.goal-text { background: var(--soft); border-radius: 20px; padding: 4px 12px; align-self: flex-start; }
.segs { display: flex; gap: 3px; }
.segs i { flex: 1; height: 8px; border-radius: 8px; background: var(--soft-2); }
.segs i.on { background: var(--accent); }
.segs.ok i.on { background: var(--ok); }
.goal-row-segs { display: grid; grid-template-columns: 120px 1fr 54px; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.goal-row-segs .num { text-align: right; font-weight: 700; color: var(--ink); }
.swing { position: absolute; right: 78px; bottom: calc(100% - 22px); width: 92px; pointer-events: none; }
.swing-bar { position: absolute; left: -8px; right: -8px; top: -4px; height: 4px; border-radius: 4px; background: var(--ink); }
.swing img { width: 92px; height: auto; display: block; transform-origin: 50% 0; animation: balance 3.2s ease-in-out infinite; }
.swing-say {
  position: absolute; right: calc(100% + 10px); top: 2px; white-space: nowrap; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 14px 14px 4px 14px;
}
@keyframes balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .swing img { animation: none; } }

/* chiffres clés : une ligne simple, sans cadre */
.brief { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.brief > div { padding: 14px 4px 4px; }
.brief span { font-size: 13px; color: var(--mute-2); }
.brief b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.brief em { font-style: normal; font-size: 12.5px; color: var(--mute-2); }
.brief em.late { color: var(--warn); }

.kpi .k-val, .stat b, .wday-head b, .col-head .count, .kcard .roas, .rv-zoom { font-family: var(--font); font-weight: 700; }
.wday.today { background: linear-gradient(var(--soft), transparent 70px); }
.wday-score i { background: var(--accent); border-radius: 3px; }
.kcard { border-radius: 16px; box-shadow: none; }
.kcard-thumb { border-radius: 10px; }
.drawer, .palette { border-radius: 22px; }
.login-card .brand-mark { display: none; }
.login-mascot { width: 96px; height: auto; margin-bottom: -4px; }
@media (max-width: 760px) { .brief { grid-template-columns: 1fr 1fr; } .swing { right: 24px; } .swing-say { display: none; } }
.review { background: #f3f1f5; }
.canvas { background-color: #f3f1f5; background-image: radial-gradient(#ddd6e3 1px, transparent 1px); }
.login-swing { position: relative; display: inline-block; margin-top: 8px; }
.login-swing img { transform-origin: 50% 0; animation: balance 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .login-swing img { animation: none; } }

/* Feu vert carré : case sous le vertical, filtre du tableau */
.b-okcarre {
  position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; transform: scale(var(--iz)) translateY(calc(100% + 30px));
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 7px; cursor: pointer; box-shadow: var(--shadow);
}
.b-okcarre:hover { border-color: var(--accent); }
.b-okcarre.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.b-okcarre .check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; background: #fff; }
.b-okcarre.on .check { border-color: #fff; color: var(--accent); }
.b-okcarre small { font-weight: 500; font-size: 11.5px; opacity: .75; margin-left: 2px; }
.b-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); background: var(--panel); border-radius: 6px; padding: 2px 7px; box-shadow: var(--shadow); }
.b-tag.go { color: #fff; background: var(--accent); }
.b-missing.wait b { color: var(--mute); }
.b-missing.go { border-color: var(--accent); }
.b-missing.go b, .b-missing.go svg { color: var(--accent); }
.b-crea.dim, .layer-item.dim { opacity: .18; }
.b-crea { transition: opacity .2s; }
.rv-filter { display: inline-flex; gap: 2px; margin-left: 8px; padding: 3px; border-radius: 999px; background: var(--soft); }
.rv-filter button { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink-2); padding: 4px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.rv-filter button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.rv-filter .num { color: var(--mute); font-size: 11.5px; margin-left: 2px; }
.rv-filter button.on .num { color: var(--accent); }
.side-formats .wait { color: var(--mute); }
.side-okcarre { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); cursor: pointer; }
.side-okcarre .check { flex: none; margin-top: 1px; }
.side-okcarre b { font-size: 13px; font-weight: 600; }
.side-okcarre small { display: block; color: var(--mute); font-size: 12px; margin-top: 1px; }
.world.far .b-okcarre { font-size: 0; gap: 0; padding: 5px; transform: scale(var(--iz)) translateY(calc(100% + 8px)); }
.world.far .b-okcarre small { display: none; }
/* Titres jamais plus larges que la statique : rien ne déborde sur la voisine en vue d'ensemble */
.b-crea-head { max-width: calc(100% / var(--iz)); }
.b-crea-title { min-width: 0; flex-shrink: 1; }
.world.far .b-tag { display: none; }
.b-section-title { font-size: 15px; padding: 6px 14px; border-radius: 9px; }
.world.vfar .b-crea-head, .world.vfar .b-okcarre, .world.vfar .b-pin { display: none; }
.world.vfar .b-section-title { font-size: 17px; }
.layer-item.in { padding-left: 24px; }
/* Titres des statiques masqués sur le tableau : ils n'apparaissent qu'au survol ou à la sélection */
.b-crea-head { display: none; }
.b-crea:hover .b-crea-head, .b-crea.sel .b-crea-head { display: flex; z-index: 3; }
.world.vfar .b-crea:hover .b-crea-head { display: none; }
.world.far .b-okcarre:not(.on) { display: none; }
.world.far .b-crea:hover .b-okcarre, .world.far .b-crea.sel .b-okcarre { display: inline-flex; }
