/* ================================================
   NEXAR PANEL — Design v4 (neutral pro)
   Zinc surfaces · restrained blue accent · no AI glow
   ================================================ */

:root {
  --bg-0: #09090b;
  --bg-1: #0c0c0e;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --bg-4: #27272a;
  --bg-hover: #1a1a1d;
  --bg-active: #232326;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.10);
  --accent-glow: rgba(59, 130, 246, 0.16);

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.10);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.10);
  --yellow: #f59e0b;
  --yellow-soft: rgba(245, 158, 11, 0.10);
  --cyan: #0ea5e9;
  --cyan-soft: rgba(14, 165, 233, 0.10);
  --purple: #6366f1;
  --purple-soft: rgba(99, 102, 241, 0.08);

  --text-0: #fafafa;
  --text-1: #e4e4e7;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-xl: 14px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.52);

  --sidebar-w: 264px;
  --topbar-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* === LAYOUT === */
.app { display: flex; min-height: 100vh; }

/* === SIDEBAR === */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 100;
}
.sidebar-head {
  padding: 20px 20px 12px;
  display: flex; align-items: center; gap: 12px;
}
.s-logo {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 700;
  box-shadow: none;
}
.s-name { font-size: 1.15rem; font-weight: 700; color: var(--text-0); letter-spacing: -0.02em; }
.s-tag {
  font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 6px; border-radius: 4px;
}

.sidebar-body { flex: 1; padding: 8px 10px; overflow-y: auto; }
.s-label {
  padding: 12px 10px 5px;
  font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3);
}
.s-nav { display: flex; flex-direction: column; gap: 1px; }
.s-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.85rem; font-weight: 500;
  transition: all .15s var(--ease);
  position: relative;
}
.s-link i { font-size: 1.15rem; width: 20px; text-align: center; }
.s-link:hover { background: var(--bg-hover); color: var(--text-1); }
.s-link.active { background: var(--accent-soft); color: var(--accent); }
.s-link.active::before {
  content: '';
  position: absolute; left: -10px; top: 7px; bottom: 7px;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.s-count {
  margin-left: auto;
  font-size: 0.68rem; font-weight: 600;
  background: var(--bg-3); color: var(--text-2);
  padding: 1px 7px; border-radius: 10px;
}
.s-link .badge {
  margin-left: auto;
  font-size: 0.65rem; padding: 2px 6px;
}
.sidebar-foot { padding: 8px 10px 14px; border-top: 1px solid var(--border); }
.s-link.s-danger:hover { color: var(--red); background: var(--red-soft); }

/* === MAIN === */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: var(--bg-1);
  position: sticky; top: 0; z-index: 50;
  gap: 18px;
}
.topbar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar h1 { font-size: 1.05rem; font-weight: 600; color: var(--text-0); white-space: nowrap; }
.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-1);
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn i { font-size: 1.1rem; }
.mobile-menu-btn:hover { background: var(--bg-3); border-color: var(--border-hover); }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.topbar-actions-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.topbar-search {
  flex: 1; max-width: 480px;
  position: relative;
}
.topbar-search i.search-icn {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 1rem; pointer-events: none;
}
.topbar-search input {
  width: 100%; height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0 2.2rem 0 2.25rem;
  font-size: 0.83rem;
  outline: none;
  transition: all .15s var(--ease);
}
.topbar-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-3); }
.topbar-search input::placeholder { color: var(--text-3); }
.topbar-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 0.65rem; color: var(--text-3);
  background: var(--bg-3); padding: 2px 6px; border-radius: 3px;
  border: 1px solid var(--border);
}

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 420px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: none; z-index: 100;
}
.search-results.open { display: block; }
.search-results .result-section {
  padding: .45rem .75rem;
  font-size: .6rem; text-transform: uppercase;
  color: var(--text-3); letter-spacing: .08em; font-weight: 700;
  background: var(--bg-3);
}
.search-results .result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-1);
}
.search-results .result-item:last-child { border-bottom: none; }
.search-results .result-item i { color: var(--text-3); }
.search-results .result-item:hover,
.search-results .result-item.hl { background: var(--bg-hover); color: var(--text-0); }
.search-results .result-item:hover i,
.search-results .result-item.hl i { color: var(--accent); }
.search-results .result-meta { margin-left: auto; color: var(--text-3); font-size: 0.72rem; }
.search-results .empty { padding: 20px; color: var(--text-3); text-align: center; font-size: 0.85rem; }

.page { padding: 24px 28px; flex: 1; animation: pageIn .25s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* === STATS === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s var(--ease);
  position: relative; overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 0 3px 3px 0;
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat[data-c="blue"]::after { background: var(--accent); }
.stat[data-c="green"]::after { background: var(--green); }
.stat[data-c="red"]::after { background: var(--red); }
.stat[data-c="yellow"]::after { background: var(--yellow); }
.stat[data-c="cyan"]::after { background: var(--cyan); }
.stat[data-c="purple"]::after { background: var(--purple); }
.stat-ic {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.stat[data-c="blue"] .stat-ic { background: var(--accent-soft); color: var(--accent); }
.stat[data-c="green"] .stat-ic { background: var(--green-soft); color: var(--green); }
.stat[data-c="red"] .stat-ic { background: var(--red-soft); color: var(--red); }
.stat[data-c="yellow"] .stat-ic { background: var(--yellow-soft); color: var(--yellow); }
.stat[data-c="cyan"] .stat-ic { background: var(--cyan-soft); color: var(--cyan); }
.stat[data-c="purple"] .stat-ic { background: var(--purple-soft); color: var(--purple); }
.stat-val { font-size: 1.6rem; font-weight: 700; color: var(--text-0); line-height: 1.1; }
.stat-lbl { font-size: 0.72rem; color: var(--text-2); font-weight: 500; }

/* === CARD === */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-h {
  padding: 12px 18px;
  font-weight: 600; font-size: 0.8rem;
  color: var(--text-0);
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  display: flex; align-items: center; gap: 8px;
}
.card-h i { color: var(--text-2); font-size: 1rem; }
.card-h .right { margin-left: auto; }
.card-b { padding: 14px 18px; }
.card-b.flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }

/* === TABLE === */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 9px 14px;
  font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-2);
  position: sticky; top: 0; z-index: 1;
}
th a { color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
th a:hover { color: var(--text-1); }
th a.active { color: var(--accent); }
td {
  padding: 10px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr { transition: background .1s; }
tbody tr:hover td { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.row-highlight td { background: rgba(34, 211, 168, 0.06); }
tbody tr.row-highlight:hover td { background: rgba(34, 211, 168, 0.10); }
tfoot td {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-weight: 600;
}
td a { color: var(--accent); font-weight: 500; }
td a:hover { text-decoration: underline; }
td.right, th.right { text-align: right; }
td.center, th.center { text-align: center; }

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.68rem; font-weight: 600;
  white-space: nowrap;
}
.bdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-green .bdot { background: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-red .bdot { background: var(--red); }
.b-yellow { background: var(--yellow-soft); color: var(--yellow); }
.b-yellow .bdot { background: var(--yellow); }
.b-blue { background: var(--accent-soft); color: var(--accent); }
.b-blue .bdot { background: var(--accent); }
.b-cyan { background: var(--cyan-soft); color: var(--cyan); }
.b-cyan .bdot { background: var(--cyan); }
.b-purple { background: var(--purple-soft); color: var(--purple); }
.b-purple .bdot { background: var(--purple); }
.b-gray { background: rgba(100,116,139,.06); color: var(--text-2); }
.b-gray .bdot { background: var(--text-2); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.82rem; font-weight: 500;
  transition: all .15s var(--ease);
  white-space: nowrap;
  color: var(--text-1);
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn i { font-size: 1rem; }
.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--accent-hover); box-shadow: 0 2px 8px var(--accent-glow); }
.btn-g { background: var(--green); color: #fff; }
.btn-g:hover { background: #059669; }
.btn-d { background: var(--red); color: #fff; }
.btn-d:hover { background: #ef5050; }
.btn-w { background: var(--yellow); color: #18181b; }
.btn-w:hover { background: #d97706; }
.btn-o { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-1); }
.btn-o:hover { background: var(--bg-4); border-color: var(--border-hover); }
.btn-c { background: var(--cyan); color: #fff; }
.btn-c:hover { background: #0284c7; }
.btn-pu { background: var(--purple); color: #fff; }
.btn-pu:hover { background: #4f46e5; }
.btn-r { background: var(--red); color: #fff; }
.btn-r:hover { background: #dc2626; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25); }
.btn-sm { padding: 5px 11px; font-size: 0.75rem; }
.btn-xs { padding: 3px 8px; font-size: 0.7rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* === FORMS === */
.fg { margin-bottom: 14px; }
.fg label { display: block; margin-bottom: 5px; font-size: 0.72rem; font-weight: 600; color: var(--text-2); }
.fc {
  width: 100%;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-0);
  font-size: 0.84rem;
  transition: all .15s var(--ease);
  outline: none;
}
.fc:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fc::placeholder { color: var(--text-3); }
.fi { display: flex; gap: 8px; align-items: flex-end; }
.fi .fg { margin-bottom: 0; }

/* === TOOLBAR === */
.toolbar {
  display: flex; gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-box { position: relative; flex-shrink: 0; }
.search-box i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: .95rem; pointer-events: none;
}
.search-box input {
  padding: 8px 13px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 0.82rem;
  width: 280px; outline: none;
  transition: all .15s var(--ease);
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input::placeholder { color: var(--text-3); }
.search-box .clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--bg-3); color: var(--text-3);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.search-box .clear-btn:hover { color: var(--red); background: var(--red-soft); }

.ftabs {
  display: flex; gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.ftab {
  padding: 5px 13px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-2);
  transition: all .15s;
  text-decoration: none;
  background: transparent; border: none;
  cursor: pointer;
}
.ftab:hover { color: var(--text-1); background: var(--bg-hover); }
.ftab.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }

/* === BULK BAR === */
.bulkbar {
  display: flex; gap: 8px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  flex-wrap: wrap;
  animation: pageIn .2s var(--ease);
}
.bulkbar .sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.row-check { width: 32px; text-align: center; }
.row-check input { cursor: pointer; accent-color: var(--accent); width: 14px; height: 14px; }

/* === DETAIL HEADER === */
.back {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-2); font-size: 0.82rem; font-weight: 500;
  margin-bottom: 14px;
  transition: color .15s;
}
.back:hover { color: var(--accent); }
.dh {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dh .d-ic {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.7rem;
}
.dh h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-0); }
.dh .d-sub { color: var(--text-2); font-size: 0.78rem; margin-top: 2px; }
.dh .d-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.ig {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.ii {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.ii-l {
  font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); margin-bottom: 3px;
}
.ii-v {
  font-size: 0.86rem; font-weight: 500;
  color: var(--text-0); word-break: break-all;
}

.stitle {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-0);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.stitle i { color: var(--text-2); font-size: 1rem; }
.stitle .right { margin-left: auto; font-size: 0.72rem; color: var(--text-3); font-weight: 500; }

/* === TABS (page detail) === */
.tabs {
  display: flex; gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tab {
  background: transparent; border: none;
  padding: 10px 16px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text-1); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: pageIn .25s var(--ease); }

/* === PM2 GRID === */
.pm2g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.pm2i {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.pm2v { font-size: 1.05rem; font-weight: 700; color: var(--text-0); margin-bottom: 2px; }
.pm2l { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

/* === CLIENTS GRID === */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.cl-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all .2s var(--ease);
  display: block; color: inherit;
}
.cl-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.cl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cl-av {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.cl-av.lg { width: 52px; height: 52px; font-size: 1.4rem; }
.cl-name { font-size: 0.92rem; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-id { font-size: 0.7rem; color: var(--text-3); font-family: 'SF Mono', Consolas, monospace; }
.cl-arrow { margin-left: auto; color: var(--text-3); font-size: 1.1rem; transition: transform .2s; }
.cl-card:hover .cl-arrow { transform: translateX(3px); color: var(--accent); }
.cl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cl-s { text-align: center; }
.cl-sv { display: block; font-size: 1rem; font-weight: 700; color: var(--text-0); line-height: 1.3; }
.cl-sl { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.cl-foot { padding-top: 12px; }

/* === LOGIN === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 18% 38%, rgba(59, 130, 246, 0.05), transparent 55%),
    radial-gradient(ellipse 55% 40% at 86% 14%, rgba(255, 255, 255, 0.025), transparent 50%);
  animation: login-bg-shift 12s ease-in-out infinite alternate;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
@keyframes login-bg-shift {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
.login-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.55),
    0 0 80px -20px rgba(88, 101, 242, 0.25);
  backdrop-filter: blur(12px);
  animation: login-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.9), rgba(167, 139, 250, 0.7), transparent);
  border-radius: 0 0 2px 2px;
}
.login-top {
  text-align: center;
  margin-bottom: 32px;
}
.login-top .s-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}
.login-top h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.login-top p {
  color: var(--text-2);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.45;
}
.btn-discord {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #6b77f7 0%, #5865f2 45%, #4752c4 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-discord-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-discord-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: discord-btn-shine 3.5s ease-in-out infinite;
}
@keyframes discord-btn-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.btn-discord:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 18px rgba(0, 0, 0, 0.32);
}
.btn-discord:active {
  transform: translateY(0);
}
.login-err {
  background: var(--red-soft);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid rgba(248, 113, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

/* === TOPBAR PROFILE (Discord OAuth) === */
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px 0 5px;
  max-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.topbar-profile:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
}
.topbar-profile-av {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg-3);
}
.topbar-profile-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topbar-profile-av--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 1rem;
}
/* Statut en ligne sur l’avatar */
.topbar-profile-av::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
  z-index: 2;
}
.topbar-profile:hover .topbar-profile-av::after {
  border-color: var(--bg-3);
}
/* Avatar animé Discord : léger halo accent (le GIF s’anime dans l’img) */
.topbar-profile--animated .topbar-profile-av {
  box-shadow: 0 0 0 1px var(--accent-soft);
  animation: topbar-av-halo 2.5s ease-in-out infinite;
}
@keyframes topbar-av-halo {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent-soft); }
  50% { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 8px var(--accent-glow); }
}
.topbar-profile-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  line-height: 1.15;
}
.topbar-profile-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-profile-role {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* === TOAST === */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  z-index: 9999;
  display: flex; align-items: center; gap: 9px;
  box-shadow: var(--shadow-lg);
  animation: tIn .3s var(--ease);
  max-width: 400px;
}
.toast i { font-size: 1.1rem; flex-shrink: 0; }
.t-ok { background: var(--bg-2); border: 1px solid rgba(34,211,168,.15); color: var(--green); }
.t-err { background: var(--bg-2); border: 1px solid rgba(248,113,113,.15); color: var(--red); }
.t-warn { background: var(--bg-2); border: 1px solid rgba(251,191,36,.15); color: var(--yellow); }
.t-close { background: none; border: none; color: inherit; opacity: .5; padding: 0; margin-left: auto; font-size: 1rem; }
.t-close:hover { opacity: 1; }
.t-hide { animation: tOut .3s var(--ease) forwards; }
@keyframes tIn { from { opacity: 0; transform: translateX(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes tOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(20px) scale(.95); } }

/* === MODAL === */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%; max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s var(--ease);
}
.modal-ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}
.modal-ic.info { background: var(--accent-soft); color: var(--accent); }
.modal-ic.warn { background: var(--yellow-soft); color: var(--yellow); }
.modal h3 { font-size: 1rem; font-weight: 600; color: var(--text-0); margin-bottom: 6px; }
.modal p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }
.modal-btns { display: flex; gap: 8px; justify-content: center; }
.modal-btns .btn { min-width: 100px; justify-content: center; }

/* === BULK PROGRESS MODAL === */
.bulk-progress-modal {
  width: min(520px, 94vw);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.bulk-progress-modal h3 { margin-bottom: 4px; }
.bulk-progress-sub { font-size: 0.82rem; color: var(--text-2); margin-bottom: 14px; }
.bulk-progress-track {
  height: 8px;
  background: var(--bg-3);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bulk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 99px;
  transition: width .25s var(--ease);
}
.bulk-progress-pct { font-size: 0.75rem; color: var(--text-3); margin-bottom: 12px; font-family: var(--mono); }
.bulk-progress-list {
  flex: 1;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  padding: 8px;
  margin-bottom: 16px;
}
.bulk-progress-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.bulk-progress-row + .bulk-progress-row { margin-top: 2px; }
.bulk-progress-row i { margin-top: 2px; flex-shrink: 0; }
.bulk-progress-row.ok { color: var(--green); background: var(--green-soft); }
.bulk-progress-row.err { color: var(--red); background: var(--red-soft); }
.bulk-progress-err { color: var(--text-2); font-weight: 500; }
.bulk-progress-btns { display: flex; gap: 8px; justify-content: flex-end; }
tr.bulk-row-done { opacity: 0.45; }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* === SERVER GRID === */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.srv-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.srv-v { font-size: 0.9rem; font-weight: 600; color: var(--text-0); margin-bottom: 2px; word-break: break-all; }
.srv-l { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

/* === EMPTY === */
.empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.86rem;
}
.empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  opacity: .35;
}

/* === CONSOLE / LOGS === */
.console {
  background: #0d0f13;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.78rem;
  padding: 14px 16px;
  min-height: 420px;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
  scroll-behavior: smooth;
}
.console::-webkit-scrollbar { width: 6px; }
.console::-webkit-scrollbar-track { background: transparent; }
.console::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.log-out { color: #d4d4d8; }
.log-err { color: var(--red); }
.log-sys { color: var(--text-3); font-style: italic; }
.log-warn { color: var(--yellow); }
.log-info { color: var(--cyan); }
.indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--text-2);
}
.indicator .ddot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.indicator.live .ddot { background: var(--green); box-shadow: 0 0 0 3px rgba(34,211,168,.2); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* === SWITCH === */
.switch {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 0.78rem; color: var(--text-2);
}
.switch input { display: none; }
.switch .track {
  width: 32px; height: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: background .15s;
}
.switch .track::after {
  content: '';
  position: absolute; top: 1px; left: 1px;
  width: 14px; height: 14px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform .15s, background .15s;
}
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); background: #fff; }

/* === PAGINATION === */
.pagination {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.pagination span { color: var(--text-3); font-size: 0.82rem; }

/* === KV === */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  font-size: 0.85rem;
}
.kv dt { color: var(--text-2); font-weight: 500; }
.kv dd { color: var(--text-1); }

/* === PROGRESS === */
.progress { background: var(--bg-3); border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width .3s; border-radius: 999px; }
.progress-bar.green { background: var(--green); }
.progress-bar.yellow { background: var(--yellow); }
.progress-bar.red { background: var(--red); }

/* === NOTIFICATIONS === */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.notif-item:hover { border-color: var(--border-hover); }
.notif-unread { background: var(--bg-3); border-color: var(--accent-soft); }
.notif-unread::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.notif-icon { font-size: 1.2rem; padding-top: 2px; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.86rem; color: var(--text-0); margin-bottom: 4px; }
.notif-msg { font-size: 0.82rem; color: var(--text-1); line-height: 1.55; word-break: break-word; }
.notif-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
}
.notif-link:hover { text-decoration: underline; }
.notif-time { margin-top: 6px; font-size: 0.7rem; }
.notif-action { flex-shrink: 0; align-self: center; }

/* === UTILITIES === */
.t2 { color: var(--text-2); }
.t3 { color: var(--text-3); }
.tg { color: var(--green); }
.tr { color: var(--red); }
.ty { color: var(--yellow); }
.ta { color: var(--accent); }
.tsm { font-size: 0.72rem; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 0.78rem; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; }
.mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 24px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--accent);
}

canvas { max-height: 220px; }

/* === TOOLS JOB OVERLAY (update / restart all) === */
.tool-job-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pageIn .2s var(--ease);
}
.tool-job-panel {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.tool-job-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.tool-job-head h3 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--text-0); }
.tool-job-progress {
  height: 8px; border-radius: 99px;
  background: var(--bg-3); border: 1px solid var(--border); overflow: hidden;
}
.tool-job-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .22s ease-out;
}
.tool-job-meta { color: var(--text-2); }
.tool-job-summary {
  font-size: 0.82rem; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
}
.tool-job-failed {
  max-height: 160px; overflow: auto;
  font-size: 0.78rem;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2);
}
.tool-job-fail-ul { margin: 0; padding-left: 18px; color: var(--text-1); }
.tool-job-fail-ul li { margin-bottom: 4px; }
.tool-job-log {
  flex: 1; min-height: 120px; max-height: 280px; overflow: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  line-height: 1.45; color: var(--text-2);
  padding: 10px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.tool-job-line { padding: 2px 0; border-bottom: 1px solid var(--border); }
.tool-job-line:last-child { border-bottom: none; }
.tool-job-line.tool-job-err { color: var(--red); }
.tool-job-line.tool-job-warn { color: var(--yellow, #f59e0b); }
.tool-job-log-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.tools-action-table {
  width: 100%; border-collapse: collapse;
}
.tools-action-table th,
.tools-action-table td {
  padding: 4px 8px; text-align: left; border-bottom: 1px solid var(--border);
}
.tools-action-table th { color: var(--text-3); font-weight: 600; }
.tools-pm2-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.tools-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tools-chip {
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2);
  border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.tools-chip:hover { border-color: var(--accent); color: var(--text-0); }
.tools-chip.active {
  border-color: var(--accent); background: rgba(99, 102, 241, 0.12); color: var(--text-0);
}
.tools-chip .chip-n {
  margin-left: 4px; opacity: 0.75; font-variant-numeric: tabular-nums;
}
.tools-pm2-search {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tools-pm2-search input,
.tools-pm2-search select {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-0); padding: 6px 10px; font-size: 0.82rem; min-width: 160px;
}
.tools-pm2-search input:focus,
.tools-pm2-search select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.tools-pm2-search input { min-width: 200px; }

/* === SUPPORT DM === */
.support-row.support-unread { background: rgba(245, 158, 11, 0.06); }
.support-chat-wrap { overflow: hidden; }
.support-chat {
  max-height: 420px; min-height: 200px; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2);
}
.support-chat-empty { text-align: center; padding: 24px; color: var(--text-3); }
.support-msg {
  max-width: 85%; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; line-height: 1.45;
}
.support-msg-staff {
  align-self: flex-end;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.25);
}
.support-msg-client {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.support-msg-meta {
  font-size: 0.7rem; color: var(--text-3); margin-bottom: 4px;
}
.support-msg-body { color: var(--text-1); word-break: break-word; }
a.tab { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar {
    display: flex;
    transform: translateX(-100%);
    transition: transform .2s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }
  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(10, 12, 20, 0.58);
    backdrop-filter: blur(1px);
    z-index: 90;
    display: none;
  }
  .mobile-sidebar-open .mobile-sidebar-overlay {
    display: block;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main { margin-left: 0; }
  .page { padding: 14px; }
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar h1 {
    font-size: 0.95rem;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-actions {
    gap: 6px;
  }
  .topbar-actions-sep,
  .indicator span:not(.ddot) {
    display: none;
  }
  .topbar-profile {
    max-width: 38px;
    padding: 0;
    justify-content: center;
  }
  .topbar-profile-text {
    display: none;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .ig { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .cl-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .dh .d-actions {
    margin-left: 0;
    width: 100%;
  }
  .dh .d-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .btn-group {
    width: 100%;
  }
  .btn-group .btn {
    flex: 1;
    justify-content: center;
  }
  .tool-job-panel {
    padding: 14px;
  }
}
