﻿:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070707;
  color: #f5f2f8;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(108, 96, 76, 0.16), transparent 30rem),
    linear-gradient(145deg, #030303 0%, #0b0b0c 46%, #141210 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand-header.compact {
  width: min(1080px, calc(100% - 40px));
}

.brand-mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #bdb7c4;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-header nav a:hover {
  color: #fff;
}

.brand-header nav span {
  max-width: 220px;
  overflow: hidden;
  color: #8f8796;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8f8ff;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  background: #f5f2f8;
  color: #101010;
  font-weight: 800;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-page,
.dashboard-page {
  width: 100%;
}

.hub-page {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(190, 84, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 18% 34%, rgba(85, 32, 135, 0.22), transparent 32rem);
}

.hub-brand {
  width: calc(100% - 48px);
}

.hub-login-link {
  width: auto;
  padding: 0 14px;
  text-transform: uppercase;
}

.hub-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 86px;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(44px, 6vw, 86px) clamp(24px, 3.8vw, 72px) clamp(34px, 5vw, 76px);
  border-bottom: 1px solid rgba(190, 84, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 64%),
    radial-gradient(circle at 80% 18%, rgba(190, 84, 255, 0.18), transparent 24rem);
}

.hub-hero-copy {
  display: grid;
  gap: 18px;
  max-width: min(760px, 42vw);
}

.hub-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(54px, 6vw, 104px);
  line-height: 0.9;
}

.hub-hero h1 span {
  color: #d956ff;
  text-shadow: 0 0 34px rgba(217, 86, 255, 0.28);
}

.hub-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #c9c2cf;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.65;
}

.hub-preview {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 84, 255, 0.45);
  border-radius: 8px;
  background: rgba(12, 10, 15, 0.92);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55), 0 0 90px rgba(190, 84, 255, 0.18);
  cursor: pointer;
}

.hub-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -90px 120px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hub-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(190, 84, 255, 0.22);
  background: rgba(0, 0, 0, 0.48);
}

.hub-preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(190, 84, 255, 0.42);
}

.hub-preview-bar strong {
  margin-left: 8px;
  color: #f5f2f8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  opacity: 0.95;
  transition: transform 240ms ease, opacity 240ms ease;
}

.hub-preview:hover img {
  transform: scale(1.018);
  opacity: 1;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.hub-primary {
  width: auto;
  min-width: 260px;
  padding: 0 22px;
}

.hub-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(190, 84, 255, 0.35);
  border-radius: 8px;
  background: rgba(190, 84, 255, 0.08);
  color: #f3d8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: calc(100% - 56px);
  margin: 28px auto 12px;
}

.hub-status div,
.hub-card,
.hub-feature {
  border: 1px solid rgba(190, 84, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 13, 18, 0.82);
}

.hub-status div {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 16px;
}

.hub-status span,
.hub-card-top span {
  color: #a79db0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-status strong {
  color: #f5f2f8;
  font-size: 20px;
}

.hub-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
  width: calc(100% - 56px);
  margin: 12px auto;
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(190, 84, 255, 0.13), transparent 44%),
    rgba(15, 13, 18, 0.86);
}

.hub-feature h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
}

.hub-feature p:not(.eyebrow) {
  margin: 0;
  color: #c9c2cf;
  line-height: 1.6;
}

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

.hub-feature-list span {
  min-height: 48px;
  padding: 14px;
  border: 1px solid rgba(190, 84, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f2f8;
  font-size: 13px;
  font-weight: 800;
}

.hub-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  width: calc(100% - 56px);
  margin: 12px auto;
  padding: 22px;
  scroll-margin-top: 96px;
  border: 1px solid rgba(190, 84, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(217, 86, 255, 0.14), transparent 22rem),
    rgba(15, 13, 18, 0.86);
}

.hub-showcase-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-top: 18px;
}

.hub-showcase-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1;
}

.hub-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.hub-shot {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 276px;
  overflow: hidden;
  border: 1px solid rgba(190, 84, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.72);
}

.hub-shot.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.hub-shot.wide {
  grid-column: span 2;
}

.hub-shot img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid rgba(190, 84, 255, 0.18);
  opacity: 0.9;
}

.hub-shot.featured img {
  height: 390px;
  object-fit: contain;
  object-position: center;
  background: #07070a;
}

.hub-shot.wide img {
  height: 210px;
}

.hub-shot.portrait img {
  height: 330px;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at 50% 62%, rgba(190, 84, 255, 0.18), transparent 18rem),
    #07070a;
}

.hub-shot div {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.hub-shot span {
  color: #f5f2f8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-shot p {
  margin: 0;
  color: #c9c2cf;
  font-size: 13px;
  line-height: 1.45;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% - 56px);
  margin: 0 auto;
}

.hub-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 8px 2px 2px;
}

.hub-section-title h2 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 0.96;
}

.hub-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 316px;
  padding: 18px;
}

.hub-card-preview {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: start;
  height: 88px;
  margin: -2px -2px 2px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(190, 84, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(190, 84, 255, 0.16), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 42px),
    rgba(5, 5, 6, 0.62);
}

.hub-card-preview::before,
.hub-card-preview::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 84, 255, 0.08), rgba(217, 86, 255, 0.65), rgba(255, 94, 168, 0.2));
}

.hub-card-preview::before {
  bottom: 26px;
  height: 2px;
  transform: rotate(-5deg);
}

.hub-card-preview::after {
  bottom: 42px;
  height: 2px;
  transform: rotate(4deg);
}

.hub-card-preview span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(217, 86, 255, 0.46);
}

.hub-card.available .hub-card-preview {
  background:
    linear-gradient(135deg, rgba(190, 84, 255, 0.26), transparent 52%),
    url("/public/assets/actions-preview.png") top left / cover,
    rgba(5, 5, 6, 0.62);
}

.hub-card.available {
  border-color: rgba(190, 84, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(190, 84, 255, 0.24), rgba(15, 13, 18, 0.88) 46%),
    rgba(15, 13, 18, 0.9);
  box-shadow: inset 0 0 0 1px rgba(190, 84, 255, 0.14), 0 20px 70px rgba(190, 84, 255, 0.12);
}

.hub-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hub-card-top small {
  color: #f3d8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.hub-card p {
  margin: 0;
  color: #c9c2cf;
  font-size: 14px;
  line-height: 1.55;
}

.hub-card button {
  align-self: end;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid rgba(190, 84, 255, 0.42);
  border-radius: 8px;
  background: rgba(190, 84, 255, 0.14);
  color: #f5f2f8;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-card.available button,
.hub-primary {
  border-color: rgba(217, 86, 255, 0.7);
  background: linear-gradient(135deg, rgba(190, 84, 255, 0.28), rgba(255, 94, 168, 0.16));
  color: #fff;
  box-shadow: 0 0 24px rgba(190, 84, 255, 0.16);
}

.hub-card button:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #82798b;
  cursor: default;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 30px 0 76px;
}

.login-copy h1,
.dashboard-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.94;
}

.dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.96;
}

.login-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #c9c2cf;
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 16px;
  color: #9f9484;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

.auth-copy {
  margin: -6px 0 0;
  color: #c9c2cf;
  font-size: 14px;
  line-height: 1.55;
}

.auth-dev-code {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 84, 255, 0.32);
  border-radius: 8px;
  background: rgba(141, 45, 255, 0.12);
  color: #f3d8ff;
  font-size: 13px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.auth-links button {
  border: 0;
  background: transparent;
  color: #f3d8ff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.panel-icon,
.panel-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(159, 148, 132, 0.15);
  color: #dbc8aa;
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: #d7d0dd;
  font-size: 13px;
  font-weight: 700;
}

.login-panel input,
.ticker-control select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111111;
  color: #f8f8ff;
  outline: none;
}

.login-panel input {
  min-height: 46px;
  padding: 0 14px;
}

.error-message,
.notice.error {
  color: #ffb4a9;
}

.dashboard-page {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.dashboard-page .brand-header {
  width: 100%;
}

.terminal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #938d9a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8fe6a2;
  box-shadow: 0 0 16px rgba(143, 230, 162, 0.6);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: center;
  padding: 20px 0 14px;
}

.pro-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  color: #aba3b2;
  font-size: 17px;
  line-height: 1.55;
}

.command-stack {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.command-stack > span {
  color: #938d9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.tf-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #bfb7c8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.tf-button.active {
  border-color: rgba(219, 200, 170, 0.5);
  background: #dbc8aa;
  color: #101010;
}

.ticker-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(219, 200, 170, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #cfc8d6;
}

.ticker-control > span {
  color: #938d9a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.module-tabs {
  position: sticky;
  top: 70px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(16px);
}

.module-tabs a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cfc8d6;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticker-control select {
  min-width: 0;
  border: 0;
  background: transparent;
  appearance: none;
}

.asset-header {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) repeat(5, minmax(130px, 0.5fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.asset-main,
.metric,
.decision-chip,
.score-strip,
.panel,
.market-card,
.loading-panel,
.notice {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 50px rgba(0, 0, 0, 0.18);
}

.asset-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 106px;
  padding: 18px;
}

.asset-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #f5f2f8;
  color: #111;
  font-weight: 900;
  overflow: hidden;
}

.asset-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.asset-logo span {
  display: none;
}

.asset-main h2 {
  margin: 4px 0;
  font-size: 30px;
  line-height: 1;
}

.asset-main p,
.muted {
  margin: 0;
  color: #aaa2b3;
}

.metric {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
}

.metric span {
  color: #908896;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metric.good strong {
  color: #9fe6b0;
}

.metric.bad strong {
  color: #ff9f95;
}

.decision-chip {
  display: grid;
  align-content: center;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 16px;
  color: #101010;
  background: #f5f2f8;
  font-weight: 800;
  text-align: center;
}

.decision-chip span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(#dbc8aa var(--score), rgba(255, 255, 255, 0.12) 0);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.score-item span,
.score-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-item span {
  color: #928a9b;
  font-size: 12px;
}

.score-item strong {
  margin-top: 3px;
  font-size: 14px;
}

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

.panel {
  grid-column: span 4;
  min-width: 0;
  padding: 16px;
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr) minmax(260px, 0.5fr);
  gap: 12px;
  margin-bottom: 12px;
}

.alerts-card {
  grid-column: 1 / -1;
}

.fvi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pro-chart {
  width: 100%;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.pro-chart.small {
  height: 260px;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.45;
}

.legend-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.legend-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.legend-card p {
  margin: 0;
  color: #cfc8d6;
  line-height: 1.6;
}

.legend-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.legend-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7d0dd;
  font-size: 13px;
  font-weight: 800;
}

.legend-list i {
  width: 24px;
  height: 3px;
  border-radius: 99px;
}

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

.season-chart {
  min-width: 0;
}

.market-card {
  min-width: 0;
  padding: 16px;
}

.card-kicker {
  color: #938d9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chart-head,
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.chart-head {
  margin-top: 12px;
}

.chart-head strong {
  font-size: 22px;
}

.chart-head span,
.chart-footer span {
  color: #aaa2b3;
  font-size: 12px;
}

.chart-footer {
  margin-top: 8px;
}

.sparkline-chart {
  width: 100%;
  height: 190px;
  margin-top: 10px;
}

.spark-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.5;
}

.spark-area {
  fill: url(#lineFill);
}

.spark-line {
  fill: none;
  stroke: #dbc8aa;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 10px rgba(219, 200, 170, 0.28));
}

.signal-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.signal-card strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
}

.signal-card p {
  margin: 0;
  color: #cfc8d6;
  line-height: 1.65;
}

.gauge-card {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.big-gauge {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(#dbc8aa var(--score), rgba(255, 255, 255, 0.09) 0);
}

.big-gauge > div {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #101010;
}

.big-gauge strong {
  font-size: 42px;
  line-height: 1;
}

.big-gauge span,
.gauge-card > span {
  color: #aaa2b3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.alert-item {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.alert-item span {
  color: #928a9b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alert-item strong {
  color: #f5f2f8;
  font-size: 14px;
  line-height: 1.25;
}

.alert-item.ok {
  border-color: rgba(159, 230, 176, 0.24);
}

.alert-item.warn {
  border-color: rgba(219, 200, 170, 0.35);
}

.alert-item.bad {
  border-color: rgba(255, 159, 149, 0.32);
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
}

.empty-panel {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(190, 84, 255, 0.28);
  border-radius: 8px;
  color: var(--rz-muted);
  font-size: 13px;
  text-align: center;
}

.news-panel {
  margin-top: 12px;
}

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

.news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(190, 84, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.news-card:hover {
  border-color: rgba(190, 84, 255, 0.6);
  background: rgba(141, 45, 255, 0.12);
}

.news-card img,
.news-thumb {
  width: 96px;
  height: 72px;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(141, 45, 255, 0.18);
}

.news-thumb {
  display: grid;
  place-items: center;
  color: #f3d8ff;
  font-weight: 900;
}

.news-card span {
  color: var(--rz-dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card strong {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: var(--rz-text);
  font-size: 14px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--rz-muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #908896;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: #e7e1ec;
}

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

.metric-grid .metric {
  min-height: 74px;
  background: rgba(255, 255, 255, 0.035);
}

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

.bar-row {
  display: grid;
  grid-template-columns: 130px minmax(90px, 1fr) 72px;
  gap: 10px;
  align-items: center;
}

.bar-row small {
  grid-column: 1 / -1;
  color: #928a9b;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.good-fill {
  background: #9fe6b0;
}

.bad-fill {
  background: #ff9f95;
}

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

.decision-text {
  margin: 18px 0 0;
  color: #d4cedb;
  font-size: 17px;
  line-height: 1.7;
}

.action-line {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(219, 200, 170, 0.14);
  color: #fff;
  font-weight: 800;
}

.loading-panel,
.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  margin-top: 20px;
  color: #d4cedb;
}

.notice {
  min-height: auto;
  padding: 14px;
}

.disclaimer {
  margin: 18px 0 0;
  color: #8f8796;
  font-size: 12px;
  text-align: center;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .asset-header {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-main,
  .decision-chip {
    grid-column: 1 / -1;
  }

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

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

  .chart-card,
  .alerts-card {
    grid-column: 1 / -1;
  }

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

  .fvi-layout,
  .season-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 840px) {
  .brand-header {
    align-items: flex-start;
  }

  .brand-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .login-grid,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .login-grid {
    min-height: auto;
    padding-top: 40px;
  }

  .panel {
    grid-column: 1 / -1;
  }

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

  .alert-list {
    grid-template-columns: 1fr;
  }

  .chart-summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand-header,
  .brand-header.compact,
  .dashboard-page,
  .login-grid {
    width: min(100% - 24px, 1180px);
  }

  .brand-header {
    display: grid;
  }

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

  .login-copy h1,
  .dashboard-hero h1 {
    font-size: 42px;
  }

  .asset-header,
  .score-strip,
  .metric-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .module-tabs {
    top: 88px;
  }

  .asset-main {
    align-items: flex-start;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }
}

/* RZ professional dashboard reconstruction */
:root {
  --rz-bg: #010102;
  --rz-bg-2: #040405;
  --rz-panel: rgba(14, 14, 18, 0.82);
  --rz-panel-strong: rgba(1, 1, 2, 0.96);
  --rz-purple: #be54ff;
  --rz-purple-soft: rgba(190, 84, 255, 0.26);
  --rz-purple-mid: rgba(190, 84, 255, 0.52);
  --rz-text: #f5f2f8;
  --rz-muted: #d9d4de;
  --rz-dim: #9b93a6;
  --rz-good: #8fe6a2;
  --rz-bad: #ff4d8d;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(141, 45, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(190, 84, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--rz-bg) 0%, var(--rz-bg-2) 100%);
  color: var(--rz-text);
}

.brand-header {
  width: 100%;
  max-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #030304;
  padding: 16px 36px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--rz-text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.38em;
}

.brand-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 84, 255, 0.44);
  border-radius: 50%;
  background: radial-gradient(circle at 65% 20%, rgba(190, 84, 255, 0.32), rgba(13, 13, 18, 0.9) 58%);
  color: #f3d8ff;
  font-size: 10px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 24px rgba(190, 84, 255, 0.14);
}

.brand-orb img,
.panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-orb {
  overflow: hidden;
  background: #020203;
}

.logo-panel {
  overflow: hidden;
  border: 1px solid rgba(190, 84, 255, 0.44);
  background: #020203;
}

.brand-x {
  color: var(--rz-purple);
}

.brand-header nav {
  color: var(--rz-muted);
  gap: 20px;
}

.icon-button,
.primary-button,
.header-cta {
  border-color: rgba(190, 84, 255, 0.72);
  background: rgba(141, 45, 255, 0.1);
  color: #f3d8ff;
}

.dashboard-page {
  width: calc(100% - 32px);
  max-width: none;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(320px, 640px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0 10px;
  padding: 12px;
  border: 1px solid var(--rz-purple-soft);
  border-radius: 8px;
  background: rgba(14, 14, 18, 0.78);
}

.dashboard-loader {
  min-height: 520px;
  display: grid;
  grid-template-columns: 150px minmax(0, 540px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 42px;
  border: 1px solid var(--rz-purple-soft);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 35%, rgba(190, 84, 255, 0.18), transparent 42%),
    rgba(9, 9, 12, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 90px rgba(0, 0, 0, 0.38);
}

.dashboard-loader h2 {
  margin: 4px 0 8px;
  color: var(--rz-text);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
}

.dashboard-loader p {
  margin: 0;
  color: var(--rz-muted);
}

.loader-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(141, 45, 255, 0.12);
}

.loader-orbit::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(190, 84, 255, 0.22);
  border-top-color: var(--rz-purple);
  border-radius: 50%;
  animation: rzOrbit 1.1s linear infinite;
}

.loader-orbit img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 50%;
}

.loader-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.loader-steps span {
  padding: 8px 10px;
  border: 1px solid rgba(190, 84, 255, 0.36);
  border-radius: 999px;
  color: #f3d8ff;
  background: rgba(141, 45, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes rzOrbit {
  to { transform: rotate(360deg); }
}

.skeleton-chart,
.skeleton-lines {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.skeleton-chart {
  height: 360px;
  display: grid;
  align-content: end;
  gap: 22px;
  padding: 34px;
}

.skeleton-lines {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.skeleton-chart::after,
.skeleton-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(190, 84, 255, 0.18), transparent);
  animation: rzSkeleton 1.25s ease-in-out infinite;
}

.skeleton-chart span,
.skeleton-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 242, 248, 0.09);
}

.skeleton-chart span:nth-child(1) { width: 86%; }
.skeleton-chart span:nth-child(2) { width: 62%; }
.skeleton-chart span:nth-child(3) { width: 74%; }
.skeleton-chart span:nth-child(4) { width: 48%; }
.skeleton-lines span:nth-child(1) { width: 72%; }
.skeleton-lines span:nth-child(2) { width: 92%; }
.skeleton-lines span:nth-child(3) { width: 58%; }

@keyframes rzSkeleton {
  to { transform: translateX(100%); }
}

.news-marquee {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(190, 84, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.news-marquee > div {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: rzNewsMarquee 34s linear infinite;
}

.news-marquee a,
.news-marquee span {
  color: #f3d8ff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.news-marquee a::before {
  content: "NEWS";
  margin-right: 8px;
  color: var(--rz-purple);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.muted-marquee {
  justify-content: center;
  padding: 0 14px;
}

@keyframes rzNewsMarquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.technical-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.indicator-combo {
  position: relative;
}

.indicator-trigger {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(190, 84, 255, 0.52);
  border-radius: 8px;
  background: rgba(141, 45, 255, 0.16);
  color: var(--rz-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.indicator-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 172px;
  display: none;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(190, 84, 255, 0.58);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.indicator-menu.open {
  display: grid;
}

.indicator-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rz-text);
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rz-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  background: var(--rz-purple);
  box-shadow: 0 0 18px rgba(190, 84, 255, 0.72);
}

.ticker-control {
  border-color: var(--rz-purple-soft);
  background: rgba(255, 255, 255, 0.04);
}

.ticker-control > span {
  color: #f3d8ff;
}

.ticker-control select {
  min-height: 40px;
  color: var(--rz-text);
}

.ticker-combobox {
  position: relative;
  min-width: 0;
}

.ticker-trigger {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(190, 84, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--rz-text);
  cursor: pointer;
  text-align: left;
}

.ticker-trigger span {
  color: #f3d8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ticker-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: var(--rz-text);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  padding: 10px;
  border: 1px solid rgba(190, 84, 255, 0.58);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(190, 84, 255, 0.12);
}

.ticker-combobox.open .ticker-menu {
  display: block;
}

.ticker-menu input {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid rgba(190, 84, 255, 0.42);
  border-radius: 7px;
  background: #09090d;
  color: var(--rz-text);
  font: inherit;
  outline: none;
}

.ticker-options {
  max-height: 340px;
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}

.ticker-option {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--rz-text);
  cursor: pointer;
  text-align: left;
}

.ticker-option:hover,
.ticker-option.active {
  border-color: rgba(190, 84, 255, 0.52);
  background: rgba(141, 45, 255, 0.18);
}

.ticker-option strong {
  color: #ffffff;
  font-size: 13px;
}

.ticker-option span,
.ticker-empty {
  color: var(--rz-muted);
  font-size: 12px;
}

.ticker-empty {
  padding: 14px 10px;
}

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

.tf-button,
.tab-button,
.segmented button {
  min-height: 40px;
  border: 1px solid rgba(190, 84, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--rz-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tf-button.active,
.tab-button.active,
.segmented button.active {
  border-color: rgba(190, 84, 255, 0.72);
  background: rgba(141, 45, 255, 0.16);
  color: #f3d8ff;
  box-shadow: inset 0 0 0 1px rgba(190, 84, 255, 0.18), 0 0 24px rgba(190, 84, 255, 0.12);
}

.module-tabs {
  position: sticky;
  top: 69px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0;
  background: rgba(1, 1, 2, 0.86);
}

.asset-header {
  grid-template-columns: minmax(300px, 1.3fr) repeat(5, minmax(132px, 0.48fr));
}

.asset-main,
.metric,
.decision-chip,
.score-strip,
.panel,
.rail-card,
.loading-panel,
.notice {
  border-color: var(--rz-purple-soft);
  background: var(--rz-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.asset-logo {
  background: rgba(141, 45, 255, 0.14);
  color: #f3d8ff;
  border: 1px solid var(--rz-purple-soft);
}

.metric span,
.score-item span,
th,
.rail-card span,
.card-kicker {
  color: var(--rz-dim);
}

.metric strong,
td,
.score-item strong {
  color: var(--rz-text);
}

.metric.good strong {
  color: var(--rz-good);
}

.metric.bad strong {
  color: var(--rz-bad);
}

.metric.warn strong {
  color: #FFD000;
}

.metric.neutral strong {
  color: #f3d8ff;
}

td.pos {
  color: var(--rz-good);
}

td.neg {
  color: var(--rz-bad);
}

td.neutral {
  color: #d8b6ff;
}

.decision-chip {
  color: #f3d8ff;
  background: rgba(141, 45, 255, 0.16);
  border-color: rgba(190, 84, 255, 0.72);
}

.decision-chip span {
  color: rgba(243, 216, 255, 0.7);
}

.score-ring,
.big-gauge {
  background: conic-gradient(var(--rz-purple) var(--score), rgba(255, 255, 255, 0.09) 0);
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.workspace-rail {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 10px;
}

.rail-card {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
}

.rail-card strong {
  color: var(--rz-text);
  font-size: 16px;
  line-height: 1.25;
}

.workspace-main {
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--rz-purple-soft);
  border-radius: 8px;
  background: rgba(1, 1, 2, 0.78);
}

.section-header h1 {
  margin: 0;
  color: var(--rz-text);
  font-size: clamp(32px, 3vw, 54px);
  line-height: 0.96;
}

.section-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--rz-muted);
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
}

.control-note {
  color: var(--rz-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sheet-controls {
  min-width: min(100%, 940px);
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(150px, 0.55fr) minmax(360px, 1.4fr);
  gap: 0;
  border: 1px solid rgba(190, 84, 255, 0.44);
  background: rgba(0, 0, 0, 0.38);
}

.sheet-controls label,
.season-toggle-field {
  min-height: 72px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 12px;
  border-right: 1px solid rgba(190, 84, 255, 0.36);
}

.sheet-controls label:last-of-type,
.season-toggle-field {
  border-right: 0;
}

.sheet-controls span {
  color: var(--rz-text);
  font-size: 11px;
  font-weight: 900;
}

.sheet-controls input,
.sheet-controls select {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(190, 84, 255, 0.42);
  background: rgba(0, 0, 0, 0.48);
  color: var(--rz-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.sheet-controls input {
  padding: 0 8px;
}

.sheet-controls select {
  padding: 0 32px 0 8px;
}

.season-note {
  grid-column: 1 / -1;
  padding: 8px 12px;
  border-top: 1px solid rgba(190, 84, 255, 0.28);
  color: #f3d8ff;
  font-size: 12px;
  font-weight: 700;
}

.season-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.season-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--period-color), transparent 45%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--rz-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.season-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--period-color);
}

.pro-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

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

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

.overview-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr) minmax(240px, 0.55fr);
}

.fvi-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.season-advanced-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
}

.season-side-grid {
  display: grid;
  gap: 12px;
}

.panel {
  grid-column: auto;
  padding: 16px;
}

.panel-heading span {
  width: 34px;
  height: 30px;
  border: 1px solid var(--rz-purple-soft);
  background: rgba(141, 45, 255, 0.1);
  color: #f3d8ff;
  font-size: 10px;
  font-weight: 900;
}

.panel-heading h3 {
  display: grid;
  gap: 4px;
  color: var(--rz-text);
  font-size: 16px;
}

.panel-heading h3 small {
  color: #f3d8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-panel {
  min-height: 430px;
}

.echart {
  width: 100%;
  height: 360px;
}

.overview-grid .echart,
#chart-fvi {
  height: 440px;
}

#chart-season-yearly {
  height: 520px;
}

#chart-season-month,
#chart-season-bars {
  height: 238px;
}

.decision-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.decision-panel strong {
  color: #f3d8ff;
  font-size: 22px;
  line-height: 1.18;
}

.decision-panel p {
  margin: 0;
  color: var(--rz-muted);
  line-height: 1.65;
}

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

.execution-grid .metric {
  min-height: 68px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.score-panel {
  display: grid;
  place-items: center;
  text-align: center;
}

.score-thermo-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
}

.score-thermo-body {
  display: grid;
  grid-template-columns: 38px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 330px;
}

.thermo-scale {
  height: 278px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--rz-dim);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.thermo-track {
  position: relative;
  width: 34px;
  height: 278px;
  justify-self: center;
  border: 1px solid rgba(190, 84, 255, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(25, 208, 127, 0.18), rgba(255, 208, 0, 0.16) 46%, rgba(255, 59, 104, 0.18)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.65), 0 0 28px rgba(190, 84, 255, 0.14);
}

.thermo-track::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.thermo-fill {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: calc(var(--score) - 12px);
  min-height: 8px;
  max-height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d8ff, var(--rz-purple));
  box-shadow: 0 0 20px rgba(190, 84, 255, 0.58);
}

.score-thermo-panel.good .thermo-fill {
  background: linear-gradient(180deg, #b8ffd8, #19d07f);
  box-shadow: 0 0 20px rgba(25, 208, 127, 0.48);
}

.score-thermo-panel.bad .thermo-fill {
  background: linear-gradient(180deg, #ffb1c7, #ff3b68);
  box-shadow: 0 0 20px rgba(255, 59, 104, 0.45);
}

.thermo-bulb {
  position: absolute;
  left: 50%;
  bottom: -21px;
  width: 64px;
  height: 64px;
  transform: translateX(-50%);
  border: 1px solid rgba(190, 84, 255, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f3d8ff, var(--rz-purple) 44%, rgba(60, 14, 92, 0.98));
  box-shadow: 0 0 30px rgba(190, 84, 255, 0.34);
}

.score-thermo-panel.good .thermo-bulb {
  background: radial-gradient(circle at 38% 32%, #d9ffe9, #19d07f 46%, rgba(8, 65, 43, 0.98));
}

.score-thermo-panel.bad .thermo-bulb {
  background: radial-gradient(circle at 38% 32%, #ffd2df, #ff3b68 46%, rgba(95, 10, 34, 0.98));
}

.thermo-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.thermo-copy strong {
  color: var(--rz-text);
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.9;
}

.thermo-copy small {
  color: var(--rz-dim);
  font-size: 18px;
}

.thermo-copy span {
  color: #f3d8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thermo-copy p {
  margin: 0;
  color: var(--rz-muted);
  line-height: 1.5;
}

.big-gauge > div {
  background: var(--rz-bg);
}

table {
  min-width: 560px;
}

th,
td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .command-bar,
  .workspace,
  .overview-grid,
  .pro-grid.two,
  .pro-grid.three,
  .fvi-grid,
  .season-advanced-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hub-status,
  .hub-grid,
  .hub-hero,
  .hub-feature,
  .hub-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hub-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hub-hero-copy {
    max-width: 820px;
  }

  .hub-preview {
    transform: none;
  }

  .workspace-rail {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .dashboard-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 18px;
  }

  .loader-orbit {
    width: 108px;
    height: 108px;
  }

  .news-marquee {
    height: 42px;
  }

  .brand-header,
  .dashboard-page,
  .hub-brand,
  .hub-shell {
    width: 100%;
  }

  .brand-header {
    padding: 14px 16px;
  }

  .brand-mark {
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  .brand-orb {
    width: 40px;
    height: 40px;
  }

  .hub-shell {
    padding: 0 0 56px;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }

  .hub-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hub-actions,
  .hub-actions .primary-button,
  .hub-secondary {
    width: 100%;
  }

  .hub-status,
  .hub-feature,
  .hub-grid,
  .hub-showcase {
    width: calc(100% - 32px);
  }

  .hub-showcase,
  .hub-showcase-grid {
    grid-template-columns: 1fr;
  }

  .hub-shot.featured {
    grid-row: auto;
    grid-column: auto;
  }

  .hub-shot.wide {
    grid-column: auto;
  }

  .hub-shot.featured img,
  .hub-shot img {
    height: 220px;
  }

  .hub-status,
  .hub-grid,
  .hub-feature,
  .hub-feature-list {
    grid-template-columns: 1fr;
  }

  .hub-preview {
    margin-top: 6px;
  }

  .workspace-rail,
  .module-tabs,
  .timeframe-row,
  .score-strip,
  .asset-header {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }

  .sheet-controls {
    grid-template-columns: 1fr;
  }

  .sheet-controls label,
  .season-toggle-field {
    border-right: 0;
    border-bottom: 1px solid rgba(190, 84, 255, 0.28);
  }

  .echart,
  .overview-grid .echart,
  #chart-fvi {
    height: 300px;
  }

  .score-thermo-body {
    grid-template-columns: 32px 64px minmax(0, 1fr);
    min-height: 260px;
  }

  .thermo-scale,
  .thermo-track {
    height: 220px;
  }

  .thermo-bulb {
    width: 54px;
    height: 54px;
  }

  #chart-season-yearly,
  #chart-season-month,
  #chart-season-bars {
    height: 320px;
  }
}

