﻿:root {
  --bg: #0c1017;
  --panel: #151b24;
  --panel-2: #111720;
  --panel-3: #1a222d;
  --ink: #edf3fb;
  --muted: #9aa9bc;
  --line: #2b3645;
  --brand: #080c12;
  --blue: #3b82f6;
  --blue-soft: #13243d;
  --teal: #29b7a7;
  --teal-soft: #102823;
  --red: #ff6475;
  --green: #34d399;
  --amber: #f0b84d;
  --gold: #d6a044;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #101723 0%, #0c1017 360px),
    var(--bg);
  color: var(--ink);
  font: 15px/1.45 "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #1a2431;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  border-color: #4b6381;
  background: #203047;
}

button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

button.payment-main {
  padding: 13px 18px;
  font-weight: 900;
}

button.danger {
  background: #331820;
  border-color: #6b2b38;
  color: var(--red);
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151e;
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  min-height: 360px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 13px;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 30px;
  background: linear-gradient(135deg, #071222 0%, #0f2437 72%, #12342f 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
}

.subtitle {
  color: #b9c7d8;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
}

.language-picker {
  min-width: 150px;
  color: #d9e7f7;
  font-size: 12px;
  font-weight: 800;
}

.language-picker select {
  height: 42px;
  border-color: #24415f;
  background: #0d1b2c;
  color: #fff;
}

.auth-user {
  align-self: center;
  color: #d9e7f7;
  font-weight: 800;
  white-space: nowrap;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.82);
  backdrop-filter: blur(6px);
}

body.auth-required .auth-overlay {
  display: grid;
}

body.auth-required.public-demo-open .auth-overlay {
  display: none;
}

body.auth-checking .auth-overlay {
  display: none !important;
}

body:not(.is-authenticated) #logoutBtn,
body.is-authenticated #loginOpenBtn {
  display: none;
}

body.subscription-required .tab:not([data-tab="client"]):not([data-tab="account"])::after,
body.public-demo-open:not(.is-authenticated) .tab[data-tab="desk"]::after {
  content: "Demo";
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  margin-left: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 2px;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.public-demo-open:not(.is-authenticated) .tab:not([data-tab="desk"]):not([data-tab="client"])::after {
  content: "Locked";
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  margin-left: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 2px;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.pro-access .tab:not([data-tab="client"]):not([data-tab="account"])::after {
  content: "Pro";
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  margin-left: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.subscription-required .tab-page:not(#client):not(#account)::before {
  content: "Demo preview: these results are sample simulations only. They are not real market scans, customer results, broker statements, or a promise of future performance. Activate VexoCode Pro to use live market data, scans, charts and predictions.";
  display: block;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-left: 4px solid var(--green);
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

body.public-demo-open:not(.is-authenticated) .tab-page.active::before {
  content: "Demo mode: these results are sample simulations only. They are not real market scans, customer results, broker statements, or a promise of future performance.";
  display: block;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 204, 21, 0.44);
  border-left: 4px solid var(--yellow);
  border-radius: 2px;
  background: rgba(250, 204, 21, 0.09);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

body.subscription-required .tab-page:not(#client):not(#account) .panel,
body.public-demo-open:not(.is-authenticated) .tab-page .panel,
body.pro-access .tab-page .panel {
  position: relative;
}

body.subscription-required .tab-page:not(#client):not(#account) .panel::after,
body.public-demo-open:not(.is-authenticated) .tab-page .panel::after {
  content: "Demo";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 2px;
  background: rgba(3, 7, 12, 0.92);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.pro-access .tab-page .panel::after {
  content: "Pro";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 2px;
  background: rgba(3, 7, 12, 0.92);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.subscription-required .sidebar::before {
  content: "Demo preview";
  display: block;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #0c121b;
  color: #e5edf7;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.auth-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: 1.05;
}

.auth-intro,
.auth-form-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
}

.auth-intro {
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, #101923 0%, #071119 100%);
}

.auth-intro .eyebrow {
  color: #89a2b8;
}

.auth-intro .muted,
.auth-form-panel .muted {
  color: #aebdca;
}

.auth-form-panel {
  background: #111923;
}

.auth-form-head {
  display: grid;
  gap: 5px;
}

.auth-form-head strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
}

.auth-form-head span {
  color: #aebdca;
  font-size: 13px;
  font-weight: 700;
}

.auth-price-line {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(31, 215, 154, 0.36);
  border-radius: 8px;
  background: rgba(31, 215, 154, 0.09);
}

.auth-price-line strong {
  color: #ffffff;
  font-size: 26px;
}

.auth-price-line span {
  color: #aebdca;
  font-size: 13px;
  font-weight: 700;
}

.auth-benefits {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-benefits strong {
  color: #ffffff;
  font-size: 15px;
}

.auth-benefits ul {
  margin: 0;
  padding-left: 19px;
  color: #bfd0de;
  font-size: 13px;
  font-weight: 700;
}

.auth-benefits li + li {
  margin-top: 5px;
}

.auth-demo-entry {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.auth-demo-entry button {
  min-height: 46px;
  border: 1px solid rgba(240, 207, 141, 0.58);
  border-radius: 6px;
  background: rgba(219, 190, 128, 0.12);
  color: #fff3d8;
  font-weight: 900;
}

.auth-demo-entry button:hover {
  border-color: #f0cf8d;
  background: rgba(219, 190, 128, 0.2);
}

.auth-demo-entry span {
  color: #91a4b6;
  font-size: 12px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #090f16;
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aebdca;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  background: #14352b;
  border-color: #1fd79a;
  color: #ffffff;
  font-weight: 900;
}

.auth-form-panel label:not(.auth-remember) {
  display: grid;
  gap: 7px;
  color: #c6d4e1;
  font-size: 13px;
  font-weight: 800;
}

.auth-form-panel input[type="email"],
.auth-form-panel input[type="password"],
.auth-form-panel input[type="text"] {
  min-height: 46px;
  border: 1px solid #34465a;
  border-radius: 6px;
  background: #070d13;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.auth-form-panel input:focus {
  outline: 2px solid rgba(31, 215, 154, 0.45);
  border-color: #1fd79a;
}

.auth-remember {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e4ef;
  font-size: 13px;
  font-weight: 800;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1fd79a;
}

.auth-form-panel #authSubmitBtn {
  min-height: 46px;
  border-color: #13b981;
  border-radius: 6px;
  background: #13a874;
  color: #03110c;
  font-size: 14px;
  font-weight: 1000;
}

.auth-form-panel #authSubmitBtn:hover {
  background: #1fd79a;
}

.auth-status {
  display: grid;
  min-height: 46px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #2b6cb0;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.13);
  color: #cfe3ff;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.auth-status[hidden] {
  display: none;
}

.auth-status.warning {
  border-color: #fb7185;
  background: rgba(127, 29, 29, 0.24);
  color: #fecdd3;
}

.auth-card.is-auth-loading {
  border-color: rgba(31, 215, 154, 0.62);
}

.auth-card.is-auth-loading #authSubmitBtn {
  background: #0e7556;
  border-color: #0e7556;
}

.small-note {
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: calc(100vh - 104px);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.workspace {
  min-width: 0;
  padding: 18px 18px 26px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab {
  white-space: nowrap;
  background: #dfe8f2;
  border-color: #c9d5e3;
  font-weight: 700;
}

.tab.active {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
}

body:not(.admin-mode) .admin-only,
body:not(.admin-mode) .sidebar .note,
body:not(.admin-mode) #groqState,
body:not(.admin-mode) #groqModel,
body:not(.admin-mode) .kv span:nth-child(1),
body:not(.admin-mode) .kv span:nth-child(3) {
  display: none;
}

body:not(.admin-access) .staff-control {
  display: none;
}

body:not(.admin-mode) .kv {
  grid-template-columns: 1fr auto;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel.compact {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.note p {
  margin: 0;
}

.onboarding ol {
  margin: 0;
  padding-left: 20px;
  color: #43566d;
}

.onboarding li {
  margin: 5px 0;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.scan-overview {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid #cbd8e7;
  border-radius: 8px;
  background: #f8fbff;
}

.scan-overview-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.scan-overview-head strong {
  font-size: 15px;
}

.scan-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa8b8;
  box-shadow: 0 0 0 4px rgba(154, 168, 184, 0.16);
}

.scan-overview.running .scan-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 104, 232, 0.18);
}

.scan-overview.done .scan-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 128, 92, 0.17);
}

.scan-overview.error .scan-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(204, 36, 49, 0.16);
}

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

.scan-overview-grid div {
  padding: 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}

.scan-overview-grid span,
.scan-overview p {
  color: var(--muted);
  font-size: 12px;
}

.scan-overview-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.scan-overview p {
  margin: 0;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e0ea;
}

.progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #1768e8, #12a3ff);
  transition: width 200ms ease;
}

.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  color: var(--muted);
}

.kv strong {
  color: var(--ink);
  text-align: right;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

.check input {
  width: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.radar-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid #bfd0e3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 245, 255, 0.96) 62%, rgba(231, 247, 243, 0.96) 100%);
  box-shadow: var(--shadow);
}

.radar-brief h1 {
  margin: 2px 0 6px;
  font-size: 34px;
  line-height: 1.05;
}

.radar-brief p {
  max-width: 980px;
  margin: 0;
  color: #334a64;
  font-size: 17px;
}

.daily-brief {
  margin-bottom: 8px !important;
  color: #10253f !important;
  font-size: 20px !important;
  font-weight: 800;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.radar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.workflow-strip article {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #cbd8e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(20, 35, 55, 0.06);
}

.workflow-strip span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.workflow-strip strong {
  font-size: 17px;
}

.workflow-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 16px;
}

.two-col.wide-left {
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
}

.radar-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.signal-list,
.analysis-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: #fbfdff;
  cursor: pointer;
}

.card:hover,
.card.active {
  border-color: var(--blue);
  background: #f0f6ff;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.signal-card.featured {
  border-color: #9bc2ff;
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.opportunity-score {
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.opportunity-score span {
  display: block;
  font-size: 25px;
}

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

.mini-chart {
  width: 100%;
  height: 76px;
  margin-top: 12px;
  border-radius: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag.good {
  background: #e8f2ff;
  color: #1057c8;
}

.tag.pending {
  background: #fff6e6;
  color: var(--amber);
}

.tag.bad {
  background: #fff0f1;
  color: var(--red);
}

.tag.neutral {
  background: #f2f4f7;
  color: #53606f;
}

.tag.risk {
  background: #fff6e6;
  color: var(--amber);
}

.tag.late {
  background: #eef1f5;
  color: #69788a;
}

.card-topline,
.card-actions,
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.card-topline {
  margin-bottom: 8px;
}

.card-actions,
.detail-actions {
  margin-top: 12px;
}

button.small {
  padding: 6px 10px;
  font-size: 13px;
}

a.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151e;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

a.small:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.compact-list {
  max-height: 430px;
}

.asset-radar,
.source-list,
.coverage-list {
  display: grid;
  gap: 9px;
  max-height: 620px;
  overflow: auto;
}

.asset-row,
.source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #fbfdff;
}

.asset-row {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.asset-row:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.asset-row strong,
.source-card strong {
  display: block;
}

.asset-row span,
.source-card span {
  color: var(--muted);
  font-size: 13px;
}

.source-performance {
  grid-template-columns: minmax(0, 1fr) auto minmax(210px, auto);
}

.source-performance small {
  display: block;
  margin-top: 5px;
  color: #607086;
  font-size: 12px;
  line-height: 1.35;
}

.asset-score {
  text-align: right;
  white-space: nowrap;
}

.asset-signal {
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: 260px;
}

.asset-signal small {
  color: #52657c;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.coverage-summary {
  margin: -2px 0 12px;
  font-size: 13px;
}

.coverage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(160px, auto);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  background: #fbfdff;
}

.coverage-row strong,
.coverage-row span {
  display: block;
}

.coverage-row div span,
.coverage-row small {
  color: var(--muted);
  font-size: 12px;
}

.coverage-row small {
  text-align: right;
}

.scan-quality {
  display: grid;
  gap: 12px;
}

.scan-quality-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.scan-quality-head strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.scan-quality-head p,
.scan-quality-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.scan-stat-grid div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.scan-stat-grid strong {
  display: block;
  color: var(--text);
  font-size: 19px;
}

.scan-stat-grid span {
  color: var(--muted);
  font-size: 11px;
}

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

.usage-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.usage-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.usage-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.decision-panel,
.why-list {
  display: grid;
  gap: 10px;
}

.decision {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}

.decision strong {
  display: inline-flex;
  margin-bottom: 7px;
  font-size: 20px;
}

.decision p {
  margin: 0;
  color: #43566d;
}

.decision.good {
  border-color: #b6d4ff;
  background: #eff6ff;
}

.decision.bad,
.decision.risk {
  border-color: #f3c2c9;
  background: #fff3f5;
}

.decision.neutral,
.decision.late {
  border-color: #d7e0ea;
  background: #f7f9fc;
}

.why-list ul {
  margin: 0;
  padding-left: 18px;
}

.why-list li {
  margin: 5px 0;
  color: #43566d;
}

.source-full {
  margin-top: 16px;
}

.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid #bfd0e3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #edf5ff 58%, #e7f7f3 100%);
  box-shadow: var(--shadow);
}

.client-hero h1 {
  margin: 3px 0 8px;
  font-size: 34px;
}

.client-hero p {
  max-width: 880px;
  margin: 0;
  color: #334a64;
  font-size: 18px;
}

.hero-payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.price-card {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--brand), #133a35);
  color: white;
  text-align: center;
}

.client-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 0.78fr);
  gap: 12px;
  margin: 0 0 16px;
}

.client-flow > div {
  min-height: 138px;
  padding: 16px;
  border: 1px solid #cbd8e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.client-flow span:first-child {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.client-flow strong {
  display: block;
  font-size: 17px;
}

.client-flow p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.client-flow-status {
  display: grid;
  align-content: center;
  gap: 6px;
  background: #10243a !important;
  color: white;
}

.client-flow-status small,
.client-flow-status span {
  color: #b9c7d8;
  font-weight: 700;
}

.client-flow-status strong {
  font-size: 20px;
}

.price-card span,
.price-card small {
  color: #b9c7d8;
  font-weight: 700;
}

.price-card strong {
  font-size: 38px;
}

.checkout-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #b6d4ff;
  border-radius: 12px;
  background: #eff6ff;
}

.checkout-box strong {
  display: block;
  font-size: 22px;
}

.checkout-box span {
  color: #43566d;
}

.payment-notice {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: #f7f9fc;
  color: #43566d;
}

.payment-notice.warning {
  border-color: #f3d29a;
  background: #fff8e8;
  color: #7d5200;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid #bfd0e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f3 100%);
  box-shadow: var(--shadow);
}

.account-hero h1 {
  margin: 4px 0 8px;
  font-size: 32px;
}

.account-hero p {
  margin: 0;
  max-width: 820px;
  color: #334a64;
  font-size: 17px;
}

.account-plan-pill {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border-radius: 12px;
  background: #0f2d46;
  color: white;
  text-align: center;
}

.account-plan-pill span,
.account-plan-pill small {
  color: #b9c7d8;
  font-weight: 700;
}

.account-plan-pill strong {
  font-size: 26px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
}

.account-card {
  min-height: 190px;
}

.account-rows {
  display: grid;
  gap: 10px;
}

.account-rows div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e1e8f0;
}

.account-rows span {
  color: #64778c;
  font-weight: 700;
}

.account-rows strong {
  overflow-wrap: anywhere;
}

.permission-grid {
  display: grid;
  gap: 10px;
}

.permission {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #f7f9fc;
}

.permission.good {
  border-color: #b6d4ff;
  background: #eff6ff;
}

.permission span {
  color: #43566d;
  font-weight: 800;
}

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

.security-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #b6d4ff;
  border-radius: 10px;
  background: #eff6ff;
  color: #334a64;
}

.password-change {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.password-change label {
  display: grid;
  gap: 5px;
  color: #43566d;
  font-weight: 700;
}

.password-change small {
  color: #64778c;
}

.password-change .payment-notice {
  margin-top: 2px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.premium-proof {
  grid-column: 1 / -1;
}

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

.proof-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #bfd0e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
}

.proof-grid strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 20px;
}

.proof-grid span {
  color: #334a64;
  font-weight: 700;
}

.feature-list,
.value-list,
.license-box {
  display: grid;
  gap: 12px;
}

.feature-list article,
.value-list div,
.license-box div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  background: #fbfdff;
}

.feature-list strong,
.value-list strong,
.license-box strong {
  display: block;
  margin-bottom: 4px;
}

.feature-list span,
.value-list span,
.license-box span {
  color: var(--muted);
}

.sales-copy {
  display: grid;
  gap: 10px;
  color: #334a64;
}

.sales-copy h3,
.sales-copy p {
  margin: 0;
}

.promo-kit-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.promo-kit-head .section-title {
  margin-bottom: 4px;
}

.promo-status-grid,
.promo-copy-grid {
  display: grid;
  gap: 10px;
}

.promo-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.promo-status-grid div,
.promo-copy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.promo-status-grid strong,
.promo-copy-card strong {
  display: block;
  color: var(--ink);
}

.promo-status-grid span,
.promo-copy-card p {
  color: var(--muted);
}

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

.promo-copy-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.promo-copy-card p {
  min-height: 94px;
  margin: 0;
  line-height: 1.45;
}

.article-body {
  display: grid;
  gap: 13px;
  max-height: 680px;
  overflow: auto;
}

.article-body h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
}

.article-body h3 {
  margin: 10px 0 0;
  font-size: 16px;
}

.article-body p {
  margin: 0;
}

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

.chart-controls {
  display: grid;
  grid-template-columns: minmax(300px, 410px) 220px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.chart-asset-search {
  position: relative;
}

.asset-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  overflow: auto;
  max-height: 390px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 38px rgba(7, 18, 34, 0.17);
}

.asset-search-item {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  text-align: left;
}

.asset-search-item:hover {
  background: var(--blue-soft);
  border-color: transparent;
}

.asset-search-item strong {
  font-size: 14px;
}

.asset-search-item .asset-market {
  grid-row: span 2;
  align-self: center;
  color: #53606f;
  font-size: 12px;
  font-weight: 700;
}

.asset-search-item small,
.asset-search-empty {
  color: var(--muted);
  font-size: 12px;
}

.asset-search-empty {
  padding: 11px;
}

.instrument-catalog {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.instrument-catalog-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.instrument-catalog-head strong {
  display: block;
  font-size: 15px;
}

.instrument-catalog-head div span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.instrument-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.instrument-type-filter {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.instrument-type-filter.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.instrument-catalog-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.instrument-chip {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 8px 10px;
  text-align: left;
  background: #fff;
}

.instrument-chip strong,
.instrument-chip small {
  display: block;
}

.instrument-chip small {
  max-width: 165px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instrument-chip:hover {
  background: var(--blue-soft);
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: stretch;
}

.instrument-decision {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.instrument-decision-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.instrument-decision h2 {
  margin: 2px 0 6px;
  font-size: 26px;
  line-height: 1.12;
}

.instrument-decision p {
  margin: 0;
  color: var(--muted);
}

.instrument-decision-score {
  min-width: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.instrument-decision-score span {
  display: block;
  font-size: 34px;
  font-weight: 900;
}

.instrument-decision-score small {
  color: var(--muted);
  font-weight: 800;
}

.instrument-decision-meta,
.instrument-decision-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instrument-decision-meta span,
.instrument-decision-reasons span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
}

.instrument-decision-reasons strong {
  width: 100%;
}

.instrument-decision.bullish {
  border-color: rgba(31, 209, 123, 0.42);
}

.instrument-decision.bearish {
  border-color: rgba(255, 76, 97, 0.46);
}

.instrument-decision.conflict,
.instrument-decision.wait {
  border-color: rgba(243, 193, 77, 0.48);
}

canvas {
  width: 100%;
  min-height: 480px;
  background: #071222;
  border-radius: 10px;
  border: 1px solid #1e334f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 36px rgba(7, 18, 34, 0.16);
}

.chart-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fbfdff;
  white-space: pre-line;
  overflow: auto;
  max-height: 560px;
}

.prediction-panel {
  display: grid;
  gap: 16px;
}

.prediction-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.prediction-head h1 {
  margin: 4px 0 8px;
  font-size: 32px;
}

.prediction-head p {
  margin: 0;
  max-width: 820px;
}

.prediction-summary {
  border: 1px solid #c8d9ed;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f3f8ff;
}

.prediction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

.prediction-list.empty {
  display: block;
}

.prediction-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}

.prediction-card-header,
.prediction-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.prediction-card-header strong {
  display: block;
  font-size: 20px;
}

.prediction-card-header small,
.prediction-note,
.prediction-news {
  color: var(--muted);
  line-height: 1.4;
}

.prediction-potential {
  border-radius: 18px;
  padding: 7px 10px;
  background: #e9eff7;
  font-weight: 800;
  white-space: nowrap;
}

.prediction-potential.up {
  background: #daf4e5;
  color: #087443;
}

.prediction-potential.down {
  background: #ffe3e8;
  color: #b52139;
}

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

.prediction-prices div {
  border-radius: 9px;
  padding: 10px;
  background: #f0f5fb;
}

.prediction-prices span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.prediction-prices strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.prediction-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prediction-card-meta span {
  border-radius: 16px;
  padding: 5px 9px;
  background: #eef3fb;
  color: #465a73;
  font-size: 12px;
  font-weight: 700;
}

.prediction-news strong {
  display: block;
  color: #334a64;
  font-size: 12px;
  text-transform: uppercase;
}

.prediction-reality {
  display: grid;
  gap: 4px;
  border: 1px solid #d1dceb;
  border-radius: 9px;
  padding: 10px 12px;
  background: #f0f5fb;
}

.prediction-reality strong {
  color: #334a64;
  font-size: 12px;
  text-transform: uppercase;
}

.prediction-reality.confirmed {
  border-color: #a8ddc2;
  background: #ecfbf3;
  color: #087443;
}

.prediction-reality.conflict {
  border-color: #ffbcc7;
  background: #fff1f4;
  color: #b52139;
}

.prediction-trail {
  display: grid;
  gap: 7px;
}

.prediction-trail > strong {
  color: #334a64;
  font-size: 12px;
  text-transform: uppercase;
}

.prediction-trail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  border-left: 3px solid #bccde0;
  border-radius: 5px;
  padding: 7px 9px;
  background: #f6f9fd;
}

.prediction-trail-row span {
  grid-row: 1 / 3;
  border-radius: 13px;
  align-self: start;
  padding: 3px 7px;
  background: #e7eef7;
  color: #465a73;
  font-size: 11px;
  font-weight: 800;
}

.prediction-trail-row strong {
  font-size: 13px;
}

.prediction-trail-row small,
.prediction-trail-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.prediction-trail-row em {
  font-style: normal;
  font-weight: 700;
}

.prediction-trail-row.support {
  border-left-color: #32ad6d;
}

.prediction-trail-row.counter {
  border-left-color: #db4d62;
}

.prediction-card-footer button {
  margin-left: auto;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.forecast-metric {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}

.forecast-metric strong {
  font-size: 20px;
}

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

.forecast-calibration {
  grid-column: 1 / -1;
  background: #f3f8ff;
}

.forecast-history-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.forecast-hit {
  color: #087443;
  font-weight: 800;
}

.forecast-miss {
  color: #b52139;
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

pre {
  margin: 0;
  max-height: 720px;
  overflow: auto;
  padding: 16px;
  background: #071222;
  color: #d9e8ff;
  border-radius: 10px;
  font-size: 13px;
}

/* Dark trading desk finish */
.topbar {
  background: linear-gradient(135deg, #070a0f 0%, #101822 62%, #10251f 100%);
}

button.primary {
  background: linear-gradient(135deg, #178f83, #29b7a7);
  border-color: #29b7a7;
  color: #03110f;
  font-weight: 900;
}

button.primary:hover {
  background: linear-gradient(135deg, #23a99b, #35d0bf);
  border-color: #35d0bf;
}

.subtitle,
.language-picker,
.auth-user {
  color: #aab8c9;
}

.language-picker select {
  border-color: #334155;
  background: #0b1119;
}

.auth-card,
.panel,
.metric,
.ai-insight-panel,
.workflow-strip article,
.client-flow > div,
.feature-list article,
.value-list div,
.license-box div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.chart-summary,
.instrument-decision,
.instrument-decision-score,
.instrument-decision-meta span,
.instrument-decision-reasons span,
.instrument-catalog,
.prediction-card,
.forecast-metric,
.permission,
.security-note,
.scan-overview,
.scan-overview-grid div,
.usage-grid article,
.scan-stat-grid div,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.checkout-box,
.payment-notice {
  background: linear-gradient(180deg, rgba(27, 36, 48, 0.98), rgba(18, 25, 35, 0.98));
  border-color: var(--line);
  color: var(--ink);
}

.sidebar {
  background: #0e141d;
  border-right-color: #263241;
}

.workspace {
  background: transparent;
}

.tabs {
  scrollbar-color: #334155 transparent;
}

.tab {
  background: #121a25;
  border-color: #2b3645;
  color: #aab8c9;
}

.tab.active {
  background: #1b2635;
  border-color: var(--teal);
  color: #e8fff9;
}

.radar-brief,
.client-hero,
.account-hero {
  border-color: #314255;
  background:
    linear-gradient(135deg, rgba(23, 31, 43, 0.98) 0%, rgba(16, 28, 43, 0.98) 58%, rgba(15, 44, 37, 0.94) 100%);
}

.radar-brief p,
.client-hero p,
.account-hero p,
.feature-list span,
.value-list span,
.license-box span,
.checkout-box span,
.sales-copy,
.decision p,
.why-list li,
.asset-row span,
.source-card span,
.coverage-row div span,
.coverage-row small,
.prediction-card-header small,
.prediction-note,
.prediction-news,
.prediction-trail-row small,
.prediction-trail-row em,
.prediction-summary,
.payment-notice,
.security-note,
.scan-quality-head p,
.scan-quality-note,
.coverage-summary,
.muted,
label {
  color: var(--muted);
}

.daily-brief,
.radar-brief h1,
.client-hero h1,
.account-hero h1,
.section-title,
.card h3,
.decision strong,
.asset-row strong,
.source-card strong,
.checkout-box strong,
.feature-list strong,
.value-list strong,
.license-box strong,
.prediction-card-header strong,
.forecast-metric strong,
.kv strong,
.scan-stat-grid strong,
.usage-grid strong,
.scan-quality-head strong {
  color: var(--ink) !important;
}

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

.price-card,
.opportunity-score,
.proof-grid strong,
.account-plan-pill,
.client-flow-status {
  background: linear-gradient(160deg, #080c12, #17352f) !important;
}

.proof-grid div,
.signal-card.featured {
  border-color: #314255;
  background: linear-gradient(135deg, #1a2431 0%, #142235 100%);
}

.proof-grid span,
.card p,
.article-body,
.sales-copy p {
  color: #aab8c9;
}

.card:hover,
.card.active,
.asset-row:hover {
  border-color: rgba(41, 183, 167, 0.72);
  background: #1b2b38;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.status-pill,
.tag.good,
.prediction-summary,
.security-note,
.permission.good,
.decision.good {
  background: #102b33;
  border-color: #24606a;
  color: #86f7e7;
}

.tag,
.tag.neutral,
.prediction-card-meta span,
.prediction-potential,
.instrument-chip,
.instrument-catalog,
.asset-search-results {
  background: #121a25;
  color: #aab8c9;
  border-color: #2b3645;
}

.tag.pending,
.tag.risk {
  background: #2d2111;
  color: #ffd38a;
}

.tag.bad,
.decision.bad,
.decision.risk,
.payment-notice.warning {
  background: #321722;
  border-color: #6b2b38;
  color: #ff9aa6;
}

.progress {
  background: #202b38;
}

.progress div {
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.scan-overview {
  background: #121a25;
}

.scan-overview-grid div {
  background: #0f151e;
}

.scan-dot {
  background: #69788d;
}

.table-wrap,
table {
  color: var(--ink);
}

th {
  background: #111a25;
  color: #aab8c9;
}

td {
  border-bottom-color: #263241;
}

textarea,
pre,
canvas {
  background: #060a10;
}

.chart-summary,
.instrument-catalog,
.prediction-summary,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.forecast-calibration {
  background: #101720;
}

.asset-search-item:hover,
.instrument-chip:hover,
.instrument-type-filter.active {
  background: #143235;
}

.prediction-potential.up,
.prediction-reality.confirmed {
  background: #0f3528;
  color: #8dffd0;
}

.prediction-potential.down,
.prediction-reality.conflict {
  background: #381924;
  color: #ff9aa6;
}

.client-flow-status small,
.client-flow-status span,
.price-card span,
.price-card small,
.account-plan-pill span,
.account-plan-pill small {
  color: #aab8c9;
}

/* Exclusive financial newspaper layer */
body {
  background:
    linear-gradient(180deg, #11100d 0%, #0b0e12 360px),
    #0b0e12;
}

.topbar {
  align-items: stretch;
  padding: 20px 30px 18px;
  background: #0b0e12;
  border-top: 3px double #6f5a32;
  border-bottom: 3px double #6f5a32;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 0.94;
  color: #f4ead8;
  text-transform: none;
}

.subtitle {
  margin-top: 8px;
  color: #bcae91;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.top-actions {
  align-items: center;
}

.layout {
  background:
    linear-gradient(90deg, rgba(111, 90, 50, 0.08) 1px, transparent 1px),
    #0b0e12;
  background-size: 26px 26px;
}

.sidebar {
  background: rgba(12, 14, 18, 0.96);
  border-right: 1px solid #3a3020;
}

.workspace {
  padding: 22px 22px 32px;
}

.panel,
.metric,
.workflow-strip article,
.client-flow > div,
.feature-list article,
.value-list div,
.license-box div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.chart-summary,
.instrument-catalog,
.prediction-card,
.forecast-metric,
.permission,
.security-note,
.scan-overview,
.scan-overview-grid div,
.usage-grid article,
.scan-stat-grid div,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.checkout-box,
.payment-notice {
  border-radius: 4px;
  border-color: #3c3529;
  background:
    linear-gradient(180deg, rgba(28, 27, 24, 0.98), rgba(16, 18, 20, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.panel {
  position: relative;
}

.panel::before,
.metric::before,
.ai-insight-panel::before,
.workflow-strip article::before,
.client-flow > div::before {
  content: "";
  display: block;
  height: 1px;
  margin: -1px 0 13px;
  background: linear-gradient(90deg, #9d7a35, transparent);
  opacity: 0.78;
}

.section-title,
.radar-brief h1,
.client-hero h1,
.account-hero h1,
.prediction-head h1,
.auth-card h1,
.daily-brief,
.card h3,
.feature-list strong,
.value-list strong,
.license-box strong,
.checkout-box strong,
.sales-copy h3,
.prediction-card-header strong {
  font-family: Georgia, "Times New Roman", serif;
  color: #f4ead8 !important;
}

.section-title {
  font-size: 17px;
  letter-spacing: 0;
}

.section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin-top: 7px;
  background: #9d7a35;
}

.tabs {
  gap: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #3a3020;
}

.tab {
  border-radius: 0;
  border-color: #3a3020;
  background: #101216;
  color: #bcae91;
  font-family: Georgia, "Times New Roman", serif;
}

.tab + .tab {
  margin-left: -1px;
}

.tab.active {
  background: #1d1a15;
  border-color: #9d7a35;
  color: #f4ead8;
}

.radar-brief,
.client-hero,
.account-hero {
  border-color: #6f5a32;
  border-top: 3px double #6f5a32;
  border-bottom: 1px solid #6f5a32;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(30, 28, 23, 0.98) 0%, rgba(15, 18, 22, 0.98) 58%, rgba(28, 36, 33, 0.96) 100%);
}

.radar-brief h1,
.client-hero h1 {
  font-size: 40px;
}

.eyebrow {
  color: #d7ad57;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand::after {
  content: "Market Intelligence Edition";
  display: block;
  margin-top: 8px;
  color: #9d7a35;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edition-tape {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) 170px 150px 150px;
  border-bottom: 1px solid #6f5a32;
  background: #12100c;
  color: #f4ead8;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.edition-tape-cell {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 9px 14px;
  border-right: 1px solid #3a3020;
}

.edition-tape-cell:last-child {
  border-right: 0;
}

.edition-tape-cell span {
  color: #bcae91;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edition-tape-cell strong {
  overflow: hidden;
  color: #f4ead8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-lead strong {
  font-size: 17px;
}

.edition-date {
  background: #1d1a15;
}

.metric {
  min-height: 118px;
}

.metric span,
.tag,
.card p,
.proof-grid span,
.workflow-strip p,
.client-flow p,
.feature-list span,
.value-list span,
.license-box span,
.sales-copy p,
.muted,
label {
  color: #b3a78f;
}

.metric strong {
  color: #f4ead8;
  font-family: Georgia, "Times New Roman", serif;
}

.price-card,
.account-plan-pill,
.client-flow-status,
.opportunity-score {
  border: 1px solid #9d7a35;
  background:
    linear-gradient(180deg, #15120d, #0c1010) !important;
}

.price-card strong,
.account-plan-pill strong,
.client-flow-status strong,
.opportunity-score span {
  color: #f4ead8;
  font-family: Georgia, "Times New Roman", serif;
}

button.primary {
  background: linear-gradient(180deg, #d4aa5e, #9d7a35);
  border-color: #d4aa5e;
  color: #120f0a;
}

button.primary:hover {
  background: linear-gradient(180deg, #e4bf78, #b78e42);
  border-color: #e4bf78;
}

button {
  border-radius: 4px;
}

input,
select,
textarea {
  border-radius: 4px;
  border-color: #3c3529;
  background: #0d1013;
}

.status-pill,
.tag.good,
.prediction-summary,
.security-note,
.permission.good,
.decision.good {
  background: #17241f;
  border-color: #376d5b;
  color: #a7f3d0;
}

.tag.pending,
.tag.risk {
  background: #292114;
  color: #e6c27a;
}

.tag.bad,
.decision.bad,
.decision.risk,
.payment-notice.warning {
  background: #2a1417;
  border-color: #704048;
  color: #f4a0aa;
}

.proof-grid div,
.signal-card.featured,
.instrument-chip {
  border-radius: 4px;
  border-color: #3c3529;
  background: #151719;
}

.card:hover,
.card.active,
.asset-row:hover {
  border-color: #d4aa5e;
  background: #1d1a15;
}

.progress div {
  background: linear-gradient(90deg, #9d7a35, #d4aa5e);
}

th {
  color: #d4c29d;
  background: #151719;
}

canvas,
pre {
  border-color: #3c3529;
}

/* Old grey newspaper sheet */
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(135deg, #141414 0%, #08090a 100%);
  color: #161616;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}

.topbar,
.edition-tape,
.layout {
  width: min(1520px, calc(100% - 28px));
  margin-inline: auto;
}

.topbar {
  margin-top: 16px;
  clip-path: polygon(0.4% 1.2%, 99.3% 0%, 100% 98.2%, 98.6% 100%, 1.1% 99.4%, 0% 3.2%);
  background:
    linear-gradient(180deg, rgba(196, 190, 176, 0.96), rgba(164, 158, 145, 0.96)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 5px);
  border: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.brand {
  color: #141414;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand::after,
.subtitle,
.language-picker,
.auth-user {
  color: #4a4234;
}

.topbar button,
.language-picker select {
  border-color: #756b59;
  background: rgba(224, 219, 207, 0.76);
  color: #171717;
}

.topbar button.primary {
  background: #2a2925;
  border-color: #2a2925;
  color: #eee6d6;
}

.edition-tape {
  position: sticky;
  top: 0;
  clip-path: polygon(0.2% 0%, 99.8% 1.6%, 100% 100%, 0.5% 98.6%);
  border: 0;
  background: #d2ccbd;
  color: #161616;
}

.edition-tape-cell {
  border-right-color: #8c8069;
}

.edition-tape-cell span {
  color: #5d523f;
}

.edition-tape-cell strong {
  color: #161616;
}

.edition-date {
  background: #b9b2a3;
}

.layout {
  position: relative;
  min-height: calc(100vh - 178px);
  margin-bottom: 22px;
  clip-path: polygon(0.6% 0%, 99.5% 0.4%, 99.9% 98.7%, 98.8% 100%, 0.7% 99.4%, 0% 1.2%);
  background:
    linear-gradient(90deg, rgba(35, 35, 35, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 6px),
    #c4beaf;
  background-size: 28px 28px, auto, auto;
  border: 0;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.layout::before,
.layout::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0 8px, rgba(0, 0, 0, 0.09) 8px 11px, transparent 11px 20px);
  opacity: 0.55;
}

.layout::before {
  left: 0;
}

.layout::after {
  right: 0;
  transform: scaleX(-1);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(177, 171, 157, 0.94), rgba(151, 145, 132, 0.94));
  border-right: 1px solid #8c8069;
}

.workspace {
  background: rgba(203, 197, 182, 0.56);
}

.panel,
.metric,
.ai-insight-panel,
.workflow-strip article,
.client-flow > div,
.feature-list article,
.value-list div,
.license-box div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.chart-summary,
.instrument-catalog,
.prediction-card,
.forecast-metric,
.permission,
.security-note,
.scan-overview,
.scan-overview-grid div,
.usage-grid article,
.scan-stat-grid div,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.checkout-box,
.payment-notice {
  border-color: #8c8069;
  background:
    linear-gradient(180deg, rgba(215, 210, 197, 0.96), rgba(185, 179, 165, 0.96));
  color: #161616;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 22px rgba(57, 48, 34, 0.14);
}

.panel::before,
.metric::before,
.ai-insight-panel::before,
.workflow-strip article::before,
.client-flow > div::before {
  background: linear-gradient(90deg, #4d4535, transparent);
}

.radar-brief,
.client-hero,
.account-hero {
  border-color: #6b604d;
  background:
    linear-gradient(135deg, rgba(215, 210, 197, 0.96) 0%, rgba(188, 181, 166, 0.97) 58%, rgba(164, 158, 145, 0.95) 100%);
}

.section-title,
.radar-brief h1,
.client-hero h1,
.account-hero h1,
.prediction-head h1,
.auth-card h1,
.daily-brief,
.card h3,
.feature-list strong,
.value-list strong,
.license-box strong,
.checkout-box strong,
.sales-copy h3,
.prediction-card-header strong,
.metric strong,
.kv strong,
.scan-stat-grid strong,
.usage-grid strong,
.scan-quality-head strong,
.decision strong,
.asset-row strong,
.source-card strong {
  color: #151515 !important;
}

.radar-brief p,
.client-hero p,
.account-hero p,
.feature-list span,
.value-list span,
.license-box span,
.checkout-box span,
.sales-copy,
.decision p,
.why-list li,
.asset-row span,
.source-card span,
.coverage-row div span,
.coverage-row small,
.prediction-card-header small,
.prediction-note,
.prediction-news,
.prediction-trail-row small,
.prediction-trail-row em,
.prediction-summary,
.payment-notice,
.security-note,
.scan-quality-head p,
.scan-quality-note,
.coverage-summary,
.muted,
label,
.metric span,
.tag,
.card p,
.proof-grid span,
.workflow-strip p,
.client-flow p {
  color: #51493a;
}

.tabs {
  border-bottom-color: #7b705c;
}

.tab {
  border-color: #8c8069;
  background: #b6af9f;
  color: #2a2720;
}

.tab.active {
  background: #ded8c9;
  border-color: #3f392d;
  color: #111;
}

input,
select,
textarea,
pre,
canvas {
  border-color: #7d725f;
  background: #e0dacb;
  color: #151515;
}

button {
  border-color: #6f6553;
  background: #d8d2c4;
  color: #151515;
}

button:hover {
  background: #e5dfd1;
  border-color: #3f392d;
}

button.primary {
  background: #24231f;
  border-color: #24231f;
  color: #eee6d6;
}

button.primary:hover {
  background: #111;
  border-color: #111;
}

.price-card,
.account-plan-pill,
.client-flow-status,
.opportunity-score {
  border-color: #3f392d;
  background:
    linear-gradient(180deg, #2d2b25, #151515) !important;
}

.price-card strong,
.account-plan-pill strong,
.client-flow-status strong,
.opportunity-score span,
.price-card span,
.price-card small,
.account-plan-pill span,
.account-plan-pill small,
.client-flow-status small,
.client-flow-status span {
  color: #eee6d6;
}

.status-pill,
.tag.good,
.prediction-summary,
.security-note,
.permission.good,
.decision.good {
  background: #c6d2c0;
  border-color: #62775f;
  color: #17331f;
}

.tag,
.tag.neutral,
.prediction-card-meta span,
.prediction-potential,
.instrument-chip,
.asset-search-results {
  background: #c7c0ae;
  border-color: #8c8069;
  color: #302b22;
}

.tag.pending,
.tag.risk {
  background: #d9c99f;
  color: #4d3410;
}

.tag.bad,
.decision.bad,
.decision.risk,
.payment-notice.warning {
  background: #d2b5b5;
  border-color: #885a5d;
  color: #4a171c;
}

.progress {
  background: #a39a86;
}

.progress div {
  background: linear-gradient(90deg, #2f2b22, #8c8069);
}

th {
  background: #b8b09f;
  color: #302b22;
}

td {
  border-bottom-color: #8c8069;
}

.card:hover,
.card.active,
.asset-row:hover {
  border-color: #2f2b22;
  background: #ddd7c8;
}

/* Real scanned newspaper surface */
body {
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.16), transparent 34rem),
    linear-gradient(135deg, #111 0%, #050505 100%);
}

.topbar,
.edition-tape,
.layout {
  width: min(1420px, calc(100% - 36px));
}

.topbar,
.edition-tape,
.layout,
.panel,
.metric,
.workflow-strip article,
.client-flow > div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.feature-list article,
.value-list div,
.license-box div,
.checkout-box,
.prediction-card,
.forecast-metric,
.instrument-catalog,
.scan-overview,
.payment-notice {
  background-image:
    linear-gradient(rgba(207, 203, 190, 0.84), rgba(207, 203, 190, 0.84)),
    url("/static/assets/newsprint-texture.png");
  background-size: auto, 520px 520px;
  background-repeat: repeat;
  background-blend-mode: multiply;
}

.topbar {
  margin-top: 22px;
  padding: 24px 34px 20px;
  clip-path: polygon(0.8% 0.6%, 99.1% 0%, 99.8% 98.7%, 98.9% 99.7%, 1.2% 100%, 0% 2.4%);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 42px rgba(91, 78, 58, 0.18);
}

.brand {
  font-size: 64px;
  color: #111;
  letter-spacing: 0;
}

.brand::after {
  color: #3d382f;
}

.edition-tape {
  position: static;
  clip-path: polygon(0.5% 0%, 99.4% 0.8%, 100% 98.4%, 0.2% 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.layout {
  margin-top: 0;
  padding: 0 12px 14px;
  clip-path: polygon(0.4% 0.1%, 99.6% 0.4%, 99.8% 98.9%, 98.9% 99.8%, 1.2% 99.5%, 0% 1.3%);
  box-shadow:
    0 40px 92px rgba(0, 0, 0, 0.46),
    inset 0 0 68px rgba(67, 57, 42, 0.2);
}

.layout::before,
.layout::after {
  width: 22px;
  opacity: 0.42;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0 7px, rgba(0, 0, 0, 0.12) 7px 10px, transparent 10px 19px);
}

.sidebar {
  padding-left: 26px;
  background:
    linear-gradient(rgba(178, 172, 158, 0.72), rgba(178, 172, 158, 0.72)),
    url("/static/assets/newsprint-texture.png");
  background-size: auto, 520px 520px;
  background-blend-mode: multiply;
}

.workspace {
  padding: 22px 26px 34px;
  background: transparent;
}

.panel,
.metric,
.workflow-strip article,
.client-flow > div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.feature-list article,
.value-list div,
.license-box div,
.checkout-box,
.prediction-card,
.forecast-metric,
.instrument-catalog,
.scan-overview,
.payment-notice {
  border-radius: 0;
  border-width: 0;
  border-top: 1px solid rgba(32, 28, 22, 0.72);
  border-bottom: 1px solid rgba(32, 28, 22, 0.22);
  box-shadow: none;
}

.panel::before,
.metric::before,
.workflow-strip article::before,
.client-flow > div::before {
  margin-top: 0;
  background: #211d17;
}

.radar-brief,
.client-hero,
.account-hero {
  border: 1px solid #2b261d;
  border-top: 5px double #2b261d;
  border-bottom: 2px solid #2b261d;
  background-image:
    linear-gradient(rgba(214, 209, 195, 0.82), rgba(190, 184, 169, 0.82)),
    url("/static/assets/newsprint-texture.png");
}

.radar-grid,
.client-grid,
.two-col,
.account-grid {
  column-gap: 18px;
}

.radar-grid > .panel,
.client-grid > .panel,
.two-col > .panel,
.account-grid > .panel {
  border-left: 1px solid rgba(41, 36, 28, 0.45);
}

.section-title,
.radar-brief h1,
.client-hero h1,
.account-hero h1,
.daily-brief {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.radar-brief h1,
.client-hero h1,
.account-hero h1 {
  font-size: 54px;
  line-height: 0.98;
}

.section-title {
  text-transform: uppercase;
  font-size: 15px;
}

.section-title::after {
  width: 100%;
  height: 2px;
  background:
    linear-gradient(#211d17, #211d17) top / 100% 1px no-repeat,
    linear-gradient(#211d17, #211d17) bottom / 100% 1px no-repeat;
}

.tabs {
  border-top: 1px solid #332d23;
  border-bottom: 3px double #332d23;
}

.tab {
  background: transparent;
  border: 0;
  border-right: 1px solid #8a806b;
}

.tab.active {
  background: rgba(255, 255, 255, 0.24);
  border-bottom: 3px solid #211d17;
}

.price-card,
.account-plan-pill,
.client-flow-status,
.opportunity-score {
  background-image:
    linear-gradient(rgba(31, 29, 25, 0.94), rgba(17, 17, 16, 0.96)),
    url("/static/assets/newsprint-texture.png") !important;
  background-size: auto, 520px 520px !important;
}

button,
input,
select,
textarea {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

canvas,
pre {
  background: #111;
  color: #eee6d6;
}

@media (max-width: 1100px) {
  .layout,
  .two-col,
  .two-col.wide-left,
  .radar-grid,
  .account-hero,
  .account-grid,
  .client-hero,
  .client-flow,
  .client-grid,
  .chart-grid,
  .prediction-list,
  .forecast-metric-grid {
    grid-template-columns: 1fr;
  }

  .radar-brief,
  .prediction-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-box {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .proof-grid,
  .workflow-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .edition-tape {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .edition-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 34px;
  }

  .hero-grid,
  .proof-grid,
  .workflow-strip,
  .account-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .usage-grid,
  .asset-row,
  .coverage-row,
  .scan-stat-grid,
  .prediction-prices {
    grid-template-columns: 1fr;
  }

  .asset-signal {
    justify-items: start;
    max-width: none;
  }

  .asset-signal small,
  .asset-score,
  .coverage-row small {
    text-align: left;
  }

  .edition-tape {
    grid-template-columns: 1fr;
  }

  .instrument-decision-main {
    grid-template-columns: 1fr;
  }

  .instrument-decision-score {
    width: 100%;
  }

  .edition-tape-cell {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid #3a3020;
  }
}

/* Vexo Command Room redesign */
:root {
  --bg: #07090d;
  --panel: #11161d;
  --panel-2: #161d26;
  --ink: #eef4f0;
  --muted: #9aa8a2;
  --line: #27323b;
  --brand: #07090d;
  --blue: #5aa7ff;
  --blue-soft: #102133;
  --teal: #42d6b5;
  --teal-soft: #0d2a25;
  --red: #ff667a;
  --green: #45d48f;
  --amber: #e9b75b;
  --gold: #d6a75b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

body {
  background:
    linear-gradient(90deg, rgba(66, 214, 181, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(214, 167, 91, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -24rem, rgba(66, 214, 181, 0.12), transparent 34rem),
    linear-gradient(180deg, #0b0f14 0%, #07090d 42rem);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--ink);
}

body::before {
  display: none;
}

.topbar,
.edition-tape,
.layout {
  width: 100%;
  max-width: none;
  margin: 0;
  clip-path: none;
}

.topbar {
  align-items: center;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid rgba(66, 214, 181, 0.18);
  background:
    linear-gradient(135deg, rgba(13, 18, 25, 0.98), rgba(8, 12, 17, 0.98)),
    none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.brand {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.brand::after {
  content: "AI MARKET COMMAND";
  margin-top: 7px;
  color: var(--teal);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

.subtitle,
.language-picker,
.auth-user {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-style: normal;
}

.topbar button,
.language-picker select,
button,
input,
select,
textarea {
  border-color: var(--line);
  border-radius: 8px;
  background: #101720;
  color: var(--ink);
  box-shadow: none;
}

button:hover {
  border-color: rgba(66, 214, 181, 0.58);
  background: #172230;
}

button.primary,
.topbar button.primary {
  background: linear-gradient(135deg, #37d0ac, #d6a75b);
  border-color: rgba(214, 167, 91, 0.8);
  color: #07100d;
  font-weight: 900;
}

button.primary:hover {
  background: linear-gradient(135deg, #55e6c6, #edc06e);
}

.edition-tape {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) 170px 150px 150px;
  border-bottom: 1px solid rgba(214, 167, 91, 0.22);
  background:
    linear-gradient(180deg, rgba(19, 26, 34, 0.98), rgba(12, 17, 23, 0.98)),
    none;
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.edition-tape-cell {
  min-height: 58px;
  border-right: 1px solid rgba(66, 214, 181, 0.12);
}

.edition-tape-cell span {
  color: var(--teal);
  font-family: "Segoe UI", Arial, sans-serif;
}

.edition-tape-cell strong {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.edition-date {
  background: rgba(66, 214, 181, 0.08);
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: calc(100vh - 126px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.layout::before,
.layout::after {
  display: none;
}

.sidebar {
  padding: 18px;
  border-right: 1px solid rgba(66, 214, 181, 0.14);
  background:
    linear-gradient(180deg, rgba(13, 18, 25, 0.92), rgba(10, 14, 20, 0.92)),
    none;
}

.workspace {
  padding: 22px 22px 34px;
  background: transparent;
}

.panel,
.metric,
.workflow-strip article,
.client-flow > div,
.feature-list article,
.value-list div,
.license-box div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.chart-summary,
.instrument-catalog,
.prediction-card,
.forecast-metric,
.permission,
.security-note,
.scan-overview,
.scan-overview-grid div,
.usage-grid article,
.scan-stat-grid div,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.checkout-box,
.payment-notice {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 27, 36, 0.96), rgba(13, 18, 25, 0.96)),
    none;
  background-image: linear-gradient(180deg, rgba(20, 27, 36, 0.96), rgba(13, 18, 25, 0.96));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.ai-insight-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(66, 214, 181, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 28, 36, 0.98), rgba(10, 15, 22, 0.98) 58%, rgba(30, 28, 20, 0.92)),
    none;
  box-shadow: var(--shadow);
}

.ai-insight-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 18px;
  align-items: center;
}

.ai-insight-head h2 {
  margin: 3px 0 7px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
}

.ai-insight-head p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ai-confidence-ring {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(66, 214, 181, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(66, 214, 181, 0.14), transparent 58%),
    conic-gradient(from 210deg, rgba(66, 214, 181, 0.9), rgba(214, 167, 91, 0.9), rgba(66, 214, 181, 0.16));
  box-shadow: inset 0 0 0 10px rgba(7, 9, 13, 0.86), 0 16px 32px rgba(0, 0, 0, 0.28);
}

.ai-confidence-ring span {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.ai-confidence-ring small {
  margin-top: -20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.ai-insight-grid article {
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.46);
}

.ai-insight-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-insight-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
}

.panel::before,
.metric::before,
.workflow-strip article::before,
.client-flow > div::before {
  height: 2px;
  margin: -1px 0 13px;
  background: linear-gradient(90deg, var(--teal), rgba(214, 167, 91, 0.78), transparent);
}

.radar-brief,
.client-hero,
.account-hero {
  border: 1px solid rgba(66, 214, 181, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 27, 36, 0.98), rgba(10, 16, 23, 0.98) 62%, rgba(17, 36, 31, 0.94)),
    none;
  background-image: linear-gradient(135deg, rgba(18, 27, 36, 0.98), rgba(10, 16, 23, 0.98) 62%, rgba(17, 36, 31, 0.94));
  box-shadow: var(--shadow);
}

.section-title,
.radar-brief h1,
.client-hero h1,
.account-hero h1,
.prediction-head h1,
.auth-card h1,
.daily-brief,
.card h3,
.feature-list strong,
.value-list strong,
.license-box strong,
.checkout-box strong,
.sales-copy h3,
.prediction-card-header strong,
.metric strong,
.kv strong,
.scan-stat-grid strong,
.usage-grid strong,
.scan-quality-head strong,
.decision strong,
.asset-row strong,
.source-card strong {
  color: var(--ink) !important;
  font-family: "Segoe UI", Arial, sans-serif;
  text-shadow: none;
}

.radar-brief h1,
.client-hero h1,
.account-hero h1 {
  font-size: 52px;
  line-height: 1;
}

.section-title {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.section-title::after {
  width: 42px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.eyebrow {
  color: var(--teal);
  font-family: "Segoe UI", Arial, sans-serif;
}

.radar-brief p,
.client-hero p,
.account-hero p,
.feature-list span,
.value-list span,
.license-box span,
.checkout-box span,
.sales-copy,
.decision p,
.why-list li,
.asset-row span,
.source-card span,
.coverage-row div span,
.coverage-row small,
.prediction-card-header small,
.prediction-note,
.prediction-news,
.prediction-trail-row small,
.prediction-trail-row em,
.prediction-summary,
.payment-notice,
.security-note,
.scan-quality-head p,
.scan-quality-note,
.coverage-summary,
.muted,
label,
.metric span,
.tag,
.card p,
.proof-grid span,
.workflow-strip p,
.client-flow p {
  color: var(--muted);
}

.tabs {
  gap: 8px;
  padding-bottom: 12px;
  border: 0;
}

.tab {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.92);
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
}

.tab + .tab {
  margin-left: 0;
}

.tab.active {
  border-color: rgba(66, 214, 181, 0.7);
  background: rgba(66, 214, 181, 0.12);
  color: var(--ink);
}

.price-card,
.account-plan-pill,
.client-flow-status,
.opportunity-score {
  border: 1px solid rgba(214, 167, 91, 0.58);
  background:
    linear-gradient(160deg, rgba(12, 16, 22, 0.98), rgba(20, 37, 32, 0.98)) !important;
}

.price-card strong,
.account-plan-pill strong,
.client-flow-status strong,
.opportunity-score span,
.price-card span,
.price-card small,
.account-plan-pill span,
.account-plan-pill small,
.client-flow-status small,
.client-flow-status span {
  color: var(--ink);
}

.tag,
.tag.neutral,
.prediction-card-meta span,
.prediction-potential,
.instrument-chip,
.asset-search-results {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(16, 24, 32, 0.95);
  color: var(--muted);
}

.status-pill,
.tag.good,
.prediction-summary,
.security-note,
.permission.good,
.decision.good {
  background: rgba(66, 214, 181, 0.1);
  border-color: rgba(66, 214, 181, 0.32);
  color: #9af6df;
}

.tag.pending,
.tag.risk {
  background: rgba(214, 167, 91, 0.12);
  color: #f4ce88;
}

.tag.bad,
.decision.bad,
.decision.risk,
.payment-notice.warning {
  background: rgba(255, 102, 122, 0.11);
  border-color: rgba(255, 102, 122, 0.35);
  color: #ff9fac;
}

.progress {
  background: rgba(148, 163, 184, 0.16);
}

.progress div {
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

input,
select,
textarea {
  background: #0b1118;
}

pre,
canvas {
  background: #060a0f;
  color: #dce8f4;
}

th {
  background: rgba(18, 24, 32, 0.94);
  color: var(--muted);
}

td {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.card:hover,
.card.active,
.asset-row:hover {
  border-color: rgba(66, 214, 181, 0.58);
  background: rgba(26, 38, 48, 0.98);
}

@media (max-width: 1100px) {
  .layout,
  .edition-tape {
    grid-template-columns: 1fr;
  }

  .edition-lead {
    grid-column: auto;
  }

  .ai-insight-head,
  .ai-insight-grid {
    grid-template-columns: 1fr;
  }

  .ai-confidence-ring {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Prestige signal desk final layer */
:root {
  --desk-bg: #050608;
  --desk-bg-2: #0a0d12;
  --desk-panel: rgba(15, 19, 27, 0.92);
  --desk-panel-2: rgba(20, 26, 36, 0.94);
  --desk-panel-3: rgba(10, 13, 19, 0.96);
  --desk-ink: #f6f1e8;
  --desk-muted: #a8b0b3;
  --desk-soft: #737f83;
  --desk-line: rgba(219, 190, 128, 0.18);
  --desk-line-strong: rgba(219, 190, 128, 0.34);
  --desk-gold: #dbbe80;
  --desk-gold-strong: #f0cf8d;
  --desk-teal: #62dcc0;
  --desk-red: #ff7183;
  --desk-green: #69e6ae;
  --desk-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

html {
  background: var(--desk-bg);
}

body {
  background:
    linear-gradient(90deg, rgba(219, 190, 128, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98, 220, 192, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 22% 0%, rgba(219, 190, 128, 0.13), transparent 430px),
    radial-gradient(circle at 88% 12%, rgba(98, 220, 192, 0.08), transparent 440px),
    linear-gradient(180deg, #0b0e13 0, var(--desk-bg) 760px);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  color: var(--desk-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after,
.layout::before,
.layout::after {
  display: none !important;
}

.topbar,
.edition-tape,
.layout {
  width: 100%;
  max-width: none;
  margin: 0;
  clip-path: none !important;
}

.topbar {
  align-items: center;
  padding: 20px 30px;
  border: 0;
  border-bottom: 1px solid var(--desk-line);
  background:
    linear-gradient(135deg, rgba(12, 15, 22, 0.98), rgba(5, 7, 11, 0.98)) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45);
}

.brand {
  color: var(--desk-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand::after {
  content: "PRIVATE MARKET DESK";
  display: block;
  margin-top: 8px;
  color: var(--desk-gold);
  font: 700 11px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.subtitle,
.language-picker,
.auth-user {
  color: var(--desk-muted);
}

.top-actions {
  gap: 8px;
}

button,
input,
select,
textarea {
  border-color: rgba(219, 190, 128, 0.22);
  border-radius: 8px;
  background: rgba(11, 15, 22, 0.92);
  color: var(--desk-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button {
  min-height: 40px;
  font-weight: 800;
}

button:hover {
  border-color: rgba(219, 190, 128, 0.52);
  background: rgba(24, 31, 43, 0.94);
}

button.primary,
.topbar button.primary {
  border-color: rgba(240, 207, 141, 0.74);
  background: linear-gradient(135deg, var(--desk-gold-strong), var(--desk-teal));
  color: #07100d;
}

button.primary:hover,
.topbar button.primary:hover {
  background: linear-gradient(135deg, #f7daa2, #7ff0d8);
}

button.danger {
  border-color: rgba(255, 113, 131, 0.35);
  background: rgba(54, 20, 29, 0.72);
  color: #ff9dab;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(98, 220, 192, 0.42);
  outline-offset: 2px;
}

.edition-tape {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-template-columns: 172px minmax(300px, 1fr) 156px 130px 130px;
  border: 0;
  border-bottom: 1px solid var(--desk-line);
  background: rgba(7, 9, 13, 0.9) !important;
  backdrop-filter: blur(18px);
}

.edition-tape-cell {
  min-height: 74px;
  border-right-color: rgba(219, 190, 128, 0.12);
}

.edition-tape-cell span,
.eyebrow {
  color: var(--desk-gold);
  letter-spacing: 0;
}

.edition-tape-cell strong {
  color: var(--desk-ink);
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 132px);
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.sidebar {
  position: sticky;
  top: 75px;
  height: calc(100vh - 75px);
  overflow: auto;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid rgba(219, 190, 128, 0.13);
  background:
    linear-gradient(180deg, rgba(12, 16, 23, 0.95), rgba(7, 10, 15, 0.98)) !important;
}

.workspace {
  padding: 22px 26px 38px;
  background: transparent !important;
}

.tabs {
  position: sticky;
  top: 75px;
  z-index: 25;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid rgba(219, 190, 128, 0.12);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.84);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  color: var(--desk-muted);
  white-space: nowrap;
}

.tab:hover {
  border-color: rgba(219, 190, 128, 0.2);
  background: rgba(219, 190, 128, 0.06);
}

.tab.active {
  border-color: rgba(219, 190, 128, 0.48);
  background: linear-gradient(180deg, rgba(219, 190, 128, 0.18), rgba(98, 220, 192, 0.08));
  color: var(--desk-ink);
}

.panel,
.metric,
.ai-insight-panel,
.workflow-strip article,
.client-flow > div,
.feature-list article,
.value-list div,
.license-box div,
.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.chart-summary,
.instrument-catalog,
.prediction-card,
.forecast-metric,
.permission,
.security-note,
.scan-overview,
.scan-overview-grid div,
.usage-grid article,
.scan-stat-grid div,
.prediction-prices div,
.prediction-reality,
.prediction-trail-row,
.trust-strip article,
.sample-signal-card,
.sample-signal-grid div,
.sample-reason-grid > div,
.faq-list details,
.checkout-box,
.payment-notice,
.proof-grid div {
  border: 1px solid var(--desk-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 27, 37, 0.92), rgba(10, 14, 20, 0.94)) !important;
  background-image: linear-gradient(180deg, rgba(21, 27, 37, 0.92), rgba(10, 14, 20, 0.94)) !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  box-shadow: var(--desk-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel {
  padding: 18px;
}

.panel::before,
.metric::before,
.ai-insight-panel::before,
.workflow-strip article::before,
.client-flow > div::before {
  height: 2px;
  margin: -1px 0 14px;
  background: linear-gradient(90deg, var(--desk-gold), rgba(98, 220, 192, 0.7), transparent);
}

.section-title {
  color: var(--desk-ink) !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.section-title::after {
  background: linear-gradient(90deg, var(--desk-gold), rgba(98, 220, 192, 0.35), transparent);
}

.muted,
.feature-list span,
.value-list span,
.license-box span,
.checkout-box span,
.sales-copy,
.decision p,
.why-list li,
.coverage-summary,
.scan-quality,
.scan-overview-grid span,
.scan-overview p,
.kv,
.card p,
.source-card span,
.asset-row span,
.trust-strip span,
.sample-signal-copy p,
.sample-signal-card p,
.sample-signal-grid span,
.sample-reason-grid li,
.faq-list p {
  color: var(--desk-muted) !important;
}

.kv strong,
.feature-list strong,
.value-list strong,
.license-box strong,
.checkout-box strong,
.card h3,
.source-card strong,
.asset-row strong,
.trust-strip strong,
.sample-signal-card h3,
.sample-signal-grid strong,
.sample-reason-grid strong,
.faq-list summary,
.decision strong,
.scan-overview-head strong {
  color: var(--desk-ink) !important;
}

.status-pill,
.tag.good,
.prediction-summary,
.permission.good,
.decision.good {
  border: 1px solid rgba(98, 220, 192, 0.34);
  background: rgba(98, 220, 192, 0.1) !important;
  color: #a8f6e3;
}

.scan-overview.running .scan-dot {
  background: var(--desk-teal);
  box-shadow: 0 0 0 4px rgba(98, 220, 192, 0.16);
}

.scan-overview.done .scan-dot {
  background: var(--desk-green);
  box-shadow: 0 0 0 4px rgba(105, 230, 174, 0.16);
}

.scan-overview.error .scan-dot {
  background: var(--desk-red);
  box-shadow: 0 0 0 4px rgba(255, 113, 131, 0.16);
}

.progress {
  height: 9px;
  background: rgba(219, 190, 128, 0.13);
}

.progress div {
  background: linear-gradient(90deg, var(--desk-teal), var(--desk-gold));
}

.client-hero,
.radar-brief,
.account-hero,
.ai-insight-panel,
.prediction-head {
  border: 1px solid var(--desk-line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 31, 43, 0.96), rgba(8, 11, 17, 0.98) 58%, rgba(31, 28, 20, 0.94)) !important;
  background-image: linear-gradient(135deg, rgba(25, 31, 43, 0.96), rgba(8, 11, 17, 0.98) 58%, rgba(31, 28, 20, 0.94)) !important;
  box-shadow: var(--desk-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.client-hero,
.radar-brief {
  min-height: 220px;
  align-items: center;
}

.client-hero h1,
.radar-brief h1,
.account-hero h1,
.prediction-head h1 {
  max-width: 880px;
  color: var(--desk-ink);
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.client-hero p,
.radar-brief p,
.account-hero p,
.prediction-head p {
  max-width: 760px;
  color: #c9d1d0 !important;
  font-size: 18px;
}

.hero-payment-actions,
.radar-actions,
.detail-actions,
.account-actions,
.chart-controls {
  gap: 10px;
}

.price-card,
.account-plan-pill,
.client-flow-status,
.opportunity-score {
  border-color: rgba(240, 207, 141, 0.48);
  background:
    linear-gradient(160deg, rgba(15, 18, 24, 0.98), rgba(38, 30, 17, 0.98)) !important;
  background-image: linear-gradient(160deg, rgba(15, 18, 24, 0.98), rgba(38, 30, 17, 0.98)) !important;
  background-size: auto !important;
  background-blend-mode: normal !important;
}

.price-card strong,
.account-plan-pill strong,
.client-flow-status strong,
.opportunity-score span,
.metric strong,
.proof-grid strong {
  color: var(--desk-gold-strong) !important;
}

.price-card span,
.price-card small,
.account-plan-pill span,
.account-plan-pill small,
.client-flow-status small,
.client-flow-status span {
  color: #d8d0c1 !important;
}

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

.trust-strip article {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
}

.trust-strip strong {
  font-size: 14px;
  font-weight: 900;
}

.trust-strip span {
  font-size: 13px;
  line-height: 1.42;
}

.demo-results-band {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid rgba(240, 207, 141, 0.35);
  border-left: 4px solid var(--desk-gold);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 31, 43, 0.96), rgba(8, 11, 17, 0.98) 60%, rgba(31, 28, 20, 0.92));
  box-shadow: var(--desk-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.demo-results-head > div {
  display: grid;
  gap: 8px;
}

.demo-results-head h2 {
  max-width: 920px;
  margin: 0;
  color: var(--desk-ink);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.demo-results-head p {
  max-width: 860px;
  margin: 0;
  color: var(--desk-muted);
  font-size: 15px;
  line-height: 1.5;
}

.demo-results-head button {
  min-width: 210px;
}

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

.demo-results-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  background: rgba(4, 10, 18, 0.58);
}

.demo-results-summary strong {
  color: var(--desk-gold-strong);
  font-size: 24px;
}

.demo-results-summary span {
  color: var(--desk-muted);
  font-size: 12px;
  font-weight: 800;
}

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

.demo-trade-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.86);
}

.demo-trade-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.demo-trade-symbol,
.demo-paper-label,
.demo-trade-horizon {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-trade-symbol {
  border: 1px solid rgba(240, 207, 141, 0.5);
  background: rgba(219, 190, 128, 0.12);
  color: var(--desk-gold-strong);
}

.demo-paper-label {
  border: 1px solid rgba(98, 220, 192, 0.4);
  background: rgba(98, 220, 192, 0.09);
  color: #a8f6e3;
}

.demo-trade-horizon {
  margin-left: auto;
  color: #91a4b6;
}

.demo-trade-name {
  display: grid;
  gap: 4px;
}

.demo-trade-name span {
  color: #91a4b6;
  font-size: 12px;
  font-weight: 800;
}

.demo-trade-name strong {
  color: var(--desk-ink);
  font-size: 16px;
  line-height: 1.3;
}

.demo-trade-prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.demo-trade-prices > div:not(.demo-trade-arrow) {
  display: grid;
  gap: 3px;
}

.demo-trade-prices span {
  color: #91a4b6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-trade-prices strong {
  color: #f5f7fa;
  font-size: 17px;
}

.demo-trade-arrow {
  color: #718496;
  font-size: 18px;
}

.demo-trade-prices .demo-trade-outcome {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.demo-trade-prices .demo-trade-outcome strong {
  color: #69e6ae;
  font-size: 24px;
}

.demo-trade-prices .demo-trade-outcome.negative strong {
  color: #ff7a8f;
}

.demo-trade-prices .demo-trade-outcome.neutral strong {
  color: #f3d47a;
}

.demo-trade-context {
  display: grid;
  gap: 7px;
}

.demo-trade-context span {
  color: #91a4b6;
  font-size: 11px;
  font-weight: 800;
}

.demo-trade-context p {
  margin: 0;
  color: #c5d0da;
  font-size: 12px;
  line-height: 1.5;
}

.demo-results-disclaimer {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(240, 207, 141, 0.22);
  border-radius: 5px;
  background: rgba(219, 190, 128, 0.06);
  color: #aaa394;
  font-size: 11px;
  line-height: 1.5;
}

.sample-signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(430px, 1.24fr);
  align-items: start;
  gap: 22px;
  margin-bottom: 16px;
}

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

.sample-signal-copy h2 {
  margin: 0;
  color: var(--desk-ink);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.sample-signal-copy p {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
}

.sample-signal-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.sample-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sample-ticker {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(240, 207, 141, 0.46);
  border-radius: 8px;
  background: rgba(219, 190, 128, 0.12);
  color: var(--desk-gold-strong);
  font-weight: 900;
}

.sample-signal-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.sample-signal-card p {
  margin: 0;
  line-height: 1.5;
}

.sample-signal-grid,
.sample-reason-grid {
  display: grid;
  gap: 10px;
}

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

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

.sample-signal-grid div,
.sample-reason-grid > div {
  min-width: 0;
  padding: 12px;
}

.sample-signal-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
}

.sample-signal-grid strong,
.sample-reason-grid strong {
  display: block;
  font-size: 15px;
}

.sample-reason-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.sample-reason-grid li + li {
  margin-top: 5px;
}

.sample-signal-card button {
  justify-self: start;
}

.faq-panel {
  margin-top: 16px;
}

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

.faq-list details {
  padding: 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.client-flow {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(230px, 0.8fr);
  gap: 12px;
  margin-bottom: 16px;
}

.client-flow > div {
  min-height: 148px;
  align-content: start;
}

.client-flow span:first-child {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(219, 190, 128, 0.36);
  background: rgba(219, 190, 128, 0.1);
  color: var(--desk-gold-strong);
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  grid-template-areas:
    "promo promo"
    "proof proof"
    "features checkout"
    "value license"
    "sales sales";
  gap: 16px;
}

.client-grid > .promo-kit-panel {
  grid-area: promo;
}

.client-grid > .premium-proof {
  grid-area: proof;
}

.client-grid > .panel:nth-of-type(3) {
  grid-area: features;
}

.client-grid > .panel:nth-of-type(4) {
  grid-area: checkout;
}

.client-grid > .panel:nth-of-type(5) {
  grid-area: license;
}

.client-grid > .panel:nth-of-type(6) {
  grid-area: value;
}

.client-grid > .panel:nth-of-type(7) {
  grid-area: sales;
}

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

.feature-list article,
.value-list div,
.license-box div {
  box-shadow: none;
}

.checkout-box {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.ai-insight-panel {
  padding: 22px;
}

.ai-insight-head {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

.ai-insight-head > div {
  min-width: 0;
}

.ai-insight-head h2 {
  color: var(--desk-ink);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.ai-insight-head p {
  color: #c7d0cf !important;
}

.ai-confidence-ring {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(240, 207, 141, 0.45);
  background:
    radial-gradient(circle at center, rgba(9, 12, 17, 0.96) 0 48%, transparent 49%),
    conic-gradient(from 210deg, var(--desk-gold), var(--desk-teal), rgba(219, 190, 128, 0.24)) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.ai-confidence-ring span {
  color: var(--desk-gold-strong);
}

.ai-confidence-ring small,
.ai-insight-grid span {
  color: var(--desk-muted);
}

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

.ai-insight-grid article {
  border-color: rgba(219, 190, 128, 0.15);
  background: rgba(8, 12, 18, 0.72);
}

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

.metric {
  min-height: 104px;
  padding: 16px;
}

.metric span {
  color: var(--desk-muted);
}

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

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

.workflow-strip article span,
.workflow-strip article strong {
  color: var(--desk-ink);
}

.workflow-strip article p {
  color: var(--desk-muted);
}

.radar-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.12fr) minmax(360px, 0.88fr);
  grid-template-areas:
    "main actionable"
    "main decision"
    "why noise"
    "quality watch"
    "coverage watch"
    "positive negative"
    "effectiveness effectiveness";
  gap: 16px;
}

.live-watch-panel {
  margin-bottom: 14px;
}

.live-watch-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-watch-summary {
  margin-bottom: 10px;
}

.live-watch-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.live-watch-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

a.live-watch-row.has-source-link {
  cursor: pointer;
}

a.live-watch-row.has-source-link:hover {
  border-color: var(--blue);
  background: #f3f8ff;
  transform: translateY(-1px);
}

.live-watch-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.live-watch-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.live-watch-copy {
  min-width: 0;
}

.live-watch-tags {
  display: flex;
  grid-column: 2;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.source-jump {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.no-source-link .source-jump {
  border-color: var(--line);
  background: #eef1f5;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.live-watch-row.is-new .live-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.14);
}

.tag.live-new {
  background: #dcfce7;
  color: #047857;
}

.card.is-new,
.signal-card.is-new {
  border-color: rgba(0, 168, 107, 0.5);
  box-shadow: 0 16px 36px rgba(0, 168, 107, 0.12), inset 3px 0 0 rgba(0, 168, 107, 0.8);
}

.radar-panel-main {
  grid-area: main;
}

.radar-panel-actionable {
  grid-area: actionable;
}

.radar-panel-decision {
  grid-area: decision;
}

.radar-panel-why {
  grid-area: why;
}

.radar-panel-noise {
  grid-area: noise;
}

.radar-panel-quality {
  grid-area: quality;
}

.radar-panel-watch {
  grid-area: watch;
}

.radar-panel-coverage {
  grid-area: coverage;
}

.radar-panel-positive {
  grid-area: positive;
}

.radar-panel-negative {
  grid-area: negative;
}

.radar-panel-effectiveness {
  grid-area: effectiveness;
}

.radar-panel-main .signal-list {
  max-height: 780px;
}

.signal-list,
.analysis-list,
.source-list,
.asset-radar,
.coverage-list {
  gap: 10px;
}

.card,
.asset-row,
.source-card,
.coverage-row,
.decision,
.prediction-card,
.forecast-metric {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card:hover,
.card.active,
.asset-row:hover,
.source-card:hover,
.coverage-row:hover {
  border-color: rgba(240, 207, 141, 0.58);
  background:
    linear-gradient(180deg, rgba(29, 37, 49, 0.96), rgba(12, 17, 24, 0.96)) !important;
}

.signal-card.featured,
.card.featured {
  border-color: rgba(240, 207, 141, 0.56);
  background:
    linear-gradient(135deg, rgba(38, 31, 19, 0.94), rgba(14, 22, 30, 0.96)) !important;
}

.opportunity-score {
  min-width: 76px;
}

canvas,
pre,
textarea,
.table-wrap {
  background: #05080d !important;
  color: #dce8e8;
}

th {
  background: rgba(219, 190, 128, 0.12);
  color: var(--desk-ink);
}

td,
th {
  border-bottom-color: rgba(219, 190, 128, 0.12);
}

.payment-notice,
.security-note {
  color: #d6dedb;
}

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

  .sidebar {
    position: static;
    order: 2;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(219, 190, 128, 0.13);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    order: 1;
  }

  .tabs {
    top: 0;
  }

  .client-flow,
  .workflow-strip,
  .trust-strip,
  .demo-trade-list,
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-signal-panel {
    grid-template-columns: 1fr;
  }

  .radar-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .radar-grid {
    grid-template-areas:
      "main"
      "actionable"
      "decision"
      "why"
      "noise"
      "quality"
      "watch"
      "coverage"
      "positive"
      "negative"
      "effectiveness";
  }

  .client-grid {
    grid-template-areas:
      "promo"
      "proof"
      "features"
      "checkout"
      "value"
      "license"
      "sales";
  }
}

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

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .language-picker {
    grid-column: 1 / -1;
  }

  .language-picker select,
  .top-actions button {
    width: 100%;
  }

  .brand {
    font-size: 34px;
  }

  .edition-tape {
    position: static;
    grid-template-columns: 1fr;
  }

  .edition-tape-cell {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(219, 190, 128, 0.12);
  }

  .workspace,
  .sidebar {
    padding: 14px;
  }

  .sidebar,
  .client-flow,
  .workflow-strip,
  .trust-strip,
  .demo-results-summary,
  .demo-trade-list,
  .sample-signal-grid,
  .sample-reason-grid,
  .hero-grid,
  .proof-grid,
  .ai-insight-grid,
  .client-hero,
  .radar-brief,
  .account-hero {
    grid-template-columns: 1fr;
  }

  .client-hero,
  .radar-brief,
  .account-hero,
  .price-card,
  .sample-signal-panel,
  .sample-signal-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .client-hero > *,
  .radar-brief > *,
  .account-hero > * {
    min-width: 0;
  }

  .tabs {
    position: static;
    max-width: 100%;
  }

  .client-hero h1,
  .radar-brief h1,
  .account-hero h1,
  .prediction-head h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 32px;
  }

  .sample-signal-copy h2 {
    font-size: 28px;
  }

  .sample-signal-card h3 {
    font-size: 20px;
  }

  .demo-results-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .demo-results-head h2 {
    font-size: 28px;
  }

  .demo-results-head button {
    width: 100%;
    min-width: 0;
  }

  .ai-insight-head {
    grid-template-columns: 1fr;
  }

  .ai-insight-head h2 {
    font-size: 30px;
  }

  .ai-confidence-ring {
    width: 112px;
    height: 112px;
  }
}

/* Faster, calmer radar view: fewer boxes above the fold, denser signal-first layout. */
#desk .workflow-strip,
#desk .ai-insight-panel,
#desk .radar-panel-effectiveness,
#desk .radar-panel-watch,
#desk .radar-panel-coverage,
#desk .radar-panel-positive,
#desk .radar-panel-negative {
  display: none !important;
}

#desk .radar-brief {
  min-height: 118px;
  padding: 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(16, 23, 31, 0.98), rgba(11, 16, 22, 0.98)) !important;
}

#desk .radar-brief h1 {
  font-size: 30px;
}

#desk .radar-brief p {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.45;
}

#desk .hero-grid {
  grid-template-columns: repeat(5, minmax(116px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

#desk .metric {
  min-height: 78px;
  padding: 12px 14px;
  border-color: rgba(128, 148, 166, 0.22);
  background: rgba(13, 18, 25, 0.92) !important;
  box-shadow: none;
}

#desk .metric::before {
  display: none;
}

#desk .metric span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

#desk .metric strong {
  margin-top: 5px;
  font-size: 24px;
}

#desk .radar-grid {
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, 0.65fr);
  grid-template-areas:
    "main decision"
    "main quality"
    "actionable why"
    "actionable noise";
  gap: 12px;
}

#desk .panel {
  padding: 14px;
  box-shadow: none;
}

#desk .panel::before {
  height: 1px;
  margin-bottom: 10px;
}

#desk .radar-panel-main .signal-list {
  max-height: none;
}

#desk .card,
#desk .decision,
#desk .source-card,
#desk .coverage-row {
  box-shadow: none;
}

#desk .signal-card.featured,
#desk .card.featured {
  background: rgba(18, 25, 34, 0.96) !important;
}

#desk .signal-main {
  align-items: start;
}

#desk .opportunity-score {
  min-width: 58px;
  padding: 8px;
}

#desk .opportunity-score span {
  font-size: 24px;
}

@media (max-width: 1240px) {
  #desk .radar-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "decision"
      "quality"
      "actionable"
      "why"
      "noise";
  }
}

@media (max-width: 760px) {
  #desk .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Panel responsibility cleanup: overview first, diagnostic depth on demand. */
.desk-disclosure,
.data-disclosure {
  margin: 0 0 14px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: var(--pro-surface) !important;
}

.desk-disclosure > summary,
.data-disclosure > summary,
.instrument-catalog > summary {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  color: var(--pro-text) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  list-style: none !important;
}

.desk-disclosure > summary::-webkit-details-marker,
.data-disclosure > summary::-webkit-details-marker,
.instrument-catalog > summary::-webkit-details-marker {
  display: none !important;
}

.desk-disclosure > summary::after,
.data-disclosure > summary::after,
.instrument-catalog > summary::after {
  content: "+" !important;
  color: var(--pro-muted) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.desk-disclosure[open] > summary::after,
.data-disclosure[open] > summary::after,
.instrument-catalog[open] > summary::after {
  content: "-" !important;
}

.desk-disclosure[open] > summary,
.data-disclosure[open] > summary,
.instrument-catalog[open] > summary {
  border-bottom: 1px solid var(--pro-line) !important;
}

.desk-disclosure .professional-desk-grid {
  margin: 0 !important;
  padding: 12px !important;
}

.desk-disclosure .professional-desk-card {
  margin: 0 !important;
}

.data-disclosure > :not(summary) {
  margin: 12px 14px !important;
}

#desk .radar-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.78fr) !important;
  grid-template-areas:
    "main watch"
    "main diagnostics"
    "market market" !important;
}

#desk .radar-panel-main {
  grid-area: main !important;
}

#desk .radar-panel-watch {
  grid-area: watch !important;
}

#desk .radar-panel-market {
  grid-area: market !important;
}

#desk .radar-panel-diagnostics {
  grid-area: diagnostics !important;
}

.market-pressure-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.panel-divider {
  height: 1px !important;
  margin: 16px 0 !important;
  background: var(--pro-line) !important;
}

.compact-title {
  margin-bottom: 8px !important;
  font-size: 11px !important;
}

.subsection-label {
  display: block !important;
  margin: 14px 0 8px !important;
  color: var(--pro-muted) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
}

.subsection-label.positive {
  color: #70d6b2 !important;
}

.subsection-label.negative {
  color: #ec9f9f !important;
}

.instrument-catalog {
  padding: 0 !important;
}

.instrument-catalog > .instrument-type-filters,
.instrument-catalog > .instrument-catalog-items {
  margin-right: 14px !important;
  margin-left: 14px !important;
}

.instrument-catalog > .instrument-type-filters {
  margin-top: 14px !important;
}

.instrument-catalog > .instrument-catalog-items {
  margin-bottom: 14px !important;
}

.panel-title-row {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.panel-title-row .section-title {
  margin: 0 !important;
}

.panel-search {
  width: 100% !important;
  margin: 0 0 12px !important;
}

.setting-fact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 5px !important;
  background: #0c1216 !important;
  color: var(--pro-muted) !important;
  font-size: 12px !important;
}

.setting-fact strong {
  color: var(--pro-text) !important;
}

#forecastAccuracy .data-disclosure,
#settings .data-disclosure,
.radar-panel-diagnostics .data-disclosure {
  margin-top: 12px !important;
  background: #0c1216 !important;
}

#forecastAccuracy .data-disclosure > .table-wrap {
  overflow-x: auto !important;
}

@media (max-width: 1180px) {
  #desk .radar-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "watch"
      "market"
      "diagnostics" !important;
  }
}

@media (max-width: 760px) {
  .market-pressure-grid {
    grid-template-columns: 1fr !important;
  }

  .desk-disclosure .professional-desk-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Trading terminal skin: compact, flat panels inspired by professional broker workstations. */
:root {
  --xt-bg: #090b0f;
  --xt-bg-soft: #0f1318;
  --xt-panel: #12171d;
  --xt-panel-2: #171d24;
  --xt-panel-3: #0c1015;
  --xt-border: #27303a;
  --xt-border-soft: #1c242d;
  --xt-text: #e8edf2;
  --xt-muted: #8e9aa6;
  --xt-dim: #65717d;
  --xt-green: #11c984;
  --xt-green-soft: rgba(17, 201, 132, 0.12);
  --xt-red: #ff4f64;
  --xt-red-soft: rgba(255, 79, 100, 0.12);
  --xt-amber: #f5b84b;
  --xt-blue: #4b9eff;
}

html,
body {
  background: var(--xt-bg) !important;
}

body {
  color: var(--xt-text) !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
}

body,
.topbar,
.edition-tape,
.sidebar,
.workspace,
.panel,
.metric,
.radar-brief,
.client-hero,
.account-hero,
.ai-insight-panel,
.prediction-panel,
.chart-panel {
  background-image: none !important;
  clip-path: none !important;
}

.topbar {
  min-height: 56px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--xt-border);
  background: #0c1015 !important;
  box-shadow: none;
}

.brand {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.brand::after {
  content: "MARKET TERMINAL";
  margin-top: 4px;
  color: var(--xt-muted);
  font-size: 10px;
  font-weight: 700;
}

.subtitle {
  display: none;
}

.top-actions {
  align-items: center;
  gap: 6px;
}

button,
input,
select,
textarea {
  min-height: 32px;
  border: 1px solid var(--xt-border);
  border-radius: 3px;
  background: #0d1217;
  color: var(--xt-text);
  box-shadow: none !important;
}

button {
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

button:hover {
  border-color: #3a4653;
  background: #151b22;
}

button.primary,
.topbar button.primary {
  border-color: rgba(17, 201, 132, 0.72);
  background: #109a69 !important;
  color: #04110c;
}

button.danger {
  border-color: rgba(255, 79, 100, 0.62);
  background: #3a1119 !important;
  color: #ffc1c9;
}

.edition-tape {
  top: 0;
  grid-template-columns: 142px minmax(260px, 1fr) 130px 108px 108px;
  border-bottom: 1px solid var(--xt-border);
  background: #0a0d11 !important;
  backdrop-filter: none;
}

.edition-tape-cell {
  min-height: 46px;
  padding: 7px 11px;
  border-right: 1px solid var(--xt-border-soft);
}

.edition-tape-cell span,
.eyebrow,
.section-title {
  color: var(--xt-muted) !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edition-tape-cell strong {
  color: var(--xt-text);
  font-size: 12px;
}

.layout {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 103px);
  background: var(--xt-bg) !important;
}

.sidebar {
  top: 47px;
  height: calc(100vh - 47px);
  padding: 8px;
  gap: 8px;
  border-right: 1px solid var(--xt-border);
  background: #0b0f14 !important;
}

.workspace {
  padding: 8px;
}

.tabs {
  top: 47px;
  gap: 0;
  margin-bottom: 8px;
  padding: 0;
  border: 1px solid var(--xt-border);
  border-radius: 3px;
  background: #0d1116 !important;
  backdrop-filter: none;
}

.tab {
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--xt-border-soft);
  border-radius: 0;
  color: var(--xt-muted);
  background: transparent !important;
}

.tab.active {
  color: var(--xt-text);
  background: var(--xt-panel-2) !important;
  box-shadow: inset 0 -2px 0 var(--xt-green) !important;
}

.panel,
.metric,
.ai-insight-panel,
.decision,
.forecast-metric,
.client-flow > div,
.source-card,
.coverage-row,
.chart-summary,
.instrument-decision,
.instrument-catalog,
.prediction-card,
.scan-overview,
.trust-strip article,
.sample-signal-card,
.sample-signal-grid div,
.price-card,
.account-plan-pill,
.client-flow-status {
  border: 1px solid var(--xt-border) !important;
  border-radius: 3px !important;
  background: var(--xt-panel) !important;
  box-shadow: none !important;
}

.panel {
  padding: 10px;
}

.panel::before,
.metric::before,
.ai-insight-panel::before,
.client-flow > div::before {
  display: none !important;
}

.section-title {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: -10px -10px 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--xt-border);
  background: #0e1319;
  font-size: 11px;
  font-weight: 800;
}

.muted,
.small-note,
.source-card span,
.coverage-row div span,
.coverage-row small,
.prediction-card-header small,
.scan-overview-grid span,
.scan-overview p,
.kv,
.trust-strip span,
.sample-signal-copy p,
.sample-signal-card p,
.sample-signal-grid span,
.client-hero p,
.account-hero p,
.radar-brief p,
.decision p {
  color: var(--xt-muted) !important;
}

.kv {
  gap: 0;
  border: 1px solid var(--xt-border-soft);
  background: #0d1116;
}

.kv span,
.kv strong {
  padding: 7px 8px;
  border-bottom: 1px solid var(--xt-border-soft);
}

.kv strong {
  color: var(--xt-text) !important;
  text-align: right;
}

.status-pill,
.tag,
.prediction-card-meta span,
.instrument-chip,
.instrument-type-filter {
  border: 1px solid var(--xt-border);
  border-radius: 3px;
  background: #0d1217 !important;
  color: var(--xt-text);
  box-shadow: none !important;
}

.progress {
  height: 5px;
  border: 1px solid var(--xt-border-soft);
  border-radius: 0;
  background: #070a0d;
}

#progressBar {
  background: var(--xt-green) !important;
}

.radar-brief,
.client-hero,
.account-hero {
  min-height: auto !important;
  padding: 12px !important;
  border: 1px solid var(--xt-border) !important;
  border-radius: 3px !important;
  background: var(--xt-panel) !important;
  box-shadow: none !important;
}

.client-hero h1,
.account-hero h1,
.radar-brief h1,
.prediction-head h1 {
  font-size: 24px !important;
  line-height: 1.1;
}

.radar-actions,
.account-actions,
.chart-controls,
.hero-payment-actions {
  gap: 6px;
}

.hero-grid {
  gap: 6px !important;
}

.metric {
  min-height: 62px !important;
  padding: 9px 10px !important;
}

.metric span {
  color: var(--xt-muted) !important;
  font-size: 10px !important;
}

.metric strong,
.source-card strong,
.coverage-row strong,
.prediction-card-header strong,
.forecast-metric strong,
.sample-signal-grid strong,
.decision strong {
  color: var(--xt-text) !important;
}

.metric strong {
  font-size: 22px !important;
}

.radar-grid,
.two-col,
.client-grid,
.account-grid,
.chart-grid,
.forecast-metric-grid {
  gap: 8px !important;
}

#desk .radar-grid {
  grid-template-columns: minmax(620px, 1.5fr) minmax(360px, 0.85fr);
  grid-template-areas:
    "main decision"
    "main quality"
    "actionable why"
    "actionable noise";
}

#desk .radar-panel-why {
  grid-area: why;
}

.radar-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.radar-chat-message {
  border: 1px solid var(--xt-border-soft);
  border-radius: 3px;
  padding: 9px;
  background: #0f141a;
}

.radar-chat-message.user {
  border-color: rgba(75, 158, 255, 0.38);
  background: rgba(75, 158, 255, 0.08);
}

.radar-chat-message.assistant {
  border-color: rgba(17, 201, 132, 0.32);
}

.radar-chat-message > strong,
.radar-chat-block > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--xt-text);
  font-size: 11px;
  text-transform: uppercase;
}

.radar-chat-message p,
.radar-chat-block p {
  margin: 0;
  color: var(--xt-muted);
  line-height: 1.45;
}

.radar-chat-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--xt-border-soft);
}

.radar-chat-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--xt-muted);
}

.radar-chat-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.radar-chat-form textarea {
  min-height: 78px;
  resize: vertical;
}

.radar-chat-hero {
  display: block !important;
}

.radar-chat-hero .section-title {
  margin: -12px -12px 10px;
}

.radar-chat-hero .radar-chat-log {
  max-height: 260px;
}

.radar-chat-hero .radar-chat-form {
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: end;
}

.radar-chat-hero .radar-chat-form textarea {
  min-height: 70px;
}

.radar-brief-hidden {
  display: none !important;
}

.signal-list,
.source-list,
.asset-radar,
.coverage-list,
.prediction-list,
.analysis-list {
  gap: 4px;
}

.card,
.signal-card,
.source-card,
.coverage-row,
.prediction-card,
.promo-status-grid div,
.promo-copy-card,
.instrument-chip,
.account-rows div,
.sample-signal-grid div {
  border: 1px solid var(--xt-border-soft) !important;
  border-radius: 2px !important;
  background: #10151b !important;
  box-shadow: none !important;
}

.signal-card,
.source-card,
.coverage-row,
.prediction-card,
.promo-copy-card {
  padding: 8px 9px !important;
}

.signal-card:hover,
.source-card:hover,
.coverage-row:hover,
.instrument-chip:hover,
.promo-copy-card:hover {
  border-color: #3a4653 !important;
  background: #151b22 !important;
}

.promo-kit-head,
.promo-status-grid,
.promo-copy-grid {
  gap: 6px;
}

.promo-status-grid strong,
.promo-copy-card strong {
  color: var(--xt-text) !important;
}

.promo-status-grid span,
.promo-copy-card p {
  color: var(--xt-muted) !important;
}

.signal-card.featured,
.card.featured {
  border-left: 3px solid var(--xt-green) !important;
  background: #10181c !important;
}

.live-watch-panel {
  border-color: var(--xt-border) !important;
  background: #0d1218 !important;
}

.live-watch-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-watch-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.live-watch-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 0;
  border: 1px solid var(--xt-border-soft);
  border-radius: 2px;
  padding: 9px 10px;
  background: #10151b;
  color: inherit;
  text-decoration: none;
}

a.live-watch-row.has-source-link {
  cursor: pointer;
}

a.live-watch-row.has-source-link:hover {
  border-color: var(--xt-green) !important;
  background: #122019 !important;
}

.live-watch-row strong {
  display: block;
  color: var(--xt-text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.live-watch-row small {
  display: block;
  margin-top: 4px;
  color: var(--xt-muted);
  font-size: 11px;
}

.live-watch-copy {
  min-width: 0;
}

.live-watch-tags {
  display: flex;
  grid-column: 2;
  gap: 5px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.source-jump {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(17, 201, 132, 0.35);
  border-radius: 2px;
  background: rgba(17, 201, 132, 0.08);
  color: var(--xt-green);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.no-source-link .source-jump {
  border-color: var(--xt-border-soft);
  background: #111820;
  color: var(--xt-muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52606d;
}

.live-watch-row.is-new .live-dot {
  background: var(--xt-green);
  box-shadow: 0 0 0 3px rgba(17, 201, 132, 0.14);
}

.tag.live-new {
  border: 1px solid rgba(17, 201, 132, 0.35);
  background: var(--xt-green-soft) !important;
  color: var(--xt-green) !important;
}

.card.is-new,
.signal-card.is-new {
  border-color: rgba(17, 201, 132, 0.45) !important;
  border-left: 3px solid var(--xt-green) !important;
  background: #101b1a !important;
}

.signal-main {
  gap: 9px;
}

.signal-content h3,
.sample-signal-card h3 {
  color: var(--xt-text);
  font-size: 14px;
  line-height: 1.25;
}

.signal-meta,
.prediction-card-meta,
.instrument-decision-meta,
.instrument-decision-reasons {
  gap: 4px;
}

.signal-meta span,
.prediction-card-meta span,
.instrument-decision-meta span,
.instrument-decision-reasons span {
  border-radius: 2px;
  background: #0b1015 !important;
  color: var(--xt-muted) !important;
}

.opportunity-score,
.ai-confidence-ring,
.instrument-decision-score {
  border: 1px solid rgba(17, 201, 132, 0.42) !important;
  border-radius: 3px !important;
  background: var(--xt-green-soft) !important;
  color: var(--xt-green) !important;
  box-shadow: none !important;
}

.opportunity-score span,
.ai-confidence-ring span,
.instrument-decision-score span {
  color: var(--xt-green) !important;
}

.decision.good,
.instrument-decision.bullish {
  border-color: rgba(17, 201, 132, 0.45) !important;
  background: var(--xt-green-soft) !important;
}

.decision.bad,
.decision.risk,
.instrument-decision.bearish {
  border-color: rgba(255, 79, 100, 0.45) !important;
  background: var(--xt-red-soft) !important;
}

.decision.neutral,
.decision.late,
.instrument-decision.conflict,
.instrument-decision.wait {
  border-color: rgba(245, 184, 75, 0.42) !important;
  background: rgba(245, 184, 75, 0.09) !important;
}

.scan-overview.running .scan-dot,
.scan-overview.done .scan-dot {
  background: var(--xt-green) !important;
}

.scan-overview.error .scan-dot {
  background: var(--xt-red) !important;
}

.table-wrap {
  border: 1px solid var(--xt-border) !important;
  border-radius: 3px !important;
  background: var(--xt-panel) !important;
  box-shadow: none !important;
}

.table-wrap table {
  border-collapse: collapse;
}

.table-wrap th {
  background: #0e1319 !important;
  color: var(--xt-muted) !important;
  font-size: 11px;
  text-transform: uppercase;
}

.table-wrap td,
.table-wrap th {
  border-bottom: 1px solid var(--xt-border-soft) !important;
}

.chart-grid canvas {
  border: 1px solid var(--xt-border);
  border-radius: 2px;
  background: #05080b;
}

.instrument-catalog-items {
  gap: 4px;
}

.instrument-chip {
  min-height: 46px;
  padding: 7px 8px;
}

.price-card strong,
.account-plan-pill strong,
.client-flow-status strong {
  color: var(--xt-green) !important;
}

.professional-desk-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}

.professional-desk-card {
  min-height: 184px;
}

.professional-diagnosis,
.model-diagnosis,
.market-changes,
.quality-ranking,
.analysis-pro-panel {
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.professional-diagnosis p,
.model-diagnosis p,
.analysis-pro-panel p {
  margin: 0;
}

.professional-points,
.market-change-group,
.quality-components {
  display: grid;
  gap: 6px;
}

.professional-points span,
.market-change-group span,
.quality-components span {
  border: 1px solid var(--xt-border);
  border-radius: 4px;
  padding: 7px 8px;
  background: rgba(10, 15, 22, 0.72);
  color: var(--xt-muted);
}

.professional-points.compact span {
  padding: 6px 7px;
}

.quality-row {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--xt-border);
  padding: 0 0 8px;
}

.quality-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quality-row strong,
.market-change-group strong {
  color: var(--xt-text);
  font-size: 13px;
}

.model-score,
.analysis-pro-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.model-score strong,
.analysis-pro-score strong {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 46px;
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 4px;
  background: rgba(8, 47, 36, 0.55);
  color: var(--xt-green) !important;
  font-size: 24px;
}

.analysis-terminal {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.22fr) minmax(300px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.analysis-list-panel,
.analysis-reader-panel,
.analysis-intel-panel {
  min-height: 720px;
}

.analysis-intel-panel {
  position: sticky;
  top: 88px;
}

.article-professional-note {
  margin: 14px 0;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 4px;
  padding: 10px;
  background: rgba(8, 47, 36, 0.34);
}

.article-professional-note strong {
  color: var(--xt-green);
}

.article-professional-note p {
  margin: 6px 0 0;
}

.analysis-pro-panel h3 {
  margin: 6px 0 0;
  color: var(--xt-text);
  font-size: 13px;
  text-transform: uppercase;
}

.analysis-pro-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--xt-muted);
}

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

.trust-strip,
.client-flow,
.sample-signal-grid {
  gap: 8px;
}

@media (max-width: 1240px) {
  .layout {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .professional-desk-grid,
  .analysis-terminal {
    grid-template-columns: 1fr;
  }

  .analysis-intel-panel {
    position: static;
  }

  #desk .radar-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "decision"
      "quality"
      "actionable"
      "why"
      "noise";
  }
}

@media (max-width: 900px) {
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    align-items: flex-start;
    width: 100%;
    max-width: 100vw;
    padding: 10px 14px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .language-picker,
  .language-picker select,
  .top-actions button {
    width: 100%;
  }

  .edition-tape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .edition-tape-cell {
    min-width: 0;
  }

  .edition-tape-cell strong {
    overflow-wrap: anywhere;
  }

  .layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--xt-border);
  }

  .tabs {
    top: 0;
    width: 100%;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
  }

  .workspace {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .tab-page,
  .radar-brief,
  .panel,
  .metric,
  .card,
  .signal-card {
    min-width: 0;
    max-width: 100%;
  }

  .radar-chat-hero .radar-chat-form {
    grid-template-columns: 1fr;
  }

  .live-watch-head,
  .live-watch-feed,
  .promo-status-grid,
  .promo-copy-grid {
    grid-template-columns: 1fr;
  }

  .live-watch-head,
  .promo-kit-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Professional terminal polish: dense hierarchy, stable diagnostics rail, disciplined status colors. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  border-top-width: 1px;
  border-bottom: 1px solid var(--xt-border);
}

.brand {
  font-size: 24px !important;
  line-height: 1;
}

.brand::after {
  display: none !important;
}

.subtitle {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.top-actions > * {
  min-height: 34px;
}

.top-actions button,
.language-picker select {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 2px;
  font-size: 12px;
}

.language-picker {
  gap: 4px;
}

.edition-tape {
  position: sticky;
  top: 58px;
  z-index: 35;
  grid-template-columns: 162px minmax(380px, 1fr) 138px 112px 124px;
  min-height: 40px;
  border-bottom: 1px solid var(--xt-border);
}

.edition-tape-cell {
  min-height: 40px;
  padding: 6px 10px;
}

.edition-tape-cell span {
  font-size: 10px;
}

.edition-tape-cell strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sidebar .panel {
  padding: 10px;
}

.section-title {
  font-size: 13px !important;
  text-transform: uppercase;
}

.tabs {
  position: sticky;
  top: 98px;
  z-index: 30;
  margin: -22px 0 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--xt-border);
  background: rgba(7, 10, 14, 0.96);
}

.tab {
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 12px;
}

.tab-page#desk.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 10px;
  align-items: start;
}

#desk > .radar-chat-hero {
  grid-column: 1 / -1;
}

#desk > .hero-grid,
#desk > .live-watch-panel,
#desk > .radar-grid {
  grid-column: 1;
}

#desk > .professional-desk-grid {
  position: sticky;
  top: 142px;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  max-height: calc(100vh - 154px);
  overflow: auto;
  padding-right: 2px;
}

#desk .professional-desk-card {
  min-height: auto;
}

#desk .hero-grid {
  grid-template-columns: repeat(5, minmax(96px, 1fr));
}

#desk .metric {
  min-height: 62px;
  padding: 9px 10px;
}

#desk .metric strong {
  font-size: 20px !important;
}

#desk .radar-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "actionable"
    "quality"
    "decision"
    "why"
    "noise";
}

#desk .radar-panel-main {
  border-color: rgba(17, 201, 132, 0.42) !important;
  border-left: 3px solid var(--xt-green) !important;
}

#desk .radar-panel-main .section-title::after {
  content: "  LIVE DESK";
  margin-left: 8px;
  color: var(--xt-green);
  font-size: 10px;
}

#desk .signal-card.featured {
  min-height: 142px;
}

.analysis-card {
  padding: 0 !important;
}

.analysis-card-grid {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 178px;
  gap: 10px;
  align-items: stretch;
  min-height: 82px;
}

.analysis-card-status,
.analysis-card-main,
.analysis-card-facts {
  min-width: 0;
  padding: 10px;
}

.analysis-card-status {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--xt-border-soft);
  background: rgba(5, 8, 11, 0.32);
}

.analysis-card-status strong {
  color: var(--xt-text);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.market-direction {
  display: inline-grid;
  grid-template-columns: 24px auto;
  grid-template-areas:
    "sign direction"
    "sign action";
  align-items: center;
  width: fit-content;
  min-width: 118px;
  overflow: hidden;
  border: 1px solid #465663;
  border-radius: 4px;
  color: #dce8ef;
  background: #172129;
  line-height: 1;
}

.market-direction b {
  grid-area: sign;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 34px;
  font-size: 18px;
}

.market-direction span {
  grid-area: direction;
  padding: 5px 7px 1px;
  font-size: 11px;
  font-weight: 1000;
}

.market-direction em {
  grid-area: action;
  padding: 1px 7px 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.market-direction.up {
  border-color: rgba(31, 215, 154, 0.65);
  color: #8dffd0;
  background: rgba(17, 201, 132, 0.12);
}

.market-direction.up b {
  color: #071510;
  background: #1fd79a;
}

.market-direction.down {
  border-color: rgba(255, 61, 87, 0.7);
  color: #ff9aaa;
  background: rgba(255, 61, 87, 0.11);
}

.market-direction.down b {
  color: #ffffff;
  background: #ff3d57;
}

.market-direction.neutral {
  border-color: rgba(244, 211, 94, 0.55);
  color: #f4d35e;
  background: rgba(244, 211, 94, 0.09);
}

.market-direction.neutral b {
  color: #151203;
  background: #f4d35e;
}

.card-topline > .market-direction {
  margin-right: 4px;
}

.decision > .market-direction {
  margin-bottom: 9px;
}

.prediction-watch-identity .market-direction {
  min-width: 106px;
  margin: 2px 0;
}

.prediction-watch-identity .market-direction span {
  color: inherit !important;
  font-size: 10px !important;
}

.prediction-watch-identity .market-direction em {
  color: inherit !important;
  font-size: 7px !important;
}

.analysis-card-main h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.analysis-card-main p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.analysis-spark {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.analysis-spark span {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #1a242d;
}

.analysis-spark span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(17, 201, 132, 0.9), rgba(86, 196, 255, 0.9));
}

.analysis-spark span:nth-child(4)::after {
  background: linear-gradient(90deg, rgba(245, 184, 75, 0.9), rgba(255, 79, 100, 0.9));
}

.analysis-card-facts {
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 1px solid var(--xt-border-soft);
  color: var(--xt-muted);
  font-size: 11px;
}

.analysis-card-facts span,
.analysis-card-facts time {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.analysis-card-facts strong {
  color: var(--xt-text);
}

.analysis-terminal {
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr) 360px;
}

.analysis-intel-panel {
  top: 142px;
  max-height: calc(100vh - 154px);
  overflow: auto;
}

.tag.good,
.prediction-potential.up,
.prediction-reality.confirmed {
  border-color: rgba(17, 201, 132, 0.42) !important;
  background: rgba(17, 201, 132, 0.12) !important;
  color: #8dffd0 !important;
}

.tag.bad,
.tag.risk,
.decision.bad,
.decision.risk,
.prediction-potential.down,
.prediction-reality.conflict {
  border-color: rgba(255, 79, 100, 0.42) !important;
  background: rgba(255, 79, 100, 0.11) !important;
  color: #ff9aa6 !important;
}

.tag.pending {
  border-color: rgba(245, 184, 75, 0.42) !important;
  background: rgba(245, 184, 75, 0.12) !important;
  color: #ffd38a !important;
}

.tag.neutral,
.tag.late,
.tag {
  border: 1px solid var(--xt-border-soft);
  border-radius: 2px;
  background: #111821 !important;
  color: var(--xt-muted) !important;
}

.is-refreshing .edition-tape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--xt-green), transparent);
  animation: terminalSweep 1.25s linear infinite;
}

.is-refreshing #stage::after {
  content: " •";
  color: var(--xt-green);
}

#desk .empty,
.quality-ranking.empty,
.market-changes.empty {
  position: relative;
  min-height: 44px;
  padding-top: 18px;
}

#desk .empty::before,
.quality-ranking.empty::before,
.market-changes.empty::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #10151b 0%, #1d2a32 45%, #10151b 90%);
  background-size: 220% 100%;
  animation: terminalSkeleton 1.4s ease-in-out infinite;
}

@keyframes terminalSweep {
  from {
    transform: translateX(-60%);
  }
  to {
    transform: translateX(60%);
  }
}

@keyframes terminalSkeleton {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (max-width: 1120px) {
  #desk {
    grid-template-columns: minmax(0, 1fr);
  }

  #desk > .professional-desk-grid,
  #desk > .hero-grid,
  #desk > .live-watch-panel,
  #desk > .radar-grid {
    position: static;
    grid-column: 1;
    grid-row: auto;
    max-height: none;
  }

  #desk > .professional-desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar,
  .edition-tape,
  .tabs {
    position: static;
  }

  .edition-tape {
    grid-template-columns: 1fr;
  }

  #desk > .professional-desk-grid {
    grid-template-columns: 1fr;
  }

  .analysis-card-grid,
  .analysis-terminal {
    grid-template-columns: 1fr;
  }

  .analysis-card-status,
  .analysis-card-facts {
    border: 0;
  }
}

/* Message layout reset: keep each news item as one readable block instead of several cramped columns. */
.analysis-card-grid {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  min-height: 0 !important;
}

.analysis-card-status {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-right: 0 !important;
  border-bottom: 1px solid var(--xt-border-soft);
}

.analysis-card-status strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analysis-card-main {
  padding-bottom: 8px !important;
}

.analysis-card-main h3,
.signal-content h3,
.signal-card h3 {
  overflow-wrap: anywhere;
}

.analysis-card-main p,
.signal-card p,
.card p {
  overflow-wrap: anywhere;
}

.analysis-card-facts {
  display: flex !important;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  border-left: 0 !important;
  border-top: 1px solid var(--xt-border-soft);
  padding-top: 8px !important;
}

.analysis-card-facts span,
.analysis-card-facts time {
  display: inline-flex !important;
  justify-content: flex-start !important;
  width: auto;
  max-width: 100%;
  white-space: normal !important;
}

.analysis-spark {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.analysis-terminal,
.two-col.wide-left {
  grid-template-columns: 1fr !important;
}

.analysis-intel-panel {
  position: static !important;
  max-height: none !important;
}

#signals .two-col,
#analyses .analysis-terminal {
  gap: 10px !important;
}

#signals .signal-list,
#analyses .analysis-list {
  max-height: none !important;
}

#signals .article-body,
#analyses .article-body,
#analyses .analysis-pro-panel {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 900px) {
  .auth-overlay {
    align-items: start;
    padding: 12px;
  }

  .auth-card {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .auth-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .auth-intro,
  .auth-form-panel {
    padding: 22px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .brand {
    font-size: 22px !important;
  }

  .workspace,
  .sidebar {
    padding: 10px !important;
  }

  .layout {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
    border-right: 0 !important;
    border-bottom: 1px solid var(--xt-border) !important;
  }

  .tabs {
    margin: 0 0 10px !important;
    max-width: 100% !important;
  }

  .tab-page#desk.active {
    display: block !important;
  }

  #desk > .hero-grid,
  .hero-grid,
  .workflow-strip,
  .ai-insight-grid,
  .scan-stat-grid,
  .usage-grid,
  .quality-components,
  .client-flow,
  .trust-strip,
  .sample-signal-grid {
    grid-template-columns: 1fr !important;
  }

  .radar-grid,
  .two-col,
  .two-col.wide-left,
  .chart-grid,
  .account-grid,
  .client-grid,
  .professional-desk-grid,
  .analysis-terminal {
    grid-template-columns: 1fr !important;
  }

  .radar-brief,
  .client-hero,
  .account-hero,
  .checkout-box,
  .ai-insight-head,
  .live-watch-head,
  .scan-quality-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .signal-main {
    grid-template-columns: 1fr !important;
  }

  .opportunity-score {
    width: 72px;
    min-width: 0;
  }

  .live-watch-row,
  .asset-row,
  .source-card,
  .coverage-row,
  .source-performance {
    grid-template-columns: 1fr !important;
  }

  .live-watch-row strong,
  .edition-tape-cell strong {
    white-space: normal !important;
  }

  .panel,
  .card,
  .signal-card,
  .prediction-card,
  .source-card,
  .coverage-row,
  .asset-row {
    max-width: 100%;
    overflow: hidden;
  }

  .card-topline,
  .meta,
  .card-actions,
  .detail-actions,
  .radar-actions,
  .top-actions {
    align-items: stretch;
  }

  .card-actions button,
  .card-actions a,
  .detail-actions button,
  .radar-actions button,
  .top-actions button {
    min-width: 0;
  }
}

/* Final override: make the panel navigation unmistakable on desktop and mobile. */
nav.tabs {
  gap: 6px !important;
  padding: 9px 10px !important;
  border: 1px solid #4b5a6b !important;
  border-bottom: 2px solid #5f7186 !important;
  border-radius: 4px !important;
  background: #070b10 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

nav.tabs .tab {
  min-height: 42px !important;
  padding: 10px 15px !important;
  border: 1px solid #364657 !important;
  border-bottom-color: #53687c !important;
  border-radius: 4px !important;
  color: #d8e4ef !important;
  background: #111923 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

nav.tabs .tab:hover {
  border-color: #7d93a8 !important;
  color: #ffffff !important;
  background: #172230 !important;
}

nav.tabs .tab.active {
  border-color: #1fd79a !important;
  border-bottom-color: #1fd79a !important;
  color: #ffffff !important;
  background: #10251f !important;
  box-shadow: inset 0 -4px 0 #18d894, 0 0 0 1px rgba(24, 216, 148, 0.25) !important;
}

body.subscription-required nav.tabs .tab:not([data-tab="client"]):not([data-tab="account"])::after,
body.public-demo-open:not(.is-authenticated) nav.tabs .tab:not([data-tab="client"])::after,
body.pro-access nav.tabs .tab:not([data-tab="client"]):not([data-tab="account"])::after {
  min-width: 34px !important;
  margin-left: 9px !important;
  padding: 4px 7px !important;
  border: 1px solid #1fd79a !important;
  border-radius: 3px !important;
  color: #03110c !important;
  background: #1fd79a !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
}

@media (min-width: 1121px) {
  .tab-page#desk.active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 372px !important;
    gap: 10px !important;
    align-items: start !important;
  }

  #desk > .professional-desk-grid {
    grid-column: 2 !important;
    grid-row: 1 / span 4 !important;
  }
}

/* Final override: Predictions use a market-watch terminal layout. */
.prediction-watch-shell {
  border: 1px solid #334151 !important;
  border-radius: 4px !important;
  background: #0c151a !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.prediction-watch-tabs {
  display: flex !important;
  gap: 0 !important;
  min-height: 42px !important;
  border-bottom: 1px solid #31414a !important;
  background: #111d24 !important;
  overflow-x: auto !important;
}

.prediction-watch-tab {
  min-width: 82px !important;
  min-height: 42px !important;
  padding: 10px 15px !important;
  border: 0 !important;
  border-right: 1px solid #31414a !important;
  border-radius: 0 !important;
  color: #91a8b7 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  text-align: center !important;
}

.prediction-watch-tab:hover,
.prediction-watch-tab.active {
  color: #ffffff !important;
  background: #1c2a31 !important;
}

.prediction-watch-tab.active {
  box-shadow: inset 0 -3px 0 #f4d35e !important;
}

.prediction-watch-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 12px !important;
  border-bottom: 1px solid #263740 !important;
  background: #0c151a !important;
}

.prediction-watch-search input {
  width: 100% !important;
  min-height: 32px !important;
  border: 1px solid #2e3f48 !important;
  border-radius: 2px !important;
  padding: 7px 11px !important;
  color: #dbe8f0 !important;
  background: #1b2930 !important;
  font-weight: 700 !important;
}

.prediction-watch-search span {
  color: #86a2b1 !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
}

.prediction-watch-head,
.prediction-watch-row {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) 110px 105px 110px minmax(360px, 1.2fr) minmax(190px, 0.7fr) 90px !important;
  align-items: stretch !important;
}

.prediction-watch-head {
  min-height: 35px !important;
  border-bottom: 1px solid #30424b !important;
  color: #8ba3b2 !important;
  background: #101a20 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.prediction-watch-head span {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 8px 12px !important;
  border-right: 1px solid #25343c !important;
}

.prediction-watch-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.prediction-watch-list.empty {
  display: block !important;
  padding: 18px !important;
  color: #9eb3c2 !important;
  background: #0d171d !important;
}

.prediction-watch-row {
  min-height: 66px !important;
  border-bottom: 1px solid #20323a !important;
  color: #dcebf3 !important;
  background: #102026 !important;
}

.prediction-watch-row:nth-child(even) {
  background: #1a282e !important;
}

.prediction-watch-row:hover {
  background: #22353d !important;
}

.prediction-watch-row.is-risk {
  box-shadow: inset 3px 0 0 #ff4d62 !important;
}

.prediction-watch-symbol-cell,
.prediction-watch-change,
.prediction-watch-price,
.prediction-watch-horizon-cell,
.prediction-watch-scenario {
  min-width: 0 !important;
  padding: 9px 12px !important;
  border-right: 1px solid #25343c !important;
}

.prediction-watch-symbol-cell {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}

.prediction-watch-logo {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 4px !important;
  color: #0b1217 !important;
  background: #f2f4f8 !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
}

.prediction-watch-logo.up {
  background: #1fd79a !important;
}

.prediction-watch-logo.down {
  color: #ffffff !important;
  background: #ff3d57 !important;
}

.prediction-watch-logo.flat {
  color: #10202a !important;
  background: #f4d35e !important;
}

.prediction-watch-identity {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.prediction-watch-identity strong {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 1000 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prediction-watch-identity span,
.prediction-watch-identity em {
  min-width: 0 !important;
  color: #91a8b7 !important;
  font-size: 12px !important;
  font-style: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prediction-watch-identity small {
  margin-left: 4px !important;
  color: #c2d3dc !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.prediction-watch-change,
.prediction-watch-price,
.prediction-watch-horizon-cell,
.prediction-watch-scenario {
  display: grid !important;
  align-content: center !important;
  gap: 3px !important;
}

.prediction-watch-change strong,
.prediction-watch-price strong {
  color: #f4f8fb !important;
  font-size: 15px !important;
  font-weight: 1000 !important;
  text-align: right !important;
}

.prediction-watch-change.up strong {
  color: #1fd79a !important;
}

.prediction-watch-change.down strong {
  color: #ff3d57 !important;
}

.prediction-watch-change.flat strong {
  color: #92a9b8 !important;
}

.prediction-watch-change small,
.prediction-watch-price small,
.prediction-watch-scenario small {
  color: #88a0af !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prediction-watch-price.scenario strong {
  color: #d8eefc !important;
}

.prediction-watch-scenario strong {
  color: #e7f1f6 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prediction-watch-horizon-cell > strong,
.forecast-horizon-title {
  color: #9fb5c2 !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.forecast-horizon-block {
  display: grid !important;
  gap: 6px !important;
  margin: 10px 0 !important;
  border: 1px solid #334852 !important;
  border-left: 3px solid #21d4a0 !important;
  border-radius: 4px !important;
  padding: 8px !important;
  background: #0c171d !important;
}

.forecast-horizon-block.compact {
  margin: 7px 0 3px !important;
  padding: 7px !important;
}

.effectiveness-horizons {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
}

.effectiveness-horizons:empty {
  display: none !important;
}

.prediction-watch-horizons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.prediction-horizon-chip {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
  border: 1px solid #334852 !important;
  border-radius: 3px !important;
  padding: 4px 5px !important;
  background: #0e1b22 !important;
  text-align: right !important;
}

.prediction-horizon-chip b,
.prediction-horizon-chip strong,
.prediction-horizon-chip em {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prediction-horizon-chip b {
  color: #9fb5c2 !important;
  font-size: 9px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
}

.prediction-horizon-chip strong {
  color: #f4f8fb !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
}

.prediction-horizon-chip em {
  font-size: 9px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.prediction-horizon-chip.up em {
  color: #1fd79a !important;
}

.prediction-horizon-chip.down em {
  color: #ff3d57 !important;
}

.prediction-horizon-chip.flat em,
.prediction-horizon-chip.empty em,
.prediction-horizon-chip.empty strong {
  color: #8ba3b2 !important;
}

.prediction-horizon-chip.abstain {
  border-color: #80652d !important;
  background: #211d13 !important;
}

.prediction-horizon-chip.abstain strong,
.prediction-horizon-chip.abstain em {
  color: #f2c96d !important;
}

.prediction-watch-pill {
  justify-self: start !important;
  min-width: 74px !important;
  border: 1px solid #3f5260 !important;
  border-radius: 3px !important;
  padding: 4px 7px !important;
  color: #d9e7ef !important;
  background: #14242c !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-align: center !important;
}

.prediction-watch-pill.up {
  border-color: rgba(31, 215, 154, 0.55) !important;
  color: #1fd79a !important;
}

.prediction-watch-pill.down {
  border-color: rgba(255, 61, 87, 0.6) !important;
  color: #ff3d57 !important;
}

.prediction-watch-action {
  align-self: center !important;
  justify-self: center !important;
  min-width: 76px !important;
  min-height: 32px !important;
  border-radius: 3px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}

@media (max-width: 1180px) {
  .prediction-watch-shell {
    overflow-x: auto !important;
  }

  .prediction-watch-head,
  .prediction-watch-row {
    min-width: 1260px !important;
  }
}

@media (max-width: 760px) {
  .prediction-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .prediction-watch-head {
    display: none !important;
  }

  .prediction-watch-row {
    min-width: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }

  .prediction-watch-symbol-cell,
  .prediction-watch-horizon-cell,
  .prediction-watch-scenario {
    grid-column: 1 / -1 !important;
  }

  .prediction-watch-change,
  .prediction-watch-price,
  .prediction-watch-horizon-cell,
  .prediction-watch-scenario {
    border-top: 1px solid #25343c !important;
  }

  .prediction-watch-action {
    width: calc(100% - 20px) !important;
    margin: 8px 10px !important;
  }

  .forecast-horizon-block .prediction-watch-horizons,
  .prediction-watch-horizon-cell .prediction-watch-horizons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final override: forecast accuracy must communicate validation risk clearly. */
.forecast-readiness {
  display: grid !important;
  gap: 6px !important;
  border-radius: 4px !important;
}

.forecast-readiness-badge {
  width: fit-content !important;
  border: 1px solid #425363 !important;
  border-radius: 3px !important;
  padding: 4px 7px !important;
  color: #dcebf3 !important;
  background: #121b24 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
}

.forecast-readiness.weak {
  border-color: rgba(255, 79, 100, 0.55) !important;
  background: rgba(255, 79, 100, 0.1) !important;
}

.forecast-readiness.weak .forecast-readiness-badge,
.forecast-metric.weak strong small {
  border-color: rgba(255, 79, 100, 0.65) !important;
  color: #ff9aa6 !important;
  background: rgba(255, 79, 100, 0.12) !important;
}

.forecast-readiness.learning,
.forecast-metric.learning {
  border-color: rgba(245, 184, 75, 0.48) !important;
  background: rgba(245, 184, 75, 0.08) !important;
}

.forecast-readiness.learning .forecast-readiness-badge,
.forecast-metric.learning strong small {
  border-color: rgba(245, 184, 75, 0.58) !important;
  color: #ffd38a !important;
  background: rgba(245, 184, 75, 0.12) !important;
}

.forecast-readiness.ready,
.forecast-metric.ready {
  border-color: rgba(31, 215, 154, 0.42) !important;
  background: rgba(31, 215, 154, 0.08) !important;
}

.forecast-readiness.ready .forecast-readiness-badge,
.forecast-metric.ready strong small {
  border-color: rgba(31, 215, 154, 0.55) !important;
  color: #8dffd0 !important;
  background: rgba(31, 215, 154, 0.12) !important;
}

.forecast-metric.weak {
  border-color: rgba(255, 79, 100, 0.45) !important;
  background: rgba(255, 79, 100, 0.08) !important;
}

.forecast-metric.waiting {
  opacity: 0.82 !important;
}

.forecast-metric strong {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.forecast-metric strong small {
  border: 1px solid #344554 !important;
  border-radius: 3px !important;
  padding: 3px 6px !important;
  color: #a9bac7 !important;
  background: #111923 !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
}

.forecast-metric-note {
  margin-top: 4px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
  padding-top: 8px !important;
  color: #d6e2ea !important;
  font-weight: 800 !important;
}

/* Final override: VexoCode domain logo and favicon lockup. */
.brand {
  display: inline-flex !important;
  align-items: center !important;
  width: 224px !important;
  max-width: 42vw !important;
  min-height: 58px !important;
  text-decoration: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.brand-logo {
  display: block !important;
  width: 220px !important;
  max-width: 100% !important;
  height: auto !important;
}

.brand::after {
  display: none !important;
}

@media (max-width: 720px) {
  .brand {
    width: 172px !important;
    min-height: 48px !important;
  }

  .brand-logo {
    width: 168px !important;
  }
}

/* VexoCode Professional UI 2026
   Authoritative visual layer for the complete product interface. */
:root {
  --pro-bg: #0a0d10;
  --pro-bg-deep: #07090c;
  --pro-surface: #11161b;
  --pro-surface-raised: #161c22;
  --pro-surface-soft: #0e1318;
  --pro-line: #27323a;
  --pro-line-strong: #3b4852;
  --pro-text: #f1f4f5;
  --pro-text-soft: #c7d0d5;
  --pro-muted: #8f9ba3;
  --pro-teal: #2fd1a1;
  --pro-teal-hover: #54dfb6;
  --pro-teal-soft: rgba(47, 209, 161, 0.1);
  --pro-blue: #6aaaf7;
  --pro-blue-soft: rgba(106, 170, 247, 0.1);
  --pro-amber: #e5b75d;
  --pro-amber-soft: rgba(229, 183, 93, 0.1);
  --pro-red: #ff7381;
  --pro-red-soft: rgba(255, 115, 129, 0.1);
  --pro-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  --pro-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.18);
  --bg: var(--pro-bg);
  --panel: var(--pro-surface);
  --panel-strong: var(--pro-surface-raised);
  --line: var(--pro-line);
  --text: var(--pro-text);
  --muted: var(--pro-muted);
  --accent: var(--pro-teal);
  --desk-bg: var(--pro-bg);
  --desk-panel: var(--pro-surface);
  --desk-line: var(--pro-line);
  --desk-text: var(--pro-text);
  --desk-muted: var(--pro-muted);
  --xt-bg: var(--pro-bg);
  --xt-panel: var(--pro-surface);
  --xt-panel-2: var(--pro-surface-raised);
  --xt-border: var(--pro-line);
  --xt-text: var(--pro-text);
  --xt-muted: var(--pro-muted);
}

html {
  color-scheme: dark !important;
  background: var(--pro-bg-deep) !important;
  scrollbar-color: #46535c #0a0e12 !important;
}

body {
  min-width: 320px !important;
  margin: 0 !important;
  background: var(--pro-bg) !important;
  background-image: none !important;
  color: var(--pro-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
}

button,
input,
select,
textarea {
  font: inherit !important;
}

a {
  color: var(--pro-blue) !important;
  text-underline-offset: 3px !important;
}

::selection {
  background: rgba(47, 209, 161, 0.28) !important;
  color: #ffffff !important;
}

.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 12px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-line) !important;
  background: rgba(8, 11, 14, 0.98) !important;
  background-image: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.brand {
  width: 224px !important;
  max-width: 100% !important;
  min-height: 58px !important;
}

.brand-logo {
  width: 220px !important;
  filter: none !important;
}

.brand-subtitle,
.topbar-subtitle {
  color: var(--pro-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.online-counter,
.online-badge {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(47, 209, 161, 0.28) !important;
  border-radius: 5px !important;
  background: var(--pro-teal-soft) !important;
  background-image: none !important;
  color: #b9f5e1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.online-counter::before,
.online-badge::before {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--pro-teal) !important;
  box-shadow: 0 0 0 4px rgba(47, 209, 161, 0.1) !important;
}

#authStateLabel {
  max-width: 230px !important;
  overflow: hidden !important;
  color: var(--pro-text-soft) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

button,
.button,
.btn,
.tab {
  min-height: 38px !important;
  border: 1px solid var(--pro-line-strong) !important;
  border-radius: 5px !important;
  background: var(--pro-surface-raised) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--pro-text) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease,
    transform 150ms ease !important;
}

button:hover,
.button:hover,
.btn:hover,
.tab:hover {
  border-color: #5a6872 !important;
  background: #1b2229 !important;
  color: #ffffff !important;
}

button:active,
.button:active,
.btn:active {
  transform: translateY(1px) !important;
}

button:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.tab:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pro-teal) !important;
  outline-offset: 2px !important;
}

button.primary,
.primary,
#paymentBtn,
#authSubmit,
#clientPaymentBtn,
#accountPaymentBtn,
#startMonitoringBtn,
#scanNowBtn {
  border-color: var(--pro-teal) !important;
  background: var(--pro-teal) !important;
  color: #06110d !important;
}

button.primary:hover,
.primary:hover,
#paymentBtn:hover,
#authSubmit:hover,
#clientPaymentBtn:hover,
#accountPaymentBtn:hover,
#startMonitoringBtn:hover,
#scanNowBtn:hover {
  border-color: var(--pro-teal-hover) !important;
  background: var(--pro-teal-hover) !important;
  color: #04100c !important;
}

button.danger,
.danger,
#logoutBtn,
#stopMonitoringBtn {
  border-color: rgba(255, 115, 129, 0.44) !important;
  background: var(--pro-red-soft) !important;
  color: #ffb5bd !important;
}

button:disabled,
.button:disabled,
.btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.45 !important;
  transform: none !important;
}

.edition-tape {
  position: sticky !important;
  top: 72px !important;
  z-index: 90 !important;
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 170px minmax(320px, 1fr) 140px 110px 125px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-line) !important;
  background: #0d1115 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.edition-cell {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-right: 1px solid #202a31 !important;
  background: transparent !important;
  background-image: none !important;
}

.edition-cell:last-child {
  border-right: 0 !important;
}

.edition-label,
.eyebrow,
.kicker,
.mini-label {
  color: var(--pro-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.edition-value {
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--pro-text-soft) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.layout {
  width: 100% !important;
  min-height: calc(100vh - 122px) !important;
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--pro-bg) !important;
}

.sidebar {
  position: sticky !important;
  top: 122px !important;
  z-index: 20 !important;
  height: calc(100vh - 122px) !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 16px !important;
  border: 0 !important;
  border-right: 1px solid var(--pro-line) !important;
  background: #0c1014 !important;
  background-image: none !important;
  scrollbar-width: thin !important;
}

.workspace {
  min-width: 0 !important;
  padding: 0 18px 42px !important;
  background: var(--pro-bg) !important;
  background-image: none !important;
}

.tabs {
  position: sticky !important;
  top: 122px !important;
  z-index: 80 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow-x: auto !important;
  margin: 0 -18px 16px !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-line) !important;
  border-radius: 0 !important;
  background: rgba(10, 13, 16, 0.97) !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
  scrollbar-width: thin !important;
}

.tab {
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #aab4ba !important;
  white-space: nowrap !important;
}

.tab:hover {
  border-color: var(--pro-line) !important;
  background: var(--pro-surface) !important;
  color: var(--pro-text) !important;
}

.tab.active {
  border-color: rgba(47, 209, 161, 0.38) !important;
  background: var(--pro-teal-soft) !important;
  color: #bcf7e4 !important;
  box-shadow: inset 0 -2px 0 var(--pro-teal) !important;
}

.tab-context {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: -6px 0 14px !important;
  padding: 10px 13px !important;
  border: 1px solid var(--pro-line) !important;
  border-left: 3px solid var(--pro-teal) !important;
  border-radius: 5px !important;
  background: #0e1418 !important;
  color: var(--pro-text-soft) !important;
}

.tab-context strong {
  flex: 0 0 auto !important;
  color: var(--pro-text) !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.tab-context span {
  color: var(--pro-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.tab-page {
  min-width: 0 !important;
  color: var(--pro-text-soft) !important;
}

.panel,
.sidebar-panel,
.status-card,
.watch-panel,
.chart-panel,
.prediction-panel,
.account-card,
.client-card,
.forecast-card,
.terminal-panel,
.analysis-card,
.source-card,
.settings-card {
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: var(--pro-surface) !important;
  background-image: none !important;
  box-shadow: var(--pro-shadow-soft) !important;
}

.panel,
.watch-panel,
.chart-panel,
.prediction-panel {
  margin-bottom: 14px !important;
  padding: 18px !important;
}

.sidebar .panel,
.sidebar-panel {
  margin: 0 0 14px !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.panel::before,
.panel::after,
.sidebar-panel::before,
.sidebar-panel::after,
.section-title::after,
.panel-title::after,
h2::after,
h3::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.panel-head,
.panel-header,
.sidebar-panel > h2,
.sidebar-panel > h3 {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-line) !important;
  background: #12181e !important;
  background-image: none !important;
}

.sidebar-panel > :not(h2):not(h3) {
  margin-left: 14px !important;
  margin-right: 14px !important;
}

.sidebar-panel > :last-child {
  margin-bottom: 14px !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.panel-title,
.section-title {
  margin-top: 0 !important;
  color: var(--pro-text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  text-shadow: none !important;
}

h1 {
  font-size: clamp(28px, 3.2vw, 44px) !important;
}

h2 {
  font-size: 21px !important;
}

h3,
.panel-title,
.section-title {
  font-size: 14px !important;
}

h4 {
  font-size: 13px !important;
}

p,
li,
.muted,
.panel-copy,
.help-text,
.status-copy {
  color: var(--pro-muted) !important;
}

strong,
b {
  color: var(--pro-text) !important;
}

.status-pill,
.badge,
.tag,
.signal-tag,
.quality-badge,
.forecast-readiness-badge {
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 4px 8px !important;
  border: 1px solid var(--pro-line-strong) !important;
  border-radius: 4px !important;
  background: #151b21 !important;
  background-image: none !important;
  color: var(--pro-text-soft) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.positive,
.success,
.confirmed,
.new,
.ready,
.status-good {
  border-color: rgba(47, 209, 161, 0.38) !important;
  background: var(--pro-teal-soft) !important;
  color: #8de9ca !important;
}

.warning,
.watch,
.early,
.status-warning {
  border-color: rgba(229, 183, 93, 0.4) !important;
  background: var(--pro-amber-soft) !important;
  color: #f0ca7f !important;
}

.negative,
.risk,
.conflict,
.weak,
.status-bad {
  border-color: rgba(255, 115, 129, 0.4) !important;
  background: var(--pro-red-soft) !important;
  color: #ff9ca7 !important;
}

input,
select,
textarea,
.search-input {
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid var(--pro-line-strong) !important;
  border-radius: 5px !important;
  background: #0c1115 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--pro-text) !important;
  caret-color: var(--pro-teal) !important;
}

input,
select {
  padding: 0 12px !important;
}

textarea {
  min-height: 120px !important;
  padding: 11px 12px !important;
}

input::placeholder,
textarea::placeholder {
  color: #68757e !important;
}

label {
  color: var(--pro-text-soft) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

table,
.data-table,
.prediction-table,
.watch-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
  color: var(--pro-text-soft) !important;
}

th,
.table-head,
.watch-table-head {
  padding: 11px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-line-strong) !important;
  background: #0d1217 !important;
  color: var(--pro-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-transform: uppercase !important;
}

td,
.table-cell,
.watch-table-cell {
  padding: 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #222c33 !important;
  color: var(--pro-text-soft) !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

tr:hover td,
.table-row:hover,
.watch-row:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

.hero-grid,
.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

.metric,
.metric-card {
  min-height: 96px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 15px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: var(--pro-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.metric strong,
.metric-value {
  color: var(--pro-text) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.metric span,
.metric-label {
  color: var(--pro-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.professional-desk-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

.professional-desk-grid > * {
  min-width: 0 !important;
  min-height: 190px !important;
}

.radar-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.radar-grid > * {
  min-width: 0 !important;
}

.radar-grid .panel {
  height: auto !important;
  min-height: 0 !important;
}

.live-watch-panel,
.early-signal-panel,
.main-signal-panel {
  grid-column: 1 / -1 !important;
}

.signal-card,
.news-card,
.radar-entry,
.analysis-entry,
.prediction-row,
.demo-trade-row {
  margin: 0 0 8px !important;
  padding: 13px 14px !important;
  border: 1px solid #253039 !important;
  border-radius: 5px !important;
  background: #0e1318 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--pro-text-soft) !important;
}

.signal-card:hover,
.news-card:hover,
.radar-entry:hover,
.analysis-entry:hover,
.prediction-row:hover,
.demo-trade-row:hover {
  border-color: #3b4851 !important;
  background: #12181e !important;
}

.signal-card.selected,
.news-card.selected,
.radar-entry.selected,
.analysis-entry.active {
  border-color: rgba(47, 209, 161, 0.58) !important;
  background: rgba(47, 209, 161, 0.055) !important;
  box-shadow: inset 3px 0 0 var(--pro-teal) !important;
}

.signal-title,
.news-title,
.radar-title,
.analysis-title,
.prediction-symbol {
  color: var(--pro-text) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

.signal-meta,
.news-meta,
.radar-meta,
.analysis-meta {
  color: var(--pro-muted) !important;
  font-size: 11px !important;
}

.workflow-strip,
.trust-strip,
.client-flow {
  display: grid !important;
  gap: 10px !important;
}

.workflow-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-bottom: 14px !important;
}

.workflow-step,
.trust-item,
.client-flow-step {
  min-width: 0 !important;
  padding: 15px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: var(--pro-surface) !important;
  background-image: none !important;
}

.ai-insight-panel,
.forecast-readiness {
  border-color: rgba(106, 170, 247, 0.3) !important;
  background: rgba(106, 170, 247, 0.055) !important;
  background-image: none !important;
}

.chart-grid,
.two-col,
.client-grid,
.account-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.two-col.wide-left {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr) !important;
}

.chart-controls,
.prediction-controls,
.filter-bar,
.settings-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
}

.chart-canvas-shell,
.chart-stage,
.prediction-watch-shell,
.table-shell {
  overflow: auto !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: #0c1115 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.prediction-head,
.client-hero,
.account-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr) !important;
  gap: 28px !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  padding: 26px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 7px !important;
  background: var(--pro-surface) !important;
  background-image: none !important;
  box-shadow: var(--pro-shadow) !important;
}

.prediction-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 18px !important;
  box-shadow: none !important;
}

.client-hero h1,
.account-hero h1 {
  max-width: 760px !important;
  margin-bottom: 12px !important;
  font-size: clamp(30px, 3.3vw, 46px) !important;
}

.client-hero p,
.account-hero p {
  max-width: 760px !important;
  margin-bottom: 20px !important;
  color: #aeb8be !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.client-price,
.price-card,
.account-plan-card {
  min-width: 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(47, 209, 161, 0.34) !important;
  border-radius: 6px !important;
  background: var(--pro-teal-soft) !important;
  background-image: none !important;
  text-align: left !important;
}

.client-price strong,
.price-card strong,
.account-plan-card strong {
  display: block !important;
  margin: 6px 0 !important;
  color: #9af0d3 !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 14px !important;
}

.client-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-bottom: 14px !important;
}

#demoResultsPanel,
.demo-results-panel {
  border-color: rgba(47, 209, 161, 0.3) !important;
  background: #10171a !important;
  background-image: none !important;
}

.demo-results-summary,
.demo-proof-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.demo-results-summary > *,
.demo-proof-strip > * {
  padding: 14px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 5px !important;
  background: #0c1215 !important;
  background-image: none !important;
}

.analysis-terminal {
  display: grid !important;
  grid-template-columns: minmax(250px, 0.7fr) minmax(420px, 1.55fr) minmax(260px, 0.75fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.analysis-terminal > * {
  min-width: 0 !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: var(--pro-surface) !important;
  background-image: none !important;
}

.analysis-list,
.analysis-reader,
.analysis-intel {
  max-height: calc(100vh - 210px) !important;
  overflow: auto !important;
}

.forecast-grid,
.source-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 12px !important;
}

.forecast-metric {
  border: 1px solid var(--pro-line) !important;
  border-radius: 5px !important;
  background: #0e1318 !important;
  background-image: none !important;
}

.auth-overlay {
  z-index: 1000 !important;
  padding: 24px !important;
  background: rgba(3, 6, 8, 0.84) !important;
  background-image: none !important;
  backdrop-filter: blur(8px) !important;
}

.auth-card {
  width: min(980px, 100%) !important;
  max-height: calc(100vh - 48px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
  overflow: auto !important;
  border: 1px solid #35424b !important;
  border-radius: 8px !important;
  background: #11171c !important;
  background-image: none !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52) !important;
}

.auth-intro,
.auth-form-panel {
  min-width: 0 !important;
  padding: 36px !important;
  background: transparent !important;
  background-image: none !important;
}

.auth-intro {
  border-right: 1px solid var(--pro-line) !important;
  background: #0d1216 !important;
}

.auth-intro h2,
.auth-intro h1 {
  margin: 10px 0 14px !important;
  font-size: clamp(30px, 4vw, 46px) !important;
}

.auth-benefits,
.auth-plan,
.auth-notice {
  margin-top: 18px !important;
  padding: 17px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: #13191f !important;
  background-image: none !important;
}

.auth-plan {
  border-color: rgba(47, 209, 161, 0.34) !important;
  background: var(--pro-teal-soft) !important;
}

.auth-plan strong {
  color: #a4f2d7 !important;
  font-size: 28px !important;
}

.auth-mode-switch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin-bottom: 18px !important;
  padding: 4px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 6px !important;
  background: #0b1014 !important;
}

.auth-mode-switch button {
  border-color: transparent !important;
  background: transparent !important;
}

.auth-mode-switch button.active {
  border-color: rgba(47, 209, 161, 0.35) !important;
  background: var(--pro-teal-soft) !important;
  color: #b7f4e0 !important;
}

.auth-form {
  display: grid !important;
  gap: 14px !important;
}

.auth-status {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  margin-top: 12px !important;
  padding: 11px 13px !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 5px !important;
  background: #0d1216 !important;
  color: var(--pro-text-soft) !important;
}

.auth-status:empty {
  display: none !important;
}

.auth-status.error,
.auth-status.is-error {
  border-color: rgba(255, 115, 129, 0.5) !important;
  background: var(--pro-red-soft) !important;
  color: #ffb2ba !important;
}

.auth-card.is-auth-loading {
  pointer-events: none !important;
}

.auth-card.is-auth-loading::after {
  border-color: rgba(47, 209, 161, 0.32) !important;
  background: rgba(7, 10, 13, 0.82) !important;
  color: var(--pro-text) !important;
}

.empty-state,
.loading-state {
  min-height: 110px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 20px !important;
  border: 1px dashed #35424b !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.015) !important;
  color: var(--pro-muted) !important;
}

@media (max-width: 1500px) {
  .professional-desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .analysis-terminal {
    grid-template-columns: minmax(240px, 0.65fr) minmax(400px, 1.35fr) !important;
  }

  .analysis-intel {
    grid-column: 1 / -1 !important;
    max-height: none !important;
  }
}

@media (max-width: 1180px) {
  .topbar {
    position: relative !important;
  }

  .edition-tape {
    position: relative !important;
    top: 0 !important;
    overflow-x: auto !important;
  }

  .layout {
    display: flex !important;
    flex-direction: column !important;
  }

  .workspace {
    order: 1 !important;
    width: 100% !important;
  }

  .sidebar {
    position: relative !important;
    top: 0 !important;
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 1px solid var(--pro-line) !important;
  }

  .sidebar .panel,
  .sidebar-panel {
    margin: 0 !important;
  }

  .tabs {
    top: 0 !important;
  }

  .radar-grid,
  .two-col.wide-left {
    grid-template-columns: 1fr !important;
  }

  .radar-grid > *,
  .live-watch-panel,
  .early-signal-panel,
  .main-signal-panel {
    grid-column: 1 !important;
  }

  .hero-grid,
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .analysis-terminal {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr) !important;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .top-actions {
    justify-content: flex-start !important;
  }

  .edition-tape {
    grid-template-columns: repeat(5, minmax(150px, max-content)) !important;
  }

  .workspace {
    padding: 0 12px 30px !important;
  }

  .tabs {
    margin: 0 -12px 12px !important;
    padding: 9px 12px !important;
  }

  .sidebar {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .panel,
  .watch-panel,
  .chart-panel,
  .prediction-panel {
    padding: 14px !important;
  }

  .hero-grid,
  .metrics-grid,
  .professional-desk-grid,
  .workflow-strip,
  .trust-strip,
  .client-flow,
  .demo-results-summary,
  .demo-proof-strip,
  .chart-grid,
  .two-col,
  .client-grid,
  .account-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .client-hero,
  .account-hero,
  .prediction-head {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 20px !important;
  }

  .analysis-terminal {
    grid-template-columns: 1fr !important;
  }

  .analysis-list,
  .analysis-reader,
  .analysis-intel {
    max-height: none !important;
  }

  .auth-card {
    grid-template-columns: 1fr !important;
  }

  .auth-form-panel {
    order: -1 !important;
  }

  .auth-intro {
    order: 2 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pro-line) !important;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px !important;
  }

  .brand {
    width: 172px !important;
    min-height: 48px !important;
  }

  .brand-logo {
    width: 168px !important;
  }

  .top-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .top-actions > * {
    min-width: 0 !important;
  }

  .tab-context {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-height: 0 !important;
    margin-top: -4px !important;
  }

  .tab-context strong {
    white-space: normal !important;
  }

  #authStateLabel,
  .online-counter,
  .online-badge {
    grid-column: 1 / -1 !important;
    max-width: none !important;
  }

  .hero-grid,
  .metrics-grid,
  .professional-desk-grid,
  .workflow-strip,
  .trust-strip,
  .client-flow,
  .demo-results-summary,
  .demo-proof-strip,
  .chart-grid,
  .two-col,
  .client-grid,
  .account-grid {
    grid-template-columns: 1fr !important;
  }

  .metric,
  .metric-card {
    min-height: 82px !important;
  }

  .client-hero h1,
  .account-hero h1 {
    font-size: 30px !important;
  }

  .auth-overlay {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .auth-card {
    max-height: calc(100vh - 20px) !important;
  }

  .auth-intro,
  .auth-form-panel {
    padding: 22px !important;
  }

  .auth-intro h2,
  .auth-intro h1 {
    font-size: 30px !important;
  }

  table,
  .data-table,
  .prediction-table,
  .watch-table {
    min-width: 680px !important;
  }

  .panel,
  .watch-panel,
  .chart-panel,
  .prediction-panel {
    overflow: hidden !important;
  }

  .table-shell,
  .prediction-watch-shell,
  .chart-canvas-shell {
    overflow-x: auto !important;
  }
}

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

/* Desk layout reset: older terminal layouts positioned the right rail above
   the primary content. Keep the reading order stable in every access mode. */
.tab-page#desk.active {
  display: block !important;
}

#desk > .radar-chat-hero,
#desk > .hero-grid,
#desk > .live-watch-panel,
#desk > .professional-desk-grid,
#desk > .radar-grid {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: auto !important;
  overflow: visible !important;
}

#desk > .professional-desk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  padding: 0 !important;
}

#authNameWrap[hidden] {
  display: none !important;
}

#progressBar {
  width: 0 !important;
  height: 100% !important;
  background: var(--pro-teal) !important;
  transition: width 180ms ease !important;
}

#progressBar.progress-value-10 {
  width: 10% !important;
}

#progressBar.progress-value-20 {
  width: 20% !important;
}

#progressBar.progress-value-30 {
  width: 30% !important;
}

#progressBar.progress-value-40 {
  width: 40% !important;
}

#progressBar.progress-value-50 {
  width: 50% !important;
}

#progressBar.progress-value-60 {
  width: 60% !important;
}

#progressBar.progress-value-70 {
  width: 70% !important;
}

#progressBar.progress-value-80 {
  width: 80% !important;
}

#progressBar.progress-value-90 {
  width: 90% !important;
}

#progressBar.progress-value-100 {
  width: 100% !important;
}

.analysis-spark span::after {
  width: 0 !important;
  background: var(--pro-teal) !important;
}

.analysis-spark span:nth-child(4)::after {
  background: var(--pro-amber) !important;
}

.analysis-spark .level-10::after {
  width: 10% !important;
}

.analysis-spark .level-20::after {
  width: 20% !important;
}

.analysis-spark .level-30::after {
  width: 30% !important;
}

.analysis-spark .level-40::after {
  width: 40% !important;
}

.analysis-spark .level-50::after {
  width: 50% !important;
}

.analysis-spark .level-60::after {
  width: 60% !important;
}

.analysis-spark .level-70::after {
  width: 70% !important;
}

.analysis-spark .level-80::after {
  width: 80% !important;
}

.analysis-spark .level-90::after {
  width: 90% !important;
}

.analysis-spark .level-100::after {
  width: 100% !important;
}

#desk .radar-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.78fr) !important;
  grid-template-areas:
    "main decision"
    "main quality"
    "actionable why"
    "positive negative"
    "watch coverage"
    "noise effectiveness" !important;
}

#desk .radar-panel-main {
  grid-area: main !important;
}

#desk .radar-panel-actionable {
  grid-area: actionable !important;
}

#desk .radar-panel-decision {
  grid-area: decision !important;
}

#desk .radar-panel-why {
  grid-area: why !important;
}

#desk .radar-panel-noise {
  grid-area: noise !important;
}

#desk .radar-panel-quality {
  grid-area: quality !important;
}

#desk .radar-panel-watch {
  grid-area: watch !important;
}

#desk .radar-panel-coverage {
  grid-area: coverage !important;
}

#desk .radar-panel-positive {
  grid-area: positive !important;
}

#desk .radar-panel-negative {
  grid-area: negative !important;
}

#desk .radar-panel-effectiveness {
  grid-area: effectiveness !important;
}

body:not(.public-demo-open) #desk .workflow-strip {
  display: grid !important;
}

body:not(.public-demo-open) #desk .ai-insight-panel {
  display: block !important;
}

body:not(.public-demo-open) #desk .radar-panel-effectiveness,
body:not(.public-demo-open) #desk .radar-panel-watch,
body:not(.public-demo-open) #desk .radar-panel-coverage,
body:not(.public-demo-open) #desk .radar-panel-positive,
body:not(.public-demo-open) #desk .radar-panel-negative {
  display: block !important;
}

@media (max-width: 1500px) {
  #desk > .professional-desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #desk .radar-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "actionable"
      "decision"
      "quality"
      "why"
      "positive"
      "negative"
      "watch"
      "coverage"
      "noise"
      "effectiveness" !important;
  }
}

@media (max-width: 820px) {
  #desk > .professional-desk-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  #desk > .professional-desk-grid {
    grid-template-columns: 1fr !important;
  }
}
.auth-user-button {
  width: auto !important;
  min-height: 34px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  padding: 4px 2px !important;
  background: transparent !important;
  color: var(--pro-muted, #aab8c9) !important;
  box-shadow: none !important;
}

.auth-user-button:not(:disabled):hover,
.auth-user-button:not(:disabled):focus-visible {
  border-bottom-color: var(--pro-teal, #1fd79a) !important;
  color: var(--pro-text, #ffffff) !important;
}

.auth-user-button:disabled {
  cursor: default !important;
  opacity: 0.72 !important;
}

.workspace-subnav {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  margin: -8px 0 12px !important;
  padding: 6px !important;
  border: 1px solid var(--pro-line, #28343d) !important;
  border-radius: 5px !important;
  background: #0b1115 !important;
  scrollbar-width: thin !important;
}

.workspace-subnav[hidden],
.workspace-subtab[hidden] {
  display: none !important;
}

.workspace-subtab {
  flex: 0 0 auto !important;
  min-height: 32px !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  padding: 6px 11px !important;
  background: transparent !important;
  color: var(--pro-muted, #91a1aa) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.workspace-subtab:hover {
  border-color: var(--pro-line, #28343d) !important;
  color: var(--pro-text, #f2f6f8) !important;
}

.workspace-subtab.active {
  border-color: rgba(31, 215, 154, 0.52) !important;
  background: rgba(31, 215, 154, 0.12) !important;
  color: #a8f5dc !important;
}

@media (max-width: 760px) {
  .workspace-subnav {
    margin-top: -5px !important;
  }

  .workspace-subtab {
    min-height: 38px !important;
  }
}

/* Radar main panel sizing fix. Keep this after every legacy desk rule. */
#desk .radar-grid {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr) !important;
  grid-template-areas:
    "main watch"
    "main diagnostics"
    "market market" !important;
  gap: 12px !important;
  align-items: start !important;
}

#desk .radar-grid > .panel {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
}

#desk .radar-panel-main {
  grid-area: main !important;
}

#desk .radar-panel-watch {
  grid-area: watch !important;
}

#desk .radar-panel-market {
  grid-area: market !important;
}

#desk .radar-panel-diagnostics {
  grid-area: diagnostics !important;
}

#desk .radar-panel-main > .section-title,
#desk .radar-panel-main > .compact-title {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

#radarBestList {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  overflow-x: hidden !important;
}

#radarBestList > .signal-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#desk .radar-panel-main .signal-main {
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(58px, 72px) minmax(0, 1fr) !important;
}

#desk .radar-panel-main .signal-main > *,
#desk .radar-panel-main .forecast-horizon-block,
#desk .radar-panel-main .prediction-watch-horizons,
#desk .radar-panel-main .mini-chart {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1280px) {
  #desk .radar-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "watch"
      "market"
      "diagnostics" !important;
  }
}

@media (max-width: 620px) {
  #desk .radar-panel-main .signal-main {
    grid-template-columns: 1fr !important;
  }

  #desk .radar-panel-main .opportunity-score {
    width: 58px !important;
  }
}

/* Public demo navigation: show every client workspace and lock Pro content. */
body.public-demo-open:not(.is-authenticated) nav.tabs .tab {
  display: inline-flex !important;
}

body.public-demo-open:not(.is-authenticated) nav.tabs .tab[data-tab="desk"]::after {
  content: "Demo" !important;
}

body.public-demo-open:not(.is-authenticated) nav.tabs .tab:not([data-tab="desk"]):not([data-tab="client"])::after {
  content: "Locked" !important;
  min-width: 42px !important;
  border-color: rgba(250, 204, 21, 0.62) !important;
  background: rgba(250, 204, 21, 0.12) !important;
  color: #ffe082 !important;
}

body.public-demo-open:not(.is-authenticated) .workspace-subtab:not([data-tab="desk"])::after {
  content: "Locked";
  margin-left: 7px;
  color: #ffe082;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.tab-page.demo-locked.active {
  position: relative !important;
  min-height: 520px !important;
  display: block !important;
  overflow: hidden !important;
}

.tab-page.demo-locked.active > :not(.demo-lock-gate) {
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.18 !important;
  filter: blur(3px) !important;
}

body.public-demo-open:not(.is-authenticated) .tab-page.demo-locked.active::before {
  display: none !important;
  content: none !important;
}

.demo-lock-gate {
  position: absolute !important;
  top: 34px !important;
  left: 50% !important;
  z-index: 30 !important;
  width: min(560px, calc(100% - 32px)) !important;
  display: grid !important;
  justify-items: start !important;
  gap: 12px !important;
  padding: 26px !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(250, 204, 21, 0.48) !important;
  border-left: 4px solid #facc15 !important;
  border-radius: 6px !important;
  background: #11171c !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5) !important;
}

.demo-lock-label {
  color: #facc15 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.demo-lock-gate h2,
.demo-lock-gate p,
.demo-lock-gate small {
  margin: 0 !important;
}

.demo-lock-gate h2 {
  font-size: 22px !important;
}

.demo-lock-gate p {
  color: var(--pro-text-soft, #c7d0d5) !important;
  line-height: 1.55 !important;
}

.demo-lock-gate small {
  color: var(--pro-muted, #91a1aa) !important;
  line-height: 1.45 !important;
}

.demo-lock-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (max-width: 620px) {
  .tab-page.demo-locked.active {
    min-height: 440px !important;
  }

  .demo-lock-gate {
    top: 18px !important;
    padding: 20px !important;
  }

  .demo-lock-actions,
  .demo-lock-actions button {
    width: 100% !important;
  }
}
