:root {
  --bg: #050506;
  --bg-elevated: #0b0b0d;
  --surface: rgba(18, 18, 22, 0.72);
  --surface-solid: #121216;
  --surface-2: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f8f8fa;
  --muted: #9a9aa8;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --sidebar-w: 268px;
  --header-h: 72px;
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.45);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 45%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform var(--transition);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
}

/* ——— Identité marque ——— */
.brand-lockup-root {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-lockup::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.12));
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(248, 248, 250, 0.92);
}

.brand-name-accent {
  font-weight: 700;
  background: linear-gradient(105deg, #ffffff 0%, #d8d8e0 55%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.75);
}

.sidebar-brand {
  position: relative;
  padding: 1.2rem 1.05rem 1.05rem;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 100%);
  transition: background var(--transition);
}

.sidebar-brand:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.sidebar-brand::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.sidebar-brand .brand-lockup {
  transition: transform var(--transition), box-shadow var(--transition);
}

.sidebar-brand:hover .brand-lockup {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.sidebar-nav {
  flex: 1;
  padding: 0.85rem 0.75rem;
  overflow-y: auto;
}

.nav-group {
  margin: 1rem 0 0.4rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.85;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  margin-bottom: 0.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--bg);
  background: linear-gradient(135deg, #ffffff 0%, #e4e4ea 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.nav-item.active .nav-icon {
  background: rgba(0, 0, 0, 0.08);
  color: var(--bg);
}

.sidebar-foot {
  padding: 1.1rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.conn-row .sip-warn {
  color: #f0c674;
}

.conn-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.sidebar-meta {
  margin: 0.4rem 0 0;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Workspace */
.workspace {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Dossier plein écran — thème sombre (aligné app) */
body.call-dossier-active .content {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(120, 160, 200, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(140, 200, 160, 0.05), transparent 50%),
    var(--bg);
  padding: 1rem 1.35rem 5.5rem;
}

body.call-dossier-active .client-dossier-page {
  padding-bottom: 0;
}

.header {
  height: var(--header-h);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(16px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.breadcrumb {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-center {
  justify-self: center;
  min-width: 0;
}

.advisor-presence-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.advisor-presence-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.advisor-presence-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(154, 154, 168, 0.85);
  box-shadow: 0 0 0 3px rgba(154, 154, 168, 0.12);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.advisor-presence-wrap[data-status='active'] .advisor-presence-led {
  background: rgba(140, 210, 160, 0.95);
  box-shadow: 0 0 0 4px rgba(140, 210, 160, 0.18);
}

.advisor-presence-wrap[data-status='pause'] .advisor-presence-led {
  background: rgba(232, 201, 122, 0.95);
  box-shadow: 0 0 0 4px rgba(232, 201, 122, 0.15);
}

.advisor-presence-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(180, 180, 192, 0.9);
  white-space: nowrap;
}

.advisor-presence {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  gap: 1px;
}

.advisor-presence-opt {
  border: none;
  background: transparent;
  color: rgba(180, 180, 192, 0.95);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.advisor-presence-opt:hover:not(.active) {
  color: rgba(248, 248, 250, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.advisor-presence-opt.active {
  color: #0a0a0c;
  background: rgba(248, 248, 250, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.advisor-presence-wrap[data-status='active'] .advisor-presence-opt[data-availability='active'].active {
  color: #0a1210;
  background: linear-gradient(180deg, #e8f5ec 0%, #c8e8d0 100%);
  box-shadow:
    0 0 0 1px rgba(140, 210, 160, 0.35),
    0 4px 14px rgba(80, 160, 100, 0.2);
}

.advisor-presence-wrap[data-status='pause'] .advisor-presence-opt[data-availability='pause'].active {
  color: #14120a;
  background: linear-gradient(180deg, #f5eed8 0%, #e8d4a0 100%);
  box-shadow: 0 0 0 1px rgba(232, 201, 122, 0.3);
}

.advisor-presence-wrap[data-status='absent'] .advisor-presence-opt[data-availability='absent'].active {
  color: rgba(248, 248, 250, 0.92);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.advisor-presence-call {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  color: rgba(200, 200, 210, 0.88);
  letter-spacing: 0.02em;
}

body.advisor-ringing .advisor-presence-bar {
  border-color: rgba(232, 201, 122, 0.35);
  box-shadow:
    0 0 0 1px rgba(232, 201, 122, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.live-call {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  padding: 0.45rem 1rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  min-width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

body.session-live .live-call {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(255, 255, 255, 0.06);
}

body.session-live .live-pulse {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.live-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.live-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9375rem;
  font-weight: 500;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-clock {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn-icon {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 2.35rem;
  height: 2.35rem;
  cursor: pointer;
}

.content {
  flex: 1;
  padding: 1.35rem 1.5rem 2rem;
}

.view {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view.active {
  display: block;
}

/* Les vues « active » ne doivent jamais bypasser le rôle */
body.role-caller .view[data-manager-only],
body.role-caller .view.active[data-manager-only] {
  display: none !important;
}

body.role-manager .view[data-caller-only],
body.role-manager .view.active[data-caller-only] {
  display: none !important;
}

html.portal-boot .app {
  visibility: hidden;
}

html.portal-ready .app {
  visibility: visible;
}

.trunks-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.trunks-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  align-items: end;
}

.trunks-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.trunks-row input[type='text'] {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.trunk-enabled {
  flex-direction: row !important;
  align-items: center;
  gap: 0.35rem !important;
}

.trunks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trunks-concurrency-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  max-width: 20rem;
}

.trunks-concurrency-label input {
  font: inherit;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.trunks-save-status {
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

/* ——— Manager · Base de données / NumList ——— */
.mgr-db-panel .panel-head {
  margin-bottom: 1rem;
}

.mgr-db-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.mgr-db-source-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
}

.mgr-db-source-card.is-ready {
  border-color: rgba(120, 200, 160, 0.35);
  background: rgba(120, 200, 160, 0.06);
}

.mgr-db-source-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.mgr-db-source-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mgr-db-source-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.mgr-db-source-card.is-ready .mgr-db-source-badge {
  color: #a8e0bc;
  border-color: rgba(120, 200, 160, 0.35);
}

.mgr-db-source-desc {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.mgr-db-source-meta {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(248, 248, 250, 0.72);
}

.mgr-db-source-warn {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: #e8c97a;
}

.mgr-db-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mgr-db-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mgr-db-filters {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
}

.mgr-db-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.mgr-db-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mgr-db-field--wide {
  grid-column: 1 / -1;
}

.mgr-db-field input {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.mgr-db-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.mgr-db-banks-label {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.mgr-db-banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.75rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  margin-top: 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.mgr-db-bank-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
}

.mgr-db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mgr-db-status {
  margin: 0.65rem 0 0;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mgr-db-results {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.mgr-db-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.mgr-db-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mgr-db-results-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.mgr-db-table-wrap {
  max-height: min(52vh, 520px);
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mgr-db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mgr-db-table th,
.mgr-db-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mgr-db-table th {
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.96);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mgr-db-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ——— Qualification fin d’appel (conseiller) ——— */
.call-qual-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.call-qual-modal.hidden {
  display: none !important;
}

.call-qual-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.call-qual-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 29rem);
  max-height: min(94vh, 44rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(28, 28, 32, 0.98) 0%, rgba(14, 14, 16, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.call-qual-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.call-qual-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-qual-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.call-qual-sub {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.call-qual-pause-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  white-space: nowrap;
}

.call-qual-call-card {
  flex-shrink: 0;
  margin: 0.85rem 1.15rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.call-qual-call-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.call-qual-phone {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.call-qual-duration {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.call-qual-client-line {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.call-qual-client-line strong {
  color: var(--text);
  font-weight: 500;
}

.call-qual-form {
  padding: 0.85rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.call-qual-form::-webkit-scrollbar {
  width: 5px;
}

.call-qual-form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.call-qual-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.call-qual-legend {
  padding: 0;
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-qual-legend .req {
  color: #f87171;
}

.call-qual-outcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.call-qual-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.call-qual-outcome:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.call-qual-outcome input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.call-qual-succeeded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.call-qual-succeeded-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.call-qual-succeeded-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.call-qual-succeeded-opt.is-selected,
.call-qual-succeeded-opt:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.call-qual-succeeded.is-error .call-qual-succeeded-opt {
  border-color: rgba(248, 113, 113, 0.55);
}

.call-qual-success-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.call-qual-reason-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.call-qual-reason-block.is-error .call-qual-outcome {
  border-color: rgba(248, 113, 113, 0.55);
}

.call-qual-reason-detail {
  margin: 0.35rem 0 0.15rem 1.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.call-qual-reason-detail.hidden {
  display: none;
}

.call-qual-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.call-qual-reason-detail textarea {
  width: 100%;
  min-height: 2.5rem;
  resize: vertical;
  box-sizing: border-box;
}

.call-qual-outcome-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
  word-break: normal;
  overflow-wrap: anywhere;
}

.call-qual-outcome-mark {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.call-qual-outcome.is-checked {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.call-qual-outcome.is-checked .call-qual-outcome-mark {
  border-color: var(--text);
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.call-qual-outcome:has(input[type='checkbox']) .call-qual-outcome-mark {
  border-radius: 4px;
}

.call-qual-outcome.is-checked:has(input[type='checkbox']) .call-qual-outcome-mark {
  background: var(--text)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%230a0a0a' d='M1 5.2L4.2 8.4 11 1.6' stroke='%230a0a0a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
    center / 10px 8px no-repeat;
}

.call-qual-outcome:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.call-qual-outcome-grid.is-error {
  border-radius: var(--radius-sm);
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 2px;
}

.call-qual-loading {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.call-qual-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.call-qual-flag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.call-qual-flag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.call-qual-flag-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
  border: 1.5px solid var(--border-strong);
  background: transparent;
}

.call-qual-flag:has(input:checked),
.call-qual-flag.is-checked {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.call-qual-flag:has(input:checked) .call-qual-flag-box,
.call-qual-flag.is-checked .call-qual-flag-box {
  background: var(--text);
  border-color: var(--text);
  box-shadow: inset 0 0 0 2px var(--bg);
}

.call-qual-flag-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.call-qual-flag-text strong {
  font-size: 0.8125rem;
  font-weight: 600;
}

.call-qual-flag-text small {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.25;
}

.call-qual-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.call-qual-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.call-qual-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.call-qual-optional {
  font-weight: 400;
  opacity: 0.85;
}

.call-qual-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.55rem 0.65rem;
}

.call-qual-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.call-qual-textarea {
  resize: vertical;
  min-height: 2.75rem;
}

.call-qual-hint {
  font-size: 0.6875rem;
  color: #86efac;
}

.call-qual-char {
  align-self: flex-end;
  font-size: 0.6875rem;
  color: var(--muted);
}

.call-qual-error {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.call-qual-foot {
  padding-top: 0.15rem;
}

.call-qual-submit {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.call-qual-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

html.qualification-required,
body.qualification-required {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}

html.qualification-required {
  scrollbar-width: none;
}

html.qualification-required::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.qualification-required .shell-main,
body.qualification-required .phone-dock,
body.qualification-required .portal-header {
  pointer-events: none;
  filter: blur(3px);
  user-select: none;
}

.portal-boot-msg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 1rem;
  color: var(--text, #e8e8e8);
  background: var(--bg, #0a0a0a);
}

.portal-boot-msg.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
  backdrop-filter: blur(12px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.kpi-card.highlight {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.kpi-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.kpi-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.dash-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.panel-hero {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 100%);
}

.panel-tall {
  min-height: calc(100vh - var(--header-h) - 3.5rem);
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.panel-head h2 {
  margin-bottom: 0;
  color: var(--text);
}

.hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.hero-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0.65rem 0 1.15rem;
  letter-spacing: -0.02em;
}

.progress-wrap {
  margin-top: 0.25rem;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, #c8c8d0 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcut-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.link-btn {
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 0.4rem 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.link-btn:hover {
  color: var(--accent);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.info-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.55;
}

.manager-advisor-banner {
  margin: 0 0 1.25rem;
  border: 1px solid rgba(255, 120, 80, 0.45);
  border-radius: var(--radius-md);
  background: rgba(255, 90, 60, 0.08);
  padding: 1rem 1.15rem;
  color: var(--text);
}

.manager-advisor-banner.hidden {
  display: none !important;
}

.manager-advisor-banner-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffb199;
}

.manager-advisor-banner-msg {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.manager-advisor-banner-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.manager-advisor-roster {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

body.campaign-blocked .btn.primary[id^='btnStart'],
body.campaign-blocked #btnOpenCampaignLaunch,
body.campaign-blocked #btnOpenCampaignLaunch2,
body.campaign-blocked #campaignLaunchSubmit {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Modal lancement campagne (manager) —— */
.cl-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.cl-modal.hidden {
  display: none;
}

.cl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.cl-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.cl-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.cl-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cl-modal-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.cl-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.cl-modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cl-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 0;
}

.cl-mode-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.55rem 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.cl-mode-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cl-mode-btn.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.cl-modal-body {
  padding: 1rem 1.25rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cl-panel.hidden {
  display: none;
}

.cl-panel-ivr {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.cl-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.cl-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cl-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.cl-textarea {
  min-height: 5.5rem !important;
  resize: vertical;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.cl-file {
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
}

.cl-help,
.cl-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.cl-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
}

.cl-alert {
  margin: 0.75rem 1.25rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 100, 80, 0.35);
  background: rgba(255, 80, 60, 0.08);
  color: #ffb199;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.cl-alert.hidden {
  display: none;
}

.cl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.15rem;
}

.cl-modal-footer .btn {
  min-width: 6.5rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
}

.cl-modal-footer .btn.primary {
  flex: 1;
  max-width: 11rem;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.stat-inline {
  font-size: 0.9375rem;
  font-weight: 500;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

input,
select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.btn {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.58rem 1.1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8ee 100%);
  color: #0a0a0c;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff 0%, #f0f0f5 100%);
  color: #0a0a0c;
}

.btn.danger {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}

.btn.danger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bg);
}

.btn.ghost {
  border-color: var(--border);
}

.btn.full {
  width: 100%;
}

.actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.status-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: all var(--transition);
}

.status-pill[data-state="running"],
.status-pill[data-state="dialing"],
.status-pill[data-state="ringing"],
.status-pill[data-state="bridging"],
.status-pill[data-state="incall"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
}

.data-table td.empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

.data-table tr.active-row td {
  background: rgba(255, 255, 255, 0.05);
}

.tag-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.spec-list {
  margin: 0;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-list dd {
  margin: 0;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.log-full {
  flex: 1;
  overflow-y: auto;
  max-height: none;
}

.log li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  transition: color var(--transition);
}

.log li:hover {
  color: var(--text);
}

.log li span {
  color: var(--accent);
  opacity: 0.85;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.dot.on {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .workspace {
    margin-left: 0;
  }

  .btn-icon.mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .header-center {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-stats {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 1rem;
  }

  .phone-widget {
    right: 0.75rem;
    bottom: 5.5rem;
    width: min(100vw - 1.5rem, 320px);
  }
}

/* ——— Téléphone flottant ——— */
.phone-dock {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 100;
  pointer-events: none;
}

body.role-caller .phone-dock.phone-dock-visible,
body.role-caller.advisor-ringing .phone-dock {
  display: block !important;
  visibility: visible !important;
  pointer-events: none;
  z-index: 10050;
}

body.incoming-active .phone-dock.incoming-ring .phone-chassis {
  animation: phoneIncomingVibe 0.55s ease-in-out infinite;
}

@keyframes phoneIncomingVibe {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  20% {
    transform: translateX(-2px) rotate(-1.2deg);
  }
  40% {
    transform: translateX(2px) rotate(1.2deg);
  }
  60% {
    transform: translateX(-2px) rotate(-0.8deg);
  }
  80% {
    transform: translateX(2px) rotate(0.8deg);
  }
}

.phone-dock > * {
  pointer-events: auto;
}

.phone-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #0a0a0c;
  background: linear-gradient(145deg, #ffffff 0%, #dcdce4 100%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.phone-fab .fab-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.phone-fab .fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: fabRing 2.4s ease-out infinite;
}

@keyframes fabRing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.phone-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.15);
}

.phone-fab.open {
  transform: scale(0) rotate(90deg);
  opacity: 0;
  pointer-events: none;
}

.phone-widget {
  position: fixed;
  right: 1.35rem;
  bottom: 5.75rem;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.88);
  transform-origin: bottom right;
  transition:
    opacity 0.32s ease,
    transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1),
    visibility 0.32s;
}

.phone-widget.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.phone-widget.animate-in .phone-chassis {
  animation: phonePop 0.55s cubic-bezier(0.34, 1.35, 0.64, 1);
}

@keyframes phonePop {
  0% {
    transform: rotate(-2deg) scale(0.94);
  }
  60% {
    transform: rotate(1deg) scale(1.02);
  }
  100% {
    transform: none;
  }
}

.phone-chassis {
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a32 0%, #121218 45%, #0a0a0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.phone-speaker {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.phone-close {
  position: absolute;
  right: 2px;
  top: -2px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.phone-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.phone-screen {
  background: linear-gradient(180deg, #0e0e12 0%, #060608 100%);
  border-radius: 20px;
  padding: 0.85rem 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-label {
  margin: 0;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-display {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0.35rem 0 0.65rem;
  min-height: 1.75rem;
  word-break: break-all;
}

.phone-visual {
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.phone-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.phone-avatar .icon-svg {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.65);
}

.icon-svg {
  display: block;
  flex-shrink: 0;
}

.icon-stroke,
.icon-stroke path,
.icon-stroke line,
.icon-stroke circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-phone path {
  fill: currentColor;
  stroke: none;
}

.icon-phone-hangup {
  transform: rotate(135deg);
}

.phone-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 22px;
  margin-bottom: 0.35rem;
  opacity: 0.25;
}

.phone-wave span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.phone-visual[data-mode="dialing"] .phone-wave,
.phone-visual[data-mode="ringing"] .phone-wave,
.phone-visual[data-mode="incall"] .phone-wave {
  opacity: 1;
}

.phone-visual[data-mode="dialing"] .phone-wave span,
.phone-visual[data-mode="ringing"] .phone-wave span,
.phone-visual[data-mode="incall"] .phone-wave span {
  animation: waveBar 0.9s ease-in-out infinite;
}

.phone-visual[data-mode="ringing"] .phone-avatar {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  animation: avatarPulse 1.5s ease infinite;
}

.phone-visual[data-mode="incall"] .phone-avatar {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.phone-wave span:nth-child(2) { animation-delay: 0.1s; }
.phone-wave span:nth-child(3) { animation-delay: 0.2s; }
.phone-wave span:nth-child(4) { animation-delay: 0.3s; }
.phone-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveBar {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 20px;
  }
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.phone-status-text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.phone-widget.phone-incall-compact .phone-keypad,
.phone-widget.phone-incall-compact .phone-act.secondary,
.phone-widget.phone-incall-compact .phone-act.call {
  display: none;
}

.phone-widget.phone-incall-compact .phone-actions {
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.phone-widget.phone-incall-compact .phone-visual {
  margin-bottom: 0.5rem;
}

.phone-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.phone-keypad button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.55rem 0.25rem 0.4rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  transition:
    background 0.12s ease,
    transform 0.12s ease,
    border-color 0.12s ease;
}

.phone-keypad button span {
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.phone-keypad button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.phone-keypad button.pressed {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.16);
}

.phone-keypad button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.phone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.phone-act {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.phone-act:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.phone-act.secondary {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.phone-act.call {
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #f4f4f8 0%, #d8d8e0 100%);
  color: #0a0a0c;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.phone-act.call .icon-svg {
  width: 24px;
  height: 24px;
}

.phone-act.secondary .icon-svg {
  width: 22px;
  height: 22px;
}

.phone-act.hold {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.phone-act.hold .icon-svg {
  width: 20px;
  height: 20px;
}

.phone-act.hold.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.phone-widget.phone-client-hold .phone-status-text {
  color: rgba(255, 255, 255, 0.72);
}

.phone-act.hangup {
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, #3a3a42 0%, #222228 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-act.hangup .icon-svg {
  width: 22px;
  height: 22px;
}

.phone-act:not(:disabled):hover {
  transform: scale(1.06);
}

.phone-act.call:not(:disabled):hover {
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.28);
}

.incoming-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.incoming-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}

.incoming-minimize {
  margin-top: 0.85rem;
  width: 100%;
  font-size: 0.8125rem;
}

.phone-widget:not(.open) {
  pointer-events: none;
}

.phone-dock.incoming-ring .phone-widget.open {
  pointer-events: auto;
}

.phone-dock.incoming-ring .phone-fab:not(.open) {
  animation: fabIncoming 1.1s ease-in-out infinite;
}

@keyframes fabIncoming {
  0%,
  100% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(120, 220, 140, 0.45);
  }
  50% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.45),
      0 0 0 10px rgba(120, 220, 140, 0);
  }
}

/* ——— Même téléphone : panneau sonnerie (bas de page) ——— */
.phone-pane-incoming {
  padding-top: 0.1rem;
}

.phone-widget.phone-incoming .phone-label {
  color: #9fdf9f;
}

.phone-widget.phone-incoming:not(.phone-connecting) .phone-chassis {
  animation: incomingChassisGlow 1.35s ease-in-out infinite;
}

.phone-widget.phone-incoming:not(.phone-connecting) .phone-status-text {
  display: none;
}

@keyframes incomingChassisGlow {
  0%,
  100% {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(120, 220, 140, 0.2);
  }
  50% {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 2px rgba(120, 220, 140, 0.45),
      0 0 32px rgba(80, 200, 100, 0.12);
  }
}

.phone-ring-msg {
  margin: 0 0 1rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(94, 200, 120, 0.08);
  border: 1px solid rgba(120, 220, 140, 0.22);
  color: #b8e0bc;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-actions-incoming {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.75rem;
  padding-bottom: 0.15rem;
}

.phone-incoming-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 72px;
}

.phone-incoming-cap {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.phone-incoming-cap.accept {
  color: #9fdf9f;
}

.phone-widget.phone-connecting .phone-label {
  color: #e8c97a;
}

.phone-widget.phone-connecting .phone-chassis {
  animation: connectingChassisGlow 1.4s ease-in-out infinite;
}

@keyframes connectingChassisGlow {
  0%,
  100% {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(232, 201, 122, 0.25);
  }
  50% {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 2px rgba(232, 201, 122, 0.5),
      0 0 28px rgba(232, 201, 122, 0.12);
  }
}

.phone-connecting-block {
  text-align: center;
  padding: 0.35rem 0.5rem 0.85rem;
}

.phone-connecting-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 3px solid rgba(232, 201, 122, 0.2);
  border-top-color: #e8c97a;
  animation: phoneSpin 0.85s linear infinite;
}

@keyframes phoneSpin {
  to {
    transform: rotate(360deg);
  }
}

.phone-connecting-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f0dfa8;
}

.phone-connecting-sub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.phone-widget.phone-connecting .phone-ring-msg {
  background: rgba(232, 201, 122, 0.08);
  border-color: rgba(232, 201, 122, 0.28);
  color: #e8d4a0;
}

.phone-visual[data-mode="connecting"] .phone-wave {
  opacity: 1;
}

.phone-visual[data-mode="connecting"] .phone-wave span {
  animation: waveBar 0.45s ease-in-out infinite;
  background: #e8c97a;
}

.phone-visual[data-mode="connecting"] .phone-avatar {
  border-color: rgba(232, 201, 122, 0.45);
  box-shadow: 0 0 0 4px rgba(232, 201, 122, 0.1);
}

.phone-visual[data-mode="connecting"] .phone-status-text {
  color: #e8c97a;
}

.phone-act.accept {
  width: 64px;
  height: 64px;
  min-width: 64px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #5bdc7a 0%, #2ea84a 100%);
  color: #041208;
  box-shadow: 0 8px 22px rgba(46, 168, 74, 0.35);
}

.phone-act.accept .icon-svg {
  width: 28px;
  height: 28px;
}

.phone-act.accept.waiting {
  background: linear-gradient(145deg, #6a6a72 0%, #45454c 100%);
  color: #ccc;
  box-shadow: none;
  opacity: 0.85;
}

.phone-act.accept.ready:not(:disabled) {
  animation: accept-pulse 1.1s ease-in-out infinite;
}

.phone-act.hangup.decline {
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #4a4a52 0%, #2a2a30 100%);
}

@keyframes accept-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.phone-visual[data-mode="incoming"] .phone-wave {
  opacity: 1;
}

.phone-visual[data-mode="incoming"] .phone-wave span {
  animation: waveBar 0.55s ease-in-out infinite;
}

.phone-visual[data-mode="incoming"] .phone-avatar {
  border-color: rgba(120, 220, 140, 0.45);
  box-shadow: 0 0 0 4px rgba(120, 220, 140, 0.12);
  animation: avatarPulse 1.1s ease infinite;
}

.phone-visual[data-mode="incoming"] .phone-status-text {
  color: #9fdf9f;
}

.incoming-card {
  width: min(92vw, 380px);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(28, 28, 34, 0.98) 0%, rgba(10, 10, 12, 0.98) 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: phonePop 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.incoming-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.incoming-number {
  margin: 0.65rem 0;
  font-size: 1.65rem;
  font-weight: 600;
}

.incoming-hint {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.incoming-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.incoming-accept {
  min-width: 140px;
  animation: pulse 1.5s ease-in-out infinite;
}

.incoming-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

body.incoming-active .phone-fab {
  animation: pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

/* ——— Dossier client (style outil banque / CRM conseiller) ——— */
.client-dossier-page {
  max-width: 1320px;
  margin: 0 auto;
  animation: fadeIn 0.22s ease;
  font-family: "IBM Plex Sans", "Outfit", system-ui, sans-serif;
}

.client-dossier-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.client-dtmf-live {
  display: flex;
  align-items: baseline;
  gap: 0.5rem 0.65rem;
  margin-left: auto;
  margin-right: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.client-dtmf-live-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-dtmf-live-value {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

.client-dtmf-live-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.client-dtmf-live--flash {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.client-dossier-toolbar-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.client-dossier-back {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.client-dossier-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.client-dossier-body {
  min-height: 50vh;
}

.client-bank-sheet {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-md) + 2px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  color: var(--text);
}

.client-bank-sheet--bouygues {
  border-color: rgba(100, 160, 220, 0.22);
}

.client-bank-sheet--local {
  border-color: rgba(160, 200, 140, 0.2);
}

.client-bank-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.85rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

.client-bank-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.client-comfort-toggle {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.client-comfort-toggle:hover,
.client-comfort-toggle.is-on {
  color: var(--text);
  border-color: rgba(200, 220, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.client-bank-sheet-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.client-bank-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 2px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.client-bank-avatar--bouygues {
  border-color: rgba(90, 160, 230, 0.45);
  background: linear-gradient(145deg, rgba(70, 130, 210, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.client-bank-avatar--local {
  border-color: rgba(120, 200, 140, 0.4);
  background: linear-gradient(145deg, rgba(100, 180, 120, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.client-bank-identity-text {
  min-width: 0;
}

.client-bank-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.client-source-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.client-source-badge--bouygues {
  color: #9ec8f5;
  border-color: rgba(100, 160, 230, 0.35);
  background: rgba(70, 130, 210, 0.12);
}

.client-source-badge--local {
  color: #b5e0c0;
  border-color: rgba(120, 200, 140, 0.35);
  background: rgba(100, 180, 120, 0.1);
}

.client-ref-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.client-bank-meta {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.client-sheet-context {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 1.85rem;
  font-size: 0.8125rem;
  color: rgba(248, 248, 250, 0.82);
  background: rgba(232, 201, 122, 0.08);
  border-bottom: 1px solid rgba(232, 201, 122, 0.18);
}

.client-sheet-context--ok {
  background: rgba(120, 200, 160, 0.07);
  border-bottom-color: rgba(120, 200, 160, 0.16);
}

.client-sheet-context-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e8c97a;
  box-shadow: 0 0 0 3px rgba(232, 201, 122, 0.2);
}

.client-sheet-context--ok .client-sheet-context-dot {
  background: #8fd4a8;
  box-shadow: 0 0 0 3px rgba(120, 200, 160, 0.2);
}

.client-bank-ref {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.client-bank-name {
  margin: 0.2rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0.01em;
}

.client-bank-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.client-bank-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.client-bank-status .client-ico {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.client-bank-status.live {
  border-color: rgba(120, 220, 140, 0.35);
  background: rgba(120, 220, 140, 0.1);
  color: #9fdf9f;
}

.client-bank-status.pending {
  border-color: rgba(232, 201, 122, 0.35);
  background: rgba(232, 201, 122, 0.1);
  color: #e8d4a0;
}

.client-dossier-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.25rem;
  padding: 0.9rem 1.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

.client-quick-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.client-quick-group--primary {
  margin-left: auto;
}

.client-quick-group-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-quick-group-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.client-quick-action {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.client-quick-action .client-ico {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  flex-shrink: 0;
}

.client-quick-action--copy {
  padding: 0.38rem 0.55rem;
}

.client-quick-action--tool {
  border-color: rgba(140, 180, 220, 0.25);
}

.client-quick-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.client-quick-action:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.client-quick-action.primary {
  border-color: rgba(120, 200, 160, 0.45);
  background: rgba(120, 200, 160, 0.12);
}

.client-quick-action-inline {
  margin-top: 0.65rem;
  width: 100%;
  text-align: center;
}

.client-dossier-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  background: rgba(30, 32, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-dossier-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.client-subpage {
  padding: 1.25rem 1.75rem 2rem;
}

.client-subpage-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.client-subpage-kicker {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.client-subpage-title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.client-subpage-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.client-subpage-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.client-subpage-empty,
.client-subpage-loading {
  padding: 2rem 1.75rem;
  color: var(--muted);
}

.client-protocol-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.client-protocol-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.85rem;
}

.client-protocol-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.client-protocol-card summary::-webkit-details-marker {
  display: none;
}

.client-protocol-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-protocol-title {
  font-size: 1rem;
  font-weight: 600;
}

.client-protocol-summary {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.client-protocol-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.client-advisor-notes-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.client-advisor-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.client-advisor-note-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
}

.client-advisor-note-head time {
  color: var(--muted);
  font-size: 0.75rem;
}

.client-advisor-note-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.client-advisor-legacy {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.client-advisor-note-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.client-advisor-note-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.client-advisor-note-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  resize: vertical;
  min-height: 4.5rem;
}

.client-advisor-note-form-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.client-bank-sheet-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 0.95fr);
}

.client-bank-column {
  padding: 1.35rem 1.55rem 1.6rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.client-bank-column--bank {
  background: linear-gradient(180deg, rgba(80, 120, 180, 0.06) 0%, transparent 42%);
  border-left: 3px solid rgba(100, 160, 230, 0.35);
}

.client-bank-column-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted);
  font-style: italic;
}

.client-bank-column-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-data-list {
  display: flex;
  flex-direction: column;
}

.client-data-row {
  display: grid;
  grid-template-columns: minmax(108px, 38%) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.client-data-value-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.client-data-value-wrap .client-data-value {
  flex: 1;
  min-width: 0;
}

.client-data-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.client-data-copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.client-data-copy .client-ico {
  width: 14px;
  height: 14px;
}

.client-data-value.is-empty {
  font-style: italic;
  font-weight: 400;
  color: rgba(248, 248, 250, 0.38);
}

.client-data-value--iban {
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
  letter-spacing: 0.03em;
}

.client-data-row:last-child {
  border-bottom: none;
}

.client-data-label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.client-data-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.client-data-value.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.client-data-value--sensitive {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.client-bank-aside {
  background: rgba(0, 0, 0, 0.22);
  padding: 1.35rem 1.4rem 1.6rem;
  border-left: 1px solid var(--border);
}

.client-notes-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.client-notes-aside-head .client-bank-column-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.client-notes-count {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(120, 200, 160, 0.12);
  color: #a8e0bc;
  border: 1px solid rgba(120, 200, 160, 0.25);
}

.client-bank-note--ref {
  font-size: 0.875rem;
  color: rgba(248, 248, 250, 0.75);
  margin-bottom: 0.75rem;
}

.client-notes-preview {
  margin: 0 0 0.65rem;
}

.client-notes-preview-muted {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.client-notes-preview-card {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.client-notes-preview-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
}

.client-notes-preview-card header time {
  color: var(--muted);
}

.client-notes-preview-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(248, 248, 250, 0.88);
}

.client-notes-link {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0;
  border: none;
  background: none;
  color: #9ec8f5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.client-notes-link:hover {
  text-decoration: underline;
}

body.client-dossier-comfort .client-bank-name {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

body.client-dossier-comfort .client-data-value {
  font-size: 1.0625rem;
}

body.client-dossier-comfort .client-data-value--iban {
  font-size: 0.9375rem;
}

body.client-dossier-comfort .client-bank-column-title {
  font-size: 0.75rem;
}

.client-bank-aside-block + .client-bank-aside-block {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.client-bank-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(248, 248, 250, 0.88);
}

.client-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-timeline-item {
  position: relative;
  padding: 0 0 0.85rem 0.9rem;
  border-left: 1px solid var(--border-strong);
  margin-left: 0.2rem;
}

.client-timeline-item:last-child {
  padding-bottom: 0;
}

.client-timeline-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.35rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.client-timeline-item time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.client-timeline-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(248, 248, 250, 0.82);
  line-height: 1.45;
}

.client-bank-sheet-empty {
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.client-bank-sheet-empty code {
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text);
}

.client-bank-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

@media (max-width: 1100px) {
  .client-bank-sheet-body {
    grid-template-columns: 1fr 1fr;
  }

  .client-bank-aside {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  body.call-dossier-active .content {
    padding: 0.75rem 0.75rem 5.5rem;
  }

  .client-bank-sheet-body {
    grid-template-columns: 1fr;
  }

  .client-bank-column {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .client-data-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .client-quick-group--primary {
    margin-left: 0;
    width: 100%;
  }

  .client-bank-sheet-header {
    flex-direction: column;
    align-items: stretch;
  }

  .client-bank-header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ——— Ancien panneau latéral (retiré) ——— */
.client-sheet {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  z-index: 45;
  padding: 0.85rem 0.85rem 0.85rem 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.client-sheet:not(.hidden) {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.client-sheet-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: 1px solid var(--border-strong);
  border-right: none;
  background: linear-gradient(165deg, rgba(22, 22, 28, 0.98) 0%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow: -20px 0 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.client-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.client-sheet-kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-sheet-title {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.client-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.client-sheet-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.client-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.client-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.client-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0a0c;
  background: linear-gradient(145deg, #ffffff 0%, #c8c8d4 100%);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.client-hero-meta h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.client-hero-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.client-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(120, 220, 140, 0.12);
  border: 1px solid rgba(120, 220, 140, 0.35);
  color: #b8e0bc;
}

.client-live-badge.connecting {
  background: rgba(232, 201, 122, 0.12);
  border-color: rgba(232, 201, 122, 0.35);
  color: #e8d4a0;
}

.client-live-badge .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s ease infinite;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.client-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.client-tag.segment {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.client-field {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.client-field span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.client-field strong {
  font-size: 0.8125rem;
  font-weight: 500;
  word-break: break-word;
}

.client-field.full {
  grid-column: 1 / -1;
}

.client-notes {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.client-notes h4 {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-notes p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}

.client-history h4 {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-history li {
  position: relative;
  padding: 0.55rem 0 0.55rem 0.85rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  margin-left: 0.35rem;
}

.client-history li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.client-history time {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.client-history p {
  margin: 0;
  font-size: 0.8125rem;
}

.client-missing {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.client-missing p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.clients-directory {
  display: grid;
  gap: 0.75rem;
}

.client-card-mini {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.client-card-mini .client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.client-card-mini h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.client-card-mini .meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ——— Connexion portail ——— */
body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.login-brand {
  margin-bottom: 1.35rem;
}

.login-brand .brand-name {
  font-size: 1.12rem;
}

.login-brand .brand-lockup {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.login-brand .brand-icon {
  width: 28px;
  height: 28px;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.login-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.login-form .field {
  margin-bottom: 0.85rem;
}

.login-error {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #f0a8a8;
}

.login-foot {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.portal-user-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.portal-role-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.portal-user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.portal-logout {
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}

body.role-manager .caller-poste {
  display: none;
}

body.role-caller [data-manager-only] {
  display: none !important;
}

body.role-manager [data-caller-only] {
  display: none !important;
}

body.role-manager .header-center {
  justify-content: center;
}

.manager-campaign-pill {
  min-width: 220px;
}

.manager-campaign-pill .live-label {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.manager-campaign-pill .live-number {
  font-size: 0.8125rem;
  font-weight: 600;
}

body.role-caller[data-advisor-availability='absent'] .phone-dock {
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.role-caller.advisor-ringing .phone-dock,
body.role-caller.advisor-live .phone-dock {
  opacity: 1;
  transform: scale(1);
}

.advisor-calls-row-actions {
  white-space: nowrap;
}

body.role-caller .nav-item[data-view="operator"],
body.role-caller .nav-item[data-view="advisor-help"],
body.role-caller .nav-item[data-view="advisor-calls"],
body.role-caller .nav-item[data-view="advisor-scratch"],
body.role-caller .nav-item[data-view="advisor-clients"],
body.role-caller .nav-item[data-view="advisor-scripts"],
body.role-caller .nav-item[data-view="advisor-queue"],
body.role-caller .nav-item[data-view="advisor-performance"],
body.role-caller .nav-item[data-view="advisor-settings"] {
  display: flex;
}

/* ——— Panneau session conseiller (sidebar) ——— */
.asp {
  flex-shrink: 0;
  margin: 0.35rem 0.65rem 0.5rem;
  padding: 0.85rem 0.75rem 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: min(58vh, 520px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.asp.asp--collapsed {
  padding: 0.45rem 0.55rem;
  gap: 0;
  max-height: none;
  overflow: visible;
}

.asp.asp--collapsed .asp-panel-body {
  display: none;
}

.asp-panel-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.2s ease;
}

.asp-panel-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.asp-panel-toggle-title {
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.9);
}

.asp-panel-toggle-summary {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  color: rgba(200, 200, 210, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asp-panel-chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(200, 200, 210, 0.7);
  border-bottom: 1.5px solid rgba(200, 200, 210, 0.7);
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.25s ease;
}

.asp:not(.asp--collapsed) .asp-panel-chevron {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.asp:not(.asp--collapsed) .asp-panel-toggle {
  margin-bottom: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.asp::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.nav-icon-svg svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.asp-zone-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.85);
}

.asp-zone-title:first-child {
  margin-top: 0;
}

.asp-zone {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.asp-zone + .asp-zone {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.asp-zone-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.asp-zone-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.asp-zone-title-text {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.92);
}

.asp-zone-summary {
  grid-column: 2;
  font-size: 0.6875rem;
  color: rgba(232, 232, 240, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  justify-self: end;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.asp-zone.is-collapsed .asp-zone-summary {
  opacity: 1;
  max-width: 100%;
}

.asp-zone:not(.is-collapsed) .asp-zone-summary {
  display: none;
}

.asp-zone-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(154, 154, 168, 0.75);
  border-bottom: 1.5px solid rgba(154, 154, 168, 0.75);
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.asp-zone.is-collapsed .asp-zone-chevron {
  transform: rotate(-45deg);
  margin-top: 0.1rem;
}

.asp-zone-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.asp-zone.is-collapsed .asp-zone-body {
  display: none;
}

.asp-zone.is-collapsed .asp-zone-head {
  padding-bottom: 0.2rem;
}

.asp-status {
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.asp-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.asp-status-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.asp-status[data-availability='active'] .asp-status-pill {
  background: rgba(142, 240, 176, 0.15);
  color: #8ef0b0;
  box-shadow: 0 0 12px rgba(142, 240, 176, 0.12);
}

.asp-status[data-availability='pause'] .asp-status-pill {
  background: rgba(255, 193, 94, 0.12);
  color: #ffc15e;
}

.asp-status-since {
  font-size: 0.6875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.asp-status-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.asp-status-opt {
  padding: 0.28rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.asp-status-opt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.asp-status-opt.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.asp-action {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(248, 248, 250, 0.88);
}

.asp-action strong {
  font-weight: 600;
  color: #fff;
}

.asp-campaign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.6875rem;
}

.asp-campaign-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.asp-campaign-name {
  font-weight: 600;
  color: var(--text);
}

.asp-missed-badge {
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 120, 120, 0.12);
  color: #ffb4b4;
  font-size: 0.6875rem;
  font-weight: 600;
}

.asp-goal {
  margin-bottom: 0.45rem;
}

.asp-goal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.asp-goal-count {
  font-variant-numeric: tabular-nums;
  color: rgba(248, 248, 250, 0.85);
}

.asp-goal-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.asp-goal-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
  transition: width 0.35s ease;
}

.asp-quick-draft {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.45rem 0;
}

.asp-quick-draft-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.asp-quick-draft textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
}

.asp-quick-draft-hint {
  font-size: 0.625rem;
  color: rgba(154, 154, 168, 0.8);
}

.asp-client-search {
  margin-bottom: 0.5rem;
}

.asp-client-search-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.asp-client-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.asp-client-search-icon {
  font-size: 0.75rem;
  color: rgba(154, 154, 168, 0.85);
  flex-shrink: 0;
}

.asp-client-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  outline: none;
}

.asp-client-search-field input::placeholder {
  color: rgba(154, 154, 168, 0.65);
}

.asp-client-search-clear {
  border: none;
  background: transparent;
  color: rgba(154, 154, 168, 0.9);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.asp-client-search-meta {
  margin: 0.35rem 0 0;
  font-size: 0.625rem;
  color: rgba(154, 154, 168, 0.85);
}

.asp-client-search-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  max-height: 11rem;
  overflow-y: auto;
}

.asp-client-search-list li + li {
  margin-top: 0.25rem;
}

.asp-client-search-hit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.6875rem;
  text-align: left;
  cursor: pointer;
}

.asp-client-search-hit:hover {
  background: rgba(255, 255, 255, 0.09);
}

.asp-client-search-hit-name {
  font-weight: 600;
  font-size: 0.75rem;
}

.asp-client-search-hit-line {
  color: rgba(154, 154, 168, 0.95);
}

.asp-client-search-hit-line.mono {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.asp-client-search-empty {
  font-size: 0.6875rem;
  color: rgba(154, 154, 168, 0.85);
  padding: 0.25rem 0.1rem;
  line-height: 1.35;
}

.asp-last-fiche {
  margin-bottom: 0.35rem;
}

.asp-last-fiche-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.asp-last-fiche-btn {
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.asp-last-fiche-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.asp-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.asp-shortcut-btn {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.asp-shortcut-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.asp-volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.asp-volume input[type='range'] {
  flex: 1;
  accent-color: #fff;
}

.asp-pause-countdown {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ffc15e;
  margin-top: 0.15rem;
}

.asp-conn-pill[data-mic-state='ok'] {
  color: rgba(142, 240, 176, 0.95);
}

.asp-conn-pill[data-mic-state='error'] {
  color: rgba(255, 160, 160, 0.95);
}

.asp-conn-test[data-ok='true'] {
  background: rgba(142, 240, 176, 0.2);
  color: #8ef0b0;
}

.asp-recent-list li.asp-recent-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.4rem 0;
}

.asp-recent-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.asp-recent-name {
  font-size: 0.6875rem;
  color: rgba(248, 248, 250, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asp-recent-actions {
  display: flex;
  gap: 0.25rem;
}

.asp-recent-act {
  flex: 1;
  padding: 0.22rem 0.35rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 248, 250, 0.85);
  font: inherit;
  font-size: 0.625rem;
  cursor: pointer;
}

.asp-recent-act:hover {
  background: rgba(255, 255, 255, 0.1);
}

.advisor-calls-summary {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.advisor-calls-empty {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

.advisor-calls-empty h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.advisor-calls-empty p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.advisor-calls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.advisor-calls-table th,
.advisor-calls-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-calls-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.advisor-calls-table .outcome-answered {
  color: #8ef0b0;
}

.advisor-calls-table .outcome-missed {
  color: #ffb4b4;
}

.asp-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 0.55rem;
}

.asp-metric {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.asp-metric--soft {
  background: rgba(0, 0, 0, 0.12);
}

.asp-metric-val {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.asp-metric--soft .asp-metric-val {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(248, 248, 250, 0.92);
}

.asp-metric-lbl {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.asp-queue {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.14);
}

.asp-queue-dot {
  width: 6px;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(154, 154, 168, 0.55);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.asp-queue[data-waiting='true'] .asp-queue-dot {
  background: #8ef0b0;
  box-shadow: 0 0 10px rgba(142, 240, 176, 0.45);
}

.asp-queue-text {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.asp-queue[data-waiting='true'] .asp-queue-text {
  color: rgba(248, 248, 250, 0.95);
}

.asp-conn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.asp-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(154, 154, 168, 0.95);
  padding: 0.2rem 0;
}

.asp-conn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(154, 154, 168, 0.45);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.asp-conn-pill[data-ok='true'] {
  color: rgba(248, 248, 250, 0.88);
}

.asp-conn-pill[data-ok='true'] .asp-conn-dot {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.asp-conn-test {
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 248, 250, 0.75);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.asp-conn-test:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.asp-conn-test:disabled {
  opacity: 0.55;
  cursor: wait;
}

.asp-pause {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.asp-pause:hover {
  background: rgba(255, 255, 255, 0.08);
}

.asp-pause-main {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.asp-pause-sub {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
}

.asp-recent {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.asp-recent-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.asp-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.asp-recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0;
  font-size: 0.6875rem;
}

.asp-recent-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.asp-recent-list .asp-recent-empty {
  justify-content: flex-start;
  color: rgba(154, 154, 168, 0.75);
  font-size: 0.6875rem;
  border: none;
}

.asp-recent-outcome {
  flex-shrink: 0;
  min-width: 2.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.asp-recent-outcome.outcome-answered {
  color: rgba(142, 240, 176, 0.92);
}

.asp-recent-outcome.outcome-missed {
  color: rgba(240, 198, 116, 0.9);
}

.asp-recent-phone {
  color: rgba(248, 248, 250, 0.72);
  font-size: 0.6875rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advisor-clients-panel {
  max-width: 920px;
}

.advisor-clients-head {
  align-items: flex-end;
  gap: 1rem;
}

.advisor-clients-sync {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.advisor-clients-hero {
  margin: 0.25rem 0 1.25rem;
  padding: 1.35rem 1.25rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.advisor-clients-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advisor-clients-search:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.advisor-clients-search-icon {
  display: flex;
  color: rgba(154, 154, 168, 0.9);
  flex-shrink: 0;
}

.advisor-clients-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.advisor-clients-search input::placeholder {
  color: rgba(154, 154, 168, 0.65);
}

.advisor-clients-clear {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 232, 240, 0.85);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.advisor-clients-clear:hover {
  background: rgba(255, 255, 255, 0.14);
}

.advisor-clients-search-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: rgba(154, 154, 168, 0.78);
  line-height: 1.45;
}

.advisor-clients-meta {
  margin: -0.5rem 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 200, 210, 0.72);
}

.advisor-clients-meta.hidden {
  display: none;
}

.advisor-clients-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 8rem;
}

.advisor-clients-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.advisor-clients-idle--compact {
  padding: 1.75rem 1rem;
}

.advisor-clients-idle-mark {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: rgba(232, 232, 240, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-clients-idle h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.advisor-clients-idle p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

.advisor-client-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.advisor-client-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.advisor-client-card-avatar {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(248, 248, 250, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.advisor-client-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.advisor-client-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.advisor-client-card-line {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advisor-client-card-chevron {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(154, 154, 168, 0.45);
}

.advisor-clients-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.advisor-clients-reload {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advisor-search {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.advisor-script-block {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-script-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.advisor-script-block p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.9375rem;
}

.advisor-objection {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-objection strong {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.advisor-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.advisor-context-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-context-card .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.advisor-context-card .value {
  font-size: 1rem;
  font-weight: 600;
}

.advisor-context-card[data-highlight='true'] {
  border-color: rgba(142, 240, 176, 0.35);
  box-shadow: 0 0 20px rgba(142, 240, 176, 0.08);
}

/* ——— Performance dashboard conseiller ——— */
.perf-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.perf-dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.perf-dashboard-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.perf-dashboard-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.perf-period-tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.perf-period-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.perf-period-tab:hover {
  color: var(--text);
}

.perf-period-tab.active {
  color: #0a0a0c;
  background: linear-gradient(135deg, #ffffff 0%, #e8e8ee 100%);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.perf-period-range {
  margin: -0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.perf-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .perf-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.perf-hero-card {
  position: relative;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.perf-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.perf-hero-card[data-tone='success'] {
  border-color: rgba(142, 240, 176, 0.25);
}

.perf-hero-card[data-tone='warn'] {
  border-color: rgba(255, 193, 94, 0.22);
}

.perf-hero-card[data-tone='accent'] {
  border-color: rgba(180, 200, 255, 0.22);
}

.perf-hero-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.perf-hero-lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perf-hero-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: rgba(248, 248, 250, 0.55);
}

.perf-prejudice-banner {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255, 215, 130, 0.12) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 210, 120, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.25rem;
}

.perf-prejudice-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 160, 0.95);
  flex: 1 1 100%;
}

.perf-prejudice-value {
  font-size: 2.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #ffe8b8;
  text-shadow: 0 0 24px rgba(255, 200, 100, 0.15);
}

.perf-prejudice-sub {
  font-size: 0.8125rem;
  color: var(--muted);
}

.perf-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .perf-charts {
    grid-template-columns: 1fr;
  }
}

.perf-chart-card {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-chart-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.perf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 120px;
  padding-top: 0.25rem;
}

.perf-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.perf-chart-stack {
  width: 100%;
  max-width: 28px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  min-height: 4px;
}

.perf-chart-seg {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}

.perf-chart-seg--answered {
  background: linear-gradient(180deg, #8ef0b0, rgba(142, 240, 176, 0.45));
}

.perf-chart-seg--missed {
  background: linear-gradient(180deg, #ffb4b4, rgba(255, 180, 180, 0.4));
}

.perf-chart-bars--gold .perf-chart-seg--answered {
  background: linear-gradient(180deg, #ffe8b8, rgba(255, 200, 120, 0.35));
}

.perf-chart-lbl {
  font-size: 0.5625rem;
  color: var(--muted);
  writing-mode: horizontal-tb;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perf-secondary.panel {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.perf-table-wrap::-webkit-scrollbar {
  display: none;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.perf-table th,
.perf-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-table th {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.perf-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.perf-tag--ok {
  background: rgba(142, 240, 176, 0.15);
  color: #8ef0b0;
}

.perf-tag--miss {
  background: rgba(255, 180, 180, 0.12);
  color: #ffb4b4;
}

.perf-pill-yes {
  color: #8ef0b0;
  font-weight: 600;
}

.perf-pill-no {
  color: rgba(154, 154, 168, 0.8);
}

.advisor-perf-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.advisor-perf-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.advisor-perf-kpi .val {
  font-size: 1.35rem;
  font-weight: 600;
}

.advisor-perf-kpi .lbl {
  font-size: 0.6875rem;
  color: var(--muted);
}

.advisor-perf-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.advisor-perf-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 48px;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
}

.advisor-perf-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.advisor-perf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #fff);
  border-radius: inherit;
}

.advisor-subhead {
  margin: 1rem 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.advisor-pause-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.advisor-pause-log li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
}

.advisor-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 360px;
}

.advisor-settings-volume {
  margin: 0;
}

.advisor-shortcuts-doc {
  margin-top: 0.5rem;
}

.advisor-draft-area {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.advisor-day-stats-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.advisor-calls-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.advisor-calls-full-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.advisor-calls-full-list .mono {
  font-variant-numeric: tabular-nums;
}

/* ——— Poste conseiller ——— */
body.role-caller .view.active[data-panel='operator'] {
  display: block;
  padding-top: 0;
  min-height: calc(100dvh - var(--header-h) - 2rem);
  background:
    radial-gradient(ellipse 85% 45% at 50% -5%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 80%, rgba(120, 160, 140, 0.035), transparent 45%);
}

.caller-desk {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 2.5rem;
  animation: fadeIn 0.35s ease;
}

.caller-desk-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.caller-desk-kpi {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.caller-desk-kpi-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.caller-desk-kpi-lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.95);
}

.caller-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.15rem;
  align-items: start;
}

.caller-desk-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.caller-desk-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.caller-desk-panel {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.caller-desk-panel--wide {
  padding: 1.1rem 1.2rem;
}

.caller-desk-panel-title {
  margin: 0 0 0.65rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 154, 168, 0.95);
}

.caller-desk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.caller-desk-panel-head .caller-desk-panel-title {
  margin: 0;
}

.caller-desk-link {
  border: none;
  background: none;
  color: rgba(180, 180, 192, 0.95);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.15rem 0;
}

.caller-desk-link:hover {
  color: rgba(248, 248, 250, 0.95);
}

.caller-desk-action {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(220, 220, 228, 0.92);
}

.caller-desk-action strong {
  color: rgba(248, 248, 250, 0.98);
  font-weight: 600;
}

.caller-desk-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.caller-desk-checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: rgba(154, 154, 168, 0.95);
}

.caller-desk-checklist li.is-done {
  color: rgba(230, 245, 235, 0.9);
}

.caller-desk-check-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
}

.caller-desk-checklist li.is-done .caller-desk-check-icon {
  border-color: rgba(140, 210, 160, 0.45);
  background: rgba(140, 210, 160, 0.15);
}

.caller-desk-checklist li.is-done .caller-desk-check-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid rgba(140, 210, 160, 0.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.caller-desk-campaign-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.caller-desk-campaign-meta {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8125rem;
  color: rgba(154, 154, 168, 0.95);
}

.caller-desk-queue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8125rem;
  color: rgba(180, 180, 192, 0.95);
}

.caller-desk-queue[data-waiting='true'] {
  background: rgba(232, 201, 122, 0.08);
  color: rgba(248, 240, 220, 0.92);
}

.caller-desk-queue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 120, 130, 0.8);
  flex-shrink: 0;
}

.caller-desk-queue[data-waiting='true'] .caller-desk-queue-dot {
  background: #e8c97a;
  animation: pulse 1.2s ease-in-out infinite;
}

.caller-desk-recent {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.caller-desk-recent-empty {
  font-size: 0.8125rem;
  color: rgba(154, 154, 168, 0.95);
  line-height: 1.5;
  padding: 0.25rem 0;
}

.caller-desk-recent-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.caller-desk-recent-item:last-child {
  border-bottom: none;
}

.caller-desk-recent-time {
  font-size: 0.6875rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: rgba(154, 154, 168, 0.9);
  padding-top: 0.1rem;
}

.caller-desk-recent-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.caller-desk-recent-outcome {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caller-desk-recent-outcome.outcome-ok {
  color: rgba(140, 210, 160, 0.95);
}

.caller-desk-recent-outcome.outcome-miss {
  color: rgba(232, 160, 140, 0.9);
}

.caller-desk-recent-phone {
  font-size: 0.8125rem;
}

.caller-desk-recent-name {
  width: 100%;
  font-size: 0.75rem;
  color: rgba(154, 154, 168, 0.95);
}

.caller-desk-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.caller-desk-shortcut {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(220, 220, 228, 0.92);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.caller-desk-shortcut:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.caller-desk-goal {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.caller-desk-goal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  color: rgba(154, 154, 168, 0.95);
  margin-bottom: 0.45rem;
}

.caller-desk-goal-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.caller-desk-goal-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(140, 210, 160, 0.85), rgba(180, 230, 195, 0.75));
  transition: width 0.35s ease;
}

@media (max-width: 960px) {
  .caller-desk-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .caller-desk-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .caller-desk {
    padding: 1rem 0.85rem 2rem;
  }

  .caller-desk-shortcuts {
    grid-template-columns: 1fr;
  }
}

.caller-poste-card {
  width: 100%;
}

.caller-poste-card {
  overflow: hidden;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(22, 22, 28, 0.98) 0%, rgba(12, 12, 16, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
}

.caller-poste-status-band {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.25s ease;
}

.caller-poste-band-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(154, 154, 168, 0.9);
  flex-shrink: 0;
}

.caller-poste-band-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(248, 248, 250, 0.92);
}

.caller-poste-band-sub {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(154, 154, 168, 0.95);
  text-align: right;
}

.caller-poste-status-band[data-phase='ringing'] {
  background: rgba(232, 201, 122, 0.07);
}

.caller-poste-status-band[data-phase='ringing'] .caller-poste-band-dot {
  background: #e8c97a;
  animation: pulse 1.2s ease-in-out infinite;
}

.caller-poste-status-band[data-phase='incall'] .caller-poste-band-dot,
.caller-poste-status-band[data-phase='connecting'] .caller-poste-band-dot {
  background: rgba(140, 210, 160, 0.95);
  box-shadow: 0 0 0 3px rgba(140, 210, 160, 0.15);
}

.caller-poste-status-band[data-phase='hold'] .caller-poste-band-dot {
  background: rgba(255, 255, 255, 0.55);
}

.caller-poste-body {
  padding: 2rem 1.75rem 1.5rem;
}

.caller-poste-visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.35rem;
}

.caller-poste-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.caller-poste-icon .icon-svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.55);
}

.caller-poste-rings {
  pointer-events: none;
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  opacity: 0;
}

.caller-poste-visual[data-phase='ringing'] .caller-poste-rings {
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(232, 201, 122, 0.35);
  animation: callerRingPulse 1.6s ease-out infinite;
}

.caller-poste-visual[data-phase='incall'] .caller-poste-icon {
  border-color: rgba(140, 210, 160, 0.35);
  box-shadow: 0 0 40px rgba(140, 210, 160, 0.1);
}

.caller-poste-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.caller-poste-sub {
  margin: 0.55rem auto 0;
  max-width: 22rem;
  font-size: 0.875rem;
  color: rgba(154, 154, 168, 0.95);
  line-height: 1.55;
  font-weight: 400;
}

.caller-poste-number {
  margin: 0.85rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.caller-poste-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.caller-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(154, 154, 168, 0.95);
}

.caller-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(120, 120, 130, 0.8);
  flex-shrink: 0;
}

.caller-chip[data-ok='true'] {
  border-color: rgba(140, 210, 160, 0.22);
  color: rgba(230, 245, 235, 0.92);
  background: rgba(140, 210, 160, 0.06);
}

.caller-chip[data-ok='true'] .caller-chip-dot {
  background: rgba(140, 210, 160, 0.95);
  box-shadow: 0 0 6px rgba(140, 210, 160, 0.45);
}

.caller-poste-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.caller-poste-help {
  border: none;
  background: transparent;
  color: rgba(180, 180, 192, 0.9);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.caller-poste-help:hover {
  color: rgba(248, 248, 250, 0.95);
}

.caller-poste-phone-btn {
  width: 100%;
}

.advisor-help-list {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(248, 248, 250, 0.88);
  line-height: 1.55;
}

.advisor-help-list li + li {
  margin-top: 0.65rem;
}

.advisor-help-list code {
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.advisor-call-timer,
.dossier-call-timer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.dossier-call-timer {
  margin-right: auto;
  margin-left: 0.5rem;
}

body.advisor-ringing .sidebar {
  opacity: 0.55;
  filter: saturate(0.85);
}

body.advisor-ringing .live-call,
.live-call[data-phase='ringing'] {
  border-color: rgba(232, 201, 122, 0.4);
  background: rgba(232, 201, 122, 0.08);
}

body.advisor-ringing .live-pulse {
  background: #e8c97a;
  animation: pulse 1.1s ease-in-out infinite;
}

body.advisor-live .live-call,
.live-call[data-phase='incall'] {
  border-color: rgba(180, 220, 190, 0.32);
}

body.advisor-live .live-pulse {
  background: rgba(180, 220, 190, 0.95);
}

body.advisor-hold .live-call,
.live-call[data-phase='hold'] {
  border-color: rgba(255, 255, 255, 0.22);
}

@keyframes callerRingPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Focus dossier conseiller */
body.role-caller.advisor-focus .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-w) - 8px));
  pointer-events: none;
}

body.role-caller.advisor-focus .workspace {
  margin-left: 0;
}

body.role-caller.advisor-focus .header-left .breadcrumb,
body.role-caller.advisor-focus .header-left .page-title {
  display: none;
}

body.role-caller.advisor-focus .header-left {
  min-width: 0;
}

body.role-caller.advisor-focus .mobile-menu {
  display: none;
}

body.role-caller.advisor-focus .header {
  grid-template-columns: auto 1fr auto;
}

body.role-caller.advisor-focus .content {
  padding-top: 0.75rem;
}

.advisor-help-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.advisor-help-modal.hidden {
  display: none;
}

.advisor-help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.advisor-help-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.advisor-help-modal-card .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.advisor-help-modal-card .panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.advisor-inbox-body {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text);
  margin: 0.5rem 0 1.25rem;
  max-height: min(40vh, 320px);
  overflow: auto;
}

.mgr-users-page {
  max-width: 1280px;
}

.mgr-users-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .mgr-users-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mgr-users-shell {
  padding: 1.25rem 1.35rem 1.1rem;
}

.mgr-users-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mgr-users-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
}

.mgr-users-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.mgr-users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mgr-btn-quiet {
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
}

.mgr-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.mgr-users-search {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 0.5rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.mgr-users-search:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.mgr-users-search::placeholder {
  color: var(--muted);
}

.mgr-users-filters {
  display: flex;
  gap: 0.5rem;
}

.mgr-users-filter {
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8125rem;
}

.mgr-users-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: min(62vh, 560px);
}

@media (max-width: 1024px) {
  .mgr-users-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.mgr-users-list {
  overflow: auto;
  padding: 0.35rem 0.85rem 0.35rem 0;
  border-right: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .mgr-users-list {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 280px;
    padding-right: 0;
  }
}

.mgr-users-empty {
  padding: 2rem 0.5rem;
  text-align: center;
  color: var(--muted);
}

.mgr-user-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.5rem;
  margin-bottom: 0.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background var(--transition),
    opacity var(--transition);
}

.mgr-user-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mgr-user-row.active {
  background: rgba(255, 255, 255, 0.06);
}

.mgr-user-row[data-disabled='true'] {
  opacity: 0.45;
}

.mgr-user-presence {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(154, 154, 168, 0.5);
  flex-shrink: 0;
}

.mgr-user-presence[data-live='true'] {
  background: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.mgr-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mgr-user-avatar--lg {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.78rem;
}

.mgr-user-row-main {
  min-width: 0;
}

.mgr-user-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgr-user-meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgr-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
}

.mgr-chip--ok {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.25);
}

.mgr-chip--pause {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.25);
}

.mgr-chip--off {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.2);
}

.mgr-users-detail {
  overflow: auto;
  padding: 1rem 0 0.5rem 1.25rem;
}

@media (max-width: 1024px) {
  .mgr-users-detail {
    padding: 1rem 0 0;
  }
}

.mgr-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--muted);
  font-size: 0.875rem;
}

.mgr-detail-placeholder p {
  margin: 0;
}

.mgr-detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.mgr-detail-identity {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.mgr-detail-identity h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mgr-detail-role {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mgr-detail-hero-actions .btn {
  font-size: 0.8125rem;
}

.mgr-detail-facts {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.mgr-detail-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.mgr-detail-facts strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.mgr-detail-section {
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.mgr-detail-section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mgr-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

@media (max-width: 640px) {
  .mgr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mgr-metric strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mgr-metric span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.35;
}

.mgr-detail-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mgr-detail-compose {
  margin-top: 0.5rem;
}

.mgr-detail-compose .field {
  margin-bottom: 0.65rem;
}

.mgr-detail-compose .field label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mgr-detail-compose textarea {
  width: 100%;
  min-height: 72px;
  font-size: 0.875rem;
  resize: vertical;
}

.mgr-detail-compose .btn.primary {
  width: 100%;
  margin-top: 0.35rem;
}

.mgr-user-form .field {
  margin-bottom: 0.75rem;
}

@media (max-width: 960px) {
  body.client-sheet-open .content {
    margin-right: 0;
  }

  .client-sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(72vh, 520px);
    padding: 0;
  }

  .client-sheet-inner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-right: 1px solid var(--border-strong);
  }
}
