/*
  Vigilia Command Center skin
  Global visual layer based on the client's standalone mockup.
  It intentionally keeps the existing PHP/React structure and backend state.
*/

html.vigilia-command-ui {
  background: #060910;
}

html.vigilia-command-ui,
html.vigilia-command-ui body {
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

html.vigilia-command-ui * {
  letter-spacing: 0 !important;
}

html.vigilia-command-ui body {
  --bg: #060910;
  --bg-2: #080d16;
  --panel: rgba(12, 18, 30, 0.96);
  --panel-2: rgba(16, 24, 39, 0.98);
  --text: #eef7ff;
  --muted: rgba(185, 203, 226, 0.70);
  --subtle: rgba(122, 146, 176, 0.55);
  --line: rgba(84, 118, 160, 0.24);
  --line-strong: rgba(102, 161, 206, 0.42);
  --hover: rgba(53, 230, 255, 0.08);
  --accent: #35e6ff;
  --accent-s: rgba(53, 230, 255, 0.14);
  --accent-d: #14b9d9;
  --cyan: #35e6ff;
  --cyan-s: rgba(53, 230, 255, 0.14);
  --amber: #ffad32;
  --amber-s: rgba(255, 173, 50, 0.16);
  --green: #39d98a;
  --green-s: rgba(57, 217, 138, 0.15);
  --red: #ff5d6c;
  --red-s: rgba(255, 93, 108, 0.16);
  --blue: #5ca7ff;
  --blue-s: rgba(92, 167, 255, 0.15);
  --violet: #b68cff;
  --violet-s: rgba(182, 140, 255, 0.15);
  --sb-width: 292px;
  --sb-bg: rgba(5, 11, 22, 0.98);
  --sb-text: rgba(232, 242, 255, 0.90);
  --sb-muted: rgba(148, 173, 204, 0.62);
  --sb-hover: rgba(53, 230, 255, 0.08);
  --sb-active-bg: rgba(255, 122, 24, 0.16);
  --btn-bg: rgba(14, 25, 42, 0.95);
  --btn-bg-hover: rgba(22, 38, 61, 0.98);
  --btn-primary-bg: #1b6fd1;
  --btn-primary-bg-hover: #2586f6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.50);
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --topbar-h: 68px;
  background: #060910;
  letter-spacing: 0;
}

html.vigilia-command-ui body.theme-light {
  --bg: #edf3f9;
  --bg-2: #dfe8f2;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-2: rgba(245, 248, 252, 0.98);
  --text: #0d1522;
  --muted: rgba(43, 59, 82, 0.70);
  --subtle: rgba(83, 104, 132, 0.55);
  --line: rgba(15, 32, 55, 0.12);
  --line-strong: rgba(20, 92, 130, 0.28);
  --hover: rgba(11, 118, 153, 0.07);
  --accent: #007c9f;
  --accent-s: rgba(0, 124, 159, 0.12);
  --accent-d: #00617d;
  --btn-bg: #ffffff;
  --btn-bg-hover: #eff5fb;
  --btn-primary-bg: #2f6fb9;
  --btn-primary-bg-hover: #2a83df;
  --shadow-sm: 0 2px 8px rgba(18, 35, 58, 0.06);
  --shadow: 0 14px 36px rgba(18, 35, 58, 0.11);
  --shadow-lg: 0 24px 64px rgba(18, 35, 58, 0.18);
  background: #edf3f9;
}

html.vigilia-command-ui body::before,
html.vigilia-command-ui body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

html.vigilia-command-ui body::before {
  z-index: 0;
  background:
    linear-gradient(rgba(53, 230, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(53, 230, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 122, 24, 0.07), transparent 24%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

html.vigilia-command-ui body::after {
  z-index: 2;
  opacity: 0.18;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

html.vigilia-command-ui body.theme-light::before {
  background:
    linear-gradient(rgba(0, 124, 159, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 159, 0.055) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}

html.vigilia-command-ui body.theme-light::after {
  display: none;
}

html.vigilia-command-ui body:not([data-page]) .app {
  position: relative;
  z-index: 3;
}

html.vigilia-command-ui body:not([data-page]) .left {
  background-color: #060910;
  background-image:
    linear-gradient(rgba(53, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}

html.vigilia-command-ui body:not([data-page]) .left-veil {
  background: linear-gradient(
    180deg,
    rgba(6, 9, 16, 0.92) 0%,
    rgba(6, 9, 16, 0.54) 44%,
    rgba(6, 9, 16, 0.82) 100%
  );
}

html.vigilia-command-ui body:not([data-page]) .right {
  background:
    linear-gradient(180deg, rgba(6, 9, 16, 0.80), rgba(6, 9, 16, 0.98)),
    #060910;
}

html.vigilia-command-ui body:not([data-page]) .card,
html.vigilia-command-ui body:not([data-page]) .choice-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(12, 18, 30, 0.96);
  border: 1px solid rgba(53, 230, 255, 0.20);
  border-radius: 8px;
  color: #eef7ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html.vigilia-command-ui body:not([data-page]) .tabs,
html.vigilia-command-ui body:not([data-page]) .foot {
  border-color: rgba(53, 230, 255, 0.16);
}

html.vigilia-command-ui body:not([data-page]) .tab,
html.vigilia-command-ui body:not([data-page]) .body .sub,
html.vigilia-command-ui body:not([data-page]) .field label,
html.vigilia-command-ui body:not([data-page]) .field .hint .muted,
html.vigilia-command-ui body:not([data-page]) .choice-desc,
html.vigilia-command-ui body:not([data-page]) .foot,
html.vigilia-command-ui body:not([data-page]) .copy {
  color: rgba(185, 203, 226, 0.70);
}

html.vigilia-command-ui body:not([data-page]) .tab.active,
html.vigilia-command-ui body:not([data-page]) .body h2,
html.vigilia-command-ui body:not([data-page]) .choice-title {
  color: #eef7ff;
}

html.vigilia-command-ui body:not([data-page]) .tab.active::after {
  background: #35e6ff;
  box-shadow: 0 0 18px rgba(53, 230, 255, 0.50);
}

html.vigilia-command-ui body:not([data-page]) .body .eyebrow,
html.vigilia-command-ui body:not([data-page]) .field .hint a,
html.vigilia-command-ui body:not([data-page]) .back-link:hover {
  color: #ff9a43;
}

html.vigilia-command-ui body:not([data-page]) .eyebrow .bar {
  background: #ff9a43;
}

html.vigilia-command-ui body:not([data-page]) .input input,
html.vigilia-command-ui body:not([data-page]) .input select {
  border-radius: 5px;
  border-color: rgba(102, 161, 206, 0.24);
  background: rgba(5, 10, 18, 0.80);
  color: #eef7ff;
}

html.vigilia-command-ui body:not([data-page]) .input input::placeholder {
  color: rgba(185, 203, 226, 0.42);
}

html.vigilia-command-ui body:not([data-page]) .input svg {
  color: rgba(53, 230, 255, 0.68);
}

html.vigilia-command-ui body:not([data-page]) .btn-primary {
  border-radius: 5px;
  background: linear-gradient(135deg, #1b6fd1, #2586f6);
  box-shadow: 0 12px 26px rgba(37, 134, 246, 0.20);
}

html.vigilia-command-ui body:not([data-page]) .btn-ghost {
  border-radius: 5px;
  background: rgba(9, 16, 27, 0.92);
  border-color: rgba(53, 230, 255, 0.20);
  color: #eef7ff;
}

html.vigilia-command-ui .app-shell,
html.vigilia-command-ui .content {
  position: relative;
  z-index: 3;
}

html.vigilia-command-ui .app-shell {
  isolation: isolate;
}

html.vigilia-command-ui .content {
  background:
    linear-gradient(180deg, rgba(6, 9, 16, 0.82), rgba(6, 9, 16, 0.96)),
    var(--bg);
}

html.vigilia-command-ui body.theme-light .content {
  background:
    linear-gradient(180deg, rgba(237, 243, 249, 0.78), rgba(237, 243, 249, 0.96)),
    var(--bg);
}

html.vigilia-command-ui .sidebar {
  border-right: 1px solid rgba(53, 230, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 13, 25, 0.98), rgba(5, 10, 20, 0.99)),
    var(--sb-bg);
  box-shadow: 14px 0 34px rgba(0, 0, 0, 0.34);
}

html.vigilia-command-ui .sidebar::before,
html.vigilia-command-ui .sidebar::after {
  width: 20px;
  height: 20px;
  border-color: #35e6ff;
  opacity: 0.95;
}

html.vigilia-command-ui .brand {
  padding: 18px 22px 16px;
}

html.vigilia-command-ui .brand-logo {
  max-height: 82px;
  filter: drop-shadow(0 0 18px rgba(53, 230, 255, 0.22));
}

html.vigilia-command-ui .brand-divider {
  margin: 0 22px 16px;
  background: linear-gradient(90deg, transparent, rgba(53, 230, 255, 0.36), transparent);
}

html.vigilia-command-ui .nav-section-toggle,
html.vigilia-command-ui .nav-subgroup-label,
html.vigilia-command-ui .kpi-card-label,
html.vigilia-command-ui .page-active-filters-label,
html.vigilia-command-ui .field label,
html.vigilia-command-ui .drawer-title,
html.vigilia-command-ui .modal-title,
html.vigilia-command-ui .section-title {
  font-family: "Rajdhani", "Inter", sans-serif;
  letter-spacing: 0;
}

html.vigilia-command-ui .nav-section-toggle {
  min-height: 38px;
  color: rgba(210, 226, 244, 0.72);
  font-size: 13px;
  border: 1px solid transparent;
}

html.vigilia-command-ui .nav-section-toggle:hover {
  border-color: rgba(53, 230, 255, 0.15);
  background: rgba(53, 230, 255, 0.06);
}

html.vigilia-command-ui .nav-group.open .nav-section-toggle {
  color: #ff7a18;
  text-shadow: 0 0 12px rgba(255, 122, 24, 0.24);
}

html.vigilia-command-ui .nav-btn {
  min-height: 37px;
  border: 1px solid transparent;
  color: rgba(232, 242, 255, 0.82);
  font-weight: 650;
}

html.vigilia-command-ui .nav-btn:hover {
  border-color: rgba(53, 230, 255, 0.16);
  background: rgba(53, 230, 255, 0.07);
}

html.vigilia-command-ui .nav-btn.active {
  background:
    linear-gradient(90deg, rgba(255, 122, 24, 0.20), rgba(255, 122, 24, 0.08));
  border-color: rgba(255, 122, 24, 0.18);
  color: #ffffff;
}

html.vigilia-command-ui .nav-btn.active::before {
  width: 3px;
  top: 6px;
  bottom: 6px;
  background: #ff7a18;
  box-shadow: 0 0 16px rgba(255, 122, 24, 0.70);
}

html.vigilia-command-ui .nav-icon {
  border-radius: 6px;
  background: rgba(53, 230, 255, 0.08);
  color: rgba(210, 232, 255, 0.86);
}

html.vigilia-command-ui .nav-btn.active .nav-icon {
  background: rgba(255, 122, 24, 0.18);
  color: #ffb06a;
}

html.vigilia-command-ui .sidebar-settings {
  border-top: 1px solid rgba(53, 230, 255, 0.16);
  background: rgba(0, 0, 0, 0.12);
}

html.vigilia-command-ui .sb-status {
  color: rgba(197, 216, 239, 0.72);
}

html.vigilia-command-ui .sb-status-dot {
  background: #39d98a;
  box-shadow: 0 0 16px rgba(57, 217, 138, 0.55);
}

html.vigilia-command-ui .sb-status-version {
  color: #ff7a18;
}

html.vigilia-command-ui .topbar {
  min-height: var(--topbar-h);
  height: auto;
  background:
    linear-gradient(90deg, rgba(9, 15, 26, 0.98), rgba(12, 18, 30, 0.94)),
    var(--panel);
  border-bottom: 1px solid rgba(53, 230, 255, 0.20);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

html.vigilia-command-ui body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 124, 159, 0.14);
}

html.vigilia-command-ui .topbar-left {
  gap: 14px;
}

html.vigilia-command-ui .topbar-command-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(53, 230, 255, 0.20);
  background: rgba(53, 230, 255, 0.07);
  border-radius: 6px;
  color: var(--text);
  font-family: "Rajdhani", "Inter", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

html.vigilia-command-ui .topbar-command-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #35e6ff;
  color: #05111c;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

html.vigilia-command-ui .topbar-command-copy {
  color: rgba(232, 242, 255, 0.82);
}

html.vigilia-command-ui body.theme-light .topbar-command-copy {
  color: rgba(13, 21, 34, 0.76);
}

html.vigilia-command-ui .topbar-command-brand strong {
  color: #ff7a18;
  font-family: "JetBrains Mono", monospace;
}

html.vigilia-command-ui .topbar h1 {
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 21px;
  line-height: 1;
  border-left-color: #ff7a18;
  padding-left: 14px;
  text-shadow: 0 0 18px rgba(53, 230, 255, 0.10);
  letter-spacing: 0;
}

html.vigilia-command-ui .topbar-sidebar-toggle,
html.vigilia-command-ui .topbar-burger,
html.vigilia-command-ui .topbar-home,
html.vigilia-command-ui .topbar-service-slot > *,
html.vigilia-command-ui .topbar-notification-btn,
html.vigilia-command-ui .topbar-user-btn,
html.vigilia-command-ui .tb-icon-btn,
html.vigilia-command-ui .page-cog-btn,
html.vigilia-command-ui .fab-mini-trigger,
html.vigilia-command-ui .chat-topbar-trigger {
  border-radius: 6px;
  background: rgba(9, 16, 27, 0.92);
  border: 1px solid rgba(53, 230, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.vigilia-command-ui body.theme-light .topbar-sidebar-toggle,
html.vigilia-command-ui body.theme-light .topbar-burger,
html.vigilia-command-ui body.theme-light .topbar-home,
html.vigilia-command-ui body.theme-light .topbar-service-slot > *,
html.vigilia-command-ui body.theme-light .topbar-notification-btn,
html.vigilia-command-ui body.theme-light .topbar-user-btn,
html.vigilia-command-ui body.theme-light .tb-icon-btn,
html.vigilia-command-ui body.theme-light .page-cog-btn,
html.vigilia-command-ui body.theme-light .fab-mini-trigger,
html.vigilia-command-ui body.theme-light .chat-topbar-trigger {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 32, 55, 0.13);
}

html.vigilia-command-ui .topbar-sidebar-toggle:hover,
html.vigilia-command-ui .topbar-burger:hover,
html.vigilia-command-ui .topbar-home:hover,
html.vigilia-command-ui .topbar-service-slot > *:hover,
html.vigilia-command-ui .topbar-notification-btn:hover,
html.vigilia-command-ui .topbar-user-btn:hover,
html.vigilia-command-ui .tb-icon-btn:hover,
html.vigilia-command-ui .page-cog-btn:hover,
html.vigilia-command-ui .fab-mini-trigger:hover,
html.vigilia-command-ui .chat-topbar-trigger:hover {
  border-color: rgba(53, 230, 255, 0.48);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(53, 230, 255, 0.08);
}

html.vigilia-command-ui .topbar-user-btn .av,
html.vigilia-command-ui .av {
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7a18, #ffad32);
  color: #120905;
}

html.vigilia-command-ui .page-grid {
  padding: 22px 26px 70px;
  gap: 18px;
}

html.vigilia-command-ui .kpi-card,
html.vigilia-command-ui .page-actions,
html.vigilia-command-ui .page-empty,
html.vigilia-command-ui .page-placeholder-card,
html.vigilia-command-ui .section,
html.vigilia-command-ui .modal,
html.vigilia-command-ui .drawer,
html.vigilia-command-ui .table-wrap,
html.vigilia-command-ui .list-table,
html.vigilia-command-ui .fac-card,
html.vigilia-command-ui .dv-card,
html.vigilia-command-ui .ms-card,
html.vigilia-command-ui .client-card,
html.vigilia-command-ui .agent-card {
  border-radius: 6px;
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow-sm);
}

html.vigilia-command-ui body.theme-light .kpi-card,
html.vigilia-command-ui body.theme-light .page-actions,
html.vigilia-command-ui body.theme-light .page-empty,
html.vigilia-command-ui body.theme-light .page-placeholder-card,
html.vigilia-command-ui body.theme-light .section,
html.vigilia-command-ui body.theme-light .modal,
html.vigilia-command-ui body.theme-light .drawer,
html.vigilia-command-ui body.theme-light .table-wrap,
html.vigilia-command-ui body.theme-light .list-table,
html.vigilia-command-ui body.theme-light .fac-card,
html.vigilia-command-ui body.theme-light .dv-card,
html.vigilia-command-ui body.theme-light .ms-card,
html.vigilia-command-ui body.theme-light .client-card,
html.vigilia-command-ui body.theme-light .agent-card {
  background: var(--panel);
}

html.vigilia-command-ui .kpi-card {
  min-height: 116px;
  position: relative;
  overflow: hidden;
}

html.vigilia-command-ui .kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
}

html.vigilia-command-ui .kpi-card:hover {
  border-color: rgba(53, 230, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(53, 230, 255, 0.10), var(--shadow);
}

html.vigilia-command-ui .kpi-card-clickable {
  color: inherit;
  cursor: pointer;
}

html.vigilia-command-ui .kpi-card.active {
  border-color: rgba(53, 230, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(53, 230, 255, 0.18), 0 0 22px rgba(53, 230, 255, 0.14), var(--shadow);
}

html.vigilia-command-ui .kpi-card-icon,
html.vigilia-command-ui .page-empty-icon,
html.vigilia-command-ui .page-placeholder-icon {
  border-radius: 6px;
  background: rgba(53, 230, 255, 0.12);
  color: #35e6ff;
}

html.vigilia-command-ui .kpi-card-value {
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

html.vigilia-command-ui .page-actions {
  min-height: 58px;
  backdrop-filter: blur(10px);
}

html.vigilia-command-ui .page-actions-search input,
html.vigilia-command-ui input,
html.vigilia-command-ui select,
html.vigilia-command-ui textarea {
  border-color: rgba(102, 161, 206, 0.22);
  background: rgba(5, 10, 18, 0.78);
  color: var(--text);
  border-radius: 4px;
}

html.vigilia-command-ui body.theme-light .page-actions-search input,
html.vigilia-command-ui body.theme-light input,
html.vigilia-command-ui body.theme-light select,
html.vigilia-command-ui body.theme-light textarea {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 32, 55, 0.13);
}

html.vigilia-command-ui .page-actions-search input:focus,
html.vigilia-command-ui input:focus,
html.vigilia-command-ui select:focus,
html.vigilia-command-ui textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-s);
}

html.vigilia-command-ui .btn,
html.vigilia-command-ui .page-actions-view-btn {
  border-radius: 4px;
  font-weight: 750;
}

html.vigilia-command-ui .btn-primary,
html.vigilia-command-ui .page-actions-view-btn.active {
  background: linear-gradient(135deg, #1b6fd1, #2586f6);
  border-color: rgba(80, 174, 255, 0.54);
  color: #ffffff;
}

html.vigilia-command-ui .btn-primary:hover,
html.vigilia-command-ui .page-actions-view-btn.active:hover {
  background: linear-gradient(135deg, #247ce1, #35a2ff);
}

html.vigilia-command-ui .btn.has-badge,
html.vigilia-command-ui .b-accent,
html.vigilia-command-ui .page-actions-badge {
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.14);
  color: #ff9a43;
}

html.vigilia-command-ui .page-actions-views {
  border-color: rgba(53, 230, 255, 0.16);
  background: rgba(4, 9, 17, 0.86);
}

html.vigilia-command-ui body.theme-light .page-actions-views {
  background: rgba(238, 244, 250, 0.82);
}

html.vigilia-command-ui table,
html.vigilia-command-ui .list-table table {
  border-collapse: separate;
  border-spacing: 0;
}

html.vigilia-command-ui th,
html.vigilia-command-ui .list-table th {
  font-family: "Rajdhani", "Inter", sans-serif;
  letter-spacing: 0;
  background: rgba(6, 12, 21, 0.74);
  color: rgba(198, 218, 242, 0.74);
}

html.vigilia-command-ui body.theme-light th,
html.vigilia-command-ui body.theme-light .list-table th {
  background: rgba(235, 241, 248, 0.94);
  color: rgba(41, 59, 83, 0.72);
}

html.vigilia-command-ui td,
html.vigilia-command-ui th,
html.vigilia-command-ui .list-table td,
html.vigilia-command-ui .list-table th {
  border-bottom-color: rgba(102, 161, 206, 0.14);
}

html.vigilia-command-ui tbody tr:hover,
html.vigilia-command-ui .list-table tbody tr:hover {
  background: rgba(53, 230, 255, 0.045);
}

html.vigilia-command-ui .drawer {
  background:
    linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(9, 14, 24, 0.99)),
    var(--panel);
  border-left-color: rgba(53, 230, 255, 0.18);
}

html.vigilia-command-ui body.theme-light .drawer {
  background: rgba(255, 255, 255, 0.98);
}

html.vigilia-command-ui .drawer-head,
html.vigilia-command-ui .modal-head,
html.vigilia-command-ui .drawer-foot,
html.vigilia-command-ui .modal-foot,
html.vigilia-command-ui .section-head {
  border-color: var(--line);
}

html.vigilia-command-ui .drawer-title,
html.vigilia-command-ui .modal-title,
html.vigilia-command-ui .section-title {
  font-size: 18px;
  color: var(--text);
}

html.vigilia-command-ui .modal-backdrop,
html.vigilia-command-ui .drawer-backdrop {
  backdrop-filter: blur(8px);
}

html.vigilia-command-ui .badge {
  border-radius: 4px;
}

html.vigilia-command-ui .b-green {
  background: rgba(57, 217, 138, 0.14);
  color: #39d98a;
}

html.vigilia-command-ui .b-amber {
  background: rgba(255, 173, 50, 0.16);
  color: #ffad32;
}

html.vigilia-command-ui .b-red {
  background: rgba(255, 93, 108, 0.16);
  color: #ff6b78;
}

html.vigilia-command-ui .b-blue,
html.vigilia-command-ui .b-cyan {
  background: rgba(53, 230, 255, 0.14);
  color: #35e6ff;
}

html.vigilia-command-ui .fab-panel,
html.vigilia-command-ui .chat-shell,
html.vigilia-command-ui .vc-chat-panel,
html.vigilia-command-ui .tb-menu,
html.vigilia-command-ui .topbar-menu {
  border-radius: 8px;
  border-color: rgba(53, 230, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(8, 13, 23, 0.99)),
    var(--panel);
  box-shadow: var(--shadow-lg);
}

html.vigilia-command-ui body.theme-light .fab-panel,
html.vigilia-command-ui body.theme-light .chat-shell,
html.vigilia-command-ui body.theme-light .vc-chat-panel,
html.vigilia-command-ui body.theme-light .tb-menu,
html.vigilia-command-ui body.theme-light .topbar-menu {
  background: rgba(255, 255, 255, 0.98);
}

/* Les pages cockpit peuvent conserver leurs variables sombres en mode clair. */
html.vigilia-command-ui body.theme-light .tb-menu,
html.vigilia-command-ui body.theme-light .topbar-menu {
  --panel: #ffffff;
  --bg: #edf3f9;
  --text: #0d1522;
  --muted: rgba(43, 59, 82, 0.76);
  --subtle: rgba(62, 82, 108, 0.64);
  --line: rgba(15, 32, 55, 0.14);
  --hover: rgba(0, 124, 159, 0.08);
  --red-s: rgba(201, 51, 67, 0.10);
  color: var(--text);
}

html.vigilia-command-ui .chat-topbar-trigger,
html.vigilia-command-ui .vc-chat-fab,
html.vigilia-command-ui .vc-chat-ai-button {
  border-radius: 6px !important;
  background: linear-gradient(135deg, #101827, #162442) !important;
  border: 1px solid rgba(53, 230, 255, 0.36) !important;
  box-shadow: 0 0 0 1px rgba(53, 230, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}

html.vigilia-command-ui .topbar-live-label {
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  html.vigilia-command-ui .topbar-command-copy {
    display: none;
  }
}

@media (max-width: 900px) {
  html.vigilia-command-ui body {
    --sb-width: 268px;
  }

  html.vigilia-command-ui .topbar-command-brand {
    display: none;
  }

  html.vigilia-command-ui .page-grid {
    padding: 16px 12px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.vigilia-command-ui *,
  html.vigilia-command-ui *::before,
  html.vigilia-command-ui *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Command Center exact shell
   Structure reprise de la maquette client vigilia_dashboard.html :
   rail d'icones fixe, drawer detaille, topbar cockpit.
   ========================================================================== */

html.vigilia-command-ui body {
  --rail-w: 92px;
  --drawer-w: 280px;
  --topbar-h: 86px;
  --bg-void: #060910;
  --bg-panel: #0c121e;
  --bg-panel-2: #101827;
  --line: #1c2740;
  --line-2: rgba(53, 230, 255, 0.25);
  --text-hi: #eef4fb;
  --text-mid: #8b9bb4;
  --text-low: #4d5b76;
  --cyan: #35e6ff;
  --cyan-dim: #1a7d94;
  --amber: #ffb02e;
  --red: #ff4d5e;
  --green: #23e0a0;
  --sb-width: var(--drawer-w);
  background: var(--bg-void);
}

html.vigilia-command-ui body::before {
  background:
    linear-gradient(rgba(53, 230, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, 0.032) 1px, transparent 1px),
    var(--bg-void);
  background-size: 40px 40px, 40px 40px, auto;
}

html.vigilia-command-ui .app-shell {
  padding-left: calc(var(--rail-w) + var(--drawer-w)) !important;
  min-height: 100vh;
  transition: padding-left 0.25s cubic-bezier(.4, 0, .2, 1);
}

html.sidebar-collapsed-preload .app-shell,
html.vigilia-command-ui body.sidebar-collapsed .app-shell {
  padding-left: var(--rail-w) !important;
}

html.vigilia-command-ui .content {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 9, 16, 0.76), rgba(6, 9, 16, 0.96)),
    var(--bg-void) !important;
}

html.vigilia-command-ui body.theme-light .content {
  background:
    linear-gradient(180deg, rgba(237, 243, 249, 0.88), rgba(237, 243, 249, 0.97)),
    #edf3f9 !important;
}

html.vigilia-command-ui .icon-rail,
html.vigilia-command-ui .nav-drawer2 {
  --bg-panel: var(--menu-bg-panel, #0d1524);
  --bg-panel-2: var(--menu-bg-panel-2, #080c16);
  --line: var(--menu-line, #1c2740);
  --cyan: var(--accent-vivid, #35e6ff);
  --text-hi: #eef4fb;
  --text-mid: #8b9bb4;
  --text-low: #4d5b76;
  color: var(--text-hi);
}

html.vigilia-command-ui .icon-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 8px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border-right: 1px solid var(--line);
}

html.vigilia-command-ui .icon-rail::-webkit-scrollbar,
html.vigilia-command-ui .nav-drawer2::-webkit-scrollbar {
  width: 6px;
}

html.vigilia-command-ui .icon-rail::-webkit-scrollbar-thumb,
html.vigilia-command-ui .nav-drawer2::-webkit-scrollbar-thumb {
  background: rgba(53, 230, 255, 0.18);
  border-radius: 999px;
}

html.vigilia-command-ui .rail-btn {
  width: 100%;
  min-height: 54px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-mid);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

html.vigilia-command-ui .rail-btn .rb-ic,
html.vigilia-command-ui .rail-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.vigilia-command-ui .rail-btn .rb-ic svg {
  width: 17px;
  height: 17px;
}

html.vigilia-command-ui .rail-btn .rb-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: inherit;
}

html.vigilia-command-ui .rail-btn:hover {
  background: rgba(53, 230, 255, 0.08);
  border-color: rgba(53, 230, 255, 0.18);
  color: var(--cyan);
}

html.vigilia-command-ui .rail-btn.active {
  background: rgba(53, 230, 255, 0.12);
  border-color: rgba(53, 230, 255, 0.35);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(53, 230, 255, 0.12), 0 0 14px rgba(53, 230, 255, 0.16);
}

html.vigilia-command-ui .rail-spacer {
  flex: 1 1 auto;
  min-height: 12px;
}

html.vigilia-command-ui .rail-expand {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(53, 230, 255, 0.30);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transition: transform 0.25s, background 0.18s, border-color 0.18s;
}

html.vigilia-command-ui .rail-expand-icon {
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.24s cubic-bezier(.4, 0, .2, 1);
}

html.vigilia-command-ui .rail-expand:hover,
html.vigilia-command-ui body.sidebar-collapsed .rail-expand {
  background: rgba(53, 230, 255, 0.10);
  border-color: rgba(53, 230, 255, 0.55);
}

html.vigilia-command-ui body.sidebar-collapsed .rail-expand-icon {
  transform: rotate(180deg);
}

html.vigilia-command-ui .nav-drawer2.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: var(--rail-w) !important;
  bottom: 0 !important;
  width: var(--drawer-w) !important;
  height: 100vh !important;
  z-index: 140 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 18px !important;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2)) !important;
  border-right: 1px solid rgba(53, 230, 255, 0.25) !important;
  box-shadow: 16px 0 50px rgba(0, 0, 0, 0.45);
  transform: translateX(0) !important;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1) !important;
  pointer-events: auto !important;
}

html.sidebar-collapsed-preload .nav-drawer2.sidebar,
html.vigilia-command-ui body.sidebar-collapsed .nav-drawer2.sidebar {
  transform: translateX(calc(-1 * var(--drawer-w))) !important;
}

html.vigilia-command-ui .nav-drawer2 > .brand,
html.vigilia-command-ui .nav-drawer2 > .brand-divider {
  display: none !important;
}

html.vigilia-command-ui .nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

html.vigilia-command-ui .nav-search .ic {
  color: var(--text-low);
  font-size: 13px;
}

html.vigilia-command-ui .nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-hi);
  font-size: 12.5px;
  box-shadow: none;
}

html.vigilia-command-ui .nav-search input::placeholder {
  color: var(--text-low);
}

html.vigilia-command-ui .accordion-toggle-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin: 0 0 10px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(53, 230, 255, 0.04);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  cursor: pointer;
}

html.vigilia-command-ui .accordion-toggle-all:hover {
  border-color: var(--cyan);
  background: rgba(53, 230, 255, 0.10);
}

html.vigilia-command-ui .nav-drawer2 .sidebar-nav {
  padding: 0 !important;
  gap: 0;
}

html.vigilia-command-ui .nav-drawer2 .nav-group {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

html.vigilia-command-ui .nav-drawer2 .nav-section-toggle {
  min-height: 39px;
  padding: 9px 6px;
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  background: transparent;
  border: 0;
}

html.vigilia-command-ui .nav-drawer2 .nav-group.open .nav-section-chev {
  transform: rotate(90deg);
  color: var(--cyan);
}

html.vigilia-command-ui .nav-drawer2 .nav-group-items {
  padding-left: 14px;
}

html.vigilia-command-ui .nav-drawer2 .nav-btn {
  min-height: 34px;
  margin: 1px 0;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 650;
}

html.vigilia-command-ui .nav-drawer2 .nav-btn:hover {
  background: rgba(53, 230, 255, 0.06);
  color: var(--text-hi);
}

html.vigilia-command-ui .nav-drawer2 .nav-btn.active {
  color: var(--cyan);
  background: rgba(53, 230, 255, 0.08);
  border-color: transparent;
}

html.vigilia-command-ui .nav-drawer2 .nav-btn.active::before {
  display: none;
}

html.vigilia-command-ui .nav-drawer2 .nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(53, 230, 255, 0.08);
  color: var(--text-low);
}

html.vigilia-command-ui .nav-drawer2 .nav-btn.active .nav-icon {
  color: var(--cyan);
  background: rgba(53, 230, 255, 0.12);
}

html.vigilia-command-ui .nav-drawer2 .sidebar-settings {
  margin-top: 14px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(53, 230, 255, 0.04);
}

html.vigilia-command-ui .nav-drawer2 .sb-status {
  margin: 10px 0 0;
  padding: 10px 2px 0;
  border-top: 1px solid var(--line);
}

html.vigilia-command-ui .topbar {
  min-height: var(--topbar-h) !important;
  height: auto !important;
  padding: 15px 22px !important;
  gap: 18px;
  align-items: center;
  background: linear-gradient(90deg, rgba(9, 15, 26, 0.98), rgba(12, 18, 30, 0.94)) !important;
  border-bottom: 1px solid rgba(53, 230, 255, 0.20) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html.vigilia-command-ui body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.94) !important;
}

html.vigilia-command-ui .topbar-left {
  gap: 16px !important;
}

html.vigilia-command-ui .topbar-command-brand.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 245px;
  min-height: 52px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.vigilia-command-ui .topbar-command-brand .brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1220;
  box-shadow: 0 0 26px rgba(53, 230, 255, 0.35), inset 0 0 0 1px rgba(53, 230, 255, 0.25);
  overflow: hidden;
}

html.vigilia-command-ui .topbar-command-brand .brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(53, 230, 255, 0.24));
}

html.vigilia-command-ui .topbar-command-brand .brand-text {
  min-width: 0;
  line-height: 1.05;
}

html.vigilia-command-ui .topbar-command-brand .brand-text h1,
html.vigilia-command-ui .topbar-command-brand .brand-text .ai-tag {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

html.vigilia-command-ui .topbar-command-brand .brand-text h1 {
  color: var(--text-hi);
  text-shadow: 0 0 14px rgba(53, 230, 255, 0.30);
}

html.vigilia-command-ui .topbar-command-brand .brand-text .ai-tag {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(53, 230, 255, 0.70);
}

html.vigilia-command-ui .topbar-command-brand .brand-text div span {
  display: block;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--cyan);
  text-transform: uppercase;
}

html.vigilia-command-ui .topbar-titles h1 {
  font-size: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

html.vigilia-command-ui .topbar-status-cluster {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

html.vigilia-command-ui .status-item {
  text-align: right;
}

html.vigilia-command-ui .status-item .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  line-height: 1;
  color: var(--text-low);
  text-transform: uppercase;
}

html.vigilia-command-ui .status-item .val {
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-hi);
  white-space: nowrap;
}

html.vigilia-command-ui body.theme-light .status-item .val,
html.vigilia-command-ui body.theme-light .topbar-command-brand .brand-text h1 {
  color: #0d1522;
}

html.vigilia-command-ui .topbar-right {
  gap: 8px !important;
  margin-right: 0 !important;
}

@media (max-width: 1320px) {
  html.vigilia-command-ui .topbar-status-cluster .status-item:first-child {
    display: none;
  }

  html.vigilia-command-ui .topbar-command-brand.brand {
    min-width: 196px;
  }
}

@media (max-width: 1120px) {
  html.vigilia-command-ui .topbar-command-brand .brand-text div,
  html.vigilia-command-ui .topbar-status-cluster {
    display: none;
  }

  html.vigilia-command-ui .topbar-command-brand.brand {
    min-width: 128px;
  }
}

@media (max-width: 900px) {
  html.vigilia-command-ui body {
    --rail-w: 64px;
    --drawer-w: 82vw;
  }

  html.vigilia-command-ui .app-shell,
  html.sidebar-collapsed-preload .app-shell,
  html.vigilia-command-ui body.sidebar-collapsed .app-shell {
    padding-left: 0 !important;
  }

  html.vigilia-command-ui .icon-rail {
    transform: translateX(-100%);
    transition: transform 0.25s;
    z-index: 3200;
    pointer-events: none;
  }

  html.vigilia-command-ui body.nav-open .icon-rail {
    transform: translateX(0);
    pointer-events: auto;
  }

  html.vigilia-command-ui .nav-drawer2.sidebar {
    left: var(--rail-w) !important;
    transform: translateX(calc(-1 * (var(--drawer-w) + var(--rail-w)))) !important;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.56);
    z-index: 3190 !important;
    pointer-events: none !important;
  }

  html.vigilia-command-ui body.nav-open .nav-drawer2.sidebar,
  html.vigilia-command-ui .nav-drawer2.sidebar.open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  html.vigilia-command-ui body:not(.nav-open) .nav-drawer2.sidebar {
    transform: translateX(calc(-1 * (var(--drawer-w) + var(--rail-w)))) !important;
  }

  html.vigilia-command-ui body.nav-open .nav-drawer2.sidebar {
    transform: translateX(0) !important;
  }

  html.vigilia-command-ui .topbar-burger {
    display: inline-flex !important;
    position: relative;
    z-index: 3210;
    pointer-events: auto;
  }

  html.vigilia-command-ui .topbar {
    min-height: 64px !important;
    padding: 10px 12px !important;
  }

  html.vigilia-command-ui .topbar-command-brand.brand {
    display: none;
  }
}

/* ==========================================================================
   Final global cockpit layer
   Applies the client command-center direction to every backend-connected page.
   ========================================================================== */

html.vigilia-command-ui .content {
  overflow-x: hidden;
}

html.vigilia-command-ui .topbar {
  position: sticky;
  top: 0;
  z-index: 70;
}

html.vigilia-command-ui .topbar-left {
  min-width: 0;
  flex: 1 1 auto;
}

html.vigilia-command-ui .topbar-right {
  flex: 0 0 auto;
}

html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) > button,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) > a,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) .tb-service-btn,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) .tb-bell,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) .topbar-page-cog-btn,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) .fab-main,
html.vigilia-command-ui .topbar-right > :not(#topbar-user):not(.topbar-home):not(#topbar-connected-users):not(#topbar-notifications) .chat-topbar-trigger {
  display: none !important;
}

html.vigilia-command-ui .topbar-right {
  gap: 8px !important;
}

html.vigilia-command-ui .topbar-home {
  min-width: 40px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: rgba(232, 242, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

html.vigilia-command-ui .topbar-home span {
  line-height: 1;
}

html.vigilia-command-ui body.theme-light .topbar-home {
  color: rgba(13, 21, 34, 0.82);
}

html.vigilia-command-ui .topbar-connected-users {
  position: relative;
}

html.vigilia-command-ui .topbar-connected-users summary {
  width: 40px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(53, 230, 255, 0.24);
  border-radius: 6px;
  background: rgba(9, 16, 27, 0.92);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

html.vigilia-command-ui .topbar-connected-users summary::-webkit-details-marker {
  display: none;
}

html.vigilia-command-ui .topbar-connected-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  z-index: 120;
  padding: 12px;
  border: 1px solid rgba(53, 230, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 14, 25, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

html.vigilia-command-ui .topbar-connected-menu strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

html.vigilia-command-ui .topbar-connected-menu p,
html.vigilia-command-ui .topbar-connected-menu em,
html.vigilia-command-ui .topbar-connected-menu span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

html.vigilia-command-ui .topbar-connected-menu span {
  color: rgba(232, 242, 255, 0.9);
}

html.vigilia-command-ui body.theme-light .topbar-connected-users summary,
html.vigilia-command-ui body.theme-light .topbar-connected-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 32, 55, 0.13);
}

html.vigilia-command-ui body.theme-light .topbar-connected-menu span {
  color: rgba(13, 21, 34, 0.88);
}

html.vigilia-command-ui .topbar-command-pill {
  min-height: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(53, 230, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 15, 27, 0.88);
  color: rgba(232, 242, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.vigilia-command-ui .topbar-command-pill:hover {
  border-color: rgba(53, 230, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(53, 230, 255, 0.10);
}

html.vigilia-command-ui .topbar-command-pill.is-active {
  border-color: rgba(35, 224, 160, 0.55);
  background: rgba(35, 224, 160, 0.10);
  color: var(--green);
}

html.vigilia-command-ui body.theme-light .topbar-command-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #20314a;
  border-color: rgba(11, 118, 153, 0.20);
}

html.vigilia-command-ui body.theme-light .topbar-command-pill.is-active {
  color: #0c8a63;
  background: rgba(35, 224, 160, 0.12);
}

html.vigilia-command-ui .topbar-right {
  gap: 10px !important;
}

html.vigilia-command-ui .topbar-home,
html.vigilia-command-ui .topbar-connected-users summary,
html.vigilia-command-ui .tb-bell {
  height: 40px !important;
  border-radius: 10px;
  border: 1px solid rgba(53, 230, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 31, 50, 0.98), rgba(7, 14, 25, 0.99));
  color: rgba(232, 242, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

html.vigilia-command-ui .topbar-home {
  width: auto !important;
  min-width: 124px !important;
  max-width: 156px;
  justify-content: flex-start;
  padding: 0 14px !important;
  gap: 10px;
  overflow: hidden !important;
  text-transform: none;
  letter-spacing: 0;
}

html.vigilia-command-ui .topbar-home svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #35e6ff;
  filter: drop-shadow(0 0 8px rgba(53, 230, 255, 0.25));
}

html.vigilia-command-ui .topbar-home span {
  display: inline !important;
  min-width: 0;
  max-width: 102px;
  overflow: hidden !important;
  color: #f4f8ff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: none;
}

html.vigilia-command-ui .topbar-connected-users summary {
  width: auto !important;
  min-width: 76px !important;
  padding: 0 10px !important;
  gap: 8px;
}

html.vigilia-command-ui .topbar-connected-users summary::before {
  display: none;
}

html.vigilia-command-ui .topbar-connected-users summary svg {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 1px solid rgba(53, 230, 255, 0.22);
  border-radius: 8px;
  background: rgba(53, 230, 255, 0.10);
  color: #35e6ff;
  filter: drop-shadow(0 0 10px rgba(53, 230, 255, 0.25));
}

html.vigilia-command-ui .topbar-connected-users summary span {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(255, 173, 50, 0.34);
  border-radius: 7px;
  background: rgba(255, 173, 50, 0.10);
  text-align: center;
  color: #ffad32;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  line-height: 1;
}

html.vigilia-command-ui .topbar-home:hover,
html.vigilia-command-ui .topbar-connected-users summary:hover,
html.vigilia-command-ui .topbar-connected-users[open] summary,
html.vigilia-command-ui .tb-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 230, 255, 0.62);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(53, 230, 255, 0.10),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

html.vigilia-command-ui body.theme-light .topbar-home,
html.vigilia-command-ui body.theme-light .topbar-connected-users summary,
html.vigilia-command-ui body.theme-light .tb-bell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 253, 0.98));
  border-color: rgba(11, 118, 153, 0.18);
  color: #1f3147;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 10px 22px rgba(15, 32, 55, 0.08);
}

html.vigilia-command-ui body.theme-light .topbar-connected-users summary span {
  color: #e27700;
  background: rgba(226, 119, 0, 0.10);
  border-color: rgba(226, 119, 0, 0.24);
}

@media (max-width: 760px) {
  html.vigilia-command-ui .topbar-home {
    min-width: 42px;
    width: 42px !important;
    padding: 0;
  }

  html.vigilia-command-ui .topbar-home span {
    display: none;
  }

  html.vigilia-command-ui .topbar-connected-users summary {
    min-width: 50px;
    padding: 0 8px;
  }
}

html.vigilia-command-ui .topbar-live-toggle {
  min-height: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  border-color: rgba(35, 224, 160, 0.45);
  background: rgba(35, 224, 160, 0.08);
}

html.vigilia-command-ui .command-status-strip {
  position: sticky;
  top: var(--topbar-h);
  z-index: 55;
  margin: 0;
  padding: 14px 24px 0;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.96), rgba(6, 9, 16, 0.74));
}

html.vigilia-command-ui body.theme-light .command-status-strip {
  background: linear-gradient(180deg, rgba(237, 243, 249, 0.96), rgba(237, 243, 249, 0.70));
}

html.vigilia-command-ui .command-status-strip:empty {
  display: none;
}

html.vigilia-command-ui .command-status-inner {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(53, 230, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(12, 18, 30, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
  overflow: hidden;
}

html.vigilia-command-ui body.theme-light .command-status-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 124, 159, 0.18);
}

html.vigilia-command-ui .command-status-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(53, 230, 255, 0.08), transparent 26%, transparent 74%, rgba(53, 230, 255, 0.05));
}

html.vigilia-command-ui .command-status-marquee {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

html.vigilia-command-ui .command-status-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  min-width: max-content;
  animation: commandTickerScroll 32s linear infinite;
}

html.vigilia-command-ui .command-status-marquee:hover .command-status-track {
  animation-play-state: paused;
}

html.vigilia-command-ui .command-status-track-set {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  min-width: max-content;
}

@keyframes commandTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 17px)); }
}

html.vigilia-command-ui .command-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

html.vigilia-command-ui .command-corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

html.vigilia-command-ui .command-corner.tr {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

html.vigilia-command-ui .command-status-item {
  position: relative;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text-mid);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

html.vigilia-command-ui .command-status-item:hover .command-status-text {
  color: var(--text-hi);
}

html.vigilia-command-ui .command-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

html.vigilia-command-ui .command-status-item.cyan {
  color: var(--cyan);
}

html.vigilia-command-ui .command-status-item.green {
  color: var(--green);
}

html.vigilia-command-ui .command-status-item.amber {
  color: var(--amber);
}

html.vigilia-command-ui .command-status-item.red {
  color: var(--red);
}

html.vigilia-command-ui .command-status-live {
  position: relative;
  z-index: 2;
  margin-left: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(35, 224, 160, 0.50);
  border-radius: 999px;
  background: rgba(35, 224, 160, 0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

html.vigilia-command-ui .command-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(35, 224, 160, 0.70);
}

html.vigilia-command-ui .command-status-orb {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  isolation: isolate;
}

html.vigilia-command-ui .command-status-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(53, 230, 255, 0.92) 0 17%, transparent 18%),
    conic-gradient(from 0deg, rgba(53, 230, 255, 1), rgba(53, 230, 255, 0.08), rgba(31, 111, 209, 0.88), rgba(53, 230, 255, 1));
  box-shadow: 0 0 22px rgba(53, 230, 255, 0.46);
  animation: commandOrbSpin 4.2s linear infinite;
}

html.vigilia-command-ui .command-status-orb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #06111c;
  box-shadow: inset 0 0 16px rgba(53, 230, 255, 0.20);
}

html.vigilia-command-ui .command-status-orb span {
  position: relative;
  z-index: 1;
  color: var(--cyan);
  font: 900 10px/1 "JetBrains Mono", monospace;
  text-shadow: 0 0 10px rgba(53, 230, 255, 0.90);
}

html.vigilia-command-ui .command-status-orb:hover::before {
  box-shadow: 0 0 28px rgba(53, 230, 255, 0.74);
  animation-duration: 2.2s;
}

html.vigilia-command-ui body.theme-light .command-status-orb::after {
  background: #f8fbff;
}

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

html.vigilia-command-ui .page-grid {
  width: 100%;
  max-width: none;
  align-content: start;
}

html.vigilia-command-ui .kpi-grid {
  gap: 14px;
}

html.vigilia-command-ui .kpi-card,
html.vigilia-command-ui .section,
html.vigilia-command-ui .page-actions,
html.vigilia-command-ui .table-wrap,
html.vigilia-command-ui .list-table {
  position: relative;
}

html.vigilia-command-ui .kpi-card::before,
html.vigilia-command-ui .section::before,
html.vigilia-command-ui .page-actions::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(53, 230, 255, 0.70);
  border-left: 1px solid rgba(53, 230, 255, 0.70);
  pointer-events: none;
}

html.vigilia-command-ui .section-title,
html.vigilia-command-ui .kpi-card-label,
html.vigilia-command-ui th,
html.vigilia-command-ui .list-table th {
  text-transform: uppercase;
}

html.vigilia-command-ui .kpi-card-value,
html.vigilia-command-ui .metric-value,
html.vigilia-command-ui .stat-value {
  color: var(--text-hi);
  text-shadow: 0 0 12px rgba(53, 230, 255, 0.10);
}

html.vigilia-command-ui .btn-primary,
html.vigilia-command-ui .page-actions-view-btn.active {
  background: linear-gradient(135deg, #0f98d4, #35e6ff);
  border-color: rgba(53, 230, 255, 0.52);
  color: #06111c;
  box-shadow: 0 0 18px rgba(53, 230, 255, 0.18);
}

html.vigilia-command-ui .btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ff5d6c);
  border-color: rgba(255, 93, 108, 0.50);
}

html.vigilia-command-ui .btn-warning,
html.vigilia-command-ui .b-amber {
  border-color: rgba(255, 176, 46, 0.32);
}

html.vigilia-command-ui .modal,
html.vigilia-command-ui .drawer {
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
}

html.vigilia-command-ui .modal input,
html.vigilia-command-ui .modal select,
html.vigilia-command-ui .modal textarea,
html.vigilia-command-ui .drawer input,
html.vigilia-command-ui .drawer select,
html.vigilia-command-ui .drawer textarea {
  min-height: 34px;
}

html.vigilia-command-ui .topbar-chat-slot .chat-topbar-trigger,
html.vigilia-command-ui .chat-topbar-trigger {
  min-width: 38px;
  width: 38px;
  height: 38px;
  font-weight: 900;
}

html.vigilia-command-ui .topbar-chat-slot .chat-topbar-trigger img,
html.vigilia-command-ui .chat-topbar-trigger img {
  display: none !important;
}

html.vigilia-command-ui .topbar-chat-slot .chat-topbar-trigger::before,
html.vigilia-command-ui .chat-topbar-trigger::before {
  content: "IA";
  font-size: 12px;
  color: #ffffff;
}

html.vigilia-command-ui .topbar-command-pill[data-command-voice-toggle].is-active {
  box-shadow: 0 0 16px rgba(35, 224, 160, .20);
}

@media (max-width: 1480px) {
  html.vigilia-command-ui .topbar-command-pill span,
  html.vigilia-command-ui .topbar-status-cluster {
    display: none;
  }

  html.vigilia-command-ui .topbar-command-pill {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  html.vigilia-command-ui .command-status-inner {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  html.vigilia-command-ui .command-status-strip {
    position: relative;
    top: auto;
    padding: 10px 10px 0;
  }

  html.vigilia-command-ui .command-status-inner {
    min-height: 46px;
    padding: 8px 10px;
    gap: 12px;
  }

  html.vigilia-command-ui .command-status-item,
  html.vigilia-command-ui .command-status-live {
    font-size: 10.5px;
  }
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-command-brand .brand-mark {
  animation: vccDashboardClientLogoBreath 2.8s ease-in-out infinite !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-command-brand .brand-text h1,
html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-command-brand .brand-text h1 {
  color: transparent !important;
  background: linear-gradient(90deg, #f5f8ff 26%, #31dfff 48%, #f5f8ff 70%) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: vccDashboardClientTextShine 5s linear infinite !important;
}

@keyframes vccDashboardClientTextShine {
  to { background-position: -220% center; }
}

@keyframes vccDashboardClientLogoBreath {
  0%, 100% { box-shadow: 0 0 18px rgba(31, 219, 255, .18), inset 0 0 0 rgba(31, 219, 255, 0); }
  50% { box-shadow: 0 0 30px rgba(31, 219, 255, .36), inset 0 0 18px rgba(31, 219, 255, .08); }
}

/* Administrateurs presents sur le tenant */
html.vigilia-command-ui .topbar-connected-users summary.topbar-presence-summary {
  width: auto !important;
  min-width: 32px !important;
  max-width: none !important;
  height: 40px !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html.vigilia-command-ui .topbar-connected-users summary.topbar-presence-summary:hover,
html.vigilia-command-ui .topbar-connected-users[open] summary.topbar-presence-summary {
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.vigilia-command-ui .topbar-presence-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 7px;
  isolation: isolate;
}

html.vigilia-command-ui .topbar-presence-avatar {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid #07101d;
  border-radius: 50%;
  background: linear-gradient(145deg, #62e9f6, #20a9c8);
  box-shadow: 0 0 0 1px rgba(60, 228, 255, .48), 0 4px 12px rgba(0, 0, 0, .28);
  color: #03151d;
  font: 900 10px/1 "Rajdhani", "Inter", sans-serif;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease;
}

html.vigilia-command-ui .topbar-presence-avatar:nth-child(2) { background: linear-gradient(145deg, #8af0ff, #2bb8d5); }
html.vigilia-command-ui .topbar-presence-avatar:nth-child(3) { background: linear-gradient(145deg, #4fdbeb, #168fb3); }
html.vigilia-command-ui .topbar-presence-avatar:nth-child(4) { background: linear-gradient(145deg, #9af5df, #25b69a); }
html.vigilia-command-ui .topbar-presence-avatar:nth-child(5) { background: linear-gradient(145deg, #72e4ff, #278ec9); }
html.vigilia-command-ui .topbar-presence-avatar:hover { z-index: 8; transform: translateY(-2px); filter: brightness(1.08); }

html.vigilia-command-ui .topbar-presence-avatar.is-more {
  background: #10243a;
  color: #d9f9ff;
  font-size: 9px;
}

html.vigilia-command-ui .topbar-presence-online,
html.vigilia-command-ui .topbar-presence-mini u {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1.5px solid #07101d;
  border-radius: 50%;
  background: #20e7a4;
  box-shadow: 0 0 7px rgba(32, 231, 164, .8);
  text-decoration: none;
}

html.vigilia-command-ui .topbar-presence-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

html.vigilia-command-ui .topbar-presence-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

html.vigilia-command-ui .topbar-presence-mini {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 226, 251, .58);
  border-radius: 50%;
  background: linear-gradient(145deg, #68e7f5, #209dbd);
  color: #03151d;
  font: 900 9px/1 "Rajdhani", "Inter", sans-serif;
}

html.vigilia-command-ui .topbar-presence-row > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

html.vigilia-command-ui .topbar-presence-row > span strong {
  overflow: hidden;
  color: #eef9ff;
  font: 800 12px/1.2 "Inter", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

html.vigilia-command-ui .topbar-presence-row small {
  color: #20e7a4;
  font: 700 9px/1.2 "JetBrains Mono", monospace;
}

html.vigilia-command-ui body.theme-light .topbar-presence-avatar,
html.vigilia-command-ui body.theme-light .topbar-presence-mini {
  border-color: #f6fbff;
  box-shadow: 0 0 0 1px rgba(8, 126, 157, .25), 0 4px 10px rgba(15, 47, 68, .16);
}

html.vigilia-command-ui body.theme-light .topbar-presence-row > span strong { color: #15253a; }

html.vigilia-command-ui body.theme-light .topbar-connected-menu > strong {
  color: #15253a;
}

html.vigilia-command-ui body.theme-light .topbar-connected-menu > p {
  color: #64758b;
}

html.vigilia-command-ui body.theme-light .topbar-presence-row small {
  color: #07845f;
}

/* Police validee par le client: interface Vigilia complete. */
html.vigilia-command-ui body[data-page],
html.vigilia-command-ui body[data-page] :where(h1, h2, h3, h4, h5, h6, p, a, button, input, select, option, textarea, label, legend, th, td):not(.dv-preview *, .fct-preview *, .bdc-preview *),
html.vigilia-command-ui body[data-page] :where(.topbar, .topbar *, .icon-rail, .icon-rail *, .command-status-strip, .command-status-strip *) {
  font-family: "Oswald", "Arial Narrow", sans-serif !important;
}

html.vigilia-command-ui body[data-page] :where(code, kbd, pre, samp) {
  font-family: "JetBrains Mono", Consolas, monospace !important;
}

/* Palette de navigation et d'assistance demandee depuis le dashboard. */
html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger {
  width: auto !important;
  min-width: 190px !important;
  max-width: 220px !important;
  justify-content: center !important;
  gap: 8px !important;
  border-color: rgba(135, 154, 184, .22) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(20, 30, 47, .98), rgba(11, 17, 29, .99)) !important;
  color: #f5f8ff !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px rgba(0, 0, 0, .18) !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger:hover,
html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger[aria-expanded="true"] {
  border-color: rgba(49, 223, 255, .58) !important;
  background: rgba(13, 27, 44, .98) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(49, 223, 255, .08), 0 12px 28px rgba(0, 0, 0, .24) !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-spark {
  flex: 0 0 auto;
  display: inline-grid !important;
  width: 14px;
  height: 14px;
  place-items: center;
  color: #ebf5ff;
  font-size: 12px;
  filter: drop-shadow(0 0 7px rgba(49, 223, 255, .52));
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-trigger-label {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  color: #f5f8ff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger kbd {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(111, 135, 171, .22);
  border-radius: 5px;
  background: rgba(68, 83, 108, .16);
  color: #75839a;
  font: 500 9px/1 "JetBrains Mono", monospace;
  text-transform: none;
}

html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-ai-command-trigger {
  border-color: rgba(16, 91, 121, .18) !important;
  background: linear-gradient(180deg, #ffffff, #edf5fb) !important;
  color: #14243a !important;
}

html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-ai-command-trigger .ai-command-trigger-label {
  color: #14243a !important;
}

html.vigilia-command-ui body.ai-command-open {
  overflow: hidden !important;
}

html.vigilia-command-ui .ai-command-palette[hidden] {
  display: none !important;
}

html.vigilia-command-ui .ai-command-palette {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: start center;
  padding: max(86px, 10vh) 18px 24px;
  overflow: auto;
  background: rgba(1, 7, 16, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: aiCommandBackdropIn .16s ease-out both;
}

html.vigilia-command-ui .ai-command-dialog {
  width: min(640px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 118px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(49, 223, 255, .52);
  border-radius: 14px;
  background: rgba(4, 11, 21, .99);
  color: #edf4ff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .58), 0 0 38px rgba(49, 223, 255, .08);
  animation: aiCommandDialogIn .19s cubic-bezier(.2, .8, .2, 1) both;
}

html.vigilia-command-ui .ai-command-dialog .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.vigilia-command-ui .ai-command-searchbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 36px 44px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(49, 223, 255, .17);
}

html.vigilia-command-ui .ai-command-search-spark {
  color: #31dfff;
  font-size: 17px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(49, 223, 255, .7));
}

html.vigilia-command-ui .ai-command-searchbar input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #f1f6ff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

html.vigilia-command-ui .ai-command-searchbar input::placeholder {
  color: #63728a;
  opacity: 1;
}

html.vigilia-command-ui .ai-command-mic,
html.vigilia-command-ui .ai-command-escape {
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(49, 223, 255, .17);
  border-radius: 8px;
  background: #0d1b2b;
  color: #b7c4d7;
  cursor: pointer;
}

html.vigilia-command-ui .ai-command-mic:hover,
html.vigilia-command-ui .ai-command-escape:hover {
  border-color: rgba(49, 223, 255, .6);
  color: #31dfff;
}

html.vigilia-command-ui .ai-command-escape {
  width: 42px;
  color: #708096;
  font: 500 9px/1 "JetBrains Mono", monospace !important;
}

html.vigilia-command-ui .ai-command-body {
  min-height: 0;
  padding: 14px 10px 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 223, 255, .34) transparent;
}

html.vigilia-command-ui .ai-command-group-label {
  padding: 0 10px 8px;
  color: #536179;
  font: 500 9px/1 "JetBrains Mono", monospace !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html.vigilia-command-ui .ai-command-list {
  display: grid;
  gap: 3px;
}

html.vigilia-command-ui .ai-command-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ebf2fd;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, transform .12s;
}

html.vigilia-command-ui .ai-command-item[hidden] {
  display: none !important;
}

html.vigilia-command-ui .ai-command-item:hover,
html.vigilia-command-ui .ai-command-item:focus-visible,
html.vigilia-command-ui .ai-command-item.is-active {
  border-color: rgba(49, 223, 255, .08);
  outline: 0;
  background: rgba(20, 49, 67, .56);
  color: #ffffff;
}

html.vigilia-command-ui .ai-command-item:active {
  transform: translateY(1px);
}

html.vigilia-command-ui .ai-command-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(49, 223, 255, .09);
  color: #31dfff;
}

html.vigilia-command-ui .ai-command-icon.violet {
  background: rgba(154, 92, 255, .1);
  color: #b486ff;
}

html.vigilia-command-ui .ai-command-icon.multicolor {
  color: #eef5ff;
  background: conic-gradient(from 20deg, #7d5cff, #ff4f72, #ffc13b, #2ee6ae, #38d5ff, #7d5cff);
}

html.vigilia-command-ui .ai-command-item > span:nth-child(2) {
  min-width: 0;
  display: block;
}

html.vigilia-command-ui .ai-command-item strong,
html.vigilia-command-ui .ai-command-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.vigilia-command-ui .ai-command-item strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

html.vigilia-command-ui .ai-command-item small {
  margin-top: 3px;
  color: #78869a;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
}

html.vigilia-command-ui .ai-command-enter {
  opacity: 0;
  color: #31dfff;
  font-size: 15px;
  text-align: center;
}

html.vigilia-command-ui .ai-command-item.is-active .ai-command-enter {
  opacity: .85;
}

html.vigilia-command-ui .ai-command-question {
  margin-top: 5px;
  border-color: rgba(49, 223, 255, .17);
  background: rgba(49, 223, 255, .04);
}

html.vigilia-command-ui .ai-command-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid rgba(49, 223, 255, .12);
  color: #5f6f86;
  font: 500 9px/1 "JetBrains Mono", monospace !important;
}

html.vigilia-command-ui .ai-command-footer kbd {
  color: #8593a6;
  font: inherit;
}

html.vigilia-command-ui .ai-command-footer-status {
  margin-left: auto;
}

html.vigilia-command-ui .ai-command-footer-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #23e0a0;
  box-shadow: 0 0 8px rgba(35, 224, 160, .6);
}

html.vigilia-command-ui body.theme-light .ai-command-palette {
  background: rgba(224, 235, 245, .7);
}

html.vigilia-command-ui body.theme-light .ai-command-dialog {
  border-color: rgba(8, 145, 178, .48);
  background: rgba(250, 253, 255, .99);
  color: #14243a;
  box-shadow: 0 28px 80px rgba(25, 54, 79, .28), 0 0 28px rgba(8, 145, 178, .08);
}

html.vigilia-command-ui body.theme-light .ai-command-searchbar {
  border-color: rgba(8, 145, 178, .16);
}

html.vigilia-command-ui body.theme-light .ai-command-searchbar input {
  color: #14243a !important;
}

html.vigilia-command-ui body.theme-light .ai-command-mic,
html.vigilia-command-ui body.theme-light .ai-command-escape {
  border-color: rgba(8, 145, 178, .17);
  background: #edf5fa;
  color: #51647a;
}

html.vigilia-command-ui body.theme-light .ai-command-item {
  color: #18273b;
}

html.vigilia-command-ui body.theme-light .ai-command-item:hover,
html.vigilia-command-ui body.theme-light .ai-command-item:focus-visible,
html.vigilia-command-ui body.theme-light .ai-command-item.is-active {
  border-color: rgba(8, 145, 178, .12);
  background: rgba(8, 145, 178, .08);
}

html.vigilia-command-ui body.theme-light .ai-command-item small {
  color: #63758a;
}

@media (max-width: 1480px) {
  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger {
    min-width: 154px !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger kbd {
    display: none;
  }
}

@media (max-width: 1080px) {
  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 0 !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-trigger-label {
    display: none !important;
  }
}

@media (max-width: 640px) {
  html.vigilia-command-ui .ai-command-palette {
    place-items: start stretch;
    padding: 12px;
  }

  html.vigilia-command-ui .ai-command-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }

  html.vigilia-command-ui .ai-command-searchbar {
    grid-template-columns: 18px minmax(0, 1fr) 34px 40px;
    min-height: 58px;
    padding: 0 11px;
  }

  html.vigilia-command-ui .ai-command-searchbar input {
    font-size: 12px !important;
  }

  html.vigilia-command-ui .ai-command-body {
    padding: 10px 7px 7px;
  }

  html.vigilia-command-ui .ai-command-footer {
    gap: 9px;
    padding: 0 10px;
  }

  html.vigilia-command-ui .ai-command-footer-status {
    display: none;
  }
}

@keyframes aiCommandBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aiCommandDialogIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.vigilia-command-ui .ai-command-palette,
  html.vigilia-command-ui .ai-command-dialog {
    animation: none !important;
  }
}

/* Barre d'actions commune: style compact fourni par le client. */
html.vigilia-command-ui body[data-page] .topbar-live-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 108px !important;
  height: 34px !important;
  min-height: 34px !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  overflow: visible !important;
  border: 1px solid rgba(24, 190, 143, .62) !important;
  border-radius: 999px !important;
  background: rgba(4, 30, 31, .96) !important;
  color: #2be6aa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 18px rgba(27, 218, 151, .06) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-toggle:hover {
  border-color: #2be6aa !important;
  background: rgba(5, 38, 37, .98) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 2px rgba(43, 230, 170, .08), 0 0 22px rgba(43, 230, 170, .12) !important;
  transform: translateY(-1px) !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-toggle::before {
  content: none !important;
  display: none !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-track {
  display: inline-block !important;
  order: 1 !important;
  position: relative !important;
  flex: 0 0 31px !important;
  width: 31px !important;
  height: 16px !important;
  border: 1px solid rgba(43, 230, 170, .24) !important;
  border-radius: 999px !important;
  background: rgba(24, 154, 116, .34) !important;
  box-shadow: inset 0 1px 3px rgba(0, 20, 18, .34), 0 0 8px rgba(43, 230, 170, .06) !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-thumb,
html.vigilia-command-ui body[data-page] .topbar-live-toggle.active .topbar-live-thumb {
  top: 1px !important;
  left: 1px !important;
  width: 12px !important;
  height: 12px !important;
  background: #2be6aa !important;
  box-shadow: 0 0 9px rgba(43, 230, 170, .86), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
  transform: translateX(15px) !important;
  animation: none !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-label,
html.vigilia-command-ui body[data-page] .topbar-live-toggle.active .topbar-live-label {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #44eab7 !important;
  font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

html.vigilia-command-ui body[data-page] .topbar-live-label::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #2be6aa !important;
  box-shadow: 0 0 7px rgba(43, 230, 170, .78) !important;
}

html.vigilia-command-ui body[data-page] .topbar-command-pill,
html.vigilia-command-ui body[data-page].theme-light .topbar-command-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 126px !important;
  height: 34px !important;
  min-height: 34px !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(78, 102, 139, .36) !important;
  border-radius: 999px !important;
  background: rgba(9, 17, 31, .98) !important;
  color: #e8eef8 !important;
  font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

html.vigilia-command-ui body[data-page] .topbar-command-pill:hover {
  border-color: rgba(118, 145, 184, .62) !important;
  background: rgba(13, 25, 43, .99) !important;
  transform: translateY(-1px) !important;
}

html.vigilia-command-ui body[data-page] .topbar-command-pill[data-command-voice-toggle].is-active,
html.vigilia-command-ui body[data-page] .topbar-command-pill[data-command-voice-toggle][aria-pressed="true"] {
  border-color: rgba(29, 238, 166, .92) !important;
  background: rgba(5, 25, 30, .98) !important;
  color: #39efb4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 16px rgba(36, 230, 162, .12) !important;
}

html.vigilia-command-ui body[data-page] .topbar-command-pill svg {
  flex: 0 0 auto !important;
  width: 13px !important;
  height: 13px !important;
  color: currentColor !important;
  filter: none !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-right > #topbar-ai-command.topbar-ai-command-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 204px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  overflow: visible !important;
  border: 1px solid rgba(78, 102, 139, .36) !important;
  border-radius: 999px !important;
  background: rgba(9, 17, 31, .98) !important;
  color: #f1f5fb !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger:hover,
html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger[aria-expanded="true"] {
  border-color: rgba(111, 137, 176, .72) !important;
  background: rgba(13, 25, 43, .99) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 2px rgba(89, 116, 158, .08) !important;
  transform: translateY(-1px) !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-spark {
  color: #f2f6fc !important;
  font-size: 11px !important;
  filter: none !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-trigger-label,
html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-ai-command-trigger .ai-command-trigger-label {
  color: #f1f5fb !important;
  font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif !important;
  letter-spacing: .02em !important;
}

html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger kbd {
  padding: 2px 6px !important;
  border: 1px solid rgba(87, 108, 142, .26) !important;
  border-radius: 5px !important;
  background: rgba(36, 50, 72, .40) !important;
  color: #728198 !important;
  font: 500 9px/1 "JetBrains Mono", monospace !important;
}

html.vigilia-command-ui body[data-page] .topbar-right > #topbar-home.topbar-home,
html.vigilia-command-ui body[data-page].theme-light .topbar-right > #topbar-home.topbar-home {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 132px !important;
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  height: 34px !important;
  min-height: 34px !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  overflow: hidden !important;
  border: 1px solid rgba(78, 102, 139, .36) !important;
  border-radius: 999px !important;
  background: rgba(9, 17, 31, .98) !important;
  color: #f1f5fb !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

html.vigilia-command-ui body[data-page] .topbar-right > #topbar-home.topbar-home:hover {
  border-color: rgba(111, 137, 176, .72) !important;
  background: rgba(13, 25, 43, .99) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 2px rgba(89, 116, 158, .08) !important;
  transform: translateY(-1px) !important;
}

html.vigilia-command-ui body[data-page] .topbar-right > #topbar-home.topbar-home svg {
  flex: 0 0 auto !important;
  width: 14px !important;
  height: 14px !important;
  color: #31dfff !important;
  filter: none !important;
}

html.vigilia-command-ui body[data-page] .topbar-right > #topbar-home.topbar-home span,
html.vigilia-command-ui body[data-page].theme-light .topbar-right > #topbar-home.topbar-home span {
  display: inline !important;
  color: #f1f5fb !important;
  font: 600 11px/1 "Oswald", "Arial Narrow", sans-serif !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

html.vigilia-command-ui body[data-page] #topbar-notifications .tb-bell {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(78, 102, 139, .40) !important;
  border-radius: 50% !important;
  background: rgba(9, 17, 31, .98) !important;
  color: #f0a23a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 0 16px rgba(240, 162, 58, .06) !important;
}

html.vigilia-command-ui body[data-page] #topbar-notifications .tb-bell:hover {
  border-color: rgba(240, 162, 58, .72) !important;
  color: #ffb95f !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 2px rgba(240, 162, 58, .08), 0 0 20px rgba(240, 162, 58, .10) !important;
}

html.vigilia-command-ui body[data-page] #topbar-notifications .tb-bell svg {
  width: 15px !important;
  height: 15px !important;
  color: currentColor !important;
}

html.vigilia-command-ui body[data-page] #topbar-notifications .tb-bell-dot {
  top: -5px !important;
  right: -4px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border: 2px solid #070e19 !important;
  border-radius: 999px !important;
  background: #ef4761 !important;
  color: #fff !important;
  font: 700 9px/13px "Inter", sans-serif !important;
  box-shadow: 0 0 10px rgba(239, 71, 97, .38) !important;
}

@media (max-width: 1720px) {
  html.vigilia-command-ui body[data-page="dashboard"] .topbar-status-cluster {
    display: none !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-right > #topbar-ai-command.topbar-ai-command-trigger {
    min-width: 172px !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger kbd {
    display: none !important;
  }
}

@media (max-width: 1260px) {
  html.vigilia-command-ui body[data-page] .topbar-live-toggle {
    min-width: 92px !important;
  }

  html.vigilia-command-ui body[data-page] .topbar-command-pill,
  html.vigilia-command-ui body[data-page].theme-light .topbar-command-pill {
    min-width: 38px !important;
    width: 38px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  html.vigilia-command-ui body[data-page] .topbar-command-pill span,
  html.vigilia-command-ui body[data-page].theme-light .topbar-command-pill span {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  html.vigilia-command-ui body[data-page] .topbar-live-toggle,
  html.vigilia-command-ui body[data-page] .topbar-right > #topbar-home.topbar-home,
  html.vigilia-command-ui body[data-page].theme-light .topbar-right > #topbar-home.topbar-home,
  html.vigilia-command-ui body[data-page] .topbar-right > #topbar-connected-users {
    display: none !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-right > #topbar-ai-command.topbar-ai-command-trigger,
  html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-right > #topbar-ai-command.topbar-ai-command-trigger {
    box-sizing: border-box !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger .ai-command-trigger-label,
  html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-ai-command-trigger .ai-command-trigger-label,
  html.vigilia-command-ui body[data-page="dashboard"] .topbar-ai-command-trigger kbd,
  html.vigilia-command-ui body[data-page="dashboard"].theme-light .topbar-ai-command-trigger kbd {
    display: none !important;
  }
}
