:root {
  color-scheme: light;
  --bg: #eef3f1;
  --bg-soft: #f8fbfa;
  --surface: #ffffff;
  --surface-soft: #f1f7f5;
  --ink: #16241f;
  --muted: #61726d;
  --line: #d9e5e0;
  --line-soft: #e8efec;
  --sidebar: #12332d;
  --sidebar-soft: #1b463e;
  --accent: #0d8f7a;
  --accent-strong: #06675d;
  --accent-soft: #dff4ee;
  --accent-glow: rgba(13, 143, 122, 0.18);
  --gold: #b98222;
  --danger: #b63f43;
  --warning: #ad741f;
  --good: #177a52;
  --term-bull: #15803d;
  --term-bear: #c62828;
  --term-neutral: #a16207;
  --shadow-sm: 0 8px 24px rgba(15, 43, 37, 0.06);
  --shadow: 0 16px 40px rgba(15, 43, 37, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* FLOX Radar: probability/pattern research panel, deliberately distinct from trade calls. */
.flox-radar-panel { border-color: rgba(246, 161, 33, .42); }
.flox-note { border-inline-start: 3px solid #f6a121; }
.flox-score { display: inline-flex; min-width: 42px; justify-content: center; padding: 3px 7px; border-radius: 999px; font-weight: 800; background: #edf2f0; color: #25443b; }
.flox-score--high { background: #fff0d5; color: #914d00; }
.flox-score--insufficient { background: #f0f2f4; color: #68727a; font-size: .82em; }
.flox-phase { white-space: nowrap; font-size: .88em; }
.flox-reasons, .flox-risks { max-width: 270px; font-size: .86em; line-height: 1.55; }
.flox-secondary-source { display: inline-block; margin-top: 3px; color: #a15d00; font-size: .78em; font-style: normal; font-weight: 850; }

/* Sector Intelligence: ranks only shares from the active EGX or US market. */
.sector-intelligence-panel { border-color: rgba(13, 143, 122, .3); background: linear-gradient(135deg, #fff 0%, #f3faf7 100%); }
.sector-intelligence-panel > .panel__header > div:first-child { min-width: 0; flex: 1 1 auto; }
.sector-intelligence-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.sector-intelligence-controls select { display: block; flex: 1 1 200px; width: auto; max-width: 260px; min-width: 0; min-height: 38px; border: 1px solid #b9d9cf; border-radius: 10px; background: #fff; color: var(--ink); padding: 7px 11px; font: inherit; font-weight: 750; outline: none; }
.sector-intelligence-controls select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 143, 122, .12); }
.sector-intelligence-controls .primary-btn { flex: 0 0 auto; white-space: nowrap; }
.sector-intelligence-controls .panel-fullscreen-btn { flex: 0 0 auto; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sector-intelligence-note { margin: 0 16px; padding: 9px 12px; border-radius: 10px; background: #e6f5ef; color: #245248; font-size: 12px; font-weight: 750; line-height: 1.65; }
.sector-top-five-grid { display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr)); gap: 12px; overflow-x: auto; padding: 16px; scroll-snap-type: x proximity; }
.sector-stock-card { display: grid; align-content: start; min-width: 220px; border: 1px solid #d7e7e1; border-radius: 15px; background: #fff; box-shadow: 0 10px 25px rgba(13, 61, 50, .07); overflow: hidden; scroll-snap-align: start; }
.sector-stock-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px; border-bottom: 1px solid #e5efeb; }
.sector-stock-card header > div { min-width: 0; }
.sector-stock-card header strong { display: block; color: #123d35; font-size: 15px; }
.sector-stock-card header small { display: block; overflow: hidden; color: #637872; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sector-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: #0d8f7a; color: #fff; font-size: 12px; font-weight: 900; }
.sector-stock-state { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 37px; padding: 8px 12px; background: #f7fbf9; }
.sector-stock-state > b { color: #206251; font-size: 10px; line-height: 1.25; text-align: left; }
.sector-stock-metrics, .sector-stock-flox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 11px 12px 0; border: 1px solid #e3eeea; border-radius: 9px; overflow: hidden; background: #e3eeea; }
.sector-stock-metrics span, .sector-stock-flox span { min-width: 0; padding: 7px 5px; background: #fbfdfc; text-align: center; }
.sector-stock-metrics small { display: block; color: #72847f; font-size: 9px; font-weight: 750; }
.sector-stock-metrics strong { display: block; margin-top: 2px; color: #173d35; font-size: 11px; }
.sector-stock-flox { margin-top: 7px; }
.sector-stock-flox span { color: #618078; font-size: 9px; font-weight: 750; }
.sector-stock-flox b { display: block; margin-top: 2px; color: #0d7868; font-size: 11px; }
.sector-stock-forecast, .sector-stock-analysis { margin: 10px 12px 0; color: #34564d; font-size: 11px; font-weight: 700; line-height: 1.65; }
.sector-stock-forecast { padding: 8px; border-radius: 8px; background: #eaf7f2; color: #176957; }
.sector-stock-analysis { min-height: 72px; color: #526963; }
.sector-stock-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 11px; padding: 10px 12px; border-top: 1px solid #e7f0ed; }
.sector-stock-card footer > span { color: #6c817a; font-size: 9px; font-weight: 750; }
.sector-stock-card footer button { border: 0; border-radius: 7px; background: #0d8f7a; color: #fff; padding: 6px 8px; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.sector-stock-card footer button:hover { background: #087163; }
.sector-list-empty { display: grid; gap: 7px; place-items: center; min-height: 126px; grid-column: 1 / -1; border: 1px dashed #c7ddd5; border-radius: 13px; color: #637a72; text-align: center; font-size: 13px; font-weight: 750; }
.sector-list-empty strong { color: #254d43; }
.sector-list-empty small { max-width: 700px; padding: 0 16px; line-height: 1.6; }
@media (max-width: 760px) { .sector-intelligence-controls { width: 100%; min-width: 0; flex-wrap: wrap; } .sector-intelligence-controls select { flex-basis: 100%; width: 100%; } .sector-intelligence-controls button { flex: 1; } .sector-intelligence-note { margin: 0 11px; } .sector-top-five-grid { grid-template-columns: repeat(5, minmax(248px, 1fr)); padding: 11px; } }

/* Per-stock FLOX Intelligence — placed after daily session intelligence. */
.stock-flox-intelligence { margin: 18px 0 22px; }
.stock-flox-shell { overflow: hidden; border: 1px solid rgba(24, 142, 122, .28); border-radius: 20px; background: radial-gradient(circle at 7% 0%, rgba(30, 175, 144, .18), transparent 28%), linear-gradient(135deg, #0d302d 0%, #123d38 48%, #174e47 100%); box-shadow: 0 22px 44px rgba(8, 53, 45, .14); color: #ecfffa; }
.stock-flox-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 24px 17px; border-bottom: 1px solid rgba(215, 255, 242, .16); }
.stock-flox-brand { display: flex; align-items: center; gap: 13px; }
.stock-flox-orb, .stock-flox-loading-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #9ff7df, #38bea0); color: #073b31; font-size: 22px; font-weight: 900; box-shadow: 0 0 0 7px rgba(151, 247, 222, .11); }
.stock-flox-brand > div > span, .stock-flox-card-title span, .stock-flox-head-meta small, .stock-flox-score-card span, .stock-flox-ignition span { display: block; color: #a8d9cb; font-size: .75rem; font-weight: 800; letter-spacing: .03em; }
.stock-flox-brand h2 { margin: 3px 0 0; color: #fff; font-size: 1.35rem; }
.stock-flox-brand h2 small { color: #bde5d9; font-size: .78rem; font-weight: 500; }
.stock-flox-head-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; text-align: left; }
.stock-flox-phase { border: 1px solid rgba(173, 250, 222, .45); border-radius: 999px; padding: 6px 10px; color: #c8ffec; background: rgba(8, 42, 35, .36); font-size: .75rem; letter-spacing: .04em; }
.stock-flox-head .ghost-btn { border-color: rgba(208, 255, 239, .35); color: #ecfffa; background: rgba(255, 255, 255, .08); }
.stock-flox-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(211, 255, 240, .12); border-bottom: 1px solid rgba(211, 255, 240, .12); }
.stock-flox-score-card, .stock-flox-ignition { position: relative; min-height: 116px; padding: 18px 20px; overflow: hidden; background: rgba(6, 42, 35, .38); }
.stock-flox-score-card strong, .stock-flox-ignition strong { display: block; margin-top: 4px; color: #fff; font-size: 2rem; line-height: 1; }
.stock-flox-score-card strong small { font-size: .75rem; color: #9bdccc; }
.stock-flox-score-card i { display: block; width: 100%; height: 5px; margin-top: 17px; border-radius: 99px; background: linear-gradient(90deg, #63e0be var(--flox-progress), rgba(212, 255, 243, .14) var(--flox-progress)); }
.stock-flox-score-card--risk i { background: linear-gradient(90deg, #ffad78 var(--flox-progress), rgba(212, 255, 243, .14) var(--flox-progress)); }
.stock-flox-score-card--quality i { background: linear-gradient(90deg, #78c9ff var(--flox-progress), rgba(212, 255, 243, .14) var(--flox-progress)); }
.stock-flox-ignition { background: linear-gradient(135deg, rgba(38, 128, 109, .72), rgba(10, 56, 48, .62)); }
.stock-flox-ignition small { display: block; margin-top: 9px; color: #bce6da; font-size: .7rem; }
.stock-flox-main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .8fr); gap: 14px; padding: 16px 18px 12px; }
.stock-flox-distribution-card, .stock-flox-radar-card, .stock-flox-evidence-grid > article { border: 1px solid rgba(207, 255, 239, .15); border-radius: 15px; background: rgba(4, 34, 29, .42); }
.stock-flox-distribution-card { padding: 15px 17px 10px; }
.stock-flox-radar-card { padding: 15px 10px 7px; }
.stock-flox-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stock-flox-card-title strong { display: block; margin-top: 2px; color: #fff; font-size: .97rem; }
.stock-flox-card-title > small { max-width: 280px; color: #b7e5d8; font-size: .7rem; line-height: 1.55; text-align: left; }
.stock-flox-distribution-svg { display: block; width: 100%; min-height: 210px; margin-top: 7px; overflow: visible; }
.flox-zero-line { stroke: rgba(219, 255, 243, .34); stroke-dasharray: 4 4; }
.flox-distribution-band { fill: rgba(99, 224, 190, .18); stroke: none; }
.flox-distribution-mid { fill: none; stroke: #a2ffe0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flox-distribution-point circle { fill: #fff; stroke: #55d8b5; stroke-width: 3; }
.flox-distribution-point text { fill: #b9e7d9; font-size: 12px; font-family: inherit; }
.stock-flox-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 2px 5px 9px; color: #badfd5; font-size: .72rem; }
.stock-flox-legend i, .stock-flox-legend b { display: inline-block; width: 11px; height: 11px; margin-left: 5px; border-radius: 3px; vertical-align: -1px; background: rgba(99, 224, 190, .35); }
.stock-flox-legend b { width: 16px; height: 3px; border-radius: 9px; background: #a2ffe0; }
.stock-flox-radar-svg { display: block; width: 100%; max-width: 280px; height: 273px; margin: -3px auto 0; overflow: visible; }
.stock-flox-radar-svg line { stroke: rgba(214, 255, 241, .18); }
.flox-radar-ring { fill: none; stroke: rgba(214, 255, 241, .2); stroke-width: 1; }
.flox-radar-area { fill: rgba(97, 227, 189, .3); stroke: #9bffe0; stroke-width: 2; }
.stock-flox-radar-svg text { fill: #bde6da; font: 9px "Segoe UI", Tahoma, sans-serif; }
.stock-flox-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 18px 15px; }
.stock-flox-evidence-grid > article { padding: 15px 17px; }
.stock-flox-evidence-list { list-style: none; padding: 0; margin: 12px 0 0; }
.stock-flox-evidence-list li { display: flex; align-items: center; gap: 9px; min-height: 28px; color: #ddf9f0; font-size: .8rem; border-top: 1px solid rgba(215, 255, 242, .1); }
.stock-flox-evidence-list li:first-child { border-top: 0; }
.stock-flox-evidence-list i { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-weight: 900; }
.stock-flox-evidence-list--positive i { background: rgba(84, 224, 181, .2); color: #8ff4d2; }
.stock-flox-evidence-list--risk i { background: rgba(255, 165, 113, .18); color: #ffc19b; }
.stock-flox-evidence-list span { flex: 1; }
.stock-flox-evidence-list b { color: #a7e6d2; font-size: .75rem; }
.stock-flox-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 20px; border-top: 1px solid rgba(215, 255, 242, .13); color: #9dcfc1; background: rgba(2, 26, 22, .38); font-size: .7rem; direction: ltr; }
.stock-flox-shell--loading { display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 22px 24px; }
.stock-flox-shell--loading > div:nth-child(2) { flex: 1; }
.stock-flox-shell--loading span { display: block; color: #97d9c7; font-size: .78rem; font-weight: 800; }
.stock-flox-shell--loading strong { display: block; margin-top: 3px; color: white; }
.stock-flox-shell--loading p { margin: 6px 0 0; color: #c1e8dc; font-size: .82rem; }
.stock-flox-loader { width: 25px; height: 25px; border: 3px solid rgba(191, 247, 229, .24); border-top-color: #a1ffe0; border-radius: 50%; animation: stock-flox-spin .85s linear infinite; }
.stock-flox-chart-empty { display: grid; place-items: center; min-height: 190px; color: #b7dbd1; font-size: .84rem; }
@keyframes stock-flox-spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .stock-flox-overview { grid-template-columns: repeat(2, 1fr); } .stock-flox-main-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .stock-flox-intelligence { margin: 13px 0 16px; } .stock-flox-head { align-items: flex-start; flex-direction: column; padding: 17px; } .stock-flox-head-meta { justify-content: flex-start; text-align: right; } .stock-flox-overview { grid-template-columns: 1fr 1fr; } .stock-flox-score-card, .stock-flox-ignition { min-height: 99px; padding: 15px; } .stock-flox-score-card strong, .stock-flox-ignition strong { font-size: 1.55rem; } .stock-flox-main-grid, .stock-flox-evidence-grid { padding-right: 11px; padding-left: 11px; } .stock-flox-evidence-grid { grid-template-columns: 1fr; gap: 10px; } .stock-flox-brand h2 { font-size: 1.07rem; } .stock-flox-footer { gap: 6px 12px; padding: 10px 13px; } }

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fbfdfc 0%, var(--bg) 54%, #e9f0ed 100%);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
}

h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 5px 12px;
  font-weight: 800;
}

.status-pill.is-live {
  background: rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.stock-trial-counter {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(12, 150, 144, 0.18);
  background: rgba(229, 249, 247, 0.86);
  color: #006f69;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stock-trial-counter.is-exhausted {
  border-color: rgba(188, 59, 54, 0.25);
  background: rgba(188, 59, 54, 0.12);
  color: var(--danger);
}

.stock-trial-counter.is-subscribed {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.subscription-manage-btn {
  display: none !important;
}

.subscription-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(188, 59, 54, 0.28);
  border-radius: 999px;
  background: rgba(188, 59, 54, 0.08);
  color: var(--danger);
  padding: 5px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.subscription-logout-btn[hidden] {
  display: none !important;
}

.subscription-logout-btn:hover {
  background: rgba(188, 59, 54, 0.14);
}

.subscription-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: #eef3f0;
  color: #526158;
  padding: 5px 12px;
  font-weight: 900;
  font-size: 12px;
}

.subscription-badge.active,
.subscription-badge.owner,
.subscription-badge.trial,
.subscription-badge.guest_trial {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.subscription-badge.grace {
  background: rgba(196, 122, 29, 0.14);
  color: #8a560f;
}

.subscription-badge.locked,
.subscription-badge.expired,
.subscription-badge.suspended,
.subscription-badge.blocked {
  background: rgba(188, 59, 54, 0.12);
  color: var(--danger);
}

.subscription-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 58px);
  background:
    radial-gradient(circle at 50% 48%, rgba(5, 151, 141, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(0, 20, 27, 0.56), rgba(0, 42, 48, 0.22) 48%, rgba(0, 18, 23, 0.66)),
    url("assets/login-trading-bg.png") center / cover no-repeat;
  overflow: auto;
}

.subscription-gate[hidden] {
  display: none;
}

.subscription-card {
  width: min(640px, 92vw);
  min-height: auto;
  border: 1px solid rgba(191, 225, 221, 0.88);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 128, 126, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 252, 0.96));
  box-shadow:
    0 32px 80px rgba(0, 18, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  padding: clamp(28px, 3.4vw, 48px) clamp(28px, 4vw, 54px) 30px;
  color: #0a252b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2vw, 26px);
}

.subscription-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.subscription-brand strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  margin: 0;
  padding: 4px 22px 8px;
  border: 1px solid rgba(8, 125, 120, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(229, 249, 247, 0.86), rgba(255, 255, 255, 0.5));
  color: #006f69;
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(0, 111, 105, 0.08);
  transform: translateY(5px);
}

.subscription-logo {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  width: 82px;
  height: 58px;
  margin: 0;
  vertical-align: middle;
}

.subscription-logo::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 14px;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b48932, #efc46c);
  transform: rotate(-32deg);
  transform-origin: right center;
}

.subscription-logo::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 18px;
  height: 18px;
  border-left: 7px solid #e9c26c;
  border-top: 7px solid #e9c26c;
  transform: rotate(45deg);
}

.subscription-logo span {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #0aa39b, #08726e);
  box-shadow: 0 5px 12px rgba(0, 119, 113, 0.22);
}

.subscription-logo span:nth-child(1) { height: 19px; }
.subscription-logo span:nth-child(2) { height: 29px; }
.subscription-logo span:nth-child(3) { height: 40px; }
.subscription-logo span:nth-child(4) { height: 52px; }

.subscription-heading {
  text-align: center;
}

.subscription-card h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  color: #071d24;
}

.subscription-card p {
  color: #59677a;
  line-height: 1.65;
}

.subscription-heading p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 500;
}

.subscription-support-line {
  margin-top: 10px !important;
  padding: 10px 14px;
  border: 1px dashed rgba(8, 125, 120, 0.35);
  border-radius: 12px;
  background: rgba(229, 249, 247, 0.72);
  color: #006f69 !important;
  font-weight: 900 !important;
}

.subscription-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 260px);
  min-height: 44px;
  margin: 10px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.42);
  background: #25d366;
  color: #073f27;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}

.subscription-whatsapp-link span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #0b7c44;
  font-size: 15px;
  line-height: 1;
}

.subscription-whatsapp-link:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.login-field {
  position: relative;
  gap: 8px;
  margin: 14px 0 0;
}

.login-field > span {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: 92px;
  left: auto;
  color: #536276;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: clamp(58px, 5.6vh, 72px);
  border: 1px solid rgba(151, 204, 199, 0.72);
  border-radius: 12px;
  padding: 14px 92px 14px 22px;
  background: rgba(255, 255, 255, 0.72);
  color: #33465b;
  font-size: clamp(16px, 1.15vw, 22px);
  direction: ltr;
  text-align: left;
  box-shadow: inset 0 1px 6px rgba(0, 49, 53, 0.04);
}

.login-field input:focus {
  border-color: #0c9690;
  box-shadow: 0 0 0 4px rgba(12, 150, 144, 0.14);
}

.login-field small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(58px, 5.6vh, 72px);
  height: clamp(58px, 5.6vh, 72px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #dff5f2, #ccebe7);
  color: #09877f;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.subscription-actions {
  display: grid;
  gap: 14px;
}

.subscription-login-btn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(66px, 5.8vw, 86px);
  align-items: stretch;
  width: 100%;
  min-height: clamp(68px, 6.5vh, 84px);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0baaa0, #00626b 68%, #005763);
  color: #fff;
  box-shadow: 0 18px 30px rgba(0, 113, 113, 0.24);
  cursor: pointer;
}

.subscription-login-btn span {
  display: grid;
  place-items: center;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 900;
  pointer-events: none;
}

.subscription-login-btn small {
  display: grid;
  place-items: center;
  height: 100%;
  background: rgba(0, 61, 70, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 30px;
  pointer-events: none;
}

.subscription-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(0, 113, 113, 0.3);
}

.subscription-text-btn {
  border: 0;
  background: transparent;
  color: #0b7772;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  justify-self: center;
  padding: 0 8px;
}

.subscription-text-btn + .subscription-text-btn {
  margin-top: -10px;
}

.primary-btn.full {
  width: 100%;
}

.subscription-status {
  margin: 0;
  min-height: clamp(58px, 5.8vh, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(217, 246, 243, 0.92), rgba(229, 249, 247, 0.78));
  color: #006f69;
  padding: 12px 20px;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.subscription-status span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #d1f0ec;
  color: #079188;
}

.subscription-status.bad {
  background: rgba(188, 59, 54, 0.12);
  color: var(--danger);
}

.subscription-status.pending {
  background: rgba(196, 122, 29, 0.14);
  color: #8a560f;
}

.subscription-status.bad span,
.subscription-status.pending span {
  background: rgba(255, 255, 255, 0.48);
  color: currentColor;
}

body.subscription-locked .shell,
body.subscription-locked .topbar {
  display: none;
}

.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(8, 38, 34, 0.82), rgba(12, 72, 61, 0.48)),
    url("assets/login-trading-bg.png") center / cover no-repeat;
  color: #ffffff;
  direction: ltr;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(4, 18, 17, 0.22);
}

.home-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.home-panel {
  display: grid;
  width: min(100%, 980px);
  gap: 28px;
}

.home-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  direction: rtl;
}

.home-logo-mark {
  display: grid;
  grid-template-columns: repeat(4, 10px);
  align-items: end;
  justify-content: center;
  gap: 6px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.home-logo-mark span {
  display: block;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe3a3, #10b899);
}

.home-logo-mark span:nth-child(1) { height: 24px; }
.home-logo-mark span:nth-child(2) { height: 39px; }
.home-logo-mark span:nth-child(3) { height: 55px; }
.home-logo-mark span:nth-child(4) { height: 70px; }

.home-brand strong {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 24px);
  min-width: 0;
}

.home-tile {
  display: grid;
  min-width: 0;
  min-height: clamp(210px, 28vw, 300px);
  align-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #112d27;
  padding: clamp(20px, 4vw, 38px);
  text-align: center;
  text-decoration: none;
  direction: rtl;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 222, 151, 0.92);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
}

.home-tile-icon {
  display: grid;
  width: clamp(86px, 14vw, 124px);
  height: clamp(86px, 14vw, 124px);
  place-items: center;
  border-radius: 24px;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 950;
  line-height: 1;
}

.home-tile--stocks .home-tile-icon {
  background: linear-gradient(135deg, #0b7c68, #20c29e);
  color: #ffffff;
}

.home-tile--metals .home-tile-icon {
  background: linear-gradient(135deg, #b77a18, #f4d779);
  color: #4f3706;
}

.home-tile strong {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .home-shell {
    align-items: start;
    padding: 28px 14px;
  }

  .home-panel {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    gap: 22px;
  }

  .home-logo-mark {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    justify-items: center;
    margin-inline: calc(50% - 50vw);
    padding-inline: 26px;
  }

  .home-tile {
    min-height: 170px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 12px;
    justify-self: center;
    width: min(328px, calc(100vw - 52px));
    max-width: 328px;
    margin: 0 auto;
    text-align: center;
  }

  .home-tile-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 24px;
  }

  .home-tile strong {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 599px) {
  .home-grid {
    transform: translateX(clamp(-52px, -12vw, -34px));
  }
}

@media (max-width: 1180px) {
  .subscription-gate {
    justify-content: center;
    padding: 28px;
  }

  .subscription-card {
    width: min(760px, 100%);
  }
}

@media (max-width: 720px) {
  .subscription-gate {
    align-items: stretch;
    padding: 14px;
    background:
      linear-gradient(180deg, rgba(0, 24, 29, 0.5), rgba(0, 35, 38, 0.18)),
      url("assets/login-trading-bg.png") center / cover no-repeat;
  }

  .subscription-card {
    width: 100%;
    min-height: auto;
    max-height: none;
    border-radius: 20px;
    padding: 24px 18px 20px;
    gap: 18px;
  }

  .subscription-logo {
    width: 70px;
    height: 50px;
    gap: 5px;
    margin-left: 8px;
  }

  .subscription-logo span {
    width: 11px;
  }

  .subscription-logo span:nth-child(1) { height: 16px; }
  .subscription-logo span:nth-child(2) { height: 25px; }
  .subscription-logo span:nth-child(3) { height: 34px; }
  .subscription-logo span:nth-child(4) { height: 44px; }

  .login-field > span {
    position: static;
    display: block;
    margin: 0 6px 6px 0;
    font-size: 14px;
  }

  .login-field {
    margin-top: 0;
  }

  .login-field input {
    min-height: 54px;
    padding-right: 70px;
    font-size: 15px;
  }

  .login-field small {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .subscription-login-btn {
    min-height: 60px;
    grid-template-columns: 1fr 58px;
  }

  .subscription-status {
    min-height: 54px;
    font-size: 15px;
  }
}

.shell {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(14px, 2vw, 26px) 30px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #123830 0%, var(--sidebar) 100%);
  box-shadow: var(--shadow-sm);
}

.sidebar-brand {
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.sidebar-brand strong {
  display: block;
  font-size: 18px;
}

.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: #a8c8bf;
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-nav-btn {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.sidebar-nav-btn:hover,
.sidebar-nav-btn:focus-visible,
.sidebar-nav-btn.is-active {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.sidebar-nav-btn strong {
  color: #f3fbf8;
  font-size: 13px;
  font-weight: 900;
}

.stock-lists-icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.stock-lists-icon i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  opacity: .95;
}

.stock-lists-icon i:first-child {
  grid-row: span 2;
  height: 19px;
}

.stock-lists-tab {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.stock-lists-tab__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #b5d8ce;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef9f5 0%, #ffffff 100%);
  box-shadow: 0 4px 15px rgba(13, 61, 50, 0.06);
  box-sizing: border-box;
}

.stock-lists-tab__header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.stock-lists-tab__header span {
  display: inline-block;
  color: #0d8f7a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.stock-lists-tab__header strong {
  display: block;
  margin-top: 2px;
  color: #0b3d33;
  font-size: 20px;
  font-weight: 900;
}

.stock-lists-tab__header small {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: #637a73;
  font-size: 12px;
  font-weight: 700;
}

.stock-lists-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #0d8f7a;
  border-radius: 10px;
  background: #0d8f7a;
  color: #ffffff !important;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 143, 122, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stock-lists-back-btn:hover {
  background: #086b5b;
  border-color: #086b5b;
  transform: translateY(-1px);
}

.stock-lists-back-btn span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
}

.stock-lists-back-btn strong {
  color: #fff !important;
  font-size: inherit;
}

.stock-lists-tab .panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 1px solid #c7e5dc !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(13, 61, 50, 0.05) !important;
  padding: 0 0 16px 0 !important;
}

.stock-lists-tab .panel__header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  margin: 0 0 12px 0 !important;
  background: linear-gradient(135deg, #f7fbf9 0%, #eef7f4 100%) !important;
  border-bottom: 1px solid #d4ebe4 !important;
  box-sizing: border-box !important;
}

.stock-lists-tab .panel__header > div:first-child {
  min-width: 0;
  flex: 1 1 260px;
}

.stock-lists-tab .panel__header h2 {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #0b3d33 !important;
  margin: 0 0 4px 0 !important;
}

.stock-lists-tab .panel__header p {
  font-size: 12.5px !important;
  color: #55726a !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.stock-lists-tab .live-controls,
.stock-lists-tab .compact-controls,
.stock-lists-tab .sector-intelligence-controls {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.stock-lists-tab .primary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  border: 1px solid #0d8f7a !important;
  border-radius: 8px !important;
  background: #0d8f7a !important;
  color: #ffffff !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(13, 143, 122, 0.22) !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.stock-lists-tab .primary-btn:hover {
  background: #087564 !important;
  border-color: #087564 !important;
  transform: translateY(-1px) !important;
}

.stock-lists-tab .panel-fullscreen-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border: 1px solid #9dc7bc !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0d7060 !important;
  font: inherit !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
}

.stock-lists-tab .panel-fullscreen-btn:hover {
  background: #e3f5ee !important;
  border-color: #0d8f7a !important;
  color: #064b40 !important;
}

.stock-lists-tab select {
  min-height: 38px !important;
  max-width: 260px !important;
  border: 1px solid #a8d5c9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #123d34 !important;
  padding: 7px 12px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  outline: none !important;
}

.stock-lists-tab select:focus {
  border-color: #0d8f7a !important;
  box-shadow: 0 0 0 3px rgba(13, 143, 122, 0.15) !important;
}

.stock-lists-tab .live-note,
.stock-lists-tab .sector-intelligence-note {
  margin: 0 16px 12px 16px !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.6 !important;
  box-sizing: border-box !important;
}

.stock-lists-tab .table-wrap {
  width: calc(100% - 32px) !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 16px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  border: 1px solid #d4ebe4 !important;
  border-radius: 8px !important;
}

.stock-lists-tab .sector-top-five-grid {
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .stock-lists-tab .table-wrap {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 10px !important;
  }
  .stock-lists-tab .panel__header {
    padding: 12px 10px !important;
  }
  .stock-lists-tab .live-note,
  .stock-lists-tab .sector-intelligence-note {
    margin: 0 10px 10px 10px !important;
  }
  .stock-lists-tab select {
    max-width: 100% !important;
    width: 100% !important;
  }
  .stock-lists-tab .live-controls,
  .stock-lists-tab .sector-intelligence-controls {
    width: 100% !important;
    justify-content: stretch !important;
  }
  .stock-lists-tab .primary-btn,
  .stock-lists-tab .panel-fullscreen-btn {
    flex: 1 1 auto !important;
  }
}

@media (min-width: 769px) {
  body.tenant-app:not(.stock-lists-mode) #stockListsTab {
    display: none !important;
  }

  body.tenant-app.stock-lists-mode #stockWorkspace > :not(#stockListsTab) {
    display: none !important;
  }

  body.tenant-app.stock-lists-mode #stockListsTab {
    display: grid;
  }
}

.workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.panel,
.kpi-card,
.chart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 16px;
}

body.tenant-app .sidebar .panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.tenant-app .sidebar .panel__header h2,
body.tenant-app .sidebar .field > span,
body.tenant-app .sidebar label > span {
  color: #eff8f5;
}

body.tenant-app .sidebar .helper-text,
body.tenant-app .sidebar .manual-import summary,
body.tenant-app .sidebar .panel__header a,
body.tenant-app .sidebar .panel__header span {
  color: #b8d4cb;
}

body.tenant-app .sidebar input,
body.tenant-app .sidebar select,
body.tenant-app .sidebar textarea {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

body.tenant-app .sidebar .secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.tenant-app .sidebar .ghost-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.tenant-app .sidebar .file-drop {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #dcebe6;
}

body.tenant-app .sidebar .manual-import {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.panel__header h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.workspace > .panel > .panel__header h2,
.workspace .chart-panel .panel__header h2 {
  color: var(--accent-strong);
}

.panel__header a,
.panel__header span {
  color: var(--muted);
  font-size: 12px;
}

.panel-fullscreen-btn {
  min-height: 32px;
  border: 1px solid #a9cfc6;
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.panel-fullscreen-btn:hover {
  background: var(--accent-soft);
}

body.panel-fullscreen-open {
  overflow: hidden;
}

.panel-fullscreen-active {
  position: fixed !important;
  inset: 10px !important;
  z-index: 1000;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 20px);
  margin: 0 !important;
  padding: 14px !important;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(14, 26, 22, 0.28);
  overflow: auto;
}

.panel-fullscreen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(18, 31, 27, 0.28);
}

.panel-fullscreen-active > .panel__header {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: -14px -14px 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.panel-fullscreen-active .live-controls,
.panel-fullscreen-active .panel__header > button,
.panel-fullscreen-active .panel__header .primary-btn,
.panel-fullscreen-active .panel__header .secondary-btn {
  position: relative;
  z-index: 3;
}

.panel-fullscreen-active .table-wrap {
  flex: 1;
  max-height: none;
  min-height: 0;
}

.panel-fullscreen-active .table-wrap table {
  min-width: max-content;
}

.panel-fullscreen-active .forecast-svg {
  min-height: calc(100vh - 230px);
}

.panel-fullscreen-active.forecast-chart-card {
  overflow: auto;
}

.panel-fullscreen-active.forecast-chart-card .forecast-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: -14px -14px 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.panel-fullscreen-active .chart-canvas,
.panel-fullscreen-active .chart-canvas svg {
  min-height: calc(100vh - 170px);
  height: calc(100vh - 170px);
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field,
.file-drop,
.check-field {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inline-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.file-drop {
  min-height: 76px;
  padding: 13px;
  border: 1px dashed #b7c7bf;
  border-radius: 8px;
  background: var(--surface-soft);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 82px;
}

.sidebar textarea {
  min-height: 76px;
  max-height: 128px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8ec9bd;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 24px rgba(10, 135, 118, 0.18);
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0b9481 0%, var(--accent-strong) 100%);
}

.secondary-btn {
  color: var(--accent-strong);
  background: #fff;
  border-color: #b8d8cf;
}

.secondary-btn:hover {
  background: var(--accent-soft);
}

.ghost-btn {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.ghost-btn.full {
  width: 100%;
  margin-top: 10px;
}

.secondary-btn.full {
  width: 100%;
  margin-top: 9px;
}

.manual-import {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.manual-import summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-import .file-drop {
  margin-top: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr) minmax(0, 0.62fr) minmax(0, 0.88fr);
  gap: 10px;
}

.stock-hero-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 10px;
  min-width: 0;
}

.stock-identity-card,
.stock-price-card {
  min-height: 118px;
}

.stock-identity-card {
  min-height: 128px;
  padding: 16px 18px;
}

.stock-identity-card strong {
  font-size: clamp(28px, 3.8vw, 38px);
}

.kpi-card--risk {
  min-height: 78px;
  padding: 10px 12px;
}

.kpi-card--risk strong {
  font-size: clamp(18px, 2.1vw, 22px);
}

.kpi-card--risk small {
  font-size: 10px;
  line-height: 1.3;
}

.stock-display-name {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stock-display-name:empty {
  display: none;
}

.stock-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.stock-sector {
  color: #33423a;
  font-size: 12px;
  line-height: 1.4;
}

.stock-trend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.stock-trend-pill.price-up {
  background: rgba(21, 128, 61, 0.16);
  color: var(--term-bull);
}

.stock-trend-pill.price-down {
  background: rgba(198, 40, 40, 0.14);
  color: var(--term-bear);
}

.stock-trend-pill.price-flat {
  background: rgba(161, 98, 7, 0.14);
  color: var(--term-neutral);
}

.stock-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.stock-price-card strong {
  font-variant-numeric: tabular-nums;
}

#topLivePrice,
.stock-live-price {
  color: var(--ink) !important;
}

.stock-price-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 13px;
  font-weight: 800;
}

.price-change-arrow {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  color: currentColor;
}

#topPriceChange.price-up,
#topPriceChange[data-tone="price-up"],
.stock-price-change.price-up,
.stock-price-change[data-tone="price-up"] {
  color: var(--term-bull) !important;
}

#topPriceChange.price-down,
#topPriceChange[data-tone="price-down"],
.stock-price-change.price-down,
.stock-price-change[data-tone="price-down"] {
  color: var(--term-bear) !important;
}

#topPriceChange.price-flat,
#topPriceChange[data-tone="price-flat"],
.stock-price-change.price-flat,
.stock-price-change[data-tone="price-flat"] {
  color: var(--term-neutral) !important;
}

#topScore {
  color: #33423a;
}

.stock-price-card small {
  margin-top: 4px;
  line-height: 1.45;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #5ecfb8);
}

.kpi-card span,
.kpi-card small {
  color: var(--muted);
  font-size: 12px;
}

.kpi-card strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.chart-panel {
  padding: 16px;
}

.chart-header {
  align-items: flex-start;
}

.chart-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 72px);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.segment {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment.is-active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.chart-canvas {
  min-height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfa, var(--surface-soft));
  border: 1px solid var(--line);
}

.chart-canvas svg {
  display: block;
  width: 100%;
  height: 320px;
}

.manual-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

.manual-empty strong {
  display: block;
  color: var(--accent-strong);
  font-size: 20px;
  margin-bottom: 8px;
}

.split-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.table-wrap {
  overflow: auto;
  max-height: 510px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: #f4f7f4;
  color: #526158;
  z-index: 1;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover,
tbody tr.is-selected {
  background: #edf8f5;
}

.score-pill {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.score-pill.warn {
  background: var(--warning);
}

.score-pill.bad {
  background: var(--danger);
}

.score-pill.neutral {
  background: #6f7d75;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.ranking-analyze-btn,
.compact-btn {
  border: 1px solid #a9cfc6;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
}

.ranking-analyze-btn:hover,
.compact-btn:hover {
  background: #eef8f4;
}

.ranking-inline-analysis td {
  background: #fbfefd;
  white-space: normal;
}

.ranking-analysis-box {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d8e7e1;
  border-radius: 8px;
  background: #ffffff;
}

.ranking-analysis-box strong,
.ranking-analysis-box p,
.ranking-analysis-box small {
  margin: 0;
  white-space: normal;
  line-height: 1.7;
}

.ranking-analysis-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ranking-analysis-box span {
  border-radius: 999px;
  background: #eef8f4;
  color: var(--accent-strong);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

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

.recommendation-card {
  display: none;
  margin-bottom: 12px;
  border: 1px solid #a9cfc6;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, #f4fffb, #edf8f5);
  direction: rtl;
  unicode-bidi: plaintext;
  font-variant-numeric: tabular-nums;
}

.recommendation-card.is-visible {
  display: block;
}

.recommendation-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.recommendation-card strong {
  display: block;
  color: var(--accent-strong);
  font-size: 17px;
  line-height: 1.45;
}

.recommendation-card p {
  margin: 8px 0 0;
  color: #33423a;
  font-size: 13px;
  line-height: 1.65;
  direction: rtl;
  unicode-bidi: plaintext;
}

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

.allocation-summary {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #d9e7e1;
  border-radius: 8px;
  background: #fff;
}

.allocation-summary strong,
.allocation-summary small,
.allocation-card span,
.allocation-card strong,
.allocation-card b,
.allocation-card small,
.allocation-empty {
  display: block;
  font-style: normal;
  line-height: 1.45;
}

.allocation-summary strong {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.allocation-summary small,
.allocation-card small,
.allocation-empty {
  color: #415249;
  font-size: 12px;
  font-weight: 800;
}

.allocation-card {
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid #d8e7e1;
  background: #fff;
}

.allocation-card span {
  font-size: 12px;
  font-weight: 900;
}

.allocation-card strong {
  font-size: 24px;
  font-weight: 950;
}

.allocation-card b {
  font-size: 13px;
  font-weight: 900;
}

.allocation-card.add {
  border-color: #12a77d;
  background: #ecfbf5;
}

.allocation-card.add span,
.allocation-card.add strong,
.allocation-card.add b {
  color: #078968;
}

.allocation-card.lighten {
  border-color: #2f83d7;
  background: #eef6ff;
}

.allocation-card.lighten span,
.allocation-card.lighten strong,
.allocation-card.lighten b {
  color: #156fc2;
}

.allocation-card.hold {
  border-color: #a7b1ad;
  background: #f5f7f6;
}

.allocation-card.hold span,
.allocation-card.hold strong,
.allocation-card.hold b {
  color: #66716d;
}

.allocation-empty {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #b9cdc5;
  border-radius: 8px;
  background: #fff;
}

.master-decision-map .allocation-grid,
.dashboard-action-cards .allocation-grid,
.tactical-verdict .allocation-grid,
.dashboard-action-cards .allocation-empty,
.master-decision-map .allocation-empty,
.tactical-verdict .allocation-empty {
  grid-column: 1 / -1;
}

.master-decision-map .allocation-grid,
.dashboard-action-cards .allocation-grid,
.tactical-verdict .allocation-grid {
  grid-template-columns: 1fr;
}

.master-decision-map .allocation-card,
.dashboard-action-cards .allocation-card,
.tactical-verdict .allocation-card {
  min-height: auto;
}

#detailRating {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.trade-plan-box {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 121, 107, 0.18);
  padding-top: 10px;
}

.trade-plan-box strong {
  font-size: 14px;
}

.trade-plan-box p {
  margin-top: 6px;
}

.intraday-flow-card {
  display: none;
  margin: 12px 0;
  border: 1px solid rgba(0, 121, 107, 0.2);
  border-radius: 8px;
  background: #f7fcfa;
  padding: 12px;
}

.intraday-flow-card.is-visible {
  display: block;
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.flow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.flow-controls button,
.flow-controls select {
  min-height: 34px;
  border: 1px solid #b8d4cc;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
}

.flow-controls button {
  padding: 7px 11px;
}

.flow-head span,
.flow-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-head strong,
.flow-grid strong {
  font-size: 16px;
}

.flow-bars {
  display: flex;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eef3f0;
}

.buy-bar {
  background: #17734d;
}

.sell-bar {
  background: var(--danger);
}

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

.flow-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.flow-grid small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.intraday-flow-card p {
  margin: 10px 0 0;
  color: #33423a;
  font-size: 12px;
  line-height: 1.6;
}

.session-fast-swing-card {
  margin: 14px 0;
  border: 1px solid rgba(235, 110, 26, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf6 100%);
  box-shadow: 0 4px 16px rgba(235, 110, 26, 0.08);
  padding: 14px;
  box-sizing: border-box;
}

.session-fast-swing-card[hidden] {
  display: none !important;
}

.fast-swing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.topbar-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.topbar-refresh-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.fast-swing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fast-swing-card-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
}

.fast-swing-card-refresh-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.refresh-action-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.refresh-action-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985) !important;
}

.fast-swing-velocity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.fast-swing-velocity-badge.high {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.fast-swing-velocity-badge.med {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.fast-swing-velocity-badge.low {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.fast-swing-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffe8d6;
  color: #b34700;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.fast-swing-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.fast-swing-metrics-grid div {
  border: 1px solid rgba(235, 110, 26, 0.2);
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
  text-align: center;
}

.fast-swing-metrics-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.fast-swing-metrics-grid strong {
  font-size: 14px;
}

.fast-swing-plan-note {
  margin: 8px 0;
  color: #4a3828;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(255, 235, 214, 0.4);
  padding: 8px;
  border-radius: 6px;
}

.fast-swing-quick-peers {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(235, 110, 26, 0.3);
}

.fast-swing-quick-peers small {
  display: block;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.fast-swing-peers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fast-swing-peer-btn {
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff;
  color: #9a3412;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fast-swing-peer-btn:hover,
.fast-swing-peer-btn.is-active {
  background: #ffedd5;
  border-color: #ea580c;
  color: #7c2d12;
}

.fast-swing-peer-btn small {
  display: inline;
  color: #ea580c;
  font-weight: 700;
}

@media (max-width: 600px) {
  .session-fast-swing-card {
    padding: 10px;
    margin: 10px 0;
  }
  .fast-swing-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .fast-swing-card-header > div:first-child strong {
    font-size: 13px;
    line-height: 1.45;
  }
  .fast-swing-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .fast-swing-metrics-grid div {
    padding: 6px 4px;
  }
  .fast-swing-metrics-grid strong {
    font-size: 13px;
  }
  .fast-swing-peer-btn {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.stocks-monitor-kpi.active { border-color: rgba(4, 151, 111, .55); background: linear-gradient(135deg, #ecfff8, #f7fffd); }
.stocks-monitor-kpi.idle { border-style: dashed; }
.dashboard-monitor-card {
  border: 1px solid #b9d7ce;
  border-radius: 14px;
  padding: 13px;
  background: linear-gradient(145deg, #f8fffc, #effaf6);
  min-width: 0;
}
.dashboard-monitor-card > span { display:block; color:#14765d; font-size:12px; font-weight:900; margin-bottom:7px; }
.dashboard-monitor-card > strong { display:block; color:#143d35; font-size:16px; line-height:1.45; }
.dashboard-monitor-card > small, .dashboard-monitor-card > em { display:block; margin-top:8px; color:#526c64; font-size:11px; line-height:1.55; font-style:normal; }
.dashboard-monitor-card > i { display:block; overflow:hidden; height:7px; margin-top:10px; border-radius:999px; background:#d9ebe4; }
.dashboard-monitor-card > i > em { display:block; height:100%; margin:0; border-radius:inherit; background:linear-gradient(90deg,#0aa675,#0673ba); }
.monitor-active { grid-column: span 2; border-color:#7dcbb5; box-shadow:0 8px 22px rgba(14,124,91,.09); }
.monitor-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.monitor-card-head span { color:#08775a; font-size:12px; font-weight:900; }
.monitor-card-head b { padding:4px 7px; border-radius:999px; background:#0d8b69; color:#fff; font-size:10px; }
.monitor-values-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:10px; }
.monitor-values-grid small { margin:0; padding:7px; border-radius:8px; background:rgba(255,255,255,.82); color:#678078; font-size:10px; }
.monitor-values-grid b { display:block; margin-top:3px; color:#143d35; font-size:12px; direction:ltr; text-align:right; }
.monitor-radar { background:linear-gradient(145deg,#f4fbff,#edf8f4); }
.monitor-imbalance { background:linear-gradient(145deg,#fffdf3,#f6fbff); }
.monitor-temporary.high { border-color:#e5a358; background:#fff6ea; }
.monitor-temporary.watch { border-color:#e8ce6a; background:#fffcf0; }
.monitor-temporary.calm { border-color:#98cbb8; }
.monitor-idle { grid-column:1 / -1; border-style:dashed; background:#fafcfb; }
@media (max-width: 760px) { .monitor-active { grid-column:1 / -1; } .monitor-values-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.metric {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.metric span,
.levels span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong,
.levels strong {
  display: block;
  font-size: 22px;
}

.levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.levels div {
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.signals,
.notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signals li,
.notes li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #324039;
  font-size: 13px;
}

.signals li.positive {
  border-color: rgba(23, 115, 77, 0.28);
  background: rgba(23, 115, 77, 0.08);
}

.signals li.negative {
  border-color: rgba(188, 59, 54, 0.28);
  background: rgba(188, 59, 54, 0.08);
}

.signals li.neutral {
  border-color: rgba(111, 125, 117, 0.28);
  background: rgba(111, 125, 117, 0.08);
}

.ai-panel pre {
  min-height: 180px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  direction: rtl;
  background: #111b18;
  color: #e9fff8;
  line-height: 1.7;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
}

.data-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.data-preview-grid h3 {
  margin-top: 0;
}

.data-preview-grid pre {
  min-height: 150px;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: #24342e;
  padding: 12px;
  direction: ltr;
  text-align: left;
  white-space: pre;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.live-header {
  align-items: flex-start;
}

.live-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.live-controls {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 150px);
  gap: 8px;
  align-items: center;
}

.compact-controls {
  grid-template-columns: minmax(150px, auto);
}

.market-controls {
  grid-template-columns: auto minmax(180px, 260px) auto minmax(150px, 180px);
}

.market-watch-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f5faf8;
}

.live-note {
  margin-bottom: 12px;
  border: 1px solid rgba(196, 122, 29, 0.28);
  border-radius: 8px;
  background: rgba(196, 122, 29, 0.08);
  color: #6f4b17;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.65;
}

.risk-note {
  border-color: rgba(176, 55, 55, 0.28);
  background: rgba(176, 55, 55, 0.08);
  color: #7a2424;
}

.live-table-wrap {
  max-height: 420px;
}

.live-table-wrap table {
  min-width: 980px;
}

.top15-table-wrap {
  max-height: 520px;
}

.top15-table-wrap table {
  min-width: 1180px;
}

.speculative-table-wrap {
  max-height: 540px;
}

.speculative-table-wrap table {
  min-width: 1440px;
}

.macro-table-wrap {
  max-height: 560px;
}

.macro-table-wrap table {
  min-width: 1960px;
}

.rank-badge.high-risk {
  background: #9b2f2f;
}

.support-monitor-card {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.support-monitor-card.is-visible {
  display: block;
}

.support-monitor-card.positive {
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.07);
}

.support-monitor-card.danger {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.07);
}

.support-monitor-card.warning {
  border-color: rgba(198, 40, 40, 0.3);
  background: rgba(198, 40, 40, 0.06);
}

.support-monitor-card.wait {
  border-color: rgba(161, 98, 7, 0.38);
  background: rgba(161, 98, 7, 0.09);
}

.monitor-head strong {
  font-weight: 900;
}

.support-monitor-card.positive .monitor-head strong,
.support-monitor-card.danger .monitor-head strong,
.support-monitor-card.warning .monitor-head strong,
.support-monitor-card.wait .monitor-head strong {
  color: var(--ink);
}

.monitor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.monitor-head span,
.monitor-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.monitor-grid div,
.monitor-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: var(--ink);
}

.monitor-grid strong,
.monitor-cell strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.support-monitor-card p {
  margin: 10px 0 0;
  color: #34443c;
  line-height: 1.65;
}

.forecast-chart-card {
  display: none;
  border: 1px solid #dfe9e5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(12, 150, 137, 0.08), transparent 34%),
    #fff;
  box-shadow: 0 18px 46px rgba(20, 52, 45, 0.1);
  padding: clamp(14px, 1.8vw, 22px);
}

.forecast-chart-card.is-visible {
  display: block;
}

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

.forecast-head--timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 8px;
  text-align: center;
}

.forecast-title-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.forecast-title-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dbe8e4;
  border-radius: 12px;
  background: #f5fbf9;
  color: #0a8f79;
  font-size: 30px;
  box-shadow: 0 10px 22px rgba(20, 52, 45, 0.08);
}

.forecast-main-title {
  color: #0f2634;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 950;
  line-height: 1.08;
}

.forecast-title-block small {
  color: #637281;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 800;
}

.forecast-mini-legend {
  display: grid;
  gap: 7px;
  min-width: 160px;
  border: 1px solid #dfe8e4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(20, 52, 45, 0.08);
}

.forecast-mini-legend b {
  position: relative;
  display: block;
  padding-inline-start: 22px;
  color: #53645e;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.forecast-mini-legend b::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 3px solid currentColor;
  background: #fff;
}

.forecast-mini-legend .legend-up {
  color: #0a8f79;
}

.forecast-mini-legend .legend-down {
  color: #c62828;
}

.forecast-summary-line {
  margin: 0 0 12px;
  color: #5d6d76;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.macro-adjustment-stack {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.macro-adjustment-card,
.macro-adjustment-explain {
  border: 1px solid #d9e6e0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  text-align: start;
  box-shadow: 0 10px 24px rgba(20, 52, 45, 0.045);
}

.macro-adjustment-card {
  display: grid;
  gap: 5px;
}

.macro-adjustment-card span,
.macro-adjustment-explain span {
  color: #526158;
  font-size: 12px;
  font-weight: 950;
}

.macro-adjustment-card strong {
  color: #10262f;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.macro-adjustment-explain strong {
  display: block;
  margin: 5px 0 3px;
  color: #10262f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.macro-adjustment-card small,
.macro-adjustment-card em,
.macro-adjustment-explain p,
.macro-adjustment-explain em {
  margin: 0;
  color: #334841;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.65;
}

.macro-title-text {
  display: block;
  margin-top: 2px;
  font-size: 17px !important;
  line-height: 1.35 !important;
}

.macro-explain-sections {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.macro-section-item {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 38, 52, 0.08);
  border-radius: 6px;
}

.macro-section-tag {
  display: inline-block;
  color: #10262f;
  font-size: 12px;
  font-weight: 950;
}

.macro-verdict-line {
  display: block;
  margin: 4px 0 6px;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #d9e6e0;
  border-right: 5px solid #078f68;
  color: #10262f;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.4 !important;
}

.macro-verdict-line.positive {
  border-right-color: #078f68;
  background: #f0fbf6;
  color: #046c4e;
}

.macro-verdict-line.negative {
  border-right-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

.macro-verdict-line.neutral {
  border-right-color: #64748b;
  background: #f8fafc;
  color: #334155;
}

.macro-bullet-line {
  margin: 3px 0 !important;
  line-height: 1.6 !important;
}

.macro-adjustment-card em,
.macro-adjustment-explain em {
  font-style: normal;
  color: #5e716a;
}

.macro-sync-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0;
}

.macro-sync-values b {
  display: grid;
  gap: 3px;
  min-height: 48px;
  border: 1px solid rgba(15, 38, 52, 0.08);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #526158;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
}

.macro-sync-values i {
  color: #10262f;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.macro-adjustment-card.positive,
.macro-adjustment-explain.positive {
  border-color: #92dac6;
  background: linear-gradient(180deg, #f2fffb, #e9f9f2);
}

.macro-adjustment-card.positive strong,
.macro-adjustment-explain.positive span {
  color: #078f68;
}

.macro-adjustment-card.negative,
.macro-adjustment-explain.negative {
  border-color: #efb9b4;
  background: linear-gradient(180deg, #fffafa, #fff0ef);
}

.macro-adjustment-card.negative strong,
.macro-adjustment-explain.negative span {
  color: #c62828;
}

.macro-adjustment-card.neutral,
.macro-adjustment-explain.neutral {
  border-color: #d5dfdb;
  background: linear-gradient(180deg, #ffffff, #f5f8f7);
}

.macro-adjustment-card.neutral strong,
.macro-adjustment-explain.neutral span {
  color: #526158;
}

.forecast-head span,
.forecast-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.forecast-head strong {
  display: block;
  margin-top: 3px;
}

.forecast-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: left;
}

.forecast-fullscreen-btn {
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.forecast-fullscreen-btn:hover {
  background: #e6f5f1;
}

.forecast-svg {
  width: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
}

.forecast-grid {
  stroke: #d9e5e1;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.forecast-axis,
.forecast-level-label,
.forecast-point text,
.forecast-period text {
  fill: #526158;
  font-size: 11px;
  font-weight: 800;
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fbfdfb;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.forecast-point-label {
  font-size: 11px;
  font-weight: 900;
}

.forecast-point-price {
  fill: #24352d;
  font-size: 10px;
  font-weight: 900;
}

.forecast-long-target rect {
  fill: #083f35;
  stroke: #0ea477;
  stroke-width: 1.4;
  filter: drop-shadow(0 5px 8px rgba(6, 68, 56, .18));
}

.forecast-long-target-title {
  fill: #bbf4dc;
  font-size: 10px;
  font-weight: 900;
  direction: rtl;
  unicode-bidi: plaintext;
}

.forecast-long-target-price {
  fill: #fff;
  font-size: 15px;
  font-weight: 950;
  paint-order: stroke;
  stroke: #083f35;
  stroke-width: 2px;
}

.forecast-period text {
  font-size: 9px;
  line-height: 1.35;
  paint-order: stroke;
  stroke: #fbfdfb;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.forecast-period .period-range {
  font-size: 9px;
  fill: #6e7971;
}

.forecast-period .period-action {
  font-size: 10px;
  font-weight: 900;
}

.forecast-period .period-price {
  font-size: 10px;
}

.forecast-period.rise text {
  fill: #0f6844;
}

.forecast-period.correction text {
  fill: #8a560f;
}

.forecast-period.exit text {
  fill: #9b2924;
}

.forecast-area {
  fill: rgba(0, 143, 121, 0.14);
}

.forecast-line {
  fill: none;
  stroke: #078f78;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forecast-week-split {
  display: grid;
  gap: 14px;
  margin: 14px 0 10px;
  border: 1px solid #d7e8e3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  padding: 14px;
}

.forecast-week-split__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e3eee9;
  padding-bottom: 10px;
}

.forecast-week-split__title span,
.forecast-week-split__title small {
  color: #596963;
  font-size: 12px;
  font-weight: 900;
}

.forecast-week-split__title strong {
  color: #102b35;
  font-size: 18px;
  font-weight: 950;
}

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

.forecast-week-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dce8e4;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(22, 53, 47, 0.045);
}

.forecast-week-card.current {
  border-color: #a9dcd0;
  background: linear-gradient(180deg, #fbfffd, #f2fbf7);
}

.forecast-week-card.next {
  border-color: #cddde5;
  background: linear-gradient(180deg, #ffffff, #f7fafb);
}

.forecast-week-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.forecast-week-card__head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.forecast-week-card__head span,
.forecast-week-card__head small {
  color: #5e6d67;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.forecast-week-card__head strong {
  color: #102b35;
  font-size: 19px;
  font-weight: 950;
}

.forecast-week-card__head b {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 950;
}

.forecast-week-svg {
  display: block;
  width: 100%;
  min-height: 150px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(250, 253, 252, 0.96), rgba(245, 250, 248, 0.96));
}

.forecast-week-svg .week-grid {
  stroke: #dbe8e4;
  stroke-width: 1;
}

.forecast-week-svg .week-path {
  fill: none;
  stroke: #078f78;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forecast-week-svg .week-point circle {
  fill: #078f78;
  stroke: #ffffff;
  stroke-width: 3;
}

.forecast-week-svg .week-point.correction circle {
  fill: #c62828;
}

.forecast-week-svg .week-point.watch circle {
  fill: #64736d;
}

.forecast-week-svg text {
  fill: #243b43;
  font-size: 13px;
  font-weight: 900;
}

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

.forecast-week-days span {
  display: grid;
  gap: 3px;
  border: 1px solid #e1ebe7;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.forecast-week-days b {
  color: #23383f;
  font-size: 12px;
  font-weight: 950;
}

.forecast-week-days em {
  color: #66766f;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.forecast-week-days span.rise em {
  color: #078f68;
}

.forecast-week-days span.correction em {
  color: #c62828;
}

.forecast-week-empty {
  display: grid;
  min-height: 138px;
  place-items: center;
  border: 1px dashed #cbdad5;
  border-radius: 8px;
  color: #65746e;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .forecast-week-split {
    padding: 10px;
  }

  .forecast-week-split__title {
    display: grid;
    align-items: start;
  }

  .forecast-week-split__title strong {
    font-size: 16px;
  }

  .forecast-week-grid {
    grid-template-columns: 1fr;
  }

  .forecast-week-card {
    padding: 10px;
  }

  .forecast-week-card__head strong {
    font-size: 17px;
  }

  .forecast-week-card__head b {
    font-size: 18px;
  }

  .forecast-week-days {
    grid-template-columns: 1fr;
  }
}

.forecast-timeline-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.forecast-timeline-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon date price"
    "icon label note";
  align-items: center;
  column-gap: 8px;
  row-gap: 3px;
  min-height: 58px;
  border: 1px solid #dfe8e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfefd);
  padding: 8px 10px;
  text-align: start;
  box-shadow: 0 8px 18px rgba(20, 52, 45, 0.045);
}

.forecast-timeline-card i {
  display: grid;
  grid-area: icon;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  background: #e7f7f3;
  color: #0a8f79;
  font-size: 17px;
  font-style: normal;
  box-shadow: 0 8px 18px rgba(10, 143, 121, 0.12);
}

.forecast-timeline-card strong {
  grid-area: date;
  color: #0f2634;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.forecast-timeline-card span {
  grid-area: label;
  color: #53645e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forecast-timeline-card b {
  grid-area: price;
  color: #078f78;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.forecast-timeline-card small {
  grid-area: note;
  color: #6d7c75;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forecast-timeline-card.rise {
  background: linear-gradient(180deg, #f4fffb, #e8f8f1);
  border-color: #9ddcc8;
}

.forecast-timeline-card.rise i {
  background: #dff8ef;
  color: #078f68;
}

.forecast-timeline-card.rise b,
.forecast-timeline-card.rise small {
  color: #078f68;
}

.forecast-timeline-card.watch {
  background: linear-gradient(180deg, #ffffff, #f3f6f5);
  border-color: #d5dfdb;
}

.forecast-timeline-card.watch b,
.forecast-timeline-card.watch small {
  color: #526158;
}

.forecast-timeline-card.correction,
.forecast-timeline-card.exit {
  background: linear-gradient(180deg, #fffafa, #fff0ef);
  border-color: #efc9c5;
}

.forecast-timeline-card.correction i,
.forecast-timeline-card.exit i {
  background: #fff0ef;
  color: #c62828;
}

.forecast-timeline-card.correction b,
.forecast-timeline-card.exit b {
  color: #c62828;
}

.forecast-timeline-card.watch i {
  background: #edf7f8;
  color: #447b8b;
}

.forecast-period-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px auto 2px;
  max-width: 1180px;
}

.forecast-period-strip__item {
  display: grid;
  grid-template-columns: 30px minmax(92px, 1fr) auto;
  grid-template-areas:
    "icon title price"
    "icon meta note";
  gap: 2px 8px;
  min-height: 58px;
  align-items: center;
  border: 1px solid #d7e9e4;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
  text-align: start;
  box-shadow: 0 6px 16px rgba(19, 49, 43, 0.035);
}

.forecast-period-strip__item i {
  display: grid;
  place-items: center;
  grid-area: icon;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: #e7f7f3;
  color: #0a8f79;
  font-size: 15px;
  font-style: normal;
}

.forecast-period-strip__item strong {
  grid-area: title;
  color: #0f2634;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-period-strip__item span,
.forecast-period-strip__item b,
.forecast-period-strip__item small {
  color: #53645e;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.25;
}

.forecast-period-strip__item b {
  grid-area: meta;
  color: #078f78;
  font-size: 12px;
}

.forecast-period-strip__item small {
  grid-area: price;
  color: #006f69;
  font-size: 13px;
  font-weight: 950;
  justify-self: end;
  white-space: nowrap;
}

.forecast-period-strip__item span {
  grid-area: note;
  justify-self: end;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-period-strip__item.rise {
  border-color: #9ddcc8;
  background: linear-gradient(180deg, #fbfffd, #effaf5);
}

.forecast-period-strip__item.rise i {
  background: #dff8ef;
  color: #078f68;
}

.forecast-period-strip__item.rise b,
.forecast-period-strip__item.rise small {
  color: #078f68;
}

.forecast-period-strip__item.watch {
  border-color: #d5dfdb;
  background: linear-gradient(180deg, #ffffff, #f5f8f7);
}

.forecast-period-strip__item.watch i {
  background: #eef2f0;
  color: #526158;
}

.forecast-period-strip__item.watch b,
.forecast-period-strip__item.watch small {
  color: #526158;
}

.forecast-period-strip__item.correction,
.forecast-period-strip__item.exit {
  border-color: #efc9c5;
  background: linear-gradient(180deg, #ffffff, #fff7f6);
}

.forecast-period-strip__item.correction i,
.forecast-period-strip__item.exit i {
  background: #fff0ef;
  color: #c62828;
}

.forecast-period-strip__item.correction b,
.forecast-period-strip__item.exit b,
.forecast-period-strip__item.correction small,
.forecast-period-strip__item.exit small {
  color: #c62828;
}

.forecast-zone-band {
  opacity: 0.16;
}

.forecast-zone-band.accumulation {
  fill: #0a8776;
}

.forecast-zone-band.lighten {
  fill: #c47a1d;
}

.forecast-zone-label {
  fill: #34443c;
  font-size: 10px;
  font-weight: 900;
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fbfdfb;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.forecast-zone-label.accumulation {
  fill: #0f6844;
}

.forecast-zone-label.lighten {
  fill: #8a560f;
}

.forecast-candle line {
  stroke-width: 1.4;
}

.forecast-candle rect {
  stroke-width: 1.2;
}

.forecast-candle.up line,
.forecast-candle.up rect {
  stroke: #0a8776;
}

.forecast-candle.up rect {
  fill: rgba(10, 135, 118, 0.22);
}

.forecast-candle.down line,
.forecast-candle.down rect {
  stroke: #bc3b36;
}

.forecast-candle.down rect {
  fill: rgba(188, 59, 54, 0.2);
}

.forecast-level {
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}

.forecast-level.resistance {
  stroke: rgba(196, 122, 29, 0.78);
  stroke-width: 1.8;
}

.forecast-level.support {
  stroke: rgba(0, 131, 115, 0.66);
  stroke-width: 1.8;
}

.forecast-level.stop {
  stroke: rgba(188, 59, 54, 0.7);
  stroke-dasharray: 4 6;
}

.forecast-protection-zone {
  fill: rgba(188, 59, 54, 0.055);
  stroke: rgba(188, 59, 54, 0.16);
  stroke-width: 1;
}

.forecast-level-card rect {
  fill: #fffefd;
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 8px rgba(29, 44, 36, 0.08));
}

.forecast-level-card text {
  font-size: 10px;
  font-weight: 900;
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fbfdfb;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.forecast-level-card .level-value {
  fill: #24352d;
  font-size: 10px;
}

.forecast-level-card .level-note {
  fill: #526158;
  font-size: 8px;
}

.forecast-level-card.resistance rect {
  fill: rgba(196, 122, 29, 0.1);
  stroke: rgba(196, 122, 29, 0.48);
}

.forecast-level-card.resistance text {
  fill: #8a560f;
}

.forecast-level-card.support rect {
  fill: rgba(0, 131, 115, 0.09);
  stroke: rgba(0, 131, 115, 0.42);
}

.forecast-level-card.support text {
  fill: #0f6844;
}

.forecast-level-card.stop rect {
  fill: rgba(188, 59, 54, 0.08);
  stroke: rgba(188, 59, 54, 0.42);
}

.forecast-level-card.stop text {
  fill: #9b2924;
}

.decision-levels-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(10, 135, 118, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f6fbf8 100%);
}

.decision-levels-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  text-align: right;
}

.decision-levels-head span {
  color: #0a8776;
  font-size: 10px;
  font-weight: 900;
}

.decision-levels-head strong {
  color: #20362e;
  font-size: 14px;
  font-weight: 900;
}

.decision-levels-head small {
  color: #64736b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.decision-levels-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.decision-levels-svg {
  display: block;
  width: 100%;
  min-height: 290px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #fff;
}

.decision-ladder-axis {
  stroke: rgba(36, 53, 45, 0.22);
  stroke-width: 2;
}

.decision-danger-zone {
  fill: rgba(188, 59, 54, 0.06);
  stroke: rgba(188, 59, 54, 0.15);
  stroke-width: 1;
}

.decision-level-line {
  stroke-width: 2;
  stroke-dasharray: 8 6;
}

.decision-level-line.resistance {
  stroke: rgba(196, 122, 29, 0.78);
}

.decision-level-line.current {
  stroke: rgba(36, 53, 45, 0.62);
  stroke-dasharray: none;
}

.decision-level-line.support {
  stroke: rgba(0, 131, 115, 0.7);
}

.decision-level-line.stop {
  stroke: rgba(188, 59, 54, 0.72);
  stroke-dasharray: 4 6;
}

.decision-level-value,
.decision-level-card text {
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  font-weight: 900;
}

.decision-level-value {
  fill: #34443c;
  font-size: 10px;
}

.decision-level-card rect {
  fill: #fff;
  stroke-width: 1.2;
  filter: drop-shadow(0 5px 10px rgba(29, 44, 36, 0.08));
}

.decision-level-card text {
  font-size: 10px;
}

.decision-level-card .decision-card-value {
  fill: #24352d;
  font-size: 10px;
}

.decision-level-card .decision-card-note {
  fill: #526158;
  font-size: 8px;
}

.decision-level-card.resistance rect {
  fill: rgba(196, 122, 29, 0.1);
  stroke: rgba(196, 122, 29, 0.5);
}

.decision-level-card.resistance text {
  fill: #8a560f;
}

.decision-level-card.current rect {
  fill: rgba(36, 53, 45, 0.07);
  stroke: rgba(36, 53, 45, 0.28);
}

.decision-level-card.current text {
  fill: #24352d;
}

.decision-level-card.support rect {
  fill: rgba(0, 131, 115, 0.09);
  stroke: rgba(0, 131, 115, 0.45);
}

.decision-level-card.support text {
  fill: #0f6844;
}

.decision-level-card.stop rect {
  fill: rgba(188, 59, 54, 0.08);
  stroke: rgba(188, 59, 54, 0.44);
}

.decision-level-card.stop text {
  fill: #9b2924;
}

.decision-level-card.paired-risk rect {
  fill: #fffefd;
  stroke: rgba(82, 97, 88, 0.24);
}

.decision-level-card.paired-risk .paired-divider {
  stroke: rgba(82, 97, 88, 0.2);
  stroke-width: 1;
}

.decision-level-card.paired-risk .support-title {
  fill: #0f6844;
}

.decision-level-card.paired-risk .stop-title {
  fill: #9b2924;
}

.forecast-point circle {
  fill: #fff;
  stroke: #00796b;
  stroke-width: 2.4;
}

.forecast-point.correction circle,
.forecast-point.exit circle {
  stroke: #bc3b36;
}

.forecast-point.rise circle {
  stroke: #14754c;
}

.forecast-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.forecast-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chart-context-note {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 135, 118, 0.18);
  border-radius: 8px;
  background: #fbfdfb;
  color: #24352d;
  text-align: right;
  direction: rtl;
}

.chart-context-note strong {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.chart-context-note span {
  color: #34443c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}

.chart-context-note small {
  color: #7a2424;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.55;
}

.forecast-context-note {
  border-color: rgba(10, 135, 118, 0.2);
  background: rgba(10, 135, 118, 0.06);
}

.decision-context-note {
  border-color: rgba(82, 97, 88, 0.2);
  background: rgba(82, 97, 88, 0.055);
}

.tactical-context-note {
  border-color: rgba(188, 59, 54, 0.2);
  background: linear-gradient(135deg, rgba(188, 59, 54, 0.055), rgba(35, 116, 171, 0.055));
}

.tactical-panel {
  margin-top: 12px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f4faf7 100%);
  padding: 10px;
}

.sie-panel {
  margin-top: 12px;
  border: 1px solid rgba(15, 92, 82, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfc 0%, #eef8f4 100%);
  padding: 10px;
  direction: rtl;
}

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

.sie-head span,
.sie-head small {
  display: block;
  color: #526158;
  font-size: 11px;
  font-weight: 900;
}

.sie-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

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

.sie-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(15, 92, 82, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 44, 35, 0.04);
}

.sie-card span {
  color: #526158;
  font-size: 11px;
  font-weight: 900;
}

.sie-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.sie-card small,
.sie-card em {
  color: #526158;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.gap-news-panel {
  margin: 8px 0 10px;
  padding: 10px;
  border: 1px solid rgba(15, 92, 82, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 44, 35, 0.04);
}

.gap-news-panel.calm {
  border-color: #8ecfbc;
  background: linear-gradient(135deg, #f2fbf8, #fff);
}

.gap-news-panel.warning {
  border-color: #dfbd69;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.gap-news-panel.danger {
  border-color: #e09a96;
  background: linear-gradient(135deg, #fff1f0, #fff);
}

.gap-news-panel.standby {
  border-color: #dfbd69;
  background: linear-gradient(135deg, #fffaf0, #fff);
}

.gap-news-panel.inactive {
  border-color: #cfd8d3;
  background: linear-gradient(135deg, #f7f9f8, #fff);
}

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

.gap-news-head span,
.gap-news-card span,
.gap-news-head small,
.gap-news-card small,
.gap-news-panel em {
  display: block;
  color: #526158;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.45;
  font-style: normal;
}

.gap-news-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}

.gap-news-head b {
  min-width: 78px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 92, 82, 0.12);
  color: var(--ink);
  font-size: 18px;
}

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

.gap-news-card {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 92, 82, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.gap-news-card strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.gap-news-panel.danger .gap-news-head strong,
.gap-news-panel.danger .gap-news-head b,
.gap-news-panel.danger .gap-news-card strong {
  color: #b12e2e;
}

.gap-news-panel.warning .gap-news-head strong,
.gap-news-panel.warning .gap-news-head b {
  color: #9a6600;
}

.gap-news-panel.standby .gap-news-head strong,
.gap-news-panel.standby .gap-news-head b,
.gap-news-panel.standby .gap-news-card strong {
  color: #9a6600;
}

.gap-news-panel.calm .gap-news-head strong,
.gap-news-panel.calm .gap-news-head b {
  color: #087452;
}

.gap-news-panel.inactive .gap-news-head strong,
.gap-news-panel.inactive .gap-news-head b,
.gap-news-panel.inactive .gap-news-card strong {
  color: #526158;
}

.sie-pulse-svg {
  width: 100%;
  height: 52px;
}

.sie-pulse-svg line {
  stroke: #d7e4de;
  stroke-width: 2;
}

.sie-pulse-svg polyline {
  fill: none;
  stroke: #007f70;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sie-pulse-svg circle {
  fill: #fff;
  stroke: #007f70;
  stroke-width: 3;
}

.sie-meter {
  height: 9px;
  border-radius: 999px;
  background: #edf3f0;
  overflow: hidden;
}

.sie-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0a8776;
}

.sie-meter.active i {
  background: #d6932f;
}

.sie-meter.warning i {
  background: #c96c22;
}

.sie-meter.danger i {
  background: #bc3b36;
}

.sie-decision-bars {
  display: grid;
  gap: 4px;
}

.sie-decision-bars b {
  display: block;
  min-width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(10, 135, 118, 0.12);
  color: #075d52;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.sie-decision-bars b:nth-child(3) {
  background: rgba(214, 147, 47, 0.16);
  color: #8b570d;
}

.sie-decision-bars b:nth-child(4) {
  background: rgba(188, 59, 54, 0.14);
  color: #8b1f1b;
}

.tactical-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 8px;
  text-align: right;
}

.tactical-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tactical-head span,
.tactical-head small {
  display: block;
  color: #526158;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.8;
  white-space: normal;
}

.tactical-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  white-space: normal;
}

.tactical-chart-scroll {
  overflow-x: auto;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #ffffff;
}

.tactical-svg {
  display: block;
  width: 100%;
  min-height: 340px;
}

.tactical-mobile-legend {
  display: none;
}

.tactical-grid {
  stroke: #e7eee9;
  stroke-width: 1;
}

.tactical-band {
  opacity: 0.18;
}

.tactical-band.accumulation {
  fill: #bc3b36;
  opacity: 0.14;
}

.tactical-band.conditional {
  fill: #526158;
  opacity: 0.1;
  stroke: #526158;
  stroke-dasharray: 4 4;
}

.tactical-band.lighten {
  fill: #2374ab;
  opacity: 0.14;
}

.tactical-path {
  fill: none;
  stroke: #00796b;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 5;
  opacity: 0.75;
}

.tactical-level {
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.tactical-level.current {
  stroke: rgba(0, 121, 107, 0.58);
}

.tactical-level.trigger {
  stroke: rgba(188, 59, 54, 0.55);
}

.tactical-band-label,
.tactical-level-label,
.tactical-candle-label,
.tactical-candle-price,
.tactical-axis {
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  font-weight: 900;
}

.tactical-band-label {
  font-size: 10px;
  fill: #34443c;
}

.tactical-band-label.accumulation {
  fill: #9b2924;
}

.tactical-band-label.conditional {
  fill: #526158;
}

.tactical-band-label.conditional.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  dominant-baseline: middle;
}

.tactical-band-label.lighten {
  fill: #185d8a;
}

.tactical-level-label,
.tactical-axis {
  fill: #526158;
  font-size: 10px;
}

.tactical-level-label.trigger {
  fill: #9b2924;
}

.tactical-candle line {
  stroke-width: 1.6;
}

.tactical-candle rect {
  stroke-width: 1.4;
}

.tactical-candle.neutral line,
.tactical-candle.neutral rect {
  stroke: #526158;
}

.tactical-candle.neutral rect {
  fill: rgba(82, 97, 88, 0.14);
}

.tactical-candle.down line,
.tactical-candle.down rect {
  stroke: #bc3b36;
}

.tactical-candle.down rect {
  fill: rgba(188, 59, 54, 0.2);
}

.tactical-candle.up line,
.tactical-candle.up rect {
  stroke: #008a5b;
}

.tactical-candle.up rect {
  fill: rgba(0, 138, 91, 0.24);
}

.tactical-candle.lighten line,
.tactical-candle.lighten rect {
  stroke: #1667c7;
}

.tactical-candle.lighten rect {
  fill: rgba(22, 103, 199, 0.2);
}

.tactical-card-leader {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 4;
  opacity: 0.9;
}

.tactical-card-leader.neutral {
  stroke: #526158;
}

.tactical-card-leader.down {
  stroke: #bc3b36;
}

.tactical-card-leader.up {
  stroke: #008a5b;
}

.tactical-card-leader.lighten {
  stroke: #1667c7;
}

.tactical-candle-label {
  fill: #24352d;
  font-size: 10px;
}

.tactical-candle-price {
  fill: #1e2d27;
  font-size: 9px;
}

.tactical-decision rect {
  stroke-width: 1.2;
  fill: #fff;
}

.tactical-decision text {
  direction: rtl;
  unicode-bidi: plaintext;
  font-size: 9px;
  font-weight: 900;
  fill: #24352d;
}

.tactical-decision .decision-period,
.tactical-decision .decision-action {
  fill: #526158;
  font-size: 8px;
}

.tactical-decision .decision-price {
  fill: #1e2d27;
  font-size: 9px;
}

.tactical-decision.neutral rect {
  stroke: rgba(82, 97, 88, 0.35);
  fill: rgba(82, 97, 88, 0.06);
}

.tactical-decision.down rect {
  stroke: rgba(188, 59, 54, 0.55);
  fill: rgba(188, 59, 54, 0.1);
}

.tactical-decision.up rect {
  stroke: rgba(0, 138, 91, 0.65);
  fill: rgba(0, 138, 91, 0.13);
}

.tactical-decision.up text {
  fill: #006b49;
}

.tactical-decision.lighten rect {
  stroke: rgba(22, 103, 199, 0.68);
  fill: rgba(22, 103, 199, 0.12);
}

.tactical-decision.lighten text {
  fill: #0f55a8;
}

.tactical-stage-tag circle {
  fill: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 2px 5px rgba(29, 44, 36, 0.08));
}

.tactical-stage-tag text {
  direction: rtl;
  unicode-bidi: plaintext;
  fill: #24352d;
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2px;
  stroke-linejoin: round;
}

.tactical-stage-tag.neutral circle {
  stroke: rgba(82, 97, 88, 0.7);
}

.tactical-stage-tag.down circle {
  stroke: rgba(188, 59, 54, 0.8);
}

.tactical-stage-tag.up circle {
  stroke: rgba(0, 138, 91, 0.9);
}

.tactical-stage-tag.lighten circle {
  stroke: rgba(22, 103, 199, 0.9);
}

.forecast-zone-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-height: 74px;
  background: #fbfdfb;
  color: var(--ink);
}

.forecast-zone-card span,
.forecast-zone-card small {
  display: block;
  color: #526158;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.forecast-zone-card strong {
  display: block;
  margin: 3px 0;
  font-size: 14px;
  font-weight: 900;
}

.forecast-zone-card.accumulation {
  border-color: rgba(188, 59, 54, 0.45);
  background: rgba(188, 59, 54, 0.09);
}

.forecast-zone-card.accumulation span,
.forecast-zone-card.accumulation strong {
  color: #9b2924;
}

.forecast-zone-card.conditional {
  border-color: rgba(82, 97, 88, 0.35);
  background: rgba(82, 97, 88, 0.07);
}

.forecast-zone-card.lighten {
  border-color: rgba(22, 103, 199, 0.55);
  background: rgba(22, 103, 199, 0.11);
}

.forecast-zone-card.lighten span,
.forecast-zone-card.lighten strong {
  color: #0f55a8;
}

.card-tone-bull,
.forecast-card.card-tone-bull,
.monitor-cell.card-tone-bull,
.kpi-card.card-tone-bull,
.support-monitor-card.card-tone-bull,
.market-state.card-tone-bull,
#detailRating.card-tone-bull {
  border-color: rgba(10, 135, 118, 0.55);
  background: rgba(10, 135, 118, 0.22);
  color: var(--ink);
}

.card-tone-bear,
.forecast-card.card-tone-bear,
.monitor-cell.card-tone-bear,
.kpi-card.card-tone-bear,
.support-monitor-card.card-tone-bear,
.market-state.card-tone-bear,
#detailRating.card-tone-bear {
  border-color: rgba(198, 40, 40, 0.5);
  background: rgba(198, 40, 40, 0.16);
  color: var(--ink);
}

.card-tone-neutral,
.forecast-card.card-tone-neutral,
.monitor-cell.card-tone-neutral,
.kpi-card.card-tone-neutral,
.support-monitor-card.card-tone-neutral,
.market-state.card-tone-neutral,
#detailRating.card-tone-neutral {
  border-color: rgba(202, 138, 4, 0.55);
  background: rgba(234, 179, 8, 0.2);
  color: var(--ink);
}

.alert-chip.card-tone-bull {
  border: 2px solid #0a8776;
  background: linear-gradient(135deg, #4dbfaf 0%, #28b5a4 100%);
  box-shadow: 0 6px 18px rgba(10, 135, 118, 0.26);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
}

.alert-chip.card-tone-bear {
  border: 2px solid #c62828;
  background: linear-gradient(135deg, #f07171 0%, #ef5350 100%);
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.22);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
}

.alert-chip.card-tone-neutral {
  border: 2px solid #a16207;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.28);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
}

.tone-chip,
.tone-chip strong,
.tone-chip small,
.forecast-card,
.monitor-cell,
.monitor-cell strong,
.monitor-cell span,
.card-tone-bull .market-term,
.card-tone-bear .market-term,
.card-tone-neutral .market-term {
  color: var(--ink) !important;
}

.forecast-legend span,
.forecast-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.forecast-legend .rise,
.forecast-legend .correction,
.forecast-legend .exit,
.forecast-legend .watch {
  color: var(--ink);
}

.forecast-chart-card p,
.forecast-footnote {
  margin-top: 8px;
  color: #526158;
  font-size: 12px;
  line-height: 1.6;
}

.forecast-chart-scroll {
  width: 100%;
}

.forecast-head__main {
  min-width: 0;
}

.forecast-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.forecast-symbol {
  display: block;
  margin-top: 3px;
}

.forecast-summary-inline {
  display: none;
}

.alert-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 800;
  white-space: normal;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
}

.alert-chip strong {
  font-size: 14px;
}

.alert-chip small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.alert-chip.buy,
.alert-chip.sell,
.alert-chip.danger,
.alert-chip.warning,
.alert-chip.watch {
  color: var(--ink);
}

.alert-chip-block {
  margin-top: 10px;
}

.alert-timing-guide {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  color: #33423a;
  font-size: 12px;
  line-height: 1.7;
  direction: rtl;
  unicode-bidi: plaintext;
}

html[lang="en"] .alert-timing-guide {
  direction: ltr;
  text-align: left;
}

.forecast-chart-card .alert-chip-block {
  margin-top: 12px;
}

.legal-note {
  border: 1px solid rgba(176, 55, 55, 0.26);
  border-radius: 8px;
  background: rgba(176, 55, 55, 0.07);
  color: #7a2424;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.7;
}

.market-ticker-tape {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 8px;
  overflow: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.ticker-card {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 10px;
  text-align: right;
}

button.ticker-card {
  cursor: pointer;
}

button.ticker-card:hover {
  border-color: #a9cfc6;
  background: #f2faf7;
}

.ticker-card strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.ticker-card span {
  font-size: 20px;
  font-weight: 900;
}

.ticker-card small {
  font-weight: 900;
}

.market-table-wrap {
  max-height: 540px;
}

.market-table-wrap table {
  min-width: 1380px;
}

.market-price {
  font-weight: 900;
}

.price-up {
  color: var(--term-bull);
  font-weight: 900;
}

.price-down {
  color: var(--term-bear);
  font-weight: 900;
}

.price-flat {
  color: var(--term-neutral);
  font-weight: 900;
}

#marketBias {
  color: var(--ink);
}

.market-term {
  font-weight: 900;
}

.market-term.term-bull {
  color: var(--term-bull);
}

.market-term.term-bear {
  color: var(--term-bear);
}

.market-term.term-neutral {
  color: var(--term-neutral);
}

.market-state {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.market-state.price-up,
.market-state.price-down,
.market-state.price-flat,
.market-state.neutral {
  color: var(--ink);
}

.flow-mini {
  display: inline-block;
  min-width: 130px;
  font-weight: 900;
  line-height: 1.45;
}

.flow-mini small {
  color: var(--muted);
  font-weight: 700;
}

.rank-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf8f5;
  color: var(--accent-strong);
  font-weight: 900;
}

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

.plan-cell {
  white-space: normal;
  min-width: 150px;
  line-height: 1.55;
  direction: rtl;
  unicode-bidi: plaintext;
  font-variant-numeric: tabular-nums;
}

.plan-cell small,
.trade-plan-box,
.forecast-summary,
.forecast-legend,
.support-monitor-card,
.intraday-flow-card,
.ai-output,
.ai-panel pre,
.data-preview-grid pre,
td,
small {
  direction: rtl;
  unicode-bidi: plaintext;
  font-variant-numeric: tabular-nums;
}

.confidence {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 5px 8px;
  font-weight: 900;
}

.chart-label {
  fill: #68756d;
  font-size: 12px;
}

.axis-line {
  stroke: #d4ded7;
  stroke-width: 1;
}

.price-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.ma-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.ma-line.secondary {
  stroke: #4f6fa8;
}

.volume-bar {
  fill: rgba(0, 121, 107, 0.18);
}

.ollama-guide {
  margin-block: 10px;
  padding: 10px 12px;
  border: 1px solid #b8d8d1;
  border-radius: 7px;
  background: #f2faf8;
  line-height: 1.8;
}

.ollama-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: #00695c;
}

.ollama-guide ol {
  margin-block: 8px;
  padding-inline-start: 22px;
}

.ollama-guide code {
  direction: ltr;
  unicode-bidi: isolate;
}

.ollama-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-block: 10px;
}

.ollama-model-catalog {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  margin-block: 8px;
}

.ollama-model-catalog[hidden] {
  display: none;
}

.ollama-model-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 9px;
  border: 1px solid #c7ddd8;
  border-radius: 7px;
  background: #fff;
}

.ollama-model-card div,
.ollama-model-card p,
.ollama-model-card small {
  grid-column: 1;
  margin: 0;
}

.ollama-model-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ollama-model-card span,
.ollama-model-card small {
  color: #60736f;
}

.ollama-model-card button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.ollama-model-card.is-unsuitable {
  opacity: 0.62;
}

.ollama-status {
  min-height: 38px;
  margin: 0;
  padding: 7px 9px;
  border-inline-start: 3px solid #00897b;
  background: #fff;
  color: #40534f;
}

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

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    max-height: none;
    overflow: visible;
    padding: 16px;
  }

  .sidebar-brand {
    grid-column: 1 / -1;
  }
}

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

  .topbar__meta {
    flex-wrap: wrap;
  }

  .kpi-grid,
  .split-view,
  .data-preview-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    width: 100%;
  }

  .chart-header {
    flex-direction: column;
  }

  .live-controls {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 10px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .control-row,
  .metric-grid,
  .levels {
    grid-template-columns: 1fr;
  }

  .chart-canvas,
  .chart-canvas svg {
    min-height: 300px;
    height: 300px;
  }

  .forecast-svg {
    min-height: 310px;
  }

  .forecast-legend {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile shell (same URL, desktop unchanged above 768px) ── */
.mobile-menu-btn,
.mobile-tab-bar,
.mobile-drawer-backdrop {
  display: none;
}

body.sidebar-drawer-mode .shell {
  grid-template-columns: minmax(0, 1fr);
}

body.sidebar-drawer-mode .mobile-menu-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(15, 92, 75, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--sidebar);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

body.sidebar-drawer-mode .mobile-menu-icon {
  font-size: 20px;
  line-height: 1;
}

body.sidebar-drawer-mode .sidebar {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 95;
  width: min(390px, calc(100vw - 24px));
  max-height: none;
  overflow: auto;
  padding: 16px 14px;
  border-radius: 12px;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.24s ease;
  box-shadow: -16px 0 44px rgba(15, 43, 37, 0.22);
}

body.sidebar-drawer-mode.mobile-drawer-open .sidebar {
  transform: translateX(0);
}

body.sidebar-drawer-mode .mobile-drawer-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  padding: 0;
  background: rgba(15, 43, 37, 0.42);
  backdrop-filter: blur(2px);
}

body.sidebar-drawer-mode .mobile-drawer-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--sidebar);
    font-size: 22px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
  }

  .mobile-menu-text {
    display: none;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding-inline: 12px;
  }

  .topbar__brand {
    flex: 1;
    min-width: 0;
  }

  .topbar__brand h1 {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__brand .eyebrow {
    display: none;
  }

  .topbar__meta {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 52%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 8px;
    font-size: 12px;
  }

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

  .home-return-btn,
  .metals-shortcut-btn {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-return-btn span,
  .metals-shortcut-btn span {
    width: 22px;
    height: 22px;
  }

  #lastRun {
    display: none;
  }

  .subscription-logout-btn,
  .subscription-manage-btn,
  .subscription-badge,
  .stock-trial-counter,
  .status-pill {
    flex-shrink: 0;
    min-height: 32px;
    font-size: 11px;
  }

  .shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 10px calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 360px);
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    transform: translateX(105%);
  }

  .mobile-advanced-field,
  .desktop-only-panel,
  #providerPanel {
    display: none !important;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .split-view {
    display: contents;
  }

  body.is-mobile [data-mobile-tab].mobile-tab-hidden {
    display: none !important;
  }

  .mobile-tab-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    gap: 4px;
    min-height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(15, 43, 37, 0.08);
  }

  .mobile-tab-bar[hidden] {
    display: none !important;
  }

  .mobile-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-tab-btn.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }

  .mobile-tab-icon {
    font-size: 15px;
    line-height: 1;
  }

  .mobile-tab-btn .stock-lists-icon {
    width: 18px;
    height: 16px;
    color: currentColor;
  }

  .mobile-tab-btn .stock-lists-icon i {
    width: 7px;
    height: 7px;
  }

  .mobile-tab-btn .stock-lists-icon i:first-child {
    height: 17px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .segment {
    min-height: 44px;
  }

  .control-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .data-preview-panel pre {
    max-height: 110px;
    overflow: auto;
    font-size: 11px;
  }

  .forecast-svg {
    min-height: 260px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 640px;
  }

  .live-table-wrap table,
  .market-table-wrap table {
    min-width: 720px;
  }

  .live-header,
  .chart-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .live-controls,
  .market-controls,
  .compact-controls {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .market-watch-list-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-panel pre,
  .ai-output {
    max-height: 320px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.55;
  }

  .subscription-card {
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .legal-note {
    font-size: 12px;
    line-height: 1.6;
  }

  /* ── Mobile results & analysis layout ── */
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.mobile-tab-summary .kpi-grid {
    order: 1;
  }

  body.mobile-tab-summary .detail-panel {
    order: 2;
  }

  body.mobile-tab-summary #forecastChartCard {
    order: 3;
  }

  body.mobile-tab-summary #forecastChartCard.is-visible {
    display: block;
  }

  body.mobile-tab-summary #forecastChartCard:not(.is-visible) {
    display: none;
  }

  body.mobile-tab-summary .data-preview-panel {
    order: 4;
  }

  .stock-lists-tab {
    gap: 10px;
  }

  .stock-lists-tab__header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .stock-lists-tab__header strong {
    font-size: 16px;
  }

  body.is-mobile .ai-panel {
    display: none !important;
  }

  body.is-mobile .detail-notes-block {
    display: none !important;
  }

  .topbar {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .topbar__brand {
    flex: 1 1 calc(100% - 54px);
  }

  .topbar__meta {
    flex: 1 1 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kpi-card {
    min-height: auto;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .stock-hero-pair {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    gap: 8px;
  }

  .stock-identity-card {
    padding: 18px 16px;
  }

  .stock-identity-card strong {
    font-size: clamp(28px, 8vw, 34px);
  }

  .kpi-card--risk {
    padding: 12px 14px;
  }

  .kpi-card--risk strong {
    font-size: 22px;
  }

  .kpi-card--risk small {
    font-size: 10px;
  }

  .stock-identity-card,
  .stock-price-card {
    min-height: auto;
    padding: 16px 14px;
    background:
      linear-gradient(135deg, rgba(10, 135, 118, 0.1), rgba(255, 255, 255, 0.98)),
      var(--surface);
    border: 1px solid rgba(10, 135, 118, 0.2);
  }

  .stock-identity-card strong {
    font-size: clamp(28px, 8vw, 34px);
    color: var(--accent-strong);
  }

  .stock-price-card strong.stock-live-price,
  #topLivePrice {
    color: var(--ink) !important;
  }

  .stock-price-card strong:not(.stock-live-price) {
    font-size: clamp(24px, 7vw, 30px);
    color: var(--accent-strong);
  }

  .stock-price-card small#topScore {
    font-size: 12px;
    line-height: 1.5;
    color: #33423a;
  }

  #topPriceChange.price-up,
  #topPriceChange[data-tone="price-up"] {
    color: var(--term-bull) !important;
  }

  #topPriceChange.price-down,
  #topPriceChange[data-tone="price-down"] {
    color: var(--term-bear) !important;
  }

  #topPriceChange.price-flat,
  #topPriceChange[data-tone="price-flat"] {
    color: var(--term-neutral) !important;
  }

  .stock-price-card small:not(#topPriceChange) {
    margin-top: 8px;
  }

  .stock-meta-row {
    margin-top: 8px;
  }

  .kpi-card strong {
    font-size: 24px;
  }

  .kpi-card small {
    line-height: 1.45;
  }

  .detail-panel {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(10, 135, 118, 0.18);
    box-shadow: 0 10px 28px rgba(15, 43, 37, 0.07);
  }

  .detail-panel > .panel__header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, #f7fcfa 0%, #fff 100%);
    border-bottom: 1px solid var(--line-soft);
  }

  .detail-panel > .panel__header h2 {
    font-size: 20px;
    margin: 0;
  }

  #detailRating {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
  }

  #detailRating:not(.card-tone-bull):not(.card-tone-bear):not(.card-tone-neutral) {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }

  .recommendation-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 16px;
    background: #fff;
  }

  .recommendation-card strong {
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink);
  }

  .recommendation-card p {
    font-size: 14px;
    line-height: 1.7;
  }

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

  .allocation-card {
    min-height: auto;
  }

  .trade-plan-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #f8fbfa;
  }

  .intraday-flow-card,
  .support-monitor-card {
    margin: 0;
    border-inline: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px;
  }

  .metric-grid .metric {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5faf8;
    border: 1px solid var(--line-soft);
  }

  .metric-grid .metric strong {
    font-size: 17px;
    margin-top: 4px;
  }

  .levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 12px;
  }

  .levels > div {
    padding: 12px;
    border-radius: 12px;
    background: #f8fbfa;
    border: 1px solid var(--line-soft);
  }

  .detail-panel > h3 {
    padding-inline: 16px;
    margin-bottom: 6px;
  }

  .signals,
  .notes {
    padding: 0 16px 16px;
    margin: 0;
  }

  .signals li,
  .notes li {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f7faf9;
    border: 1px solid var(--line-soft);
    line-height: 1.55;
    font-size: 13px;
  }

  .forecast-chart-card {
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(10, 135, 118, 0.16);
    box-shadow: 0 10px 28px rgba(15, 43, 37, 0.06);
  }

  .forecast-head--timeline {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .forecast-title-icon {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .forecast-main-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .forecast-title-block small,
  .forecast-summary-line {
    max-width: 32rem;
  }

  .forecast-mini-legend {
    width: min(100%, 260px);
  }

  .macro-sync-values {
    grid-template-columns: 1fr;
  }

  .forecast-timeline-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 76vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 4px 6px;
    scroll-snap-type: x proximity;
  }

  .forecast-timeline-card {
    min-height: 56px;
    padding: 8px 9px;
    scroll-snap-align: start;
  }

  .forecast-period-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 76vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 4px 6px;
    scroll-snap-type: x proximity;
  }

  .forecast-period-strip__item {
    min-height: 56px;
    padding: 8px 9px;
    scroll-snap-align: start;
  }

  .forecast-head--mobile {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .forecast-head__main {
    min-width: 0;
  }

  .forecast-eyebrow {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .forecast-symbol {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.35;
    color: var(--ink);
  }

  .forecast-summary-inline {
    display: block;
    margin: 8px 0 0;
    color: #40534d;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 700;
  }

  .mobile-data-details:not([open]) .data-preview-grid {
    display: none;
  }

  .forecast-head--mobile .forecast-actions {
    width: 100%;
    justify-content: stretch;
  }

  .forecast-head--mobile .forecast-fullscreen-btn {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
  }

  .forecast-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #dfe8e2;
    background: #fbfdfb;
  }

  .forecast-chart-scroll .forecast-svg {
    display: block;
    width: 100%;
    min-width: 340px;
    min-height: 360px;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .forecast-legend--mobile {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .forecast-legend--mobile span {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .forecast-zones {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sie-head {
    display: grid;
    gap: 4px;
    text-align: center;
  }

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

  .gap-news-head {
    display: grid;
    text-align: center;
  }

  .gap-news-head b {
    justify-self: center;
  }

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

  .sie-card {
    min-height: auto;
  }

  .decision-levels-panel {
    padding: 10px 8px;
  }

  .decision-levels-head {
    text-align: center;
  }

  .decision-levels-head strong {
    font-size: 15px;
    line-height: 1.45;
  }

  .decision-levels-head small {
    font-size: 12px;
    line-height: 1.55;
  }

  .decision-levels-scroll {
    overflow: hidden;
  }

  .decision-levels-svg {
    min-height: 250px;
  }

  .tactical-head {
    display: grid;
    gap: 4px;
    text-align: center;
  }

  .tactical-chart-scroll {
    overflow: hidden;
  }

  .tactical-svg {
    width: 100%;
    min-width: 0;
    min-height: 250px;
  }

  .tactical-mobile-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .tactical-mobile-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #dfe8e2;
    border-radius: 10px;
    background: #fff;
    text-align: right;
  }

  .tactical-mobile-step span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f2f7f5;
    color: #24352d;
    font-size: 12px;
    font-weight: 900;
  }

  .tactical-mobile-step strong {
    color: #20362e;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
  }

  .tactical-mobile-step small {
    color: #526158;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
  }

  .tactical-mobile-step.down {
    border-color: rgba(188, 59, 54, 0.36);
    background: rgba(188, 59, 54, 0.08);
  }

  .tactical-mobile-step.up {
    border-color: rgba(10, 135, 118, 0.3);
    background: rgba(10, 135, 118, 0.06);
  }

  .tactical-mobile-step.lighten {
    border-color: rgba(35, 116, 171, 0.36);
    background: rgba(35, 116, 171, 0.08);
  }

  .tactical-band-label {
    display: none;
  }

  .tactical-level-label {
    font-size: 9px;
    stroke-width: 3px;
  }

  .forecast-footnote {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
  }

  .mobile-data-details {
    border: 0;
  }

  .mobile-data-details > summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-data-details > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-data-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-data-summary h2 {
    margin: 0;
    font-size: 15px;
  }

  .mobile-data-summary span,
  #dataPreviewStatus {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-data-details .data-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
  }

  .mobile-data-details .data-preview-grid h3 {
    margin-top: 0;
    font-size: 13px;
  }

  .data-preview-panel pre {
    max-height: 96px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.5;
    padding: 10px;
    border-radius: 10px;
    background: #f7faf9;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .chart-panel {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .chart-canvas,
  .chart-canvas svg {
    min-height: 300px;
    height: 300px;
  }

  .ai-panel {
    border-radius: 16px;
  }

  .ai-panel pre {
    max-height: 280px;
    padding: 12px;
    border-radius: 12px;
    background: #f7faf9;
  }
}

@media (min-width: 769px) {
  .mobile-data-details > summary.mobile-data-summary {
    display: flex;
    pointer-events: none;
    cursor: default;
    padding: 16px 16px 0;
    border-bottom: 0;
  }

  .mobile-data-details > summary.mobile-data-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-data-details .data-preview-grid {
    display: grid;
    padding-top: 12px;
  }
}

.sie-session-call {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  align-items: center;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #cfe4dc;
  border-radius: 10px;
  background: #f5faf7;
}

.sie-session-call span,
.sie-session-call small {
  color: #60736b;
  font-weight: 800;
}

.sie-session-call strong {
  color: #0f2b25;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.1;
}

.sie-session-call b {
  grid-row: span 2;
  color: #0f2b25;
  font-size: clamp(24px, 3vw, 42px);
}

.sie-session-call.positive { border-color: #47b58e; background: linear-gradient(135deg, #e6f8f0, #fff); }
.sie-session-call.neutral { border-color: #b8c7c1; background: linear-gradient(135deg, #f4f7f5, #fff); }
.sie-session-call.warning { border-color: #d89b3f; background: linear-gradient(135deg, #fff4df, #fff); }
.sie-session-call.danger { border-color: #d36a63; background: linear-gradient(135deg, #fff0ef, #fff); }

.sie-card.wide { grid-column: span 2; }
.sie-card.behavior-calm { background: #effaf4; border-color: #8fd4b2; }
.sie-card.behavior-active { background: #fff8e8; border-color: #dfbd69; }
.sie-card.behavior-warning { background: #fff1e8; border-color: #d98e54; }
.sie-card.behavior-danger { background: #fff0f0; border-color: #d36a63; }

.sie-sparkline { width: 100%; height: 112px; margin: 4px 0 6px; }
.sie-sparkline line { stroke: #d6e4df; stroke-width: 2; }
.sie-sparkline polyline { fill: none; stroke: #087f70; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sie-sparkline circle { fill: #fff; stroke: #087f70; stroke-width: 3; }
.sie-sparkline .forecast-dot { stroke: #2d7ed8; }
.sie-sparkline text { fill: #23332d; font-size: 12px; font-weight: 900; }

.sie-donut {
  --a: 34;
  --m: 33;
  --d: 33;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  margin: 8px auto;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 53%, transparent 54%), conic-gradient(#0f9b72 0 calc(var(--a) * 1%), #d69a2d 0 calc((var(--a) + var(--m)) * 1%), #cf514b 0 100%);
}

.sie-donut div { display: grid; place-items: center; width: 72px; aspect-ratio: 1; text-align: center; }
.sie-donut small { font-size: 10px; line-height: 1.2; }
.sie-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sie-legend b { padding: 3px 7px; border-radius: 999px; font-size: 11px; }
.sie-legend .acc { color: #087452; background: #e3f6ee; }
.sie-legend .mom { color: #8a5a00; background: #fff1cc; }
.sie-legend .dist { color: #a52e2e; background: #ffe4e3; }

.sie-decision-map {
  display: flex;
  height: 34px;
  overflow: hidden;
  margin: 10px 0;
  border-radius: 999px;
  background: #edf2ef;
}

.sie-decision-map i {
  min-width: 18%;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.sie-decision-map .exit { background: #c74d4d; }
.sie-decision-map .hold { background: #9aa8a1; }
.sie-decision-map .add { background: #0f9b72; }
.sie-decision-map .lighten { background: #2f7fc5; }
.sie-decision-map { height: auto; min-height: 58px; border-radius: 14px; }
.sie-decision-map i { min-width: 16%; white-space: normal; line-height: 1.25; text-align: center; padding: 4px; }
.sie-decision-map span { display: block; }
.danger-text { color: #b12e2e !important; font-weight: 900; }

.sie-session-call.grade-strong strong,
.sie-session-call.grade-strong b { color: #087452; }
.sie-session-call.grade-neutral strong,
.sie-session-call.grade-neutral b { color: #9a6600; }
.sie-session-call.grade-weak strong,
.sie-session-call.grade-weak b { color: #b12e2e; }

.sie-sparkline-large {
  min-height: 150px;
  height: 150px;
}

.sie-pulse.wide {
  min-height: 220px;
}

.sie-pulse.wide > span {
  font-size: 13px;
}

.sie-card.wide small {
  display: block;
}

.sie-session-call em {
  display: block;
  color: #435149;
  font-style: normal;
  font-weight: 900;
}

.liquidity-positive { color: #087452 !important; }
.liquidity-warning { color: #9a6600 !important; }
.liquidity-danger { color: #b12e2e !important; }
.liquidity-neutral { color: #526158 !important; }

.master-verdict,
.tactical-verdict,
.forecast-fan-card {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #cfe4dc;
  border-radius: 10px;
  background: #fff;
}

.master-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: 12px;
  align-items: center;
}

.master-verdict.positive { border-color: #55b98f; background: linear-gradient(135deg, #e8f8f1, #fff); }
.master-verdict.warning { border-color: #d8a044; background: linear-gradient(135deg, #fff6e4, #fff); }
.master-verdict.danger { border-color: #d76b64; background: linear-gradient(135deg, #fff0ef, #fff); }
.master-verdict span,
.tactical-verdict span,
.forecast-fan-card span {
  display: block;
  color: #60736b;
  font-size: 12px;
  font-weight: 900;
}
.master-verdict strong,
.tactical-verdict strong,
.forecast-fan-card strong {
  display: block;
  color: #10251f;
  font-size: 22px;
  font-weight: 900;
}
.master-verdict small,
.master-verdict em,
.tactical-verdict small,
.tactical-verdict em {
  display: block;
  color: #435149;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.master-scenario-board {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(300px, 1.05fr) minmax(430px, 1.65fr);
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #d5e8e1;
  border-radius: 8px;
  background: #fbfdfc;
  direction: rtl;
}

.master-scenario-rail,
.master-decision-map,
.master-decision-hero {
  min-width: 0;
  border: 1px solid #d5e8e1;
  border-radius: 8px;
  background: #fff;
}

.master-scenario-rail,
.master-decision-map {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
}

.master-scenario-rail > strong,
.master-decision-map > strong {
  color: #10251f;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.master-path-card,
.master-map-card {
  border: 1px solid #d8e7e1;
  border-radius: 8px;
  background: #fff;
}

.master-path-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.master-path-card span,
.master-map-card span,
.master-decision-hero span {
  color: #42534b;
  font-size: 12px;
  font-weight: 900;
}

.master-path-card b,
.master-map-card small,
.master-decision-hero strong {
  color: #10251f;
  font-weight: 900;
}

.master-path-card small,
.master-decision-map em,
.master-decision-hero p,
.master-decision-hero small {
  color: #415249;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.master-path-card.add,
.master-map-card.add.is-active {
  border-color: #12a77d;
  background: #ecfbf5;
}

.master-path-card.lighten,
.master-map-card.lighten.is-active {
  border-color: #2f83d7;
  background: #eef6ff;
}

.master-path-card.hold,
.master-map-card.hold.is-active {
  border-color: #a7b1ad;
  background: #f5f7f6;
}

.master-map-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.master-map-card b {
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.master-map-card.add b,
.master-path-card.add b {
  color: #078968;
}

.master-map-card.lighten b,
.master-path-card.lighten b {
  color: #156fc2;
}

.master-map-card.hold b,
.master-path-card.hold b {
  color: #66716d;
}

.master-map-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.master-map-card i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfe9e6;
}

.master-map-card.add i { background: #b8efdf; }
.master-map-card.lighten i { background: #bfdcff; }
.master-map-card.hold i { background: #dfe5e3; }

.master-decision-map em {
  padding: 9px;
  border: 1px solid #e3eee9;
  border-radius: 8px;
  background: #fbfdfc;
  text-align: center;
}

.master-decision-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 12%, rgba(15, 170, 135, .08), transparent 32%),
    #fbfdfc;
}

.master-hero-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.master-decision-hero h2 {
  margin: 0;
  color: #10251f;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.18;
}

.master-decision-hero strong {
  font-size: 17px;
}

.master-ring-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.master-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#0bad8f calc(var(--score) * 1%), #dcebe6 0);
}

.master-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: #fff;
}

.master-ring strong {
  position: relative;
  color: #08866f;
  font-size: 34px;
  font-weight: 950;
}

.master-ring-wrap small {
  max-width: 150px;
  color: #42534b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .master-scenario-board {
    grid-template-columns: 1fr;
  }

  .master-decision-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 620px) {
  .master-scenario-board {
    padding: 10px;
  }

  .master-decision-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .master-decision-hero h2 {
    font-size: 24px;
  }

  .master-map-card {
    grid-template-columns: 72px minmax(0, 1fr) 24px;
  }

  .master-map-card b {
    font-size: 28px;
  }
}

.forecast-fan-card svg {
  width: 100%;
  height: 150px;
  margin-top: 8px;
}
.forecast-fan-card path {
  fill: rgba(30, 135, 115, .13);
  stroke: rgba(30, 135, 115, .25);
}
.forecast-fan-card polyline {
  fill: none;
  stroke: #087f70;
  stroke-width: 4;
  stroke-linecap: round;
}
.forecast-fan-card text {
  fill: #24352f;
  font-size: 13px;
  font-weight: 900;
}
.tactical-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.tactical-evidence-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d9e7e1;
  border-radius: 8px;
  background: #fff;
}
.tactical-evidence-card strong,
.tactical-evidence-card span,
.tactical-evidence-card small,
.tactical-evidence-card em {
  color: #26372f;
  font-style: normal;
  font-weight: 850;
  line-height: 1.4;
}
.tactical-evidence-card small,
.tactical-evidence-card em {
  color: #60736b;
  font-size: 11px;
}

@media (max-width: 768px) {
  .master-verdict,
  .tactical-evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sie-card.wide,
  .sie-session-call {
    grid-column: 1;
  }

  .sie-session-call {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.sie-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.sie-decision-grid .decision-option {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 104px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid #d8e6df;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(18, 52, 44, .06);
}

.sie-decision-grid .decision-option b { font-size: 18px; line-height: 1; }
.sie-decision-grid .decision-option strong { font-size: 17px; line-height: 1.15; font-weight: 950; }
.sie-decision-grid .decision-option span { font-weight: 900; color: #21352f; }
.sie-decision-grid .decision-option small { color: #60736b; font-weight: 800; }
.sie-decision-grid .decision-option em {
  display: block;
  color: #536860;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}
.sie-decision-grid .exit { border-color: #e6a2a2; background: #fff4f4; }
.sie-decision-grid .exit b, .sie-decision-grid .exit strong, .sie-decision-grid .exit span { color: #a93232; }
.sie-decision-grid .hold { border-color: #c9d4ce; background: #f7f9f8; }
.sie-decision-grid .hold b, .sie-decision-grid .hold span { color: #43524c; }
.sie-decision-grid .add { border-color: #77caba; background: #effcf8; }
.sie-decision-grid .add b, .sie-decision-grid .add span { color: #067a63; }
.sie-decision-grid .lighten { border-color: #8fbce8; background: #f0f7ff; }
.sie-decision-grid .lighten b, .sie-decision-grid .lighten span { color: #1769b2; }

@media (max-width: 900px) {
  .sie-decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .gap-news-grid { grid-template-columns: 1fr; }
  .sie-decision-grid { grid-template-columns: 1fr; }
}

.session-state-pill {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.session-state-pill.active {
  color: #056b58;
  background: #dff7ef;
  border: 1px solid #8bd7c5;
}

.session-state-pill.pre {
  color: #8a5a00;
  background: #fff5dc;
  border: 1px solid #dfbd69;
}

.session-state-pill.closed {
  color: #8a4f00;
  background: #fff3dc;
  border: 1px solid #e7bd74;
}

.decision-percent {
  display: inline-block;
  color: #0f7664;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.sie-legend .acc { background: #e5f8f2; color: #05765f; }
.sie-legend .mom { background: #fff3d6; color: #9a6100; }
.sie-legend .dist { background: #ffe8e8; color: #a83232; }
/* Final decision card polish */
.sie-session-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 18px;
  padding: 18px;
  border-radius: 14px;
}

.sie-session-call > span {
  grid-column: 1 / -1;
  font-size: 13px;
  letter-spacing: 0;
}

.sie-session-call > strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.sie-session-call .decision-percent {
  justify-self: end;
  align-self: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 100, .16);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 950;
  line-height: 1;
}

.sie-session-call > small,
.sie-session-call > em,
.sie-session-call .sie-decision-grid,
.sie-session-call .sie-decision-map {
  grid-column: 1 / -1;
}

.sie-session-call > em {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(120, 147, 136, .22);
  line-height: 1.55;
}

.sie-pulse > small {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f4f8f6;
  color: #31473f;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 700px) {
  .sie-session-call {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sie-session-call .decision-percent {
    justify-self: center;
  }
}
/* Liquidity radar bias */
.liquidity-bias {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #d7e6df;
  background: #f8fbfa;
  text-align: start;
}

.liquidity-bias strong {
  font-size: 13px;
  color: #17352d;
}

.liquidity-bias small,
.liquidity-bias em {
  color: #52665d;
  font-weight: 850;
  line-height: 1.45;
}

.liquidity-bias em {
  display: block;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,.75);
  font-style: normal;
}

.liquidity-bias .bias-alert.is-warning {
  background: #fff1d6;
  border: 1px solid #e6a83f;
  color: #8a5200;
  box-shadow: 0 8px 18px rgba(181, 111, 0, .12);
}

.liquidity-bias .bias-alert.is-calm {
  background: #f4fbf8;
  border: 1px solid #b9dfd4;
  color: #28584d;
}

.liquidity-move-summary {
  display: grid;
  gap: 5px;
  margin: 9px 0;
  padding: 9px;
  border-radius: 11px;
  background: #f8fbfa;
  border: 1px solid #dbeae4;
}

.liquidity-move-summary strong {
  color: #17352d;
  font-size: 13px;
}

.liquidity-move-summary small {
  display: block;
  line-height: 1.5;
  color: #415950;
  font-weight: 850;
}

.source-hints-field {
  display: none !important;
}

.bias-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
}

.bias-row::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 8px;
  border-radius: 999px;
  background: #edf2ef;
}

.bias-row i {
  grid-column: 2;
  grid-row: 1;
  height: 8px;
  border-radius: 999px;
  z-index: 1;
}

.bias-row.demand span { color: #05765f; }
.bias-row.demand i { background: #0f9b72; }
.bias-row.sell span { color: #a83232; }
.bias-row.sell i { background: #cf514b; }
.liquidity-bias.toward-demand { border-color: #8ad4c4; background: #effcf8; }
.liquidity-bias.toward-sell { border-color: #efabab; background: #fff4f4; }
.liquidity-bias.balanced { border-color: #e2c46b; background: #fff9e8; }

/* Session intelligence redesign */
.sie-panel {
  --session-teal: #0f8f7a;
  --session-blue: #2f6faa;
  --session-amber: #b9781b;
  --session-rose: #bd4b4f;
  --session-ink: #17342e;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  box-shadow: 0 14px 34px rgba(20, 52, 45, 0.07);
}

html[data-market="us"] .sie-panel {
  --session-teal: #176f7d;
  --session-blue: #2f68a8;
  --session-amber: #a96f19;
  --session-rose: #b6424b;
}

.sie-head {
  align-items: center;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #e7efeb;
}

.sie-head strong {
  color: var(--session-ink);
  font-size: 17px;
}

.sie-session-call {
  border-radius: 8px;
  border-color: rgba(15, 143, 122, 0.24);
  background: linear-gradient(135deg, #f7fcfa 0%, #ffffff 56%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 28px rgba(17, 49, 43, 0.06);
}

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

.session-sync-strip span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(20, 52, 45, 0.04);
}

.session-sync-strip b,
.session-sync-strip small {
  display: block;
  line-height: 1.35;
}

.session-sync-strip b {
  color: var(--session-ink);
  font-size: 18px;
  font-weight: 950;
}

.session-sync-strip small {
  color: #61726d;
  font-size: 11px;
  font-weight: 900;
}

.sie-card {
  border-radius: 8px;
  border-color: rgba(93, 121, 111, 0.2);
  background: #fff;
  box-shadow: 0 10px 22px rgba(19, 49, 43, 0.055);
}

.sie-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--card-accent, var(--session-teal));
}

.session-card-pulse,
.session-card-liquidity {
  --card-accent: var(--session-teal);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbf8 100%);
}

.session-card-close,
.session-card-next-scenario {
  --card-accent: var(--session-blue);
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
}

.session-card-next-open,
.session-card-behavior {
  --card-accent: var(--session-amber);
  background: linear-gradient(180deg, #ffffff 0%, #fff8ea 100%);
}

.session-card-risk,
.session-card-watch,
.session-card-change {
  --card-accent: var(--session-rose);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f4 100%);
}

.session-card-quality {
  --card-accent: #63756f;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.session-card-close strong,
.session-card-next-open strong,
.session-card-next-scenario strong,
.session-card-watch strong {
  color: var(--session-ink);
}

.sie-sparkline polyline {
  stroke: var(--session-teal);
}

.sie-sparkline .forecast-dot {
  stroke: var(--session-blue);
}

@media (max-width: 900px) {
  .session-sync-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .session-sync-strip {
    grid-template-columns: 1fr;
  }
}

/* Image-inspired session dashboard */
.session-dashboard {
  padding: 16px;
  background: #fbfdfc;
}

/* Hourly conditional plan: a decision-support map, never broker orders. */
.intraday-execution-plan {
  margin: 13px 0;
  padding: 15px;
  border: 1px solid #c8e4d8;
  border-radius: 11px;
  background: linear-gradient(135deg, #f7fffb 0%, #edf8f4 52%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(13, 84, 63, .08);
}
.intraday-execution-plan.is-revised { border-color: #e7a532; box-shadow: 0 0 0 3px rgba(231,165,50,.13), 0 12px 30px rgba(13,84,63,.08); }
.execution-plan-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.execution-plan-head span { display:block; color:#0c7b60; font-size:12px; font-weight:900; }
.execution-plan-head strong { display:block; margin-top:3px; color:#123f36; font-size:17px; }
.execution-plan-head > b { padding:7px 10px; border-radius:999px; background:#0a8063; color:#fff; font-size:12px; white-space:nowrap; }
.is-revised .execution-plan-head > b { background:#b36b08; }
.intraday-execution-plan > p { margin:10px 0; color:#526c64; font-size:12px; line-height:1.65; }
.execution-window-strip { display:flex; gap:7px; overflow-x:auto; padding:2px 0 7px; }
.execution-window { flex:1 0 116px; padding:7px 8px; border:1px solid #d8e8e1; border-radius:8px; background:#fff; color:#547068; text-align:center; }
.execution-window b, .execution-window small { display:block; }
.execution-window b { color:#25483f; font-size:12px; }
.execution-window small { margin-top:3px; font-size:10px; }
.execution-window.active { border-color:#0d9a76; background:#ddf6ed; box-shadow:0 0 0 2px rgba(13,154,118,.12); }
.execution-window.passed { opacity:.54; }
.execution-factors { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin:3px 0 9px; }
.execution-factor { min-width:0; padding:7px; border:1px solid #d8e8e1; border-radius:7px; background:rgba(255,255,255,.82); }
.execution-factor b,.execution-factor strong,.execution-factor small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.execution-factor b { color:#506b63; font-size:10px; }
.execution-factor strong { margin-top:3px; color:#0d765d; font-size:11px; }
.execution-factor small { margin-top:2px; color:#70857e; font-size:9px; }
.execution-factor.sell { border-color:#efd6aa; }
.execution-factor.sell strong { color:#a96305; }
.execution-levels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.execution-level { display:grid; grid-template-columns:27px minmax(0,1fr) auto; align-items:center; gap:8px; min-width:0; padding:9px; border-right:4px solid #74918a; border-radius:8px; background:#fff; }
.execution-level > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#e5f2ed; color:#176d58; font-size:11px; font-weight:900; }
.execution-level b, .execution-level small { display:block; }
.execution-level b { color:#243f39; font-size:12px; }
.execution-level small { margin-top:2px; color:#607770; font-size:10px; line-height:1.35; }
.execution-level strong { color:#0a6953; font-size:15px; white-space:nowrap; }
.execution-level.buy { border-right-color:#118b69; }
.execution-level.sell { border-right-color:#d08a18; }
.execution-level.sell strong { color:#a96305; }
.execution-level.sell-protection { border-right-color:#c74646; }
.execution-level.sell-protection strong { color:#ad2e2e; }
.execution-protection { margin-top:9px; padding:10px 12px; border:1px solid #efc5c5; border-right:4px solid #c74646; border-radius:8px; background:#fff8f8; }
.execution-protection span,.execution-protection strong,.execution-protection small { display:block; }
.execution-protection span { color:#a23030; font-size:11px; font-weight:900; }
.execution-protection strong { margin-top:3px; color:#8f2222; font-size:13px; }
.execution-protection small { margin-top:3px; color:#845858; font-size:10px; line-height:1.45; }
.intraday-execution-plan footer { margin-top:10px; padding-top:9px; border-top:1px dashed #bdd8cd; color:#506962; font-size:11px; line-height:1.65; }
.intraday-execution-plan footer b { color:#0d765d; }
@media (max-width: 760px) { .execution-factors { grid-template-columns:repeat(2,minmax(0,1fr)); } .execution-levels { grid-template-columns:1fr; } }

.dashboard-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-ribbon > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid #bce2d4;
  border-radius: 8px;
  background: #e8f8f2;
  color: #05745d;
  font-size: 13px;
  font-weight: 950;
}

.dashboard-ribbon small {
  color: #52645e;
  font-weight: 900;
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.45fr) minmax(340px, .9fr) minmax(240px, .6fr);
  gap: 12px;
  align-items: stretch;
}

.dashboard-hero-card,
.dashboard-action-card,
.dashboard-scenario-rail,
.dashboard-kpi-row > article,
.dashboard-main-grid > *,
.dashboard-bottom-grid > article,
.dashboard-next-strip > article {
  min-width: 0;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 49, 43, .045);
}

.dashboard-hero-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 220px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(240, 251, 248, .96), rgba(255,255,255,.94)),
    repeating-radial-gradient(circle at 24% 18%, rgba(15,143,122,.11) 0 1px, transparent 1px 12px);
}

.dashboard-decision-ring {
  --score: 50;
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#08a77f calc(var(--score) * 1%), #dcece7 0);
  box-shadow: inset 0 0 0 10px rgba(8, 167, 127, .08);
  text-align: center;
}

.dashboard-decision-stack {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-decision-ring strong {
  color: #07886b;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-decision-caption,
.dashboard-hero-copy span,
.dashboard-action-card span,
.dashboard-scenario-rail span,
.dashboard-kpi-row span,
.dashboard-main-grid span,
.dashboard-bottom-grid span,
.dashboard-next-strip span {
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-decision-caption {
  display: block;
  width: 160px;
  margin: 0 auto;
  color: #50635d;
  text-align: center;
  line-height: 1.35;
}

.dashboard-hero-copy h2 {
  margin: 4px 0 8px;
  color: #12352e;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.12;
}

.dashboard-hero-copy strong,
.dashboard-action-card strong,
.dashboard-kpi-row strong,
.dashboard-main-grid strong,
.dashboard-bottom-grid strong,
.dashboard-next-strip strong {
  display: block;
  color: #17342e;
  font-weight: 950;
  line-height: 1.35;
}

.dashboard-hero-copy p,
.dashboard-hero-copy small,
.dashboard-action-card small,
.dashboard-scenario-rail small,
.dashboard-kpi-row small,
.dashboard-main-grid small,
.dashboard-bottom-grid small,
.dashboard-bottom-grid em,
.dashboard-next-strip small,
.dashboard-next-strip em {
  color: #52645e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dashboard-action-cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto repeat(3, minmax(70px, 1fr)) auto;
  gap: 8px;
  align-content: stretch;
  padding: 12px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247, 252, 250, .92));
  box-shadow: 0 10px 26px rgba(19, 49, 43, .045);
}

.dashboard-action-cards::before {
  content: "خريطة القرار خلال الجلسة";
  color: #263d58;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.dashboard-action-cards::after {
  content: "النطاقات السعرية داخل الكروت حتى تبقى القراءة متزامنة وواضحة.";
  align-self: end;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  background: #f7fbfa;
  color: #52645e;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.5;
  text-align: center;
}

.dashboard-action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label value"
    "icon range value";
  gap: 4px 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  text-align: right;
}

.dashboard-action-card::before,
.rail-card::before {
  content: "";
  justify-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: currentColor;
  opacity: .12;
}

.dashboard-action-card::before {
  grid-area: icon;
}

.dashboard-action-card strong {
  grid-area: value;
  min-width: 64px;
  color: currentColor;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.dashboard-action-card span {
  grid-area: label;
}

.dashboard-action-card small {
  grid-area: range;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  padding: 3px 8px;
  color: #2d403a;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.dashboard-action-card.hold {
  color: #53605b;
  border-color: #aeb9b4;
  background:
    radial-gradient(circle at 9% 22%, rgba(120, 132, 126, 0.2), transparent 28%),
    linear-gradient(180deg, #f8faf9, #e8ecea);
  box-shadow: inset 5px 0 0 #8b9992, 0 12px 24px rgba(83, 96, 91, 0.12);
}

.dashboard-action-card.add {
  color: #07886b;
  border-color: #4fc3a3;
  background:
    radial-gradient(circle at 9% 22%, rgba(15, 155, 114, 0.22), transparent 28%),
    linear-gradient(180deg, #effcf8, #d9f6ec);
  box-shadow: inset 5px 0 0 #0f9b72, 0 12px 24px rgba(15, 155, 114, 0.14);
}

.dashboard-action-card.lighten {
  color: #1f66ad;
  border-color: #86bce8;
  background:
    radial-gradient(circle at 9% 22%, rgba(47, 127, 197, 0.18), transparent 28%),
    linear-gradient(180deg, #f3f9ff, #e2f1ff);
  box-shadow: inset 5px 0 0 #3e8cd2, 0 12px 24px rgba(47, 127, 197, 0.11);
}

.dashboard-scenario-rail {
  display: grid;
  gap: 8px;
  align-content: stretch;
  padding: 12px;
}

.dashboard-scenario-rail > strong {
  text-align: center;
  color: #263d58;
}

.rail-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  background: #f9fbfa;
}

.rail-card::before {
  grid-row: span 3;
  width: 28px;
  height: 28px;
}

.rail-card b {
  color: #17342e;
  font-size: 13px;
}

.rail-card.positive { color: #0a8f70; background: #f2fbf7; border-color: #c9eadc; }
.rail-card.warning { color: #d58228; background: #fff8ee; border-color: #efd0a8; }
.rail-card.neutral { color: #2f6faa; background: #f2f7ff; border-color: #c9dbf3; }

.dashboard-kpi-row,
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dashboard-kpi-row > article,
.dashboard-bottom-grid > article,
.dashboard-next-strip > article {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
}

.dashboard-kpi-row > article {
  min-height: 116px;
}

.dashboard-kpi-row > article small {
  overflow-wrap: anywhere;
}

.dashboard-kpi-row strong {
  margin: 4px 0;
  font-size: 18px;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(210px, .6fr) minmax(460px, 1.45fr) minmax(300px, .85fr);
  gap: 10px;
  margin-top: 12px;
}

.dashboard-gauge-stack {
  display: grid;
  gap: 10px;
}

.dashboard-mini-gauge,
.dashboard-risk-line,
.dashboard-movement-card,
.dashboard-executive-card {
  padding: 14px;
}

.dashboard-mini-gauge b {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  margin: 8px auto;
  border-radius: 50%;
  border: 10px solid #dfe8e4;
  border-top-color: #0f9b72;
  color: #17342e;
  font-size: 24px;
}

.dashboard-mini-gauge i,
.dashboard-risk-line i {
  display: block;
  height: 9px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.dashboard-mini-gauge i em,
.dashboard-risk-line i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f9b72, #f4a340, #d94c4c);
}

.movement-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dashboard-movement-card .sie-sparkline {
  height: 170px;
}

.dashboard-session-bridge {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.dashboard-session-bridge b {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f3faf7);
  padding: 9px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.dashboard-session-bridge b:nth-child(2) {
  border-color: #efd0a8;
  background: linear-gradient(180deg, #ffffff, #fff8ee);
}

.dashboard-session-bridge span {
  color: #61726d;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-session-bridge strong {
  color: #17342e;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dashboard-session-bridge b.bridge-breakout {
  border-color: #98d9c7;
  background: linear-gradient(180deg, #ffffff, #effbf7);
}

.dashboard-session-bridge b.bridge-breakout span,
.dashboard-session-bridge b.bridge-breakout strong {
  color: #087a64;
}

.dashboard-session-bridge b.bridge-breakdown {
  border-color: #efbbb2;
  background: linear-gradient(180deg, #ffffff, #fff3f1);
}

.dashboard-session-bridge b.bridge-breakdown span,
.dashboard-session-bridge b.bridge-breakdown strong {
  color: #b23a2f;
}

.dashboard-executive-card {
  display: grid;
  gap: 8px;
}

.dashboard-executive-card p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  background: #f8fbfa;
  color: #41554e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.dashboard-bottom-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: start;
}

.dashboard-bottom-grid > article {
  min-height: 178px;
}

.dashboard-radar-card .sie-donut {
  width: min(118px, 100%);
  margin-inline: auto;
}

.dashboard-speed-card strong,
.dashboard-watch-card strong {
  font-size: 15px;
  line-height: 1.55;
}

.dashboard-current-card strong {
  font-size: 26px;
}

.dashboard-next-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dashboard-next-strip > article {
  min-height: 150px;
}

.dashboard-next-strip article:nth-child(1) { border-color: #c9dbf3; background: #f2f7ff; }
.dashboard-next-strip article:nth-child(2) { border-color: #efd0a8; background: #fff8ee; }
.dashboard-next-strip article:nth-child(3) { border-color: #c9eadc; background: #f2fbf7; }

.session-dashboard-closed {
  background:
    linear-gradient(135deg, rgba(246, 251, 249, .98), rgba(255,255,255,.96)),
    radial-gradient(circle at 12% 10%, rgba(15, 143, 122, .08), transparent 32%);
}

.after-hours-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.4fr) repeat(2, minmax(210px, .65fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.after-hours-hero,
.after-hours-card {
  min-width: 0;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(19, 49, 43, .045);
}

.after-hours-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  grid-row: span 2;
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(240, 251, 248, .96), rgba(255,255,255,.94)),
    repeating-radial-gradient(circle at 24% 18%, rgba(15,143,122,.1) 0 1px, transparent 1px 12px);
}

.after-hours-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.after-hours-card span {
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.after-hours-card strong {
  color: #17342e;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.35;
}

.after-hours-card small {
  color: #52645e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.after-hours-card.next { border-color: #efd0a8; background: #fff8ee; }
.after-hours-card.close { border-color: #c9dbf3; background: #f2f7ff; }
.after-hours-card.scenario { border-color: #c9eadc; background: #f2fbf7; }
.after-hours-card.watch { border-color: #e6d8b8; background: #fffdf4; }

@media (max-width: 1180px) {
  .dashboard-top-grid {
    grid-template-columns: minmax(420px, 1.3fr) minmax(330px, 1fr);
  }

  .dashboard-scenario-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(210px, .7fr) minmax(440px, 1.4fr);
  }

  .dashboard-executive-card {
    grid-column: 1 / -1;
  }

  .dashboard-kpi-row,
  .dashboard-bottom-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .dashboard-next-strip {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .after-hours-grid {
    grid-template-columns: minmax(420px, 1.2fr) minmax(210px, .8fr);
  }

  .after-hours-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .dashboard-top-grid,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-scenario-rail,
  .dashboard-kpi-row,
  .dashboard-bottom-grid,
  .dashboard-next-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-session-bridge {
    grid-template-columns: 1fr;
  }

  .after-hours-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard-hero-card {
    grid-template-columns: 1fr;
  }

  .dashboard-action-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto repeat(3, minmax(64px, auto)) auto;
  }

  .dashboard-action-card {
    padding: 10px;
  }

  .dashboard-action-card strong {
    font-size: 24px;
  }

  .dashboard-scenario-rail,
  .dashboard-kpi-row,
  .dashboard-bottom-grid,
  .dashboard-next-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-decision-ring {
    margin: 0 auto;
  }

  .after-hours-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

.movement-head {
    display: grid;
  }
}

.home-return-btn,
.metals-shortcut-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 950;
  cursor: pointer;
}

.metals-shortcut-btn {
  border: 1px solid #d5b56f;
  background: linear-gradient(180deg, #fffdf6, #fff3d8);
  color: #6f510b;
  box-shadow: 0 10px 22px rgba(111, 81, 11, .08);
}

.home-return-btn {
  border: 1px solid #b9d8cf;
  background: linear-gradient(180deg, #ffffff, #eefaf6);
  color: #0f2f2b;
  box-shadow: 0 10px 22px rgba(20, 52, 45, .06);
}

.home-return-btn span,
.metals-shortcut-btn span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f7d778;
  color: #614607;
}

.home-return-btn span {
  background: #dff4ee;
  color: #07886b;
  font-size: 16px;
}

.home-return-btn:hover {
  border-color: #0a9d82;
  background: #f4fffb;
}

.metals-shortcut-btn.is-active {
  background: linear-gradient(180deg, #0f2f2b, #123d34);
  color: #fff7dd;
  border-color: #0f2f2b;
}

.metals-back-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid #b9d8cf;
  border-radius: 8px;
  background: #fff;
  color: #0f2f2b;
  padding: 8px 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 52, 45, .06);
}

.metals-back-btn span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e7f5f1;
  color: #07886b;
  font-size: 17px;
}

.metals-back-btn:hover {
  border-color: #0a9d82;
  background: #f4fffb;
}

.metals-workspace {
  gap: 14px;
}

.metals-shell {
  display: block;
  max-width: none;
  padding: 16px clamp(14px, 2vw, 26px) 28px;
}

.metals-page .metals-workspace {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.metals-hero-panel,
.metals-room,
.metal-forecast-panel,
.metal-ratio-panel,
.metal-sources-panel {
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 52, 45, .07);
}

.metals-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: radial-gradient(circle at 12% 0%, rgba(207, 161, 45, .14), transparent 34%), linear-gradient(135deg, #fffdf8, #f2fbf7);
}

.metals-eyebrow,
.metals-room-head span {
  color: #0b8671;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metals-hero-panel h2,
.metals-room-head h2 {
  margin: 4px 0 8px;
  color: #102d28;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}

.metals-hero-panel p,
.metals-room-head p {
  margin: 0;
  color: #586a65;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.metals-hero-actions,
.metals-room-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.metal-selector-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(20, 52, 45, .055);
}

.metal-selector-card > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.metal-selector-card.gold > span {
  background: linear-gradient(135deg, #d69b22, #f4d879);
}

.metal-selector-card.silver > span {
  background: linear-gradient(135deg, #658298, #c8d7e1);
}

.metal-selector-card strong {
  color: #102d28;
  font-size: 20px;
  font-weight: 950;
}

.metal-selector-card small {
  color: #61726d;
  font-weight: 850;
}

.metal-selector-card.is-active {
  border-color: #0a9d82;
  background: #f3fffb;
}

.metals-room {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.metals-room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.compact-field {
  min-width: 180px;
}

.metal-kpi-grid,
.metal-forecast-cards,
.metal-ratio-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metal-kpi-card,
.metal-empty-card,
.metal-forecast-card,
.metal-ratio-card,
.metal-factor-card,
.metal-decision-card {
  min-width: 0;
  border: 1px solid #dfe9e5;
  border-radius: 9px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(20, 52, 45, .05);
}

.metal-kpi-card span,
.metal-forecast-card span,
.metal-ratio-card span,
.metal-factor-card span,
.metal-decision-card span {
  display: block;
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.metal-kpi-card strong,
.metal-forecast-card strong,
.metal-ratio-card strong,
.metal-decision-card strong {
  display: block;
  margin-top: 6px;
  color: #102d28;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 950;
  line-height: 1.1;
}

.metal-kpi-card small,
.metal-forecast-card small,
.metal-ratio-card small,
.metal-factor-card small,
.metal-decision-card small {
  display: block;
  margin-top: 7px;
  color: #52645e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.metal-ratio-notes {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.metal-ratio-notes li {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(238, 248, 244, 0.72);
  color: #41534b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.65;
}

.metal-ratio-card.negative .metal-ratio-notes li {
  background: rgba(255, 242, 240, 0.78);
}

.metal-ratio-card.neutral .metal-ratio-notes li {
  background: rgba(243, 246, 245, 0.9);
}

.metal-kpi-card b,
.metal-forecast-card b {
  display: inline-flex;
  margin-top: 9px;
  border-radius: 999px;
  background: #eef8f4;
  color: #08745f;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
}

.metal-ops-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metal-session-dashboard {
  display: grid;
  gap: 10px;
  border: 1px solid #dce8e2;
  border-radius: 10px;
  background: #fbfdfc;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(20, 52, 45, .055);
}

.metal-session-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metal-session-ribbon span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #bce2d4;
  border-radius: 8px;
  background: #e8f8f2;
  color: #05745d;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 950;
}

.metal-session-ribbon small {
  color: #52645e;
  font-weight: 900;
}

.metal-session-top {
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(250px, .7fr);
  gap: 10px;
}

.metal-session-hero,
.metal-scenario-rail,
.metal-session-kpis article,
.metal-session-main > *,
.metal-session-bottom article {
  min-width: 0;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 49, 43, .045);
}

.metal-session-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 210px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(240, 251, 248, .96), rgba(255, 255, 255, .94)),
    repeating-radial-gradient(circle at 24% 18%, rgba(15, 143, 122, .1) 0 1px, transparent 1px 12px);
}

.metal-decision-ring,
.metal-mini-ring {
  --score: 50;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#08a77f calc(var(--score) * 1%), #dcece7 0);
  box-shadow: inset 0 0 0 9px rgba(8, 167, 127, .08);
  text-align: center;
}

.metal-decision-ring {
  width: 145px;
  aspect-ratio: 1;
}

.metal-decision-ring strong {
  color: #07886b;
  font-size: 36px;
  font-weight: 950;
}

.metal-session-hero span,
.metal-scenario-rail > strong,
.metal-session-kpis span,
.metal-session-main span,
.metal-session-bottom span {
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.metal-session-hero h2 {
  margin: 4px 0 6px;
  color: #12352e;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.metal-session-hero strong,
.metal-session-kpis strong,
.metal-session-bottom strong {
  display: block;
  color: #17342e;
  font-weight: 950;
}

.metal-session-hero p,
.metal-session-hero small,
.metal-session-kpis small,
.metal-session-bottom small,
.metal-session-main p,
.metal-session-main small,
.metal-session-main em {
  color: #52645e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.metal-scenario-rail {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247, 252, 250, .92));
}

.metal-scenario-rail > strong {
  color: #263d58;
  text-align: center;
}

.metal-scenario-rail article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 68px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  padding: 10px;
}

.metal-scenario-rail article::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  grid-row: span 2;
  justify-self: center;
}

.metal-scenario-rail .hold { border-color: #cbd7d1; background: #f8faf9; }
.metal-scenario-rail .hold::before { background: #dfe7e4; }
.metal-scenario-rail .add { border-color: #84d0bd; background: #effcf8; }
.metal-scenario-rail .add::before { background: #bceede; }
.metal-scenario-rail .lighten { border-color: #99c4ed; background: #f0f7ff; }
.metal-scenario-rail .lighten::before { background: #cfe5fa; }

.metal-scenario-rail b {
  color: #08745f;
  font-size: 26px;
  font-weight: 950;
}

.metal-scenario-rail span {
  color: #21352f;
  font-weight: 950;
}

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

.metal-session-kpis article,
.metal-session-bottom article {
  padding: 14px;
}

.metal-session-kpis b,
.metal-session-bottom b {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef8f4;
  color: #08745f;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.metal-session-main {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(420px, 1.45fr) minmax(220px, .7fr);
  gap: 10px;
  align-items: stretch;
}

.metal-exec-summary,
.metal-session-chart-card,
.metal-liquidity-radar {
  padding: 14px;
}

.metal-session-main h3 {
  margin: 0 0 10px;
  color: #17342e;
  font-size: 16px;
  font-weight: 950;
}

.metal-exec-summary p {
  margin: 0 0 8px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px;
}

.metal-session-spark {
  display: block;
  width: 100%;
  min-height: 190px;
  overflow: visible;
}

.metal-session-spark .price {
  fill: none;
  stroke: #0c8f78;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metal-session-spark .level {
  stroke-width: 2;
  stroke-dasharray: 7 8;
  opacity: .75;
}

.metal-session-spark .level.add { stroke: #0a9d82; }
.metal-session-spark .level.entry { stroke: #2f7fc5; }
.metal-session-spark .level.risk { stroke: #d34e4e; }
.metal-session-spark .now { fill: #fff; stroke: #2f7fc5; stroke-width: 5; }
.metal-session-spark text { fill: #17342e; font-size: 12px; font-weight: 900; }

.metal-session-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.metal-session-levels b {
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  word-break: keep-all;
}

.metal-session-levels .risk { border-color: #eda4a4; color: #b12e2e; }
.metal-session-levels .current { border-color: #b9d8cf; color: #17342e; }
.metal-session-levels .next { border-color: #e8c17b; color: #8a5b12; }
.metal-session-levels .add { border-color: #84d0bd; color: #067a63; }

.metal-liquidity-radar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.metal-mini-ring {
  width: 112px;
  aspect-ratio: 1;
  justify-self: center;
}

.metal-mini-ring strong {
  color: #17342e;
  font-size: 24px;
  font-weight: 950;
}

.metal-mini-ring span {
  display: block;
  color: #6b5b1e;
  font-size: 11px;
  font-weight: 950;
}

.metal-liquidity-radar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #eef3f1;
  overflow: hidden;
}

.metal-liquidity-radar i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0a9d82;
}

.metal-liquidity-radar i.sell b {
  background: #d34e4e;
}

.metal-liquidity-radar small {
  border: 1px solid #bce2d4;
  border-radius: 8px;
  background: #f4fffb;
  color: #08745f;
  padding: 9px;
  text-align: center;
}

.metal-decision-card {
  background: linear-gradient(180deg, #f8fffc, #eaf8f4);
  border-color: #bce2d4;
}

.metal-factor-card.positive,
.metal-ratio-card.positive,
.metal-forecast-card.positive {
  border-color: #9ddcc8;
  background: #f1fbf7;
}

.metal-factor-card.negative,
.metal-ratio-card.negative,
.metal-forecast-card.negative {
  border-color: #f0b6ad;
  background: #fff6f5;
}

.metal-factor-card.neutral,
.metal-ratio-card.neutral,
.metal-forecast-card.neutral {
  background: #f8faf9;
}

.metal-forecast-panel,
.metal-ratio-panel,
.metal-sources-panel {
  padding: 16px;
}

.metal-forecast-chart {
  overflow-x: auto;
  border: 1px solid #e2ece8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfefd);
}

.metal-forecast-chart svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.metal-loading-chart {
  display: grid;
  min-height: 220px;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #52645e;
}

.metal-loading-chart strong {
  color: #102d28;
  font-size: 24px;
  font-weight: 950;
}

.metal-loading-chart span {
  font-size: 13px;
  font-weight: 850;
}

.metal-grid-line {
  stroke: #d9e5e1;
  stroke-dasharray: 4 5;
}

.metal-forecast-area {
  fill: rgba(10, 143, 121, .13);
}

.metal-forecast-line {
  fill: none;
  stroke: #0a8f79;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metal-point circle {
  fill: #fff;
  stroke: #0a8f79;
  stroke-width: 4;
}

.metal-point.negative circle {
  stroke: #c7352d;
}

.metal-point text {
  fill: #263d38;
  font-size: 12px;
  font-weight: 900;
  direction: rtl;
  unicode-bidi: plaintext;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
}

.metal-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metal-source-card {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe9e5;
  border-radius: 9px;
  background: #fbfefd;
  color: inherit;
  padding: 12px;
  text-decoration: none;
}

.metal-source-card strong {
  color: #0c6f60;
  font-weight: 950;
}

.metal-source-card span {
  color: #5b6b66;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.metals-page .metals-hero-panel p,
.metals-page .metal-sources-panel,
.metals-page .metal-factor-card {
  display: none !important;
}

.metals-page .metal-ops-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .metal-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metal-kpi-grid,
  .metal-forecast-cards,
  .metal-ratio-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metal-session-top,
  .metal-session-main {
    grid-template-columns: 1fr;
  }

  .metal-session-kpis,
  .metal-session-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .metals-page .topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    min-height: auto;
    padding: 8px 10px;
  }

  .metals-page .topbar__brand h1 {
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
  }

  .metals-page .topbar__meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .metals-page #backToMarketIconBtn {
    display: none;
  }

  .metals-page .home-return-btn,
  .metals-page .metals-shortcut-btn,
  .metals-page .status-pill {
    min-width: 0;
    min-height: 38px;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .metals-page .home-return-btn,
  .metals-page .metals-shortcut-btn {
    justify-content: center;
  }

  .metals-page .home-return-btn span,
  .metals-page .metals-shortcut-btn span {
    width: 22px;
    height: 22px;
  }

  .metals-page .status-pill {
    max-width: 138px;
    overflow: hidden;
    justify-content: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metals-shell {
    padding: 10px 8px 18px;
  }

  .metals-workspace {
    gap: 10px;
  }

  .metals-hero-panel,
  .metals-room-head,
  .metal-ops-grid,
  .metal-ratio-board,
  .metal-session-top,
  .metal-session-main {
    grid-template-columns: 1fr;
  }

  .metals-hero-panel,
  .metals-room,
  .metal-forecast-panel,
  .metal-ratio-panel {
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(20, 52, 45, .06);
  }

  .metals-hero-panel {
    gap: 10px;
    padding: 12px;
  }

  .metals-eyebrow,
  .metals-room-head span {
    font-size: 10px;
  }

  .metals-hero-panel h2,
  .metals-room-head h2 {
    font-size: 21px;
    line-height: 1.22;
  }

  .metals-hero-actions,
  .metals-room-controls {
    justify-content: stretch;
  }

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

  .metals-hero-actions .primary-btn,
  .metals-hero-actions .secondary-btn {
    min-width: 0;
    padding-inline: 8px;
  }

  .metal-selector-grid,
  .metal-kpi-grid,
  .metal-forecast-cards,
  .metal-session-kpis,
  .metal-session-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metal-session-dashboard {
    padding: 10px;
    border-radius: 8px;
  }

  .metal-session-ribbon,
  .metal-session-hero {
    grid-template-columns: 1fr;
  }

  .metal-session-ribbon {
    display: grid;
    align-items: stretch;
  }

  .metal-session-hero {
    gap: 10px;
    min-height: auto;
    padding: 12px;
    text-align: center;
  }

  .metal-decision-ring {
    width: 116px;
    justify-self: center;
  }

  .metal-decision-ring strong {
    font-size: 28px;
  }

  .metal-scenario-rail article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .metal-scenario-rail article::before {
    grid-row: auto;
  }

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

  .metal-selector-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 76px;
    padding: 10px;
    border-radius: 8px;
  }

  .metal-selector-card > span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }

  .metal-selector-card strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .metal-selector-card small {
    font-size: 10px;
    line-height: 1.25;
  }

  .metals-room {
    gap: 10px;
    padding: 10px;
  }

  .metals-room-head {
    gap: 10px;
  }

  .metals-room-head p {
    font-size: 12px;
    line-height: 1.55;
  }

  .compact-field {
    min-width: 0;
    width: 100%;
  }

  .metal-kpi-card,
  .metal-empty-card,
  .metal-forecast-card,
  .metal-ratio-card,
  .metal-decision-card {
    min-height: 118px;
    padding: 10px;
    border-radius: 8px;
  }

  .metal-kpi-card span,
  .metal-forecast-card span,
  .metal-ratio-card span,
  .metal-decision-card span {
    font-size: 10px;
    line-height: 1.35;
  }

  .metal-kpi-card strong,
  .metal-forecast-card strong,
  .metal-ratio-card strong,
  .metal-decision-card strong {
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .metal-kpi-card small,
  .metal-forecast-card small,
  .metal-ratio-card small,
  .metal-decision-card small {
    font-size: 10px;
    line-height: 1.45;
  }

  .metal-kpi-card b,
  .metal-forecast-card b {
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.2;
  }

  .metal-decision-card {
    min-height: auto;
  }

  .metal-forecast-panel,
  .metal-ratio-panel {
    padding: 10px;
  }

  .metal-forecast-panel .panel__header h2,
  .metal-ratio-panel .panel__header h2 {
    font-size: 16px;
    line-height: 1.3;
  }

  .metal-forecast-panel .panel__header p,
  .metal-ratio-panel .panel__header p {
    font-size: 11px;
    line-height: 1.5;
  }

  .metal-forecast-chart {
    overflow: hidden;
    border-radius: 8px;
  }

  .metal-forecast-chart svg {
    min-width: 0;
    width: 100%;
  }

  .metal-point text {
    font-size: 10px;
    stroke-width: 3px;
  }

  .metal-ratio-board {
    gap: 8px;
  }

  .legal-note {
    padding: 10px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .metal-kpi-grid,
  .metal-forecast-cards,
  .metal-session-kpis,
  .metal-session-bottom,
  .metal-session-levels {
    grid-template-columns: 1fr;
  }

  .metal-kpi-card,
  .metal-forecast-card {
    min-height: auto;
  }
}

/* Synchronized decision colors across stocks and metals */
.dashboard-hero-card.decision-add,
.after-hours-hero.decision-add,
.master-decision-hero.add,
.metal-session-hero.decision-add {
  border-color: #84d0bd;
  background:
    radial-gradient(circle at 18% 14%, rgba(10, 157, 130, .14), transparent 34%),
    linear-gradient(135deg, #effcf8, #ffffff);
}

.dashboard-hero-card.decision-lighten,
.after-hours-hero.decision-lighten,
.master-decision-hero.lighten,
.metal-session-hero.decision-lighten {
  border-color: #99c4ed;
  background:
    radial-gradient(circle at 18% 14%, rgba(47, 127, 197, .13), transparent 34%),
    linear-gradient(135deg, #f0f7ff, #ffffff);
}

.dashboard-hero-card.decision-hold,
.after-hours-hero.decision-hold,
.master-decision-hero.hold,
.metal-session-hero.decision-hold {
  border-color: #cbd7d1;
  background:
    radial-gradient(circle at 18% 14%, rgba(112, 125, 119, .12), transparent 34%),
    linear-gradient(135deg, #f7f9f8, #ffffff);
}

.dashboard-hero-card.decision-exit,
.after-hours-hero.decision-exit {
  border-color: #eba7a7;
  background:
    radial-gradient(circle at 18% 14%, rgba(211, 78, 78, .12), transparent 34%),
    linear-gradient(135deg, #fff4f4, #ffffff);
}

.dashboard-decision-ring.decision-add,
.master-ring.add,
.metal-decision-ring.decision-add {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#08a77f calc(var(--score) * 1%), #dcece7 0);
  box-shadow: inset 0 0 0 10px rgba(8, 167, 127, .08);
}

.dashboard-decision-ring.decision-lighten,
.master-ring.lighten,
.metal-decision-ring.decision-lighten {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#2f7fc5 calc(var(--score) * 1%), #dce9f6 0);
  box-shadow: inset 0 0 0 10px rgba(47, 127, 197, .08);
}

.dashboard-decision-ring.decision-hold,
.master-ring.hold,
.metal-decision-ring.decision-hold {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#7b8882 calc(var(--score) * 1%), #e1e7e4 0);
  box-shadow: inset 0 0 0 10px rgba(123, 136, 130, .08);
}

.dashboard-decision-ring.decision-exit {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#d34e4e calc(var(--score) * 1%), #f2dfdf 0);
  box-shadow: inset 0 0 0 10px rgba(211, 78, 78, .08);
}

.dashboard-decision-ring.decision-add strong,
.master-ring.add strong,
.metal-decision-ring.decision-add strong { color: #07886b; }
.dashboard-decision-ring.decision-lighten strong,
.master-ring.lighten strong,
.metal-decision-ring.decision-lighten strong { color: #1f66ad; }
.dashboard-decision-ring.decision-hold strong,
.master-ring.hold strong,
.metal-decision-ring.decision-hold strong { color: #66716d; }
.dashboard-decision-ring.decision-exit strong { color: #b12e2e; }

.liquidity-move-summary.supports-up {
  border-color: #9ddcc8;
  background: #f1fbf7;
  color: #067a63;
}

.liquidity-move-summary.supports-down {
  border-color: #efb0b0;
  background: #fff5f5;
  color: #b12e2e;
}

.liquidity-move-summary.supports-neutral {
  border-color: #d8e3de;
  background: #f8faf9;
  color: #52645e;
}

.metal-support-map {
  display: grid;
  gap: 12px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(19, 49, 43, .045);
}

.metal-support-map header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.metal-support-map header span,
.metal-support-map article span {
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.metal-support-map header strong {
  color: #17342e;
  font-size: 18px;
  font-weight: 950;
}

.metal-support-map header small,
.metal-support-map article small {
  color: #52645e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.metal-support-map > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metal-support-map article {
  display: grid;
  gap: 6px;
  min-height: 116px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.metal-support-map article strong {
  color: #17342e;
  font-size: 24px;
  font-weight: 950;
}

.metal-support-map .support { border-color: #84d0bd; background: #effcf8; }
.metal-support-map .resistance { border-color: #99c4ed; background: #f0f7ff; }
.metal-support-map .pivot { border-color: #d8e3de; background: #f8faf9; }
.metal-support-map .zones { border-color: #efd0a8; background: #fff8ee; }

.metal-liquidity-radar.radar-up small {
  border-color: #9ddcc8;
  background: #f1fbf7;
  color: #067a63;
}

.metal-liquidity-radar.radar-down small {
  border-color: #efb0b0;
  background: #fff5f5;
  color: #b12e2e;
}

.metal-liquidity-radar.radar-down .metal-mini-ring {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#d34e4e calc(var(--score) * 1%), #f2dfdf 0);
  box-shadow: inset 0 0 0 9px rgba(211, 78, 78, .08);
}

.metal-liquidity-radar.radar-up .metal-mini-ring {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#08a77f calc(var(--score) * 1%), #dcece7 0);
}

.metal-liquidity-radar.radar-neutral .metal-mini-ring {
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(#7b8882 calc(var(--score) * 1%), #e1e7e4 0);
}

@media (max-width: 820px) {
  .metal-support-map > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .metal-support-map > div {
    grid-template-columns: 1fr;
  }
}

.forecast-week-split__title em {
  display: block;
  margin-top: 6px;
  border: 1px solid #d9e8e3;
  border-radius: 8px;
  background: #f8fbfa;
  color: #40534b;
  padding: 8px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.dashboard-intervention-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(19, 49, 43, .045);
}

.dashboard-intervention-card span {
  color: #61726d;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-intervention-card strong {
  color: #17342e;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.dashboard-intervention-card small,
.dashboard-intervention-card em {
  color: #52645e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.dashboard-intervention-card.warning {
  border-color: #efc27e;
  background: #fff8ee;
  box-shadow: inset 5px 0 0 #d78a28, 0 10px 24px rgba(148, 89, 24, .08);
}

.dashboard-intervention-card.warning strong {
  color: #9a5a0c;
}

.dashboard-intervention-card.calm {
  border-color: #cfe2dc;
  background: #f8fbfa;
}

.forecast-point.intervention circle,
.week-point.intervention circle {
  fill: #fff;
  stroke: #d78a28;
  stroke-width: 5;
}

.forecast-point.intervention text,
.week-point.intervention text {
  fill: #9a5a0c;
}
.forecast-stability-note {
  display: block;
  width: min(760px, 100%);
  margin: 6px auto 0;
  padding: 7px 10px;
  border: 1px solid rgba(0, 137, 112, 0.18);
  border-radius: 8px;
  background: rgba(0, 137, 112, 0.07);
  color: #21413b;
  font-weight: 700;
  line-height: 1.6;
}

/* Advanced Candlestick & Technical Chart Overlays */
.candle-wick {
  stroke-linecap: round;
}
.candle-body {
  cursor: crosshair;
  transition: opacity 0.15s ease;
}
.candle-body:hover {
  opacity: 0.85;
}
.volume-bar {
  transition: opacity 0.15s ease;
}
.volume-bar:hover {
  opacity: 0.65 !important;
}
.target-line, .stop-line, .support-line, .resistance-line {
  pointer-events: none;
}
.level-tag {
  font-family: var(--font-sans, system-ui, sans-serif);
  paint-order: stroke fill;
  stroke: var(--bg-surface, #0f172a);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.chart-canvas svg {
  width: 100%;
  height: auto;
  min-height: 340px;
  user-select: none;
}

/* DeepSeek-R1 Chain-of-Thought Reasoning Disclosure */
.reasoning-disclosure {
  margin: 12px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.22);
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.reasoning-disclosure[open] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.12);
}
.reasoning-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.reasoning-icon {
  font-size: 1.15rem;
}
.reasoning-body {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85rem;
  border-inline-start: 3px solid #6366f1;
}

