/* Page admin (meetadmin.integriscloud.com) — app statique, sans build, qui
   appelle directement l'API demo-app/backend (/admin/*, /auth/*).
   Styles repris quasi à l'identique de la maquette de référence (Claude
   Design, artefact ac6acc12) — mêmes classes, mêmes icônes SVG, mêmes
   menus/modales — pour que la vraie page soit aussi soignée que prévu.
   Thème clair uniquement : contrairement à la maquette, l'app réelle n'a
   pas de mode sombre, donc pas de [data-theme="dark"] ici. */
.admin-page{
  --bg:#f4f6f9; --card:#ffffff; --border:#e2e8f0; --text:#16202b; --text-muted:#64748b;
  --radius:0.625rem; --radius-lg:1rem;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --shadow-md:0 8px 24px rgba(16,24,40,.10);
  --shadow-lg:0 16px 48px rgba(16,24,40,.18);
  --ic-blue:#1e88e5; --ic-blue-dark:#1565c0; --ic-blue-light:#42a5f5; --ic-blue-lighter:#e3f2fd; --ic-blue-text:#1565c0;
  --ic-cyan:#00bcd4; --ic-cyan-lighter:#e0f7fa; --ic-cyan-text:#00838f;
  --ic-purple:#7c4dff; --ic-purple-lighter:#f1ebff; --ic-purple-text:#5e35b1;
  --ic-orange:#fb8c00; --ic-orange-lighter:#fff3e0; --ic-orange-text:#e65100;
  --ic-green:#4caf50; --ic-green-lighter:#e8f5e9; --ic-green-text:#2e7d32;
  --ic-red:#e53935; --ic-red-lighter:#fdecea; --ic-red-text:#c62828;
  --gray-lighter:#f1f5f9; --gray-text:#475569;
  --overlay: rgba(15,23,42,.5);
  font-family: 'DM Sans', system-ui, sans-serif;
  background:var(--bg); color:var(--text); min-height:100vh;
}
.admin-page, .admin-page *{ box-sizing:border-box; margin:0; padding:0; }
.admin-page a{ text-decoration:none; color:inherit; }
.admin-page button, .admin-page input, .admin-page select, .admin-page textarea{ font-family:inherit; }
.syne{ font-family:'Syne', sans-serif; }

/* ---------- Écran de connexion (repris de Login.dc.html) ---------- */
.lg-nav{ display:flex; align-items:center; padding:16px 40px; background:var(--ic-blue); }
.lg-brand{ display:flex; align-items:center; gap:10px; }
.lg-brand-mark{ width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lg-brand-mark svg{ width:17px; height:17px; }
.lg-brand-name{ font-weight:800; font-size:17px; color:#fff; font-family:'Syne', sans-serif; }
.lg-brand-tag{ font-size:10.5px; font-weight:700; color:rgba(255,255,255,.85); background:rgba(255,255,255,.16); padding:2px 8px; border-radius:999px; margin-left:8px; letter-spacing:.03em; }
.lg-wrap{ flex:1; display:flex; align-items:center; justify-content:center; padding:48px 24px; min-height:calc(100vh - 60px); }
.lg-card{ width:100%; max-width:400px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); padding:40px 36px; }
.lg-card h1{ font-size:21px; font-weight:800; font-family:'Syne', sans-serif; margin-bottom:6px; }
.lg-card p.sub{ font-size:13.5px; color:var(--text-muted); margin-bottom:28px; line-height:1.5; }
.lg-field{ margin-bottom:18px; }
.lg-field label{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; }
.lg-input-wrap{ position:relative; }
.lg-input-wrap svg.icon-left{ position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-muted); pointer-events:none; }
.lg-input-wrap input{ width:100%; padding:12px 14px 12px 40px; border-radius:var(--radius); border:1px solid var(--border); font-size:14px; color:var(--text); background:var(--bg); font-family:inherit; transition:border-color .15s ease, box-shadow .15s ease; }
.lg-input-wrap input:focus{ outline:none; border-color:var(--ic-blue-light); box-shadow:0 0 0 3px rgba(30,136,229,.15); background:var(--card); }
.lg-input-wrap .toggle-pw{ position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--text-muted); cursor:pointer; padding:4px; display:flex; }
.lg-input-wrap .toggle-pw svg{ width:16px; height:16px; }
.lg-error{ display:flex; align-items:center; gap:8px; background:var(--ic-red-lighter); color:var(--ic-red-text); font-size:12.5px; font-weight:600; padding:10px 12px; border-radius:var(--radius); margin-bottom:18px; }
.lg-error svg{ width:15px; height:15px; flex-shrink:0; }
.lg-submit{ width:100%; padding:12px; border-radius:var(--radius); border:none; background:var(--ic-blue); color:#fff; font-size:14.5px; font-weight:700; font-family:inherit; cursor:pointer; transition:background .15s ease; display:flex; align-items:center; justify-content:center; gap:8px; }
.lg-submit:hover{ background:var(--ic-blue-dark); }
.lg-submit:disabled{ opacity:.7; cursor:default; }
.lg-divider{ display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--text-muted); font-size:12.5px; }
.lg-divider::before, .lg-divider::after{ content:''; flex:1; height:1px; background:var(--border); }
.lg-google{ width:100%; padding:11px; border-radius:var(--radius); border:1px solid var(--border); background:var(--card); color:var(--text); display:flex; align-items:center; justify-content:center; gap:10px; font-weight:700; font-size:13.5px; cursor:pointer; font-family:inherit; }
.lg-google:hover{ background:var(--bg); }
.lg-google:disabled{ opacity:.5; cursor:default; }
.spinner{ width:15px; height:15px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- Coquille app (sidebar + contenu), reprise de Users.dc.html ---------- */
.app-shell{ display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.sidebar{ background:var(--card); border-right:1px solid var(--border); display:flex; flex-direction:column; padding:20px 14px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:15.5px; padding:8px 8px 4px; font-family:'Syne', sans-serif; }
.brand-mark{ width:30px; height:30px; border-radius:8px; background:linear-gradient(135deg,var(--ic-blue),var(--ic-cyan)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.brand-mark svg{ width:16px; height:16px; color:#fff; }
.brand-tag{ font-size:10px; font-weight:700; color:var(--text-muted); letter-spacing:.04em; padding:0 8px 18px; }
.nav-item{ display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--radius); font-size:13.5px; font-weight:600; color:var(--text-muted); cursor:pointer; margin-bottom:2px; }
.nav-item svg{ width:18px; height:18px; flex-shrink:0; }
.nav-item:hover{ background:var(--bg); color:var(--text); }
.nav-item.active{ background:var(--ic-blue-lighter); color:var(--ic-blue-text); }
.sidebar-footer{ margin-top:auto; padding-top:14px; border-top:1px solid var(--border); }
.user-row-side{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:var(--radius); }
.user-row-side:hover{ background:var(--bg); }
.user-avatar-side{ width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,var(--ic-blue),var(--ic-cyan)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; flex-shrink:0; }
.user-meta-side{ min-width:0; }
.user-meta-side .name{ font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-meta-side .role{ font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.logout-btn{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--text-muted); padding:9px 8px; cursor:pointer; border-radius:var(--radius); margin-top:2px; border:none; background:none; width:100%; text-align:left; }
.logout-btn:hover{ background:var(--bg); color:var(--ic-red-text); }
.logout-btn svg{ width:15px; height:15px; flex-shrink:0; }

.main{ padding:28px 36px 48px; max-width:1180px; }
.topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; gap:16px; flex-wrap:wrap; }
.topbar h1{ font-size:21px; font-weight:800; font-family:'Syne', sans-serif; margin-bottom:3px; }
.topbar p{ font-size:13px; color:var(--text-muted); }
.back-link{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); font-weight:600; cursor:pointer; margin-bottom:14px; }
.back-link:hover{ color:var(--text); }
.back-link svg{ width:15px; height:15px; }

/* ---------- Barre d'outils (recherche + filtres) ---------- */
.toolbar{ display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.search-box{ display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--border); border-radius:999px; padding:9px 16px; min-width:220px; flex:1; max-width:340px; }
.search-box svg{ width:15px; height:15px; color:var(--text-muted); flex-shrink:0; }
.search-box input{ border:none; outline:none; background:none; font-size:13px; color:var(--text); width:100%; font-family:inherit; }
.select-filter{ position:relative; }
.select-filter select{ appearance:none; background:var(--card); border:1px solid var(--border); border-radius:999px; padding:9px 32px 9px 14px; font-size:12.5px; font-weight:600; color:var(--text); font-family:inherit; cursor:pointer; }
.select-filter svg{ position:absolute; right:11px; top:50%; transform:translateY(-50%); width:13px; height:13px; color:var(--text-muted); pointer-events:none; }
.result-count{ font-size:12.5px; color:var(--text-muted); margin-left:auto; font-weight:600; }

/* ---------- Bandeau de stats ---------- */
.stat-strip{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:14px; margin-bottom:22px; }
.stat-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 18px; box-shadow:var(--shadow-sm); }
.stat-card .label{ font-size:12px; color:var(--text-muted); font-weight:600; margin-bottom:6px; }
.stat-card .value{ font-size:22px; font-weight:800; font-family:'Syne', sans-serif; }

/* ---------- Tableau (table-panel), repris de Users.dc.html / Invoices.dc.html ---------- */
.table-panel{ background:var(--card); border:1px solid var(--border); border-radius:1rem; box-shadow:var(--shadow-sm); overflow:visible; }
.t-head{ display:flex; align-items:center; gap:14px; padding:12px 22px; border-bottom:1px solid var(--border); font-size:11.5px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; }
.t-row{ display:flex; align-items:center; gap:14px; padding:14px 22px; border-bottom:1px solid var(--border); position:relative; }
.t-row:last-child{ border-bottom:none; }
.t-row.clickable{ cursor:pointer; }
.t-row.clickable:hover{ background:var(--bg); }
.col-user{ flex:2.4; display:flex; align-items:center; gap:12px; min-width:0; }
.col-plan{ flex:1; }
.col-role{ flex:0.9; }
.col-status{ flex:1; }
.col-date{ flex:1; color:var(--text-muted); font-size:12.5px; }
.col-action{ width:36px; flex-shrink:0; text-align:right; }
.col-invoice{ flex:1.1; }
.col-invoice .num{ font-size:13px; font-weight:700; }
.col-invoice .method{ font-size:12px; color:var(--text-muted); margin-top:2px; }
.col-customer{ flex:1.8; min-width:0; }
.col-customer .name{ font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.col-customer .email{ font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.col-amount{ flex:0.9; font-size:13.5px; font-weight:800; font-family:'Syne', sans-serif; }
.row-avatar{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12.5px; flex-shrink:0; }
.row-user-meta{ min-width:0; }
.row-user-meta .name{ font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-user-meta .email{ font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.table-empty{ padding:36px 20px; text-align:center; color:var(--text-muted); font-size:13.5px; }

.badge{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; }
.badge svg{ width:11px; height:11px; }
.badge-admin{ background:var(--text); color:var(--card); }
.badge-suspended{ background:var(--ic-red-lighter); color:var(--ic-red-text); }
.badge-active{ background:var(--ic-green-lighter); color:var(--ic-green-text); }
.badge-verified-no{ background:var(--ic-orange-lighter); color:var(--ic-orange-text); }
.dash{ color:var(--text-muted); font-size:12.5px; }

/* Badges de plan (couleurs fixes, cohérentes avec les menus) */
.plan-free{ background:var(--gray-lighter); color:var(--gray-text); }
.plan-standard{ background:var(--ic-cyan-lighter); color:var(--ic-cyan-text); }
.plan-equipe{ background:var(--ic-purple-lighter); color:var(--ic-purple-text); }
.plan-professional{ background:var(--ic-blue-lighter); color:var(--ic-blue-text); }
.plan-entreprise{ background:var(--ic-orange-lighter); color:var(--ic-orange-text); }

/* Statuts de facture */
.status-paid{ background:var(--ic-green-lighter); color:var(--ic-green-text); }
.status-pending{ background:var(--ic-orange-lighter); color:var(--ic-orange-text); }
.status-failed{ background:var(--ic-red-lighter); color:var(--ic-red-text); }
.status-cancelled{ background:var(--gray-lighter); color:var(--gray-text); }

/* ---------- Menu kebab (⋮) et sous-menu, repris de Users.dc.html ---------- */
.kebab-btn{ width:30px; height:30px; border-radius:8px; border:none; background:none; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.kebab-btn:hover{ background:var(--bg); color:var(--text); }
.kebab-btn svg{ width:16px; height:16px; }
.menu{ position:absolute; right:22px; top:46px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-lg); z-index:30; min-width:210px; padding:6px; }
.menu-item{ display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; color:var(--text); }
.menu-item svg{ width:15px; height:15px; flex-shrink:0; color:var(--text-muted); }
.menu-item:hover{ background:var(--bg); }
.menu-item.danger{ color:var(--ic-red-text); }
.menu-item.danger svg{ color:var(--ic-red-text); }
.menu-sep{ height:1px; background:var(--border); margin:6px 4px; }
.menu-label{ font-size:10.5px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; padding:6px 10px 4px; }
.plan-option{ display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; }
.plan-option:hover{ background:var(--bg); }
.plan-option .dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.plan-option .check{ margin-left:auto; width:14px; height:14px; color:var(--ic-blue); }

/* ---------- Pagination ---------- */
.pagination{ display:flex; align-items:center; justify-content:space-between; padding:16px 22px; font-size:12.5px; }
.pagination .info{ color:var(--text-muted); font-weight:600; }
.page-btns{ display:flex; align-items:center; gap:6px; }
.page-btn{ width:30px; height:30px; border-radius:8px; border:1px solid var(--border); background:var(--card); color:var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:700; }
.page-btn:hover:not(:disabled){ background:var(--bg); }
.page-btn:disabled{ opacity:.4; cursor:default; }
.page-btn svg{ width:14px; height:14px; }

/* ---------- Fenêtre modale (overlay), reprise de Users.dc.html ---------- */
.overlay{ position:fixed; inset:0; background:var(--overlay); display:flex; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal{ width:100%; max-width:400px; background:var(--card); border-radius:1rem; box-shadow:var(--shadow-lg); padding:26px; }
.modal h3{ font-size:16.5px; font-weight:800; font-family:'Syne', sans-serif; margin-bottom:6px; }
.modal p.sub{ font-size:13px; color:var(--text-muted); margin-bottom:18px; line-height:1.5; }
.modal label{ display:block; font-size:12.5px; font-weight:700; margin-bottom:7px; }
.modal textarea{ width:100%; min-height:80px; padding:10px 12px; border-radius:var(--radius); border:1px solid var(--border); font-size:13px; color:var(--text); background:var(--bg); font-family:inherit; resize:vertical; margin-bottom:20px; }
.modal textarea:focus{ outline:none; border-color:var(--ic-blue-light); box-shadow:0 0 0 3px rgba(30,136,229,.15); }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; }
.btn-ghost{ padding:10px 16px; border-radius:var(--radius); border:1px solid var(--border); background:var(--card); color:var(--text); font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; }
.btn-ghost:hover{ background:var(--bg); }
.btn-danger{ padding:10px 16px; border-radius:var(--radius); border:none; background:var(--ic-red); color:#fff; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; }
.btn-danger:hover{ background:var(--ic-red-text); }
.btn-primary-modal{ padding:10px 16px; border-radius:var(--radius); border:none; background:var(--ic-blue); color:#fff; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; }
.btn-primary-modal:hover{ background:var(--ic-blue-dark); }

/* ---------- Vue d'ensemble (KPI, panneaux, graphiques) ---------- */
.kpi-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.kpi-card{ background:var(--card); border:1px solid var(--border); border-radius:1rem; padding:18px 20px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:10px; }
.kpi-icon{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.kpi-icon svg{ width:17px; height:17px; }
.kpi-num{ font-size:23px; font-weight:800; font-family:'Syne', sans-serif; }
.kpi-lbl{ font-size:12.5px; color:var(--text-muted); font-weight:600; }

.row-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.row-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; margin-bottom:16px; }
.panel{ background:var(--card); border:1px solid var(--border); border-radius:1rem; padding:22px; box-shadow:var(--shadow-sm); }
.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.panel-head h2{ font-size:15px; font-weight:800; font-family:'Syne', sans-serif; }
.tag{ font-size:11px; font-weight:700; color:var(--text-muted); background:var(--bg); padding:3px 9px; border-radius:999px; }
.mini-room-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.mini-room-row:last-child{ border-bottom:none; }
.mini-room-dot{ width:8px; height:8px; border-radius:50%; background:var(--ic-green); flex-shrink:0; box-shadow:0 0 0 3px var(--ic-green-lighter); }
.mini-room-info{ flex:1; min-width:0; }
.mini-room-info .name{ font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.plan-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.plan-row:last-child{ border-bottom:none; }
.plan-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.plan-name{ font-size:13.5px; font-weight:700; flex:1; }
.plan-bar-track{ width:90px; height:6px; border-radius:999px; background:var(--bg); overflow:hidden; flex-shrink:0; }
.plan-bar-fill{ height:100%; border-radius:999px; }
.plan-count{ font-size:13px; font-weight:700; color:var(--text-muted); width:26px; text-align:right; flex-shrink:0; }

.status-row{ display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.status-row:last-child{ border-bottom:none; }
.status-icon{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.status-icon svg{ width:15px; height:15px; }
.status-name{ font-size:13.5px; font-weight:700; flex:1; }
.status-count{ font-size:15px; font-weight:800; font-family:'Syne', sans-serif; }

.chart-wrap{ display:flex; align-items:flex-end; gap:10px; height:130px; padding-top:20px; }
.chart-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.chart-bar{ width:100%; max-width:34px; border-radius:6px 6px 3px 3px; position:relative; background:var(--ic-blue-lighter); min-height:3px; }
.chart-bar.current{ background:var(--ic-blue); }
.chart-bar .val{ position:absolute; top:-18px; left:50%; transform:translateX(-50%); font-size:10.5px; font-weight:700; color:var(--text-muted); white-space:nowrap; }
.chart-lbl{ font-size:11px; color:var(--text-muted); font-weight:600; }

/* ---------- Monitoring (technique, relayé depuis api-videoconference) ---------- */
.live-badge{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--ic-green-text); background:var(--ic-green-lighter); padding:4px 11px; border-radius:999px; margin-left:10px; }
.live-badge .dot{ width:7px; height:7px; border-radius:50%; background:var(--ic-green); }
.mon-meta{ display:flex; align-items:center; gap:12px; font-size:12.5px; color:var(--text-muted); margin-left:auto; }
.mon-meta select{ border:1px solid var(--border); border-radius:999px; padding:6px 10px; font-size:12.5px; background:var(--card); color:var(--text); font-family:inherit; }
.worker-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.worker-row:last-child{ border-bottom:none; }
.worker-row .w-label{ flex:1.3; font-size:12.5px; font-weight:700; }
.worker-row .w-label .sub{ font-weight:600; color:var(--text-muted); }
.worker-row .w-track{ flex:2; height:6px; border-radius:999px; background:var(--bg); overflow:hidden; }
.worker-row .w-fill{ height:100%; border-radius:999px; background:var(--ic-blue); }
.worker-row .w-num{ flex:0 0 100px; text-align:right; font-size:12px; color:var(--text-muted); font-weight:600; }

/* ---------- Réunions (historique global) ---------- */
.col-room{ flex:1.3; font-family:monospace; font-size:12px; }
.col-host{ flex:1.6; min-width:0; }
.col-started{ flex:1.1; color:var(--text-muted); font-size:12.5px; }
.col-ended{ flex:1.1; }
.col-duration{ flex:0.8; font-size:13px; font-weight:700; }

/* ---------- Stockage ---------- */
.quota-row{ margin-bottom:16px; }
.quota-row:last-child{ margin-bottom:0; }
.quota-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; font-size:13px; font-weight:700; }
.quota-plan{ display:flex; align-items:center; gap:8px; }
.quota-dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.quota-cap{ font-size:12px; color:var(--text-muted); font-weight:600; }
.quota-track{ height:6px; border-radius:999px; background:var(--bg); overflow:hidden; }
.quota-fill{ height:100%; border-radius:999px; }
.col-usage{ flex:1.6; }
.usage-lbl{ display:flex; justify-content:space-between; font-size:12px; font-weight:700; margin-bottom:6px; }
.usage-lbl .muted{ color:var(--text-muted); font-weight:600; }
.usage-track{ height:6px; border-radius:999px; background:var(--bg); overflow:hidden; }
.usage-fill{ height:100%; border-radius:999px; }

/* ---------- Fiche compte détaillée (pas dans la maquette d'origine —
   même langage visuel : cartes, icônes, badges) ---------- */
.card{ background:var(--card); border:1px solid var(--border); border-radius:1rem; box-shadow:var(--shadow-sm); }
.card + .card{ margin-top:18px; }
.card-head{ padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.card-head h2{ font-size:15px; font-weight:800; font-family:'Syne', sans-serif; }
.card-head p{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }

.profile-head{ display:flex; align-items:center; gap:16px; padding:22px 20px; flex-wrap:wrap; }
.avatar-lg{ width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:22px; flex-shrink:0; }
.profile-head .info{ flex:1; min-width:200px; }
.profile-head .info h2{ font-size:18px; font-weight:800; font-family:'Syne', sans-serif; }
.profile-head .info .email{ font-size:13px; color:var(--text-muted); margin-top:2px; }
.profile-head .badges{ display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.profile-head .kebab-wrap{ margin-left:auto; position:relative; }

.detail-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:16px; padding:0 20px 20px; }
.detail-grid .item .label{ font-size:11.5px; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:.02em; margin-bottom:4px; }
.detail-grid .item .value{ font-size:14px; font-weight:600; }

.form-note{ background:var(--ic-blue-lighter); color:var(--ic-blue-text); border-radius:var(--radius); padding:10px 13px; font-size:13px; margin:0 20px 18px; display:flex; align-items:center; gap:8px; }
.form-note svg{ width:15px; height:15px; flex-shrink:0; }

.consumption-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:14px; padding:18px 20px; }
.consumption-grid .box{ text-align:center; padding:14px; border-radius:var(--radius); background:var(--bg); }
.consumption-grid .box .n{ font-size:24px; font-weight:800; color:var(--ic-blue-text); font-family:'Syne', sans-serif; }
.consumption-grid .box .l{ font-size:12px; color:var(--text-muted); margin-top:4px; }

.toast{ position:fixed; top:20px; right:20px; background:var(--text); color:#fff; padding:12px 18px; border-radius:var(--radius); font-size:13.5px; font-weight:600; box-shadow:var(--shadow-lg); z-index:200; opacity:0; transform:translateY(-8px); transition:opacity .2s, transform .2s; pointer-events:none; display:flex; align-items:center; gap:8px; }
.toast svg{ width:15px; height:15px; flex-shrink:0; }
.toast.show{ opacity:1; transform:translateY(0); }
.toast.error{ background:var(--ic-red); }

.loading{ padding:60px; text-align:center; color:var(--text-muted); font-size:13.5px; }

@media (max-width:860px){
  .app-shell{ grid-template-columns:1fr; }
  .sidebar{ flex-direction:row; align-items:center; border-right:none; border-bottom:1px solid var(--border); overflow-x:auto; }
  .sidebar-footer{ margin-top:0; margin-left:auto; border-top:none; padding-top:0; }
  .main{ padding:20px 16px 40px; }
  .t-row{ flex-wrap:wrap; }
}
