/* ============ Jetons ============ */
:root {
  --glass: rgba(255, 255, 255, 0.74);
  --glass-2: rgba(255, 255, 255, 0.9);
  --soft: rgba(30, 35, 60, 0.055);
  --soft-2: rgba(30, 35, 60, 0.09);
  --line: rgba(30, 35, 60, 0.1);
  --ink: #1f2233;
  --ink-2: #555a6e;
  --ink-3: #8a8fa3;
  --dark: #1f2233;
  --on-dark: #ffffff;
  --accent: #8a5ce0;
  --green: #2fa35e;
  --red: #d9473a;
  --shadow: 0 12px 34px rgba(20, 30, 60, 0.16);
  --wash: radial-gradient(120% 60% at 0% 100%, rgba(255, 196, 214, 0.35), transparent 60%),
    radial-gradient(90% 50% at 100% 80%, rgba(255, 233, 160, 0.35), transparent 60%),
    radial-gradient(80% 40% at 50% 0%, rgba(190, 236, 214, 0.3), transparent 60%);
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --world: #8cc8ec;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --glass: rgba(26, 28, 42, 0.78);
    --glass-2: rgba(32, 34, 50, 0.94);
    --soft: rgba(255, 255, 255, 0.06);
    --soft-2: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.1);
    --ink: #eef0f8;
    --ink-2: #b7bbcc;
    --ink-3: #868aa0;
    --dark: #eef0f8;
    --on-dark: #1f2233;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
    --wash: radial-gradient(120% 60% at 0% 100%, rgba(160, 90, 140, 0.18), transparent 60%),
      radial-gradient(90% 50% at 100% 80%, rgba(160, 130, 60, 0.15), transparent 60%);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --glass: rgba(26, 28, 42, 0.78);
  --glass-2: rgba(32, 34, 50, 0.94);
  --soft: rgba(255, 255, 255, 0.06);
  --soft-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #eef0f8;
  --ink-2: #b7bbcc;
  --ink-3: #868aa0;
  --dark: #eef0f8;
  --on-dark: #1f2233;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  --wash: radial-gradient(120% 60% at 0% 100%, rgba(160, 90, 140, 0.18), transparent 60%),
    radial-gradient(90% 50% at 100% 80%, rgba(160, 130, 60, 0.15), transparent 60%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--world); color: var(--ink); font: 14px/1.4 var(--sans); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
code { font-family: var(--mono); }
.grow { flex: 1; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }

#world { position: fixed; inset: 0; image-rendering: pixelated; touch-action: none; cursor: grab; }
#world.dragging { cursor: grabbing; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}
:root[data-theme='dark'] .glass { border-color: rgba(255, 255, 255, 0.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .glass { border-color: rgba(255, 255, 255, 0.08); } }

/* ============ Boutons communs ============ */
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--ink-2); position: relative; flex: none; }
.icon-btn:hover { background: var(--soft-2); color: var(--ink); }
.icon-btn.dark { background: var(--dark); color: var(--on-dark); }
.icon-btn.dark.on { background: var(--accent); color: #fff; }
.icon-btn:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--soft); font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.btn-soft:hover { background: var(--soft-2); }
.btn-soft.sm { padding: 4px 8px; font-size: 11.5px; }
.btn-stop { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; color: var(--red); font-size: 12px; font-weight: 600; }
.btn-stop:hover { background: rgba(217, 71, 58, 0.1); }
.btn-dark { padding: 9px 14px; border-radius: 11px; background: var(--dark); color: var(--on-dark); font-weight: 600; }
.btn-accent { padding: 8px 14px; border-radius: 11px; background: #ef8a7a; color: #fff; font-weight: 600; }
.send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--soft-2); color: var(--ink-2); flex: none; }
.send:hover { background: var(--dark); color: var(--on-dark); }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 12.5px; }
.link:hover { color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.dot-green, .dot-grey, .dot-blue { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.dot-grey { background: var(--ink-3); }
.dot-blue { background: #3b8fea; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--c); color: #fff; font: 600 14px/1 var(--serif); flex: none; }
.av-s { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.av-xl { width: 46px; height: 46px; border-radius: 13px; font-size: 24px; }
.av-ic { color: #fff; }
.badge-chef { display: inline-block; padding: 1px 5px; border-radius: 5px; background: rgba(217, 71, 58, 0.12); color: var(--red); font: 600 9.5px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.chip-pole { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ink)); font-size: 11px; font-weight: 600; }
.chip-soft { display: inline-flex; align-items: center; gap: 0; padding: 4px 9px; border-radius: 9px; background: var(--soft); font-size: 12px; color: var(--ink-2); }
.chip-soft i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); margin-right: 6px; }
.chip-soft[data-tone='running'] i { background: #3b8fea; }
.chip-soft[data-tone='waiting'] i { background: #f2b530; }
.chip-soft[data-tone='done'] i { background: var(--green); }
.chip-soft[data-tone='stopped'] i { background: var(--red); }
.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pill-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pill-status[data-tone='work'] i { background: #3b8fea; }
.pill-status[data-tone='talk'] i { background: #e2554f; }
.pill-status[data-tone='free'] i { background: var(--ink-3); }
.pill-mini { padding: 2px 8px; border-radius: 7px; background: var(--soft); font-size: 11px; color: var(--ink-2); }
.pill-mini[data-tone='work'] { background: rgba(59, 143, 234, 0.14); color: #2d6fc0; }
.pill-mini[data-tone='talk'] { background: rgba(226, 85, 79, 0.12); color: var(--red); }
.badge-green { padding: 2px 7px; border-radius: 6px; background: rgba(47, 163, 94, 0.14); color: var(--green); font: 500 11px/1.4 var(--mono); }
.badge-mono { padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--ink-3); font: 500 11px/1.4 var(--mono); }

/* ============ Barre du haut ============ */
#topbar { position: fixed; top: 12px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; pointer-events: none; z-index: 20; }
.bar { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 7px; border-radius: 23px; pointer-events: auto; }
.bar-left { padding-left: 14px; min-width: 0; margin-right: auto; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 163, 94, 0.18); flex: none; }
.brand { font: 500 19px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; margin-right: 8px; }
.brand em { font-style: italic; font-weight: 600; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 7px 12px; border-radius: 15px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: var(--soft); }
.tabs button.on { background: var(--glass-2); color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(20, 30, 60, 0.1); }
.tab-badge, .dot-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 600 10px/1 var(--sans); vertical-align: 1px; }
.tabs .tab-badge { background: var(--soft-2); color: var(--ink-2); }
.tabs [data-tab='gallery'] .tab-badge { background: var(--red); color: #fff; }
.dot-badge { position: absolute; top: -3px; right: -3px; margin: 0; }
.bar-tools { margin: 0 auto; gap: 2px; }
.tool-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ink-2); }
.tool-btn:hover { background: var(--soft-2); color: var(--ink); }
.bar-tools .more { padding: 0 8px; font-size: 12px; color: var(--ink-3); }
.bar-right { gap: 4px; padding-left: 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 16px; background: var(--soft); color: var(--ink-3); font-size: 13px; min-width: 210px; }
.search span { flex: 1; text-align: left; white-space: nowrap; }
.search kbd { padding: 0 6px; border-radius: 5px; background: var(--glass-2); border: 1px solid var(--line); font: 11px/16px var(--mono); }
.counter { display: flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.counter i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 2px; }
.counter b { color: var(--ink); }
.counter b + b { margin-left: 6px; }

#company { position: fixed; top: 68px; left: 16px; padding: 8px 14px 10px; border-radius: 14px; z-index: 10; }
#company .sector { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #e46a52; color: #fff; font: 600 10px/1.4 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; }
#company strong { display: block; margin-top: 3px; font: 500 18px/1.15 var(--serif); }

/* ============ Rail ============ */
#rail { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; border-radius: 18px; z-index: 10; }
.rail-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--ink-2); }
.rail-btn i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.rail-btn:hover, .rail-btn.on { background: var(--soft-2); }
.rail-btn.on i { outline: 2px solid var(--c); outline-offset: 2px; }
.rail-btn.info { margin-bottom: 6px; }

/* ============ Composer ============ */
#composer { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(600px, calc(100% - 32px)); padding: 8px 10px 8px; border-radius: 20px; z-index: 15; }
body.drawer-open #composer { left: calc((100% - 436px) / 2); }
.run { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.run-txt { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run .mono { color: var(--ink-2); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--soft-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }
.spin.wait { border-top-color: #f2b530; animation-duration: 2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-wait { padding: 2px 8px; border-radius: 7px; background: rgba(242, 181, 48, 0.18); color: #a7750e; font-size: 11.5px; font-weight: 600; }
.comp-row { display: flex; align-items: center; gap: 6px; }
.who { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 11px; background: var(--soft); font-weight: 600; font-size: 13px; flex: none; }
.who:hover { background: var(--soft-2); }
.comp-row input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; outline: none; font-size: 14.5px; }
.comp-row input::placeholder { color: var(--ink-3); }
.mic.rec { color: #fff; background: var(--red); }
.comp-foot { display: flex; align-items: center; gap: 6px; padding: 4px 4px 0; font-size: 11.5px; color: var(--ink-3); }
.mini-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; background: var(--soft); color: var(--ink-2); font-size: 11px; }
.mini-btn:hover { background: var(--soft-2); }
.kbd-hint { padding: 3px 7px; border-radius: 7px; background: var(--soft); font-family: var(--mono); }
.file-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--ink-2); max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ============ Carte du bureau ============ */
#minimap { position: fixed; right: 16px; bottom: 16px; width: 236px; padding: 8px 10px 10px; border-radius: 18px; z-index: 14; transition: right 0.25s; }
body.drawer-open #minimap { right: 452px; }
#minimap header { display: flex; align-items: center; justify-content: space-between; font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
#minimap canvas { display: block; width: 100%; height: 140px; border-radius: 12px; background: rgba(160, 200, 230, 0.35); cursor: crosshair; }
.mm-zoom { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.mm-zoom button { width: 22px; height: 22px; border-radius: 6px; background: var(--glass-2); display: grid; place-items: center; font-size: 12px; color: var(--ink-2); }

#models { position: fixed; left: 16px; bottom: 18px; display: flex; align-items: center; gap: 6px; z-index: 12; }
.av-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1f2233; color: #fff; font: 600 13px/1 var(--serif); }
.model-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(10px); font-size: 11.5px; color: var(--ink-2); box-shadow: 0 2px 8px rgba(20, 30, 60, 0.1); }
.model-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
body:has(#composer) #models { left: 16px; }

/* ============ Étiquettes du monde ============ */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.house-chip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 11px; background: var(--glass-2); box-shadow: 0 4px 14px rgba(20, 30, 60, 0.18); pointer-events: auto; text-align: left; will-change: transform; }
.house-chip:hover { box-shadow: 0 0 0 2px var(--c), 0 4px 14px rgba(20, 30, 60, 0.18); }
.hc-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--c); color: #fff; }
.house-chip b { display: block; font-size: 12.5px; line-height: 1.1; }
.house-chip small { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.house-chip small i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.ag-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; translate: -50% -100%; gap: 4px; will-change: transform; }
.ag-name { display: none; padding: 1px 6px; border-radius: 6px; background: var(--glass-2); font-size: 10.5px; font-weight: 600; box-shadow: 0 2px 6px rgba(20, 30, 60, 0.15); }
.ag-label.names .ag-name { display: block; }
.ag-label.sel .ag-name { display: block; background: var(--c); color: #fff; }
.ag-tool { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 9px; background: var(--glass-2); box-shadow: 0 3px 10px rgba(20, 30, 60, 0.18); font-size: 11px; white-space: nowrap; color: var(--ink-2); }
.ag-tool b { color: var(--ink); font-weight: 600; }
.ag-tool code { font-size: 10.5px; color: var(--ink); }
.ag-bubble { max-width: 230px; padding: 7px 10px; border-radius: 12px; background: var(--glass-2); box-shadow: 0 6px 18px rgba(20, 30, 60, 0.2); font-size: 12px; line-height: 1.35; animation: pop 0.18s ease-out both; }
.ag-bubble small { display: block; margin-bottom: 2px; font: 600 9.5px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
@keyframes pop { from { transform: translateY(4px) scale(0.97); opacity: 0; } }

/* ============ Popovers ============ */
.popover { position: fixed; z-index: 50; width: 300px; max-height: min(70vh, 560px); overflow-y: auto; padding: 10px; border-radius: 16px; background: var(--glass-2); animation: pop 0.15s ease-out both; }
.popover.wide { width: 360px; }
.popover.settings { width: 320px; }
.pop-title { display: flex; align-items: center; gap: 6px; margin: 6px 4px 8px; font: 600 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pop-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 9px; font-size: 13px; text-align: left; }
.pop-row:hover { background: var(--soft); }
.pop-row small.ok { color: var(--green); }
.pop-row small.off { color: var(--ink-3); }
.help { margin: 0 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.help li { margin-bottom: 4px; }
.search-in { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--ink-3); margin-bottom: 8px; }
.search-in input { flex: 1; border: 0; background: none; outline: none; font-size: 13px; color: var(--ink); }
.pick-group { display: flex; align-items: center; gap: 6px; margin: 10px 6px 4px; font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px; border-radius: 10px; text-align: left; }
.pick-row:hover { background: var(--soft); }
.pick-row b { display: block; font-size: 13px; }
.pick-row small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--soft); }
.seg button { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.seg button.on { background: var(--glass-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 30, 60, 0.1); }
.seg.grid2 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
.seg.wide { display: grid; grid-template-columns: repeat(4, auto); margin: 0 14px 6px; }
.seg.wide button { padding: 5px 6px; font-size: 12px; white-space: nowrap; }
.seg small { color: var(--ink-3); }
.world-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 12.5px; }
.world-row.on { background: var(--soft); }
.world-row.soon { opacity: 0.55; }
.world-row b { display: block; font-weight: 600; }
.world-row small { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.25; }
.world-row em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.set-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 13px; }
.set-row div { flex: 1; }
.set-row b { display: block; font-weight: 600; }
.set-row small { display: block; color: var(--ink-3); font-size: 11.5px; }
.set-row select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass-2); }
.switch { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--soft-2); position: relative; cursor: pointer; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(14px); }

/* ============ Notifications ============ */
#toasts { position: fixed; top: 68px; right: 16px; width: 330px; display: flex; flex-direction: column; gap: 8px; z-index: 40; transition: right 0.25s; }
body.drawer-open #toasts { right: 452px; }
.toast { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass-2); animation: pop 0.2s ease-out both; transition: opacity 0.35s, transform 0.35s; }
.toast.out { opacity: 0; transform: translateY(-6px); }
.toast.clickable { cursor: pointer; }
.t-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #3b6fd9; color: #fff; flex: none; }
.toast b { font-size: 13px; }
.toast p { margin: 2px 0 3px; font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast small { font-size: 11px; color: var(--ink-3); }
.t-act { float: right; color: var(--ink-2); font-weight: 600; }

/* ============ Tiroir ============ */
#drawer { position: fixed; top: 68px; right: 16px; bottom: 16px; width: 420px; display: flex; flex-direction: column; border-radius: 22px; background-image: var(--wash); z-index: 30; animation: slide 0.22s ease-out both; overflow: hidden; }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
.dr-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; }
.crumb { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; font: 600 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb .dot { width: 7px; height: 7px; }
.dr-id { display: flex; align-items: center; gap: 12px; padding: 6px 18px 10px; }
.dr-id-txt { flex: 1; min-width: 0; }
.dr-id h2, .dr-title h2 { margin: 0; font: 500 26px/1.1 var(--serif); letter-spacing: -0.01em; }
.dr-id p, .dr-title p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; }
.dr-title { padding: 4px 18px 12px; }
.dr-tabs { display: flex; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dr-tabs button { padding: 8px 0; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dr-tabs button.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.dr-body { flex: 1; overflow-y: auto; padding: 14px 18px 18px; }
.dr-body h4, #drawer h4, #leftpanel h4 { margin: 18px 0 8px; font: 600 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.sec-head h4 { margin: 0 !important; }
.empty, .empty-box { color: var(--ink-3); font-size: 13px; text-align: center; padding: 14px; }
.empty-box { border-radius: 12px; background: var(--soft); }

/* discussion */
.chat-empty { text-align: center; padding: 28px 8px; }
.chat-empty h3 { margin: 0 0 8px; font: 500 22px/1.2 var(--serif); }
.chat-empty p { margin: 0 auto 16px; max-width: 300px; font-size: 13px; color: var(--ink-2); }
.sugg { display: block; margin: 8px auto 0; padding: 7px 12px; border-radius: 12px; background: var(--glass-2); box-shadow: 0 2px 8px rgba(20, 30, 60, 0.08); font-size: 12.5px; }
.sugg:hover { background: var(--soft-2); }
.chat-day { text-align: center; font-size: 11px; color: var(--ink-3); margin-bottom: 8px; }
.msg { margin-bottom: 14px; }
.msg small { display: block; font: 600 9.5px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.msg.me { text-align: right; }
.msg.me div { display: inline-block; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #1f2233; color: #fff; font-size: 13.5px; text-align: left; }
.bubble-ag { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--glass-2); box-shadow: 0 2px 10px rgba(20, 30, 60, 0.08); font-size: 13.5px; line-height: 1.45; }
.bubble-ag em { font-family: var(--serif); font-size: 15px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tool-chips span { padding: 2px 6px; border-radius: 5px; background: rgba(38, 166, 154, 0.13); color: #1d7f75; font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.chat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.chat-card { display: block; padding: 6px; border-radius: 12px; background: var(--glass-2); text-align: left; box-shadow: 0 2px 8px rgba(20, 30, 60, 0.08); }
.chat-card b { display: block; margin-top: 6px; font-size: 12px; line-height: 1.25; }
.chat-card small { font-size: 11px; color: var(--ink-3); }
.chat-input { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.chat-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 14px; background: var(--glass-2); box-shadow: 0 2px 8px rgba(20, 30, 60, 0.06); }
.chat-row input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; outline: none; }
.chat-hint { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.chat-hint span { display: inline-flex; align-items: center; gap: 4px; }

/* fiche */
.sheet-top { display: flex; gap: 14px; align-items: center; }
.portrait { width: 64px; height: 92px; image-rendering: pixelated; background: var(--soft); border-radius: 12px; padding: 4px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12.5px; }
.sheet dt { color: var(--ink-3); }
.sheet dd { margin: 0; }
.tool-inline { padding: 1px 5px; border-radius: 5px; background: var(--soft); font-size: 11px; }
.log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.log li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.log time { color: var(--ink-3); margin-right: 8px; font-family: var(--mono); font-size: 11px; }

/* équipe */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { position: relative; padding: 10px 12px 14px; border-radius: 13px; background: var(--glass-2); overflow: hidden; }
.stat small { display: block; font-size: 11px; color: var(--ink-3); }
.stat b { display: block; margin-top: 4px; font: 500 22px/1 var(--serif); }
.stat i { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--c) 45%, transparent); }
.studio { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 14px; text-align: left; background: color-mix(in srgb, var(--c) 16%, var(--glass-2)); }
.studio b { display: block; font: 500 17px/1.2 var(--serif); }
.studio small { color: var(--ink-2); font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tool-card { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; background: var(--glass-2); }
.tool-card.off { opacity: 0.55; }
.tool-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--ink-2); flex: none; }
.tool-card b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.tool-card small { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); }
.tool-card small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tool-card.off small i { background: var(--red); }
.skills { list-style: none; margin: 0; padding: 0; }
.skills li { display: grid; grid-template-columns: 1fr 90px 52px; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; }
.skills code { color: var(--ink-2); font-size: 11.5px; }
.skills small { color: var(--ink-3); font: 11px var(--mono); text-align: right; }
.pbar { display: block; height: 3px; border-radius: 2px; background: var(--soft-2); overflow: hidden; margin-top: 4px; }
.pbar i { display: block; height: 100%; background: var(--c, var(--accent)); transition: width 0.3s; }
.agent-list, .task-list, .note-list { list-style: none; margin: 0; padding: 0; }
.agent-list button, .task-list button, .note-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border-radius: 10px; text-align: left; }
.agent-list button:hover, .task-list button:hover, .note-list button:hover { background: var(--soft); }
.agent-list div, .task-list div, .note-list div { flex: 1; min-width: 0; }
.agent-list b, .task-list b, .note-list b { display: block; font-size: 13px; line-height: 1.25; }
.agent-list small, .task-list small, .note-list small { display: block; font-size: 11.5px; color: var(--ink-3); }
.task-list .when { font: 11px var(--mono); color: var(--ink-2); width: 74px; flex: none; }
.mini-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--ink-2); flex: none; }
.st-en-cours { color: #3b8fea; }
.st-terminée { color: var(--green); }
.st-arrêtée { color: var(--red); }
.vis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.vis small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.25; text-align: left; }
.settings-list { display: flex; flex-direction: column; }

/* validations */
.valid { padding: 12px; border-radius: 14px; background: var(--glass-2); margin-bottom: 10px; }
.valid header { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.valid header small { color: var(--ink-3); }
.serif { font-family: var(--serif); font-size: 15.5px; line-height: 1.45; }
.valid textarea, .pm-form textarea { width: 100%; margin-top: 6px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--soft); resize: vertical; outline: none; }
.valid-actions { display: flex; justify-content: space-between; margin-top: 6px; }

/* livrables */
.deliv-title { margin: 0 0 6px; font: 500 24px/1.15 var(--serif); letter-spacing: -0.01em; }
.deliv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; font-size: 12px; color: var(--ink-2); }
.deliv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.fmt-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--ink-2); }
.poster-stage { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--soft); justify-items: center; }
.poster-stage.all { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.poster-stage figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.poster-stage.all .poster-box.poster-l { width: 100%; }
.poster-stage.one .poster-box.poster-l { width: min(300px, 100%); }
.poster-stage figcaption { font-size: 11.5px; color: var(--ink-3); }
.poster-stage figcaption b { color: var(--ink); }
.fmt-thumbs { display: flex; gap: 8px; margin: 10px 0 6px; }
.fmt-thumbs button { width: 54px; padding: 3px; border-radius: 9px; border: 2px solid transparent; text-align: center; }
.fmt-thumbs button.on { border-color: #e46a52; }
.fmt-thumbs small { font-size: 10px; color: var(--ink-3); }
.related { margin-top: 18px; }
.rel-mission, .rel { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 11px; background: var(--glass-2); text-align: left; margin-bottom: 6px; font-size: 12.5px; }
.rel .thumb { width: 40px; flex: none; }
.rel b { display: block; font-size: 12.5px; }
.rel small { font-size: 11px; color: var(--ink-3); }
.summary { padding: 12px 14px; border-radius: 14px; background: var(--glass-2); }

/* vignettes */
.thumb { border-radius: 9px; overflow: hidden; background: var(--glass-2); }
.thumb-poster .poster { box-shadow: none; border: 0; }
.thumb-doc { display: flex; flex-direction: column; gap: 5px; padding: 30px 14px 14px; aspect-ratio: 4/5; background: linear-gradient(#fbfaf6, #f3efe6); }
.thumb-doc b { height: 7px; width: 70%; border-radius: 3px; background: #2a2140; opacity: 0.7; margin-bottom: 3px; }
.thumb-doc > i { height: 4px; border-radius: 2px; background: #c9c5bc; }
.thumb-doc > i:nth-child(3n) { width: 70%; }
.mini-tbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mini-tbl i { height: 7px; border-radius: 2px; background: #d9d5cb; }
.mini-tbl i:nth-child(-n + 3) { background: #9a95a8; }

/* document & tableau */
.doc { font-size: 13.5px; line-height: 1.55; }
.doc h2 { font: 500 21px/1.2 var(--serif); margin: 6px 0 6px; }
.doc h3 { font: 500 17px/1.25 var(--serif); margin: 16px 0 6px; }
.doc ul { padding-left: 18px; margin: 6px 0; }
.doc p { margin: 6px 0; }
.tag-md { padding: 0 4px; border-radius: 4px; background: var(--soft-2); font-size: 0.75em; color: var(--ink-2); }
.wikilink { color: #c44f3a; text-decoration: underline; text-underline-offset: 2px; }
.tbl-wrap { overflow-x: auto; border-radius: 12px; background: var(--glass-2); }
.tbl { border-collapse: collapse; width: 100%; font-size: 12px; }
.tbl th { text-align: left; font-weight: 600; padding: 8px; background: var(--soft); }
.tbl td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }

/* cerveau */
.graph { position: relative; margin: 0 18px; border-radius: 16px; background: var(--glass-2); overflow: hidden; }
.graph canvas { display: block; width: 100%; }
.legend { display: flex; gap: 12px; margin: 8px 18px 0; font-size: 11.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 5px; }
#drawer > .search-in { margin: 0 18px 10px; }
#drawer > h4 { margin-left: 18px; }
#drawer > .note-list { padding: 0 12px 16px; overflow-y: auto; flex: 1; }

/* ============ Panneau gauche (Tâches) ============ */
#leftpanel { position: fixed; top: 68px; left: 16px; bottom: 16px; width: 330px; display: flex; flex-direction: column; border-radius: 22px; background-image: var(--wash); z-index: 25; animation: slide 0.22s ease-out both; }
.lp-body { flex: 1; overflow-y: auto; padding: 0 14px 16px; }

/* ============ Grandes vues (Calendrier, Éditorial, Galerie) ============ */
#overlay { position: fixed; top: 68px; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; border-radius: 22px; background-image: var(--wash); z-index: 22; overflow: hidden; animation: pop 0.2s ease-out both; }
body.drawer-open #overlay { right: 452px; }
.ov-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.ov-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #1f2233; color: #fff; flex: none; }
.ov-head h2 { margin: 0; font: 500 22px/1.1 var(--serif); }
.ov-head p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.ov-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 8px; background: rgba(47, 163, 94, 0.14); color: var(--green); font-size: 11px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 12px; }
.flabel { font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 4px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--soft); font-size: 12px; color: var(--ink-2); }
.chip:hover { background: var(--soft-2); }
.chip.on { background: var(--glass-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 5px rgba(20, 30, 60, 0.12); }
.chip.on.dark { background: #1f2233; color: #fff; }
.chip small { color: var(--ink-3); }
.chip.net { padding: 4px 6px; }
.net-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 5px; background: var(--c); color: #fff; font: 700 9.5px/1 var(--sans); font-style: normal; }
.sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.week { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; padding: 0 16px 16px; overflow: auto; }
.day { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--soft); min-height: 200px; }
.day.today { background: color-mix(in srgb, #f0a090 22%, var(--soft)); }
.day h5 { margin: 0 0 4px; font: 500 12px/1 var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.day h5 b { font: 500 20px/1 var(--serif); color: var(--ink); text-transform: none; margin-left: 4px; }
.day.today h5 b { color: var(--red); }
.dash { color: var(--ink-3); }
.ev { display: block; width: 100%; padding: 6px 8px; border-radius: 9px; background: var(--glass-2); border-left: 3px solid var(--c); text-align: left; font-size: 12px; }
.ev small { display: flex; align-items: center; gap: 4px; font: 10.5px/1.3 var(--mono); color: var(--ink-3); }
.ev b { display: block; font-weight: 600; line-height: 1.25; }
.ev-task, .ev-deliv { background: color-mix(in srgb, var(--c) 12%, var(--glass-2)); }
.ed { flex: 1; display: grid; grid-template-columns: 250px 1fr; gap: 12px; padding: 0 16px 16px; min-height: 0; }
.ed-todo { overflow-y: auto; padding: 10px; border-radius: 16px; background: var(--soft); }
.ed-todo h4 { margin: 4px 0 2px !important; }
.count { margin-left: auto; padding: 0 6px; border-radius: 6px; background: var(--soft-2); font-size: 10.5px; }
.todo-card { display: flex; gap: 8px; padding: 8px; margin-top: 8px; border-radius: 12px; background: var(--glass-2); }
.todo-card .thumb { width: 44px; flex: none; }
.todo-card b { display: block; font-size: 12.5px; line-height: 1.25; }
.todo-card small { display: block; font-size: 11px; color: var(--ink-3); margin: 2px 0 6px; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(84px, 1fr); gap: 6px; overflow: auto; }
.mh { font: 600 10.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 4px 6px; }
.mc { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 12px; background: var(--soft); overflow: hidden; }
.mc.out { opacity: 0.45; }
.mc.today { background: color-mix(in srgb, #f0a090 22%, var(--soft)); }
.mn { font: 500 15px/1 var(--serif); }
.mn em { font: 600 9px/1 var(--sans); font-style: normal; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; background: #e46a52; color: #fff; vertical-align: 2px; }
.mev { display: block; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, var(--glass-2)); font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mev small { font-family: var(--mono); color: var(--ink-3); }
.plan-modal { position: absolute; inset: 70px 16px 16px auto; width: min(760px, calc(100% - 32px)); z-index: 3; }
.pm { height: 100%; display: flex; flex-direction: column; border-radius: 18px; background: var(--glass-2); box-shadow: var(--shadow); overflow: hidden; }
.pm header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pm-body { flex: 1; display: grid; grid-template-columns: 1fr 260px; gap: 14px; padding: 14px; overflow: auto; }
.pm-preview .poster-stage { padding: 12px; }
.doc-mini { display: flex; gap: 10px; align-items: center; }
.doc-mini .thumb { width: 90px; }
.pm-form { display: flex; flex-direction: column; gap: 6px; }
.pm-form label { font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 90px; gap: 6px; }
.row2 input { padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); }
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.net-btn { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: var(--soft); font-size: 12px; text-align: left; }
.net-btn.on { background: var(--glass-2); box-shadow: 0 0 0 1.5px var(--ink); font-weight: 600; }
.pm-pub { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(239, 138, 122, 0.14); display: flex; flex-direction: column; gap: 6px; }
.pm-pub b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pm-pub small { font-size: 11.5px; color: var(--ink-2); }
.gal-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 0 16px 16px; align-content: start; }
.gal-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; background: var(--glass-2); text-align: left; box-shadow: 0 2px 10px rgba(20, 30, 60, 0.08); transition: transform 0.15s; }
.gal-card:hover { transform: translateY(-2px); }
.gal-card > b { font-size: 13px; line-height: 1.25; }
.gal-card > small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.gal-tag { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; background: rgba(20, 22, 36, 0.72); color: #fff; font-size: 10.5px; }
.gal-fmts { display: flex; gap: 4px; justify-content: center; }
.gal-fmts i { padding: 2px 6px; border-radius: 6px; background: var(--soft-2); color: var(--ink-2); font: 600 10px/1.3 var(--sans); font-style: normal; }

/* ============ Mobile ============ */
@media (max-width: 1560px) {
  .bar-tools { display: none; }
}
@media (max-width: 1180px) {
  .search { min-width: 0; }
  .search span { display: none; }
}
@media (max-width: 900px) {
  #drawer { left: 16px; width: auto; top: auto; height: 72vh; }
  body.drawer-open #minimap, body.drawer-open #toasts, body.drawer-open #overlay { right: 16px; }
  body.drawer-open #composer { left: 50%; display: none; }
  .counter { display: none; }
}
@media (max-width: 760px) {
  #topbar { left: 10px; right: 10px; top: 10px; gap: 6px; }
  .bar { height: 42px; }
  .bar-left { flex: 1; padding-left: 10px; }
  .brand { font-size: 16px; }
  .tabs button { padding: 6px 9px; font-size: 12.5px; }
  .bar-right .icon-btn[data-settings], .bar-right .icon-btn.dark { display: none; }
  #company, #rail, #models, #minimap { display: none; }
  #composer { bottom: 10px; width: calc(100% - 20px); }
  .comp-foot [data-hint], .kbd-hint { display: none; }
  .search { padding: 0 8px; }
  #drawer, #overlay, #leftpanel { left: 10px; right: 10px; bottom: 10px; width: auto; }
  #overlay, #leftpanel { top: 62px; }
  #toasts { right: 10px; left: 10px; width: auto; top: 60px; }
  .week { grid-template-columns: repeat(7, 150px); }
  .ed { grid-template-columns: 1fr; }
  .ed-todo { max-height: 220px; }
  .pm-body { grid-template-columns: 1fr; }
  .plan-modal { inset: 62px 0 0 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
