/* =========================================================
   BeOoh — Espace client (app shell + composants)
   S'appuie sur ../assets/css/base.css (tokens, .btn, .input, .chip, .glass, .logo-word…)
   ========================================================= */
:root {
  --sb-w: 256px; --sb-w-c: 76px; --top-h: 64px;
  --panel: #0e1119; --panel-2: #131722;
  --r-panel: 18px;
}

/* ---------- Shared small atoms (also used by login) ---------- */
.icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
i[data-icon] { display: inline-flex; font-style: normal; }
@keyframes spin { to { transform: rotate(360deg); } }
.small { font-size: 13px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; gap: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: rgba(255,77,94,.14); color: #ffb3bb; border: 1px solid rgba(255,77,94,.4); }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 0 30px rgba(255,77,94,.45); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.chip--xs { padding: 3px 9px; font-size: 11px; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); transition: color .25s; }
.link-btn:hover { color: var(--cyan); }
.link-btn .icon { width: 14px; height: 14px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.icon-btn:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--line); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; position: relative; flex-shrink: 0; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
.pulse--sm { width: 6px; height: 6px; vertical-align: middle; margin-right: 4px; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Checkbox */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--muted); user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; transition: background .25s, border-color .25s, box-shadow .25s; flex-shrink: 0; }
.check__box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px rgba(123,92,255,.5); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(0,229,255,.35); }

/* Switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); transition: background .3s, box-shadow .3s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + span { background: linear-gradient(120deg, var(--cyan), var(--violet)); border-color: transparent; box-shadow: 0 0 16px rgba(0,229,255,.35); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,229,255,.35); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 12000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: min(380px, calc(100vw - 32px)); }
.toast { pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px 16px; border-radius: 14px; overflow: hidden;
  background: rgba(19,23,34,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); transform: translateX(110%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateX(30%); opacity: 0; }
.toast__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: rgba(0,229,255,.12); color: var(--cyan); }
.toast__icon:empty::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.toast__icon .icon { width: 16px; height: 16px; }
.toast__body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.toast__body b { font-size: 14px; }
.toast__body span { color: var(--muted); }
.toast__timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; transform-origin: left; animation: toastTimer 4.2s linear forwards; color: var(--cyan); opacity: .7; }
@keyframes toastTimer { to { transform: scaleX(0); } }
.toast--success .toast__icon { background: rgba(34,227,155,.12); color: var(--green); } .toast--success .toast__timer { color: var(--green); }
.toast--error .toast__icon { background: rgba(255,77,94,.14); color: var(--red); } .toast--error .toast__timer { color: var(--red); }
.toast--warn .toast__icon { background: rgba(255,184,0,.12); color: var(--amber); } .toast--warn .toast__timer { color: var(--amber); }

/* =========================================================
   APP SHELL
   ========================================================= */
.app-body { overflow-x: hidden; background: radial-gradient(900px 500px at 85% -10%, rgba(123,92,255,.10), transparent 60%), radial-gradient(700px 400px at 20% 0%, rgba(0,229,255,.05), transparent 60%), var(--bg); background-attachment: fixed; }
.app { min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sb-w); z-index: 300; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px;
  background: rgba(8,10,16,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--line); transition: width .45s var(--ease), transform .45s var(--ease); overflow: hidden; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0 10px; min-height: 40px; }
.sidebar__logo { font-size: 25px; white-space: nowrap; }
.sidebar__logo-rest { transition: opacity .3s; }
.org { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: left; transition: border-color .3s, background .3s; width: 100%; }
.org:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.org__avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 13px; flex-shrink: 0; background: linear-gradient(135deg, #1f2433, #2a3045); border: 1px solid var(--line-2); color: var(--cyan); }
.org__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; white-space: nowrap; }
.org__text b { font-size: 14px; } .org__text small { font-size: 12px; color: var(--dim); }
.org__chev { color: var(--dim); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.nav__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 16px 12px 8px; white-space: nowrap; transition: opacity .3s; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: 14.5px; white-space: nowrap; transition: color .25s, background .25s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.is-active { color: var(--text); background: linear-gradient(90deg, rgba(0,229,255,.12), rgba(123,92,255,.06) 70%, transparent); }
.nav a.is-active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); }
.nav a.is-active .icon { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0,229,255,.6)); }
.nav a span { transition: opacity .3s; }
.nav__badge { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--muted); transition: opacity .3s; }
.nav__badge--red { background: rgba(255,77,94,.16); color: #ff8f9a; }
.nav__badge--amber { background: rgba(255,184,0,.14); color: var(--amber); }
.nav__badge:empty, .nav__badge[data-zero] { display: none; }
.sidebar__foot { display: flex; flex-direction: column; gap: 10px; }
.plan { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(123,92,255,.12), rgba(0,229,255,.03)); white-space: nowrap; overflow: hidden; transition: opacity .3s; }
.plan__row { display: flex; justify-content: space-between; align-items: center; }
.plan__title { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; } .plan__title .icon { width: 15px; height: 15px; color: var(--amber); }
.plan p { font-size: 12px; color: var(--muted); margin: 6px 0 10px; white-space: normal; line-height: 1.45; }
.plan small { font-size: 11px; color: var(--dim); }
.meter { height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 6px; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.sidebar__site { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--dim); font-size: 13.5px; white-space: nowrap; transition: color .25s, background .25s; }
.sidebar__site:hover { color: var(--text); background: rgba(255,255,255,.04); }

/* Collapsed */
.is-collapsed .sidebar { width: var(--sb-w-c); }
.is-collapsed .sidebar__logo-rest, .is-collapsed .nav a span, .is-collapsed .nav__label, .is-collapsed .nav__badge, .is-collapsed .org__text, .is-collapsed .org__chev, .is-collapsed .sidebar__site span { opacity: 0; pointer-events: none; }
.is-collapsed .plan { opacity: 0; height: 0; padding: 0; border: 0; }
.is-collapsed .sidebar__head { flex-direction: column; gap: 10px; padding: 4px 0 0; }
.is-collapsed .sidebar__head .logo-word { margin-left: 0; }
.is-collapsed .org { padding: 10px 7px; }
.is-collapsed .nav__label { height: 10px; padding: 6px 0; }
.is-collapsed .main { padding-left: var(--sb-w-c); }
.is-collapsed .sidebar__collapse .icon { transform: scaleX(-1); }
@media (min-width: 761px) { .is-collapsed .sidebar__logo-rest { display: none; } .is-collapsed .sidebar__logo { font-size: 30px; } }

/* ---------- Main + topbar ---------- */
.main { padding-left: var(--sb-w); transition: padding-left .45s var(--ease); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 200; height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 28px;
  background: rgba(5,6,10,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar__menu { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.crumbs__root { color: var(--dim); }
.crumbs .icon { width: 14px; height: 14px; color: var(--dim); }
.search { position: relative; flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; }
.search > .icon { position: absolute; left: 14px; color: var(--dim); width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 56px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 14px; transition: border-color .3s, background .3s, box-shadow .3s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: rgba(0,229,255,.5); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(0,229,255,.1); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-family: var(--f-mono); color: var(--muted); border: 1px solid var(--line); background: rgba(34,227,155,.05); white-space: nowrap; }
.badge-count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--magenta); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(255,45,155,.7); transition: transform .3s var(--ease); }
.badge-count.is-zero { transform: scale(0); }
.badge-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.avatar-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.avatar-btn:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.avatar-btn__name { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.avatar-btn__name b { font-size: 13px; } .avatar-btn__name small { font-size: 11px; color: var(--dim); }
.avatar-btn .icon { width: 14px; height: 14px; color: var(--dim); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 12px; color: #fff; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.avatar--lg { width: 42px; height: 42px; font-size: 14px; }
.avatar--xl { width: 56px; height: 56px; font-size: 18px; }

/* Dropdowns */
.dd-wrap { position: relative; }
.dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 400; min-width: 240px; border-radius: 16px; padding: 6px;
  background: rgba(17,20,29,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.dropdown.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.dropdown__head b { font-size: 14px; }
.dropdown__head .link-btn { font-size: 12.5px; white-space: nowrap; }
.dropdown__foot { display: block; text-align: center; padding: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.dropdown__foot:hover { color: var(--cyan); }
.dropdown__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.notif { width: 380px; }
.notif__list { max-height: 360px; overflow: auto; }
.notif__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; position: relative; cursor: pointer; transition: background .2s; }
.notif__item:hover { background: rgba(255,255,255,.04); }
.notif__item.is-unread::after { content: ''; position: absolute; right: 12px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.notif__item p { font-size: 13px; color: var(--muted); line-height: 1.45; padding-right: 14px; }
.notif__item b { font-size: 13.5px; display: block; }
.notif__item small { font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); }
.tone-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tone-ico .icon { width: 16px; height: 16px; }
.tone--red { background: rgba(255,77,94,.14); color: var(--red); }
.tone--amber { background: rgba(255,184,0,.13); color: var(--amber); }
.tone--violet { background: rgba(123,92,255,.16); color: #a993ff; }
.tone--green { background: rgba(34,227,155,.13); color: var(--green); }
.tone--cyan { background: rgba(0,229,255,.12); color: var(--cyan); }
.tone--magenta { background: rgba(255,45,155,.14); color: var(--magenta); }
.user-dd { width: 250px; }
.user-dd__head { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dd__head b { display: block; font-size: 14px; } .user-dd__head small { color: var(--dim); font-size: 12px; }
.user-dd a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.user-dd a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.user-dd a .icon { width: 16px; height: 16px; }
.user-dd__logout:hover { color: #ff8f9a !important; background: rgba(255,77,94,.08) !important; }
.search__results { left: 0; right: 0; min-width: 0; transform-origin: top center; max-height: 420px; overflow: auto; }
.sr-group { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 10px 12px 6px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.sr-item small { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
.sr-item:hover, .sr-item.is-sel { background: rgba(0,229,255,.08); }
.sr-item .icon { width: 16px; height: 16px; color: var(--muted); }
.sr-item mark { background: none; color: var(--cyan); }
.sr-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--dim); }

/* ---------- Content + views ---------- */
.content { padding: 28px 28px 80px; max-width: 1520px; margin: 0 auto; }
.view { display: none; }
.view.is-active { display: block; animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.view.is-leaving { display: block; animation: viewOut .2s ease both; }
@keyframes viewOut { to { opacity: 0; transform: translateY(-8px); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.035em; margin: 10px 0 6px; line-height: 1.08; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel__head h3 { font-size: 16.5px; letter-spacing: -.02em; }
.panel__head p { margin-top: 3px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); gap: 2px; position: relative; }
.seg button { position: relative; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; color: var(--muted); transition: color .25s, background .25s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.is-on { color: var(--text); background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.3); }
.seg button em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.seg--sm button { padding: 6px 12px; font-size: 13px; }

/* ---------- Dashboard ---------- */
.alert { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-panel); margin-bottom: 20px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,77,94,.12), rgba(255,77,94,.03) 60%, transparent), var(--panel); border: 1px solid rgba(255,77,94,.32); }
.alert::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); box-shadow: 0 0 16px var(--red); }
.alert__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,77,94,.15); color: var(--red); flex-shrink: 0; animation: alertPulse 2s infinite; }
@keyframes alertPulse { 50% { box-shadow: 0 0 0 6px rgba(255,77,94,.08); } }
.alert__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert__body b { font-size: 15px; } .alert__body span { font-size: 13.5px; color: var(--muted); }
.alert__actions { display: flex; gap: 8px; flex-shrink: 0; }
.alert.is-resolved { border-color: rgba(34,227,155,.35); background: linear-gradient(90deg, rgba(34,227,155,.1), transparent 60%), var(--panel); }
.alert.is-resolved::before { background: var(--green); box-shadow: 0 0 16px var(--green); }
.alert.is-resolved .alert__icon { background: rgba(34,227,155,.14); color: var(--green); animation: none; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--r-panel); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%), var(--panel); display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: border-color .3s, transform .4s var(--ease); }
.kpi:hover { border-color: var(--line-2); transform: translateY(-2px); }
.kpi::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(0,229,255,.09), transparent 50%); }
.kpi:hover::after { opacity: 1; }
.kpi__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.kpi__label .icon { width: 15px; height: 15px; }
.kpi__value { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: .5em; color: var(--dim); margin-left: 2px; letter-spacing: 0; }
.kpi__foot { font-size: 11.5px; color: var(--dim); margin-top: auto; }
.delta { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.delta--up { background: rgba(34,227,155,.12); color: var(--green); }
.delta--down { background: rgba(255,77,94,.13); color: #ff8f9a; }
.kpi__bar { height: 6px; border-radius: 6px; background: rgba(255,77,94,.25); overflow: hidden; margin-top: auto; }
.kpi__bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: inherit; box-shadow: 0 0 10px rgba(34,227,155,.6); animation: barIn 1.4s var(--ease) both; }
@keyframes barIn { from { width: 0; } }
.spark { width: 100%; height: 32px; overflow: visible; }
.kpi__dots { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.kpi__dots span { font-size: 11px; padding: 3px 8px 3px 6px; border-radius: 99px; background: rgba(255,255,255,.05); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.kpi__dots span i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.uptime-bars { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
.uptime-bars span { flex: 1; border-radius: 2px; background: var(--green); opacity: .75; height: 100%; transform-origin: bottom; animation: upBar .8s var(--ease) both; }
.uptime-bars span.is-warn { background: var(--amber); height: 70%; }
@keyframes upBar { from { transform: scaleY(0); } }

.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }
.chart-box { position: relative; height: 290px; }
.chart-box--tall { height: 340px; }
.chart-fallback { display: grid; place-items: center; height: 100%; color: var(--dim); font-size: 13px; }
.status-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; cursor: pointer; transition: background .2s; }
.status-list li:hover { background: rgba(255,255,255,.04); }
.status-list .sl__name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.status-list .sl__name b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-list .sl__name small { font-size: 12px; color: var(--dim); }
.status-list .sl__meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.sdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--green); box-shadow: 0 0 10px var(--green); }
.sdot--warning { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.sdot--offline { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s infinite; }
.sdot--standby { background: var(--dim); box-shadow: none; }
.thumb-mini { width: 46px; height: 28px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line-2); }
.thumb-mini .ad__slide { padding: 3px 5px; justify-content: center; }
.thumb-mini .ad__slide small, .thumb-mini .ad__slide span { display: none; }
.thumb-mini .ad__slide b { font-size: 8px; line-height: 1; letter-spacing: -.02em; }
.pl__strip .ad__slide span { display: none; }
.upcoming, .feed { list-style: none; display: flex; flex-direction: column; }
.upcoming li { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 11px 4px; border-bottom: 1px dashed var(--line); }
.upcoming li:last-child { border: 0; }
.upcoming__when { display: flex; flex-direction: column; font-size: 12px; color: var(--dim); line-height: 1.35; }
.upcoming__when b { font-family: var(--f-mono); font-size: 15px; color: var(--text); font-weight: 600; }
.upcoming__body { position: relative; padding-left: 14px; }
.upcoming__body::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--c, var(--dim)); box-shadow: 0 0 10px var(--c, transparent); }
.upcoming__body b { font-size: 14px; font-weight: 500; display: block; line-height: 1.35; }
.upcoming__body small { font-size: 12.5px; color: var(--dim); }
.feed li { display: flex; gap: 12px; padding: 10px 2px; align-items: flex-start; }
.feed li p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.feed li p b { color: var(--text); font-weight: 500; }
.feed li small { display: block; font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); margin-top: 2px; }
.feed li.is-new { animation: feedIn .7s var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-12px); background: rgba(0,229,255,.08); } }
.feed .tone-ico { width: 30px; height: 30px; border-radius: 9px; }
.feed .tone-ico .icon { width: 14px; height: 14px; }

/* ---------- Ad preview (live screen content) ---------- */
.ad { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size; background: #030407; isolation: isolate; transition: filter .25s; }
.ad__bg { position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(40% 50% at 30% 30%, var(--c1) 0%, transparent 70%), radial-gradient(45% 55% at 75% 70%, var(--c2) 0%, transparent 70%), radial-gradient(30% 40% at 60% 20%, rgba(255,255,255,.25), transparent 70%), #07080d;
  animation: adBg 9s ease-in-out infinite alternate; opacity: .85; }
@keyframes adBg { 0% { transform: translate(-6%, -4%) rotate(0deg) scale(1); } 100% { transform: translate(6%, 5%) rotate(14deg) scale(1.15); } }
.ad__slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 8cqmin 9cqmin; gap: 1.5cqmin; opacity: 0; transform: translateY(6cqmin); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.ad__slide.is-on { opacity: 1; transform: none; }
.ad__slide small { font-family: var(--f-mono); font-size: max(6px, 6.5cqmin); letter-spacing: .14em; color: rgba(255,255,255,.85); }
.ad__slide b { font-family: var(--f-display); font-weight: 700; font-size: max(10px, 19cqmin); line-height: .95; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 4cqmin rgba(255,255,255,.35); }
.ad__slide span { font-size: max(7px, 7.5cqmin); color: rgba(255,255,255,.88); }
.ad--portrait .ad__slide { justify-content: flex-end; padding-bottom: 14cqmin; }
.ad--portrait .ad__slide b { font-size: max(10px, 22cqmin); }
.ad__brand { position: absolute; right: 6cqmin; top: 6cqmin; font-family: var(--f-display); font-weight: 700; font-size: max(6px, 6cqmin); color: rgba(255,255,255,.8); letter-spacing: -.02em; }
.ad__pixels { position: absolute; inset: 0; pointer-events: none; z-index: 3; background-image: radial-gradient(transparent 45%, rgba(0,0,0,.55) 75%); background-size: 3px 3px; }
.ad__scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.07), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.ad__progress { position: absolute; left: 0; bottom: 0; height: 2px; z-index: 4; background: rgba(255,255,255,.7); width: 0; }
.ad.is-cycling .ad__progress { animation: adProg var(--dur, 4s) linear; }
.ad[data-fast] { --dur: 2s; }
.ad--still .ad__bg { animation: none; transform: translate(-4%, -2%) rotate(6deg); }
@keyframes adProg { to { width: 100%; } }
.ad__state { position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-family: var(--f-mono); font-size: max(9px, 6cqmin); color: var(--muted); }
.ad__state .icon { width: max(16px, 12cqmin); height: max(16px, 12cqmin); }
.ad--offline .ad__brand, .ad--off .ad__brand, .ad--offline .ad__bg, .ad--offline .ad__slide, .ad--off .ad__bg, .ad--off .ad__slide, .ad--off .ad__scan, .ad--offline .ad__scan { display: none; }
.ad--offline { background: #050507; }
.ad--offline::before { content: ''; position: absolute; inset: -50%; opacity: .2; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: static .25s steps(4) infinite; }
@keyframes static { 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -6%); } 75% { transform: translate(-3%, -2%); } }
.ad--offline .ad__state { display: flex; color: #ff8f9a; }
.ad--off { background: #000; }
.ad--off .ad__state { display: flex; color: var(--dim); }
.ad.is-rebooting .ad__bg, .ad.is-rebooting .ad__slide, .ad.is-rebooting .ad__scan { opacity: 0 !important; }
.ad.is-rebooting::after { content: 'Redémarrage…'; position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; font-family: var(--f-mono); font-size: max(9px, 6cqmin); color: var(--cyan); background: #000; animation: blink 1s infinite; }

/* ---------- Screens grid ---------- */
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.scard { position: relative; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--panel); overflow: hidden; cursor: pointer; transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); text-align: left; display: flex; flex-direction: column; }
.scard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03); }
.scard:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.scard.is-hidden { display: none; }
.scard__stage { position: relative; height: 196px; display: grid; place-items: center; padding: 18px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), #07080d; border-bottom: 1px solid var(--line); }
.scard__stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 12px 12px; }
.scard--offline .scard__stage { background: #07080d; }
.frame { position: relative; border-radius: 6px; padding: 4px; background: linear-gradient(160deg, #2a2f3d, #101319); box-shadow: 0 18px 40px -12px rgba(0,0,0,.9), 0 0 50px -10px color-mix(in srgb, var(--c1) 55%, transparent); }
.frame--wide { width: 100%; max-width: 320px; aspect-ratio: 2 / 1; }
.frame--portrait { height: 100%; aspect-ratio: 9 / 16; }
.frame .ad { border-radius: 3px; }
.frame::after { content: ''; position: absolute; inset: 4px; border-radius: 3px; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 35%); z-index: 7; }
.scard__live { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; background: rgba(5,6,10,.7); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.scard__live .sdot { width: 6px; height: 6px; }
.scard__body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.scard__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scard__title b { font-size: 15.5px; font-weight: 600; display: block; letter-spacing: -.01em; }
.scard__title small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); }
.scard__title small .icon { width: 13px; height: 13px; }
.status-tag { font-family: var(--f-mono); font-size: 11px; padding: 3px 9px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.status-tag--online { background: rgba(34,227,155,.1); color: var(--green); }
.status-tag--warning { background: rgba(255,184,0,.12); color: var(--amber); }
.status-tag--offline { background: rgba(255,77,94,.13); color: #ff8f9a; }
.status-tag--standby { background: rgba(255,255,255,.06); color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metric small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); white-space: nowrap; }
.metric small .icon { width: 12px; height: 12px; }
.metric b { font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.metric b.hot { color: var(--amber); }
.scard__foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: auto; gap: 10px; }
.scard__foot span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__foot i.cdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.scard__foot .icon { width: 14px; height: 14px; color: var(--dim); }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(2,3,6,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer-scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(540px, 100vw); display: flex; flex-direction: column;
  background: rgba(11,13,20,.97); backdrop-filter: blur(20px); border-left: 1px solid var(--line-2); box-shadow: -40px 0 100px -20px rgba(0,0,0,.8);
  transform: translateX(105%); transition: transform .55s var(--ease); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 22px; letter-spacing: -.03em; margin-top: 2px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 22px 40px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.drawer__body > * { flex-shrink: 0; }
.d-preview-wrap { position: relative; display: grid; place-items: center; height: 250px; border-radius: 16px; padding: 20px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--c1, #00e5ff) 25%, transparent), transparent 70%), #06070b; border: 1px solid var(--line); }
.d-preview-wrap::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 12px 12px; }
.d-preview { position: relative; height: 100%; width: 100%; display: grid; place-items: center; }
.d-status { display: flex; flex-wrap: wrap; gap: 8px; }
.d-controls { display: flex; flex-direction: column; gap: 10px; }
.control { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 10px; }
.control--inline { flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; }
.control--inline > div { display: flex; flex-direction: column; gap: 2px; }
.control span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.control span .icon { width: 16px; height: 16px; color: var(--muted); }
.control small { font-size: 12.5px; }
.control__row { display: flex; justify-content: space-between; align-items: center; }
.control__row--sub .check { font-size: 12.5px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--cyan), var(--violet) var(--p, 85%), rgba(255,255,255,.1) var(--p, 85%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,229,255,.25), 0 0 16px rgba(0,229,255,.6); cursor: grab; }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,229,255,.25), 0 0 16px rgba(0,229,255,.6); cursor: grab; }
.range:disabled { opacity: .4; cursor: not-allowed; }
.spin .icon, .icon.spin { animation: spin .8s linear infinite; }
.d-block { display: flex; flex-direction: column; gap: 12px; }
.d-block h4 { font-size: 14px; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.d-block__head { display: flex; justify-content: space-between; align-items: center; }
.temp-chart { height: 120px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); padding: 10px 6px 4px; position: relative; }
.temp-chart svg { width: 100%; height: 100%; overflow: visible; }
.d-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.d-info div { background: var(--bg-2); padding: 10px 14px; }
.d-info dt { font-size: 11.5px; color: var(--dim); } .d-info dd { font-size: 13.5px; font-family: var(--f-mono); }
.d-playlist { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.d-playlist li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); font-size: 13.5px; }
.d-playlist li.is-playing { border-color: rgba(0,229,255,.4); background: rgba(0,229,255,.05); }
.d-playlist li small { margin-left: auto; font-family: var(--f-mono); color: var(--dim); font-size: 12px; }
.d-playlist .thumb-mini { width: 56px; height: 32px; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-left: 6px; }
.eq i { width: 2px; background: var(--cyan); animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { height: 2px; } to { height: 12px; } }

/* ---------- Contenus ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 34px 20px; border-radius: var(--r-panel); cursor: pointer; position: relative; overflow: hidden;
  border: 1.5px dashed rgba(255,255,255,.16); background: radial-gradient(400px 160px at 50% 0%, rgba(0,229,255,.06), transparent), rgba(255,255,255,.015); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.dropzone:hover { border-color: rgba(0,229,255,.45); }
.dropzone.is-over { border-color: var(--cyan); background: radial-gradient(500px 220px at 50% 30%, rgba(0,229,255,.16), transparent), rgba(0,229,255,.03); transform: scale(1.01); box-shadow: inset 0 0 40px rgba(0,229,255,.1); }
.dropzone__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(123,92,255,.18)); color: var(--cyan); margin-bottom: 4px; box-shadow: 0 0 30px rgba(0,229,255,.15); transition: transform .4s var(--ease); }
.dropzone.is-over .dropzone__icon { transform: translateY(-4px) scale(1.08); }
.dropzone__icon .icon { width: 22px; height: 22px; }
.dropzone b { font-size: 15.5px; }
.dropzone u { color: var(--cyan); text-decoration: none; }
.uploads { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.upload { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); animation: feedIn .5s var(--ease) both; }
.upload__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.upload__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.upload__row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload__row small { font-family: var(--f-mono); color: var(--muted); font-size: 12px; white-space: nowrap; }
.upload__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.upload__bar span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px var(--cyan); transition: width .2s linear; }
.upload.is-done { border-color: rgba(34,227,155,.3); }
.upload.is-done .upload__bar span { background: var(--green); box-shadow: 0 0 10px var(--green); }
.upload.is-gone { animation: viewOut .4s ease forwards; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; gap: 12px; flex-wrap: wrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mcard { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.mcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.mcard.is-new { animation: popIn .7s var(--ease) both; box-shadow: 0 0 0 1px rgba(0,229,255,.5), 0 0 30px rgba(0,229,255,.2); }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } }
.mcard__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mcard__thumb .ad__slide { padding-top: 34px; justify-content: flex-start; }
.mcard__type { position: absolute; left: 8px; top: 8px; z-index: 8; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; font-size: 10.5px; font-family: var(--f-mono); background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.mcard__type .icon { width: 11px; height: 11px; }
.mcard__dur { position: absolute; right: 8px; bottom: 8px; z-index: 8; font-family: var(--f-mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.65); }
.mcard__play { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.25); }
.mcard__play span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #000; transform: scale(.8); transition: transform .4s var(--ease); }
.mcard__play .icon { width: 16px; height: 16px; }
.mcard:hover .mcard__play { opacity: 1; } .mcard:hover .mcard__play span { transform: none; }
.mcard__body { padding: 10px 12px 12px; }
.mcard__body b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__body small { font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); }
.playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.pl { display: flex; flex-direction: column; gap: 14px; }
.pl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pl__head b { font-size: 16px; display: block; } .pl__head small { color: var(--dim); font-size: 12.5px; }
.pl__strip { display: flex; gap: 6px; }
.pl__strip .thumb { flex: 1; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.pl__items { list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: pl; }
.pl__items li { counter-increment: pl; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.pl__items li::before { content: counter(pl, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.pl__items li small { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.pl__items li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pl__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.pl__screens { display: flex; gap: 6px; flex-wrap: wrap; }
.pl.is-inactive .pl__strip { filter: grayscale(.9) brightness(.6); }

/* Calendar */
.cal { --hour-h: 34px; --hours: 15; user-select: none; overflow-x: auto; }
.cal__head { display: grid; grid-template-columns: 52px repeat(7, minmax(92px, 1fr)); min-width: 720px; }
.cal__head div { padding: 8px 10px 12px; font-size: 12px; color: var(--dim); display: flex; flex-direction: column; }
.cal__head div b { font-family: var(--f-display); font-size: 18px; color: var(--text); font-weight: 600; }
.cal__head div.is-today b { color: var(--cyan); text-shadow: 0 0 16px rgba(0,229,255,.6); }
.cal__head div.is-today::after { content: 'Aujourd’hui'; font-family: var(--f-mono); font-size: 10px; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.cal__body { display: grid; grid-template-columns: 52px 1fr; min-width: 720px; }
.cal__hours div { height: var(--hour-h); font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); text-align: right; padding-right: 10px; transform: translateY(-6px); }
.cal__grid { position: relative; height: calc(var(--hour-h) * var(--hours)); border-radius: 12px; border: 1px solid var(--line); overflow: hidden;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%, 100% var(--hour-h); background-color: rgba(255,255,255,.012); touch-action: none; }
.cal__today { position: absolute; top: 0; bottom: 0; background: rgba(0,229,255,.035); pointer-events: none; }
.cal__now { position: absolute; height: 2px; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); pointer-events: none; z-index: 5; }
.cal__now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
.cal__block { position: absolute; z-index: 2; padding: 6px 8px; border-radius: 9px; overflow: hidden; cursor: grab; font-size: 12px; line-height: 1.25;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 34%, #0b0d14), color-mix(in srgb, var(--c) 16%, #0b0d14)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-left: 3px solid var(--c);
  transition: box-shadow .25s, transform .25s var(--ease), left .25s var(--ease), top .25s var(--ease); touch-action: none; }
.cal__block:hover { box-shadow: 0 0 24px -4px var(--c); }
.cal__block b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__block small { font-family: var(--f-mono); font-size: 10.5px; color: rgba(255,255,255,.7); }
.cal__block.is-drag { cursor: grabbing; z-index: 10; transform: scale(1.04); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8), 0 0 30px -4px var(--c); transition: box-shadow .25s, transform .25s var(--ease); opacity: .95; }
.cal__block.is-drop { animation: dropFlash .7s var(--ease); }
@keyframes dropFlash { 0% { box-shadow: 0 0 0 3px #fff, 0 0 40px var(--c); } }

/* ---------- Stats ---------- */
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mini-kpi { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.mini-kpi small { font-size: 12.5px; color: var(--muted); display: block; }
.mini-kpi b { font-family: var(--f-display); font-size: 26px; letter-spacing: -.03em; display: block; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stats-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.panel--full { grid-column: 1 / -1; }
.chart-box--donut { height: 220px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-family: var(--f-display); font-size: 24px; letter-spacing: -.03em; }
.donut-center small { font-size: 12px; color: var(--dim); }
.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.donut-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend li b { margin-left: auto; font-family: var(--f-mono); color: var(--text); font-weight: 500; font-size: 12.5px; }
.heatmap { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 3px; overflow-x: auto; min-width: 0; }
.heatmap__inner { display: contents; }
.heatmap .hm-day { font-size: 11.5px; color: var(--dim); display: flex; align-items: center; font-family: var(--f-mono); }
.heatmap .hm-h { font-size: 10px; color: var(--dim); text-align: center; font-family: var(--f-mono); padding-bottom: 4px; }
.heatmap .hm-c { aspect-ratio: 1.5; min-height: 14px; border-radius: 4px; background: rgba(255,255,255,.03); position: relative; transition: transform .2s; animation: hmIn .6s var(--ease) both; }
.heatmap .hm-c:hover { transform: scale(1.25); z-index: 2; outline: 1px solid rgba(255,255,255,.6); }
@keyframes hmIn { from { opacity: 0; transform: scale(.4); } }
.heat-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.heat-legend i { width: 110px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(123,92,255,.15), var(--violet), var(--magenta), var(--amber)); }
.tip { position: fixed; z-index: 13000; pointer-events: none; padding: 7px 10px; border-radius: 9px; font-size: 12px; background: rgba(17,20,29,.96); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.6); transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.tip.is-on { opacity: 1; }
.tip b { font-family: var(--f-mono); }

/* ---------- Contrats ---------- */
.sum-cards { display: flex; gap: 10px; }
.sum-cards div { padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.sum-cards small { font-size: 12px; color: var(--dim); } .sum-cards b { font-size: 18px; }
.sum-cards div:first-child b { color: var(--amber); }
.contracts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.contract { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.contract::before { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--cc); filter: blur(70px); opacity: .16; pointer-events: none; }
.contract__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.contract__top b { font-size: 16.5px; display: block; letter-spacing: -.01em; }
.contract__top p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.kind { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, transparent); white-space: nowrap; }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress__row b { font-family: var(--f-mono); color: var(--text); }
.progress__bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress__bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--cc), color-mix(in srgb, var(--cc) 40%, #fff)); box-shadow: 0 0 14px var(--cc); width: 0; transition: width 1.4s var(--ease); }
.progress__ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); }
.contract__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.contract__foot b { font-family: var(--f-mono); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--f-mono); }
.table td.mono { color: var(--muted); font-size: 13px; }
.table tr.is-hidden { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--paid { background: rgba(34,227,155,.1); color: var(--green); }
.pill--pending { background: rgba(255,184,0,.12); color: var(--amber); }
.pill--open { background: rgba(255,77,94,.12); color: #ff8f9a; }
.pill--progress { background: rgba(0,229,255,.1); color: var(--cyan); }
.pill--resolved { background: rgba(255,255,255,.06); color: var(--muted); }
.dl-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .25s; }
.dl-btn:hover { color: var(--cyan); border-color: rgba(0,229,255,.4); box-shadow: 0 0 16px rgba(0,229,255,.2); }
.dl-btn .icon { width: 15px; height: 15px; }
.table-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.table-note .icon { width: 15px; height: 15px; color: var(--green); }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.support-side { display: flex; flex-direction: column; gap: 16px; }
.tickets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticket { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); display: flex; flex-direction: column; gap: 8px; transition: border-color .3s, background .3s; }
.ticket:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.ticket.is-new { animation: ticketIn .9s var(--ease) both; border-color: rgba(0,229,255,.45); }
@keyframes ticketIn { 0% { opacity: 0; transform: translateY(-16px) scale(.97); box-shadow: 0 0 0 0 rgba(0,229,255,.5); } 60% { opacity: 1; box-shadow: 0 0 40px -4px rgba(0,229,255,.4); } }
.ticket__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ticket__top b { font-size: 14.5px; font-weight: 600; }
.ticket__top code { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); margin-right: 8px; }
.ticket p { font-size: 13px; color: var(--muted); }
.ticket__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.prio-tag { font-family: var(--f-mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); }
.prio-tag--Haute { color: #ff8f9a; border-color: rgba(255,77,94,.35); }
.prio-tag--Moyenne { color: var(--amber); border-color: rgba(255,184,0,.3); }
.prio-tag--Basse { color: var(--muted); }
.ticket-form { display: flex; flex-direction: column; gap: 14px; }
.ticket-form .input { padding: 12px 14px; font-size: 14px; }
.ticket-form textarea { resize: vertical; min-height: 96px; }
.ticket-form.is-flash { animation: formFlash 1.2s var(--ease); }
@keyframes formFlash { 0%, 40% { box-shadow: 0 0 0 2px var(--cyan), 0 0 40px -6px var(--cyan); } }
.prio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prio label { cursor: pointer; }
.prio input { position: absolute; opacity: 0; width: 0; height: 0; }
.prio span { display: block; text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); transition: all .25s; }
.prio input:checked + span { color: var(--text); border-color: var(--cyan); background: rgba(0,229,255,.08); box-shadow: 0 0 16px -4px rgba(0,229,255,.5); }
.prio label:nth-child(3) input:checked + span { border-color: var(--red); background: rgba(255,77,94,.1); box-shadow: 0 0 16px -4px rgba(255,77,94,.5); }
.prio input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field.has-error .input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,77,94,.12); }
.contact-card { overflow: hidden; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(150deg, rgba(123,92,255,.16), rgba(255,45,155,.06) 60%, transparent), var(--panel); }
.contact-card__glow { position: absolute; width: 200px; height: 200px; right: -60px; top: -80px; border-radius: 50%; background: var(--magenta); filter: blur(80px); opacity: .25; pointer-events: none; }
.contact-card__top { display: flex; gap: 16px; align-items: center; position: relative; }
.contact-card__top h3 { font-size: 20px; margin: 4px 0 2px; }
.contact-card__top .eyebrow { font-size: 10.5px; }
.contact-card__actions { display: flex; flex-direction: column; gap: 8px; position: relative; }
.contact-card__actions .btn { justify-content: flex-start; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.3; }
.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta)); opacity: .4; }
.timeline li { position: relative; padding-top: 28px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--tc); box-shadow: 0 0 14px var(--tc); }
.timeline small { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.timeline b { display: block; font-size: 14.5px; margin: 4px 0 2px; }
.timeline em { font-style: normal; font-size: 12.5px; color: var(--tc); }
.timeline p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Paramètres ---------- */
.settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.profile-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.profile-top b { display: block; font-size: 16px; } .profile-top small { font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .input, .invite .input { padding: 12px 14px; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.toggles { list-style: none; display: flex; flex-direction: column; }
.toggles li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggles li:last-child { border: 0; }
.toggles b { display: block; font-size: 14px; font-weight: 500; } .toggles small { font-size: 12.5px; color: var(--dim); }
.invite { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; margin-bottom: 14px; animation: feedIn .4s var(--ease); }
.invite[hidden], [data-tabpanel][hidden] { display: none; }
.team { list-style: none; display: flex; flex-direction: column; }
.team li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.team li:last-child { border: 0; }
.team li.is-new { animation: feedIn .7s var(--ease) both; }
.team b { display: block; font-size: 14px; font-weight: 500; } .team small { font-size: 12.5px; color: var(--dim); }
.team .role { font-size: 12px; font-family: var(--f-mono); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.team .last { font-size: 12px; color: var(--dim); white-space: nowrap; }

/* ---------- Bottom nav + scrim (mobile) ---------- */
.bottom-nav { display: none; }
.scrim { display: none; }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .kpis, .mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .avatar-btn__name { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
}
@media (max-width: 1100px) {
  .dash-grid, .stats-grid, .support-grid, .settings-grid { grid-template-columns: 1fr; }
  .live-pill { display: none; }
}
@media (max-width: 860px) {
  .contracts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .sidebar { width: min(300px, 86vw) !important; transform: translateX(-105%); box-shadow: 30px 0 80px rgba(0,0,0,.7); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .is-collapsed .sidebar__logo-rest, .is-collapsed .nav a span, .is-collapsed .nav__label, .is-collapsed .nav__badge, .is-collapsed .org__text, .is-collapsed .org__chev, .is-collapsed .sidebar__site span { opacity: 1; pointer-events: auto; }
  .is-collapsed .plan { opacity: 1; height: auto; padding: 14px; border: 1px solid var(--line); }
  .is-collapsed .sidebar__head { flex-direction: row; }
  .sidebar__collapse { display: none; }
  .drawer-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 250; background: rgba(2,3,6,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .main, .is-collapsed .main { padding-left: 0; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar__menu { display: grid; }
  .crumbs__root, .crumbs .icon { display: none; }
  .crumbs { flex: 1; min-width: 0; overflow: hidden; }
  .crumbs b { overflow: hidden; text-overflow: ellipsis; }
  .page-actions .btn { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; }
  .crumbs b { font-size: 15px; }
  .search { flex: 0 0 40px; margin: 0 0 0 auto; }
  .search input { padding: 0; width: 40px; border-color: transparent; background: transparent; cursor: pointer; color: transparent; }
  .search input::placeholder { color: transparent; }
  .search > .icon { left: 12px; color: var(--muted); }
  .search kbd { display: none; }
  .search.is-open { position: absolute; left: 10px; right: 10px; flex: none; max-width: none; z-index: 5; }
  .search.is-open input { width: 100%; padding: 0 14px 0 40px; background: var(--surface); border-color: rgba(0,229,255,.5); color: var(--text); cursor: text; }
  .search.is-open input::placeholder { color: var(--dim); }
  .topbar__right { margin-left: 0; }
  .avatar-btn { padding: 2px; border: 0; } .avatar-btn > .icon { display: none; }
  .notif { width: calc(100vw - 24px); right: -48px; }
  .content { padding: 20px 14px calc(96px + env(safe-area-inset-bottom)); }
  .page-head { align-items: flex-start; margin-bottom: 18px; }
  .page-actions { width: 100%; }
  .alert { flex-wrap: wrap; }
  .alert__actions { width: 100%; } .alert__actions .btn { flex: 1; justify-content: center; }
  .kpis, .mini-kpis { gap: 10px; }
  .kpi { padding: 14px; min-height: 132px; }
  .kpi__top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kpi__label { white-space: normal; font-size: 12px; }
  .chart-box { height: 240px; }
  .screens-grid, .playlists { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .timeline { grid-template-columns: 1fr; }
  .form-grid, .invite { grid-template-columns: 1fr; }
  .team li { grid-template-columns: auto 1fr; }
  .team .role, .team .last { grid-column: 2; justify-self: start; }
  .sum-cards { width: 100%; } .sum-cards div { flex: 1; }
  .contracts { gap: 12px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 280;
    padding: 6px; border-radius: 20px; background: rgba(11,13,20,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.7); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 14px; font-size: 10.5px; color: var(--dim); transition: color .25s, background .25s; }
  .bottom-nav .icon { width: 20px; height: 20px; }
  .bottom-nav a.is-active { color: var(--text); background: rgba(0,229,255,.1); }
  .bottom-nav a.is-active .icon { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0,229,255,.7)); }
  .drawer { width: 100vw; }
  .toast-stack { right: 12px; left: 12px; width: auto; bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi__value { font-size: 26px; }
  .d-info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .view.is-active { animation: none; }
  .ad__slide { transition: none; }
}
