:root {
  --ink: #1c1f26;
  --muted: #667085;
  --faint: #8b939e;
  --line: #e6e8ee;
  --line-strong: #d8dbe3;
  --sidebar: #f5f6f8;
  --soft: #f3f5f8;
  --blue: #2a62d9;
  --shadow: 0 1px 2px rgba(20, 23, 28, 0.04), 0 8px 24px rgba(20, 23, 28, 0.04);
  --radius: 12px;
  color-scheme: light;
}

.vs-body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.vs-body a {
  color: var(--blue);
  text-decoration: none;
}

.vs-app {
  display: flex;
  min-height: 100vh;
}

.vs-sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 20px 14px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

a.vs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  padding: 4px 10px 18px;
  letter-spacing: -0.02em;
}

a.vs-brand:hover { color: var(--ink); }

.vs-logo-svg {
  width: 28px;
  height: 28px;
  fill: var(--ink);
}

.vs-side-label {
  margin: 8px 12px 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vs-side a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #5e6673;
  font-weight: 600;
}

.vs-side a.active {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(20, 23, 28, 0.05);
}

.vs-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.vs-icon-sm { width: 16px; height: 16px; }

.vs-main { flex: 1; min-width: 0; background: #fff; }

.vs-top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.vs-top-actions { display: flex; align-items: center; gap: 4px; }

.vs-switcher, .vs-user, .vs-icon-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}

.vs-switcher, .vs-user { padding: 6px 8px; }
.vs-switcher:hover, .vs-user:hover, .vs-icon-btn:hover { background: var(--soft); }

.vs-icon-btn {
  width: 40px;
  height: 40px;
  justify-content: center;
  color: #5e6673;
}

.vs-switcher-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.vs-switcher-copy strong { font-size: 14px; }
.vs-switcher-copy small { color: var(--muted); font-size: 12px; }

.vs-letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
}

.vs-letter-soft { background: #e7ebf3; color: var(--ink); }

.vs-user-name { font-weight: 650; }

.vs-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 240px;
}

.vs-menu .dropdown-item {
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 10px;
  color: var(--ink);
}

.vs-menu .dropdown-item.active,
.vs-menu .dropdown-item:active { background: var(--soft); color: var(--ink); }

.vs-menu-label {
  margin: 6px 10px 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vs-menu-empty { margin: 4px 10px 8px; color: var(--muted); }

.vs-search { padding: 12px; }
.vs-notes { width: 320px; max-height: 360px; overflow: auto; }
.vs-note { padding: 8px 10px; border-bottom: 1px dashed var(--line); }
.vs-note p { margin: 0; }
.vs-note time { color: var(--faint); font-size: 12px; }
.vs-user-meta { display: flex; flex-direction: column; padding: 8px 10px 10px; }
.vs-user-meta span { color: var(--muted); }

.vs-subnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.vs-subnav a {
  padding: 14px 12px;
  color: var(--faint);
  font-weight: 650;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.vs-subnav a.active { color: var(--ink); border-bottom-color: var(--ink); }

.vs-crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 28px 0;
  color: var(--faint);
  font-size: 13px;
}

.vs-crumb a { color: var(--muted); }
.vs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 28px 18px;
}

.vs-head h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 700; }
.vs-sub { margin: 4px 0 0; color: var(--muted); }
.vs-content { padding: 0 28px 48px; }
.vs-content > .vs-btn { display: inline-block; margin-bottom: 16px; }

.vs-range { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.vs-custom { display: flex; gap: 8px; align-items: center; }
.vs-custom .form-control { width: auto; }

.vs-segment {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.vs-segment a {
  padding: 7px 11px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
  border-right: 1px solid var(--line);
}

.vs-segment a:last-child { border-right: 0; }
.vs-segment a.active { background: var(--ink); color: #fff; }

.vs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.vs-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vs-kpi { padding: 16px 16px 14px; }
.vs-kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.vs-kpi strong { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -0.03em; font-weight: 700; }
.vs-kpi small { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }

.vs-account {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(300px, 1.08fr);
  grid-template-areas:
    "personal security chart"
    "members billing chart";
  gap: 16px;
  margin-top: 16px;
}

.vs-link-card:nth-child(1) { grid-area: personal; }
.vs-link-card:nth-child(2) { grid-area: security; }
.vs-link-card:nth-child(3) { grid-area: members; }
.vs-link-card:nth-child(4) { grid-area: billing; }
.vs-chart-card { grid-area: chart; display: flex; flex-direction: column; min-height: 100%; }

.vs-icon-sq {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: #3d4654;
}

.vs-link-card h2, .vs-form h2, .vs-table-card h2, .vs-snippet h2 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.vs-link-card p {
  margin: 0;
  color: var(--muted);
  min-height: 2.9em;
}

.vs-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
}

.vs-denied { display: inline-block; margin-top: 16px; color: var(--faint); font-weight: 650; }

.vs-chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vs-kicker { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.vs-figure { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.vs-muted { color: var(--muted); }
.vs-lead { font-size: 15px; margin: 8px 0 18px; }

.vs-legend { display: flex; gap: 16px; margin: 14px 0 4px; color: var(--muted); font-size: 13px; font-weight: 650; }
.vs-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.vs-swatch.visitors { background: #2f6fed; }
.vs-swatch.pageviews { background: #1c1f26; }
.vs-chart { width: 100%; height: auto; margin-top: auto; }

.vs-table-card { padding: 8px 8px 12px; margin-top: 16px; }
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.vs-table td {
  padding: 14px 12px;
  border-bottom: 1px dashed #e3e6ec;
  vertical-align: middle;
}
.vs-table tr:last-child td { border-bottom: 0; }
.vs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vs-share { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.vs-bar { width: 96px; height: 6px; flex: 0 0 auto; }
.vs-more { margin: 8px 12px 4px; }

.vs-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef8f2;
  color: #0f7b4c;
  font-size: 12px;
  font-weight: 700;
}
.vs-badge.off { background: #f3f4f6; color: #667085; }

.vs-form { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.vs-form label { margin-top: 6px; font-weight: 650; }
.vs-form .vs-btn { align-self: flex-start; margin-top: 8px; }
.vs-narrow { max-width: 460px; }
.vs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.vs-form-actions { margin-top: 8px; }
.vs-snippet { margin-top: 16px; }
.vs-snippet h3 { margin: 18px 0 6px; font-size: 15px; }
.vs-code {
  background: var(--soft);
  border-radius: 8px;
  padding: 12px 14px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 13px;
}

.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--line-strong);
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 31, 38, 0.08);
}

.vs-btn {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
}
.vs-btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.vs-btn.danger { background: #fff; color: #9f2d2d; border: 1px solid #f0c9c9; }
.vs-btn:disabled { opacity: 0.5; }

.vs-row-actions { display: flex; gap: 8px; margin-top: 16px; }
.vs-flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.vs-flash.ok { background: #f3faf6; border-color: #cdeedc; color: #0f7b4c; }
.vs-flash.err { background: #fdf4f4; border-color: #f3d0d0; color: #9f2d2d; }
.vs-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: #fbfcfd;
  margin-bottom: 16px;
}
.vs-empty p { margin: 0; }

.vs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vs-pills a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #5c6570;
  font-weight: 650;
  font-size: 13px;
}
.vs-pills a.active { background: var(--ink); color: #fff; }
.vs-inline-search { display: flex; gap: 8px; margin-bottom: 12px; max-width: 420px; }

.vs-billing { max-width: 640px; }
.vs-meter { margin-top: 16px; }
.vs-meter div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.vs-meter .vs-bar { width: 100%; height: 8px; }

.vs-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.vs-auth-card { width: min(420px, 100%); }
.vs-auth-card h1 { margin: 0 0 16px; font-size: 28px; letter-spacing: -0.03em; }
.vs-auth-card .vs-btn { width: 100%; margin-top: 8px; }

@media (max-width: 1100px) {
  .vs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vs-account {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "personal security"
      "members billing"
      "chart chart";
  }
}

@media (max-width: 760px) {
  .vs-sidebar { width: 76px; flex-basis: 76px; padding-inline: 8px; }
  .vs-brand-name, .vs-nav-text, .vs-side-label, .vs-user-name { display: none; }
  .vs-kpis, .vs-form-grid, .vs-account { grid-template-columns: 1fr; }
  .vs-account { grid-template-areas: "personal" "security" "members" "billing" "chart"; }
  .vs-head, .vs-content, .vs-subnav, .vs-crumb { padding-left: 16px; padding-right: 16px; }
  .vs-top { padding-inline: 12px; }
}
