:root {
  color-scheme: dark;
  --bg: #05070c;
  --surface: rgba(12, 16, 27, 0.86);
  --surface-strong: rgba(18, 23, 38, 0.94);
  --ink: #f7fbff;
  --muted: #a5b3c7;
  --line: rgba(161, 190, 255, 0.18);
  --green: #24d9e8;
  --cyan: #20d4ff;
  --violet: #8f6dff;
  --magenta: #f03dff;
  --dark: #f7fbff;
  --danger: #ff6d8c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 76% 16%, rgba(240, 61, 255, 0.22), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(36, 217, 232, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 7, 12, 0.98), rgba(8, 13, 25, 0.9)),
    url("/assets/solarnova-logo.png") right 7vw center / min(560px, 50vw) auto no-repeat,
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 82%);
}

a {
  color: inherit;
}

.topbar {
  border-bottom: 1px solid rgba(161, 190, 255, 0.16);
  background: rgba(5, 7, 12, 0.76);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: calc(100% - 32px);
  max-width: 1160px;
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #02040a;
  box-shadow: 0 0 0 1px rgba(36, 217, 232, 0.24), 0 14px 32px rgba(32, 212, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.service-card strong {
  display: block;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.shell {
  width: calc(100% - 32px);
  max-width: 1160px;
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(36, 217, 232, 0.42);
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.panel-note {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}

.account-meta {
  display: block;
}

.field-grid,
.form-stack {
  display: grid;
  gap: 14px;
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: #dce8ff;
  font-size: 13px;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(161, 190, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 7, 15, 0.72);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(36, 217, 232, 0.78);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 217, 232, 0.16);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(36, 217, 232, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(36, 217, 232, 0.95), rgba(143, 109, 255, 0.9));
  color: #031018;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(36, 217, 232, 0.12);
  color: #bdf8ff;
  font-size: 13px;
  line-height: 1.6;
}

.status.error {
  background: rgba(255, 109, 140, 0.12);
  color: var(--danger);
}

.form-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.form-link-row a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.form-link-row a:hover,
.form-link-row a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.optional-details {
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.optional-details summary {
  min-height: 44px;
  padding: 12px 14px;
  color: #0d2742;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.optional-details-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 14px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(255, 109, 140, 0.84);
  box-shadow: 0 0 0 3px rgba(255, 109, 140, 0.12);
}

.service-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.service-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.service-card .button {
  min-width: 142px;
}

.service-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.service-card em {
  display: block;
  margin-top: 8px;
  color: #cbd8ee;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.account-security-panel {
  margin-top: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(24, 216, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 216, 223, 0.08), rgba(255, 255, 255, 0.035));
}

.account-security-panel strong,
.account-security-panel span {
  display: block;
}

.account-security-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.account-security-panel span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.account-security-panel .button {
  min-width: 180px;
}

.account-password-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(24, 216, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 18, 255, 0.07), rgba(24, 216, 223, 0.05));
}

.account-password-copy strong,
.account-password-copy span {
  display: block;
}

.account-password-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.account-password-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.account-password-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.account-password-form label {
  min-width: 0;
}

.account-password-form input {
  width: 100%;
}

.account-password-form .button {
  min-width: 180px;
}

.service-category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(36, 217, 232, 0.28);
  border-radius: 999px;
  color: #9ff4ff;
  font-size: 11px;
  font-weight: 900;
}

.service-card.is-complete,
.service-card.is-available {
  border-color: rgba(36, 217, 232, 0.35);
}

.service-card.is-unavailable {
  opacity: 0.5;
}

.service-contract-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(36, 217, 232, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 217, 232, 0.12), rgba(240, 61, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.service-contract-panel small {
  display: block;
  margin-bottom: 6px;
  color: #9ff4ff;
  font-size: 12px;
  font-weight: 900;
}

.service-contract-panel strong {
  display: block;
  color: var(--ink);
  line-height: 1.65;
}

.plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-chip-row span {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8ff;
  font-size: 12px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf7f1;
  color: #176444;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(246, 247, 243, 0.98), rgba(246, 247, 243, 0.88)),
      url("/assets/solarnova-logo.png") center bottom 28px / min(360px, 92vw) auto no-repeat,
      var(--bg);
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 36px 0 220px;
  }

  h1 {
    font-size: 44px;
  }

  .nav {
    display: none;
  }

  .field-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .shell {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }

  .brand small {
    display: none;
  }

  .panel {
    width: auto;
    max-width: 100%;
    padding: 20px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.12;
    word-break: break-all;
  }

  .lead {
    word-break: break-all;
  }

  .service-card,
  .account-security-panel,
  .account-password-form {
    grid-template-columns: 1fr;
  }

  .account-security-panel .button,
  .account-password-form .button {
    min-width: 0;
  }

  .button {
    width: 100%;
  }
}

/* SolarNova black account theme, aligned with solarnova.cloud. */
:root {
  color-scheme: dark;
  --bg: #030504;
  --surface: rgba(13, 23, 20, 0.9);
  --ink: #f7fffb;
  --muted: #aec4bd;
  --line: rgba(64, 224, 255, 0.16);
  --green: #18d8df;
  --cyan: #18d8df;
  --blue: #5b8dff;
  --purple: #9c5cff;
  --magenta: #f012ff;
  --dark: #030504;
  --danger: #ff8aa0;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.98) 0%, rgba(3, 5, 4, 0.9) 48%, rgba(3, 5, 4, 0.22) 100%),
    linear-gradient(135deg, #030504 0%, #081714 54%, #14091a 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 20%, rgba(24, 216, 223, 0.12) 28%, transparent 36%),
    linear-gradient(35deg, transparent 0 58%, rgba(240, 18, 255, 0.1) 64%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(24, 216, 223, 0.11) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(91, 141, 255, 0.09) 0 1px, transparent 1px 86px);
  animation: accountGridDrift 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 50%;
  right: 8%;
  z-index: -1;
  width: min(420px, 38vw);
  height: min(420px, 38vw);
  transform: translateY(-50%);
  border: 1px solid rgba(24, 216, 223, 0.2);
  border-radius: 50%;
  background: url("/assets/solarnova-logo.png") center / 62% auto no-repeat;
  filter: drop-shadow(0 0 34px rgba(24, 216, 223, 0.26));
  opacity: 0.68;
  animation: accountSolarFloat 7s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom-color: rgba(24, 216, 223, 0.16);
  background: rgba(3, 5, 4, 0.82);
  backdrop-filter: blur(16px);
}

.brand-mark {
  border: 1px solid rgba(24, 216, 223, 0.28);
  background: #000;
  box-shadow: 0 10px 32px rgba(24, 216, 223, 0.18);
}

.brand small,
.nav a,
.lead,
.panel-note,
.check,
.service-card small,
.account-meta {
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(24, 216, 223, 0.32);
  background: rgba(24, 216, 223, 0.08);
}

.shell {
  position: relative;
}

.copy {
  padding: 20px 0;
}

.eyebrow {
  color: var(--green);
}

.eyebrow::before {
  background: var(--green);
  box-shadow: 0 0 18px rgba(24, 216, 223, 0.52);
}

h1 {
  color: #ffffff;
  text-shadow:
    0 0 22px rgba(24, 216, 223, 0.3),
    0 14px 46px rgba(0, 0, 0, 0.72);
}

.lead {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}

.panel,
.service-card {
  border-color: rgba(24, 216, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 25, 22, 0.95), rgba(5, 10, 9, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 40%, rgba(240, 18, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: accountPanelSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.panel > * {
  position: relative;
}

label span,
.panel-note strong,
.service-card strong {
  color: var(--ink);
}

input,
select,
textarea {
  border-color: rgba(24, 216, 223, 0.18);
  background: rgba(2, 7, 6, 0.78);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(24, 216, 223, 0.62);
  box-shadow: 0 0 0 3px rgba(24, 216, 223, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(174, 196, 189, 0.72);
}

.button {
  border-color: rgba(24, 216, 223, 0.42);
  background: linear-gradient(135deg, rgba(240, 18, 255, 0.92), rgba(24, 216, 223, 0.94));
  box-shadow: 0 18px 44px rgba(24, 216, 223, 0.16);
  color: #03100c;
}

.button.secondary {
  border-color: rgba(24, 216, 223, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.status {
  border: 1px solid rgba(24, 216, 223, 0.24);
  background: rgba(24, 216, 223, 0.1);
  color: #9eefff;
}

.status.error {
  border-color: rgba(255, 138, 160, 0.28);
  background: rgba(255, 138, 160, 0.12);
  color: var(--danger);
}

.service-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(24, 216, 223, 0.46);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(24, 216, 223, 0.12);
  transform: translateY(-2px);
}

.pill {
  border: 1px solid rgba(240, 18, 255, 0.24);
  background: rgba(240, 18, 255, 0.1);
  color: #ff9cff;
}

@keyframes accountGridDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 280px 0, 84px 0, 0 86px, 86px 0; }
}

@keyframes accountSolarFloat {
  0%, 100% { transform: translateY(-50%) translate3d(0, 0, 0); }
  50% { transform: translateY(-50%) translate3d(0, -14px, 0); }
}

@keyframes accountPanelSweep {
  0%, 35% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 4, 0.98), rgba(3, 5, 4, 0.88)),
      linear-gradient(135deg, #030504 0%, #081714 56%, #14091a 100%);
  }

  body::after {
    top: auto;
    right: 50%;
    bottom: 28px;
    width: 230px;
    height: 230px;
    transform: translateX(50%);
    opacity: 0.46;
  }

  .shell {
    padding-bottom: 190px;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .shell,
  .panel,
  .form-stack,
  .button-row {
    min-width: 0;
  }

  h1 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .lead {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .button-row {
    display: grid;
  }

  .topbar-inner,
  .shell {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
  }

  .panel {
    box-sizing: border-box !important;
    inline-size: min(342px, calc(100vw - 48px)) !important;
    width: min(342px, calc(100vw - 48px)) !important;
    max-width: min(342px, calc(100vw - 48px)) !important;
    margin-right: 0 !important;
    justify-self: start !important;
  }
}

.check a,
.legal-document a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 216, 223, 0.5);
}

.check a:hover,
.check a:focus-visible,
.legal-document a:hover,
.legal-document a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(240, 18, 255, 0.8);
  outline: none;
}

.legal-shell {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  align-items: start;
}

.legal-document {
  max-width: 820px;
}

.legal-document .panel-note {
  margin-bottom: 24px;
}

.legal-section {
  padding: 20px 0;
  border-top: 1px solid rgba(24, 216, 223, 0.14);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.service-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(24, 216, 223, 0.18);
  border-radius: 8px;
  background: rgba(2, 7, 6, 0.54);
}

.service-checks legend {
  padding: 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.service-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.service-checks input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.section-subtitle {
  margin-top: 26px;
}

.tenant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.tenant-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(24, 216, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 25, 22, 0.88), rgba(5, 10, 9, 0.96));
}

.tenant-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.tenant-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

/* SolarNova Cloud 2026-06 platform light override. */
:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #0d2742;
  --muted: #5d7188;
  --line: #d8eaff;
  --green: #0aa6a6;
  --cyan: #1976d2;
  --blue: #1976d2;
  --purple: #1976d2;
  --magenta: #0aa6a6;
  --dark: #0d2742;
  --danger: #b42335;
  --shadow: 0 18px 48px rgba(28, 88, 140, 0.12);
}

body {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 58%, #f8fbff 100%);
  color: var(--ink);
}

body::before,
body::after {
  display: none;
}

.topbar {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.brand-mark {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.12);
}

.brand small,
.nav a,
.lead,
.panel-note,
.check,
.service-card small,
.account-meta {
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: #edf7ff;
}

.eyebrow {
  color: var(--green);
}

.eyebrow::before {
  background: var(--green);
  box-shadow: none;
}

h1 {
  color: var(--ink);
  text-shadow: none;
}

.lead {
  text-shadow: none;
}

.panel,
.service-card,
.tenant-card,
.account-security-panel,
.account-password-panel,
.service-contract-panel {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.panel::before {
  display: none;
}

label span,
.panel-note strong,
.service-card strong {
  color: var(--ink);
}

label span em {
  margin-left: 6px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

input,
select,
textarea {
  border-color: var(--line);
  background: #fbfdff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7ab7f0;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: #8aa0b8;
}

.button {
  border-color: #1976d2;
  background: #1976d2;
  box-shadow: 0 12px 28px rgba(25, 118, 210, 0.18);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.status {
  border: 1px solid #bde7ee;
  background: #effcff;
  color: #105f68;
}

.status.error {
  border-color: #ffd0d6;
  background: #fff3f5;
  color: var(--danger);
}

.service-category,
.service-contract-panel small,
.tenant-card span {
  border-color: #bde7ee;
  color: var(--green);
}

.service-card em,
.plan-chip-row span,
.account-security-panel span,
.account-password-copy span {
  color: var(--muted);
}

.service-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.service-state.is-ready {
  border-color: #bde7ee;
  color: #087d7d;
  background: #effcff;
}

.service-state.is-setup,
.service-state.is-preparing {
  border-color: #dbe7ff;
  color: #3957b8;
  background: #f3f6ff;
}

.service-state.is-not-contracted {
  border-color: #e3e8ef;
  color: #65758a;
  background: #f8fafc;
}

.service-checks {
  border-color: var(--line);
  background: #f8fbff;
}

.service-checks legend {
  color: var(--green);
}

.service-checks label {
  color: var(--ink);
}

.check a,
.legal-document a {
  color: var(--blue);
  border-bottom-color: rgba(25, 118, 210, 0.32);
}

.check a:hover,
.check a:focus-visible,
.legal-document a:hover,
.legal-document a:focus-visible {
  color: #0d47a1;
  border-bottom-color: #0d47a1;
}

.site-admin-shell {
  grid-template-columns: minmax(280px, 0.48fr) minmax(520px, 0.95fr);
  align-items: start;
}

.site-admin-panel {
  min-width: 0;
}

.panel-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-service-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-service-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-service-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-service-card h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.admin-meta-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-meta-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-meta-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-meta-grid a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.unit-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 3px 5px 3px 0;
  padding: 3px 8px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.unit-pill.is-active {
  border-color: #bde7ee;
  background: #effcff;
  color: #087d7d;
}

.unit-pill.is-free {
  border-color: #bdebdc;
  background: #effaf7;
  color: #08755f;
}

.admin-actions,
.backup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-management-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.admin-management-panel h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.admin-management-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-management-panel small {
  display: block;
  margin-top: 6px;
  color: #5d7188;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-adapter-summary {
  margin: -4px 0 16px;
  padding: 14px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-adapter-summary header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-adapter-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-adapter-summary pre {
  max-height: 220px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #ffffff;
  color: #0d2742;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-backups {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-backups h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}

.backup-row {
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #edf4ff;
  color: var(--muted);
  font-size: 13px;
}

.admin-organization-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-organization-card {
  padding: 18px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 112, 169, 0.08);
}

.admin-organization-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-organization-card h3 {
  margin: 6px 0 2px;
  color: #0d2742;
  font-size: 22px;
}

.admin-organization-card h4 {
  margin: 0 0 10px;
  color: #0d2742;
  font-size: 15px;
}

.admin-organization-card header small {
  color: #5d7188;
  overflow-wrap: anywhere;
}

.admin-organization-services,
.admin-organization-members {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf4ff;
}

.service-grant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-grant-row {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.service-grant-row strong {
  display: block;
  margin-bottom: 6px;
  color: #0d2742;
  font-size: 14px;
}

.admin-member-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-member-row .admin-actions {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 58%, #f8fbff 100%);
  }

  .site-admin-shell,
  .admin-meta-grid,
  .admin-management-panel {
    grid-template-columns: 1fr;
  }

  .shell {
    padding-bottom: 48px;
  }
}

@media (max-width: 520px) {
  .panel-heading-row,
  .admin-service-card header {
    display: grid;
  }

  .site-admin-shell .panel {
    inline-size: min(342px, calc(100vw - 48px)) !important;
  }
}

.tenant-card small {
  color: var(--muted);
  line-height: 1.5;
}

.account-admin-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(24, 216, 223, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 25, 22, 0.72), rgba(8, 13, 15, 0.84));
}

.account-admin-panel h2 {
  margin: 0;
  font-size: 22px;
}

.account-admin-panel .panel-note {
  margin-bottom: 12px;
}

.account-admin-panel .service-list {
  margin-top: 12px;
}

#account-admin-members {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.popup-auth {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(240, 18, 255, 0.18), transparent 34%),
    radial-gradient(circle at 8% 86%, rgba(24, 216, 223, 0.2), transparent 32%),
    #07101f;
}

body.popup-auth .topbar,
body.popup-auth .copy,
body.popup-auth .button-row .secondary {
  display: none;
}

body.popup-auth .shell {
  width: min(100% - 32px, 430px);
  min-height: 100vh;
  padding: 20px 0;
  grid-template-columns: 1fr;
  place-items: center;
}

body.popup-auth .panel {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 20, 40, 0.94);
  color: #f7fbff;
}

body.popup-auth .panel h2,
body.popup-auth .popup-complete-panel h1 {
  color: #f7fbff;
}

body.popup-auth .panel-note,
body.popup-auth label span {
  color: rgba(230, 239, 255, 0.72);
}

body.popup-auth input {
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

body.popup-auth .button-row {
  grid-template-columns: 1fr;
}

body.popup-auth.popup-auth-complete .panel {
  text-align: center;
}

@media (max-width: 900px) {
  .tenant-grid {
    grid-template-columns: 1fr;
  }

  #account-admin-members {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-document {
    max-width: none;
  }
}

/* 2026-06-10 Cloud account integration polish: SolarNova light baseline. */
:root {
  color-scheme: light;
  --bg: #f5faff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #0b2545;
  --muted: #526a86;
  --line: #cfe4ff;
  --green: #10a89e;
  --cyan: #0d7fea;
  --blue: #0d7fea;
  --violet: #0d7fea;
  --magenta: #10a89e;
  --dark: #0b2545;
  --danger: #c2415a;
  --shadow: 0 24px 64px rgba(31, 112, 169, 0.12);
}

body {
  background:
    radial-gradient(circle at 82% 12%, rgba(13, 127, 234, 0.13), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(16, 168, 158, 0.12), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 56%, #ffffff 100%);
  color: var(--ink);
}

body::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 127, 234, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 127, 234, 0.05) 1px, transparent 1px);
  background-size: 78px 78px;
  animation: none;
}

body::after {
  display: none;
}

.topbar {
  border-bottom-color: rgba(169, 216, 246, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(45, 112, 163, 0.08);
}

.brand-mark {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 127, 234, 0.12);
}

.brand small,
.nav a,
.lead,
.panel-note,
.check,
.service-card small,
.account-meta,
.account-overview small,
.account-security-panel span,
.account-password-copy span {
  color: var(--muted);
  text-shadow: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
  border-color: #b9dfff;
  background: rgba(13, 127, 234, 0.07);
}

.eyebrow {
  color: var(--green);
}

.eyebrow::before {
  background: var(--green);
  box-shadow: none;
}

h1 {
  color: #0756b7;
  text-shadow: none;
}

.lead {
  text-shadow: none;
}

.panel,
.service-card,
.account-admin-panel,
.account-security-panel,
.account-password-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: none;
}

.panel::before {
  display: none;
}

label span,
.panel-note strong,
.service-card strong,
.account-overview strong,
.account-security-panel strong,
.account-password-copy strong {
  color: var(--ink);
}

input,
select,
textarea {
  border-color: #bfd9f4;
  background: #ffffff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 127, 234, 0.78);
  box-shadow: 0 0 0 3px rgba(13, 127, 234, 0.13);
}

input::placeholder,
textarea::placeholder {
  color: #7d93ab;
}

.button {
  border-color: #0d7fea;
  background: linear-gradient(135deg, #0d7fea, #10a89e);
  box-shadow: 0 16px 34px rgba(13, 127, 234, 0.18);
  color: #ffffff;
}

.button.secondary {
  border-color: #b9dfff;
  background: #ffffff;
  color: #0756b7;
}

.status {
  border-color: #b9dfff;
  background: #eef7ff;
  color: #0756b7;
}

.status.error {
  border-color: rgba(194, 65, 90, 0.28);
  background: rgba(194, 65, 90, 0.08);
  color: var(--danger);
}

.service-category,
.pill {
  border-color: #b9dfff;
  background: #eef7ff;
  color: #0756b7;
}

.service-card:hover {
  border-color: #a9d8f6;
  box-shadow: 0 20px 46px rgba(31, 112, 169, 0.14);
  transform: translateY(-2px);
}

.service-card.is-coming-soon {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.service-card.is-uncontracted {
  border-style: dashed;
  background: #fbfdff;
}

.service-checks {
  border-color: #d7e9fb;
  background: #f7fbff;
}

.service-checks legend {
  color: var(--green);
}

.service-checks label {
  color: var(--ink);
}

.account-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.account-overview span {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid #d7e9fb;
  border-radius: 8px;
  background: #f7fbff;
}

.account-shell {
  align-items: start;
}

.account-shell .copy {
  position: sticky;
  top: 96px;
}

.account-shell h1 {
  font-size: clamp(44px, 5.4vw, 72px);
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 80% 8%, rgba(13, 127, 234, 0.11), transparent 24%),
      linear-gradient(180deg, #f7fbff 0%, #eef7ff 56%, #ffffff 100%);
  }

  .shell {
    padding-bottom: 48px;
  }

  .account-shell .copy {
    position: static;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .shell {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .panel {
    inline-size: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .account-overview {
    grid-template-columns: 1fr;
  }
}

.check a,
.legal-document a {
  color: var(--blue);
  border-bottom-color: rgba(13, 127, 234, 0.42);
}

.check a:hover,
.check a:focus-visible,
.legal-document a:hover,
.legal-document a:focus-visible {
  color: #064f9e;
  border-bottom-color: rgba(13, 127, 234, 0.72);
}

/* 2026-06-11 Cloud product alignment: show rollout/access value before technical login details. */
.copy {
  max-width: 660px;
}

.account-shell .copy {
  padding-top: 16px;
}

.panel h2 {
  color: #0b5fc2;
}

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

.account-overview span {
  min-height: 92px;
  align-content: start;
}

.service-card {
  position: relative;
}

.service-card > div {
  min-width: 0;
}

.service-category,
.service-state {
  vertical-align: top;
}

.service-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 0 0 8px 6px;
  padding: 3px 8px;
  border: 1px solid #b9dfff;
  border-radius: 999px;
  background: #f3f9ff;
  color: #0756b7;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}

.service-state.is-ready {
  border-color: #bdebdc;
  background: #effaf7;
  color: #08755f;
}

.service-state.is-setup {
  border-color: #f4d795;
  background: #fff9eb;
  color: #8a5a00;
}

.service-state.is-preparing {
  border-color: #b9dfff;
  background: #eef7ff;
  color: #0756b7;
}

.service-state.is-not-contracted {
  border-color: #d7e2ee;
  background: #f6f8fb;
  color: #5b7088;
}

.service-state.is-free-granted {
  border-color: #bdebdc;
  background: #effaf7;
  color: #08755f;
}

.service-card em {
  color: #5d7690;
}

.account-admin-panel .panel-note small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.account-security-panel {
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
}

.account-password-panel {
  background: #ffffff;
}

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

@media (max-width: 620px) {
  .account-overview {
    grid-template-columns: 1fr;
  }

  .service-category,
  .service-state {
    margin-right: 4px;
  }

  .service-state {
    margin-left: 0;
  }
}

/* 2026-06-11 Cloud dashboard app UI. */
body.dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f6fbff 0%, #edf7ff 42%, #ffffff 100%);
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.dashboard-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.sidebar-section,
.dashboard-card,
.dashboard-kpis article,
.dashboard-section,
.identity-card {
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 112, 169, 0.08);
}

.sidebar-section {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.sidebar-label {
  color: #0aa6a6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-sidebar a {
  min-height: 38px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #0d2742;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus-visible {
  background: #eef7ff;
  color: #0756b7;
  outline: none;
}

.sidebar-status strong,
.sidebar-status small {
  display: block;
}

.sidebar-status strong {
  color: #0d2742;
  font-size: 16px;
}

.sidebar-status small {
  color: #5d7188;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: end;
}

.dashboard-header h1 {
  max-width: 760px;
  color: #0756b7;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.dashboard-header p {
  max-width: 820px;
  margin: 12px 0 0;
  color: #5d7188;
  font-size: 14px;
  line-height: 1.8;
}

.identity-card {
  padding: 16px;
  display: grid;
  gap: 5px;
}

.identity-card span,
.dashboard-kpis span,
.dashboard-card h3,
.compact-def-list dt {
  color: #0aa6a6;
  font-size: 12px;
  font-weight: 900;
}

.identity-card strong {
  color: #0d2742;
  font-size: 20px;
}

.identity-card small,
.dashboard-kpis small {
  color: #5d7188;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.dashboard-kpis article {
  min-height: 112px;
  padding: 16px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.dashboard-kpis strong {
  color: #0d2742;
  font-size: 28px;
  line-height: 1.1;
}

.dashboard-section {
  padding: 18px;
}

.section-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.dashboard-card h2,
.dashboard-card h3 {
  margin: 0;
  color: #0d2742;
}

.section-heading p,
.dashboard-card p,
.dashboard-card small,
.inline-status {
  color: #5d7188;
  font-size: 13px;
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

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

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

.dashboard-card {
  padding: 16px;
}

.compact-form {
  display: grid;
  gap: 12px;
}

.compact-form .button {
  justify-self: start;
}

.compact-checks {
  margin: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-grid label,
.toggle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: #0d2742;
  font-size: 13px;
  font-weight: 800;
}

.check-grid input,
.toggle-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #1976d2;
}

.dashboard-card-list,
.member-table {
  margin-top: 0;
}

.member-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.member-row,
.compact-row {
  padding: 12px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.admin-member-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-member-row .admin-actions {
  justify-content: flex-end;
}

.member-row strong,
.compact-row strong {
  display: block;
  color: #0d2742;
  font-size: 15px;
}

.member-row small,
.member-row em,
.compact-row small {
  display: block;
  margin-top: 4px;
  color: #5d7188;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-row {
  display: grid;
  gap: 10px;
}

.compact-row input[readonly] {
  font-size: 12px;
  background: #ffffff;
}

.tenant-grid.dashboard-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.dashboard-page .tenant-card {
  min-height: 112px;
  box-shadow: none;
}

.dashboard-page .account-admin-panel,
.dashboard-page .account-password-panel,
.dashboard-page .account-security-panel {
  margin-top: 0;
  background: #ffffff;
}

.dashboard-page .account-security-panel {
  display: grid;
  align-content: space-between;
  grid-template-columns: 1fr;
}

.dashboard-page .account-password-form {
  grid-template-columns: 1fr;
}

.forced-password-panel {
  margin-bottom: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid #f4d795;
  border-radius: 8px;
  background: #fff9eb;
}

.forced-password-panel strong {
  color: #8a5a00;
}

.forced-password-panel span {
  color: #6f5b22;
  font-size: 13px;
  line-height: 1.6;
}

body.password-change-required #account-service-section .service-card {
  border-style: dashed;
}

.service-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: #5d7188;
  font-size: 12px;
  font-weight: 800;
}

.service-legend span {
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1976d2;
}

.legend-dot.is-free {
  background: #0aa6a6;
}

.legend-dot.is-preparing {
  background: #8a5a00;
}

.site-admin-auth-pending .topbar,
.site-admin-auth-pending .dashboard-shell {
  visibility: hidden;
}

.dashboard-toolbar {
  margin-bottom: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.policy-card {
  display: grid;
  gap: 10px;
}

.compact-def-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.compact-def-list div {
  padding: 10px;
  border: 1px solid #e3f0ff;
  border-radius: 8px;
  background: #f8fbff;
}

.compact-def-list dd {
  margin: 3px 0 0;
  color: #0d2742;
  font-size: 13px;
}

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(6, 18, 34, 0.62);
  backdrop-filter: blur(8px);
}

.admin-confirm-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #b8dcff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(13, 39, 66, 0.25);
}

.admin-confirm-dialog h2 {
  margin: 0 0 14px;
  color: #0d2742;
  font-size: 22px;
}

.admin-confirm-dialog p {
  margin: 0 0 16px;
  color: #5d7188;
  font-size: 14px;
  line-height: 1.7;
}

.admin-confirm-dialog label span {
  color: #0d2742;
}

.admin-confirm-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-confirm-summary div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-confirm-summary dt {
  color: #0aa6a6;
  font-size: 12px;
  font-weight: 900;
}

.admin-confirm-summary dd {
  margin: 0;
  color: #0d2742;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-confirm-dialog textarea {
  min-height: 96px;
}

.admin-confirm-dialog input,
.admin-confirm-dialog textarea {
  border-color: #b8dcff;
  background: #ffffff;
  color: #0d2742;
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar .sidebar-section:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .dashboard-sidebar a {
    min-height: 34px;
  }
}

@media (max-width: 860px) {
  .dashboard-header,
  .dashboard-kpis,
  .dashboard-grid.two,
  .dashboard-grid.three,
  .dashboard-toolbar,
  .service-grant-grid,
  .admin-member-row,
  .tenant-grid.dashboard-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 520px) {
  .dashboard-shell {
    width: calc(100vw - 32px);
    padding-top: 16px;
  }

  .dashboard-section,
  .dashboard-card,
  .dashboard-kpis article,
  .identity-card {
    padding: 14px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-21 SolarNovaCloud UI/UX design system implementation. */
:root {
  --sn-canvas: #f8fbff;
  --sn-canvas-blue: #eef8ff;
  --sn-surface: #ffffff;
  --sn-surface-soft: #f4faff;
  --sn-primary: #0877ea;
  --sn-primary-deep: #043e9e;
  --sn-cyan: #00a4b8;
  --sn-navy: #062541;
  --sn-text: #102033;
  --sn-muted: #607086;
  --sn-border: #d6e6f7;
  --sn-border-strong: #a9d8f6;
  --sn-success: #08755f;
  --sn-warning: #76530a;
  --sn-danger: #b9304f;
  --sn-radius-panel: 16px;
  --sn-radius-section: 20px;
  --sn-radius-control: 10px;
  --sn-shadow: 0 20px 58px rgba(8, 64, 127, 0.1);
  --sn-shadow-soft: 0 12px 34px rgba(8, 64, 127, 0.07);
}

body.dashboard-page,
body.account-dashboard-page,
body.site-admin-dashboard-page {
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(8, 119, 234, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 119, 234, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--sn-canvas-blue) 44%, var(--sn-canvas) 100%);
  background-size: 84px 84px, 84px 84px, auto;
  color: var(--sn-text);
}

body.dashboard-page::before,
body.dashboard-page::after {
  display: none;
}

.dashboard-topbar {
  border-bottom: 1px solid rgba(214, 230, 247, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(8, 64, 127, 0.07);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1280px;
}

.brand {
  color: var(--sn-navy);
}

.brand-mark {
  border-color: var(--sn-border);
  border-radius: var(--sn-radius-control);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 119, 234, 0.12);
}

.brand small,
.nav a,
.dashboard-header p,
.section-heading p,
.dashboard-card p,
.dashboard-card small,
.identity-card small,
.dashboard-kpis small,
.member-row small,
.member-row em,
.compact-row small,
.inline-status {
  color: var(--sn-muted);
}

.nav a {
  border-radius: var(--sn-radius-control);
}

.nav a:hover,
.nav a:focus-visible,
.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus-visible {
  border-color: var(--sn-border-strong);
  background: var(--sn-canvas-blue);
  color: var(--sn-primary-deep);
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 164, 184, 0.38);
  outline-offset: 3px;
}

.dashboard-shell {
  width: min(1440px, calc(100% - 40px));
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
}

.dashboard-sidebar {
  gap: 16px;
}

.sidebar-section,
.dashboard-section,
.dashboard-card,
.dashboard-kpis article,
.identity-card,
.member-row,
.compact-row,
.admin-organization-card,
.admin-service-card,
.admin-confirm-dialog {
  border-color: var(--sn-border);
  border-radius: var(--sn-radius-panel);
  background: var(--sn-surface);
  box-shadow: var(--sn-shadow-soft);
}

.dashboard-section {
  padding: 22px;
  border-radius: var(--sn-radius-section);
}

.dashboard-main {
  gap: 22px;
}

.dashboard-header {
  padding: 22px;
  border: 1px solid var(--sn-border);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(8, 119, 234, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f3faff);
  background-size: 56px 56px, auto;
  box-shadow: var(--sn-shadow);
}

.dashboard-header h1,
h1,
.section-heading h2,
.dashboard-card h2,
.dashboard-card h3,
.identity-card strong,
.member-row strong,
.compact-row strong,
.admin-organization-card h3,
.admin-organization-card h4,
.admin-service-card h3 {
  color: var(--sn-navy);
}

.dashboard-header h1 {
  font-size: clamp(34px, 4.3vw, 56px);
}

.eyebrow,
.sidebar-label,
.dashboard-kpis span,
.dashboard-card h3,
.identity-card span,
.compact-def-list dt {
  color: var(--sn-cyan);
}

.eyebrow::before {
  background: var(--sn-cyan);
  box-shadow: 0 0 0 5px rgba(0, 164, 184, 0.12);
}

.dashboard-kpis {
  padding: 10px;
  border: 1px solid var(--sn-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--sn-shadow-soft);
}

.dashboard-kpis article {
  border-color: transparent;
  border-radius: var(--sn-radius-panel);
  box-shadow: none;
}

.dashboard-kpis article + article {
  border-left: 1px solid rgba(214, 230, 247, 0.82);
}

.dashboard-kpis strong {
  color: var(--sn-primary-deep);
}

.section-heading {
  align-items: start;
}

.button {
  min-height: 46px;
  border-color: var(--sn-primary);
  border-radius: var(--sn-radius-control);
  background: linear-gradient(135deg, var(--sn-primary), var(--sn-primary-deep));
  box-shadow: 0 16px 34px rgba(8, 119, 234, 0.18);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--sn-border-strong);
  background: #ffffff;
  color: var(--sn-primary-deep);
  box-shadow: none;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: #bfd9f4;
  border-radius: var(--sn-radius-control);
  background: #ffffff;
  color: var(--sn-text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sn-primary);
  box-shadow: 0 0 0 3px rgba(8, 119, 234, 0.14);
}

.service-list {
  gap: 14px;
}

.service-card {
  border-radius: var(--sn-radius-panel);
  background:
    linear-gradient(90deg, rgba(8, 119, 234, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #fbfdff);
  background-size: 48px 48px, auto;
  box-shadow: none;
}

.service-card:hover {
  border-color: var(--sn-border-strong);
  box-shadow: var(--sn-shadow-soft);
}

.service-category,
.service-state,
.pill,
.service-legend span {
  border-radius: 999px;
}

.service-state.is-ready,
.service-state.is-free-granted,
.legend-dot.is-free {
  color: var(--sn-success);
}

.service-state.is-preparing,
.legend-dot.is-preparing,
.forced-password-panel strong {
  color: var(--sn-warning);
}

.dashboard-toolbar,
.compact-def-list div,
.member-row,
.compact-row,
.service-grant-row,
.account-overview span,
.admin-confirm-summary div {
  border-color: var(--sn-border);
  border-radius: var(--sn-radius-control);
  background: var(--sn-surface-soft);
}

.admin-confirm-overlay {
  background: rgba(6, 37, 65, 0.62);
}

.admin-confirm-dialog {
  border-radius: 20px;
}

.site-admin-auth-pending .topbar,
.site-admin-auth-pending .dashboard-shell {
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(8, 119, 234, 0.24);
  }

  .button.secondary:hover,
  .button.secondary:focus-visible {
    background: var(--sn-canvas-blue);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .service-card,
  .dashboard-sidebar a,
  .nav a {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .dashboard-shell {
    width: min(100% - 32px, 1024px);
  }

  .dashboard-sidebar .sidebar-section:first-child {
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .dashboard-header {
    padding: 18px;
  }

  .dashboard-kpis {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-kpis article + article {
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .dashboard-shell {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .dashboard-header,
  .dashboard-section {
    padding: 16px;
    border-radius: 18px;
  }

  .dashboard-header h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .sidebar-section {
    padding: 12px;
  }

  .dashboard-sidebar .sidebar-section:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-sidebar .sidebar-section:first-child .sidebar-label {
    grid-column: 1 / -1;
  }

  .dashboard-sidebar a,
  .nav a,
  .button {
    min-height: 44px;
  }

  .admin-confirm-summary div {
    grid-template-columns: 1fr;
  }
}
