/* ============================================================
   APPEL 112 — écrans et composants métier
   ============================================================ */

/* ── Authentification ─────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); position: relative; z-index: 1; }
.auth-hero {
  position: relative; overflow: hidden;
  padding: 40px clamp(28px, 5vw, 68px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  background:
    radial-gradient(80% 60% at 15% 0%, rgba(42, 212, 232, .12), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(239, 68, 68, .10), transparent 60%),
    linear-gradient(160deg, #071019, #050a11 55%);
  border-right: 1px solid var(--line);
}
.auth-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 150, 190, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 150, 190, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 75%);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-hero-body { position: relative; z-index: 1; max-width: 560px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-title { font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 66px); line-height: .96; letter-spacing: -.02em; font-weight: 700; }
.auth-title em { font-style: normal; color: var(--accent); }
.auth-lead { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 480px; }
.auth-features { margin-top: 30px; display: grid; gap: 13px; }
.auth-features li { display: flex; align-items: flex-start; gap: 12px; }
.auth-features .af-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(12, 24, 38, .7); color: var(--accent);
}
.auth-features .af-ico svg { width: 17px; height: 17px; }
.auth-features b { display: block; font-size: 12.5px; font-weight: 650; color: var(--text); }
.auth-features span { font-size: 11.5px; color: var(--muted); }
.auth-live { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.auth-live .al-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.auth-live .al-item b { color: var(--text); font-family: var(--mono); font-size: 14px; }
.auth-live .pulse-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.auth-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.auth-foot .af-links { display: flex; gap: 16px; }

.auth-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px 22px;
  background: var(--bg-2);
  background-image: radial-gradient(70% 50% at 80% 0%, rgba(42, 212, 232, .05), transparent 70%);
}
.auth-card { width: 100%; max-width: 398px; padding: 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 20px; }
.auth-tab { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; transition: var(--fast); }
.auth-tab.active { background: var(--panel-3); color: var(--text); box-shadow: var(--shadow-1); }
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.auth-card .ac-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-error { display: none; padding: 9px 11px; border-radius: 8px; background: var(--danger-soft); border: 1px solid rgba(239,68,68,.25); color: #ff8d8d; font-size: 11.5px; }
.auth-error.show { display: block; animation: fade-in .2s both; }
.auth-legal { font-size: 10px; color: var(--faint); text-align: center; max-width: 340px; line-height: 1.6; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.auth-note svg { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 1px; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 22px 26px; border-right: 0; border-bottom: 1px solid var(--line); gap: 24px; }
  .auth-title { font-size: clamp(34px, 9vw, 46px); }
  .auth-features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .auth-features li { gap: 9px; }
  .auth-features .af-ico { width: 28px; height: 28px; }
  .auth-features span { display: none; }
  .auth-live { margin-top: 18px; }
  .auth-foot { display: none; }
  .auth-side { padding: 24px 16px 36px; }
}
@media (max-width: 560px) {
  .auth-hero { padding: 22px 18px; }
  .auth-lead { font-size: 13.5px; margin-top: 14px; }
  .auth-features { display: none; }
  .auth-title { font-size: 36px; }
  .auth-live { margin-top: 16px; gap: 14px; }
}

/* ── Onboarding ───────────────────────────────────────────── */
.onb { min-height: 100dvh; display: flex; flex-direction: column; position: relative; z-index: 1; background: var(--bg); background-image: var(--glow); }
.onb-top { height: 62px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--panel-glass); backdrop-filter: blur(14px); }
.onb-progress { flex: 1; max-width: 420px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.onb-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transition: width .4s var(--ease); }
.onb-main { flex: 1; overflow-y: auto; padding: 30px 20px 100px; }
.onb-inner { max-width: 1120px; margin: 0 auto; }
.onb-eyebrow { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.onb-main h1 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 6px; }
.onb-main .onb-sub { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 620px; }
.onb-grid { margin-top: 22px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.onb-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 16px; }
.onb-foot { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 0 4px; background: linear-gradient(180deg, transparent, var(--bg) 35%); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onb-actions { display: flex; gap: 8px; align-items: center; }

.search-bar { display: flex; align-items: center; gap: 10px; }
.search-bar .input-icon { flex: 1; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 14px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.dept-card {
  text-align: left; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  transition: var(--fast); position: relative; overflow: hidden;
}
.dept-card:hover { border-color: var(--line-3); background: var(--panel-3); }
.dept-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.dept-card .dc-code { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .08em; }
.dept-card .dc-name { font-size: 13px; font-weight: 650; margin-top: 1px; }
.dept-card .dc-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 9.5px; color: var(--muted); }
.dept-card .dc-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.dept-card .dc-meta .dot.off { background: var(--faint); }
.dept-card .dc-ribbon { position: absolute; top: 0; right: 0; padding: 2px 7px; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; background: var(--accent); color: var(--accent-ink); border-bottom-left-radius: 7px; }

.city-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.city-chip { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 11.5px; font-weight: 600; transition: var(--fast); }
.city-chip:hover { color: var(--text); border-color: var(--line-3); }
.city-chip.active { background: var(--accent-soft); border-color: rgba(42,212,232,.35); color: var(--accent); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; margin-top: 14px; }
.slot-card {
  position: relative; text-align: left; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  transition: var(--fast); overflow: hidden;
}
.slot-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fc, var(--line-3)); opacity: .9; }
.slot-card:hover:not(.taken) { border-color: var(--line-3); background: var(--panel-3); transform: translateY(-1px); }
.slot-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.slot-card.taken { opacity: .62; cursor: not-allowed; }
.slot-card .sc-top { display: flex; align-items: center; gap: 8px; }
.slot-card .sc-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--fc); border: 1px solid color-mix(in srgb, var(--fc) 35%, transparent); }
.slot-card .sc-ico svg { width: 14px; height: 14px; }
.slot-card .sc-name { font-size: 12.5px; font-weight: 650; }
.slot-card .sc-desc { font-size: 10.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; min-height: 30px; }
.slot-card .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.slot-card .sc-cost { font-size: 11.5px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.slot-card .sc-cost.free { color: var(--ok); }
.slot-card .sc-owner { font-size: 9.5px; color: var(--faint); letter-spacing: .03em; }

.onb-side-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.onb-side-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onb-side-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.onb-recap { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.onb-recap .rc-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); flex: none; }
.onb-recap .rc-ico svg { width: 15px; height: 15px; }
.onb-recap b { display: block; font-size: 12px; }
.onb-recap span { font-size: 10.5px; color: var(--muted); }
.onb-map-preview { height: 150px; border-radius: 10px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(42,212,232,.12), transparent 65%), var(--panel-2); display: grid; place-items: center; color: var(--faint); font-size: 10.5px; }
.onb-hint { font-size: 10.5px; color: var(--muted); line-height: 1.5; display: flex; gap: 7px; }
.onb-hint svg { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 1px; }
@media (max-width: 900px) {
  .onb-grid { grid-template-columns: 1fr; }
  .onb-side { order: -1; }
  .onb-side-body { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .onb-map-preview { display: none; }
  .onb-main { padding: 20px 14px 90px; }
  .dept-grid { max-height: none; }
  .onb-foot { position: sticky; background: var(--panel-glass); backdrop-filter: blur(14px); border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
  .onb-foot .onb-recap-compact { font-size: 11px; color: var(--muted); }
}

/* ── Modale ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 7, 12, .66); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade-in .16s var(--ease) both;
}
.modal {
  width: min(620px, 100%); max-height: min(88dvh, 900px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: var(--shadow-2); overflow: hidden;
  animation: slide-up .22s var(--ease) both;
}
.modal.wide { width: min(820px, 100%); }
.modal.narrow { width: min(460px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal-head .mh-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.modal-head .mh-ico svg { width: 18px; height: 18px; }
.modal-head h2 { font-size: 16px; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: var(--bg-2); }
.modal-foot .left { margin-right: auto; font-size: 11px; color: var(--muted); }

@media (max-width: 560px) {
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: slide-up .24s var(--ease) both; }
  .modal-foot { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
}

/* ── Toasts ───────────────────────────────────────────────── */
.toast-root {
  position: fixed; z-index: 120; right: 18px; bottom: 18px;
  display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-end;
  pointer-events: none; max-width: min(380px, calc(100vw - 36px));
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 240px; padding: 11px 13px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); animation: slide-up .22s var(--ease) both;
  font-size: 12px; line-height: 1.45;
}
.toast.out { animation: fade-in .2s reverse both; }
.toast .t-ico { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.toast .t-ico svg { width: 13px; height: 13px; }
.toast.ok .t-ico { background: var(--ok-soft); color: var(--ok); }
.toast.err .t-ico { background: var(--danger-soft); color: var(--danger); }
.toast.info .t-ico { background: var(--accent-soft); color: var(--accent); }
.toast b { display: block; font-size: 11.5px; color: var(--text); }
.toast span { color: var(--muted); }
@media (max-width: 560px) {
  .toast-root { right: 10px; left: 10px; bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom)); align-items: stretch; max-width: none; }
  .toast { min-width: 0; }
  body.modal-open .toast-root { top: calc(var(--topbar-h) + 10px); bottom: auto; }
}
body.modal-open .call-banner { opacity: 0 !important; pointer-events: none !important; }

/* ── États vides ──────────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 42px 20px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel), transparent);
}
.empty .e-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--faint); margin-bottom: 4px; }
.empty .e-ico svg { width: 22px; height: 22px; }
.empty h3 { font-size: 13px; }
.empty p { font-size: 11.5px; color: var(--muted); max-width: 320px; }

/* ── Appels ───────────────────────────────────────────────── */
.modal.xwide { width: min(1040px, 100%); }
.call-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}
.call-col { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.call-col h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.call-col h4 svg { width: 14px; height: 14px; color: var(--accent); }
.call-hero-compact { padding: 10px 12px; }
.call-hero-compact h3 { font-size: 13.5px; }
.call-hero-compact p { font-size: 10.5px; }
.call-fleet-scroll { max-height: 430px; overflow-y: auto; padding-right: 2px; }
.call-fleet-scroll .fleet-group { margin-bottom: 7px; }
.fleet-group.nearest { border-color: rgba(42, 212, 232, .35); }
.option-card.compact { padding: 8px 10px; }
.option-card.compact .oc-code { min-width: 38px; height: 22px; font-size: 9px; }
.option-card.compact .oc-body b { font-size: 11.5px; }
.option-card.compact .oc-body span { font-size: 9.5px; }
.qa-block { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.qa-facts { display: flex; flex-wrap: wrap; gap: 4px; }
.qa-facts:empty { display: none; }
.qa-log { display: flex; flex-direction: column; gap: 6px; max-height: 174px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.qa-msg { display: flex; flex-direction: column; gap: 2px; }
.qa-q { align-self: flex-end; max-width: 92%; padding: 4px 8px; border-radius: 8px 8px 2px 8px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; }
.qa-a { align-self: flex-start; max-width: 92%; padding: 5px 9px; border-radius: 8px 8px 8px 2px; background: var(--panel-3); color: var(--text-2); font-size: 11px; line-height: 1.4; }
.qa-questions { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; }
.qa-ask { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2); font-size: 10.5px; line-height: 1.35; transition: var(--fast); }
.qa-ask:hover { border-color: var(--accent); color: var(--text); background: var(--panel-3); }
.qa-ask span { margin-left: auto; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.qa-ask.loading { opacity: .5; pointer-events: none; }
.call-notes .input { height: 34px; }
.call-notes textarea.input { height: auto; font-size: 11.5px; }

/* ── Gestion tactique ─────────────────────────────────────── */
.tactical { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 12px; }
.tac-title { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.tac-title svg { width: 14px; height: 14px; color: var(--accent); }
.cos-bar { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); }
.cos-badge { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(42, 212, 232, .25); padding: 2px 5px; border-radius: 5px; }
.cos-bar b { display: block; font-size: 11.5px; }
.cos-bar span { font-size: 9.5px; color: var(--faint); }
.tac-progress { height: 6px; border-radius: 4px; background: var(--panel-3); margin: 10px 0 4px; overflow: hidden; }
.tac-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tac-progress-label { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); }
.tac-progress-label b { color: var(--accent); }
.tac-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tac-action { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.tac-action.done { opacity: .65; }
.tac-action.active { border-color: rgba(42, 212, 232, .35); background: var(--accent-soft); }
.tac-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font-size: 9px; flex: none; color: var(--ok); }
.tac-action.done .tac-dot { background: var(--ok); border-color: var(--ok); color: #04140b; }
.tac-action b { display: block; font-size: 11.5px; }
.tac-action .grow > span { display: block; font-size: 10px; color: var(--muted); line-height: 1.35; }
.tac-tags { font-size: 9px !important; color: var(--faint) !important; margin-top: 2px; }
.tac-action .chip, .tac-action .btn { flex: none; }
.tac-fleet { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.tac-fleet-head { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tac-fleet-head svg { width: 13px; height: 13px; color: var(--accent); }
.tac-fleet-head span { margin-left: auto; font-size: 10px; color: var(--text-2); }
.tac-veh { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tac-veh:last-child { border-bottom: 0; }
.tac-veh.busy { background: var(--accent-soft); }
.tac-veh .tv-type { font-size: 10px; color: var(--muted); }
.tac-veh .tv-task { margin-left: auto; font-size: 10px; color: var(--faint); }
.tac-veh.busy .tv-task { color: var(--accent); font-weight: 600; }
.tac-assign { display: flex; align-items: center; gap: 5px; flex: none; }
.tac-assign .tac-veh {
  height: 30px; min-width: 150px; max-width: 210px; font-size: 10.5px; padding: 0 26px 0 9px;
  color: var(--text); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 7px;
  appearance: none; -webkit-appearance: none; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.tac-assign .tac-veh:hover { border-color: var(--accent); }
.tac-assign .tac-veh:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.tac-action.locked { opacity: .55; }
.tac-assign .btn { height: 30px; font-size: 10px; padding: 0 10px; }
.staff-table .staff-shift { height: 28px; padding: 0 6px; font-size: 10.5px; min-width: 104px; }
.staff-table td { vertical-align: middle; }
.staff-table .tag-list { max-width: 210px; }
.xp-mini { width: 84px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; margin-bottom: 3px; }
.xp-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 980px) {
  .call-modal-grid { grid-template-columns: 1fr; }
  .call-fleet-scroll { max-height: 320px; }
}
@media (max-width: 560px) {
  .modal.xwide { width: 100%; }
}
.call-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .call-layout { grid-template-columns: 1fr; } }

.call-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid rgba(239, 68, 68, .28);
  background: linear-gradient(140deg, rgba(239, 68, 68, .09), var(--panel) 45%);
  padding: 15px 16px 15px 18px;
  display: flex; align-items: center; gap: 14px;
  animation: fade-up .3s var(--ease) both;
}
.call-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--danger); box-shadow: 0 0 18px var(--danger); }
.call-card.answered { border-color: rgba(42, 212, 232, .28); background: linear-gradient(140deg, rgba(42, 212, 232, .07), var(--panel) 45%); }
.call-card.answered::before { background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.call-card.missed { opacity: .55; animation: none; }
.call-pulse { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: #ff8080; flex: none; }
.call-pulse svg { width: 17px; height: 17px; }
.call-pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--danger); animation: pulse-ring 1.8s var(--ease) infinite; }
.call-card.answered .call-pulse { background: var(--accent-soft); color: var(--accent); }
.call-card.answered .call-pulse::before { animation: none; opacity: .35; }
.call-main { flex: 1; min-width: 0; }
.call-main .cc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.call-main .cc-title { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.call-main .cc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.call-main .cc-time { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.call-card .cc-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.call-ring { font-family: var(--mono); font-size: 12px; color: #ff9a9a; font-weight: 700; min-width: 46px; text-align: right; }

.call-hero {
  border-radius: 14px; border: 1px solid rgba(239,68,68,.25);
  background: linear-gradient(150deg, rgba(239,68,68,.1), transparent 70%);
  padding: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.call-hero .ch-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--danger); color: #fff; display: grid; place-items: center; flex: none; }
.call-hero .ch-ico svg { width: 20px; height: 20px; }
.call-hero h3 { font-size: 15px; }
.call-hero p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.call-script {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--text-2);
  font-style: italic;
}
.call-facts { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--panel); }
.fact .f-label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.fact .f-value { font-size: 12px; font-weight: 600; margin-top: 2px; }
.fact.wide { grid-column: 1 / -1; }

.option-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.option-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); text-align: left; width: 100%; color: var(--text);
  transition: var(--fast);
}
.option-card:hover { border-color: var(--line-3); background: var(--panel-3); }
.option-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px rgba(42,212,232,.08); }
.option-card .oc-code { min-width: 42px; height: 24px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); font-family: var(--mono); font-size: 9.5px; font-weight: 700; flex: none; }
.option-card .oc-body b { display: block; font-size: 12.5px; }
.option-card .oc-body span { font-size: 10.5px; color: var(--muted); }
.option-card .oc-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); flex: none; display: grid; place-items: center; }
.option-card.selected .oc-check { border-color: var(--accent); background: var(--accent); }
.option-card.selected .oc-check::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #04141a; border-bottom: 2px solid #04141a; transform: rotate(-45deg) translateY(-1px); }
.target-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--panel-2); display: flex; align-items: center; gap: 10px; }
.target-box .tb-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.target-box .tb-body { flex: 1; }
.target-box b { display: block; font-size: 12px; }
.target-box span { font-size: 10.5px; color: var(--muted); }

/* ── Interventions ────────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-tab { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.filter-tab:hover { background: var(--panel-2); color: var(--text); }
.filter-tab.active { background: var(--panel-3); border-color: var(--line-2); color: var(--text); }
.filter-tab .badge { margin-left: 6px; }

.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .op-grid { grid-template-columns: 1fr; } }
.op-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  display: flex; flex-direction: column;
  transition: var(--fast);
}
.op-card:hover { border-color: var(--line-3); }
.op-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pc, var(--line-3)); }
.op-card.p0 { --pc: #ef4444; }
.op-card.p1 { --pc: #f97316; }
.op-card.p2 { --pc: #eab308; }
.op-card.p3 { --pc: #64748b; }
.op-head { padding: 12px 14px 10px 16px; display: flex; align-items: flex-start; gap: 10px; }
.op-code { width: 44px; height: 30px; flex: none; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); color: var(--pc); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.op-title { flex: 1; min-width: 0; }
.op-title b { display: block; font-size: 13px; line-height: 1.25; }
.op-title span { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.op-body { padding: 0 14px 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.op-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.op-timeline { display: flex; align-items: center; gap: 0; margin: 2px 0; }
.op-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.op-step .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); border: 1.5px solid var(--line-3); z-index: 1; }
.op-step.done .st-dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 8px rgba(34,197,94,.5); }
.op-step.active .st-dot { background: var(--accent); border-color: var(--accent); animation: blink 1.4s infinite; }
.op-step .st-label { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.op-step.done .st-label, .op-step.active .st-label { color: var(--muted); }
.op-step:not(:last-child)::after { content: ""; position: absolute; top: 3.5px; left: 50%; right: -50%; height: 1px; background: var(--line-2); }
.op-step.done:not(:last-child)::after { background: var(--ok); opacity: .5; }
.op-veh { display: flex; flex-wrap: wrap; gap: 5px; }
.op-foot { margin-top: auto; padding: 10px 14px 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: var(--bg-2); }
.op-foot .of-info { font-size: 10.5px; color: var(--muted); }
.op-foot .btn { margin-left: auto; }
.op-result { font-size: 11px; color: var(--muted); line-height: 1.45; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.op-result b { color: var(--ok); }

.veh-select { display: flex; flex-direction: column; gap: 7px; }
.fleet-group { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; margin-bottom: 8px; background: var(--panel); }
.fleet-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.fleet-head b { font-size: 11px; color: var(--text); }
.fleet-head .owner { font-size: 9.5px; color: var(--faint); }
.fleet-head .fh-km { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.fleet-group .veh-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.fleet-group .veh-row:last-child { border-bottom: 0; }
.fleet-group .veh-row.selected { background: var(--accent-soft); }
.fleet-group .veh-row.incompatible { opacity: .7; }
.veh-row .vr-name .tag { margin-left: 4px; }
.veh-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); cursor: pointer;
  transition: var(--fast);
}
.veh-row:hover { border-color: var(--line-3); }
.veh-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.veh-row.disabled { opacity: .45; cursor: not-allowed; }
.veh-row .vr-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; }
.veh-row.selected .vr-check { background: var(--accent); border-color: var(--accent); }
.veh-row.selected .vr-check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #04141a; border-bottom: 2px solid #04141a; transform: rotate(-45deg) translateY(-1px); }
.veh-row .vr-name { font-size: 12px; font-weight: 650; }
.veh-row .vr-desc { font-size: 10px; color: var(--muted); }
.veh-row .vr-meta { margin-left: auto; text-align: right; font-size: 10px; color: var(--muted); }
.veh-row .vr-meta b { display: block; font-size: 11px; color: var(--text); }
.tag-list { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: var(--panel-3); color: var(--muted); }

/* ── Moyens / catalogue ───────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { position: relative; height: 38px; padding: 0 13px; background: transparent; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.tab svg { width: 15px; height: 15px; }

.facility-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.facility-head { padding: 13px 15px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), transparent); }
.facility-head .fh-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--fc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 30%, transparent); color: var(--fc); }
.facility-head .fh-ico svg { width: 19px; height: 19px; }
.facility-head h2 { font-size: 15px; }
.facility-head .fh-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.facility-head .fh-actions { margin-left: auto; display: flex; gap: 6px; }
.facility-stats { display: flex; gap: 18px; padding: 10px 15px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fstat { display: flex; flex-direction: column; gap: 1px; }
.fstat .fs-label { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fstat .fs-value { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.vtable { width: 100%; border-collapse: collapse; }
.vtable th { text-align: left; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; vertical-align: middle; }
.vtable tr:last-child td { border-bottom: 0; }
.vtable tr:hover td { background: var(--panel-2); }
.vtable .vt-name { font-weight: 650; }
.vtable .vt-name small { display: block; font-weight: 400; color: var(--faint); font-size: 9.5px; }
.vtable .vt-act { text-align: right; white-space: nowrap; }

.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.buy-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: var(--fast); }
.buy-card:hover { border-color: var(--line-3); transform: translateY(-1px); }
.buy-card .bc-top { display: flex; align-items: center; gap: 9px; }
.buy-card .bc-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-3); color: var(--accent); flex: none; }
.buy-card .bc-ico svg { width: 16px; height: 16px; }
.buy-card .bc-name { font-size: 12px; font-weight: 700; }
.buy-card .bc-full { font-size: 9.5px; color: var(--faint); line-height: 1.35; }
.buy-card .bc-desc { font-size: 10.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.buy-card .bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.buy-card .bc-price { font-size: 12px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.buy-card.locked { opacity: .6; }

/* ── Économie ─────────────────────────────────────────────── */
.eco-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; }
@media (max-width: 900px) { .eco-hero { grid-template-columns: 1fr; } }
.balance-card { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(140deg, rgba(243,201,105,.08), var(--panel) 55%); padding: 18px; }
.balance-card .bl-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.balance-card .bl-value { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.balance-card .bl-value small { font-size: 14px; color: var(--gold); margin-left: 4px; letter-spacing: .04em; }
.balance-card .bl-row { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.balance-card .bl-row div span { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.balance-card .bl-row div b { font-size: 13px; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 64px; margin-top: 10px; }
.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.tx:last-child { border-bottom: 0; }
.tx .tx-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: none; }
.tx .tx-ico svg { width: 13px; height: 13px; }
.tx .tx-label { flex: 1; min-width: 0; color: var(--text-2); }
.tx .tx-label small { display: block; color: var(--faint); font-size: 9.5px; }
.tx .tx-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx .tx-amount.pos { color: var(--ok); }
.tx .tx-amount.neg { color: var(--danger); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 11px 12px; }
.kpi .k-label { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.kpi .k-value { font-size: 19px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .k-value small { font-size: 10px; color: var(--muted); font-weight: 500; }

/* ── Classement ───────────────────────────────────────────── */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: var(--fast); }
.lb-row:hover { background: var(--panel-2); }
.lb-row.me { background: var(--accent-soft); border-color: rgba(42,212,232,.2); }
.lb-rank { width: 26px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.lb-row:nth-child(1) .lb-rank { color: var(--gold); }
.lb-row:nth-child(2) .lb-rank { color: #cbd5e1; }
.lb-row:nth-child(3) .lb-rank { color: #d98b5f; }
.lb-name { flex: 1; min-width: 0; }
.lb-name b { display: block; font-size: 12px; }
.lb-name span { font-size: 10px; color: var(--muted); }
.lb-credits { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--gold); }

/* ── Réglages ─────────────────────────────────────────────── */
.setting-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .sr-body { flex: 1; min-width: 0; }
.setting-row b { display: block; font-size: 12.5px; }
.setting-row span { font-size: 10.5px; color: var(--muted); }

/* ── Radio / chat ─────────────────────────────────────────── */
.chat-box { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 2px; }
.chat-msg { display: flex; gap: 8px; font-size: 11.5px; }
.chat-msg .cm-avatar { width: 24px; height: 24px; border-radius: 7px; background: var(--panel-3); color: var(--accent); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; flex: none; }
.chat-msg .cm-body { flex: 1; min-width: 0; }
.chat-msg .cm-head { display: flex; align-items: baseline; gap: 6px; }
.chat-msg .cm-head b { font-size: 10.5px; }
.chat-msg .cm-head time { font-size: 8.5px; color: var(--faint); }
.chat-msg p { color: var(--text-2); line-height: 1.45; margin-top: 1px; word-break: break-word; }
.chat-msg.system p { color: var(--faint); font-style: italic; }
.chat-form { display: flex; gap: 7px; margin-top: 10px; }
.chat-form .input { height: 36px; font-size: 12px; }

/* ── Dossiers / patrouilles ───────────────────────────────── */
.dossier-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dossier-row + .dossier-row { margin-top: 7px; }
.dossier-row .dr-ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--panel-2); color: var(--muted); }
.dossier-row .dr-ico svg { width: 14px; height: 14px; }
.dossier-row .dr-body { flex: 1; min-width: 0; }
.dossier-row .dr-body b { display: block; font-size: 11.5px; }
.dossier-row .dr-body span { display: block; font-size: 10px; color: var(--muted); }
.dossier-row .dr-amount { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ok); }

.patrol-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(56,189,248,.07), var(--panel)); }
.patrol-hero .ph-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.25); color: #7dd3fc; display: grid; place-items: center; flex: none; }
.patrol-hero .ph-ico svg { width: 20px; height: 20px; }

/* ── Panneau latéral / drawer ─────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 92vw); z-index: 85;
  background: var(--panel); border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); display: flex; flex-direction: column;
  animation: drawer-in .25s var(--ease) both;
}
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.drawer-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ── Détails d'un bâtiment ────────────────────────────────── */
.detail-hero { display: flex; align-items: center; gap: 12px; }
.detail-hero .dh-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--fc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 30%, transparent); color: var(--fc); }
.detail-hero .dh-ico svg { width: 22px; height: 22px; }
.detail-hero h2 { font-size: 17px; }
.detail-hero p { font-size: 11px; color: var(--muted); }

/* ── Info banners ─────────────────────────────────────────── */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent); }
.notice.warn { border-color: rgba(245,158,11,.25); background: var(--warn-soft); color: #e7b56a; }
.notice.warn svg { color: var(--warn); }
.notice.red { border-color: rgba(239,68,68,.25); background: var(--danger-soft); color: #f0a0a0; }
.notice.red svg { color: var(--danger); }

/* ── Sélection multiple d'engins ──────────────────────────── */
.dispatch-summary { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.dispatch-summary b { color: var(--text); }

/* ── Petits écrans ────────────────────────────────────────── */
@media (max-width: 560px) {
  .call-card { flex-wrap: wrap; }
  .call-card .cc-actions { width: 100%; }
  .call-card .cc-actions .btn { flex: 1; }
  .call-facts { grid-template-columns: 1fr; }
  .op-grid { gap: 10px; }
  .view-actions .btn span { display: none; }
  .facility-stats { gap: 14px; }
  .vtable th:nth-child(3), .vtable td:nth-child(3) { display: none; }
}
