:root {
  --vh-primary: #2563eb;
  --vh-primary-hover: #1d4ed8;
  --vh-sidebar: #101828;
  --vh-sidebar-hover: #1d2939;
  --vh-page: #f5f7fb;
  --vh-surface: #ffffff;
  --vh-surface-soft: #f8fafc;
  --vh-border: #e2e8f0;
  --vh-border-strong: #cbd5e1;
  --vh-text: #0f172a;
  --vh-muted: #64748b;
  --vh-success: #15803d;
  --vh-warning: #b45309;
  --vh-danger: #b91c1c;
  --vh-sidebar-width: 248px;
  --vh-topbar-height: 64px;
  --vh-radius: 10px;
  --vh-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

* {
  box-sizing: border-box;
}

body.vh2026-enabled {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--vh-topbar-height);
  padding-left: var(--vh-sidebar-width);
  color: var(--vh-text);
  background: var(--vh-page);
}

body.vh2026-enabled .jv-topbar,
body.vh2026-enabled .vh-topbar,
body.vh2026-enabled .hub-header,
body.vh2026-enabled .vh-shell-header {
  display: none !important;
}

#vh2026-sidebar {
  position: fixed;
  z-index: 10000;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--vh-sidebar-width);
  color: #e5e7eb;
  background: var(--vh-sidebar);
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.vh2026-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--vh-topbar-height);
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vh2026-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: #fff;
  background: var(--vh-primary);
  font-weight: 800;
}

.vh2026-brand-copy {
  display: grid;
  line-height: 1.1;
}

.vh2026-brand-copy strong {
  font-size: 14px;
}

.vh2026-brand-copy span {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 11px;
}

.vh2026-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 10px;
}

.vh2026-nav-section {
  margin: 17px 10px 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vh2026-nav-section:first-child {
  margin-top: 3px;
}

.vh2026-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: #d0d5dd;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.vh2026-nav-link:hover {
  color: #fff;
  background: var(--vh-sidebar-hover);
}

.vh2026-nav-link.is-active {
  color: #fff;
  background: rgba(37, 99, 235, .24);
}

.vh2026-nav-icon {
  width: 20px;
  text-align: center;
}

.vh2026-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#vh2026-topbar {
  position: fixed;
  z-index: 9999;
  inset: 0 0 auto var(--vh-sidebar-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vh-topbar-height);
  padding: 0 22px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--vh-border);
  backdrop-filter: blur(16px);
}

.vh2026-topbar-left,
.vh2026-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vh2026-mobile-toggle {
  display: none;
}

.vh2026-page-context {
  display: grid;
  line-height: 1.15;
}

.vh2026-page-context strong {
  font-size: 14px;
}

.vh2026-page-context span {
  margin-top: 3px;
  color: var(--vh-muted);
  font-size: 11px;
}

.vh2026-topbar-button,
.vh2026-topbar details > summary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--vh-border);
  border-radius: 8px;
  color: var(--vh-text);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.vh2026-topbar-button:hover,
.vh2026-topbar details > summary:hover {
  background: var(--vh-surface-soft);
  border-color: var(--vh-border-strong);
}

.vh2026-topbar-button.is-primary {
  color: #fff;
  background: var(--vh-primary);
  border-color: var(--vh-primary);
}

.vh2026-topbar details {
  position: relative;
}

.vh2026-topbar details > summary::-webkit-details-marker {
  display: none;
}

.vh2026-dropdown {
  position: absolute;
  z-index: 11000;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 230px;
  padding: 7px;
  border: 1px solid var(--vh-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
}

.vh2026-dropdown a,
.vh2026-dropdown button {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--vh-text);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.vh2026-dropdown a:hover,
.vh2026-dropdown button:hover {
  color: var(--vh-primary);
  background: #eff6ff;
}

.vh2026-page {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 26px;
}

.vh2026-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.vh2026-page-title {
  margin: 0;
  color: var(--vh-text);
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.vh2026-page-description {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--vh-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vh2026-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vh2026-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--vh-border);
  border-radius: 8px;
  color: var(--vh-text);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.vh2026-button:hover {
  background: var(--vh-surface-soft);
}

.vh2026-button-primary {
  color: #fff;
  background: var(--vh-primary);
  border-color: var(--vh-primary);
}

.vh2026-button-primary:hover {
  color: #fff;
  background: var(--vh-primary-hover);
}

.vh2026-grid {
  display: grid;
  gap: 16px;
}

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

.vh2026-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vh2026-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vh2026-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius);
  background: var(--vh-surface);
  box-shadow: var(--vh-shadow);
}

.vh2026-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vh2026-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.vh2026-card-description {
  margin: 4px 0 0;
  color: var(--vh-muted);
  font-size: 12px;
  line-height: 1.45;
}

.vh2026-kpi-value {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -.035em;
}

.vh2026-kpi-label {
  margin-top: 5px;
  color: var(--vh-muted);
  font-size: 12px;
}

.vh2026-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh2026-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid var(--vh-border);
}

.vh2026-list-item:first-child {
  border-top: 0;
}

.vh2026-empty {
  padding: 30px 18px;
  color: var(--vh-muted);
  background: var(--vh-surface-soft);
  border: 1px dashed var(--vh-border-strong);
  border-radius: var(--vh-radius);
  text-align: center;
  font-size: 13px;
}

.vh2026-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #334155;
  background: #eef2f6;
  font-size: 11px;
  font-weight: 720;
}

.vh2026-badge-success {
  color: #166534;
  background: #dcfce7;
}

.vh2026-badge-warning {
  color: #92400e;
  background: #fef3c7;
}

.vh2026-badge-danger {
  color: #991b1b;
  background: #fee2e2;
}

.vh2026-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--vh-border);
}

.vh2026-tab {
  flex: 0 0 auto;
  padding: 11px 12px;
  color: var(--vh-muted);
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vh2026-tab:hover,
.vh2026-tab.is-active {
  color: var(--vh-primary);
  border-bottom-color: var(--vh-primary);
}

#vh2026-search-dialog {
  width: min(620px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid var(--vh-border);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

#vh2026-search-dialog::backdrop {
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
}

.vh2026-search-inner {
  padding: 15px;
}

.vh2026-search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--vh-border-strong);
  border-radius: 9px;
  font: inherit;
}

.vh2026-search-results {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 10px;
}

.vh2026-search-result {
  padding: 10px;
  border-radius: 8px;
  color: var(--vh-text);
  text-decoration: none;
}

.vh2026-search-result:hover {
  color: var(--vh-primary);
  background: #eff6ff;
}

@media (max-width: 1100px) {
  .vh2026-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vh2026-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.vh2026-enabled {
    padding-left: 0;
  }

  #vh2026-sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
  }

  body.vh2026-sidebar-open #vh2026-sidebar {
    transform: translateX(0);
  }

  #vh2026-topbar {
    left: 0;
    padding-inline: 12px;
  }

  .vh2026-mobile-toggle {
    display: inline-flex;
  }

  .vh2026-topbar-label {
    display: none;
  }

  .vh2026-page {
    padding: 18px 13px;
  }

  .vh2026-page-header {
    flex-direction: column;
  }

  .vh2026-grid-2,
  .vh2026-grid-3,
  .vh2026-grid-4 {
    grid-template-columns: 1fr;
  }
}
