/* =====================================================================
   Moteur Bouclier v9 — système de design Admin Consulting SARL
   Couleurs du logo : bleu marine #043872, bleu ciel (trombone) #4FB4E9
   Thèmes clair / sombre (automatique selon l'appareil, ou choisi)
   ===================================================================== */
:root {
  --brand: #043872; --brand-2: #0a4c94; --sky: #4fb4e9; --sky-2: #2b9ad6; --sky-soft: #e8f5fc;
  --bg: #f3f6fa; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #eef2f7; --line: #e1e7ef; --line-2: #edf1f6;
  --ink: #0d1b2e; --ink-2: #536379; --ink-3: #8593a6;
  --primary: var(--brand); --primary-hover: var(--brand-2); --on-primary: #fff; --link: #0a5bb5;
  --good: #137a3d; --good-bg: #e6f5ec; --bad: #b42318; --bad-bg: #fdecea; --warm: #9a5b00; --warm-bg: #fdf3dc;
  --hot: #c2410c; --hot-bg: #fdeee5; --cold: #4b5b6b; --cold-bg: #eef1f5; --wa: #128c4a;
  --side: #04254d; --side-ink: #c8d6e8; --side-ink-2: #7f97b5; --side-on: rgba(79, 180, 233, .16);
  --shadow-1: 0 1px 2px rgba(13, 27, 46, .05), 0 1px 3px rgba(13, 27, 46, .04);
  --shadow-2: 0 8px 24px rgba(13, 27, 46, .08), 0 2px 6px rgba(13, 27, 46, .05);
  --shadow-3: 0 24px 64px rgba(4, 25, 60, .22);
  --ring: 0 0 0 3px rgba(79, 180, 233, .45);
  --r: 12px; --r-sm: 8px; --pad: 1.25rem;
  /* anciens noms (compatibilité des pages) */
  --card: var(--surface); --navy: var(--brand); --navy2: var(--brand-2); --gold: var(--sky-2); --gold-soft: var(--sky-soft);
  color-scheme: light; font-size: 15px;
}
:root[data-density="compact"] { --pad: .95rem; font-size: 14px; }
/* Thème sombre : choisi, ou automatique si l'appareil est en sombre */
:root[data-theme="dark"] {
  --brand: #4fb4e9; --brand-2: #7cc8f0; --sky-soft: rgba(79, 180, 233, .14);
  --bg: #0a111c; --surface: #111b2a; --surface-2: #142134; --surface-3: #1a2940; --line: #23344d; --line-2: #1b2a3f;
  --ink: #e6eef8; --ink-2: #a0b1c7; --ink-3: #71839b;
  --primary: #2b8fd6; --primary-hover: #3fa2e6; --on-primary: #fff; --link: #7cc8f0;
  --good: #4ad08a; --good-bg: rgba(74, 208, 138, .12); --bad: #ff7a6b; --bad-bg: rgba(255, 122, 107, .12); --warm: #f2b54a; --warm-bg: rgba(242, 181, 74, .13);
  --hot: #ff8a5c; --hot-bg: rgba(255, 138, 92, .13); --cold: #9fb0c4; --cold-bg: rgba(159, 176, 196, .12); --wa: #25b061;
  --side: #070e18; --side-ink: #b9c8dc; --side-ink-2: #6c7f98; --side-on: rgba(79, 180, 233, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 24px rgba(0, 0, 0, .35); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4fb4e9; --brand-2: #7cc8f0; --sky-soft: rgba(79, 180, 233, .14);
    --bg: #0a111c; --surface: #111b2a; --surface-2: #142134; --surface-3: #1a2940; --line: #23344d; --line-2: #1b2a3f;
    --ink: #e6eef8; --ink-2: #a0b1c7; --ink-3: #71839b;
    --primary: #2b8fd6; --primary-hover: #3fa2e6; --on-primary: #fff; --link: #7cc8f0;
    --good: #4ad08a; --good-bg: rgba(74, 208, 138, .12); --bad: #ff7a6b; --bad-bg: rgba(255, 122, 107, .12); --warm: #f2b54a; --warm-bg: rgba(242, 181, 74, .13);
    --hot: #ff8a5c; --hot-bg: rgba(255, 138, 92, .13); --cold: #9fb0c4; --cold-bg: rgba(159, 176, 196, .12); --wa: #25b061;
    --side: #070e18; --side-ink: #b9c8dc; --side-ink-2: #6c7f98; --side-on: rgba(79, 180, 233, .14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 8px 24px rgba(0, 0, 0, .35); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--link); text-underline-offset: 2px; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .25rem; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.02rem; margin: 0 0 .85rem; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: .95rem; margin: 0 0 .5rem; font-weight: 650; }
p { margin: .5rem 0; }
code { background: var(--surface-3); color: var(--ink); padding: .12rem .4rem; border-radius: 6px; font-size: .84em; word-break: break-all; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
kbd { font-family: inherit; font-size: .72rem; padding: .08rem .38rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
::selection { background: rgba(79, 180, 233, .3); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .center { text-align: center; } .nowrap { white-space: nowrap; } .break { word-break: break-all; }
.bad { color: var(--bad); } .good { color: var(--good); font-weight: 600; }
.ic { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; } .skip:focus { left: .5rem; }
[hidden] { display: none !important; }

/* ---------- logo ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand); text-decoration: none; }
.brand-mark { color: var(--sky); flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.brand-word b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; color: var(--brand); }
.brand-word small { font-size: .55rem; letter-spacing: .2em; margin-top: .22rem; color: var(--brand); opacity: .9; }
.brand-logo.v { flex-direction: column; gap: .8rem; text-align: center; } .brand-logo.v .brand-word { align-items: center; } .brand-logo.v .brand-word b { font-size: 2.6rem; } .brand-logo.v .brand-word small { font-size: .82rem; margin-top: .45rem; }
:root[data-theme="dark"] .brand-word b, :root[data-theme="dark"] .brand-word small { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-word b, :root:not([data-theme="light"]) .brand-word small { color: #fff; } }

/* ---------- structure de l'application ---------- */
body.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; overflow: hidden; z-index: 40; }
.side-brand { display: block; padding: 1.15rem 1.2rem 1rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side-brand .brand-word b, .side-brand .brand-word small { color: #fff; }
.side-nav { flex: 1; overflow-y: auto; padding: .6rem .65rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-group { margin-top: .9rem; } .nav-group:first-child { margin-top: .2rem; }
.nav-title { display: block; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--side-ink-2); padding: 0 .65rem .35rem; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on { background: var(--side-on); color: #fff; font-weight: 600; }
.nav-item.on::before { content: ""; position: absolute; left: -.65rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--sky); }
.nav-item.on .ic { color: var(--sky); }
.nav-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-size: .7rem; font-weight: 700; min-width: 1.4rem; text-align: center; padding: .08rem .4rem; border-radius: 99px; background: rgba(79, 180, 233, .22); color: #bfe6fa; }
.count.hot { background: #e2552b; color: #fff; }
.side-foot { display: flex; align-items: center; gap: .4rem; padding: .7rem .75rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.me { flex: 1; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--side-ink); min-width: 0; padding: .3rem; border-radius: 9px; } .me:hover { background: rgba(255,255,255,.06); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), #1f6fb8); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.me-txt { min-width: 0; line-height: 1.2; } .me-txt b { display: block; color: #fff; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-txt small { color: var(--side-ink-2); font-size: .74rem; }
.side .icon-btn { color: var(--side-ink-2); } .side .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .65rem 1.6rem; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); }
.search-btn { flex: 1; max-width: 520px; display: flex; align-items: center; gap: .6rem; font: inherit; font-size: .88rem; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; cursor: pointer; text-align: left; box-shadow: var(--shadow-1); transition: border-color .15s; }
.search-btn:hover { border-color: var(--sky); } .search-btn span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .ic { width: 20px; height: 20px; }
.notif .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #e2552b; border: 2px solid var(--bg); }
.t-dark { display: none; }
:root[data-theme="dark"] .t-dark { display: inline-grid; } :root[data-theme="dark"] .t-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-dark { display: inline-grid; } :root:not([data-theme="light"]) .t-light { display: none; } }
.only-mobile { display: none !important; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.6rem 1.6rem 5rem; }
.tabbar, .scrim { display: none; }

/* ---------- en-tête de page ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.page-head h1 .muted { font-weight: 500; font-size: 1.1rem; }
.page-head > p { flex-basis: 100%; margin: 0; }
.wrap > .muted:first-of-type, .wrap > p.muted { max-width: 860px; margin-top: -.4rem; margin-bottom: 1.1rem; font-size: .92rem; }

/* ---------- cartes et grilles ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); margin-bottom: 1rem; box-shadow: var(--shadow-1); }
.card > h2:first-child, .card > header:first-child { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 1rem var(--pad) .4rem; margin: 0; }
.card.narrow { max-width: 440px; margin: 3rem auto; }
.card.empty { text-align: center; color: var(--ink-2); padding: 2.6rem 1.5rem; border-style: dashed; box-shadow: none; background: var(--surface-2); }
.card.note { border-left: 4px solid var(--sky); background: linear-gradient(90deg, var(--sky-soft), var(--surface) 40%); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; } .card-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .cols > * { min-width: 0; }
.cols.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .cols.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.pad { padding: .9rem var(--pad); margin: 0; }
.kv { display: grid; grid-template-columns: minmax(170px, 280px) 1fr; gap: .55rem 1rem; font-size: .88rem; align-items: center; margin-bottom: .8rem; } .kv > span:nth-child(odd) { color: var(--ink-2); }
.pre { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .7rem .8rem; font-size: .85rem; }
p.pre { white-space: pre-line; }

/* ---------- messages système ---------- */
.flash { background: var(--good-bg); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 25%, transparent); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.alert { background: var(--bad-bg); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); border-radius: 10px; padding: .65rem .9rem; }
.sys-alert { display: flex; gap: .7rem; align-items: flex-start; background: var(--warm-bg); border: 1px solid color-mix(in srgb, var(--warm) 30%, transparent); color: var(--ink); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .7rem; font-size: .9rem; }
.sys-alert .ic { color: var(--warm); margin-top: .1rem; }
.toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast-item { display: flex; gap: .6rem; align-items: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-2); font-size: .9rem; animation: toast-in .25s ease-out; }
.toast-item.err { border-left-color: var(--bad); } .toast-item button { margin-left: auto; background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.toast-item.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- formulaires ---------- */
input, select, textarea { font: inherit; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .7rem; background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink-3) 60%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-2); box-shadow: var(--ring); }
select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238593a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
input[type="checkbox"], input[type="radio"] { width: 1rem; height: 1rem; accent-color: var(--sky-2); padding: 0; }
input[type="file"] { padding: .4rem; background: var(--surface-2); }
input[type="date"], input[type="datetime-local"] { color-scheme: inherit; }
textarea { resize: vertical; min-height: 2.6rem; }
label { display: block; font-size: .82rem; font-weight: 550; color: var(--ink-2); }
label > input, label > select, label > textarea { margin-top: .3rem; font-weight: 400; }
.stack > * + * { margin-top: .75rem; } .stack.compact > * + * { margin-top: .5rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.form-grid .full { grid-column: 1 / -1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.inline { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; } .inline input, .inline select { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .inline-form input:not([type=checkbox]):not([type=radio]):not([type=file]) { flex: 1 1 14rem; width: auto; }
.w80 { width: 80px !important; } .w100 { width: 110px !important; } .w140 { width: 150px !important; }
input.num { width: 7rem; text-align: right; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; } .filters input, .filters select { width: auto; flex: 1 1 160px; }
.hp { position: absolute; left: -9999px; }
.check, label.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 450; color: var(--ink); }
.check input { width: auto; margin-top: .2rem; flex: none; }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--ink) !important; font-weight: 450; margin: .4rem 0 1rem; } .consent input { width: auto; margin-top: .2rem; flex: none; }
.chk { display: inline-flex !important; gap: .35rem; align-items: center; margin-right: .9rem; color: var(--ink) !important; font-weight: 450; } .chk input { width: auto; }
.blk { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; } .blk legend { font-size: .82rem; color: var(--ink-2); padding: 0 .3rem; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 40%); padding: 1rem 0; z-index: 5; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; padding: .58rem 1rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-1); transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(4, 56, 114, .25), inset 0 1px 0 rgba(255,255,255,.08); } .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; } .btn.wa:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--link); box-shadow: none; } .btn.ghost:hover { background: var(--sky-soft); }
.btn.sm { font-size: .8rem; padding: .36rem .7rem; border-radius: 8px; } .btn.big { font-size: 1rem; padding: .85rem 1.25rem; width: 100%; border-radius: 11px; }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); }
.btn[disabled], .btn.loading { opacity: .6; cursor: default; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; } .actions form { display: inline-flex; gap: .3rem; }
.quick { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- onglets / segments ---------- */
.seg { display: inline-flex; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg a, .seg label span { display: flex; align-items: center; gap: .35rem; padding: .42rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .86rem; font-weight: 550; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.seg a:hover, .seg label span:hover { color: var(--ink); }
.seg a.on, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 650; }
.seg label, .chip { position: relative; margin: 0; }
.seg input, .chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.seg input:focus-visible + span { box-shadow: var(--ring); }
.seg label { color: inherit; font-weight: inherit; }
.wrap-seg { margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; } .chip { margin: 0 !important; }
.chip span { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .5rem .95rem; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.chip span:hover { border-color: var(--sky); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; } .chip input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- badges ---------- */
.temp, .st, .tag, .ok-badge, .no-badge, .mode-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 650; padding: .16rem .55rem; border-radius: 99px; vertical-align: middle; white-space: nowrap; line-height: 1.4; }
.temp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-chaud { background: var(--hot-bg); color: var(--hot); } .t-tiede { background: var(--warm-bg); color: var(--warm); } .t-froid { background: var(--cold-bg); color: var(--cold); }
.st { background: var(--sky-soft); color: var(--link); } .s-gagne { background: var(--good-bg); color: var(--good); } .s-perdu { background: var(--surface-3); color: var(--ink-3); } .s-rdv, .s-devis { background: var(--warm-bg); color: var(--warm); }
.tag { background: var(--surface-3); color: var(--ink-2); } .tag.ok { background: var(--good-bg); color: var(--good); } .tag.bad { background: var(--bad-bg); color: var(--bad); }
.ok-badge { background: var(--good-bg); color: var(--good); } .no-badge { background: var(--surface-3); color: var(--ink-2); }
.pill { background: var(--sky-2); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; } .pill.hot { background: var(--hot); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th { text-align: left; font-weight: 650; color: var(--ink-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { transition: background .1s; } tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.r { text-align: right; } tr.off { opacity: .45; }
table.list tbody tr { cursor: pointer; }
.card table { margin: 0; } .card:not(.flush) table th:first-child, .card:not(.flush) table td:first-child { padding-left: 0; } .card:not(.flush) th { background: transparent; }
td a { font-weight: 550; text-decoration: none; } td a:hover { text-decoration: underline; }
tr.row-bad td { background: var(--bad-bg); } tr.new-row td { background: var(--sky-soft); }
table.mini { width: 100%; font-size: .8rem; margin-top: .5rem; } table.mini td { padding: .3rem .3rem; border-top: 1px solid var(--line-2); border-bottom: 0; } table.mini code { word-break: normal; white-space: nowrap; }

/* ---------- indicateurs (tableau de bord) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--sky), var(--brand)); opacity: .0; }
.kpi:hover::after { opacity: 1; }
.kpi span { display: block; font-size: .78rem; font-weight: 550; color: var(--ink-2); }
.kpi b { font-size: 1.75rem; display: block; margin: .2rem 0 .1rem; letter-spacing: -.03em; font-weight: 750; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--ink-3); font-size: .76rem; }
.goal { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; }
.goal-num { font-size: 1.05rem; } .goal-num b { font-size: 2.4rem; color: var(--brand); letter-spacing: -.03em; }
.bar { height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 99px; transition: width .6s; }
.warn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.warn { display: inline-flex; align-items: center; gap: .4rem; background: var(--warm-bg); color: var(--warm); padding: .6rem .95rem; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600; border: 1px solid color-mix(in srgb, var(--warm) 25%, transparent); }
.warn.hot { background: var(--hot-bg); color: var(--hot); border-color: color-mix(in srgb, var(--hot) 25%, transparent); }
.fun { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: .7rem; margin-bottom: .6rem; font-size: .9rem; }
.fun-bar { background: var(--surface-3); border-radius: 7px; height: 28px; overflow: hidden; } .fun-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 7px; }
.fun:last-of-type .fun-bar i { background: linear-gradient(90deg, var(--sky-2), var(--sky)); } .fun b { text-align: right; font-variant-numeric: tabular-nums; }
.trend { position: relative; display: flex; align-items: flex-end; gap: .6rem; height: 190px; padding-top: 1rem; }
.tcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; justify-content: flex-end; height: 100%; font-size: .8rem; }
.tcol i { width: 100%; max-width: 46px; background: var(--brand-2); border-radius: 6px 6px 0 0; } .tcol:last-of-type i { background: var(--sky); } .tcol span { color: var(--ink-3); }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--sky-2); } .goal-line span { position: absolute; right: 0; top: -1.2rem; font-size: .72rem; color: var(--sky-2); font-weight: 600; }

/* ---------- relances ---------- */
.queue { display: grid; gap: .8rem; }
.task { margin: 0; border-left: 4px solid var(--line); } .task.late { border-left-color: var(--bad); }
.task header { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .55rem; }
.tname { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1rem; }
.msg { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .85rem; margin: 0 0 .75rem; font-size: .92rem; white-space: normal; }

/* ---------- fiche prospect ---------- */
.callsheet { border-left: 4px solid var(--sky); } .lead-sum { font-size: 1rem; margin: 0 0 .8rem; }
.vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.vitals div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .75rem; } .vitals span { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; } .vitals b { font-size: .95rem; }
.score-card { text-align: center; } .score-big { display: inline-flex; align-items: baseline; gap: .1rem; padding: .35rem 1.1rem; border-radius: 14px; } .score-big b { font-size: 2.7rem; letter-spacing: -.03em; } .score-big span { opacity: .7; }
.checks { list-style: none; padding: 0; margin: .8rem 0; text-align: left; font-size: .9rem; }
.checks li { padding: .32rem 0 .32rem 1.7rem; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .52rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.checks li.ok { color: var(--ink); } .checks li.ok::before { background: var(--good); border-color: var(--good); }
.checks li.half::before { background: linear-gradient(90deg, var(--warm) 50%, transparent 50%); border-color: var(--warm); }
.status-form .when { display: none; margin: .8rem 0; } .status-form[data-s="rdv"] .when-rdv, .status-form[data-s="gagne"] .when-gagne, .status-form[data-s="perdu"] .when-perdu { display: block; }
.status-form .seg { margin-bottom: .8rem; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { border-left: 2px solid var(--line); padding: 0 0 1rem 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); border: 2px solid var(--surface); }
.timeline li.tl-wa_in::before { background: var(--wa); } .timeline li.tl-statut::before, .timeline li.tl-qualification::before { background: var(--sky-2); } .timeline li.tl-alerte::before, .timeline li.tl-erreur::before { background: var(--hot); }
.timeline p { margin: .2rem 0 0; font-size: .9rem; }
.fu { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .85rem; } .fu li { padding: .35rem 0; border-bottom: 1px dashed var(--line); } .fu span { font-weight: 600; } .fu em { float: right; font-style: normal; color: var(--ink-3); }
.fu-fait, .fu-annule, .fu-ignore { opacity: .5; }

/* ---------- conversations et simulateur ---------- */
.convs { list-style: none; margin: 0; padding: 0; } .convs li a { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); } .convs li a:hover { background: var(--surface-2); }
.convs li.on a { background: var(--sky-soft); box-shadow: inset 3px 0 0 var(--sky); }
.chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { background: #075e54; color: #fff; padding: .75rem 1rem; display: flex; align-items: center; gap: .55rem; font-weight: 600; } .chat-head .muted { color: #cfe; }
.chat { background: #efe7de; height: 480px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .45rem; }
:root[data-theme="dark"] .chat { background: #0b141a; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat { background: #0b141a; } }
.bubble { max-width: 82%; min-width: 130px; padding: .5rem .75rem 1.15rem; border-radius: 10px; font-size: .92rem; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.1); color: #111b21; }
.bubble small { position: absolute; right: .55rem; bottom: .22rem; font-size: .68rem; color: #667781; }
.bubble.them { background: #fff; align-self: flex-start; } .bubble.me { background: #d9fdd3; align-self: flex-end; }
:root[data-theme="dark"] .bubble.them { background: #202c33; color: #e9edef; } :root[data-theme="dark"] .bubble.me { background: #005c4b; color: #e9edef; } :root[data-theme="dark"] .bubble small { color: #8696a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.them { background: #202c33; color: #e9edef; } :root:not([data-theme="light"]) .bubble.me { background: #005c4b; color: #e9edef; } :root:not([data-theme="light"]) .bubble small { color: #8696a0; } }
.chat-input { display: flex; gap: .5rem; padding: .65rem; background: var(--surface-2); border-top: 1px solid var(--line); } .chat-input input { flex: 1; }
.chat-img { max-width: 220px; border-radius: 7px; display: block; }
.kb-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); } .kb-thumb.sm { width: 40px; height: 40px; float: left; margin-right: .6rem; }

/* ---------- connexions, messages ---------- */
.int-grid, .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.int { display: flex; flex-direction: column; } .int header { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; margin-bottom: .3rem; } .int h2 { margin: 0; }
.hub-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; margin: 0 0 1.2rem; }
.hub-chip { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font-size: .82rem; font-weight: 550; box-shadow: var(--shadow-1); }
.hub-chip:hover { border-color: var(--sky); }
.hub-chip b { font-size: .74rem; color: var(--ink-3); font-weight: 650; }
.hub-chip.st-ok { border-left-color: var(--good); } .hub-chip.st-ok b { color: var(--good); }
.hub-chip.st-ko { border-left-color: var(--bad); background: var(--bad-bg); } .hub-chip.st-ko b { color: var(--bad); }
.hub-chip.st-sim { border-left-color: var(--warm); } .hub-chip.st-sim b { color: var(--warm); } .hub-chip.st-wait { border-left-color: var(--sky-2); }
.mode-tag { background: var(--surface-3); color: var(--ink-2); } .mode-tag.m-live { background: var(--good-bg); color: var(--good); } .mode-tag.m-sandbox { background: var(--warm-bg); color: var(--warm); }
.group-title { margin: 1.6rem 0 .7rem; font-size: 1.05rem; }
.hub-tests { display: grid; gap: .55rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
p.health { margin: .2rem 0 .7rem; padding: .45rem .65rem; border-radius: 8px; background: var(--surface-2); } p.health.bad { color: var(--bad); background: var(--bad-bg); } p.health.good { background: var(--good-bg); }
.link-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .55rem 0; border-top: 1px solid var(--line-2); } .link-row > span:first-child { min-width: 12rem; font-weight: 600; } .link-row code { flex: 1 1 100%; }

/* ---------- prospection, tunnels ---------- */
.sig { padding: .85rem var(--pad); border-bottom: 1px solid var(--line-2); } .sig p { margin: .3rem 0; }
.mail-prev { border: 1px solid var(--line); border-radius: 10px; padding: .9rem; margin: .7rem 0; background: var(--surface-2); } .mail-prev input, .mail-prev textarea { margin: .4rem 0; }
.mail-body { white-space: pre-wrap; font-family: inherit; font-size: .88rem; margin: .4rem 0 0; color: var(--ink); }
ol.small li { margin-bottom: .4rem; }
.review { border-top: 1px solid var(--line-2); padding: .8rem 0; } .review p { margin: .3rem 0; } .review b { color: #f2a93b; letter-spacing: .05em; }
.review.low { background: var(--bad-bg); padding-left: .7rem; padding-right: .7rem; border-left: 3px solid var(--bad); border-radius: 0 8px 8px 0; }
table.bareme input, table.bareme select, table textarea { width: 100%; min-width: 6rem; font-size: .84rem; padding: .4rem .5rem; }
table.bareme td:first-child select { min-width: 8.5rem; } table.bareme td:nth-child(2) input { min-width: 14rem; } table.bareme td:nth-child(6) input { min-width: 12rem; }

/* ---------- recherche rapide (Ctrl+K) ---------- */
.palette { position: fixed; inset: 0; z-index: 100; background: rgba(4, 18, 40, .45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; }
.palette-box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.palette-in { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette-in input { border: 0; box-shadow: none !important; padding: 0; font-size: 1.02rem; background: transparent; }
#palette-list { list-style: none; margin: 0; padding: .4rem; max-height: min(420px, 60vh); overflow-y: auto; }
#palette-list li.grp { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: .6rem .7rem .3rem; }
#palette-list a { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
#palette-list a .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
#palette-list a b { display: block; font-weight: 600; font-size: .92rem; } #palette-list a small { color: var(--ink-3); font-size: .78rem; }
#palette-list a.sel { background: var(--sky-soft); } #palette-list a.sel .ico { background: var(--primary); color: #fff; }
#palette-list .empty { padding: 1.4rem; text-align: center; color: var(--ink-3); font-size: .9rem; }
.palette-foot { display: flex; gap: 1rem; padding: .55rem 1.1rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ink-3); background: var(--surface-2); }

/* ---------- connexion / installation ---------- */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
body.auth::before { content: ""; background: radial-gradient(1200px 600px at -10% 110%, rgba(79,180,233,.35), transparent 60%), radial-gradient(800px 500px at 110% -10%, rgba(79,180,233,.18), transparent 60%), linear-gradient(160deg, #043872 0%, #022754 60%, #01183a 100%); }
body.auth .wrap { grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; max-width: none; }
body.auth .card.narrow { width: 100%; max-width: 400px; margin: 0; border: 0; box-shadow: none; background: transparent; padding: 0; }
body.auth .brand.big { display: flex; margin-bottom: 1.6rem; }
.auth-aside { position: fixed; left: 0; top: 0; bottom: 0; width: 51.2%; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; color: #d6e5f6; pointer-events: none; }
.auth-aside .brand-word b, .auth-aside .brand-word small { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 1.9rem; line-height: 1.2; letter-spacing: -.02em; max-width: 26ch; margin: 0 0 1rem; font-weight: 750; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; } .auth-aside li::before { content: "✓"; color: var(--sky); margin-right: .55rem; font-weight: 700; }
.auth-aside small { opacity: .6; font-size: .8rem; }
.auth-title { font-size: 1.6rem; margin: 0 0 .3rem; } .auth-sub { color: var(--ink-2); margin: 0 0 1.4rem; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.or { display: flex; align-items: center; gap: .8rem; color: var(--ink-3); font-size: .8rem; margin: 1.1rem 0; } .or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- pages publiques ---------- */
body.public { background: radial-gradient(900px 400px at 50% -120px, var(--sky-soft), transparent 70%), var(--bg); min-height: 100vh; }
.pub-wrap { max-width: 660px; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; } .pub-wrap.wide { max-width: 880px; }
.pub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; } .pub-head .brand { color: var(--brand); }
.lang { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.pub-title { font-size: 1.9rem; color: var(--ink); line-height: 1.2; margin-bottom: .6rem; letter-spacing: -.025em; }
.pub-lead { font-size: 1.04rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.trust { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .45rem; } .trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .3rem .8rem; font-size: .82rem; color: var(--ink-2); font-weight: 500; } .trust li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.pub-form { padding: 1.4rem; } .pub-form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; } .pub-form legend { font-weight: 650; margin-bottom: .55rem; font-size: .96rem; color: var(--ink); }
.pub-form label { margin-bottom: .85rem; }
.pub-done { text-align: center; padding: 2.2rem 1.5rem; } .pub-done h1 { color: var(--ink); }
.pub-foot { text-align: center; color: var(--ink-3); font-size: .78rem; margin-top: 1.8rem; }
.narrow-pub { max-width: 420px; margin: 1rem auto; }
body.embed { background: transparent; } body.embed .pub-wrap { padding-top: .2rem; padding-bottom: .5rem; }
.sim-form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; } .sim-form legend { font-weight: 650; margin-bottom: .6rem; } .sim-form legend b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; margin-right: .35rem; }
.sim-form .sub { margin: 1rem 0 .45rem; font-weight: 600; font-size: .92rem; }
.sim-result h2 { margin: 1.1rem 0 .3rem; font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; } .sim-result h2:first-child { margin-top: 0; }
.sim-table { width: 100%; border-collapse: collapse; } .sim-table td { padding: .55rem 0; border-bottom: 1px solid var(--line-2); vertical-align: top; } .sim-table td.r { text-align: right; padding-left: 1rem; }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; padding: .9rem 1.1rem; background: linear-gradient(135deg, #043872, #0a4c94); color: #fff; border-radius: 12px; }
.sim-total b { font-size: 1.45rem; } .sim-total.sub { background: var(--sky-soft); color: var(--ink); margin-top: .45rem; } .sim-total.sub b { font-size: 1.05rem; }
.partner-list { list-style: none; margin: 0; padding: 0; } .partner-list > li { padding: .9rem var(--pad); border-top: 1px solid var(--line-2); }
.pl-head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .5rem; }
.stage-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; list-style: none; margin: 0; padding: 0; }
.stage-bar li { font-size: .7rem; color: var(--ink-3); } .stage-bar li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--surface-3); margin-bottom: .3rem; }
.stage-bar li.done::before { background: var(--good); } .stage-bar li.now { color: var(--ink); font-weight: 700; } .stage-bar li:not(.now) span { visibility: hidden; }
@media (min-width: 700px) { .stage-bar li:not(.now) span { visibility: visible; } }
.public .kpis { margin: 1rem 0; }

/* ---------- paramètres ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.settings-nav { position: sticky; top: 76px; display: grid; gap: .15rem; }
.settings-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9rem; } .settings-nav a:hover { background: var(--surface-3); color: var(--ink); }
.settings section { scroll-margin-top: 80px; }
.settings h2 { display: flex; align-items: center; gap: .5rem; } .settings h2 .ic { color: var(--sky-2); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.choice label { position: relative; cursor: pointer; } .choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .6rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice span .ic { width: 22px; height: 22px; color: var(--ink-2); }
.choice input:checked + span { border-color: var(--sky-2); box-shadow: var(--ring); } .choice input:checked + span .ic { color: var(--sky-2); }
.choice small { font-weight: 450; color: var(--ink-3); font-size: .75rem; text-align: center; }
.hours { display: grid; grid-template-columns: 110px auto 1fr 1fr; gap: .45rem .7rem; align-items: center; max-width: 520px; } .hours input[type=number] { width: 5.5rem; }
.help-tip { display: flex; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; background: var(--sky-soft); color: var(--ink); font-size: .86rem; } .help-tip .ic { color: var(--sky-2); margin-top: .1rem; }

/* ---------- accueil ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hello h1 { font-size: 1.7rem; } .hello p { margin: .1rem 0 0; color: var(--ink-2); }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.shortcut { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: border-color .15s, transform .15s; }
.shortcut:hover { border-color: var(--sky); transform: translateY(-1px); }
.shortcut .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky-2); flex: none; }
.shortcut.hot .ico { background: var(--hot-bg); color: var(--hot); }
.shortcut b { display: block; font-size: .92rem; } .shortcut small { color: var(--ink-3); font-size: .78rem; }
.shortcut .num { margin-left: auto; font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---------- impression ---------- */
@media print { .side, .topbar, .tabbar, .toasts, .btn, .seg, form { display: none !important; } body.app { display: block; } .card { box-shadow: none; break-inside: avoid; } }

/* ---------- mobile et tablette ---------- */
@media (max-width: 1080px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-3); }
  body.nav-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(4, 18, 40, .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .only-mobile { display: inline-grid !important; }
  .top-brand { color: var(--sky); display: inline-grid; }
  .topbar { padding: .55rem .9rem; gap: .4rem; }
  .settings { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; } .settings-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .wrap { padding: 1rem .9rem calc(5.5rem + env(safe-area-inset-bottom)); }
  .search-btn kbd, .hide-xs { display: none !important; }
  .search-btn span { font-size: .85rem; }
  .cols, .cols.wide-left, .cols.wide-right { grid-template-columns: 1fr; }
  .goal { grid-template-columns: 1fr; gap: .6rem; }
  .kv { grid-template-columns: 1fr; gap: .2rem; } .kv > span:nth-child(odd) { margin-top: .5rem; }
  .vitals { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .kpi b { font-size: 1.45rem; }
  .pub-title { font-size: 1.5rem; } .chat { height: 420px; }
  h1 { font-size: 1.35rem; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font: inherit; font-size: .68rem; font-weight: 600; color: var(--ink-3); text-decoration: none; background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; } .tabbar a.on { color: var(--sky-2); }
  .toasts { left: 1rem; right: 1rem; bottom: calc(4.8rem + env(safe-area-inset-bottom)); max-width: none; }
  .palette { padding-top: 1rem; }
  .table-wrap table { min-width: 560px; }
  .int-grid, .tpl-grid { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 90px auto 1fr 1fr; }
}
@media (max-width: 900px) {
  body.auth { grid-template-columns: 1fr; } body.auth::before { display: none; } body.auth .wrap { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.chat-avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; } .chat-avatar .brand-mark { color: #2b9ad6; }
.pub-head .brand { text-decoration: none; }
.search-btn { min-width: 0; } .topbar > * { min-width: 0; } .top-actions { flex: none; }
@media (min-width: 901px) { body.auth .brand.big { display: none; } }
@media (max-width: 420px) { .topbar .notif { display: none; } }

/* =====================================================================
   v10 — mode sombre 100 % noir, graphiques, objectifs
   ===================================================================== */
:root[data-theme="dark"] {
  --bg: #000; --surface: #000; --surface-2: #0a0a0a; --surface-3: #161616; --line: #262626; --line-2: #171717;
  --ink: #fafafa; --ink-2: #a3a3a3; --ink-3: #737373; --sky-soft: rgba(79, 180, 233, .13);
  --side: #000; --side-ink: #d4d4d4; --side-ink-2: #737373; --side-on: rgba(79, 180, 233, .14);
  --shadow-1: none; --shadow-2: 0 10px 30px rgba(0, 0, 0, .8); --shadow-3: 0 24px 64px rgba(0, 0, 0, .9);
  --cold: #a3a3a3; --cold-bg: rgba(163, 163, 163, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --surface: #000; --surface-2: #0a0a0a; --surface-3: #161616; --line: #262626; --line-2: #171717;
    --ink: #fafafa; --ink-2: #a3a3a3; --ink-3: #737373; --sky-soft: rgba(79, 180, 233, .13);
    --side: #000; --side-ink: #d4d4d4; --side-ink-2: #737373; --side-on: rgba(79, 180, 233, .14);
    --shadow-1: none; --shadow-2: 0 10px 30px rgba(0, 0, 0, .8); --shadow-3: 0 24px 64px rgba(0, 0, 0, .9);
    --cold: #a3a3a3; --cold-bg: rgba(163, 163, 163, .12);
  }
}
:root[data-theme="dark"] .side { border-right: 1px solid #1a1a1a; }
:root[data-theme="dark"] .topbar { background: rgba(0, 0, 0, .82); }
:root[data-theme="dark"] body.public { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { border-right: 1px solid #1a1a1a; } :root:not([data-theme="light"]) .topbar { background: rgba(0, 0, 0, .82); } :root:not([data-theme="light"]) body.public { background: #000; } }

/* indicateur « en direct » */
.live { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #16C784; background: rgba(22, 199, 132, .12); padding: .2rem .55rem; border-radius: 99px; vertical-align: middle; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #16C784; box-shadow: 0 0 0 0 rgba(22, 199, 132, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 199, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); } }
.stats-head { align-items: flex-start; } .stats-head p { margin: .25rem 0 0; }
.period-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.period-nav { display: flex; align-items: center; gap: .3rem; } .period-nav b { min-width: 11rem; text-align: center; font-size: .95rem; }
.seg.sm a { padding: .28rem .6rem; font-size: .78rem; }

/* indicateurs colorés */
.kpis-8 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi-c { border-top: 3px solid var(--c); }
.kpi-c b { color: var(--ink); }
.kpi small.up { color: #16C784; font-weight: 650; } .kpi small.down { color: #FF3D71; font-weight: 650; }

/* grille de graphiques */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chart-grid > .card { margin: 0; min-width: 0; } .chart-grid .span-2 { grid-column: 1 / -1; }
.ch { position: relative; width: 100%; } .ch-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.ch-svg text { font-family: Inter, system-ui, sans-serif; }
.ch-draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.1s ease-out forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.ch-bar { transition: opacity .15s; } .ch-col:hover ~ .ch-bar { opacity: .8; }
.ch-legend { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.ch-key { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: .22rem .65rem; cursor: pointer; }
.ch-key i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; } .ch-key.off { opacity: .4; text-decoration: line-through; } .ch-legend.static .ch-key { cursor: default; }
.ch-tip { position: fixed; z-index: 120; display: none; pointer-events: none; min-width: 170px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; box-shadow: var(--shadow-2); font-size: .8rem; }
.ch-tip b { display: block; margin-bottom: .3rem; } .ch-tip div { display: flex; align-items: center; gap: .45rem; padding: .1rem 0; } .ch-tip div i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; } .ch-tip div span { margin-left: auto; font-weight: 700; padding-left: .8rem; }
.ch-donut-wrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; } .ch-seg { cursor: pointer; transition: opacity .15s; } .ch-seg:hover { opacity: .85; }
.ch-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 170px; display: grid; gap: .4rem; font-size: .86rem; }
.ch-list li { display: grid; grid-template-columns: 12px 1fr auto 3rem; gap: .5rem; align-items: center; } .ch-list i { width: 12px; height: 12px; border-radius: 4px; } .ch-list small { color: var(--ink-3); text-align: right; }
.ch-hbars { display: grid; gap: .55rem; }
.ch-hrow { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: .7rem; align-items: center; font-size: .86rem; }
.ch-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ch-htrack { display: grid; gap: 3px; } .ch-htrack i { display: block; height: 10px; border-radius: 5px; min-width: 0; transition: width .6s; }
.ch-hrow b { font-variant-numeric: tabular-nums; font-size: .82rem; white-space: nowrap; }
.ch-funnel { display: grid; gap: .55rem; } .ch-fstep small { display: block; color: var(--ink-3); font-size: .74rem; margin: .15rem 0 0 .2rem; }
.ch-fbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: #fff; padding: .55rem .8rem; border-radius: 9px; font-size: .88rem; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; transition: width .6s; }
.ch-funnel, .chart-grid > .card { overflow: hidden; }
.ch-fbar b { font-size: 1rem; }
.ch-heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: .68rem; color: var(--ink-3); }
.ch-heat i { aspect-ratio: 1; border-radius: 4px; min-height: 10px; } .ch-heat .hd { display: flex; align-items: center; } .ch-heat .hh { text-align: left; }
.ch-heat-scale { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; margin-top: .6rem; font-size: .72rem; color: var(--ink-3); } .ch-heat-scale i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,107,44,.15), #FF6B2C); }

/* objectifs */
.rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: .9rem; } .rings.sm { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.ring-card { display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); } .ring-card.sm { padding: .5rem .6rem; gap: .7rem; }
.ring-card b { font-size: .85rem; } .ring-card small { display: block; color: var(--ink-3); font-size: .75rem; margin-top: .15rem; }
.big { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .big span { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.ring-card.sm .big { font-size: 1.1rem; }
.ch-ring { flex: none; } .ch-ring-arc { transition: stroke-dasharray .8s ease; }
.state { display: inline-block; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 99px; margin-top: .2rem; }
.state.s-good { background: rgba(22, 199, 132, .14); color: #10a36c; } .state.s-warm { background: rgba(245, 183, 0, .16); color: #b38600; } .state.s-bad { background: rgba(255, 61, 113, .14); color: #e0245e; } .state.s-off { background: rgba(148, 163, 184, .16); color: var(--muted); } .obj-card.st-off { border-top-color: #94A3B8; }
:root[data-theme="dark"] .state.s-good { color: #2ee6a0; } :root[data-theme="dark"] .state.s-warm { color: #ffd23f; } :root[data-theme="dark"] .state.s-bad { color: #ff6b93; }
.dash-obj { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; } .dash-obj h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; } .obj-grid .card { margin: 0; }
.obj-card { border-top: 3px solid var(--line); } .obj-card.st-good { border-top-color: #16C784; } .obj-card.st-warm { border-top-color: #F5B700; } .obj-card.st-bad { border-top-color: #FF3D71; }
.obj-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.obj-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: .4rem; } .obj-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pace-bar { position: relative; height: 12px; border-radius: 99px; background: var(--surface-3); overflow: visible; margin: .3rem 0 .45rem; }
.pace-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s; }
.pace-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.pace-bar u { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 2px dotted var(--ink-3); }
.pace small { color: var(--ink-3); font-size: .76rem; }
.obj-facts { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .86rem; }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.action-list a { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: var(--ink); background: var(--surface-2); transition: border-color .15s; }
.action-list a:hover { border-color: var(--sky); } .action-list .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky-2); flex: none; }
.action-list b { display: block; font-size: .9rem; } .action-list small { color: var(--ink-3); font-size: .78rem; }
.action-list .num { margin-left: auto; font-size: 1.25rem; font-weight: 800; } .action-list .gain { font-size: .74rem; font-weight: 700; color: #10a36c; background: rgba(22, 199, 132, .12); padding: .2rem .5rem; border-radius: 99px; white-space: nowrap; }
.dot-c { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: .5rem; vertical-align: middle; }
.obj-table input.num { width: 6.5rem; } .obj-table td:first-child { white-space: nowrap; font-weight: 550; }
@media (max-width: 860px) {
  .chart-grid { grid-template-columns: 1fr; } .chart-grid .span-2 { grid-column: auto; }
  .period-bar { flex-direction: column; align-items: stretch; } .period-bar .seg { overflow-x: auto; flex-wrap: nowrap; } .period-nav { justify-content: space-between; }
  .ch-heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 1px; font-size: .58rem; } .ch-heat i { border-radius: 2px; }
  .action-list .gain { display: none; }
  .obj-table input.num { width: 4.8rem; }
}

/* =====================================================================
   v11 — notifications, bulles d'aide, Mode appels, Pilote automatique, pages villes
   ===================================================================== */
/* Bulles d'aide */
[data-tip] { }
.tip-bubble { position: fixed; z-index: 400; max-width: 320px; background: #0d1b2e; color: #fff; font-size: .8rem; line-height: 1.45; padding: .55rem .7rem; border-radius: 9px; box-shadow: var(--shadow-3); pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity .12s, transform .12s; }
.tip-bubble.on { opacity: 1; transform: none; }
:root[data-theme="dark"] .tip-bubble { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip-bubble { background: #fff; color: #000; } }
.page-help { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: .45rem; vertical-align: middle; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 50%; cursor: pointer; padding: 0; }
.page-help:hover { color: var(--brand); border-color: var(--sky); } .page-help .ic { width: 17px; height: 17px; }
.help-panel { position: fixed; inset: 0; z-index: 350; background: rgba(4, 18, 40, .45); display: grid; place-items: center; padding: 16px; }
.help-panel[hidden] { display: none; }
.help-in { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 1.3rem 1.4rem; }
.help-in h3 { margin: 0 0 .5rem; } .help-in ul { padding-left: 1.1rem; margin: .6rem 0 1rem; } .help-in li { margin-bottom: .4rem; font-size: .9rem; color: var(--ink-2); } .help-in li b { color: var(--ink); }
.help-in .x { position: absolute; top: .5rem; right: .6rem; border: 0; background: none; font-size: 1.5rem; color: var(--ink-3); cursor: pointer; }
/* Cloche */
.icon-btn.notif { position: relative; }
.n-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #ff3d71; color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.n-count[hidden] { display: none; }
/* Bandeau d'activation */
.push-banner { display: flex; align-items: center; gap: .7rem; background: var(--sky-soft); border: 1px solid color-mix(in srgb, var(--sky) 40%, transparent); color: var(--ink); border-radius: var(--r); padding: .65rem .9rem; margin-bottom: 1rem; font-size: .88rem; }
.push-banner .ic { color: var(--sky-2); flex: none; } .push-banner span { flex: 1; } .push-banner .x { border: 0; background: none; font-size: 1.3rem; color: var(--ink-3); cursor: pointer; }
.push-state .state-line { padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--surface-3); margin: 0 0 .8rem; }
.state-line.s-good { background: var(--good-bg); color: var(--good); } .state-line.s-bad { background: var(--bad-bg); color: var(--bad); } .state-line.s-warm { background: var(--warm-bg); color: var(--warm); }
.push-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; } .push-actions [hidden] { display: none; }
.howto summary { cursor: pointer; font-weight: 600; font-size: .88rem; } .howto ul { padding-left: 1.1rem; } .howto li { margin: .35rem 0; color: var(--ink-2); }
.device-list, .notif-list, .wait-list, .feed, .lift-list, .queue-list { list-style: none; padding: 0; margin: 0; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line-2); }
.device-list li > span { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; } .device-list small { width: 100%; padding-left: 1.6rem; }
.pref-list { display: grid; gap: .3rem; }
.pref { display: flex !important; align-items: flex-start; gap: .6rem; padding: .5rem .55rem; border-radius: var(--r-sm); margin: 0 !important; cursor: pointer; }
.pref:hover { background: var(--surface-2); } .pref input { margin-top: .2rem; } .pref span { flex: 1; } .pref b { display: block; font-size: .9rem; } .pref small { color: var(--ink-3); }
.pref .tag.hot, .tag.hot { background: var(--hot-bg); color: var(--hot); font-style: normal; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; }
.notif-list li a { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .4rem; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.notif-list li a:hover { background: var(--surface-2); }
.notif-list span { flex: 1; min-width: 0; } .notif-list b { display: block; font-weight: 600; } .notif-list small { color: var(--ink-2); display: block; }
.notif-list time { font-size: .75rem; color: var(--ink-3); text-align: right; white-space: nowrap; } .notif-list time small { color: var(--ink-3); }
.notif-list .dot-k { width: 9px; height: 9px; border-radius: 50%; margin-top: .45rem; background: transparent; flex: none; }
.notif-list li.unread .dot-k { background: #2f9bff; } .notif-list li.unread b { font-weight: 800; }
.notif-list li.unread.k-chaud .dot-k, .notif-list li.unread.k-rdv .dot-k, .notif-list li.unread.k-sla .dot-k { background: #ff3d71; }
/* Mode appels */
.call-stats { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.call-pill { display: inline-flex; align-items: center; gap: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .3rem .75rem; font-size: .85rem; }
.call-pill .ic { width: 16px; height: 16px; color: var(--sky-2); }
.sys-alert.soft { background: var(--surface-2); border-color: var(--line); }
.call-card .call-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.call-card h2 { margin: .35rem 0 .15rem; font-size: 1.35rem; } .call-card h2 a { color: var(--ink); text-decoration: none; }
.chance { display: grid; text-align: center; background: var(--sky-soft); border-radius: var(--r); padding: .55rem .8rem; min-width: 96px; }
.chance b { font-size: 1.6rem; color: var(--brand); line-height: 1.1; } .chance small { font-size: .7rem; color: var(--ink-2); }
.chance.sm { display: inline-grid; min-width: 0; padding: .3rem .6rem; } .chance.sm b { font-size: 1.05rem; }
.chance-line { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: -.2rem 0 .7rem; }
.reason { display: inline-block; font-size: .75rem; padding: .12rem .5rem; border-radius: 99px; margin: .1rem .15rem .1rem 0; }
.reason.up { background: var(--good-bg); color: var(--good); } .reason.down { background: var(--bad-bg); color: var(--bad); }
.call-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; } .btn.big { font-size: 1.02rem; padding: .75rem 1.15rem; }
.script { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: .9rem 1rem; }
.script h3, .outcomes h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 .5rem; }
.script > p:first-of-type { font-size: 1rem; color: var(--ink); }
.script details summary { cursor: pointer; font-weight: 600; font-size: .88rem; margin-top: .4rem; }
.outcomes { margin-top: 1rem; }
.out-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.out-grid .btn { justify-content: center; }
.btn.out-good { background: var(--good-bg); color: var(--good); border-color: transparent; } .btn.out-warm { background: var(--warm-bg); color: var(--warm); border-color: transparent; }
.btn.out-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .btn.out-muted { background: var(--surface-3); color: var(--ink-2); border-color: transparent; }
.out-extra { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; margin-top: .7rem; }
.tag.tier-1, .tag.tier-2 { background: var(--hot-bg); color: var(--hot); font-weight: 700; } .tag.tier-3, .tag.tier-4 { background: var(--sky-soft); color: var(--sky-2); font-weight: 700; }
.queue-list li a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .5rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.queue-list li a:hover { background: var(--surface-2); } .queue-list li.on a { background: var(--sky-soft); }
.queue-list b { display: block; font-size: .9rem; } .queue-list small { color: var(--ink-3); font-size: .75rem; } .queue-list em { font-style: normal; font-weight: 700; color: var(--brand); white-space: nowrap; }
.hour-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: .4rem; }
.hour-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .65rem; color: var(--ink-3); }
.hour-bars i { width: 100%; background: linear-gradient(180deg, #4fb4e9, #2f9bff); border-radius: 4px 4px 0 0; } .hour-bars b { color: var(--ink-2); font-size: .62rem; }
/* Pilote automatique */
.effort { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: linear-gradient(135deg, #043872, #0a5bb5); color: #fff; border: 0; }
.effort div { display: grid; } .effort b { font-size: 1.7rem; font-weight: 800; } .effort span { font-size: .8rem; opacity: .85; } .effort b.hot { color: #ffb199; }
:root[data-theme="dark"] .effort { background: #000; border: 1px solid #1f1f1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .effort { background: #000; border: 1px solid #1f1f1f; } }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.agent { display: grid !important; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: .2rem .75rem; align-items: center; text-decoration: none; color: var(--ink); margin: 0 !important; transition: border-color .15s, transform .15s; }
.agent:hover { border-color: var(--sky); transform: translateY(-1px); }
.agent-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--sky-soft); color: var(--sky-2); display: grid; place-items: center; }
.agent-txt b { display: block; font-size: .93rem; } .agent-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: .75rem; line-height: 1.35; }
.agent-num { text-align: right; } .agent-num b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; } .agent-num small { font-size: .68rem; color: var(--ink-3); }
.agent .state { grid-column: 2 / 4; justify-self: start; margin: 0; }
.state.s-off { background: var(--surface-3); color: var(--ink-3); }
.wait-list li a, .lift-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.wait-list b { display: block; } .wait-list small { color: var(--ink-3); font-size: .75rem; } .wait-list em { font-style: normal; }
.lift-list span { flex: 1; font-size: .88rem; } .lift-list b.up { color: var(--good); } .lift-list b.down { color: var(--bad); } .lift-list small { color: var(--ink-3); font-size: .72rem; width: 110px; text-align: right; }
.feed li { display: flex; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--line-2); font-size: .86rem; } .feed time { color: var(--ink-3); font-size: .75rem; min-width: 84px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
label.check { display: flex !important; gap: .5rem; align-items: center; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
/* Pages villes */
.ville .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--sky-2); margin: 0 0 .3rem; }
.ville-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.4rem; }
.ville .card { margin-bottom: 1rem; } .ville details { border-top: 1px solid var(--line-2); padding: .6rem 0; } .ville summary { cursor: pointer; font-weight: 600; }
.ville-end { text-align: center; } .ville-links { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; color: var(--ink-2); line-height: 1.9; white-space: normal; } .ville-links span { width: 100%; }
@media (max-width: 760px) {
  .effort { grid-template-columns: 1fr 1fr; } .row3, .out-extra { grid-template-columns: 1fr; }
  .call-card .call-top { flex-direction: column; } .chance { justify-self: start; }
  .lift-list small { width: auto; }
}
/* v12 — Sécurité */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.check-list li { display: flex; gap: .7rem; padding: .6rem .2rem; border-top: 1px solid var(--line-2); }
.check-list li > b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.check-list li.ok > b { background: var(--good-bg); color: var(--good); } .check-list li.ko > b { background: var(--warm-bg); color: var(--warm); }
.check-list strong { display: block; font-size: .92rem; } .check-list small { color: var(--ink-2); }
tr.warn td { background: var(--warm-bg); }
.pw-meter { height: 5px; border-radius: 99px; background: var(--surface-3); margin-top: .35rem; overflow: hidden; } .pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-hint { font-size: .75rem; color: var(--ink-3); margin-top: .2rem; display: block; }
/* v12 — Liens & QR codes */
.liens-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem .9rem; } .liens-form .span-2 { grid-column: span 2; } .liens-form .btn { justify-self: start; }
.liens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: .9rem; }
.lien { display: flex !important; gap: 1rem; align-items: flex-start; margin: 0 !important; } .lien.off { opacity: .55; }
.lien-qr { flex: none; background: #fff; border-radius: 8px; padding: 2px; line-height: 0; border: 1px solid var(--line); }
.lien-txt { min-width: 0; display: grid; gap: .3rem; } .lien-txt small { color: var(--ink-3); } .lien-txt code { word-break: break-all; }
.lien-num { display: flex; gap: 1rem; font-size: .8rem; color: var(--ink-2); } .lien-num b { font-size: 1.05rem; color: var(--ink); }
.lien .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.warn-text { color: var(--warm); }
@media (max-width: 760px) { .liens-form { grid-template-columns: 1fr; } .liens-form .span-2 { grid-column: auto; } .liens-grid { grid-template-columns: 1fr; } .lien { flex-direction: column; } }
.quick-replies { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .6rem 1rem; border-top: 1px solid var(--line-2); }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: .25rem .65rem; font-size: .78rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--sky); color: var(--ink); } .chip-btn.sugg { background: var(--sky-soft); border-color: var(--sky); color: var(--brand); font-weight: 600; }
.setup-card .pace-bar { margin: .2rem 0 .8rem; }
.setup-next { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.setup-next a { display: grid; gap: .25rem; height: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.setup-next a:hover { border-color: var(--sky); } .setup-next small { color: var(--ink-2); font-size: .78rem; } .setup-next .btn { justify-self: start; margin-top: .3rem; }
.kpis-6 { grid-template-columns: repeat(6, 1fr); } .todo-card ol { padding-left: 1.2rem; } .todo-card li { margin: .4rem 0; }
@media (max-width: 900px) { .setup-next, .kpis-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .setup-next { grid-template-columns: 1fr; } }
@media print { .side, .topbar, .tabbar, .no-print, .page-help, .push-banner { display: none !important; } .main { margin: 0 !important; } body { background: #fff !important; } }
/* v13 — image + légende, vocal */
.chat-img { display: block; max-width: 100%; border-radius: 8px; } .chat-cap { display: block; margin-top: .45rem; } .chat-audio { display: block; font-size: .8rem; margin-bottom: .3rem; } .bubble audio { max-width: 100%; height: 36px; }
/* v13 — priorités, Mes actions, relecture */
.prio { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 .35rem; border-radius: 6px; font-size: .7rem; font-weight: 800; vertical-align: middle; letter-spacing: .02em; }
.prio-1 { background: #FF3D71; color: #fff; } .prio-2 { background: #F5B700; color: #111; } .prio-3 { background: var(--surface-3); color: var(--ink-3); }
h1 .prio { font-size: .8rem; height: 24px; }
.prio-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.prio-box { display: grid; gap: .1rem; padding: .9rem 1rem; border-radius: var(--r); text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-left-width: 5px; }
.prio-box b { font-size: 1.8rem; line-height: 1; } .prio-box span { font-size: .8rem; color: var(--ink-2); }
.prio-box.prio-1 { border-left-color: #FF3D71; } .prio-box.prio-2 { border-left-color: #F5B700; } .prio-box.prio-3 { border-left-color: #94A3B8; }
.prio-box.prio-1, .prio-box.prio-2, .prio-box.prio-3 { background: var(--surface); color: var(--ink); min-width: 0; height: auto; place-items: initial; font-size: inherit; font-weight: inherit; }
.todo-list { list-style: none; padding: 0; margin: 0; }
.todo { display: flex; gap: .8rem; padding: .85rem .2rem; border-top: 1px solid var(--line-2); }
.todo-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky-2); }
.todo-body { min-width: 0; flex: 1; display: grid; gap: .3rem; } .todo-body > b { font-size: .95rem; } .todo-body .why { color: var(--ink-2); }
.todo-btns { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .2rem; }
.prep summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--sky-2); } .prep p { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .6rem .75rem; font-size: .88rem; margin: .4rem 0; white-space: pre-line; }
.approvals { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: .9rem; }
.approval { margin: 0 !important; } .approval h3 { margin: 0; font-size: 1rem; } .approval h3 a { color: var(--ink); text-decoration: none; }
.wa-preview { background: #e7f7e0; border-radius: 10px; padding: .6rem; margin: .5rem 0 .7rem; color: #111; }
:root[data-theme="dark"] .wa-preview { background: #0b2a1a; color: #e6eef8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-preview { background: #0b2a1a; color: #e6eef8; } }
.wa-preview textarea { width: 100%; background: transparent; border: 1px dashed rgba(0,0,0,.2); color: inherit; }
.sm-input { max-width: 180px; padding: .3rem .5rem !important; font-size: .8rem; }
.chip-btn.img { border-style: solid; }
.modes td { vertical-align: middle; }
@media (max-width: 700px) { .prio-summary { grid-template-columns: 1fr; } .approvals { grid-template-columns: 1fr; } }

/* v14 : catalogue des services (image en haut, texte en dessous, comme chez le client) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: .8rem 0 1rem; }
.svc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; margin: 0; }
.svc-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-3); border-bottom: 1px solid var(--line-2); }
.svc-card .svc-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink-3); background: var(--surface-3); font-size: .85rem; }
.svc-body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.svc-body h3 { margin: 0; font-size: 1rem; }
.svc-body .todo-btns { margin-top: auto; padding-top: .4rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.svc-card.is-draft { border-style: dashed; } .svc-card.is-draft > img { opacity: .7; }
.svc-add { align-items: center; justify-content: center; text-align: center; gap: .4rem; min-height: 220px; padding: 1rem; border-style: dashed; color: var(--ink-2); text-decoration: none; }
.svc-add:hover { border-color: var(--brand); color: var(--brand); }
.wa-phone { background: #efe7dd; border-radius: 12px; padding: .7rem; margin: .5rem 0; max-width: 380px; }
.wa-bubble { background: #fff; color: #111; border-radius: 9px; padding: .3rem; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-bubble img { display: block; width: 100%; border-radius: 7px; }
.wa-bubble p { margin: .4rem .35rem .3rem; font-size: .86rem; line-height: 1.42; white-space: normal; overflow-wrap: anywhere; }
:root[data-theme="dark"] .wa-phone { background: #0b141a; } :root[data-theme="dark"] .wa-bubble { background: #1f2c34; color: #e9edef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-phone { background: #0b141a; } :root:not([data-theme="light"]) .wa-bubble { background: #1f2c34; color: #e9edef; } }
.cols-solo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; grid-column: 1 / -1; }
.cols-solo > .card { margin-bottom: 0; }

/* v15 : vitesse de réponse */
.lat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin: .4rem 0 .6rem; }
.lat-row > div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .8rem; }
.lat-row b { display: block; font-size: 1.5rem; line-height: 1.1; } .lat-row b.good { color: var(--good); } .lat-row b.bad { color: var(--bad, #c0392b); }
.lat-row small { color: var(--ink-3); font-size: .78rem; }
/* v15 : urgences absolues */
.urg { border: 1px solid color-mix(in srgb, #e5484d 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #e5484d 9%, var(--surface)), var(--surface) 70%); }
.urg-calm { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--surface); }
.urg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .5rem; }
.urg-head h2 { margin: 0; display: flex; align-items: center; gap: .45rem; } .urg-head h2 .ic { color: #e5484d; } .urg-calm .urg-head h2 .ic { color: var(--good); }
.urg-n { background: #e5484d; color: #fff; border-radius: 99px; padding: .05rem .55rem; font-size: .85rem; }
.urg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.urg-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .8rem; padding: .65rem .75rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.urg-main { display: flex; gap: .7rem; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.urg-main small { display: block; } .urg-quote { color: var(--ink-3); font-style: italic; overflow-wrap: anywhere; }
.urg-timer { flex: none; min-width: 4.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: #e5484d; border-radius: 8px; padding: .3rem .4rem; font-size: .85rem; }
.urg-item .todo-btns { display: flex; flex-wrap: wrap; gap: .35rem; }
.urg-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: #e5484d; color: #fff; text-decoration: none; border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; font-size: .92rem; box-shadow: var(--shadow-1); }
.urg-bar[hidden] { display: none; } .urg-bar .ic { color: #fff; } .urg-bar .urg-go { margin-left: auto; font-weight: 700; } .urg-bar:hover { filter: brightness(1.05); }
/* v15 : installation */
.install-hero { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.install-main { display: flex; gap: 1rem; align-items: flex-start; flex: 1 1 320px; } .install-main img { border-radius: 16px; flex: none; } .install-main h2 { margin: 0 0 .2rem; }
.install-qr { display: flex; flex-direction: column; align-items: center; gap: .4rem; max-width: 200px; text-align: center; } .install-qr svg { background: #fff; padding: 8px; border-radius: 10px; } .install-qr small { color: var(--ink-3); }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; } .install-grid .card { margin: 0; }
.install-os ol { padding-left: 1.2rem; margin: .4rem 0 0; display: grid; gap: .35rem; font-size: .9rem; } .install-os.is-here { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.good-text { color: var(--good); font-weight: 600; }
.install-qr.only-desktop-qr { display: none; }
.install-login { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line-2); display: grid; gap: .6rem; }
.install-login summary { cursor: pointer; color: var(--ink-2); font-size: .9rem; display: flex; align-items: center; gap: .4rem; } .install-login ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; } .install-login li.here { font-weight: 600; }
/* v19 : connexion avec vos comptes */
.cx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.cx-box { border: 1px solid var(--line-2); border-radius: 12px; padding: .9rem 1rem; background: var(--surface-2); min-width: 0; }
.cx-box h3 { margin: 0 0 .5rem; font-size: 1rem; } .cx-box .steps { padding-left: 1.1rem; display: grid; gap: .35rem; } .cx-box code { word-break: break-all; }
.fb-btn { background: #1877f2 !important; border-color: #1877f2 !important; color: #fff !important; }
.guide-cx td { vertical-align: top; } .tag.warn { background: #fff4e0; color: #8a5300; }

/* ============================================================== v22 : écran d'entrée institutionnel */
body.auth::before { background: #0a2347; }
.auth-aside { overflow: hidden; isolation: isolate; padding: 2.75rem 3.25rem; color: rgba(255,255,255,.78); background: #0a2347; border-right: 1px solid rgba(255,255,255,.06); }
.aa-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aa-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12); opacity: 0; animation: aa-fade 1s ease .1s forwards; }
.aa-live { white-space: nowrap; font-size: .78rem; letter-spacing: .02em; color: rgba(255,255,255,.62); }
.aa-live b { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.aa-mid { max-width: 30rem; }
.aa-kicker { margin: 0 0 1.25rem; font-size: .82rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .75rem; opacity: 0; animation: aa-up 1s ease .25s forwards; }
.aa-kicker::before { content: ""; width: 28px; height: 1px; background: rgba(255,255,255,.5); }
.auth-aside .aa-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em; font-weight: 500; margin: 0 0 1.5rem; max-width: none; display: grid; }
.aa-line { display: block; opacity: 0; transform: translateY(10px); animation: aa-up 1s ease forwards; } .aa-line:nth-child(1) { animation-delay: .4s; } .aa-line:nth-child(2) { animation-delay: .55s; }
.aa-rotbox { margin: 0 0 2.2rem; opacity: 0; animation: aa-up 1s ease .75s forwards; }
.aa-rot { position: relative; display: block; height: 1.6em; font-size: 1.05rem; overflow: hidden; }
.aa-rot b { position: absolute; left: 0; top: 0; white-space: nowrap; color: #fff; font-weight: 500; opacity: 0; transform: translateY(100%); transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1); }
.aa-rot b.on { opacity: 1; transform: none; } .aa-rot b.out { opacity: 0; transform: translateY(-100%); }
.aa-bar { display: block; width: 64px; height: 1px; margin-top: .55rem; background: rgba(255,255,255,.18); overflow: hidden; }
.aa-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.aa-bar i.go { animation: aa-bar 4.5s linear forwards; }
@keyframes aa-bar { to { transform: scaleX(1); } }
.auth-aside .aa-feats { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; gap: 0; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.12); }
.auth-aside .aa-feats li { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); opacity: 0; animation: aa-fade .9s ease forwards; }
.auth-aside .aa-feats li::before { content: none; }
.aa-feats li:nth-child(1) { animation-delay: .95s; } .aa-feats li:nth-child(2) { animation-delay: 1.1s; } .aa-feats li:nth-child(3) { animation-delay: 1.25s; }
.aa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); opacity: 0; animation: aa-fade 1s ease 1.4s forwards; }
.aa-stats > div { padding: 0 1.2rem; border-left: 1px solid rgba(255,255,255,.18); } .aa-stats > div:first-child { padding-left: 0; border-left: 0; }
.aa-stats b { display: block; font-family: "Source Serif 4", Georgia, serif; color: #fff; font-size: 1.85rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.auth-aside .aa-stats small { display: block; color: rgba(255,255,255,.6); font-size: .76rem; opacity: 1; margin-top: .3rem; }
.auth-aside .aa-foot { display: block; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .75rem; opacity: 0; animation: aa-fade 1s ease 1.6s forwards; }
@keyframes aa-up { to { opacity: 1; transform: none; } }
@keyframes aa-fade { to { opacity: 1; } }
body.auth .card.narrow { animation: aa-card .8s ease .15s both; }
@keyframes aa-card { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.auth .card.narrow input { transition: border-color .2s; }
body.auth .card.narrow input:focus { border-color: #0a2347; box-shadow: none; outline: 1px solid #0a2347; outline-offset: 0; }
@media (max-width: 900px) {
  .auth-aside { position: relative; width: auto; min-height: 0; padding: 1.3rem 1.25rem 1.5rem; grid-column: 1; border-right: 0; }
  .aa-top { padding-bottom: 1rem; margin-bottom: 1.4rem; } .aa-hx { display: none; }
  .auth-aside .aa-feats, .auth-aside .aa-foot, .aa-kicker { display: none; }
  .auth-aside .aa-title { font-size: 1.75rem; margin-bottom: 1rem; }
  .aa-rot { font-size: .95rem; } .aa-rotbox { margin-bottom: 1.5rem; }
  .aa-stats > div { padding: 0 .8rem; } .aa-stats b { font-size: 1.35rem; } .auth-aside .aa-stats small { font-size: .7rem; }
  body.auth .brand.big { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aa-top, .aa-kicker, .aa-line, .aa-rotbox, .aa-feats li, .aa-stats, .aa-foot, body.auth .card.narrow { opacity: 1 !important; transform: none !important; } }
