/* Planning Telco — fond blanc, Inter, accent bleu #1D4ED8 (repris des maquettes validées). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/inter-latin-v20.woff2) format("woff2");
}
:root {
  --bg: #FFFFFF; --ink: #111827; --ink2: #374151; --muted: #6B7280; --muted2: #4B5563; --faint: #9CA3AF;
  --line: #E5E7EB; --line2: #EEF0F3; --line3: #F1F2F4; --soft: #F3F4F6; --off: #F6F7F9; --wash: #FAFAFB;
  --accent: #1D4ED8; --accent-ink: #1E3A8A; --accent-soft: #EFF4FF; --accent-ring: #DBEAFE;
  --danger: #B91C1C; --radius: 12px; --name-w: 220px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.grow-min { flex: 1 1 320px; min-width: 0; }
.muted { color: var(--muted); }
.muted-p { color: var(--muted2); line-height: 1.55; }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
td.sub { display: table-cell; }
.cap::first-letter { text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 12px; }
.self-start { align-self: flex-start; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ic { flex: none; vertical-align: middle; }
.with-ic { display: inline-flex; align-items: center; gap: 6px; }
.with-ic.h2 { gap: 10px; color: var(--accent); }
.with-ic.h2 h2 { color: var(--ink); }
.boot { min-height: 100vh; }

/* ─── en-tête ─── */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.space-select { position: relative; display: inline-flex; align-items: center; }
.space-select select { appearance: none; height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.space-select .ic { position: absolute; right: 10px; pointer-events: none; color: var(--muted); }
.space-name { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted2); text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.me-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.av { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; line-height: 1; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: 6px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu > a, .menu > button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.menu > a:hover, .menu > button:hover { background: var(--soft); }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line3); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head span, .menu-foot { font-size: 12px; color: var(--muted); }
.menu-foot { padding: 8px 10px 4px; border-top: 1px solid var(--line3); margin-top: 4px; }
.menu.filters { min-width: 260px; padding: 12px; gap: 10px; }
.menu.pick { left: 0; right: auto; min-width: 280px; max-height: 320px; overflow: auto; }
.menu.pick button { width: 100%; }
.view { padding: 0 0 32px; }

/* ─── boutons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink2); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--wash); color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1E40AF; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn.danger-ghost { color: #991B1B; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.big { height: 50px; border-radius: 12px; font-size: 16px; width: 100%; }
.btn .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink2); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn.bordered { border: 1px solid var(--line); background: var(--bg); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.btn-pair { display: flex; gap: 4px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font-size: 13px; }
.link.strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.link.strong:hover { color: var(--accent); }
.seg { display: flex; padding: 3px; background: var(--soft); border-radius: 9px; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* ─── barre d'outils, légendes ─── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 28px; }
.period { font-size: 20px; }
.legends { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 14px; }
.legend { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.legends-label { align-self: center; font-size: 12.5px; color: var(--muted); margin-right: 2px; }
/* filtre bascule : affiché = pastille aux couleurs du type et case cochée ; masqué = case vide, grisé, bord pointillé */
.legend.toggle { height: 30px; padding: 0 12px 0 8px; gap: 7px; font-weight: 500; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.legend.toggle[aria-pressed="true"] { background: var(--c-bg); border-color: var(--c-fg); color: var(--c-fg); font-weight: 600; }
.legend.toggle[aria-pressed="false"] { background: var(--bg); border: 1px dashed #D1D5DB; color: var(--faint); }
.legend.toggle:hover { filter: brightness(0.97); }
.lg-box { width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid #D1D5DB; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lg-box .ic { opacity: 0; color: #fff; }
.legend.toggle[aria-pressed="true"] .lg-box { background: var(--c-fg); border-color: var(--c-fg); }
.legend.toggle[aria-pressed="true"] .lg-box .ic { opacity: 1; }
.show-all { align-self: center; margin-left: 4px; font-size: 12.5px; font-weight: 500; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.key .sw { width: 12px; height: 12px; border-radius: 4px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.key { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 28px 0; font-size: 12.5px; color: var(--muted2); }
.key > span { display: inline-flex; align-items: center; gap: 6px; }

/* ─── vue équipe (frise) ─── */
.tl-scroll { margin: 0 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 250px); min-height: 280px;
  overscroll-behavior: contain; }
.tl { position: relative; min-width: 100%; }
.tl-cols { position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.col { position: absolute; top: 0; bottom: 0; border-left: 1px solid #E5E7EB; }   /* séparation des jours, gris clair */
.col.mon { border-left-color: #CBD0D8; }
.col.off { background: var(--off); }
.col.halves::after { content: ""; position: absolute; top: 62px; bottom: 0; left: 50%; border-left: 1px dashed var(--line3); }
.today-line { position: absolute; top: 58px; bottom: 0; width: 0; border-left: 2px solid var(--accent); opacity: 0.35; }
.tl-head, .tl-foot { position: sticky; z-index: 3; display: flex; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(2px); }
.tl-head { top: 0; height: 62px; border-bottom: 1px solid var(--line); background: #fff; }
.tl-foot { bottom: 0; height: 48px; border-top: 1px solid var(--line); background: rgba(250, 250, 251, 0.96); }
.tl-corner { position: sticky; left: 0; z-index: 4; width: var(--name-w); flex: none; display: flex; align-items: center; padding: 0 16px; background: inherit;
  border-right: 1px solid var(--line2); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tl-head .tl-corner { background: #fff; }
.tl-foot .tl-corner { background: var(--wash); }
.tl-corner.strong { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.tl-days { position: relative; flex: none; }
.dh { position: absolute; top: 20px; height: 42px; border-left: 1px solid #EEF0F3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.dh-dow { font-size: 11px; color: var(--muted); }
.dh-num { font-size: 15px; font-weight: 600; }
.dh.off .dh-dow, .dh.off .dh-num { color: var(--faint); }
.dh.today .dh-num { color: #fff; background: var(--accent); border-radius: 999px; min-width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.dh-wk { position: absolute; left: 4px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--muted2); }
.tl-row { position: relative; display: flex; border-bottom: 1px solid var(--line3); }
.tl-name { position: sticky; left: 0; z-index: 2; width: var(--name-w); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff;
  border-right: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.tl-name:hover .n1 { color: var(--accent); }
.nm { display: flex; flex-direction: column; min-width: 0; }
.n1 { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-body { position: relative; flex: none; z-index: 1; touch-action: pan-x pan-y; cursor: cell; }
.item { position: absolute; height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  overflow: hidden; white-space: nowrap; cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow 0.12s; }
.item:hover { box-shadow: 0 0 0 1.5px currentColor inset; }
.item .lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.item.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.item.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.item.ro { cursor: pointer; }
.item.action { box-shadow: inset 0 0 0 1px rgba(6, 95, 70, 0.08); }
.h-l, .h-r { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.h-l { left: 0; } .h-r { right: 0; }
.item.band { height: 18px; border-radius: 4px; font-size: 11px; font-weight: 600; padding: 0 8px;
  background: repeating-linear-gradient(135deg, var(--band) 0 6px, var(--band2) 6px 12px); }
.item.ghost { background: #fff !important; color: var(--muted) !important; box-shadow: inset 0 0 0 1.5px #9CA3AF; border: 0; opacity: 0.9; }
.item.ghost.band { background: repeating-linear-gradient(135deg, #fff 0 6px, var(--soft) 6px 12px) !important; }
.drag-ghost { position: absolute; z-index: 6; height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  overflow: hidden; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18), inset 0 0 0 1.5px currentColor; transition: left 0.06s, top 0.06s, width 0.06s; }
.drag-ghost.band { height: 18px; font-size: 11px; font-weight: 600; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--band) 0 6px, var(--band2) 6px 12px); }
.drag-ghost .h-l, .drag-ghost .h-r { display: none; }
.sel-box { position: absolute; z-index: 6; height: 30px; border-radius: 7px; background: rgba(29, 78, 216, 0.08); border: 1.5px dashed var(--accent); pointer-events: none; }
.drag-tip { position: absolute; z-index: 7; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }
.pc { position: absolute; top: 9px; height: 30px; display: flex; align-items: center; justify-content: center; }
.pc.off { font-size: 12px; color: var(--muted); }
.pchip { width: 100%; max-width: 64px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }

/* ─── fenêtres ─── */
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.24); display: flex; flex-direction: column; overflow: hidden; }
dialog.modal:not([open]) { display: none; }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(17, 24, 39, 0.35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 10px 20px 16px; overflow: auto; }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line3); background: var(--wash); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form.tight { gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
fieldset.field { gap: 8px; }
.field > label, .label, legend.label { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), select, textarea { height: 38px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 8px; background: var(--bg); min-width: 0; width: 100%; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input[readonly] { background: var(--wash); color: var(--ink2); font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day-half { display: flex; gap: 6px; }
.day-half input { flex: 1.3; }
.day-half select { flex: 1; }
.hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.check, .radio { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input, .radio input { margin-top: 3px; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink2); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip-toggle.chip-person { padding-left: 4px; }
.chip-toggle[aria-pressed="true"] { background: var(--c-bg, var(--accent-soft)); color: var(--c-fg, var(--accent)); border-color: var(--c-fg, var(--accent)); }
.chip-toggle[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.gray { background: var(--soft); color: var(--ink2); height: 30px; border-radius: 8px; padding: 0 10px; font-size: 12.5px; }
.badge.blue { background: var(--accent-ring); color: var(--accent-ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span:not(.sr) { display: block; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.swatch input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.proj-line { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted2); font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.dot.lg { width: 14px; height: 14px; border-radius: 4px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); transition: opacity 0.3s, transform 0.3s; }
.toast.error { background: #991B1B; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ─── connexion ─── */
body.bare { background: var(--bg); }
.login { max-width: 400px; min-height: 100vh; margin: 0 auto; padding: 72px 28px 32px; display: flex; flex-direction: column; gap: 28px; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.login-head svg { width: 56px; height: 56px; }
.login-head h1 { font-size: 24px; }
.login-head p { color: var(--muted2); font-size: 15px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form label { font-weight: 600; }
.login-form .hint { display: block; }
.code-input { height: 56px !important; border: 1.5px solid #D1D5DB !important; border-radius: 12px !important; font-size: 24px; font-weight: 600; letter-spacing: 0.18em;
  text-align: center; text-transform: uppercase; }
.code-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-ring) !important; }
.login-form .btn.big { margin-top: 8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or span { flex: 1; height: 1px; background: var(--line); }
.login .btn.big:not(.primary) { color: var(--ink); font-weight: 500; font-size: 15px; height: 48px; }
.login-foot { margin-top: auto; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ─── cartes, mises en page ─── */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.card.pad { padding: 18px; }
.stack-gap { display: flex; flex-direction: column; gap: 14px; }
.card-title { padding: 14px 18px; border-bottom: 1px solid var(--line3); }
.card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line3); }
.card-bar:last-child { border-bottom: 0; border-top: 1px solid var(--line3); }
.empty { max-width: 520px; margin: 64px auto; padding: 0 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted2); }
.empty.small { margin: 24px auto; }
.split, .three, .person-page { display: flex; flex-wrap: wrap; gap: 24px; padding: 0 28px; }
.three, .person-page { padding-top: 24px; }
.center { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.wide-side { flex: 1 1 320px; max-width: 400px; gap: 20px; }
.people-side { gap: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-card { overflow-x: auto; }
.tbl th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line3); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.sel { background: #F5F8FF; }
.tbl tr.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.tbl tr.inactive td { opacity: 0.55; }
.tbl td .btn + .btn, .tbl td .icon-btn + .btn { margin-left: 4px; }

/* ─── jours tendus ─── */
.month { flex: 999 1 700px; min-width: 0; overflow-x: auto; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-width: 680px; }
.mg-dow { padding: 0 4px 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mc { min-height: 116px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; }
button.mc:hover { box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08); }
.mc.sel { border-width: 2px; padding: 9px; }
.mc.off { background: var(--off); border-color: var(--line3); cursor: default; }
.mc.out { opacity: 0.6; }
.mc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.mc-num { font-weight: 600; font-size: 13px; }
.mc.off .mc-num { color: var(--faint); }
.mc.today .mc-num { color: var(--accent); }
.mc-note { font-size: 11px; color: var(--muted); }
.mc-count { display: flex; align-items: baseline; gap: 4px; }
.big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bar { height: 6px; border-radius: 3px; background: var(--line3); overflow: hidden; }
.bar > div { height: 6px; }
.mc-abs { display: flex; flex-wrap: wrap; gap: 3px; }
.mc-abs .more { font-size: 11px; color: var(--muted); align-self: center; }
.day-detail { flex: 1 1 280px; max-width: 340px; align-self: flex-start; padding: 20px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.big-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.big-line .big { font-size: 26px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ─── projets ─── */
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side .eyebrow.mt { margin: 16px 0 6px; }
.plink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.plink:hover { background: var(--wash); color: var(--ink); }
.plink.cur { background: var(--soft); }
.plink.cur .n1 { font-weight: 700; }
.plink .n1 { font-weight: 500; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.p-title { display: flex; align-items: center; gap: 10px; }
.p-head > .grow-min > p { margin-top: 6px; }
.p-note { color: var(--muted2); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack { display: inline-flex; }
.stack .av { border: 2px solid #fff; }
.stack .av + .av { margin-left: -8px; }
.frise { padding: 16px 18px; overflow-x: auto; }
.frise-in { position: relative; min-width: 640px; }
.fw { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line2); }
.fw span { display: block; padding-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.frise-today { position: absolute; top: 20px; bottom: 0; border-left: 2px solid var(--accent); opacity: 0.4; }
.fbar { position: absolute; height: 22px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; min-width: 22px; }
.fbar .fl { position: absolute; left: calc(100% + 8px); white-space: nowrap; color: var(--ink2); font-weight: 500; }
.fbar.flip .fl { left: auto; right: calc(100% + 8px); }
.fbar.sel .fl { color: var(--accent); font-weight: 600; }
.fbar.sel { box-shadow: 0 0 0 2px var(--accent); }
.pchip-person { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--soft); font-size: 12.5px; }
.pchip-person:not(:has(.x)) { padding-right: 10px; }
.pchip-person .x { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pchip-person .x:hover { background: #E5E7EB; color: var(--ink); }
.drop-hint { display: none; height: 28px; padding: 0 10px; border-radius: 999px; border: 1.5px dashed var(--accent); color: var(--accent); font-size: 12.5px; font-weight: 500; align-items: center; }
.tbl tr.drop .drop-hint { display: inline-flex; }
.add-person { width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--faint); background: var(--bg); color: var(--muted); cursor: pointer; }
.add-person:hover { border-color: var(--accent); color: var(--accent); }
.warn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9A3412; }   /* à droite des bulles, dans la même rangée */
.chips .warn { margin-left: 4px; }
.avail { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.avail.draggable { cursor: grab; }
.avail.draggable:hover { border-color: var(--accent); }
.avail.dragging-src { opacity: 0.5; }
.st { font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.st0 { color: #166534; } .st1 { color: var(--muted); } .st2 { color: #991B1B; }

/* ─── vue personne ─── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat p { font-size: 12.5px; color: var(--muted); }
.stat strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.mini { height: 58px; border-radius: 8px; padding: 6px 7px; display: flex; flex-direction: column; justify-content: space-between; }
.mini.off { background: var(--off); }
.mini.out { opacity: 0.35; }
.mini-num { font-size: 12px; font-weight: 600; }
.mini.off .mini-num { color: var(--faint); }
.mini.today .mini-num { color: var(--accent); }
.halves { display: flex; gap: 2px; height: 12px; }
.halves span { flex: 1; border-radius: 3px; }
.up-row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line3); background: none; text-align: left; cursor: pointer; }
.up-row:last-child { border-bottom: 0; }
.up-row:hover { background: var(--wash); }
.up-date { width: 190px; color: var(--ink2); font-size: 13px; }
.pad-x { padding: 14px 18px; }
.copy-row { display: flex; gap: 6px; }
.copy-row input { flex: 1; }
.steps { margin: 0; padding-left: 18px; color: var(--muted2); font-size: 13px; line-height: 1.6; }

/* ─── administration ─── */
.admin { display: flex; flex-direction: column; gap: 16px; padding: 0 28px; }
.admin .toolbar { padding: 16px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 12px; color: var(--muted2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
#tab { display: flex; flex-direction: column; gap: 16px; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form .field { flex: 1 1 180px; }
.inline-form .btn { height: 38px; }
.card.pad > h2 + .form { margin-top: 12px; }
.who { display: flex; align-items: center; gap: 10px; }
.code-cell { display: inline-flex; align-items: center; gap: 4px; }
.code-cell code { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; background: var(--soft); padding: 5px 8px; border-radius: 6px; }
.code-big { margin: 16px 0; text-align: center; font: 700 32px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; padding: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.preview { display: flex; flex-wrap: wrap; gap: 8px; }
.pv { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; }

/* ─── petits écrans ─── */
@media (max-width: 900px) {
  .top { padding: 12px 16px; gap: 10px 14px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .toolbar, .legends, .key { padding-left: 16px; padding-right: 16px; }
  .tl-scroll { margin: 0 16px; max-height: calc(100vh - 300px); }
  :root { --name-w: 150px; }
  .tl-name { padding: 0 10px; gap: 8px; }
  .tl-name .av { width: 26px !important; height: 26px !important; }
  .split, .three, .person-page, .admin { padding-left: 16px; padding-right: 16px; }
  .side, .wide-side, .day-detail { max-width: none; flex-basis: 100%; }
  .day-detail { position: static; }
  .stats { grid-template-columns: 1fr; }
  .up-date { width: auto; }
  .row2 { grid-template-columns: 1fr; }
  .period { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ─── 1.1 : planning du projet, actions à attribuer, conflits, alertes ─── */
.item.info { opacity: 0.5; pointer-events: none; }
.item.band.info { opacity: 0.45; }
.item.conflict { box-shadow: inset 0 0 0 2px #DC2626; }
.item.conflict > .ic:first-child { color: #B91C1C; }
.item.unassigned { box-shadow: inset 0 0 0 1.5px currentColor; border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, 0.03) 6px 12px); }
.item.focus { animation: focus-ring 1.2s ease-out 3; }
@keyframes focus-ring { 0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(29, 78, 216, 0); } }
.pool-row { position: sticky; top: 62px; z-index: 3; background: #FFF4E6; box-shadow: 0 2px 4px rgba(17, 24, 39, 0.08); }   /* figée sous l'en-tête */
.pcol { position: absolute; top: 0; bottom: 0; border-left: 1px solid #F1DFC6; pointer-events: none; }
.pcol.off { background: rgba(17, 24, 39, 0.035); }
.pcol.mon { border-left-color: #E6CBA6; }
.tl-name.pool { background: #FFF4E6; color: var(--muted); }
.tl-name.pool.has { color: #B45309; }
.tl-name.pool .n1 { color: inherit; }
.legend.static { cursor: default; }
.ptl .toolbar, .ptl .legends, .ptl .key { padding-left: 0; padding-right: 0; }
.ptl .toolbar { padding-top: 0; }
.tl-scroll.in-project { margin: 0; max-height: calc(100vh - 330px); }
.period.sm { font-size: 16px; }
.bell { position: relative; width: 38px; height: 38px; color: var(--ink2); }
.bell-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.bell-badge.danger { background: #DC2626; }
.bell-badge[hidden] { display: none; }
.menu.alerts-menu { width: min(400px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; }
.al-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line3); }
.al-head span { font-size: 12px; color: var(--muted); }
.al-sec { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.al-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
.al-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
a.al-row:hover { background: var(--soft); color: var(--ink); }
.al-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.al-ic.danger { background: #FEE2E2; color: #B91C1C; }
.al-ic.warn { background: #FFEDD5; color: #9A3412; }
.al-ic.info { background: var(--accent-soft); color: var(--accent); }
.al-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.al-t { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.al-s { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.al-s .dot { width: 8px; height: 8px; }
.alerts-card { padding: 6px; display: flex; flex-direction: column; border-color: #FED7AA; background: #FFFCF8; }
.al-more { padding: 4px 10px 6px; }
.plink .nm { flex: 1; }
.p-alert { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #FFF7ED; color: #B45309; font-size: 11.5px; font-weight: 600; }
.tl-rows, .tl-head, .tl-foot { user-select: none; -webkit-user-select: none; }

/* ─── 1.2 : « Mon planning » façon Outlook ─── */
.person-page { flex-direction: column; flex-wrap: nowrap; }
.person-head { gap: 14px 16px; }
.person-head h1 { font-size: 22px; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted2); }
.mini-stats strong { color: var(--ink); }
.person-below { display: flex; flex-wrap: wrap; gap: 24px; }
.cal { overflow: hidden; }
.cal-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cal-title { font-size: 18px; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--wash); }
.cal-head span { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.cal-week { position: relative; min-height: calc(30px + var(--lanes) * (var(--lane-h) + 3px) + 24px); border-bottom: 1px solid var(--line2); }
.cal-week:last-of-type { border-bottom: 0; }
.cal-week.big { min-height: calc(46px + var(--lanes) * (var(--lane-h) + 4px) + 16px); }
.cal-days { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { position: relative; border: 0; border-right: 1px solid var(--line2); background: var(--bg); padding: 6px 8px; text-align: left;
  display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; min-width: 0; }
.cal-day:last-child { border-right: 0; }
.cal-day:hover { background: #F8FAFF; }
.cal-day.off { background: var(--off); }
.cal-day.out { background: var(--wash); }
.cal-day.out .n { color: var(--faint); }
.cal-num { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.cal-dow { font-weight: 500; color: var(--muted); text-transform: capitalize; }
.cal-day.today .n { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.cal-day.today { box-shadow: inset 0 2px 0 var(--accent); }
.cal-hol { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cal-more { position: absolute; left: 8px; bottom: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); }
.cal-more:hover { text-decoration: underline; }
.cal-bars { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); grid-auto-rows: var(--lane-h); row-gap: 3px;
  padding: 30px 3px 24px; pointer-events: none; }
.cal-week.big .cal-bars { padding-top: 40px; row-gap: 4px; padding-bottom: 12px; }
.cal-bar { pointer-events: auto; position: relative; z-index: 1; margin: 0 2px; min-width: 0; display: flex; align-items: center; gap: 5px; padding: 0 7px 0 8px;
  border: 0; border-left: 3px solid var(--solid); border-radius: 4px; background: var(--bg); color: var(--fg); font-size: 12px; font-weight: 600;
  text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; }
.cal-bar:hover { filter: brightness(0.96); box-shadow: 0 1px 4px rgba(17, 24, 39, 0.12); }
.cal-bar.cut-l { border-left-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-bar.weekly { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, color-mix(in srgb, var(--solid) 22%, var(--bg)) 6px 12px); }
.cal-bar.conflict { box-shadow: inset 0 0 0 1.5px #DC2626; }
.cal-bar.conflict > .ic:first-child { color: #B91C1C; }
.cal-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.cal-p { font-weight: 400; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
.cal-p::before { content: "· "; }
.cal-week.big .cal-bar { flex-wrap: wrap; align-content: center; row-gap: 0; padding-top: 3px; padding-bottom: 3px; white-space: normal; }
.cal-week.big .cal-t { white-space: nowrap; }
.cal-s { flex-basis: 100%; font-size: 11.5px; font-weight: 400; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-legend { padding: 10px 16px; border-top: 1px solid var(--line3); }
@media (max-width: 900px) {
  .cal-bar { font-size: 11px; padding: 0 4px 0 5px; gap: 3px; }
  .cal-p, .cal-bar .ic { display: none; }
  .cal-head span { padding: 6px 4px; font-size: 11px; }
  .cal-day { padding: 4px; }
}

.cal-hol { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-num { max-width: 100%; }
.cal-head .ds { display: none; }
@media (max-width: 900px) {
  .cal-head .dl { display: none; }
  .cal-head .ds { display: inline; }
  .cal-hol { display: none; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .top { gap: 10px; }
  .space-select select, .space-name { max-width: 170px; }
}

/* ─── 1.3 : numéros de semaine, télétravail ─── */
.dh.mon { border-left-color: #CBD0D8; }
.wkh { position: absolute; top: 0; height: 20px; display: flex; align-items: center; padding-left: 6px; border-left: 1px solid #CBD0D8;
  font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; letter-spacing: 0.01em; }
.wk-num { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.mc-top .wk-num { margin-left: auto; }
.cal-num .wk-num { margin-right: 2px; }
.face-off { position: relative; display: inline-flex; border-radius: 50%; opacity: 0.6; outline: 1.5px dashed #14B8A6; outline-offset: 0; }

/* ─── 1.4 : astreintes, actions sans date ─── */
.note-lock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--soft); color: var(--muted2); font-size: 13px; }
.undated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted2); font-style: italic; }
.undated-card .card-bar h2 { font-size: 15px; }
.und-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--soft); color: var(--muted2); display: inline-flex; align-items: center; justify-content: center; }
.oncall { display: flex; flex-direction: column; gap: 14px; padding: 0 28px; }
.oncall .toolbar { padding: 16px 0 0; }
.oc-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; }
.oc-list { overflow: hidden; }
.oc-row { display: grid; grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); border-bottom: 1px solid var(--line3); }
.oc-row:last-child { border-bottom: 0; }
.oc-row.past { background: var(--wash); }
.oc-row.now { box-shadow: inset 3px 0 0 var(--accent); }
.oc-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-right: 1px solid var(--line3); }
.oc-wk { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 1px 6px; }
.oc-segs { display: flex; flex-direction: column; }
.oc-seg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; }
.oc-seg + .oc-seg { border-top: 1px dashed var(--line2); }
.oc-seg.past { opacity: 0.7; }
.oc-seg.gap { background: #FEF2F2; color: #991B1B; }
.oc-seg.swap-src { background: var(--accent-soft); }
.oc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oc-none { width: 30px; height: 30px; border-radius: 50%; background: #FEE2E2; display: inline-flex; align-items: center; justify-content: center; }
.oc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oc-pick { height: 30px !important; width: auto !important; font-size: 13px; padding: 0 8px !important; }
.oc-help { padding: 0 2px 8px; }
.pv.skip { opacity: 0.45; text-decoration: line-through; }
@media (max-width: 900px) {
  .oncall { padding: 0 16px; }
  .oc-row { grid-template-columns: 1fr; }
  .oc-when { border-right: 0; padding-bottom: 0; }
}

/* ─── 1.5 : frise défilante, mode compact ─── */
.lbl-p { font-weight: 400; opacity: 0.75; }
.compact-toggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink2); cursor: pointer; user-select: none; }
.compact-toggle input { accent-color: var(--accent); margin: 0; }
.tl.compact .item { height: 20px; font-size: 11.5px; border-radius: 5px; padding: 0 6px; gap: 4px; }
.tl.compact .item .ic { width: 11px; height: 11px; }
.tl.compact .item.band, .tl.compact .drag-ghost.band { height: 12px; font-size: 9.5px; padding: 0 6px; }
.tl.compact .drag-ghost, .tl.compact .sel-box { height: 20px; font-size: 11.5px; }
.tl.compact .tl-name { gap: 8px; }
.tl.compact .tl-name .av { width: 24px !important; height: 24px !important; font-size: 9px !important; }
.tl.compact .tl-name .n1 { font-size: 13px; }
.tl.compact .tl-name .n2 { display: none; }
.tl.compact .tl-name.pool .ic { width: 15px; height: 15px; }
.tbl td.act-title { min-width: 240px; }
.oc-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 4px 0; }

/* ─── 1.6 : emojis ─── */
.emo { flex: none; font-size: 13px; line-height: 1; }
.tl.compact .emo { font-size: 11px; }
.emoji-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.emoji-input { width: 64px !important; text-align: center; font-size: 18px; }
.emoji-pal { display: flex; flex-wrap: wrap; gap: 4px; }
.emo-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 17px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.emo-btn:hover { background: var(--soft); }
.emo-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); background: var(--accent-soft); }
.emo-btn.none { color: var(--muted); }

/* ─── 1.7 : Mon planning en deux colonnes, création par glisser ─── */
.person-main { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.person-left { flex: 999 1 640px; min-width: 0; }
.person-main > .wide-side { flex: 1 1 320px; max-width: 380px; }
.card.upcoming .up-row { gap: 4px 10px; padding: 10px 16px; }
.card.upcoming .up-date { width: 100%; font-size: 12px; color: var(--muted); }
.cal { user-select: none; -webkit-user-select: none; }
.cal-day.drag-sel { background: #DBEAFE !important; }
.cal-tip { position: fixed; z-index: 60; }
@media (max-width: 900px) { .person-main > .wide-side { max-width: none; } }

/* frise de la vue Liste : compacte, hauteur limitée, repliable */
.frise { padding: 10px 14px 12px; }
.frise-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.frise-scroll { max-height: 150px; overflow: auto; }
.frise .fbar { height: 16px; font-size: 11px; border-radius: 4px; }
.frise .fbar .ic { width: 10px; height: 10px; }
.frise .fw span { font-size: 11px; }
.frise-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; max-width: 1100px; }

/* ─── 1.9 : créer une action de projet depuis le planning ─── */
.kind-switch { margin-bottom: 14px; align-self: flex-start; display: inline-flex; }
.proj-pick { margin-bottom: 14px; }
