.nb-v50-account-grid,
.nb-v50-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.nb-v50-account-grid .nb-v50-simulations {
  grid-column: 1 / -1;
}

.nb-v50-panel,
.nb-v50-cloud {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--nb-border, #cdd9e8) 78%, transparent);
  border-radius: 22px;
  background: var(--nb-surface, #fff);
  color: var(--nb-text, #10223f);
  box-shadow: 0 14px 34px rgba(4, 30, 66, .08);
}

.nb-v50-panel { padding: clamp(1rem, 2.5vw, 1.4rem); }
.nb-v50-panel > header { margin-bottom: .85rem; }
.nb-v50-panel > header > span,
.nb-v50-cloud > div > span {
  color: #1769d2;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nb-v50-panel h2,
.nb-v50-cloud h2 { margin: .25rem 0 .35rem; color: inherit; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.nb-v50-panel p,
.nb-v50-cloud p { color: var(--nb-muted, #53657f); line-height: 1.62; }

.nb-v50-notification,
.nb-v50-challenge,
.nb-v50-simulation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .8rem 0;
  border-top: 1px solid color-mix(in srgb, var(--nb-border, #cdd9e8) 70%, transparent);
  color: inherit;
  text-decoration: none;
}
.nb-v50-notification:first-child,
.nb-v50-challenge:first-child,
.nb-v50-simulation:first-child { border-top: 0; }
.nb-v50-notification strong,
.nb-v50-challenge strong,
.nb-v50-simulation strong { display: block; color: inherit; }
.nb-v50-notification small,
.nb-v50-challenge small,
.nb-v50-simulation small { display: block; margin-top: .18rem; color: var(--nb-muted, #53657f); line-height: 1.45; }
.nb-v50-notification-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #1769d2; box-shadow: 0 0 0 5px rgba(23, 105, 210, .12); }
.nb-v50-notification-dot[data-type="backup"] { background: #d97706; box-shadow: 0 0 0 5px rgba(217, 119, 6, .13); }
.nb-v50-notification-dot[data-type="ready"] { background: #198754; box-shadow: 0 0 0 5px rgba(25, 135, 84, .13); }

.nb-v50-challenge { grid-template-columns: minmax(0, 1fr) auto; }
.nb-v50-challenge > b { color: #1769d2; font-size: .82rem; }
.nb-v50-progress { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #dbe6f3; }
.nb-v50-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1769d2, #12a49b); }

.nb-v50-simulation { grid-template-columns: minmax(0, 1fr) auto; }
.nb-v50-simulation a { min-width: 0; color: inherit; text-decoration: none; }
.nb-v50-simulation button {
  min-height: 40px;
  padding: .55rem .72rem;
  border: 1px solid #bdcce0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.nb-v50-empty { display: grid; gap: .25rem; padding: 1rem; border-radius: 15px; background: color-mix(in srgb, var(--nb-surface-soft, #edf4fb) 85%, transparent); }
.nb-v50-empty span { color: var(--nb-muted, #53657f); line-height: 1.5; }

.nb-v50-cloud {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr);
  gap: 1.2rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--nb-surface, #fff) 92%, #cfe4ff), var(--nb-surface, #fff));
}
.nb-v50-cloud-state { display: grid; gap: .4rem; padding: 1rem; border-radius: 16px; background: color-mix(in srgb, var(--nb-surface-soft, #edf4fb) 88%, transparent); }
.nb-v50-cloud-state strong { color: #b45309; }
.nb-v50-cloud-state small { color: var(--nb-muted, #53657f); }
.nb-v50-cloud-state a,
.nb-v50-settings-link { color: #1769d2; font-weight: 800; }

.nb-v50-checks { display: grid; gap: .7rem; margin: 1rem 0; }
.nb-v50-checks label { display: flex; align-items: flex-start; gap: .6rem; color: inherit; font-weight: 700; }
.nb-v50-checks input { width: 1.15rem; height: 1.15rem; margin-top: .1rem; accent-color: #1769d2; }
.nb-social-footer-v50 { margin: .8rem auto 0; text-align: center; }
.nb-social-footer-v50 a { color: inherit; font-weight: 800; text-underline-offset: 3px; }
.nb-connected-save-v50 { width: 100%; min-height: 44px; margin-top: .7rem; border: 1px solid #1769d2; border-radius: 12px; background: transparent; color: #1769d2; font: inherit; font-weight: 850; cursor: pointer; }

[data-nb-theme="dark"] .nb-v50-panel,
[data-nb-theme="dark"] .nb-v50-cloud,
html[data-nb-theme="dark"] .nb-v50-panel,
html[data-nb-theme="dark"] .nb-v50-cloud {
  --nb-surface: #0d203a;
  --nb-surface-soft: #132b49;
  --nb-text: #f7fbff;
  --nb-muted: #c7d7ea;
  --nb-border: #375372;
  color: #f7fbff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
html[data-nb-theme="dark"] .nb-v50-panel > header > span,
html[data-nb-theme="dark"] .nb-v50-cloud > div > span,
html[data-nb-theme="dark"] .nb-v50-cloud-state a,
html[data-nb-theme="dark"] .nb-v50-settings-link,
html[data-nb-theme="dark"] .nb-v50-challenge > b { color: #82bdff; }
html[data-nb-theme="dark"] .nb-v50-cloud-state strong { color: #ffd58a; }
html[data-nb-theme="dark"] .nb-connected-save-v50 { border-color: #82bdff; color: #dcecff; }

@media (max-width: 760px) {
  .nb-v50-account-grid,
  .nb-v50-dashboard,
  .nb-v50-cloud { grid-template-columns: 1fr; }
  .nb-v50-account-grid .nb-v50-simulations { grid-column: auto; }
  .nb-v50-panel,
  .nb-v50-cloud { border-radius: 18px; }
  .nb-v50-notification,
  .nb-v50-challenge,
  .nb-v50-simulation { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .nb-v50-progress i { transition: none !important; }
}
