:root {
  color-scheme: light;
  --page-bg: #e8ece9;
  --page-surface: #f7f8f6;
  --page-line: #c3cbc6;
  --page-text: #121615;
  --page-muted: #4b5550;
  --page-accent: #a82f27;
  --page-accent-dark: #8f261e;
  --page-ink: #101413;
  --page-radio: #087064;
  --widget-green: #46f2bd;
  --widget-yellow: #ffd52e;
  --widget-red: #ff6b5f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.demo-topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 19, 0.97);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.demo-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.demo-brand img {
  display: block;
  width: 154px;
  height: auto;
}

.demo-brand span {
  display: grid;
}

.demo-brand strong {
  font-size: 16px;
}

.demo-brand small {
  color: #9fa9a4;
  font-size: 11px;
}

.demo-nav,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-nav > a,
.language-switch {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.demo-nav > a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-color: var(--page-accent);
  background: var(--page-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.demo-nav > a:hover,
.demo-nav > a:focus-visible {
  border-color: var(--page-accent-dark);
  background: var(--page-accent-dark);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8cfcb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ba87a;
  box-shadow: 0 0 0 4px rgba(27, 168, 122, 0.14);
}

.language-switch {
  padding: 3px;
}

.language-switch button {
  width: auto;
  min-width: 58px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #aeb7b2;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button.is-active {
  background: #f7f8f6;
  color: #121615;
}

.demo-main {
  min-height: calc(100vh - 66px);
  padding: 32px 20px 52px;
  background: var(--page-bg);
}

.demo-workspace {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(260px, 1fr);
  gap: 44px 54px;
  align-items: start;
}

.demo-intro {
  grid-column: 1 / -1;
  max-width: 770px;
}

.demo-eyebrow {
  margin: 0 0 7px;
  color: var(--page-radio);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-intro h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.16;
}

.demo-intro > .demo-lead {
  max-width: 710px;
  margin: 12px 0 0;
  color: var(--page-muted);
  line-height: 1.55;
}

.demo-disclaimer {
  max-width: 770px;
  margin-top: 20px;
  border: 1px solid var(--page-line);
  border-left: 5px solid var(--page-accent);
  background: var(--page-surface);
  padding: 15px 18px;
}

.demo-disclaimer strong {
  display: block;
  color: var(--page-accent);
  font-size: 13px;
  font-weight: 850;
}

.demo-disclaimer p {
  margin: 6px 0 0;
  color: var(--page-muted);
  font-size: 13px;
  line-height: 1.52;
}

.widget-column {
  width: 100%;
}

.widget-restore {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--page-line);
  background: var(--page-surface);
  padding: 14px;
  color: var(--page-muted);
}

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

.widget-restore button {
  min-height: 36px;
  border: 1px solid var(--page-accent);
  border-radius: 4px;
  background: transparent;
  color: var(--page-accent);
  padding: 7px 11px;
  font-weight: 800;
  cursor: pointer;
}

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

.dx-widget.is-top {
  box-shadow: 0 0 0 2px rgba(70, 242, 189, 0.45), 0 24px 70px rgba(0, 0, 0, 0.42);
}

.dx-widget.is-minimized {
  min-height: 0;
}

.dx-widget.is-minimized .widget-main {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.time-zone b {
  max-width: 150px;
  color: #ffd52e;
  font-size: 23px;
  line-height: 1.1;
  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;
  overflow: hidden;
  border: 1px solid #14b887;
  border-radius: 7px;
  background: #083c31;
  padding: 5px 8px;
}

.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;
  min-height: 12px;
  margin-top: 1px;
  color: #ffd52e;
  font-size: 8px;
}

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

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

.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: #263733;
  color: #b7d7cf;
  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;
}

.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;
}

.weather-zone .storm-line.is-alert {
  color: #ff8b81;
}

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

.storm-line.is-alert .led {
  background: #ff6b5f;
  box-shadow: 0 0 12px rgba(255, 107, 95, 0.9);
}

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

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

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

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

.noise-head span {
  margin-top: 2px;
  color: #ffd52e;
  font-size: 11px;
  font-weight: 850;
}

.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-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

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

.demo-details {
  padding-top: 6px;
}

.demo-details h2 {
  margin: 0;
  font-size: 23px;
}

.demo-details ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.demo-details li {
  position: relative;
  min-height: 34px;
  padding: 7px 0 7px 28px;
  border-bottom: 1px solid var(--page-line);
  color: var(--page-text);
  line-height: 1.35;
}

.demo-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--page-radio);
  border-bottom: 2px solid var(--page-radio);
  transform: rotate(-45deg);
}

.demo-limit {
  margin-top: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}

.demo-limit strong {
  color: var(--page-accent);
}

.demo-limit p {
  margin: 7px 0 0;
  color: var(--page-muted);
  font-size: 13px;
  line-height: 1.5;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.demo-actions a,
.modal-actions a,
.modal-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--page-ink);
  border-radius: 4px;
  background: transparent;
  color: var(--page-ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.demo-actions .primary-action,
.modal-actions .primary-action {
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: #ffffff;
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(16, 20, 19, 0.78);
  padding: 12px;
}

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

.tool-dialog {
  position: relative;
  width: min(650px, calc(100vw - 24px));
  max-height: min(88vh, 680px);
  overflow: auto;
  border: 1px solid var(--page-line);
  border-radius: 5px;
  background: var(--page-surface);
  padding: 20px;
  color: var(--page-text);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.tool-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--page-ink);
  background: var(--page-ink);
  color: #ffffff;
  cursor: pointer;
}

.tool-dialog h2 {
  margin: 0 42px 14px 0;
  color: var(--page-ink);
  font-size: 23px;
}

.tool-dialog p {
  color: var(--page-muted);
  line-height: 1.5;
}

.tool-modal.is-pro-demo {
  background: var(--page-bg);
}

.tool-modal.is-pro-demo .tool-dialog {
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.tool-modal.is-pro-demo .tool-dialog > .tool-close {
  display: none;
}

.tool-modal.is-pro-demo .tool-dialog > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-pro-panel {
  position: relative;
  width: 660px;
  height: 420px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #105a46;
  border-radius: 10px;
  background: #050f0d;
  color: #e9fff6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

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

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

.demo-pro-buttons-shell {
  position: absolute;
  left: 20px;
  top: 296px;
  width: 604px;
  min-height: 88px;
}

.demo-pro-watermark {
  position: absolute;
  inset: -9px 0 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(70, 242, 189, 0.12);
  font-size: 74px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.demo-pro-button-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px 96px 96px 82px 84px 62px;
  gap: 10px 8px;
}

.demo-pro-button-grid button,
.demo-pro-ok {
  min-height: 26px;
  border: 1px solid #3aaa86;
  border-radius: 3px;
  background: rgba(12, 55, 44, 0.88);
  color: #dffff0;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.demo-pro-button-grid button:disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.demo-pro-button-grid button:nth-child(3),
.demo-pro-button-grid button:nth-child(16) {
  border-color: #4696dc;
  background: rgba(16, 45, 72, 0.88);
  color: #dcf0ff;
}

.demo-pro-button-grid button:nth-child(4),
.demo-pro-button-grid button:nth-child(14) {
  border-color: #ff6b5f;
  background: rgba(72, 18, 28, 0.88);
  color: #ffe2dc;
}

.demo-pro-button-grid button:nth-child(5),
.demo-pro-button-grid button:nth-child(15) {
  border-color: #aa823a;
  background: rgba(72, 43, 16, 0.88);
  color: #ffebaa;
}

.demo-pro-button-grid button:nth-child(6) {
  border-color: #96d650;
  background: rgba(36, 58, 16, 0.88);
  color: #e2ffcd;
}

.demo-pro-button-grid button:nth-child(7) {
  border-color: #d25c48;
  background: rgba(72, 16, 16, 0.88);
  color: #ffdcd2;
}

.demo-pro-button-grid button:nth-child(8) {
  border-color: #60c8ff;
  background: rgba(28, 38, 82, 0.88);
  color: #dcf0ff;
}

.demo-pro-button-grid button:nth-child(10),
.demo-pro-button-grid button:nth-child(13) {
  border-color: #46f2bd;
  background: rgba(8, 70, 52, 0.88);
}

.demo-pro-button-grid button:nth-child(11) {
  border-color: #b98cff;
  background: rgba(50, 32, 84, 0.88);
  color: #eee2ff;
}

.demo-pro-button-grid button:nth-child(12) {
  border-color: #788c88;
  background: rgba(42, 44, 45, 0.88);
}

.demo-pro-ok {
  position: absolute;
  right: 20px;
  bottom: 12px;
  z-index: 3;
  width: 72px;
  cursor: pointer;
}

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

.settings-grid label {
  display: grid;
  gap: 5px;
  color: var(--page-muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-grid label:first-child {
  grid-column: 1 / -1;
}

.settings-grid input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--page-line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--page-text);
  padding: 8px 9px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pro-preview-grid article {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--page-line);
  border-radius: 4px;
  background: #ffffff;
  padding: 10px;
}

.pro-preview-grid span {
  color: var(--page-muted);
  font-size: 11px;
  font-weight: 800;
}

.pro-preview-grid strong {
  font-size: 16px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-list a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--page-line);
  color: var(--page-ink);
  text-decoration: none;
}

.link-list a span {
  color: var(--page-muted);
  font-size: 12px;
}

.demo-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 36px));
  border: 1px solid var(--page-ink);
  border-radius: 4px;
  background: var(--page-ink);
  color: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  font-size: 13px;
}

.demo-toast[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .demo-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 16px;
  }

  .demo-brand img {
    width: 132px;
  }

  .demo-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .demo-status {
    margin-right: auto;
  }

  .demo-main {
    padding: 24px 14px 38px;
  }

  .demo-workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .demo-intro {
    grid-column: 1;
  }

  .demo-intro h1 {
    font-size: 27px;
  }

  .widget-column {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dx-widget {
    width: 470px;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .demo-nav > a {
    display: none;
  }

  .widget-column {
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: visible;
  }

  .dx-widget {
    width: 100%;
  }

  .widget-header {
    display: block;
  }

  .widget-actions {
    justify-content: flex-start;
    margin-top: 7px;
  }

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

  .widget-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .footer-buttons button {
    min-width: 0;
    flex: 1 1 0;
  }

  .widget-note {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .time-zone strong {
    font-size: 24px;
  }

  .settings-grid,
  .pro-preview-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid label:first-child {
    grid-column: 1;
  }

  .tool-modal.is-pro-demo {
    align-items: start;
    overflow-y: auto;
  }

  .tool-modal.is-pro-demo .tool-dialog {
    max-height: none;
  }

  .demo-pro-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    padding-bottom: 14px;
    overflow: visible;
  }

  .demo-pro-head {
    height: auto;
    min-height: 82px;
  }

  .demo-pro-head > strong {
    min-width: 82px;
    margin-top: 30px;
  }

  .demo-pro-summary {
    position: static;
    width: auto;
    height: auto;
    margin: 10px 14px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .demo-pro-callsign {
    grid-column: 1 / -1;
  }

  .demo-pro-buttons-shell {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 0;
    margin: 14px 14px 0;
  }

  .demo-pro-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .demo-pro-button-grid button {
    min-height: 34px;
  }

  .demo-pro-watermark {
    inset: 0;
    font-size: 58px;
  }

  .demo-pro-ok {
    position: static;
    width: calc(100% - 28px);
    min-height: 36px;
    margin: 14px 14px 0;
  }
}
