:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0d1d1a;
  --panel-2: #102722;
  --line: #21443c;
  --text: #e9fff8;
  --muted: #a6c9bf;
  --green: #48e6ad;
  --yellow: #ffd166;
  --red: #ff6b6b;
  --blue: #72a7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--green);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 15, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--green);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.portal-language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #081714;
}

.portal-lang {
  min-width: 58px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.portal-lang.is-active {
  background: var(--green);
  color: #041410;
}

.nav a,
.link-button {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.link-button:hover {
  color: var(--text);
  border-color: var(--line);
}

.page {
  padding: 22px 0 42px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

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

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 22px;
}

.card {
  padding: 16px;
}

.hero h1,
.panel h1,
.panel h2,
.card h3 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

.hero p,
.panel p,
.card p {
  color: var(--muted);
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #081714;
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #041410;
  padding: 9px 13px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--green);
}

.btn.danger {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
  color: var(--muted);
}

.notice.ok {
  border-color: rgba(72, 230, 173, 0.55);
}

.notice.warn {
  border-color: rgba(255, 209, 102, 0.65);
}

.notice.bad {
  border-color: rgba(255, 107, 107, 0.65);
}

.metric {
  display: grid;
  gap: 4px;
  min-height: 82px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 28px;
}

.band-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.band {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #091915;
}

.band strong {
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 800;
  font-size: 12px;
}

.status-active {
  background: rgba(72, 230, 173, 0.14);
  color: var(--green);
}

.status-blocked {
  background: rgba(255, 107, 107, 0.14);
  color: var(--red);
}

.status-review,
.status-expired {
  background: rgba(255, 209, 102, 0.14);
  color: var(--yellow);
}

.license-list {
  display: grid;
  gap: 12px;
}

.license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
}

.license-key-reveal {
  position: relative;
  outline: none;
}

.license-key-reveal .license-key {
  filter: blur(5px);
  user-select: none;
  transition: filter .16s ease;
}

.license-key-reveal-hint {
  position: absolute;
  inset: 50% 12px auto;
  z-index: 1;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .16s ease;
}

.license-key-reveal:hover .license-key,
.license-key-reveal:focus .license-key {
  filter: none;
  user-select: text;
}

.license-key-reveal:hover .license-key-reveal-hint,
.license-key-reveal:focus .license-key-reveal-hint {
  opacity: 0;
}

.license-key-reveal:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.license-machine-label-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.license-fixed-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.license-machine-label-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.license-machine-label-form input {
  min-width: 0;
}

.license-machine-label-message {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.license-machine-label-message[data-state="ok"] {
  color: var(--green);
}

.license-machine-label-message[data-state="bad"] {
  color: var(--red);
}

.license-active,
.license-archive {
  display: grid;
  gap: 12px;
}

.license-archive {
  padding-top: 4px;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.section-heading .eyebrow,
.section-heading .muted {
  margin: 0;
}

.purchase-history-list {
  display: grid;
  gap: 14px;
}

.purchase-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.purchase-card h2 {
  margin: 0;
  font-size: 19px;
}

.purchase-card .toolbar {
  align-items: start;
}

.purchase-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.purchase-details div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
}

.purchase-details dt {
  color: var(--muted);
  font-size: 11px;
}

.purchase-details dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-profile-edit {
  display: grid;
  gap: 14px;
}

.account-support-request {
  display: grid;
  gap: 14px;
}

.account-profile-edit > .muted {
  margin: -6px 0 0;
}

.account-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-profile-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-support-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-support-message {
  grid-column: 1 / -1;
}

.account-profile-form input[readonly] {
  color: var(--muted);
  cursor: default;
}

.account-profile-submit {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  gap: 12px;
}

.account-profile-submit .notice {
  margin: 0;
}

@media (max-width: 820px) {
  .purchase-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .license-machine-label-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .purchase-details {
    grid-template-columns: 1fr;
  }

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

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

  .account-profile-submit {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (hover: none) {
  .license-key-reveal .license-key {
    filter: none;
    user-select: text;
  }

  .license-key-reveal-hint {
    display: none;
  }
}

.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-footer-inner,
.portal-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-footer-inner {
  justify-content: space-between;
}

.portal-service-status {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.portal-service-status summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.portal-service-status summary::-webkit-details-marker { display: none; }

.portal-service-status summary > i,
.portal-service-item > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8d9890;
  box-shadow: 0 0 0 3px rgba(141, 152, 144, .14);
}

.portal-service-status summary > span {
  display: grid;
  gap: 1px;
}

.portal-service-status summary strong { color: #ffffff; }
.portal-service-status summary small { color: #f2f6f3; font-size: 11px; letter-spacing: .04em; }
.portal-service-status summary > b {
  width: 7px;
  height: 7px;
  border-right: 1px solid #f2f6f3;
  border-bottom: 1px solid #f2f6f3;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.portal-service-status[open] summary > b { transform: rotate(225deg) translateY(-2px); }

.portal-service-status.is-operational summary > i,
.portal-service-item.is-operational > i {
  background: #48c78e;
  box-shadow: 0 0 0 3px rgba(72, 199, 142, .14);
}

.portal-service-status.is-maintenance summary > i,
.portal-service-status.is-degraded summary > i,
.portal-service-item.is-maintenance > i,
.portal-service-item.is-degraded > i {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .14);
}

.portal-service-status.is-incident summary > i,
.portal-service-item.is-incident > i,
.portal-service-item.is-unavailable > i {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .14);
}

.portal-service-list {
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 236px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171c24;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}

.portal-service-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 5px;
}
.portal-service-item > span { color: #ffffff; }
.portal-service-item > small { color: #f2f6f3; font-size: 11px; font-weight: 700; }

.portal-legal-links a {
  color: #79adff;
}

.form .terms-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.form .terms-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #5c9dff;
}

.form .terms-check a {
  color: #79adff;
}

.widget-stage {
  display: grid;
  grid-template-columns: minmax(0, 470px);
  align-items: start;
  justify-content: center;
  gap: 14px;
}

.dx-widget {
  width: min(100%, 470px);
  border: 1px solid #105a46;
  border-radius: 18px;
  overflow: hidden;
  background: #06150f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.dx-widget.is-small-display {
  transform: scale(0.90);
  transform-origin: top center;
}

.dx-widget.is-large-display {
  transform: scale(1.06);
  transform-origin: top center;
}

.widget-header {
  min-height: 46px;
  background: #0b2f26;
  border-bottom: 1px solid #0f493a;
  padding: 8px 14px 7px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.widget-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.widget-title-row h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  color: #e9fff6;
}

.widget-header p {
  margin: 4px 0 0;
  font-size: 10px;
  color: #69d7b4;
}

.life-badge {
  color: #42f5b6;
  font-weight: 800;
  font-size: 8px;
}

.widget-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.widget-actions a,
.widget-actions button,
.widget-footer button,
.widget-location button {
  border: 1px solid #46f2bd;
  background: #08241d;
  color: #e9fff6;
  border-radius: 0;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.widget-actions a:hover,
.widget-actions button:hover,
.widget-footer button:hover,
.widget-location button:hover {
  background: #46f2bd;
  color: #041410;
}

.widget-main {
  padding: 13px 14px 14px;
}

.time-zone {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 7px;
}

.time-zone strong {
  display: block;
  color: #42f5b6;
  font-size: 27px;
  line-height: 1;
}

.time-zone span {
  display: block;
  color: #d3ece5;
  font-size: 10px;
  margin-top: 3px;
}

.time-zone b {
  color: #ffd52e;
  font-size: 23px;
  line-height: 1.1;
  max-width: 150px;
  overflow-wrap: anywhere;
  text-align: right;
}

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

.solar-card {
  min-height: 39px;
  border: 1px solid #14b887;
  border-radius: 7px;
  background: #083c31;
  padding: 5px 8px;
  overflow: hidden;
}

.solar-card.wide {
  grid-column: span 2;
}

.solar-card span {
  display: block;
  color: #d8fff3;
  font-size: 9px;
}

.solar-card strong {
  display: block;
  margin-top: 1px;
  color: #46f2bd;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.solar-card small {
  display: block;
  margin-top: 1px;
  color: #ffd52e;
  font-size: 8px;
  min-height: 12px;
}

.band-zone {
  margin-top: 10px;
}

.band-zone h2 {
  margin: 0 0 7px;
  font-size: 12px;
  color: #e9fff6;
}

.band-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(28px, 1fr));
  gap: 2px;
}

.band-strip span {
  min-height: 20px;
  display: grid;
  place-items: center;
  background: #46f2bd;
  color: #07140f;
  font-size: 9px;
  font-weight: 900;
}

.band-strip span.open {
  background: #46f2bd;
  color: #07140f;
}

.band-strip span.watch {
  background: #ffb000;
  color: #07140f;
}

.band-strip span.closed {
  background: #ff6b5f;
  color: #07140f;
}

.band-strip span.muted {
  background: #263733;
  color: #b7d7cf;
}

.weather-zone {
  margin-top: 12px;
  color: #d8fff3;
}

.weather-zone p {
  margin: 4px 0;
  color: #d8fff3;
  font-size: 11px;
}

.weather-zone .storm-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #42f5b6;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42f5b6;
  box-shadow: 0 0 12px rgba(66, 245, 182, 0.9);
  flex: 0 0 auto;
}

.hf-noise-zone {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 7px;
}

.hf-noise-zone div {
  border: 1px solid #0e5b49;
  background: #092a23;
  min-height: 36px;
  padding: 6px 8px;
}

.hf-noise-zone strong,
.hf-noise-zone span {
  display: block;
}

.hf-noise-zone strong {
  color: #e9fff6;
  font-size: 10px;
}

.hf-noise-zone span {
  color: #ffd52e;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.noise-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.noise-controls select,
.noise-controls button {
  min-height: 28px;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  color: #e9fff6;
  padding: 3px 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.widget-location {
  display: none;
}

.widget-location label {
  gap: 3px;
  color: #97c2b5;
  font-size: 10px;
}

.widget-location input {
  min-height: 28px;
  border-radius: 0;
  padding: 4px 6px;
  font-size: 12px;
  background: #041410;
  border-color: #105a46;
}

.widget-footer {
  margin-top: 12px;
  min-height: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.footer-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.footer-buttons button {
  min-width: 38px;
  height: 24px;
  padding: 0 5px;
  font-size: 8px;
  background: #0d3a30;
  border-color: #0d3a30;
}

.widget-note {
  display: grid;
  gap: 3px;
  min-width: 138px;
  text-align: left;
  color: #83c9b5;
  font-size: 8px;
}

.widget-note .notice {
  display: contents;
}

.web-side-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
  opacity: 0.92;
}

.web-side-panel .panel {
  padding: 14px;
}

.web-side-panel .panel h2 {
  font-size: 16px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tool-list span {
  border: 1px solid #21443c;
  background: #091915;
  border-radius: 6px;
  padding: 7px;
  color: #d8fff3;
  font-size: 11px;
  font-weight: 700;
}

body.portal-page {
  background:
    linear-gradient(180deg, rgba(8, 32, 27, 0.96), rgba(5, 15, 13, 1) 320px),
    #050f0d;
}

body.portal-page .topbar {
  border-bottom: 1px solid #315f52;
  background: #08201b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

body.portal-page .topbar-inner {
  min-height: 58px;
}

body.portal-page .brand {
  color: #e9fff6;
  text-decoration: none;
}

body.portal-page .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #050f0d;
  color: #46f2bd;
  border-color: #46f2bd;
  font-size: 12px;
}

body.portal-page .nav a,
body.portal-page .link-button {
  min-height: 30px;
  border-radius: 4px;
  color: #b7d7cf;
  padding: 6px 9px;
  font-size: 13px;
}

body.portal-page .nav a:hover,
body.portal-page .link-button:hover {
  border-color: #46f2bd;
  color: #e9fff6;
}

body.portal-page .page {
  padding-top: 28px;
}

body.portal-page .panel,
body.portal-page .card,
body.portal-page .account-card,
body.portal-page .empty-state {
  border-color: #315f52;
  background: #092a23;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

body.portal-page .panel {
  padding: 18px;
}

body.portal-page .footer {
  border-top-color: #315f52;
  background: #050f0d;
}

.portal-auth {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: center;
}

.portal-hero {
  min-height: 470px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.portal-hero h1,
.portal-title h1 {
  margin: 0;
  color: #e9fff6;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.portal-hero p,
.portal-title p {
  max-width: 700px;
  margin: 0;
  color: #b7d7cf;
}

.mini-widget {
  width: min(100%, 470px);
  border-radius: 18px;
  overflow: hidden;
  background: #050f0d;
  border: 1px solid #315f52;
}

.mini-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #08201b;
  color: #e9fff6;
}

.mini-head span {
  width: 42px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid #46f2bd;
  background: #0c372c;
  color: #e9fff6;
  font-size: 8px;
  font-weight: 800;
}

.mini-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 4px;
}

.mini-clock {
  color: #46f2bd;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.mini-clock-row > strong {
  color: #ffd252;
  font-size: 19px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 14px 8px;
}

.mini-grid article,
.mini-summary-grid article {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #46f2bd;
  border-radius: 5px;
  background: #092a23;
}

.mini-grid span,
.mini-summary-grid span {
  color: #b7d7cf;
  font-size: 9px;
}

.mini-grid b,
.mini-summary-grid b {
  color: #e9fff6;
  font-size: 16px;
}

.mini-grid b {
  color: #46f2bd;
}

.mini-grid small {
  color: #ffd252;
  font-size: 8px;
}

.mini-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px 16px;
}

.mini-summary-grid article:nth-child(2) b {
  color: #46f2bd;
  font-size: 13px;
}

.auth-card {
  align-self: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  color: #aebfba;
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #315f52;
}

.direct-license-form textarea {
  min-height: 78px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.nav-access-label {
  color: #ffe8a3;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.portal-stack {
  display: grid;
  gap: 16px;
}

.portal-stack.narrow {
  max-width: 660px;
  margin: 0 auto;
}

.portal-stack.account-setup {
  max-width: 880px;
  margin: 0 auto;
}

.portal-title {
  padding: 4px 0 8px;
}

.portal-title.toolbar {
  align-items: center;
}

.license-list {
  gap: 14px;
}

.manual-license-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.8fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #315f52;
  border-bottom: 1px solid #315f52;
}

.manual-license-form label {
  display: block;
  color: #e9fff6;
  font-weight: 800;
}

.manual-license-form p {
  margin: 5px 0 0;
  font-size: 12px;
}

.manual-license-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.manual-license-form .btn {
  min-height: 42px;
  white-space: nowrap;
}

.license-list .card {
  padding: 16px;
  background: #092a23;
}

.license-list h3 {
  margin: 0;
  color: #e9fff6;
}

.license-list p {
  margin: 10px 0;
  color: #b7d7cf;
}

.license-key {
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  padding: 10px;
}

@media (max-width: 820px) {
  .manual-license-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.empty-state {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid #315f52;
  border-radius: 8px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid #315f52;
  border-radius: 8px;
}

.account-card.highlight {
  border-color: #46f2bd;
}

.account-card span {
  color: #97c2b5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-card strong {
  color: #ffd252;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-card small {
  color: #b7d7cf;
}

.account-panel {
  display: grid;
  gap: 14px;
}

.account-panel h2 {
  margin: 0;
}

.account-overview {
  display: grid;
  gap: 18px;
}

.account-profile-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 20px;
  border-bottom: 1px solid #315f52;
}

.account-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border: 1px solid #46f2bd;
  border-radius: 8px;
  background: #12372e;
  color: #ffd252;
  font-size: 24px;
  font-weight: 900;
}

.account-identity .eyebrow,
.account-section-heading .eyebrow {
  margin-bottom: 4px;
}

.account-identity h1 {
  margin: 0;
  color: #e9fff6;
  font-size: 38px;
  line-height: 1;
}

.account-identity p:last-child {
  margin: 7px 0 0;
  color: #b7d7cf;
  overflow-wrap: anywhere;
}

.account-header-actions {
  justify-content: flex-end;
}

.account-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #315f52;
  border-bottom: 1px solid #315f52;
  background: #071b17;
}

.account-status-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
}

.account-status-item + .account-status-item {
  border-left: 1px solid #315f52;
}

.account-status-item > div,
.account-status-item:not(:first-child) {
  display: grid;
  align-content: center;
  gap: 5px;
}

.account-status-item small {
  color: #97c2b5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-status-item strong:not(.status-pill) {
  color: #e9fff6;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.account-status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #46f2bd;
  box-shadow: 0 0 0 5px rgba(70, 242, 189, 0.1);
}

.account-status-item .status-pill {
  width: fit-content;
}

.account-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.account-section {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #092a23;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-section-heading h2 {
  margin: 0;
  color: #e9fff6;
  font-size: 21px;
}

.account-confirmed {
  border: 1px solid rgba(70, 242, 189, 0.58);
  border-radius: 4px;
  padding: 4px 7px;
  color: #46f2bd;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-detail-list {
  margin: 0;
  display: grid;
}

.account-detail-list > div {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(49, 95, 82, 0.72);
}

.account-detail-list dt {
  color: #97c2b5;
  font-size: 12px;
}

.account-detail-list dd {
  margin: 0;
  color: #e9fff6;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-license-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
}

.account-license-stats div {
  min-height: 76px;
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
}

.account-license-stats div + div {
  border-left: 1px solid #315f52;
}

.account-license-stats strong {
  color: #ffd252;
  font-size: 25px;
}

.account-license-stats span {
  color: #97c2b5;
  font-size: 11px;
}

.account-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #97c2b5;
  font-size: 12px;
}

.account-order-row strong {
  color: #e9fff6;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-license-summary .btn {
  justify-self: start;
}

.account-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-quick-actions a,
.account-quick-actions button {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #071b17;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-quick-actions a:hover,
.account-quick-actions button:hover {
  border-color: #46f2bd;
  background: #0a2c24;
}

.account-quick-actions span {
  color: #97c2b5;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-quick-actions strong {
  color: #ffd252;
  font-size: 18px;
}

.account-quick-actions small {
  color: #b7d7cf;
  font-size: 12px;
}

@media (max-width: 820px) {
  .account-profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-header-actions {
    justify-content: flex-start;
  }

  .account-status-strip,
  .account-content-grid,
  .account-quick-actions {
    grid-template-columns: 1fr;
  }

  .account-status-item + .account-status-item {
    border-top: 1px solid #315f52;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .account-identity {
    align-items: flex-start;
  }

  .account-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 19px;
  }

  .account-identity h1 {
    font-size: 30px;
  }

  .account-detail-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 0;
  }

  .account-detail-list dd {
    text-align: left;
  }
}

body.account-page {
  background: #0f1115;
  color: #d8dee8;
}

body.account-page .topbar {
  border-bottom-color: #303640;
  background: #12151a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

body.account-page .brand {
  color: #f4f7fb;
}

body.account-page .brand-mark {
  border-color: #5c9dff;
  background: #101a29;
  color: #79adff;
}

body.account-page .nav a,
body.account-page .link-button {
  color: #b8c0cc;
}

body.account-page .nav a:hover,
body.account-page .link-button:hover {
  border-color: #5c9dff;
  color: #ffffff;
}

body.account-page .footer {
  border-top-color: #303640;
  background: #0b0d10;
  color: #8993a2;
}

body.account-page .account-profile-header {
  border-bottom-color: #303640;
}

body.account-page .account-avatar {
  border-color: #5c9dff;
  background: #17243a;
  color: #f4c65d;
  box-shadow: 0 12px 30px rgba(29, 83, 166, 0.22);
}

body.account-page .account-identity .eyebrow,
body.account-page .account-section-heading .eyebrow {
  color: #79adff;
}

body.account-page .account-identity h1,
body.account-page .account-section-heading h2,
body.account-page .account-detail-list dd,
body.account-page .account-order-row strong,
body.account-page .account-status-item strong:not(.status-pill) {
  color: #f4f7fb;
}

body.account-page .account-identity p:last-child,
body.account-page .account-quick-actions small {
  color: #aeb7c5;
}

body.account-page .account-header-actions .btn.secondary {
  border-color: #46505e;
  background: #171b21;
  color: #e9edf4;
}

body.account-page .account-header-actions .btn.secondary:hover {
  border-color: #5c9dff;
  background: #1a2638;
}

body.account-page .account-status-strip {
  border-color: #303640;
  background: #12151a;
}

body.account-page .account-status-item + .account-status-item {
  border-color: #303640;
}

body.account-page .account-status-item small,
body.account-page .account-detail-list dt,
body.account-page .account-license-stats span,
body.account-page .account-order-row,
body.account-page .account-quick-actions span {
  color: #929dac;
}

body.account-page .account-status-dot {
  background: #45d6a6;
  box-shadow: 0 0 0 5px rgba(69, 214, 166, 0.12);
}

body.account-page .account-section {
  border-color: #343b46;
  background: #181c22;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body.account-page .account-confirmed {
  border-color: rgba(69, 214, 166, 0.55);
  color: #62ddb7;
}

body.account-page .account-detail-list > div {
  border-top-color: #303640;
}

body.account-page .account-license-stats {
  border-color: #343b46;
  background: #0f1216;
}

body.account-page .account-license-stats div + div {
  border-left-color: #343b46;
}

body.account-page .account-license-stats strong,
body.account-page .account-quick-actions strong {
  color: #f4c65d;
}

body.account-page .account-license-summary .btn {
  border-color: #5c9dff;
  background: #4b8df8;
  color: #07111f;
}

body.account-page .account-license-summary .btn:hover {
  background: #79adff;
}

body.account-page .account-quick-actions a,
body.account-page .account-quick-actions button {
  border-color: #343b46;
  background: #12151a;
}

body.account-page .account-quick-actions a:hover,
body.account-page .account-quick-actions button:hover {
  border-color: #5c9dff;
  background: #182334;
}

.auth-security-note {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 3px solid #5c9dff;
  color: #aeb7c5;
  font-size: 12px;
}

.two-factor-card {
  display: grid;
  gap: 14px;
}

.two-factor-card > p {
  margin: 0;
}

.security-code-input {
  max-width: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-cancel {
  padding: 0;
}

.account-security-section {
  display: grid;
  gap: 16px;
}

.two-factor-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #46505e;
  border-radius: 999px;
  color: #b8c0cc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.two-factor-lead {
  max-width: 760px;
  margin: 0;
  color: #aeb7c5;
}

.two-factor-start {
  max-width: 520px;
}

.two-factor-setup-key {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid #343b46;
  border-radius: 8px;
  background: #0f1216;
}

.two-factor-setup-key > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.two-factor-setup-key span,
.two-factor-setup-key small {
  color: #929dac;
  font-size: 11px;
}

.two-factor-setup-key code {
  color: #f4c65d;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.two-factor-setup-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.two-factor-setup-actions .form {
  width: min(100%, 520px);
}

.two-factor-recovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 198, 93, 0.58);
  border-radius: 8px;
  background: #211c0f;
}

.two-factor-recovery p {
  margin: 5px 0 0;
  color: #d5c38e;
  font-size: 12px;
}

.two-factor-recovery ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding-left: 22px;
}

.two-factor-recovery code {
  color: #fff1bf;
  font-size: 12px;
}

.two-factor-enabled-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.two-factor-enabled-row > strong {
  color: #62ddb7;
  font-size: 12px;
  white-space: nowrap;
}

.two-factor-management {
  border-top: 1px solid #343b46;
  padding-top: 12px;
}

.two-factor-management summary {
  color: #79adff;
  font-weight: 800;
  cursor: pointer;
}

.two-factor-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.two-factor-management-grid .form + .form {
  padding-left: 24px;
  border-left: 1px solid #343b46;
}

.btn.danger {
  border-color: #b9555f;
  background: #8c303a;
  color: #ffffff;
}

.btn.danger:hover {
  background: #ad3e49;
}

@media (max-width: 820px) {
  .two-factor-recovery,
  .two-factor-management-grid {
    grid-template-columns: 1fr;
  }

  .two-factor-management-grid .form + .form {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid #343b46;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .two-factor-setup-key,
  .two-factor-recovery ol {
    grid-template-columns: 1fr;
  }

  .two-factor-setup-actions,
  .two-factor-enabled-row {
    align-items: stretch;
    flex-direction: column;
  }

  .two-factor-enabled-row > strong {
    white-space: normal;
  }
}

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

.security-list span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  color: #e9fff6;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.client-dashboard {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-widget-column {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: start;
}

.widget-toolbar {
  min-height: 48px;
  align-items: center;
}

.widget-toolbar h1 {
  margin: 0;
  color: #e9fff6;
  font-size: 24px;
  line-height: 1;
}

.embedded-widget {
  width: 470px;
  height: 470px;
  display: block;
  border: 0;
  border-radius: 18px;
  background: #050f0d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.widget-frame-fit {
  --fixed-panel-scale: 1;
  width: 470px;
  height: 470px;
  overflow: hidden;
  border-radius: 18px;
  background: #050f0d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.widget-frame-fit .embedded-widget {
  transform: scale(var(--fixed-panel-scale));
  transform-origin: left top;
  box-shadow: none;
}

.widget-closed-panel {
  width: min(470px, 100%);
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #092a23;
}

.widget-closed-panel strong {
  color: #ffd252;
}

.widget-closed-panel[hidden] {
  display: none;
}

.dashboard-widget-column.is-widget-closed .embedded-widget {
  display: none;
}

.dashboard-widget-column.is-widget-closed .widget-closed-panel {
  display: grid;
}

.dashboard-widget-column.is-widget-closed .widget-closed-panel[hidden] {
  display: grid;
}

.dashboard-panel-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.action-tile {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.action-tile:hover {
  border-color: #46f2bd;
}

.action-tile span {
  color: #97c2b5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.action-tile strong {
  color: #ffd252;
  font-size: 22px;
  line-height: 1.1;
}

.action-tile small {
  color: #b7d7cf;
  font-size: 13px;
}

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

.dashboard-panel h2 {
  margin: 0;
}

.dashboard-panel.compact p {
  margin: 0;
}

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

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

.campaign-stats article {
  min-height: 102px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #092a23;
  padding: 14px;
}

.campaign-stats span {
  color: #97c2b5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-stats strong {
  color: #ffd252;
  font-size: 28px;
}

.campaign-template pre {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0;
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
  color: #dffff0;
  padding: 12px;
  white-space: pre-wrap;
}

.table-panel {
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid #315f52;
  padding: 9px 8px;
  color: #dffff0;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: #46f2bd;
  font-weight: 800;
}

/* Shared client portal theme. The widget and its PRO window use separate body classes. */
body.portal-page {
  --bg: #0f1115;
  --panel: #181c22;
  --panel-2: #1c222b;
  --line: #343b46;
  --text: #f4f7fb;
  --muted: #aeb7c5;
  --green: #5c9dff;
  --yellow: #f4c65d;
  background: #0f1115;
  color: #d8dee8;
}

body.portal-page .topbar {
  border-bottom-color: #303640;
  background: #12151a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

body.portal-page .brand {
  color: #f4f7fb;
}

body.portal-page .brand-mark {
  border-color: #5c9dff;
  background: #101a29;
  color: #79adff;
}

body.portal-page .nav a,
body.portal-page .link-button {
  color: #b8c0cc;
}

body.portal-page .nav a:hover,
body.portal-page .link-button:hover {
  border-color: #5c9dff;
  color: #ffffff;
}

body.portal-page .footer {
  border-top-color: #303640;
  background: #0b0d10;
  color: #8993a2;
}

body.portal-page a,
body.portal-page .eyebrow {
  color: #79adff;
}

body.portal-page .portal-hero h1,
body.portal-page .portal-title h1,
body.portal-page .widget-toolbar h1,
body.portal-page .license-list h3 {
  color: #f4f7fb;
}

body.portal-page .portal-hero > p:not(.eyebrow),
body.portal-page .portal-title p:not(.eyebrow),
body.portal-page .license-list p {
  color: #aeb7c5;
}

body.portal-page .panel,
body.portal-page .card,
body.portal-page .account-card,
body.portal-page .empty-state {
  border-color: #343b46;
  background: #181c22;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body.portal-page input,
body.portal-page select,
body.portal-page textarea {
  border-color: #46505e;
  background: #11151a;
  color: #f4f7fb;
}

body.portal-page input:focus,
body.portal-page select:focus,
body.portal-page textarea:focus {
  border-color: #5c9dff;
  outline: 2px solid rgba(92, 157, 255, 0.2);
  outline-offset: 1px;
}

body.portal-page .btn {
  border-color: #5c9dff;
  background: #4b8df8;
  color: #07111f;
}

body.portal-page .btn:hover {
  background: #79adff;
}

body.portal-page .btn.secondary {
  border-color: #46505e;
  background: #171b21;
  color: #e9edf4;
}

body.portal-page .btn.secondary:hover {
  border-color: #5c9dff;
  background: #1a2638;
}

body.portal-page .btn.danger {
  border-color: #ff6b6b;
  background: transparent;
  color: #ff8585;
}

body.portal-page .notice {
  border-color: #3d4653;
  background: #171d25;
  color: #b8c0cc;
}

body.portal-page .status-active {
  background: rgba(69, 214, 166, 0.14);
  color: #62ddb7;
}

body.portal-page .status-blocked {
  background: rgba(255, 107, 107, 0.14);
  color: #ff8585;
}

body.portal-page .status-review,
body.portal-page .status-expired {
  background: rgba(244, 198, 93, 0.14);
  color: #f4c65d;
}

body.portal-page .manual-license-form {
  border-color: #343b46;
}

body.portal-page .manual-license-form label {
  color: #f4f7fb;
}

body.portal-page .license-list .card {
  background: #181c22;
}

body.portal-page .license-key,
body.portal-page .campaign-template pre {
  border-color: #343b46;
  background: #0f1216;
  color: #cbd3df;
}

body.portal-page .account-card.highlight {
  border-color: #5c9dff;
}

body.portal-page .account-card span,
body.portal-page .action-tile span,
body.portal-page .campaign-stats span {
  color: #929dac;
}

body.portal-page .account-card strong,
body.portal-page .action-tile strong,
body.portal-page .campaign-stats strong,
body.portal-page .widget-closed-panel strong {
  color: #f4c65d;
}

body.portal-page .account-card small,
body.portal-page .action-tile small {
  color: #aeb7c5;
}

body.portal-page .security-list span,
body.portal-page .widget-closed-panel,
body.portal-page .campaign-stats article {
  border-color: #343b46;
  background: #181c22;
  color: #f4f7fb;
}

body.portal-page .action-tile:hover {
  border-color: #5c9dff;
  background: #1b222c;
}

body.portal-page .dashboard-tools span {
  border-color: #3d4653;
  background: #11151a;
  color: #d8dee8;
}

body.portal-page .table-wrap th,
body.portal-page .table-wrap td {
  border-bottom-color: #343b46;
  color: #d8dee8;
}

body.portal-page .table-wrap th {
  color: #79adff;
}

body.pro-page {
  background: #050f0d;
}

body.pro-page .topbar,
body.pro-page .footer {
  display: none;
}

body.pro-page .shell {
  width: auto;
}

body.pro-page .page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.pro-panel-fit {
  --fixed-panel-scale: 1;
  width: 660px;
  height: 420px;
  overflow: hidden;
  border-radius: 10px;
  background: #050f0d;
}

.mac-pro-panel {
  position: relative;
  width: 660px;
  height: 420px;
  border-radius: 10px;
  background: #050f0d;
  color: #e9fff6;
  overflow: hidden;
  transform: scale(var(--fixed-panel-scale));
  transform-origin: left top;
}

.pro-panel-head {
  height: 78px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.pro-panel-head h1 {
  margin: 0;
  color: #46f2bd;
  font-size: 21px;
  line-height: 28px;
}

.pro-panel-head p {
  margin: 4px 0 0;
  color: #97c2b5;
  font-size: 12px;
}

.pro-panel-head strong {
  width: 112px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 36px;
  background: #46f2bd;
  color: #050f0d;
  font-size: 8px;
}

.pro-summary-grid {
  position: absolute;
  left: 20px;
  top: 88px;
  width: 620px;
  height: 192px;
  display: grid;
  grid-template-columns: 210px 150px 1fr;
  gap: 12px;
}

.pro-callsign,
.pro-summary-grid article {
  min-height: 54px;
  background: #0a241e;
}

.pro-callsign {
  height: 64px;
  display: grid;
  place-items: center;
  color: #ffd252;
  font-size: 35px;
  font-weight: 800;
  overflow: hidden;
}

.pro-summary-grid article {
  padding: 7px 10px;
}

.pro-summary-grid article span {
  display: block;
  color: #46f2bd;
  font-size: 9px;
  font-weight: 800;
}

.pro-summary-grid article b {
  display: block;
  margin-top: 6px;
  color: #dffff0;
  font-size: 12px;
  font-weight: 500;
}

.pro-button-grid {
  position: absolute;
  left: 20px;
  top: 296px;
  width: 604px;
  display: grid;
  grid-template-columns: 92px 96px 96px 82px 84px 62px;
  gap: 10px 8px;
}

.pro-button-grid button,
.pro-ok {
  min-height: 26px;
  border: 1px solid #3aaa86;
  border-radius: 3px;
  background: #0c372c;
  color: #dffff0;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pro-button-grid button:nth-child(3),
.pro-button-grid button:nth-child(16) {
  background: #102d48;
  border-color: #4696dc;
  color: #dcf0ff;
}

.pro-button-grid button:nth-child(4),
.pro-button-grid button:nth-child(14) {
  background: #48121c;
  border-color: #ff6b5f;
  color: #ffe2dc;
}

.pro-button-grid button:nth-child(5),
.pro-button-grid button:nth-child(15) {
  background: #482b10;
  border-color: #aa823a;
  color: #ffebaa;
}

.pro-button-grid button:nth-child(6) {
  background: #243a10;
  border-color: #96d650;
  color: #e2ffcd;
}

.pro-button-grid button:nth-child(7) {
  background: #481010;
  border-color: #d25c48;
  color: #ffdcd2;
}

.pro-button-grid button:nth-child(8) {
  background: #1c2652;
  border-color: #60c8ff;
  color: #dcf0ff;
}

.pro-button-grid button:nth-child(10),
.pro-button-grid button:nth-child(13) {
  background: #084634;
  border-color: #46f2bd;
}

.pro-button-grid button:nth-child(11) {
  background: #322054;
  border-color: #b98cff;
  color: #eee2ff;
}

.pro-button-grid button:nth-child(12) {
  background: #2a2c2d;
  border-color: #788c88;
}

.pro-ok {
  position: absolute;
  right: 20px;
  bottom: 12px;
  width: 72px;
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 15, 13, 0.72);
}

.tool-modal[hidden] {
  display: none;
}

.tool-dialog {
  position: relative;
  width: min(620px, calc(100vw - 24px));
  max-height: min(88vh, 620px);
  overflow: auto;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #092a23;
  padding: 18px;
  color: #e9fff6;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.tool-modal[data-tool="dx-map"] .tool-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(94vh, 680px);
}

.tool-modal[data-tool="dx-radar"] .tool-dialog,
.tool-modal[data-tool="ibp"] .tool-dialog,
.tool-modal[data-tool="contest"] .tool-dialog,
.tool-modal[data-tool="expedition"] .tool-dialog,
.tool-modal[data-tool="antenna"] .tool-dialog,
.tool-modal[data-tool="pro-help"] .tool-dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: min(94vh, 700px);
}

.tool-modal[data-tool="contests-next"] .tool-dialog,
.tool-modal[data-tool="hf-noise"] .tool-dialog,
.tool-modal[data-tool="silent-band"] .tool-dialog,
.tool-modal[data-tool="muf"] .tool-dialog {
  width: min(700px, calc(100vw - 24px));
  max-height: min(94vh, 680px);
}

.subtool-modal {
  z-index: 70;
  background: rgba(2, 8, 7, 0.82);
}

.subtool-modal .tool-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(90vh, 620px);
}

.tool-dialog h2 {
  margin: 0 0 10px;
  color: #46f2bd;
}

.tool-dialog p {
  color: #b7d7cf;
}

[data-tool-body] {
  display: grid;
  gap: 12px;
}

[data-tool-body] > p,
.pro-note {
  margin: 0;
  color: #b7d7cf;
  font-size: 13px;
  line-height: 1.45;
}

.pro-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.pro-tool-tile,
.pro-help-grid article {
  min-height: 64px;
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
  padding: 9px;
}

.pro-tool-tile span,
.pro-help-grid span {
  color: #97c2b5;
  font-size: 11px;
  font-weight: 800;
}

.pro-tool-tile strong,
.pro-help-grid strong {
  color: #e9fff6;
  font-size: 15px;
  line-height: 1.15;
}

.pro-tool-tile.good,
.score-pill.good {
  border-color: #46f2bd;
}

.pro-tool-tile.warn,
.score-pill.warn {
  border-color: #ffb000;
}

.pro-tool-tile.bad,
.score-pill.bad {
  border-color: #ff6b5f;
}

.pro-table-wrap {
  max-height: 250px;
  overflow: auto;
  border: 1px solid #315f52;
  border-radius: 6px;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pro-table th,
.pro-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(49, 95, 82, 0.7);
  text-align: left;
  vertical-align: top;
}

.pro-table th {
  position: sticky;
  top: 0;
  background: #0c372c;
  color: #46f2bd;
  font-size: 11px;
}

.pro-table td {
  color: #dffff0;
}

.score-pill {
  display: inline-grid;
  min-width: 42px;
  min-height: 22px;
  place-items: center;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #081714;
  color: #e9fff6;
  font-weight: 800;
}

.pro-band-pills,
.pro-filter-row,
.pro-swatch-row,
.sdr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.pro-band-pills button,
.pro-swatch-row button {
  min-height: 26px;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #081714;
  color: #e9fff6;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pro-band-pills button.open {
  background: #46f2bd;
  color: #07140f;
}

.pro-band-pills button.watch {
  background: #ffb000;
  color: #07140f;
}

.pro-band-pills button.closed {
  background: #ff6b5f;
  color: #07140f;
}

.pro-band-pills button.is-active {
  outline: 2px solid #e9fff6;
  outline-offset: 1px;
}

.dx-map-shell {
  position: relative;
  aspect-ratio: 720 / 380;
  min-height: 300px;
  border: 1px solid #153f34;
  border-radius: 8px;
  overflow: hidden;
  background: #07140f;
  box-shadow: inset 0 0 0 1px rgba(70, 242, 189, 0.06);
}

.dx-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.dx-map-title {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 5;
  border-radius: 4px;
  background: rgba(5, 15, 13, 0.62);
  padding: 2px 6px;
  color: #46f2bd;
  font-size: 17px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.dx-zone-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  z-index: 2;
  display: grid;
  align-content: center;
  place-items: center;
  border: 2px solid rgba(70, 242, 189, 0.86);
  border-radius: 8px;
  background: rgba(12, 92, 66, 0.48);
  color: #ebfff7;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 18px rgba(70, 242, 189, 0.22);
}

.dx-zone-card.warn {
  border-color: rgba(255, 176, 0, 0.9);
  background: rgba(92, 70, 12, 0.52);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.18);
}

.dx-zone-card.bad {
  border-color: rgba(255, 107, 95, 0.88);
  background: rgba(72, 18, 28, 0.5);
  box-shadow: 0 0 18px rgba(255, 107, 95, 0.18);
}

.dx-zone-card span {
  font-size: 11px;
  font-weight: 900;
}

.dx-zone-card strong {
  font-size: 16px;
  line-height: 1;
}

.dx-station-marker {
  position: absolute;
  left: 53%;
  top: 35%;
  z-index: 3;
  width: 10px;
  height: 10px;
  border: 2px solid #050f0d;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 18px rgba(70, 242, 189, 0.5);
}

.dx-station-marker span {
  position: absolute;
  left: -10px;
  top: -52px;
  border-radius: 3px;
  background: rgba(5, 15, 13, 0.72);
  padding: 1px 4px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.dx-map-summary {
  min-height: 22px;
  margin-top: 7px;
  color: #ffd252;
  font-size: 12px;
  font-weight: 800;
}

.dx-map-summary strong {
  color: #ffd252;
}

.pro-filter-row label {
  display: inline-flex;
  min-height: 28px;
  grid-template-columns: none;
  gap: 5px;
  align-items: center;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  padding: 4px 8px;
  color: #dffff0;
  font-size: 12px;
}

.pro-filter-row input {
  width: auto;
  min-height: auto;
}

.radar-alert-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.radar-alert-settings label {
  display: inline-flex;
  width: auto;
  min-height: 34px;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  padding: 5px 8px;
  color: #dffff0;
  font-size: 12px;
  font-weight: 800;
}

.radar-alert-settings input,
.radar-alert-settings select {
  width: auto;
  min-height: 24px;
}

.mini-action {
  min-height: 24px;
  border: 1px solid #788c88;
  border-radius: 3px;
  background: #15231f;
  padding: 3px 7px;
  color: #dffff0;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.aurora-gauge {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(70, 242, 189, calc(var(--value) / 240)), transparent 58%),
    #050f0d;
}

.aurora-gauge strong {
  color: #e9fff6;
  font-size: 42px;
  line-height: 1;
}

.aurora-gauge span {
  color: #97c2b5;
  font-size: 12px;
  font-weight: 800;
}

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

.antenna-form-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-modal[data-tool="antenna"] .pro-table {
  min-width: 720px;
  font-size: 11px;
}

.antenna-report {
  min-height: 62px;
}

.pro-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pro-action-row > span {
  flex: 1 1 auto;
}

.tool-dialog:has([data-tool-body] > .pro-action-row [data-close-tool]) > .button-row {
  display: none;
}

.file-import {
  min-height: 42px;
  display: inline-grid;
  width: fit-content;
  border: 1px solid #46f2bd;
  border-radius: 6px;
  background: #050f0d;
  padding: 9px 12px;
  color: #46f2bd;
  font-weight: 800;
  cursor: pointer;
}

.file-import input {
  display: none;
}

.pro-report {
  margin: 0;
  white-space: pre-wrap;
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
  color: #dffff0;
  padding: 12px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.pro-color-preview {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #315f52;
  border-radius: 8px;
  background: #050f0d;
  padding: 14px;
}

.pro-color-preview strong {
  font-size: 26px;
  line-height: 1;
}

.pro-color-preview b {
  font-size: 22px;
  overflow-wrap: anywhere;
  text-align: right;
}

.pro-swatch-row span {
  width: 70px;
  color: #97c2b5;
  font-size: 12px;
  font-weight: 800;
}

.pro-swatch-row button {
  width: 34px;
  background: var(--swatch);
}

.sdr-row {
  justify-content: space-between;
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
  padding: 8px;
}

.sdr-row span {
  color: #b7d7cf;
  font-size: 12px;
}

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

.settings-check-row label {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid #315f52;
  border-radius: 6px;
  background: #050f0d;
  padding: 7px 9px;
  color: #e9fff6;
  font-size: 12px;
  font-weight: 800;
}

.settings-check-row input {
  width: auto;
  min-height: auto;
}

.settings-section-title {
  color: #c7e1da;
  font-size: 12px;
  font-weight: 800;
}

.settings-qth-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
}

.pro-filter-row .is-active {
  background: #46f2bd;
  color: #041410;
}

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

.settings-button-grid button {
  min-height: 36px;
  border: 1px solid #3aaa86;
  border-radius: 4px;
  background: #0c372c;
  color: #dffff0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.settings-button-grid button:hover {
  background: #46f2bd;
  color: #041410;
}

.settings-button-grid .wide {
  grid-column: 1 / -1;
}

.settings-location-grid {
  grid-template-columns: 1.6fr 1fr 1fr;
}

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

.display-choice-grid button {
  min-height: 44px;
  border: 1px solid #3aaa86;
  border-radius: 4px;
  background: #0c372c;
  color: #dffff0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.display-choice-grid button.is-active {
  background: #46f2bd;
  color: #041410;
  outline: 2px solid #e9fff6;
  outline-offset: 1px;
}

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

.single-field,
.contest-selector {
  display: grid;
  gap: 6px;
  color: #b7d7cf;
  font-size: 12px;
  font-weight: 800;
}

.sos-form {
  display: grid;
  gap: 8px;
}

.sos-form label {
  display: grid;
  gap: 5px;
  color: #b7d7cf;
  font-size: 12px;
  font-weight: 800;
}

.sos-form textarea {
  min-height: 110px;
  resize: vertical;
}

.blacklist-list {
  display: grid;
  gap: 7px;
}

.blacklist-list > div {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #315f52;
  border-radius: 4px;
  background: #050f0d;
  padding: 7px 9px;
}

.empty-tool-state {
  color: #97c2b5;
}

.help-report {
  min-height: 150px;
  font-family: inherit;
  font-size: 13px;
}

.tool-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid #315f52;
  background: #050f0d;
  color: #e9fff6;
  cursor: pointer;
}

@media (max-width: 820px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .widget-stage {
    grid-template-columns: 1fr;
  }

  .pro-form-grid,
  .antenna-form-grid,
  .settings-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-dialog {
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .dx-map-shell {
    min-height: 230px;
  }

  .dx-widget {
    width: 100%;
  }

  .time-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .time-zone b {
    text-align: left;
  }

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

  .band-strip {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }

  .widget-location,
  .hf-noise-zone {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }

  .portal-auth,
  .client-dashboard,
  .account-grid,
  .dashboard-actions,
  .campaign-stats,
  .security-list {
    grid-template-columns: 1fr;
  }

  .dashboard-widget-column {
    position: static;
    overflow: visible;
  }

  .widget-closed-panel {
    width: min(470px, 100%);
  }

  .portal-hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .pro-form-grid,
  .antenna-form-grid,
  .settings-location-grid,
  .settings-check-row,
  .settings-button-grid,
  .display-choice-grid,
  .opacity-choices,
  .pro-help-grid {
    grid-template-columns: 1fr;
  }

  .settings-button-grid .wide {
    grid-column: auto;
  }

  .dx-map-shell {
    min-height: 190px;
  }
}

body.widget-page {
  background: #050f0d;
}

body.widget-page .topbar,
body.widget-page .footer {
  display: none;
}

body.widget-page .shell {
  width: auto;
}

body.widget-page .page {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
}

body.widget-page .widget-stage {
  --fixed-panel-scale: 1;
  width: 470px;
  height: 470px;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #050f0d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
}

body.widget-page .dx-widget {
  position: relative;
  width: 470px;
  height: 470px;
  border: 0;
  border-radius: 18px;
  background: #050f0d;
  box-shadow: none;
  overflow: hidden;
  transform: scale(var(--fixed-panel-scale));
  transform-origin: left top;
}

body.widget-page .widget-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 470px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: #08201b;
}

body.widget-page .widget-title-row h1 {
  position: absolute;
  left: 12px;
  top: 4px;
  margin: 0;
  font-size: 14px;
  line-height: 16px;
}

body.widget-page .life-badge {
  position: absolute;
  left: 112px;
  top: 3px;
  width: 97px;
  color: #b4cdc6;
  font-size: 7px;
  line-height: 10px;
  font-weight: 700;
}

body.widget-page .widget-header p {
  position: absolute;
  left: 13px;
  top: 27px;
  width: 160px;
  margin: 0;
  font-size: 8px;
  line-height: 10px;
}

body.widget-page .widget-actions {
  position: absolute;
  left: 199px;
  top: 13px;
  display: flex;
  gap: 2px;
}

body.widget-page .widget-actions a,
body.widget-page .widget-actions button {
  height: 21px;
  min-width: 0;
  padding: 0;
  border: 1px solid #46f2bd;
  background: #0c372c;
  color: #e9fff6;
  font-size: 8px;
  line-height: 19px;
}

body.widget-page .widget-actions > :nth-child(1) { width: 42px; }
body.widget-page .widget-actions > :nth-child(2) { width: 50px; }
body.widget-page .widget-actions > :nth-child(3) { width: 24px; }
body.widget-page .widget-actions > :nth-child(4) { width: 26px; }
body.widget-page .widget-actions > :nth-child(5) { width: 28px; }
body.widget-page .widget-actions > :nth-child(6) { width: 34px; }
body.widget-page .widget-actions > :nth-child(7) { width: 22px; }
body.widget-page .widget-actions > :nth-child(8) { width: 22px; }

body.widget-page .widget-main {
  display: contents;
  padding: 0;
}

body.widget-page .time-zone {
  position: absolute;
  left: 14px;
  top: 49px;
  width: 442px;
  height: 53px;
  margin: 0;
  display: block;
}

body.widget-page .time-zone strong {
  position: absolute;
  left: 0;
  top: 0;
  width: 264px;
  height: 37px;
  font-size: 28px;
  line-height: 37px;
}

body.widget-page .time-zone span {
  position: absolute;
  left: 1px;
  top: 37px;
  width: 430px;
  margin: 0;
  color: #b7d7cf;
  font-size: 10px;
  line-height: 16px;
}

body.widget-page .time-zone b {
  position: absolute;
  right: 0;
  top: 2px;
  width: 178px;
  height: 32px;
  max-width: none;
  color: #ffd252;
  font-size: 22px;
  line-height: 32px;
  text-align: right;
}

body.widget-page .solar-grid {
  position: absolute;
  left: 14px;
  top: 105px;
  width: 442px;
  height: 142px;
  display: block;
}

body.widget-page .solar-card {
  position: absolute;
  min-height: 0;
  height: 38px;
  border: 1px solid #46f2bd;
  border-radius: 6px;
  background: #092a23;
  padding: 0;
}

body.widget-page .solar-card:nth-child(1) { left: 0; top: 0; width: 88px; }
body.widget-page .solar-card:nth-child(2) { left: 98px; top: 0; width: 88px; }
body.widget-page .solar-card:nth-child(3) { left: 196px; top: 0; width: 88px; }
body.widget-page .solar-card:nth-child(4) { left: 294px; top: 0; width: 88px; }
body.widget-page .solar-card:nth-child(5) { left: 0; top: 45px; width: 137px; }
body.widget-page .solar-card:nth-child(6) { left: 147px; top: 45px; width: 137px; }
body.widget-page .solar-card:nth-child(7) { left: 294px; top: 45px; width: 142px; }

body.widget-page .solar-card span {
  position: absolute;
  left: 8px;
  top: 2px;
  color: #e9fff6;
  font-size: 8px;
  line-height: 10px;
}

body.widget-page .solar-card strong {
  position: absolute;
  left: 8px;
  top: 10px;
  width: calc(100% - 16px);
  margin: 0;
  color: #46f2bd;
  font-size: 16px;
  line-height: 17px;
  text-align: center;
}

body.widget-page .solar-card small {
  position: absolute;
  left: 8px;
  top: 27px;
  width: calc(100% - 16px);
  margin: 0;
  color: #ffd252;
  font-size: 7px;
  line-height: 9px;
}

body.widget-page .band-zone {
  position: absolute;
  left: 14px;
  top: 194px;
  width: 361px;
  height: 45px;
  margin: 0;
}

body.widget-page .band-zone h2 {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: 300px;
  height: 17px;
  font-size: 10px;
  line-height: 17px;
}

body.widget-page .band-strip {
  position: absolute;
  left: 0;
  top: 28px;
  width: 361px;
  height: 17px;
  display: grid;
  grid-template-columns: repeat(10, 27px) 29px 29px;
  gap: 3px;
}

body.widget-page .band-strip span {
  min-height: 17px;
  height: 17px;
  font-size: 8px;
  line-height: 17px;
}

body.widget-page .weather-zone {
  position: absolute;
  left: 14px;
  top: 253px;
  width: 442px;
  height: 71px;
  margin: 0;
}

body.widget-page .weather-zone > p:first-child {
  position: absolute;
  left: 0;
  top: 0;
  width: 442px;
  height: 23px;
  margin: 0;
  padding: 3px 8px 0;
  border-radius: 5px;
  background: #092a23;
  color: #e9fff6;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}

body.widget-page .storm-line {
  position: absolute;
  left: 0;
  top: 29px;
  width: 442px;
  height: 42px;
  margin: 0;
  font-size: 9px;
  line-height: 18px;
  color: #ffd252;
}

body.widget-page .weather-zone > p:last-child {
  display: none;
}

body.widget-page .led {
  position: absolute;
  left: 1px;
  top: 2px;
  width: 10px;
  height: 10px;
  background: #ffd252;
  box-shadow: none;
}

body.widget-page .storm-line strong {
  position: absolute;
  left: 20px;
  top: 0;
  width: 422px;
  height: 42px;
  line-height: 12px;
  white-space: normal;
}

body.widget-page .storm-line.is-clear { color: #73e0a6; }
body.widget-page .storm-line.is-clear .led { background: #73e0a6; }
body.widget-page .storm-line.is-fallback { color: #ffd252; }
body.widget-page .storm-line.is-fallback .led { background: #ffd252; }
body.widget-page .storm-line.is-alert,
body.widget-page .storm-line.is-unavailable { color: #ff776d; }
body.widget-page .storm-line.is-alert .led,
body.widget-page .storm-line.is-unavailable .led { background: #ff776d; }

body.widget-page .hf-noise-zone {
  position: absolute;
  left: 14px;
  top: 327px;
  width: 442px;
  height: 78px;
  margin: 0;
  display: block;
  border-radius: 8px;
  background: #092a23;
  border: 0;
  padding: 0;
}

body.widget-page .hf-noise-zone div {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
}

body.widget-page .noise-head strong {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 150px;
  color: #e9fff6;
  font-size: 10px;
  line-height: 16px;
}

body.widget-page .noise-head span {
  position: absolute;
  left: 158px;
  top: 4px;
  width: 274px;
  color: #97c2b5;
  font-size: 8px;
  line-height: 16px;
  text-align: right;
}

body.widget-page .noise-controls {
  position: absolute;
  left: 8px;
  top: 26px;
  width: 424px;
  height: 46px;
}

body.widget-page .noise-controls select,
body.widget-page .noise-controls button {
  position: absolute;
  top: 0;
  height: 24px;
  border: 1px solid #315f52;
  background: #050f0d;
  color: #e9fff6;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

body.widget-page .noise-controls select {
  padding: 0 3px;
  appearance: auto;
}

body.widget-page .noise-controls select:nth-child(1) { left: 0; width: 66px; }
body.widget-page .noise-controls select:nth-child(2) { left: 70px; width: 60px; }
body.widget-page .noise-controls select:nth-child(3) { left: 134px; width: 138px; }
body.widget-page .noise-controls button:nth-child(4) { left: 278px; width: 146px; }
body.widget-page .noise-controls button:nth-child(5) { left: 278px; top: 26px; width: 146px; height: 20px; }

body.widget-page .hf-noise-zone p {
  position: absolute;
  left: 8px;
  top: 55px;
  margin: 0;
  color: #97c2b5;
  font-size: 9px;
  line-height: 12px;
}

body.widget-page .widget-footer {
  position: absolute;
  left: 14px;
  top: 428px;
  width: 442px;
  height: 42px;
  margin: 0;
  display: block;
  min-height: 0;
}

body.widget-page .footer-buttons {
  display: block;
}

body.widget-page .footer-buttons button {
  position: absolute;
  top: 2px;
  height: 22px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0c372c;
  color: #e9fff6;
  font-size: 8px;
}

body.widget-page .footer-buttons button:nth-child(1) { left: 0; width: 34px; }
body.widget-page .footer-buttons button:nth-child(2) { left: 36px; width: 34px; }
body.widget-page .footer-buttons button:nth-child(3) { left: 72px; width: 34px; }
body.widget-page .footer-buttons button:nth-child(4) { left: 108px; width: 38px; }
body.widget-page .footer-buttons button:nth-child(5) { left: 148px; width: 38px; }
body.widget-page .footer-buttons button:nth-child(6) { left: 188px; width: 48px; }
body.widget-page .footer-buttons button:nth-child(7) { left: 238px; width: 34px; }

body.widget-page .widget-note {
  position: absolute;
  left: 286px;
  top: 2px;
  width: 150px;
  min-width: 0;
  display: block;
  text-align: left;
}

body.widget-page .widget-note span {
  display: block;
  color: #5e8b7e;
  font-size: 7px;
  line-height: 12px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

body.widget-page .web-side-panel {
  display: none;
}

/* 2026 public identity. Widget and PRO instrument panels keep their exact UI above. */
body.portal-page {
  color-scheme: light;
  --bg: #edf0ee;
  --panel: #fbfcfa;
  --panel-2: #dfe5e1;
  --line: #bec8c2;
  --text: #111615;
  --muted: #4a5650;
  --green: #bd352a;
  --yellow: #745600;
  background: #edf0ee;
  color: #111615;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

body.portal-page .shell {
  width: min(1180px, calc(100% - 40px));
}

body.portal-page .topbar {
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 20, 19, .97);
  box-shadow: none;
}

body.portal-page .topbar-inner {
  min-height: 76px;
}

body.portal-page .brand {
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

body.portal-page .brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #bd352a;
  border-radius: 4px;
  background: #bd352a;
  color: #fff;
  font-size: 11px;
}

.portal-brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.portal-brand-logo {
  display: block;
  width: 154px;
  height: auto;
  object-fit: contain;
}

.portal-brand-copy strong {
  color: #fff;
  font-size: 17px;
}

.portal-brand-copy small {
  color: #aeb6b2;
  font-size: 10px;
  font-weight: 700;
}

body.portal-page .nav a,
body.portal-page .link-button {
  min-height: 34px;
  border-radius: 4px;
  color: #c7cdca;
  font-size: 13px;
}

body.portal-page .nav a:hover,
body.portal-page .link-button:hover {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

body.portal-page .portal-language-switch {
  border-color: rgba(255, 255, 255, .18);
  border-radius: 4px;
  background: #0a0d0c;
}

body.portal-page .portal-lang {
  color: #b4bcb8;
}

body.portal-page .portal-lang.is-active {
  background: #bd352a;
  color: #fff;
}

body.portal-page .page {
  min-height: calc(100vh - 174px);
  padding-top: 42px;
  padding-bottom: 64px;
}

body.portal-page a,
body.portal-page .eyebrow {
  color: #24568e;
}

body.portal-page .portal-hero h1,
body.portal-page .portal-title h1,
body.portal-page .widget-toolbar h1,
body.portal-page .license-list h3 {
  color: #111615;
  letter-spacing: 0;
}

body.portal-page .portal-hero > p:not(.eyebrow),
body.portal-page .portal-title p:not(.eyebrow),
body.portal-page .license-list p {
  color: #4a5650;
}

body.portal-page .panel,
body.portal-page .card,
body.portal-page .account-card,
body.portal-page .empty-state {
  border-color: #bec8c2;
  border-radius: 6px;
  background: #fbfcfa;
  box-shadow: 0 18px 50px rgba(11, 20, 17, .08);
}

body.portal-page input,
body.portal-page select,
body.portal-page textarea {
  border-color: #b4c0b9;
  border-radius: 4px;
  background: #fbfcfa;
  color: #111615;
}

body.portal-page input:focus,
body.portal-page select:focus,
body.portal-page textarea:focus {
  border-color: #24568e;
  outline: 3px solid rgba(36, 86, 142, .14);
  outline-offset: 1px;
}

body.portal-page .btn {
  border-color: #bd352a;
  border-radius: 4px;
  background: #bd352a;
  color: #fff;
}

body.portal-page .btn:hover {
  border-color: #8f261e;
  background: #8f261e;
}

body.portal-page .btn.secondary {
  border-color: #b4c0b9;
  background: #fbfcfa;
  color: #111615;
}

body.portal-page .btn.secondary:hover {
  border-color: #24568e;
  background: #eef4fb;
}

body.portal-page .btn.danger {
  border-color: #d43d34;
  background: transparent;
  color: #8f261e;
}

body.portal-page .notice {
  border-color: #b4c0b9;
  background: #dfe5e1;
  color: #3f4844;
}

body.portal-page .portal-auth {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 410px);
  gap: clamp(32px, 7vw, 92px);
}

body.portal-page .portal-hero {
  position: relative;
  min-height: 520px;
  padding-left: 28px;
  border-left: 4px solid #bd352a;
}

body.portal-page .portal-hero h1,
body.portal-page .portal-title h1 {
  font-size: clamp(38px, 5vw, 62px);
}

body.portal-page .auth-card {
  border-top: 4px solid #bd352a;
}

body.portal-page .auth-divider {
  color: #4a5650;
}

body.portal-page .auth-divider::before,
body.portal-page .auth-divider::after {
  background: #bec8c2;
}

body.portal-page .nav-access-label {
  color: #f4c65d;
}

body.portal-page .manual-license-form {
  border-color: #bec8c2;
}

body.portal-page .manual-license-form label,
body.portal-page .license-list h3 {
  color: #111615;
}

body.portal-page .license-list .card {
  background: #fbfcfa;
}

body.portal-page .license-key,
body.portal-page .campaign-template pre {
  border-color: #bec8c2;
  background: #f1f4f1;
  color: #3f4844;
}

body.portal-page .account-card.highlight {
  border-color: #24568e;
}

body.portal-page .account-card span,
body.portal-page .action-tile span,
body.portal-page .campaign-stats span,
body.portal-page .account-card small,
body.portal-page .action-tile small {
  color: #4a5650;
}

body.portal-page .account-card strong,
body.portal-page .action-tile strong,
body.portal-page .campaign-stats strong,
body.portal-page .widget-closed-panel strong {
  color: #111615;
}

body.portal-page .security-list span,
body.portal-page .widget-closed-panel,
body.portal-page .campaign-stats article {
  border-color: #bec8c2;
  background: #fbfcfa;
  color: #111615;
}

body.portal-page .action-tile:hover {
  border-color: #24568e;
  background: #eef4fb;
}

body.portal-page .dashboard-tools span {
  border-color: #bec8c2;
  background: #fbfcfa;
  color: #111615;
}

body.portal-page .table-wrap th,
body.portal-page .table-wrap td {
  border-bottom-color: #bec8c2;
  color: #353b38;
}

body.portal-page .table-wrap th {
  color: #24568e;
}

body.portal-page .account-profile-header,
body.portal-page .account-status-strip,
body.portal-page .account-section,
body.portal-page .account-confirmed,
body.portal-page .account-license-stats,
body.portal-page .account-quick-actions a,
body.portal-page .account-quick-actions button {
  border-color: #bec8c2;
  background: #fbfcfa;
}

body.portal-page .account-status-strip {
  background: #dfe5e1;
}

body.portal-page .account-identity h1,
body.portal-page .account-section-heading h2,
body.portal-page .account-detail-list dd,
body.portal-page .account-order-row strong,
body.portal-page .account-status-item strong:not(.status-pill),
body.portal-page .account-license-stats strong,
body.portal-page .account-quick-actions strong {
  color: #111615;
}

body.portal-page .account-identity p:last-child,
body.portal-page .account-quick-actions small,
body.portal-page .account-status-item small,
body.portal-page .account-detail-list dt,
body.portal-page .account-license-stats span,
body.portal-page .account-order-row,
body.portal-page .account-quick-actions span {
  color: #4a5650;
}

.account-remote-support form {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.remote-support-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 860px;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.remote-support-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1575d2;
}

.remote-support-next {
  width: min(100%, 760px);
  padding: 14px 16px;
  border: 1px solid rgba(27, 117, 210, .32);
  border-left: 3px solid #1575d2;
  border-radius: 6px;
  background: rgba(21, 117, 210, .06);
  color: #26362f;
  line-height: 1.5;
}

.remote-support-next strong {
  display: block;
  margin-bottom: 6px;
}

.remote-support-code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.remote-support-code-row code {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(21, 117, 210, .34);
  border-radius: 5px;
  background: rgba(255, 255, 255, .84);
  color: #102a46;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.remote-support-copy {
  min-height: 36px;
}

.remote-support-next ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 22px;
}

.remote-support-history {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.remote-support-history h3 {
  margin: 0;
  font-size: 15px;
}

.remote-support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(89, 115, 105, 0.35);
}

.remote-support-row > div {
  display: grid;
  gap: 4px;
}

.remote-support-row small {
  color: #4a5650;
}

.remote-support-row .remote-support-pairing-note {
  max-width: 760px;
  color: #79520d;
  font-weight: 650;
}

.remote-support-command-history {
  display: grid;
  gap: 2px;
}

.remote-support-command-history ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}

body.account-page .remote-support-row small {
  color: #a5b8ae;
}

@media (max-width: 620px) {
  .remote-support-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.portal-page .footer {
  border-top-color: rgba(255, 255, 255, .1);
  background: #101413;
  color: #aeb6b2;
}

body.portal-page .portal-legal-links a {
  color: #dce2df;
}

@media (max-width: 820px) {
  body.portal-page .topbar-inner,
  body.portal-page .topbar-actions {
    align-items: flex-start;
  }

  body.portal-page .portal-auth {
    grid-template-columns: 1fr;
  }

  body.portal-page .portal-hero {
    min-height: auto;
    padding-left: 20px;
  }
}

@media (max-width: 520px) {
  body.portal-page .shell {
    width: min(100% - 28px, 1180px);
  }

  .portal-brand-copy small {
    display: none;
  }

  .portal-brand-logo {
    width: 124px;
  }

  body.portal-page .page {
    padding-top: 28px;
  }
}
