:root {
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  color: #e9f0f5;
  background: #071117;
  --panel: #0e1b23;
  --line: #1d3441;
  --muted: #8297a4;
  --cyan: #62dfce;
  --blue: #4db8ff;
  --red: #ff7085;
  --warning: #ffc857;
  --green: #50d890;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, #123241 0, transparent 34%), #071117;
}
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 24px;
}
header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.brand span {
  color: var(--cyan);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 70px;
  align-items: center;
  min-height: calc(100vh - 110px);
}
.hero h1,
.welcome h1 {
  font-size: clamp(42px, 6vw, 75px);
  line-height: 1.02;
  margin: 12px 0;
}
.hero em {
  font-style: normal;
  color: var(--cyan);
}
.hero p,
.welcome p,
.panel > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 800;
}
.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #b8c8d1;
  margin-top: 25px;
}
.panel,
dialog {
  background: #0e1b23e8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px #0008;
}
.panel h2 {
  margin-top: 0;
}
label {
  display: grid;
  gap: 7px;
  color: #b9c8d0;
  font-size: 13px;
  margin: 14px 0;
}
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #09151c;
  color: #fff;
  outline: none;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input:focus {
  border-color: var(--cyan);
}
button {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  color: #eaf4f8;
  background: #152732;
}
.primary {
  background: linear-gradient(135deg, var(--cyan), #32aaba);
  color: #052029;
  font-weight: 800;
}
.panel .primary {
  width: 100%;
  margin-top: 9px;
}
.ghost {
  border: 1px solid var(--line);
  background: transparent;
}
.link {
  width: 100%;
  background: transparent;
  color: var(--cyan);
}
.message {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 45px 0 20px;
}
.welcome h1 {
  font-size: 48px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat,
.terminal,
.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.stat b {
  font-size: clamp(18px, 2vw, 27px);
  display: block;
  margin-top: 7px;
}
.stat span,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.terminal.clickable {
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.terminal.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}
.statusbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.statusbar > * {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c1b23;
  color: #bcd0da;
  font-size: 12px;
}
.statusbar > b {
  color: var(--cyan);
  border-color: #255466;
}
.statusbar.load-error {
  padding: 11px 14px;
  border: 1px solid #6b2b37;
  border-radius: 10px;
  background: #32151c;
  color: #ff9aaa;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.table-wrap {
  overflow: auto;
  max-height: 390px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--panel);
}
.danger {
  background: #57202a;
  color: #ff9aaa;
}
.terminal h3 {
  margin: 7px 0;
}
.terminal-top,
.section-head,
.job,
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.state {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 99px;
  background: #18333b;
  color: var(--cyan);
}
.state.failed {
  background: #3b1c27;
  color: #ff91a1;
}
.terminal dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.terminal dt {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.terminal dd {
  margin: 4px 0 0;
}
.terminal-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.section {
  margin-top: 22px;
}
.job {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.job:last-child {
  border-bottom: 0;
}
.job code {
  color: var(--cyan);
}
.progress-job {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.progress-job.running {
  border-color: #285c64;
}
.progress-job-head,
.progress-title,
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-title {
  justify-content: flex-start;
}
.progress-title > div {
  display: grid;
  gap: 4px;
}
.progress-title span,
.progress-meta {
  color: var(--muted);
  font-size: 11px;
}
.mini-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #17323d;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.progress-result {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #16372a;
  color: var(--green);
}
.progress-result.failed {
  background: #3b1c27;
  color: var(--red);
}
.job-progress {
  width: 100%;
  height: 8px;
  margin: 16px 0 8px;
  border: 0;
  border-radius: 99px;
  background: #071117;
}
.job-progress::-webkit-progress-bar {
  background: #071117;
}
.job-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.job-progress::-moz-progress-bar {
  background: var(--cyan);
}
.progress-error {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #32151c;
  color: #ff9aaa;
  font-size: 12px;
}
.job {
  cursor: pointer;
}
.job:hover {
  background: #10242d;
}
.job.active {
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
}
.job-error {
  grid-column: 1/-1;
  color: #ff91a1;
  font-size: 12px;
  padding-top: 4px;
}
.core-log-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.core-logs {
  margin-top: 12px;
  min-height: 150px;
  max-height: 390px;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: #050c10;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.log-line {
  display: grid;
  grid-template-columns: 72px 150px 1fr;
  gap: 10px;
  padding: 5px 0;
  color: #b9cad2;
}
.log-line .stage {
  color: var(--cyan);
}
.log-line.success {
  color: #7de7ad;
}
.log-line.error {
  color: #ff91a1;
}
.live-indicator {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.live-indicator::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.2s infinite;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  background: #02070bcc;
  backdrop-filter: blur(4px);
}
.loading-overlay:not([hidden]) {
  display: grid;
}
.loading-card {
  display: grid;
  justify-items: center;
  gap: 13px;
  width: min(370px, calc(100% - 30px));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}
.loading-card small {
  color: var(--muted);
}
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #17323d;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
dialog {
  width: min(610px, calc(100% - 24px));
  color: #fff;
}
dialog::backdrop {
  background: #020609c9;
}
.dialog-head h2 {
  margin: 5px 0;
}
.icon {
  font-size: 25px;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.full {
  grid-column: 1/-1;
}
.full-button {
  width: 100%;
}
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.app-layout[hidden] {
  display: none;
}
.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b171e;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.nav-item {
  text-align: left;
  background: transparent;
  color: var(--muted);
}
.nav-item.active {
  background: #15313a;
  color: var(--cyan);
}
.sidebar-note {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #0f212a;
  border-radius: 10px;
}
.sidebar-note span {
  font-size: 11px;
  color: var(--muted);
}
.app-content {
  min-width: 0;
}
.welcome.compact {
  padding-top: 38px;
}
.welcome.compact h1 {
  font-size: 43px;
}
.plan-price {
  font-size: 27px;
  font-weight: 800;
  color: var(--cyan);
  margin: 12px 0;
}
@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .log-line {
    grid-template-columns: 58px 1fr;
  }
  .log-line .message {
    grid-column: 1/-1;
  }
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
  }
  .sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
  }
  .nav-item {
    white-space: nowrap;
  }
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .welcome {
    align-items: flex-start;
    gap: 15px;
  }
  .welcome h1 {
    font-size: 37px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
}
.public-nav,
.hero-actions,
.controls,
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.public-nav a {
  color: inherit;
  text-decoration: none;
}
.language-switcher {
  width: auto;
  min-width: 64px;
  padding: 8px 30px 8px 10px;
  border-radius: 99px;
}
.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.landing-shell {
  max-width: 1280px;
}
.landing-hero-new {
  min-height: 720px;
  grid-template-columns: 1.04fr 0.96fr;
}
.landing-hero-new > * {
  min-width: 0;
  max-width: 100%;
}
.landing-copy,
.product-preview {
  min-width: 0;
  max-width: 100%;
}
.landing-copy h1,
.landing-copy p {
  overflow-wrap: anywhere;
}
.landing-copy h1 {
  max-width: 760px;
  letter-spacing: -0.055em;
}
.hero-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #285c64;
  border-radius: 99px;
  background: rgba(98, 223, 206, 0.06);
  color: #a9c9cf;
  font-size: 12px;
}
.hero-pill > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.button-link.large {
  padding: 14px 20px;
}
.trust-row {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
}
.product-preview {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #285466;
  border-radius: 22px;
  background: linear-gradient(150deg, #10242e, #071117 72%);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55);
  transform: perspective(1100px) rotateY(-3deg) rotateX(2deg);
}
.product-preview::before {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(98, 223, 206, 0.12);
  filter: blur(30px);
  content: "";
}
.preview-top,
.preview-balance,
.preview-terminal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.preview-top {
  color: var(--muted);
  font:
    10px Consolas,
    monospace;
}
.preview-top b {
  color: var(--green);
}
.preview-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}
.preview-dot.red {
  background: var(--red);
}
.preview-dot.amber {
  background: var(--warning);
}
.preview-dot.green {
  background: var(--green);
}
.preview-balance {
  display: grid;
  margin: 35px 0 22px;
}
.preview-balance span,
.preview-grid span,
.preview-terminal small {
  color: var(--muted);
  font-size: 11px;
}
.preview-balance strong {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.preview-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 15, 20, 0.65);
}
.preview-grid span,
.preview-grid b {
  display: block;
}
.preview-grid b {
  margin-top: 7px;
}
.preview-chart {
  position: relative;
  height: 150px;
  margin: 18px 0;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(82, 122, 140, 0.13) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 69px,
      rgba(82, 122, 140, 0.1) 70px
    );
}
.preview-chart svg {
  position: absolute;
  inset: 15px 0;
  width: 100%;
  height: calc(100% - 30px);
  overflow: visible;
}
.preview-chart path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(98, 223, 206, 0.5));
}
.preview-terminal {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #09151c;
}
.preview-terminal > div {
  display: grid;
  gap: 3px;
  margin-right: auto;
}
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 100px;
  border-block: 1px solid var(--line);
}
.value-strip > div {
  display: grid;
  gap: 5px;
  padding: 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.value-strip > div:last-child {
  border: 0;
}
.value-strip b {
  color: var(--cyan);
  font-size: 20px;
}
.value-strip span {
  color: var(--muted);
  font-size: 11px;
}
.landing-section {
  padding: 20px 0 100px;
}
.section-intro {
  max-width: 760px;
  margin-bottom: 35px;
}
.section-intro h2,
.landing-cta h2 {
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.section-intro p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.feature-grid-new {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
}
.feature-grid-new article {
  min-height: 210px;
  background: linear-gradient(145deg, #10212a, var(--panel));
}
.feature-grid-new article b {
  display: block;
  margin: 25px 0 10px;
  font-size: 20px;
}
.feature-grid-new article p {
  color: var(--muted);
  line-height: 1.6;
}
.feature-icon {
  color: var(--cyan);
  font:
    12px Consolas,
    monospace;
}
.landing-cta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 70px;
  padding: 45px;
  border: 1px solid #285c64;
  border-radius: 22px;
  background: linear-gradient(
    120deg,
    rgba(77, 184, 255, 0.11),
    rgba(98, 223, 206, 0.05)
  );
}
.landing-cta h2 {
  max-width: 800px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.button-link {
  display: inline-block;
  text-decoration: none;
}
.ghost.button-link {
  color: #eaf4f8;
}
.landing-hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.landing-hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  margin: 18px 0;
}
.landing-hero p {
  font-size: 18px;
  max-width: 650px;
}
.hero-console {
  transform: rotate(1deg);
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 30px 0 70px;
}
.landing-features article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.auth-only {
  min-height: 75vh;
  display: grid;
  place-items: center;
}
.auth-only form {
  width: min(440px, 100%);
}
.sidebar nav a {
  display: block;
  text-decoration: none;
}
.wide {
  max-width: 1600px;
}
.wide > .stats {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #091820, #071218);
}
.chart-wrap.small {
  height: 260px;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
}
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
  background: #091820;
  z-index: 2;
}
.tooltip {
  position: absolute;
  display: none;
  z-index: 3;
  max-width: 190px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 24, 0.94);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.tooltip.visible {
  display: block;
}
.risk-alerts,
.timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.risk-alert {
  border-left: 3px solid var(--warning);
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.pager {
  justify-content: center;
  margin-top: 14px;
}
.good {
  color: #50d890;
}
.bad {
  color: #ff657a;
}
.controls input,
.controls select {
  width: auto;
}
.controls button.active,
#metricButtons button.active {
  color: #052029;
  background: var(--cyan);
  font-weight: 800;
}
.section-head {
  gap: 16px;
  flex-wrap: wrap;
}
.section-head > div:last-child {
  justify-content: flex-end;
}
th[data-sort] {
  cursor: pointer;
}
.sidebar .nav-item {
  box-sizing: border-box;
}
.sidebar a.nav-item {
  color: inherit;
  padding: 12px;
  border-radius: 10px;
  margin: 4px 0;
}
.sidebar a.nav-item.active {
  background: rgba(85, 185, 255, 0.12);
  color: #55b9ff;
}
.stat small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.stat.highlight {
  border-color: #2b756f;
  background: linear-gradient(145deg, #12302f, var(--panel));
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid #255466;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(98, 223, 206, 0.11), transparent 55%),
    var(--panel);
}
.dashboard-hero h2,
.dashboard-section h2,
.dashboard-grid h2 {
  margin: 7px 0;
}
.dashboard-hero p {
  margin: 6px 0 0;
  color: var(--muted);
}
.capacity {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 15, 20, 0.7);
}
.capacity > div:first-child,
.terminal-foot,
.exposure-row,
.health-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.capacity span,
.capacity small,
.terminal-foot,
.exposure-row span,
.activity-row span {
  color: var(--muted);
  font-size: 11px;
}
.progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 14px 0 10px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #071117;
}
.progress::-webkit-progress-bar {
  background: #071117;
}
.progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.progress::-moz-progress-bar {
  background: var(--cyan);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  padding: 0;
  border: 0;
  background: transparent;
}
.dashboard-section {
  padding: 22px;
}
.soft-badge,
.health-score {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
}
.exposure-list,
.activity-list,
.health-list {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}
.exposure-row,
.activity-row,
.health-list > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.exposure-row:last-child,
.activity-row:last-child,
.health-list > div:last-child {
  border-bottom: 0;
}
.exposure-row > div,
.activity-row > div,
.empty-state {
  display: grid;
  gap: 4px;
}
.activity-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
}
.activity-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #17313a;
  color: var(--cyan);
}
.activity-icon.failed {
  background: #3b1c27;
  color: var(--red);
}
.empty-state {
  min-height: 110px;
  place-content: center;
  text-align: center;
  color: var(--muted);
}
.text-link {
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
}
.terminal-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
}
.terminal-card .terminal-actions {
  margin-top: auto;
  padding-top: 16px;
}
.terminal-identity {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 112, 133, 0.1);
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(80, 216, 144, 0.1);
}
.terminal-broker {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.terminal-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 15px 0;
}
.terminal-kpis > div {
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: #09151c;
}
.terminal-kpis span,
.terminal-kpis b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-kpis span {
  color: var(--muted);
  font-size: 10px;
}
.terminal-kpis b {
  margin-top: 5px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .landing-shell header .public-nav a:not(.primary) {
    display: none;
  }
  .landing-shell header {
    gap: 12px;
  }
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero,
  .landing-features {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-hero {
    padding: 50px 0;
  }
  .landing-hero-new {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    overflow: hidden;
  }
  .landing-copy {
    width: 100%;
    overflow: hidden;
  }
  .product-preview {
    width: 100%;
    max-width: 100%;
    transform: none;
    padding: 16px;
  }
  .value-strip {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 60px;
  }
  .value-strip > div:nth-child(2) {
    border-right: 0;
  }
  .value-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .feature-grid-new {
    grid-template-columns: 1fr;
  }
  .landing-cta {
    display: grid;
    padding: 28px;
  }
  .hero-console {
    transform: none;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar a.nav-item {
    white-space: nowrap;
  }
  .wide {
    padding: 0 12px;
  }
  .wide header {
    height: 58px;
  }
  .wide .welcome.compact {
    display: grid;
    padding-top: 20px;
  }
  .wide .welcome.compact h1 {
    font-size: 32px;
  }
  .wide .welcome.compact select {
    width: 100%;
  }
  .wide .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wide .stat {
    min-width: 0;
    padding: 13px;
  }
  .wide .stat b {
    overflow-wrap: anywhere;
  }
  .wide .panel,
  .wide .section {
    padding: 14px;
  }
  .chart-wrap {
    width: 100%;
    height: 250px;
    min-height: 220px;
    contain: layout paint;
    touch-action: pan-y;
  }
  .chart-wrap.small {
    height: 240px;
  }
  .table-wrap {
    width: 100%;
    min-width: 0;
    max-height: 440px;
    -webkit-overflow-scrolling: touch;
  }
  .execution-table {
    min-width: 1120px;
  }
  .wide .section-head > .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .wide .section-head > .controls > * {
    width: 100%;
    min-width: 0;
  }
  #filterSearch,
  #exportCsv {
    grid-column: span 2;
  }
  th,
  td {
    padding: 9px 8px;
  }
  .section-head {
    align-items: flex-start;
  }
  .controls {
    align-items: stretch;
  }
  .controls input,
  .controls select {
    max-width: 100%;
  }
}
@media (max-width: 460px) {
  .shell {
    padding: 12px;
  }
  .wide .stats {
    gap: 8px;
  }
  .wide .stat b {
    font-size: 17px;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .controls input,
  .controls select {
    width: 100%;
  }
  .public-nav a:first-of-type {
    display: none;
  }
  .public-nav {
    gap: 7px;
  }
  .public-nav .button-link {
    padding: 9px 11px;
  }
  .landing-copy h1 {
    font-size: 42px;
  }
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .preview-grid > div:last-child {
    grid-column: span 2;
  }
  .landing-cta {
    padding: 22px;
  }
  .header-actions .button-link {
    padding: 9px 10px;
  }
  #metricButtons {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  #metricButtons button {
    white-space: nowrap;
  }
}
.insights [hidden] { display: none !important; }
.insight-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid #243747; padding: 12px 0 18px; margin-bottom: 18px; }
.insight-tabs [aria-selected="true"] { background: #183f47; color: #7ce7c2; border-color: #4aac91; }
.insight-filters { margin-bottom: 12px; }
.insight-filters label { font-size: 13px; color: #adc0ce; align-self: center; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.market-card { padding: 20px; border: 1px solid #28404c; border-radius: 16px; min-width: 0; background: #0e202d; }
.market-card h3 { margin: 0; }
.market-card p, .ai-analysis p { line-height: 1.6; overflow-wrap: anywhere; }
.signal { display: inline-block; padding: 6px 12px; border-radius: 20px; background: #142f3d; font-weight: 700; }
.signal-buy { color: #7ce7c2; }
.signal-sell { color: #ff9f9f; }
.signal-wait { color: #f0d28d; }
.timeframe-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; font-size: 13px; }
.ai-analysis:not(:empty) { border: 1px solid #28404c; border-radius: 12px; padding: 18px; margin-top: 18px; }
.ai-analysis article + article { border-top: 1px solid #28404c; margin-top: 12px; }
.insight-footnote { font-size: 12px; line-height: 1.7; margin-top: 18px; }
.economic-table { min-width: 760px; }
.impact { font-size: 12px; border-radius: 6px; padding: 4px 8px; background: #1a3442; }
.impact-high { color: #ff9f9f; background: #41262c; }
.impact-medium { color: #f0d28d; }
.event-past { opacity: .7; }
.pnl-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.pnl-weekday { text-align: center; color: #adc0ce; font-size: 12px; padding: 8px 0; }
.pnl-day { min-width: 0; min-height: 92px; padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; background: #10232f; border: 1px solid #28404c; border-radius: 10px; overflow-wrap: anywhere; }
.pnl-day b { font-size: 16px; }
.pnl-day small { color: #adc0ce; font-size: 11px; }
.pnl-profit { background: #12382f; border-color: #2d6e59; color: #8ce5bd; }
.pnl-loss { background: #3c242b; border-color: #78414a; color: #ffafb4; }
.pnl-day[aria-pressed="true"] { outline: 2px solid #91d5ff; outline-offset: 1px; }
.pnl-day-details { border-top: 1px solid #28404c; padding-top: 14px; }
.pnl-day-details table { min-width: 560px; }
@media (max-width: 600px) {
  .wide .section-head > div { min-width: 0; max-width: 100%; }
  .pnl-calendar { gap: 4px; }
  .pnl-day { padding: 6px 3px; min-height: 78px; border-radius: 6px; }
  .pnl-day b { font-size: 11px; }
  .pnl-day small { font-size: 9px; }
  .market-card { padding: 14px; }
  .insights .section-head { flex-wrap: wrap; gap: 10px; }
  .insight-filters { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .insight-filters button { grid-column: 1 / -1; }
}
.terminal-page { max-width: 1440px; padding: 16px 24px 28px; }
.terminal-page header { height: 48px; }
.terminal-page .welcome.compact { padding-top: 12px; gap: 12px; }
.terminal-page .welcome.compact h1 { font-size: 30px; margin: 4px 0; }
.terminal-page .welcome.compact p { margin: 6px 0; font-size: 13px; }
.terminal-page .section { margin-top: 12px; }
.terminal-page .panel { padding: 14px 16px; border-radius: 12px; }
.terminal-page .panel h2 { font-size: 17px; margin: 0 0 10px; }
.terminal-page .stats { gap: 8px; margin-top: 10px; }
.terminal-page .stat { min-width: 0; padding: 10px 12px; border-radius: 9px; }
.terminal-page .stat span { font-size: 11px; }
.terminal-page .stat b { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.terminal-page > .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.terminal-page .section-head > * { min-width: 0; max-width: 100%; }
.terminal-page .controls { gap: 8px; }
.terminal-page .controls input, .terminal-page .controls select, .terminal-page .controls button { min-height: 36px; padding: 8px 10px; font-size: 12px; }
.terminal-page details > summary { cursor: pointer; font-size: 14px; }
.terminal-page details[open] > summary { margin-bottom: 12px; }
.terminal-page details > .controls { margin-top: 12px; }
.terminal-page .chart-wrap { height: 260px; min-height: 220px; }
.terminal-page .chart-wrap.small { height: 220px; min-height: 200px; }
.terminal-page .table-wrap { max-height: 340px; }
.terminal-page .pnl-day-details .table-wrap { max-height: 280px; }
.terminal-page .table-wrap th, .terminal-page .table-wrap td { font-size: 12px; padding: 9px; }
.terminal-page .insight-tabs { padding: 8px 0 12px; margin-bottom: 12px; }
.terminal-page .insight-tabs button { padding: 8px 12px; font-size: 12px; }
.terminal-page .market-card { padding: 14px; }
.terminal-page .market-card h3 { font-size: 16px; }
.terminal-page .market-card p, .terminal-page .ai-analysis p { font-size: 13px; margin: 10px 0; }
.terminal-page .insight-footnote { font-size: 11px; margin-top: 12px; }
.terminal-page .pnl-day { min-height: 76px; padding: 8px; }
.terminal-page #metricButtons { max-width: 100%; }
@media (max-width: 600px) {
  .terminal-page.shell { padding: 0 10px 20px; }
  .terminal-page .panel { padding: 12px; }
  .terminal-page .welcome.compact h1 { font-size: 26px; }
  .terminal-page > .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terminal-page .stat { padding: 9px; }
  .terminal-page .stat b { font-size: 16px; }
  .terminal-page .section-head { gap: 10px; }
  .terminal-page .pnl-day { min-height: 68px; padding: 5px 3px; }
  .terminal-page .pnl-day b { font-size: 10px; }
}
