:root {
  --vc-shell-bg: #ffffff;
  --vc-shell-bg-muted: #f8fafc;
  --vc-shell-text: #0f172a;
  --vc-shell-muted: #52637a;
  --vc-shell-border: #d9e2ef;
  --vc-shell-accent: var(--accent-color, var(--accent, #a6ff00));
  --vc-shell-accent-soft: color-mix(in srgb, var(--vc-shell-accent) 16%, transparent);
  --vc-shell-danger: #dc2626;
  --vc-shell-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  --vc-shell-focus: 0 0 0 3px color-mix(in srgb, var(--vc-shell-accent) 32%, transparent);
}

[data-theme="light"] {
  --vc-shell-bg: #ffffff;
  --vc-shell-bg-muted: #f8fafc;
  --vc-shell-text: #0f172a;
  --vc-shell-muted: #52637a;
  --vc-shell-border: #d9e2ef;
}

[data-theme="dark"] {
  --vc-shell-bg: #0b111d;
  --vc-shell-bg-muted: #111827;
  --vc-shell-text: #f8fafc;
  --vc-shell-muted: #aab7c8;
  --vc-shell-border: #263244;
  --vc-shell-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

#app-shell-root {
  position: sticky;
  top: 0;
  z-index: 80;
}

.vc-shell-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px 18px;
  background: var(--vc-shell-bg);
  border-bottom: 1px solid var(--vc-shell-border);
  color: var(--vc-shell-text);
}

.vc-shell-left,
.vc-shell-primary-nav,
.vc-shell-actions {
  display: flex;
  align-items: center;
}

.vc-shell-left {
  min-width: 0;
  gap: 22px;
}

.vc-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--vc-shell-text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.vc-shell-brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--vc-shell-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vc-shell-accent) 74%, #6f9900);
}

.vc-shell-primary-nav {
  gap: 4px;
  min-width: 0;
}

.vc-shell-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--vc-shell-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.vc-shell-nav-link:hover {
  color: var(--vc-shell-text);
  background: var(--vc-shell-bg-muted);
}

.vc-shell-nav-link.is-active {
  color: var(--vc-shell-text);
  background: var(--vc-shell-accent-soft);
  box-shadow: inset 0 -2px 0 var(--vc-shell-accent);
}

.vc-shell-actions {
  position: relative;
  gap: 8px;
}

.vc-shell-account-chip,
.vc-shell-icon-btn,
.vc-shell-menu-item {
  border: 1px solid var(--vc-shell-border);
  border-radius: 4px;
  background: var(--vc-shell-bg-muted);
  color: var(--vc-shell-text);
  font: inherit;
}

.vc-shell-account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  min-height: 40px;
  padding: 0 12px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.vc-shell-account-chip:hover,
.vc-shell-icon-btn:hover {
  border-color: color-mix(in srgb, var(--vc-shell-border) 54%, var(--vc-shell-text));
  background: color-mix(in srgb, var(--vc-shell-bg-muted) 82%, var(--vc-shell-accent));
}

.vc-shell-account-chip:focus-visible,
.vc-shell-icon-btn:focus-visible,
.vc-shell-nav-link:focus-visible,
.vc-shell-menu-item:focus-visible,
.vc-account-nav-link:focus-visible,
.vc-account-mobile-select:focus-visible {
  outline: none;
  box-shadow: var(--vc-shell-focus);
}

.vc-shell-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.vc-shell-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  fill: none;
}

.vc-shell-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--vc-shell-accent);
  box-shadow: 0 0 0 2px var(--vc-shell-bg-muted);
}

.vc-shell-badge[hidden] {
  display: none;
}

.vc-shell-menu,
.vc-shell-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: none;
  width: min(340px, calc(100vw - 28px));
  padding: 8px;
  background: var(--vc-shell-bg);
  border: 1px solid var(--vc-shell-border);
  border-radius: 6px;
  box-shadow: var(--vc-shell-shadow);
  color: var(--vc-shell-text);
}

.vc-shell-popover--overview {
  width: min(460px, calc(100vw - 28px));
  max-height: min(70vh, 620px);
  overflow: auto;
}

.vc-shell-menu.is-open,
.vc-shell-popover.is-open {
  display: block;
}

.vc-shell-menu-header {
  padding: 10px 10px 12px;
}

.vc-shell-menu-email {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.vc-shell-menu-meta {
  margin-top: 5px;
  color: var(--vc-shell-muted);
  font-size: 12px;
  line-height: 1.4;
}

.vc-shell-menu-separator {
  height: 1px;
  margin: 6px 0;
  background: var(--vc-shell-border);
}

.vc-shell-menu .vc-shell-menu-primary {
  display: none;
}

.vc-shell-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  background: transparent;
  border-color: transparent;
  color: var(--vc-shell-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.vc-shell-menu-item:hover,
.vc-shell-menu-item.is-active {
  background: var(--vc-shell-bg-muted);
}

.vc-shell-menu-item.is-active {
  box-shadow: inset 3px 0 0 var(--vc-shell-accent);
}

.vc-shell-menu-item.is-danger {
  color: var(--vc-shell-danger);
}

.vc-shell-popover-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.vc-shell-popover-body {
  margin: 0;
  color: var(--vc-shell-muted);
  font-size: 13px;
  line-height: 1.5;
}

.vc-shell-popover-body h4 {
  margin: 14px 0 6px;
  color: var(--vc-shell-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.vc-shell-popover-body h4:first-child {
  margin-top: 0;
}

.vc-shell-popover-body p {
  margin: 0 0 10px;
}

.vc-shell-popover-body p:last-child {
  margin-bottom: 0;
}

.vc-account-page {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.vc-account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#account-nav {
  position: sticky;
  top: 84px;
  z-index: 20;
  align-self: start;
}

.vc-account-side-nav {
  position: static;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--vc-shell-bg);
  border: 1px solid var(--vc-shell-border);
  border-radius: 6px;
}

.vc-account-nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--vc-shell-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.vc-account-nav-link:hover {
  color: var(--vc-shell-text);
  background: var(--vc-shell-bg-muted);
}

.vc-account-nav-link.is-active {
  color: var(--vc-shell-text);
  background: var(--vc-shell-accent-soft);
  box-shadow: inset 3px 0 0 var(--vc-shell-accent);
}

.vc-account-mobile-nav {
  display: none;
  margin-bottom: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vc-account-mobile-select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--vc-shell-border);
  border-radius: 4px;
  background: var(--vc-shell-bg);
  color: var(--vc-shell-text);
  font: inherit;
  font-weight: 750;
}

.vc-account-content {
  min-width: 0;
}

.vc-account-kicker {
  margin: 0 0 8px;
  color: var(--vc-shell-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-account-title {
  margin: 0;
  color: var(--vc-shell-text);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
}

.vc-account-lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--vc-shell-muted);
  font-size: 16px;
  line-height: 1.55;
}

.vc-account-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--vc-shell-border);
  scroll-margin-top: 92px;
}

.vc-account-section:first-of-type {
  border-top: 0;
}

.vc-account-section-title {
  margin: 0 0 12px;
  color: var(--vc-shell-text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.vc-account-summary-grid,
.vc-billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vc-account-card,
.vc-account-stat {
  background: var(--vc-shell-bg);
  border: 1px solid var(--vc-shell-border);
  border-radius: 6px;
}

.vc-account-card {
  padding: 18px;
}

.vc-account-stat {
  min-height: 112px;
  padding: 16px;
}

.vc-account-stat-label {
  margin: 0 0 8px;
  color: var(--vc-shell-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vc-account-stat-value {
  margin: 0;
  color: var(--vc-shell-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.18;
  word-break: break-word;
}

.vc-account-stat-note {
  margin: 8px 0 0;
  color: var(--vc-shell-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vc-credit-status {
  --vc-credit-status-color: var(--vc-shell-muted);
  display: grid;
  gap: 8px;
  min-width: 0;
}

.vc-credit-status[data-tone="positive"] {
  --vc-credit-status-color: var(--vc-shell-accent);
}

.vc-credit-status[data-tone="attention"] {
  --vc-credit-status-color: var(--accent-2, #A8DDF2);
}

.vc-credit-status[data-tone="warning"] {
  --vc-credit-status-color: var(--warning, #f59e0b);
}

.vc-credit-status[data-tone="danger"] {
  --vc-credit-status-color: var(--vc-shell-danger);
}

.vc-credit-status-label {
  margin: 0;
}

.vc-credit-status-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(136px, 100%);
  min-height: 10px;
}

.vc-credit-status-segment {
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--vc-credit-status-color), transparent 58%);
  border-radius: 3px;
  background: color-mix(in srgb, var(--vc-credit-status-color), transparent 88%);
}

.vc-credit-status-segment.is-filled {
  border-color: color-mix(in srgb, var(--vc-credit-status-color), transparent 18%);
  background: var(--vc-credit-status-color);
}

.vc-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.vc-app-shell-active > .container > .header {
  display: none !important;
}

#app-shell-root + .container > .header {
  display: none !important;
}

body.vc-app-shell-active > .container {
  padding-top: 1rem;
}

@media (max-width: 1100px) {
  .vc-shell-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .vc-shell-actions {
    margin-left: auto;
  }

  .vc-shell-primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .vc-account-summary-grid,
  .vc-billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .vc-account-page {
    width: min(100% - 24px, 720px);
    padding-top: 20px;
  }

  .vc-account-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #account-nav {
    position: static;
  }

  .vc-account-side-nav {
    display: none;
  }

  .vc-account-mobile-nav {
    display: block;
  }
}

@media (max-width: 620px) {
  .vc-shell-header {
    gap: 10px;
    padding: 8px 12px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .vc-shell-left {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .vc-shell-brand {
    min-height: 44px;
  }

  .vc-shell-primary-nav {
    display: none;
  }

  .vc-shell-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .vc-shell-account-chip {
    flex: 0 1 156px;
    max-width: 156px;
    min-height: 44px;
  }

  .vc-shell-actions [data-vc-shell-notifications],
  .vc-shell-actions [data-vc-shell-help] {
    display: none;
  }

  .vc-shell-menu-item.vc-shell-menu-primary {
    display: flex;
  }

  .vc-shell-menu-separator.vc-shell-menu-primary {
    display: block;
  }

  .vc-shell-icon-btn {
    width: 44px;
    height: 44px;
  }

  .vc-shell-nav-link {
    min-height: 44px;
  }

  .vc-account-summary-grid,
  .vc-billing-summary-grid {
    grid-template-columns: 1fr;
  }

  .vc-account-title {
    font-size: 38px;
  }
}
