:root {
  color-scheme: light;
  --app-font-delta: 0px;
  --bg: #eef0f4;
  --chrome: rgba(247, 248, 251, 0.82);
  --chrome-strong: rgba(255, 255, 255, 0.92);
  --sidebar: rgba(236, 238, 243, 0.78);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-tint: #f6f7fa;
  --line: rgba(23, 26, 31, 0.11);
  --line-strong: rgba(23, 26, 31, 0.18);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #9a9aa1;
  --blue: #007aff;
  --blue-soft: rgba(0, 122, 255, 0.1);
  --green: #168a45;
  --red: #d92d20;
  --price-up: var(--red);
  --price-down: var(--green);
  --yellow: #b77900;
  --chart-bg: #101216;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px rgba(32, 36, 45, 0.12);
  --intel-ring-core: var(--panel-solid);
  --intel-section-bg: var(--panel-tint);
}

.intel-overview { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr); gap:10px; }
.intel-overview > section,.intel-method { border:1px solid var(--line); background:var(--intel-section-bg); padding:14px; }
.intel-verdict { border-left:3px solid #c8a96a!important; }
.intel-verdict.positive { border-left-color:#ff5964!important; }
.intel-verdict.negative { border-left-color:#2bd179!important; }
.intel-verdict span,.intel-verdict em { display:block; color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); font-style:normal; }
.intel-verdict strong { display:block; margin:7px 0; font-size: calc(28px + var(--app-font-delta, 0px)); }
.intel-verdict p { margin:0 0 12px; color:var(--muted); line-height:1.55; }
.intel-scores { display:grid; grid-template-columns:repeat(4,1fr); align-items:center; }
.intel-score { display:grid; justify-items:center; gap:7px; color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.intel-score i { --score:0; width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#2d6bff calc(var(--score)*1%),var(--line) 0); position:relative; font-style:normal; }
.intel-score i::after { content:""; position:absolute; inset:5px; border-radius:inherit; background:var(--intel-ring-core); }
.intel-score b { position:relative; z-index:1; color:var(--text); font-size: calc(17px + var(--app-font-delta, 0px)); }
.intel-evidence,.intel-reasoning,.intel-sectors,.intel-divergence,.intel-model-note,.intel-method { grid-column:1/-1; }
.intel-verdict small { display:block; margin-top:7px; color:var(--faint); font-size: calc(10px + var(--app-font-delta, 0px)); }
.intel-model-note { display:grid; grid-template-columns:auto 1fr; gap:5px 14px; }
.intel-model-note span,.intel-model-note p { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.intel-model-note p { grid-column:1/-1; margin:2px 0 0; }
.intel-overview header { display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; }
.intel-overview header span { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.intel-evidence > div { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.intel-evidence article { display:grid; gap:4px; min-width:0; }
.intel-evidence article span,.intel-evidence article small { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.intel-evidence article b { font-size: calc(18px + var(--app-font-delta, 0px)); }
.intel-reasoning > div { display:grid; grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr); align-items:stretch; gap:6px; }
.intel-reasoning article { display:grid; align-content:start; gap:7px; min-width:0; padding:12px; border-top:2px solid rgba(45,107,255,.52); background:linear-gradient(145deg,rgba(45,107,255,.09),rgba(255,255,255,.018)); }
.intel-reasoning article span,.intel-reasoning article small { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); line-height:1.45; }
.intel-reasoning article b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size: calc(16px + var(--app-font-delta, 0px)); }
.intel-reasoning i { display:grid; place-items:center; color:#c8a96a; font-size: calc(17px + var(--app-font-delta, 0px)); font-style:normal; }
.intel-sectors > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; }
.intel-sectors button { display:grid; grid-template-columns:28px minmax(0,1fr); grid-template-rows:repeat(5,auto); align-content:start; gap:6px 10px; min-width:0; min-height:156px; padding:14px; text-align:left; background:linear-gradient(145deg,rgba(45,107,255,.09),rgba(200,169,106,.035)); border:1px solid var(--line); color:var(--text); }
.intel-sectors button:hover { border-color:rgba(45,107,255,.55); transform:translateY(-2px); }
.intel-sectors button em { grid-row:1/-1; color:#c8a96a; font-size: calc(11px + var(--app-font-delta, 0px)); line-height:1.45; font-style:normal; }
.intel-sectors button b,.intel-sectors button span,.intel-sectors button small,.intel-sectors button u { grid-column:2; min-width:0; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
.intel-sectors button b { font-size: calc(16px + var(--app-font-delta, 0px)); line-height:1.25; }
.intel-sectors button span { font-size: calc(18px + var(--app-font-delta, 0px)); line-height:1.2; font-weight:750; }
.intel-sectors button small { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); line-height:1.45; }
.intel-sectors button u { color:#6f9cff; font-size: calc(10px + var(--app-font-delta, 0px)); line-height:1.3; text-decoration:none; opacity:.68; transition:.18s ease; }
.intel-sectors button:hover u,.intel-sectors button:focus-visible u { opacity:1; }
.intel-divergence article { border-left:2px solid #c8a96a; padding-left:10px; }
.intel-divergence p { color:var(--muted); margin:5px 0 0; line-height:1.5; }
.intel-method { color:var(--muted); }
.intel-method summary { cursor:pointer; color:var(--text); }
.intel-method p { display:grid; grid-template-columns:100px 1fr; gap:10px; margin:8px 0 0; }
.intel-method b { color:#c8a96a; }
body.market-intel-focus { overflow:hidden; }
.market-intel-panel.market-intel-expanded {
  position:fixed!important;
  inset:14px!important;
  width:auto!important;
  height:auto!important;
  z-index:1200!important;
  overflow:hidden!important;
  box-shadow:0 34px 100px rgba(0,0,0,.72),0 0 0 1px rgba(200,169,106,.34)!important;
}
.market-intel-expanded .market-intel-content { height:calc(100vh - 245px); min-height:0; padding-right:6px; }
.market-intel-expanded .intel-overview { grid-template-columns:minmax(300px,.72fr) minmax(520px,1.28fr); gap:12px; }
.market-intel-expanded .intel-overview > section,.market-intel-expanded .intel-method { padding:16px; }
.market-intel-expanded .intel-sectors > div { grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
@media (min-width:1101px) {
  .intel-reasoning > div { grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr); }
}
@media (min-width:760px) and (max-width:1100px) {
  .intel-overview,.market-intel-expanded .intel-overview { grid-template-columns:1fr; }
  .intel-reasoning > div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .intel-reasoning > div > i { display:none; }
  .intel-sectors > div,.market-intel-expanded .intel-sectors > div { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
}
@media (max-width:759px) {
  .intel-overview,.market-intel-expanded .intel-overview { grid-template-columns:1fr; }
  .intel-scores,.intel-evidence > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .intel-reasoning > div { grid-template-columns:1fr; gap:8px; border-left:1px solid var(--line-strong); padding-left:10px; }
  .intel-reasoning > div > i { display:none; }
  .intel-sectors > div,.market-intel-expanded .intel-sectors > div { grid-template-columns:1fr; }
}

html[data-color-mode="global"] {
  --price-up: var(--green);
  --price-down: var(--red);
}

html[data-theme="terminal"] {
  color-scheme: dark;
  --bg: #101113;
  --chrome: rgba(25, 27, 31, 0.9);
  --chrome-strong: #191b1f;
  --sidebar: rgba(14, 15, 17, 0.92);
  --panel: rgba(25, 27, 31, 0.94);
  --panel-solid: #191b1f;
  --panel-tint: #202328;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

html[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #101827;
  --chrome: rgba(19, 31, 49, 0.84);
  --chrome-strong: #172337;
  --sidebar: rgba(15, 23, 42, 0.88);
  --panel: rgba(23, 35, 55, 0.9);
  --panel-solid: #172337;
  --panel-tint: #1d2b43;
  --line: rgba(191, 219, 254, 0.16);
  --line-strong: rgba(191, 219, 254, 0.28);
  --text: #eff6ff;
  --muted: #b6c6db;
  --faint: #7f93ad;
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.14);
}

html[data-theme="paper"] {
  color-scheme: light;
  --bg: #f5f1e8;
  --chrome: rgba(255, 252, 244, 0.86);
  --chrome-strong: #fffaf0;
  --sidebar: rgba(238, 232, 219, 0.82);
  --panel: rgba(255, 252, 244, 0.9);
  --panel-solid: #fffaf0;
  --panel-tint: #f4ecdd;
  --line: rgba(72, 61, 49, 0.14);
  --line-strong: rgba(72, 61, 49, 0.22);
  --text: #25211d;
  --muted: #736b62;
  --faint: #9b9287;
  --blue: #8a5a00;
  --blue-soft: rgba(138, 90, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -4%, rgba(0, 122, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(88, 86, 214, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f7fb 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  letter-spacing: 0;
}

html[data-theme="terminal"] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(0, 122, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #111317, #090a0c);
}

html[data-theme="midnight"] body {
  background:
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.2), transparent 32%),
    linear-gradient(180deg, #142034, #0f172a);
}

html[data-theme="paper"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(138, 90, 0, 0.11), transparent 30%),
    linear-gradient(180deg, #fbf6eb, #f5f1e8);
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(66, 252, 255, 0.14), transparent 36%),
    radial-gradient(circle at 18% 14%, rgba(252, 66, 255, 0.14), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(99, 102, 241, 0.16), transparent 31%),
    linear-gradient(145deg, #080712, #070b17 58%, #02040a);
}

.auth-screen.hidden {
  display: none;
}

.magic-rings-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  opacity: 1;
}

.auth-visual,
.auth-card {
  position: relative;
  z-index: 1;
}

.auth-visual {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.auth-visual strong {
  color: #f8fbff;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.92;
  font-weight: 900;
  text-shadow: 0 24px 80px rgba(66, 252, 255, 0.32);
}

.auth-decrypted-line {
  display: inline-block;
  min-height: 1.08em;
  max-width: min(620px, 82vw);
  color: rgba(211, 218, 232, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-shadow: 0 10px 34px rgba(4, 10, 24, 0.32);
}

.auth-decrypted-line .decrypted-char {
  color: rgba(211, 218, 232, 0.9);
}

.auth-decrypted-line .encrypted-char {
  color: rgba(170, 178, 194, 0.62);
  text-shadow: none;
}

.auth-visual p {
  max-width: none;
  margin: 2px 0 0;
  color: #a8b3c7;
  font-size: calc(20px + var(--app-font-delta, 0px));
  text-align: center;
  font-weight: 650;
}

.auth-card {
  width: min(440px, 92vw);
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(18, 24, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-tabs button {
  height: 38px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.auth-tabs button.active {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: #d7deea;
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 650;
}

.auth-card input {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  user-select: text;
  -webkit-user-select: text;
  -webkit-user-modify: read-write-plaintext-only;
}

.auth-card small {
  color: #98a2b3;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border-radius: var(--radius-sm);
}

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.rail-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.rail {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
  transition: padding 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 150ms ease, transform 220ms ease;
}

.rail-toggle {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  background: var(--panel-tint);
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 220ms ease;
}

.rail-toggle:hover,
.rail-toggle:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--panel-solid) 80%, var(--blue) 20%);
}

.rail-toggle span {
  font-size: calc(22px + var(--app-font-delta, 0px));
  line-height: 1;
}

.mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #dfe4ec);
  color: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 35, 44, 0.12);
}

.kimflow-mark {
  overflow: hidden;
  background-color: #fff;
  background-image: url("/assets/brand/kimflow-mark.svg"), url("/assets/brand/kimflow-app-icon.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: calc(15px + var(--app-font-delta, 0px));
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

nav {
  display: grid;
  gap: 6px;
}

nav button,
.periods button,
.tier-switch button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

nav button {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.rail-icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: calc(20px + var(--app-font-delta, 0px));
  font-weight: 500;
  line-height: 1;
}

.rail-icon-strategy {
  font-size: calc(23px + var(--app-font-delta, 0px));
}

.rail-icon-settings {
  font-size: calc(18px + var(--app-font-delta, 0px));
}

nav button .rail-label {
  color: inherit;
  font-size: calc(14px + var(--app-font-delta, 0px));
  font-weight: 650;
  white-space: nowrap;
}

nav button small {
  margin-left: auto;
  color: var(--faint);
  font-size: calc(12px + var(--app-font-delta, 0px));
  white-space: nowrap;
}

.rail-collapsed .rail {
  padding-inline: 10px;
}

.rail-collapsed .rail-header {
  display: grid;
  justify-items: center;
}

.rail-collapsed .brand {
  justify-content: center;
}

.rail-collapsed .brand-copy {
  width: 0;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.rail-collapsed .mark {
  width: 42px;
  height: 42px;
}

.rail-collapsed .rail-toggle {
  width: 42px;
  height: 28px;
  transform: rotate(180deg);
}

.rail-collapsed nav button {
  width: 52px;
  height: 48px;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.rail-collapsed nav button .rail-label,
.rail-collapsed nav button small {
  width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.rail-collapsed nav button::after {
  content: attr(data-rail-label);
  position: fixed;
  left: 68px;
  z-index: 300;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.rail-collapsed nav button:hover::after,
.rail-collapsed nav button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  .rail,
  .brand-copy,
  .rail-toggle,
  .rail-collapsed nav button::after {
    transition: none;
  }
}

button:active {
  transform: scale(0.985);
}

button.active,
nav button:hover,
.periods button:hover,
.tier-switch button:hover,
.settings-entry:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

nav button.active {
  box-shadow: 0 10px 26px rgba(32, 36, 45, 0.08);
}

button.active small {
  color: var(--blue);
}

.workspace {
  min-width: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
}

.window-bar {
  height: 42px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 14px;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: var(--shadow);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.traffic-lights .close {
  background: #ff5f57;
}

.traffic-lights .minimize {
  background: #ffbd2e;
}

.traffic-lights .zoom {
  background: #28c840;
}

.window-title {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.window-title strong {
  color: var(--text);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.window-status {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.topbar {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) auto auto auto minmax(150px, auto) auto auto;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search {
  min-width: 430px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--chrome-strong);
  border: 1px solid rgba(0, 122, 255, 0.28);
  border-radius: 16px;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(0, 122, 255, 0.09);
}

.search span {
  flex: none;
  color: var(--blue);
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 800;
}

.search input {
  font-size: calc(15px + var(--app-font-delta, 0px));
  font-weight: 650;
}

.search button {
  flex: none;
  height: 32px;
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
}

.search input,
.strategy input,
textarea {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

.search-results {
  position: absolute;
  z-index: 80;
  left: 0;
  top: 58px;
  width: min(640px, 72vw);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.search-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  border-bottom: 1px solid var(--line);
}

.search-results button {
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.search-results button:hover,
.search-result-row:hover {
  background: var(--panel-tint);
}

.search-results .add-watch-btn {
  justify-content: center;
  border-left: 1px solid var(--line);
  color: var(--blue);
  font-weight: 760;
}

.market-state {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 0 14px;
  background: var(--chrome-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  white-space: nowrap;
}

.market-state small {
  grid-column: 2;
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.market-state.monitor-warn {
  border-color: rgba(255, 174, 0, 0.65);
}

.market-state.monitor-error {
  border-color: rgba(255, 69, 58, 0.75);
}

.data-integrity-text {
  color: #35c759 !important;
}

.monitor-warn .data-integrity-text {
  color: #ffb340 !important;
}

.monitor-error .data-integrity-text {
  color: #ff6961 !important;
}

.data-check {
  height: 46px;
  border: 1px solid rgba(0, 122, 255, 0.24);
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 720;
  cursor: pointer;
  padding: 0 13px;
  white-space: nowrap;
}

.data-check.loading {
  opacity: 0.68;
  cursor: wait;
}

.settings-entry {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(120, 120, 128, 0.13);
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 720;
  cursor: pointer;
  padding: 0 15px;
  white-space: nowrap;
}

.color-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 230px;
}

.color-mode-switch button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-tint);
  color: var(--muted);
  cursor: pointer;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.color-mode-switch button.active {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 42%, transparent);
  background: var(--blue-soft);
}

.account-pill {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(52, 199, 89, 0.26);
  border-radius: 14px;
  background: rgba(52, 199, 89, 0.1);
  color: var(--green);
  padding: 5px 12px;
  white-space: nowrap;
}

.account-pill span {
  max-width: 170px;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(10px + var(--app-font-delta, 0px));
  text-overflow: ellipsis;
}

.membership-badge {
  color: inherit;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.account-pill.locked {
  border-color: rgba(255, 59, 48, 0.28);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}

.compliance-badge {
  height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 214, 10, 0.32);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 214, 10, 0.08);
  color: #ffd60a;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.compliance-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--panel-tint);
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.compliance-first-use {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  width: min(560px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.compliance-first-use[hidden] {
  display: none;
}

.compliance-first-use strong {
  display: block;
  font-size: calc(14px + var(--app-font-delta, 0px));
}

.compliance-first-use p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

.compliance-first-use button {
  height: 34px;
  flex: none;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
}

.tier-switch {
  height: 46px;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(120, 120, 128, 0.13);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.theme-switch {
  height: 46px;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(120, 120, 128, 0.13);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.theme-switch button {
  height: 36px;
  min-width: 72px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch button.active {
  color: #fff;
  background: var(--blue);
}

.theme-card.active {
  border-color: rgba(0, 122, 255, 0.6);
  background: var(--blue-soft);
}

.tier-switch button,
.periods button {
  min-width: 64px;
  height: 36px;
  border-radius: 10px;
}

.tier-switch button.active,
.periods button.active {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}

.clock {
  min-width: 84px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.settings-overlay.open {
  pointer-events: auto;
}

.settings-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.settings-overlay.open .settings-scrim {
  background: rgba(0, 0, 0, 0.28);
}

.settings-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  color: var(--text);
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
  overflow: auto;
}

.settings-overlay.open .settings-drawer {
  transform: translateX(0);
}

.settings-head {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-head strong {
  display: block;
  font-size: calc(20px + var(--app-font-delta, 0px));
}

.settings-head span,
.settings-section p {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.settings-head button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-tint);
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.settings-section h2 {
  font-size: calc(14px + var(--app-font-delta, 0px));
}

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

.font-size-setting {
  display: grid;
  gap: 10px;
}

.font-size-setting > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.font-size-options button {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-tint);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.font-size-options button:hover {
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  color: var(--text);
}

.font-size-options button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent);
}

.theme-card {
  min-height: 112px;
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-tint);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.theme-card strong {
  font-size: calc(14px + var(--app-font-delta, 0px));
}

.theme-card small {
  color: var(--muted);
}

.swatch {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.swatch-mac {
  background: linear-gradient(135deg, #f7fbff, #dbeafe 55%, #ffffff);
}

.swatch-terminal {
  background: linear-gradient(135deg, #0b1118, #1c2430 55%, #0a84ff);
}

.swatch-midnight {
  background: linear-gradient(135deg, #071426, #102a52 55%, #64d2ff);
}

.swatch-paper {
  background: linear-gradient(135deg, #fbf7ee, #e6ddca 55%, #111827);
}

.settings-line {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-tint);
}

.settings-line span {
  color: var(--muted);
}

.settings-wide {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(0, 122, 255, 0.24);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 760;
  cursor: pointer;
}

.settings-wide.danger {
  border-color: rgba(255, 59, 48, 0.28);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}

.change-password-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-tint);
}

.change-password-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.change-password-form input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chrome-strong);
  color: var(--text);
}

.change-password-status {
  min-height: 18px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.change-password-status.success {
  color: #35c759;
}

.change-password-status.danger {
  color: var(--red);
}

.member-contact-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 14px;
  background: var(--blue-soft);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.member-contact-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.5);
  background: color-mix(in srgb, var(--blue-soft) 82%, rgba(255, 255, 255, 0.08));
}

.member-contact-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.member-contact-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: calc(20px + var(--app-font-delta, 0px));
  line-height: 1.15;
}

.member-contact-card p,
.member-contact-card small {
  margin: 0;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.member-contact-card p {
  margin-bottom: 6px;
}

.wechat-qr {
  width: 128px;
  height: 164px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
  place-items: center;
  padding: 24px;
}

.wechat-qr-modal.open {
  display: grid;
}

.wechat-qr-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px);
}

.wechat-qr-panel {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(18, 22, 30, 0.98), rgba(8, 10, 14, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.wechat-qr-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.wechat-qr-panel header span {
  color: var(--blue);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 850;
}

.wechat-qr-panel h2 {
  margin: 5px 0;
  font-size: calc(26px + var(--app-font-delta, 0px));
}

.wechat-qr-panel p,
.wechat-qr-panel small {
  margin: 0;
  color: var(--muted);
}

.wechat-qr-panel button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-tint);
  color: var(--text);
  cursor: pointer;
}

.wechat-qr-panel > img {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.upgrade-card {
  padding: 16px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 14px;
  background: var(--blue-soft);
}

.upgrade-card h3 {
  margin: 0 0 8px;
}

.upgrade-card p {
  margin: 0 0 12px;
}

.upgrade-card button {
  width: 100%;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 122, 255, 0.5);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #25d9ff);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 28px;
}

.pricing-modal.open {
  display: grid;
}

.pricing-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(16px);
}

.pricing-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 122, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(19, 22, 30, 0.98), rgba(8, 10, 14, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.pricing-head span {
  color: var(--blue);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 850;
}

.pricing-head h2 {
  margin: 6px 0;
  font-size: calc(28px + var(--app-font-delta, 0px));
}

.pricing-head p,
.pricing-foot span {
  margin: 0;
  color: var(--muted);
}

.pricing-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-tint);
  color: var(--text);
  cursor: pointer;
}

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

.pricing-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.5);
  background: linear-gradient(145deg, rgba(0, 122, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.pricing-card.featured {
  border-color: rgba(0, 122, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.18), 0 18px 46px rgba(0, 122, 255, 0.12);
}

.pricing-card.current {
  border-color: rgba(52, 199, 89, 0.5);
}

.pricing-card-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.pricing-card-head span {
  color: var(--text);
  font-weight: 850;
}

.pricing-card-head em {
  border: 1px solid rgba(0, 122, 255, 0.38);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: calc(11px + var(--app-font-delta, 0px));
  font-style: normal;
  font-weight: 800;
}

.pricing-card > strong {
  display: block;
  margin-top: 18px;
  font-size: calc(30px + var(--app-font-delta, 0px));
}

.pricing-price-group {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.pricing-price-group strong {
  width: fit-content;
  border: 1px solid rgba(0, 122, 255, 0.32);
  border-radius: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 122, 255, 0.12);
  font-size: calc(22px + var(--app-font-delta, 0px));
}

.pricing-card > p {
  min-height: 42px;
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-benefits {
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
}

.pricing-benefits div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.pricing-benefits i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 900;
}

.pricing-benefits .checked i {
  background: var(--blue);
  color: #fff;
}

.pricing-benefits .unchecked i {
  background: rgba(120, 120, 128, 0.24);
  color: var(--muted);
}

.pricing-card > button {
  height: 40px;
  margin-top: auto;
  border: 1px solid rgba(0, 122, 255, 0.45);
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  cursor: pointer;
}

.pricing-card.featured > button {
  background: linear-gradient(135deg, var(--blue), #22d3ee);
  color: #fff;
}

.pricing-card > button:disabled {
  opacity: 0.58;
  cursor: default;
}

.credit-pricing {
  margin-top: 16px;
}

.credit-pricing-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1fr) minmax(280px, 1.4fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.credit-pricing-panel > div:first-child span {
  color: var(--blue);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 850;
}

.credit-pricing-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.credit-pack-grid,
.credit-cost-grid {
  display: grid;
  gap: 8px;
}

.credit-pack-grid div,
.credit-cost-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.18);
}

.credit-pack-grid strong,
.credit-cost-grid b {
  color: #fff;
}

.credit-pack-grid span,
.credit-cost-grid span {
  color: var(--muted);
}

.pricing-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pricing-foot button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-tint);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #f5f5f7;
  background: #0b0d10;
  transform: translateY(100%);
  transition: transform 220ms ease;
  pointer-events: none;
}

.admin-panel.open {
  transform: translateY(0);
  pointer-events: auto;
}

.admin-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 132, 255, 0.2), transparent 42%),
    #0b0d10;
}

.admin-panel.unlocked .admin-lock {
  display: none;
}

.admin-login-card {
  width: min(380px, calc(100vw - 48px));
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: #171a1f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.admin-login-card .mark {
  width: 42px;
  height: 42px;
}

.admin-login-card .kimflow-mark {
  background-size: cover;
  background-position: center;
}

.admin-login-card strong {
  font-size: calc(22px + var(--app-font-delta, 0px));
}

.admin-login-card p,
.admin-login-card small {
  margin: 0;
  color: #9ca3af;
  line-height: 1.5;
}

.admin-login-card input {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: #22262d;
  color: #f5f5f7;
  outline: 0;
  padding: 0 12px;
}

.admin-login-card button {
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: #0a84ff;
  color: white;
  font-weight: 780;
  cursor: pointer;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #15171b;
}

.admin-top strong {
  display: block;
  font-size: calc(20px + var(--app-font-delta, 0px));
}

.admin-top span {
  color: #9ca3af;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.admin-top button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  padding: 0 16px;
  cursor: pointer;
}

.admin-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(520px, 1.3fr) minmax(360px, 0.9fr);
  gap: 14px;
  padding: 16px;
}

.admin-card {
  min-height: 340px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #171a1f;
  overflow: auto;
}

.admin-users {
  grid-row: span 2;
}

.admin-card h2,
.admin-card h3 {
  margin: 0;
}

.admin-help {
  margin: 6px 0 12px;
  color: #9ca3af;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

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

.admin-card input,
.admin-card select,
.admin-card textarea {
  color: #f5f5f7;
  background: #22262d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: 0;
}

.admin-card input,
.admin-card select {
  height: 38px;
  padding: 0 10px;
}

.admin-card textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px;
}

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

.admin-form textarea,
.admin-form button,
.admin-form.compact label,
.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #9ca3af;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.admin-form label span {
  padding-left: 2px;
  color: #d1d5db;
  line-height: 1.2;
}

.admin-advanced-fields {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  padding: 10px;
}

.admin-advanced-fields summary {
  color: #65b5ff;
  cursor: pointer;
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 800;
}

.admin-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.admin-table {
  display: grid;
  gap: 6px;
}

.admin-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) 92px 80px 110px 92px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.admin-user-row {
  grid-template-columns: minmax(190px, 1.4fr) 112px 92px 112px 82px 132px;
}

.order-row {
  grid-template-columns: minmax(170px, 1.2fr) minmax(160px, 1fr) 92px 88px 112px;
}

.admin-row-head {
  min-height: 34px;
  color: #9ca3af;
  background: transparent;
  border-color: transparent;
  font-weight: 760;
}

.admin-row b,
.admin-row small {
  display: block;
}

.admin-row small {
  color: #9ca3af;
}

.admin-row select,
.admin-row input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  color: #f8fafc;
  padding: 0 8px;
  font: inherit;
}

.admin-row button {
  min-height: 28px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #65b5ff;
  cursor: pointer;
  padding: 0 9px;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.admin-row button.danger {
  border-color: rgba(255, 69, 58, 0.34);
  background: rgba(255, 69, 58, 0.12);
  color: #ff8a82;
}

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

.admin-stats > div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-stats b {
  font-size: calc(24px + var(--app-font-delta, 0px));
}

.admin-stats span,
.admin-stats p {
  color: #9ca3af;
}

.admin-stats section {
  grid-column: 1 / -1;
}

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

.market-breadth-card {
  margin: -2px 0 12px;
}

.market-breadth-main {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.market-breadth-main:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: linear-gradient(135deg, var(--panel), rgba(0, 122, 255, 0.05));
}

.breadth-bar {
  min-width: 0;
  height: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadth-bar span,
.breadth-balance span {
  height: 8px;
  border-radius: 999px;
}

.breadth-bar .rise,
.breadth-balance .rise {
  background: var(--price-up);
}

.breadth-bar .fall,
.breadth-balance .fall {
  flex: 1;
  background: var(--price-down);
}

.breadth-bar i {
  width: 20px;
  height: 8px;
  transform: skewX(-28deg);
  background: color-mix(in srgb, var(--muted) 48%, transparent);
}

.breadth-counts,
.breadth-turnover {
  display: flex;
  align-items: center;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}

.breadth-counts {
  justify-content: space-between;
}

.breadth-turnover {
  grid-column: 1;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.breadth-turnover b {
  color: var(--text);
}

.breadth-source {
  grid-column: 1;
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
  font-weight: 700;
  letter-spacing: 0;
}

.market-breadth-main em {
  grid-row: 1 / span 3;
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.quote-tile,
.panel {
  background: var(--panel);
  border: 1px solid rgba(45, 107, 255, 0.72);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(200, 169, 106, 0.18),
    0 0 20px rgba(45, 107, 255, 0.18);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  --border-glow-edge: 0;
  --border-glow-angle: 45deg;
  --border-glow-opacity: 0.22;
  isolation: isolate;
  animation: panelFramePulse 4.2s ease-in-out infinite;
}

.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-tile {
  min-height: 86px;
  padding: 13px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.panel-border-glow,
.panel-edge-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.panel-border-glow {
  z-index: 0;
  border: 2px solid transparent;
  background:
    conic-gradient(
      from var(--border-glow-angle),
      rgba(200, 169, 106, 0.1),
      rgba(200, 169, 106, 0.86),
      rgba(45, 107, 255, 0.86),
      rgba(32, 227, 195, 0.62),
      rgba(255, 54, 85, 0.72),
      rgba(200, 169, 106, 0.1)
    ) border-box;
  background-size: 180% 180%;
  animation: borderGlowDrift 5.6s linear infinite;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 calc(16px + var(--border-glow-edge) * 0.22px) rgba(45, 107, 255, 0.2);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: max(0.46, var(--border-glow-opacity));
}

.panel-edge-light {
  z-index: 0;
  background:
    radial-gradient(circle at var(--border-glow-x, 50%) var(--border-glow-y, 50%), rgba(200, 169, 106, 0.2), transparent 24%),
    conic-gradient(
      from var(--border-glow-angle),
      transparent 0deg,
      rgba(45, 107, 255, 0.18) 34deg,
      rgba(32, 227, 195, 0.14) 62deg,
      transparent 104deg
    );
  mix-blend-mode: screen;
  filter: blur(14px);
  transform: translateZ(0);
  opacity: calc(var(--border-glow-opacity) * 0.78);
}

@keyframes borderGlowDrift {
  0% {
    filter: hue-rotate(0deg) saturate(1);
    background-position: 0% 50%;
  }

  50% {
    filter: hue-rotate(16deg) saturate(1.18);
    background-position: 100% 50%;
  }

  100% {
    filter: hue-rotate(0deg) saturate(1);
    background-position: 0% 50%;
  }
}

@keyframes panelFramePulse {
  0%,
  100% {
    border-color: rgba(45, 107, 255, 0.58);
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(200, 169, 106, 0.14),
      0 0 14px rgba(45, 107, 255, 0.14);
  }

  50% {
    border-color: rgba(200, 169, 106, 0.76);
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(45, 107, 255, 0.24),
      0 0 30px rgba(200, 169, 106, 0.2);
  }
}

.panel > :not(.panel-border-glow):not(.panel-edge-light),
.quote-tile > :not(.panel-border-glow):not(.panel-edge-light) {
  position: relative;
  z-index: 1;
}

.panel:hover,
.quote-tile:hover {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow), 0 0 0 1px rgba(45, 107, 255, 0.18), 0 0 28px rgba(45, 107, 255, 0.12);
  transform: translateY(-2px);
}

.ai-panel {
  border-color: rgba(200, 169, 106, 0.86);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(45, 107, 255, 0.26),
    0 0 34px rgba(200, 169, 106, 0.22),
    inset 0 0 28px rgba(45, 107, 255, 0.08);
}

.ai-panel .panel-border-glow {
  background:
    conic-gradient(
      from var(--border-glow-angle),
      rgba(200, 169, 106, 0.18),
      rgba(200, 169, 106, 0.95),
      rgba(45, 107, 255, 0.95),
      rgba(200, 169, 106, 0.95),
      rgba(200, 169, 106, 0.18)
    ) border-box;
  opacity: 0.72;
}

.ai-panel .panel-edge-light {
  background:
    radial-gradient(circle at var(--border-glow-x, 50%) var(--border-glow-y, 50%), rgba(200, 169, 106, 0.36), transparent 24%),
    linear-gradient(110deg, transparent 0%, rgba(45, 107, 255, 0.13) 42%, rgba(200, 169, 106, 0.16) 50%, transparent 58%);
  animation: aiPanelSweep 3.8s ease-in-out infinite;
  opacity: 0.48;
}

.guru-ai-panel {
  border-color: rgba(200, 169, 106, 0.7);
  background:
    linear-gradient(145deg, rgba(200, 169, 106, 0.07), transparent 34%),
    var(--panel);
}

.guru-ai-panel .panel-border-glow {
  background: conic-gradient(from var(--border-glow-angle), transparent 10%, rgba(200, 169, 106, 0.95), rgba(45, 107, 255, 0.82), transparent 58%) border-box;
  opacity: 0.62;
}

.guru-credit-badge {
  color: #ead9aa !important;
  border: 1px solid rgba(200, 169, 106, 0.44);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(200, 169, 106, 0.09);
}

.guru-analysis {
  display: grid;
  gap: 14px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding: 2px 4px 4px 0;
}

.guru-ai-panel #guruAnalyzeBtn {
  -webkit-appearance: none !important;
  appearance: none !important;
  min-width: 88px;
  height: 30px;
  padding: 0 14px;
  color: #07101d !important;
  -webkit-text-fill-color: #07101d;
  border-color: rgba(234, 217, 170, 0.86) !important;
  background-color: #c8a96a !important;
  background-image: linear-gradient(135deg, #f0dfae, #c8a96a 58%, #9e7c3d) !important;
  box-shadow: 0 5px 18px rgba(200, 169, 106, 0.22) !important;
  font-weight: 800;
}

.guru-ai-panel #guruAnalyzeBtn:hover:not(:disabled) {
  color: #05080d;
  border-color: #f3e6c1;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 169, 106, 0.34);
}

.guru-ai-panel #guruAnalyzeBtn:disabled {
  cursor: wait;
  opacity: 0.78;
}

.guru-run-state,
.guru-loading {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: rgba(7, 10, 15, 0.62);
}

.guru-run-state {
  min-height: 62px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.guru-run-state .guru-state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38c887;
  box-shadow: 0 0 14px rgba(56, 200, 135, 0.5);
}

.guru-run-state b,
.guru-run-state small {
  display: block;
}

.guru-run-state small {
  margin-top: 4px;
  line-height: 1.45;
}

.guru-run-state.error {
  border-color: rgba(255, 77, 91, 0.34);
}

.guru-run-state.error .guru-state-dot {
  background: #ff4d5b;
  box-shadow: 0 0 14px rgba(255, 77, 91, 0.45);
}

.guru-run-state button {
  height: 32px;
  border: 1px solid rgba(45, 107, 255, 0.42);
  border-radius: 7px;
  padding: 0 13px;
  background: rgba(45, 107, 255, 0.15);
  color: #79a5ff;
  cursor: pointer;
}

.guru-loading {
  min-height: 190px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 14px 18px;
}

.guru-loading h3,
.guru-loading p {
  margin: 0;
}

.guru-loading p {
  margin-top: 6px;
  color: var(--muted);
}

.guru-loading-ring {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(200, 169, 106, 0.18);
  border-top-color: #d8bb78;
  border-radius: 50%;
  animation: guruLoadingSpin 900ms linear infinite;
}

.guru-loading ol {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.guru-loading li {
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(17, 24, 32, 0.72);
}

.guru-loading li.active {
  color: #ead9aa;
  border-color: rgba(200, 169, 106, 0.38);
}

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

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

.guru-intro > div,
.guru-score-grid > div,
.guru-snapshot,
.guru-perspective-grid article,
.guru-evidence-grid article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 15, 23, 0.58);
  border-radius: 6px;
}

.guru-intro > div {
  padding: 15px;
}

.guru-intro b {
  color: #ead9aa;
  font-size: calc(24px + var(--app-font-delta, 0px));
  margin-right: 10px;
}

.guru-intro span,
.guru-analysis small,
.guru-report-head span,
.guru-perspective-grid header span {
  color: var(--muted);
}

.guru-report-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.guru-report-divider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 3px solid rgba(45, 107, 255, 0.72);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(45, 107, 255, 0.09), rgba(10, 15, 23, 0.42) 44%, transparent);
}

.guru-report-divider > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 107, 255, 0.36);
  border-radius: 50%;
  color: #9fbbff;
  background: rgba(45, 107, 255, 0.1);
  font-size: calc(11px + var(--app-font-delta, 0px));
  font-weight: 800;
}

.guru-report-divider b,
.guru-report-divider small {
  display: block;
}

.guru-report-divider b {
  color: #f3f5f8;
  font-size: calc(14px + var(--app-font-delta, 0px));
}

.guru-report-divider small {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(10px + var(--app-font-delta, 0px));
  line-height: 1.4;
}

.guru-report-divider.final {
  margin-top: 10px;
  border-color: rgba(200, 169, 106, 0.34);
  border-left-color: #c8a96a;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.13), rgba(10, 15, 23, 0.48) 48%, transparent);
}

.guru-report-divider.final > span {
  border-color: rgba(200, 169, 106, 0.48);
  color: #ead9aa;
  background: rgba(200, 169, 106, 0.11);
}

.guru-report-divider.final b {
  color: #ead9aa;
}

.guru-plain-summary {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(200, 169, 106, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 169, 106, 0.12), transparent 42%),
    rgba(10, 15, 23, 0.84);
  box-shadow: inset 3px 0 0 rgba(200, 169, 106, 0.78);
}

.guru-plain-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guru-plain-summary > header span {
  color: #c8a96a;
  font-size: calc(10px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.guru-plain-summary > header h3 {
  margin: 3px 0 0;
  font-size: calc(19px + var(--app-font-delta, 0px));
}

.guru-plain-summary > header > b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(200, 169, 106, 0.36);
  border-radius: 999px;
  color: #ead9aa;
  background: rgba(200, 169, 106, 0.1);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.guru-plain-headline {
  margin: 12px 0;
  color: #f5f5f7;
  font-size: calc(15px + var(--app-font-delta, 0px));
  font-weight: 720;
  line-height: 1.55;
}

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

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

.guru-conclusion-status > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  background: rgba(3, 7, 12, 0.42);
}

.guru-conclusion-status span,
.guru-conclusion-status b {
  display: block;
}

.guru-conclusion-status span {
  margin-bottom: 5px;
  color: #c8a96a;
  font-size: calc(10px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.guru-conclusion-status b {
  color: #e5e9f0;
  font-size: calc(11px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

.guru-plain-grid article {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.guru-plain-grid article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.guru-plain-grid h4,
.guru-plain-grid p {
  margin: 0;
}

.guru-plain-grid h4 {
  color: #ead9aa;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.guru-plain-grid strong {
  color: #aeb7c5;
  font-size: calc(11px + var(--app-font-delta, 0px));
  text-align: right;
}

.guru-plain-grid p {
  margin-top: 6px;
  color: #d9dde5;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.guru-plain-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(200, 169, 106, 0.18);
  color: #c8ccd4;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.guru-plain-bottom b {
  color: #ead9aa;
}

.guru-compliance-footer {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding: 13px 15px;
  border: 1px solid rgba(45, 107, 255, 0.32);
  border-left: 3px solid #2d6bff;
  border-radius: 7px;
  background: rgba(45, 107, 255, 0.07);
}

.guru-compliance-footer b {
  color: #9fbbff;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.guru-compliance-footer span {
  color: #d6dbe5;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.guru-compliance-footer small {
  color: var(--muted);
  font-size: calc(10px + var(--app-font-delta, 0px));
  line-height: 1.45;
}

.guru-report-head h3 {
  margin: 5px 0;
}

.guru-score {
  width: 88px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(200, 169, 106, 0.55);
  border-radius: 50%;
  background: rgba(200, 169, 106, 0.08);
}

.guru-score b {
  color: #ead9aa;
  font-size: calc(28px + var(--app-font-delta, 0px));
}

.guru-score span { font-size: calc(11px + var(--app-font-delta, 0px)); color: var(--muted); }
.guru-score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guru-score-grid > div { padding: 10px 12px; display: flex; justify-content: space-between; }
.guru-score-grid b { color: #ead9aa; }
.guru-snapshot { display: flex; flex-wrap: wrap; gap: 16px; padding: 11px 13px; }
.guru-snapshot span { color: var(--muted); }
.guru-perspective-grid,
.guru-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guru-perspective-grid article,
.guru-evidence-grid article { padding: 13px; }
.guru-perspective-grid header { display: flex; justify-content: space-between; gap: 12px; }
.guru-perspective-grid header { align-items: flex-start; flex-wrap: wrap; }
.guru-perspective-grid header b {
  color: #c8a96a;
  font-size: calc(11px + var(--app-font-delta, 0px));
  font-weight: 700;
  padding: 3px 7px;
  border: 1px solid rgba(200, 169, 106, 0.32);
  border-radius: 999px;
}
.guru-perspective-grid h4,
.guru-evidence-grid h4 { margin: 0 0 8px; color: #ead9aa; }
.guru-perspective-grid p,
.guru-evidence-grid p { margin: 6px 0; }
.guru-perspective-grid ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.guru-evidence-refs,
.guru-unknowns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.guru-evidence-refs strong,
.guru-unknowns strong { width: 100%; color: var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.guru-evidence-refs span,
.guru-unknowns span {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: calc(11px + var(--app-font-delta, 0px));
  color: #c9d5e5;
  background: rgba(45, 107, 255, 0.1);
  border: 1px solid rgba(45, 107, 255, 0.22);
}
.guru-unknowns span {
  color: #d9c99c;
  background: rgba(200, 169, 106, 0.08);
  border-color: rgba(200, 169, 106, 0.2);
}
.guru-evidence-grid p { display: flex; justify-content: space-between; gap: 12px; }
.guru-evidence-grid .pending { color: #d7b86f; text-align: right; }
.guru-analysis footer { color: var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); line-height: 1.5; }

@media (max-width: 1180px) {
  .guru-plain-grid,
  .guru-conclusion-status,
  .guru-perspective-grid,
  .guru-evidence-grid { grid-template-columns: 1fr; }

  .guru-report-divider {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .guru-report-divider > span {
    width: 28px;
    height: 28px;
  }
}

@keyframes aiPanelSweep {
  0%,
  100% {
    background-position: -120% 0;
  }

  50% {
    background-position: 220% 0;
  }
}

.panel.dragging .panel-border-glow,
.panel.dragging .panel-edge-light,
.panel.resizing .panel-border-glow,
.panel.resizing .panel-edge-light {
  opacity: 0;
}

.quote-tile::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 9px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.4;
}

.quote-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.quote-tile b {
  display: block;
  margin-top: 8px;
  font-size: calc(30px + var(--app-font-delta, 0px));
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.up {
  color: var(--price-up);
}

.down {
  color: var(--price-down);
}

.grid {
  position: relative;
  min-height: 640px;
  display: block;
}

.panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  height: 306px;
  min-height: 306px;
  padding: 14px;
  overflow: hidden;
  transition:
    left 260ms cubic-bezier(0.2, 0.82, 0.22, 1),
    top 260ms cubic-bezier(0.2, 0.82, 0.22, 1),
    width 260ms cubic-bezier(0.2, 0.82, 0.22, 1),
    height 260ms cubic-bezier(0.2, 0.82, 0.22, 1),
    transform 180ms ease,
    opacity 180ms ease,
    outline-color 180ms ease,
    box-shadow 180ms ease;
  will-change: left, top, width, height, transform;
}

.panel.resizing {
  user-select: none;
  outline: 3px solid var(--blue-soft);
  transition: transform 140ms ease, opacity 140ms ease, outline-color 140ms ease, box-shadow 140ms ease;
}

.resize-handle {
  position: absolute;
  z-index: 3;
  background: transparent;
}

.resize-handle.right {
  top: 42px;
  right: 0;
  width: 10px;
  bottom: 12px;
  cursor: ew-resize;
}

.resize-handle.bottom {
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
}

.resize-handle.corner {
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
}

.resize-handle.corner::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

.panel.dragging {
  opacity: 0.72;
  transform: scale(0.985);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transition: transform 140ms ease, opacity 140ms ease, outline-color 140ms ease, box-shadow 140ms ease;
  z-index: 8;
}

.panel.layout-settling {
  transform: scale(1.01);
}

.panel.drop-target {
  outline: 3px solid var(--blue-soft);
}

.panel.focus-pulse {
  outline: 3px solid rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 8px rgba(0, 122, 255, 0.12), var(--shadow);
}

.panel[hidden] {
  display: none;
}

.panel-head {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.panel.dragging .panel-head {
  cursor: grabbing;
}

h2 {
  margin: 0;
  font-size: calc(15px + var(--app-font-delta, 0px));
  line-height: 1.1;
  font-weight: 760;
}

.panel-head span,
.quote-tile span,
.watch-item span,
.analysis small {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.refresh-badge {
  min-width: 42px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue) !important;
  font-size: calc(11px + var(--app-font-delta, 0px)) !important;
  font-weight: 650;
}

.panel-select {
  height: 26px;
  max-width: 112px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-tint);
  color: var(--muted);
  font: inherit;
  font-size: calc(11px + var(--app-font-delta, 0px));
  cursor: pointer;
}

.panel-select:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.chart-panel {
  min-width: 0;
  height: 432px;
  min-height: 432px;
}

.chart-panel #chart {
  flex: 1 1 auto;
  min-height: 300px;
}

.ai-panel {
  display: flex;
  flex-direction: column;
  height: 432px;
  min-height: 432px;
}

.watch {
  height: 520px;
  min-height: 520px;
  min-width: 0;
}

.watch .watchlist {
  flex: 1 1 0;
  min-height: 180px;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.module-actions button,
.layout-dock button,
.module-link {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-tint);
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
  cursor: pointer;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.module-actions button:hover,
.layout-dock button:hover {
  color: var(--blue);
  border-color: rgba(0, 122, 255, 0.3);
}

.layout-dock {
  height: 34px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.watchlist {
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-height: 120px;
  flex: 1 1 auto;
  padding-right: 2px;
}

.empty-watchlist {
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.empty-watchlist strong {
  color: var(--text);
  font-size: calc(17px + var(--app-font-delta, 0px));
}

.empty-watchlist p {
  max-width: 260px;
  margin: 0;
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

.empty-watchlist button {
  height: 34px;
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 760;
  cursor: pointer;
  padding: 0 14px;
}

.watch-tabs,
.watch-groups,
.watch-table-head {
  display: grid;
  align-items: center;
  gap: 8px;
}

.watch-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 8px;
}

.watch-groups {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 8px;
  margin-bottom: 2px;
  scrollbar-width: thin;
}

.watch-tabs button,
.watch-groups button {
  border: 0;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  font-weight: 720;
}

.watch-tabs button {
  height: 30px;
  border-bottom: 2px solid transparent;
  font-size: calc(14px + var(--app-font-delta, 0px));
  min-width: 0;
  white-space: nowrap;
}

.watch-tabs button.active {
  border-color: var(--text);
}

.watch-groups button {
  flex: 0 0 auto;
  height: 26px;
  min-width: 54px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-tint);
  white-space: nowrap;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.watch-groups button.active {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.watch-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}

.watch-group-actions button {
  height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 720;
  cursor: pointer;
}

.watch-group-actions button:hover:not(:disabled) {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 48%, transparent);
  background: rgba(0, 122, 255, 0.08);
}

.watch-group-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.watch-table-head {
  grid-template-columns: minmax(112px, 1fr) minmax(104px, 128px) 70px 76px;
  min-height: 30px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 680;
  border-bottom: 1px solid var(--line);
}

.watch-sort-btn {
  width: 100%;
  height: 26px;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.watch-sort-btn:hover,
.watch-sort-btn.active {
  color: var(--blue);
}

.watch-sort-btn i {
  min-width: 12px;
  font-style: normal;
  color: currentColor;
  opacity: 0.9;
}

.watch-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(104px, 128px) 70px 76px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
  text-align: left;
  user-select: none;
}

.watch-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.watch-item:hover::before,
.watch-item.selected::before {
  background: var(--blue);
}

.watch-item:hover {
  background: rgba(0, 122, 255, 0.04);
}

.watch-item.dragging {
  opacity: 0.42;
  background: rgba(0, 122, 255, 0.08);
}

.watch-item.drop-before,
.watch-item.drop-after {
  background: rgba(0, 122, 255, 0.07);
}

.watch-item.drop-before::after,
.watch-item.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px color-mix(in srgb, var(--blue) 60%, transparent);
}

.watch-item.drop-before::after {
  top: 0;
}

.watch-item.drop-after::after {
  bottom: -1px;
}

.watch-item.selected {
  background: rgba(0, 122, 255, 0.08);
}

.watch-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(16px + var(--app-font-delta, 0px));
  line-height: 1.1;
}

.watch-symbol span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-variant-numeric: tabular-nums;
}

.watch-symbol em {
  min-width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 149, 0, 0.55);
  border-radius: 3px;
  color: #ff9500;
  font-size: calc(10px + var(--app-font-delta, 0px));
  font-style: normal;
  line-height: 1;
}

.watch-symbol em:last-child {
  border-color: rgba(0, 122, 255, 0.55);
  color: var(--blue);
  max-width: 54px;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-sparkline {
  width: 128px;
  height: 58px;
  overflow: visible;
}

.mini-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-sparkline polygon {
  fill: currentColor;
  opacity: 0.08;
}

.watch-number b,
.watch-change {
  display: block;
  font-size: calc(17px + var(--app-font-delta, 0px));
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 760;
}

.watch-change {
  font-size: calc(16px + var(--app-font-delta, 0px));
}

.watch-remove {
  position: absolute;
  top: 8px;
  right: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-tint);
  color: var(--muted) !important;
  opacity: 0;
  transition: opacity 150ms ease;
}

.watch-item:hover .watch-remove {
  opacity: 1;
}

.watch-remove:hover {
  color: var(--red) !important;
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}

.watch-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(12px);
}

.watch-dialog.open {
  display: grid;
}

.watch-dialog-card {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  background: color-mix(in srgb, var(--panel) 94%, #0d1d32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.watch-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.watch-dialog-head strong {
  font-size: calc(18px + var(--app-font-delta, 0px));
}

.watch-dialog-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.watch-dialog-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-tint);
  color: var(--text);
  cursor: pointer;
}

.watch-dialog-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.watch-dialog-groups label,
.watch-position-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 720;
  cursor: pointer;
}

.watch-dialog-groups label:hover,
.watch-position-toggle:hover {
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  background: rgba(0, 122, 255, 0.07);
}

.watch-dialog-groups input,
.watch-position-toggle input {
  accent-color: var(--blue);
}

.watch-dialog-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.watch-dialog-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: calc(15px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.watch-dialog-field input:focus {
  border-color: color-mix(in srgb, var(--blue) 58%, transparent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.watch-dialog-message {
  min-height: 18px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.45;
}

.watch-dialog-message.danger {
  color: color-mix(in srgb, var(--red) 78%, #fff);
}

.watch-dialog-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.watch-position-toggle {
  margin-bottom: 14px;
}

.watch-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.watch-dialog-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-tint);
  color: var(--text);
  font-weight: 760;
  cursor: pointer;
}

.watch-dialog-actions .primary {
  color: #fff;
  border-color: rgba(0, 122, 255, 0.72);
  background: linear-gradient(135deg, var(--blue), #24d8ff);
}

.watch-dialog-actions .danger {
  color: #fff;
  border-color: color-mix(in srgb, var(--red) 70%, transparent);
  background: linear-gradient(135deg, var(--red), #ff7a4f);
}

.watch-group-actions .ai-scan {
  color: #dff2ff;
  border-color: rgba(45, 107, 255, 0.48);
  background: linear-gradient(135deg, rgba(45, 107, 255, 0.22), rgba(36, 216, 255, 0.1));
}

.watch-group-actions .ai-scan:hover {
  border-color: rgba(36, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.14);
}

.stock-scanner-card {
  width: min(620px, 100%);
}

.stock-scanner-drop {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  min-height: 132px;
  padding: 18px;
  border: 1px dashed rgba(45, 107, 255, 0.55);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 107, 255, 0.12), rgba(255, 255, 255, 0.035));
  cursor: pointer;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stock-scanner-drop:hover,
.stock-scanner-drop:focus-visible,
.stock-scanner-drop.dragging {
  border-color: rgba(36, 216, 255, 0.88);
  background: linear-gradient(135deg, rgba(45, 107, 255, 0.2), rgba(36, 216, 255, 0.08));
  box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.14), 0 0 34px rgba(36, 216, 255, 0.14);
  transform: translateY(-1px);
}

.stock-scanner-file {
  position: fixed;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stock-scanner-drop-main {
  display: grid;
  gap: 8px;
}

.stock-scanner-drop b {
  color: var(--text);
  font-size: calc(17px + var(--app-font-delta, 0px));
}

.stock-scanner-drop span,
.stock-scanner-drop small {
  color: var(--muted);
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

.stock-scanner-drop small {
  grid-column: 1 / -1;
}

.stock-scanner-pick {
  min-width: 104px;
  justify-content: center;
  border-color: rgba(45, 107, 255, 0.55);
  color: #eaf5ff;
  background: linear-gradient(135deg, rgba(45, 107, 255, 0.92), rgba(36, 216, 255, 0.68));
  box-shadow: 0 12px 24px rgba(45, 107, 255, 0.2);
}

.stock-scanner-pick:hover {
  filter: brightness(1.08);
}

.stock-scanner-top-actions {
  margin-bottom: 10px;
}

.stock-scanner-results {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin: 0 0 14px;
}

.stock-scanner-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stock-scanner-result:hover {
  border-color: rgba(45, 107, 255, 0.5);
  background: rgba(45, 107, 255, 0.08);
}

.stock-scanner-result input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.stock-scanner-result strong,
.stock-scanner-result span {
  display: block;
}

.stock-scanner-result strong {
  font-size: calc(15px + var(--app-font-delta, 0px));
}

.stock-scanner-result span,
.stock-scanner-confidence {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.orderbook {
  min-width: 0;
}

.orderbook-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
}

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

.orderbook-summary div {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-tint);
}

.orderbook-summary b {
  font-size: calc(17px + var(--app-font-delta, 0px));
  font-variant-numeric: tabular-nums;
}

.orderbook-summary span,
.book-mid {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.book-ladder {
  display: grid;
  gap: 5px;
}

.book-level {
  position: relative;
  min-height: 28px;
  display: grid;
  grid-template-columns: 42px 1fr 74px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-variant-numeric: tabular-nums;
}

.book-level i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.14;
}

.book-level span,
.book-level b,
.book-level em {
  position: relative;
  z-index: 1;
}

.book-level em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.book-ladder.ask .book-level b {
  color: var(--red);
}

.book-ladder.bid .book-level b {
  color: var(--green);
}

.book-ladder.ask .book-level i {
  background: var(--red);
}

.book-ladder.bid .book-level i {
  background: var(--green);
}

.book-mid {
  min-height: 24px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#chart {
  width: 100%;
  flex: 1;
  height: auto;
  min-height: 220px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--chart-bg);
  background-size: 56px 56px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  cursor: crosshair;
  touch-action: none;
}

.mom-index-panel {
  min-height: 420px;
}

.mom-index-panel.collapsed {
  height: 88px !important;
  min-height: 88px !important;
}

.mom-index-panel.collapsed .mom-index-body {
  display: none;
}

.mom-index-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.mom-index-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--panel-tint);
}

.mom-index-fallback[hidden] {
  display: none !important;
}

.mom-index-fallback strong {
  font-size: calc(16px + var(--app-font-delta, 0px));
}

.mom-index-fallback span {
  color: var(--muted);
}

.mom-index-native {
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px;
}

.mom-index-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.06);
}

.mom-index-summary strong,
.mom-index-summary span {
  display: block;
}

.mom-index-summary span,
.mom-index-card small,
.mom-index-post span,
.mom-index-trends header span {
  color: var(--muted);
}

.mom-index-summary button {
  min-height: 32px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #65b5ff;
  cursor: pointer;
  padding: 0 12px;
}

.mom-index-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mom-index-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--mom-color) 35%, var(--line));
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mom-color) 13%, transparent), rgba(255, 255, 255, 0.025));
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mom-index-card:hover,
.mom-index-trends section:hover,
.mom-index-post:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.45);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.mom-index-card span {
  color: var(--mom-color);
  font-weight: 850;
}

.mom-index-card strong {
  font-size: calc(28px + var(--app-font-delta, 0px));
}

.mom-index-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mom-index-metrics b {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

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

.mom-index-trends section,
.mom-index-posts {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.mom-index-trends section {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mom-index-trends header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mom-index-spark {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.mom-index-posts {
  display: grid;
  gap: 8px;
}

.mom-index-posts h3 {
  margin: 0;
  font-size: calc(15px + var(--app-font-delta, 0px));
}

.mom-index-post {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mom-index-loading,
.mom-index-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
}

.market-heatmap {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 107, 255, 0.09), transparent 0 30%),
    radial-gradient(circle at 88% 10%, rgba(200, 169, 106, 0.07), transparent 0 24%),
    linear-gradient(180deg, rgba(17, 24, 32, 0.32), rgba(7, 10, 15, 0.18));
  backdrop-filter: blur(18px) saturate(118%);
}

.heatmap-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 800;
  letter-spacing: 0;
}

.heatmap-summary span,
.heatmap-summary a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(17, 24, 32, 0.84);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.heatmap-summary a:hover {
  border-color: rgba(200, 169, 106, 0.55);
  color: #f3d999;
}

.heatmap-intel-label {
  border-color: rgba(200, 169, 106, 0.48) !important;
  background: linear-gradient(135deg, rgba(200, 169, 106, 0.18), rgba(45, 107, 255, 0.1)) !important;
  color: #f0dba5 !important;
}

.heatmap-summary .up {
  color: var(--up);
}

.heatmap-summary .down {
  color: var(--down);
}

.heatmap-stage {
  position: relative;
  min-height: 360px;
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(45, 107, 255, 0.09), transparent 0 38%),
    radial-gradient(circle at 86% 18%, rgba(200, 169, 106, 0.06), transparent 0 28%),
    rgba(7, 10, 15, 0.30);
  background-size: 42px 42px;
  cursor: grab;
  touch-action: none;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 140ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(200, 169, 106, 0.035),
    0 20px 80px rgba(0, 0, 0, 0.24);
}

.heatmap-stage:hover {
  border-color: rgba(200, 169, 106, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 82px rgba(0, 0, 0, 0.32);
}

.heatmap-stage::before,
.heatmap-detail-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(200, 169, 106, 0.1) 44%, transparent 54%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.028)),
    radial-gradient(circle at 50% 0%, rgba(45, 107, 255, 0.12), transparent 0 34%);
  opacity: 0.72;
  animation: heatmapWallBreath 4.8s ease-in-out infinite;
}

.panel[data-module="heatmap"] .panel-border-glow,
.panel[data-module="heatmap"] .panel-edge-light {
  animation: none;
  opacity: 0.34;
}

.panel[data-module="heatmap"] .heatmap-stage::before,
.heatmap-detail-body::before {
  animation: none;
  opacity: 0.42;
}

.panel[data-module="heatmap"] .heatmap-stage::after,
.heatmap-detail-body::after {
  opacity: 0.32;
}

.heatmap-stage::after,
.heatmap-detail-body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%), rgba(255, 255, 255, 0.16), transparent 0 132px),
    radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%), rgba(45, 107, 255, 0.16), transparent 0 280px),
    radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%), rgba(200, 169, 106, 0.12), transparent 0 360px);
  mix-blend-mode: screen;
  opacity: 0.74;
}

@keyframes heatmapWallBreath {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.78;
  }
}

.heatmap-stage:active {
  cursor: grabbing;
}

#heatmapCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.is-interacting {
  cursor: grabbing;
}

.is-interacting .heatmap-tooltip {
  opacity: 0 !important;
  visibility: hidden;
}

.heatmap-tooltip {
  position: absolute;
  z-index: 8;
  min-width: 190px;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(7, 10, 15, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.heatmap-tooltip strong,
.heatmap-tooltip span,
.heatmap-tooltip b,
.heatmap-tooltip small {
  display: block;
}

.heatmap-tooltip strong {
  color: var(--text);
  font-size: calc(14px + var(--app-font-delta, 0px));
  font-weight: 900;
}

.heatmap-tooltip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
  line-height: 1.35;
}

.heatmap-tooltip b {
  margin-top: 6px;
  font-size: calc(17px + var(--app-font-delta, 0px));
}

.heatmap-tooltip small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.heatmap-hover-card {
  width: min(540px, calc(100vw - 32px));
  max-width: min(540px, calc(100vw - 32px));
  max-height: var(--hover-card-height, 620px);
  min-width: min(420px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 106, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(200, 169, 106, 0.18), transparent 0 160px),
    linear-gradient(135deg, rgba(45, 107, 255, 0.14), rgba(200, 169, 106, 0.1) 42%, transparent 70%),
    rgba(12, 17, 24, 0.96);
  background-position: var(--bg-x, 50%) var(--bg-y, 50%), center, center;
  color: #f8fafc;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(45, 107, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 90ms ease-out;
}

.heatmap-hover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 28%, transparent 42%),
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.18), transparent 0 95px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.heatmap-hover-card > * {
  position: relative;
  z-index: 2;
}

.heatmap-hover-title {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.98), rgba(27, 35, 46, 0.98)),
    linear-gradient(115deg, rgba(200, 169, 106, 0.12), transparent);
  color: #f8fafc;
  font-size: calc(18px + var(--app-font-delta, 0px));
  font-weight: 900;
}

.heatmap-hover-hero {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 107, 255, 0.2), transparent 0 48%),
    rgba(17, 24, 32, 0.72);
  color: #ffffff;
}

.heatmap-hover-hero strong {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.heatmap-hover-spark,
.heatmap-hover-row-spark {
  display: block;
  width: 112px;
  height: 36px;
  border-radius: 6px;
  opacity: 0.92;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 15, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.heatmap-hover-row-spark {
  width: 108px;
  height: 34px;
}

.heatmap-hover-hero b,
.heatmap-hover-hero em {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.heatmap-hover-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.heatmap-hover-metrics span {
  display: block;
  margin: 0;
  padding: 9px 10px;
  background: rgba(17, 24, 32, 0.94);
}

.heatmap-hover-metrics .wide {
  grid-column: span 4;
}

.heatmap-hover-metrics small {
  margin: 0 0 4px;
  color: rgba(229, 231, 235, 0.58);
  font-size: calc(10px + var(--app-font-delta, 0px));
  font-weight: 800;
}

.heatmap-hover-metrics b {
  margin: 0;
  color: #f8fafc;
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 900;
}

.heatmap-hover-chart {
  display: block;
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 107, 255, 0.16), transparent 0 42%),
    #0b1118;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap-hover-list {
  max-height: 310px;
  overflow: auto;
  background: rgba(7, 10, 15, 0.96);
}

.heatmap-hover-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 118px 78px 88px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 5px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.heatmap-hover-row strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: calc(18px + var(--app-font-delta, 0px));
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-hover-row b,
.heatmap-hover-row em {
  margin: 0;
  font-size: calc(18px + var(--app-font-delta, 0px));
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.heatmap-hover-card .up {
  color: #ff5a68;
}

.heatmap-hover-card .down {
  color: #34d17b;
}

.heatmap-loading,
.heatmap-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.heatmap-empty span {
  display: block;
  margin-top: 6px;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.heatmap-detail-page {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  grid-template-rows: auto 1fr;
  background: #070A0F;
  color: var(--text);
}

.heatmap-detail-page.open {
  display: grid;
}

.heatmap-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 29, 0.94);
}

.heatmap-detail-head span,
.heatmap-detail-head small {
  color: var(--muted);
  font-weight: 800;
}

.heatmap-detail-head h2 {
  margin: 3px 0 4px;
  font-size: calc(24px + var(--app-font-delta, 0px));
  line-height: 1.1;
}

.heatmap-detail-head div:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.heatmap-detail-head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
}

.heatmap-detail-head button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.heatmap-detail-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #070A0F;
  cursor: grab;
  touch-action: none;
}

.heatmap-detail-body:active {
  cursor: grabbing;
}

#heatmapDetailCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1180px) {
  .mom-index-cards,
  .mom-index-trends {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market-intel-panel {
  background: linear-gradient(145deg, rgba(17, 24, 32, 0.98), rgba(9, 14, 21, 0.98));
}

.market-intel-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  min-height: 72px;
}
.market-intel-metrics .intel-source-statuses {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-right: 0;
}
.intel-source-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(134, 149, 171, .24);
  border-radius: 5px;
  color: var(--muted);
  font-size: calc(10px + var(--app-font-delta, 0px));
  line-height: 1.2;
  background: rgba(14, 20, 29, .66);
}
.intel-source-status i { width: 6px; height: 6px; border-radius: 50%; background: #738094; }
.intel-source-status.live i { background: #24c879; box-shadow: 0 0 8px rgba(36, 200, 121, .45); }
.intel-source-status.snapshot i,.intel-source-status.cached i { background: #c8a96a; }
.intel-source-status.loading i { background: #2d6bff; animation: intelStatusPulse 1s ease-in-out infinite; }
.intel-source-status.stale { color: #e2bd79; border-color: rgba(200, 169, 106, .44); }
.intel-source-status.stale i { background: #d99b42; }
.intel-source-status.error { color: #ef8b92; border-color: rgba(239, 86, 98, .42); }
.intel-source-status.error i { background: #ef5662; }
@keyframes intelStatusPulse { 50% { opacity: .32; transform: scale(.7); } }
.market-intel-panel.data-degraded .intel-verdict,
.market-intel-panel.data-degraded .intel-sectors,
.market-intel-panel.data-degraded .intel-reasoning { opacity: .72; }
.market-intel-panel.data-degraded .market-intel-content::before {
  content: "部分数据已延迟，结论已降级";
  display: block;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 169, 106, .38);
  border-radius: 5px;
  color: #e4c88f;
  background: rgba(74, 55, 22, .22);
  font-size: calc(11px + var(--app-font-delta, 0px));
}
.intel-confidence {
  grid-column: 1 / -1;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 27, .64);
}
.intel-confidence header { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; }
.intel-confidence header span,.intel-confidence p { color:var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.intel-confidence > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.intel-confidence .intel-score { min-height:92px; }
.intel-confidence p { margin:9px 0 0; line-height:1.55; }
@media(max-width:900px){.intel-confidence>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

.market-intel-metrics > div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.market-intel-metrics > div:last-child { border-right: 0; }
.market-intel-metrics span { color: var(--muted); font-size: calc(12px + var(--app-font-delta, 0px)); }
.market-intel-metrics strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.market-intel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.market-intel-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 7px;
}

.market-intel-tabs button {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.market-intel-tabs button.active {
  color: var(--text);
  background: rgba(45, 107, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(45, 107, 255, 0.38);
}

.market-intel-content {
  min-height: 190px;
  overflow: auto;
}

.market-intel-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  color: var(--muted);
}

.market-intel-empty strong { color: var(--text); }

.market-intel-distribution {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(11, minmax(30px, 1fr));
  gap: 7px;
  align-items: end;
  padding: 8px 4px 0;
}

.market-intel-distribution > div {
  height: 100%;
  display: grid;
  grid-template-rows: 18px 1fr 20px;
  gap: 4px;
  align-items: end;
  text-align: center;
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.market-intel-distribution i {
  width: min(34px, 75%);
  min-height: 4px;
  justify-self: center;
  border-radius: 3px 3px 0 0;
  background: #657080;
  transition: height 240ms ease;
}

.market-intel-distribution .up i { background: linear-gradient(#ff5964, #8c2735); }
.market-intel-distribution .down i { background: linear-gradient(#2bd179, #17633e); }
.market-intel-distribution b { color: var(--text); font-size: calc(12px + var(--app-font-delta, 0px)); }

.market-intel-table { display: grid; min-width: 720px; }
.market-intel-table header,
.market-intel-table button,
.market-intel-table > div {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.market-intel-sector-table header,
.market-intel-sector-table button { grid-template-columns: 1.3fr .7fr 1fr .6fr 1fr; }
.quality-table header,
.quality-table > div { grid-template-columns: .8fr .65fr 1.4fr 1.2fr; }
.market-intel-table header { color: var(--muted); font-size: calc(11px + var(--app-font-delta, 0px)); }
.market-intel-table button { width: 100%; background: transparent; border-inline: 0; color: var(--text); border-radius: 0; }
.market-intel-table button:hover { background: linear-gradient(90deg, rgba(45, 107, 255, .11), rgba(200, 169, 106, .04)); }
.market-intel-table span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-ok, .quality-live { color: #38c778; }
.quality-warning, .quality-partial { color: #c8a96a; }
.quality-error, .quality-unavailable { color: #ff5964; }

.refresh-badge[data-status="live"] { color: #38c778; border-color: rgba(56, 199, 120, .4); }
.refresh-badge[data-status="partial"] { color: #c8a96a; border-color: rgba(200, 169, 106, .4); }
.refresh-badge[data-status="closed"] { color: #9aa5b5; border-color: rgba(154, 165, 181, .4); }
.refresh-badge[data-status="unavailable"] { color: #ff5964; border-color: rgba(255, 89, 100, .4); }

.advanced-indicator-readout {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(45, 107, 255, .08);
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .market-intel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-intel-metrics > div { border-bottom: 1px solid var(--line); }
  .market-intel-toolbar { align-items: flex-start; flex-direction: column; }
  .market-intel-content { min-height: 260px; }
}

.mom-index-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(520px, 92vw);
  height: 100vh;
  transform: translateX(104%);
  transition: transform 0.22s ease;
  border-left: 1px solid var(--line-strong);
  background: rgba(18, 19, 23, 0.98);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.38);
}

.mom-index-drawer.open {
  transform: translateX(0);
}

.mom-index-drawer-content {
  height: 100%;
  overflow: auto;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.mom-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mom-detail-head span,
.mom-detail-head small {
  display: block;
  color: var(--muted);
}

.mom-detail-head strong {
  display: block;
  margin: 6px 0;
  font-size: calc(26px + var(--app-font-delta, 0px));
}

.mom-detail-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: calc(22px + var(--app-font-delta, 0px));
}

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

.mom-detail-grid div,
.mom-detail-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.mom-detail-grid span {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.mom-detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: calc(22px + var(--app-font-delta, 0px));
}

.mom-detail-section {
  display: grid;
  gap: 8px;
}

.mom-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mom-detail-history,
.mom-detail-tags,
.mom-detail-post-list {
  display: grid;
  gap: 8px;
}

.mom-detail-history span {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.mom-detail-tags span {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.1);
  color: #9ed0ff;
}

.mom-detail-post-list button {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px;
  cursor: pointer;
}

.mom-detail-post-list span {
  color: var(--muted);
}

.indicator-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.indicator-row div {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.indicator-row b {
  font-size: calc(10px + var(--app-font-delta, 0px));
  color: var(--muted);
}

.indicator-row span {
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 720;
}

textarea {
  height: 78px;
  resize: none;
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  line-height: 1.45;
}

textarea:focus,
.strategy input:focus,
.search:focus-within {
  border-color: rgba(0, 122, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.primary,
.secondary {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-weight: 720;
  cursor: pointer;
}

.secondary {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(0, 122, 255, 0.22);
}

.primary.loading,
.secondary.loading {
  opacity: 0.72;
  cursor: wait;
}

.analysis,
.strategy-result,
#review,
#movers {
  flex: 1;
  overflow: auto;
  min-height: 0;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.analysis {
  flex: 1;
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.analysis h3,
.strategy-result h3 {
  margin: 0 0 6px;
  font-size: calc(13px + var(--app-font-delta, 0px));
  color: var(--blue);
}

.analysis p,
.metric-line,
.review-line,
.mover {
  font-size: calc(14px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.mover-group {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.mover-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-tint);
}

.mover-group-title strong {
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.mover-group-title span {
  color: var(--muted);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.mover-group-up .mover-group-title strong {
  color: var(--price-up);
}

.mover-group-down .mover-group-title strong {
  color: var(--price-down);
}

.mover-group .mover {
  padding-left: 12px;
  padding-right: 12px;
}

.mover-group .mover:last-child {
  border-bottom: 0;
}

.mover-group-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.metric-line,
.mover,
.review-line {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

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

.agent-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-tint);
  padding: 9px;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.35;
}

.ai-report-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.ai-report-head span {
  color: var(--blue);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 800;
}

.ai-report-head h3 {
  margin: 6px 0;
  color: var(--text);
  font-size: calc(18px + var(--app-font-delta, 0px));
}

.ai-report-head p {
  margin: 0;
  color: var(--muted);
}

.ai-report-head strong {
  align-self: flex-start;
  border: 1px solid rgba(0, 122, 255, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  white-space: nowrap;
}

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

.ai-report-grid div,
.ai-report-metrics div,
.ai-report-body article,
.ai-report-two-col article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-report-grid div,
.ai-report-metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.ai-report-grid span,
.ai-report-metrics span {
  color: var(--muted);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.ai-report-grid b,
.ai-report-metrics b {
  color: var(--text);
  font-size: calc(15px + var(--app-font-delta, 0px));
}

.ai-report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-report-body {
  display: grid;
  gap: 10px;
}

.ai-report-body article,
.ai-report-two-col article {
  padding: 12px;
}

.ai-report-body h4,
.ai-report-two-col h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: calc(14px + var(--app-font-delta, 0px));
}

.ai-report-body p,
.ai-report-two-col p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.ai-report-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-chip b {
  color: var(--blue);
}

.mover {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mover:hover,
.mover:focus-visible {
  outline: 0;
  background: var(--panel-tint);
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

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

.mover b {
  font-variant-numeric: tabular-nums;
}

.strategy input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-tint);
  padding: 0 12px;
  margin-bottom: 8px;
}

.strategy-result {
  margin-top: 10px;
}

.strategy-list {
  display: grid;
  gap: 0;
}

pre {
  max-height: 150px;
  overflow: auto;
  padding: 10px;
  background: #111318;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  color: #f5f5f7;
  font-size: calc(11px + var(--app-font-delta, 0px));
  line-height: 1.5;
}

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

  .rail {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
  }

  .market-state,
  .theme-switch,
  .data-check,
  .clock {
    display: none;
  }

  .search {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .search-results {
    top: 58px;
    width: 100%;
  }

  .tier-switch {
    min-width: 0;
    overflow-x: auto;
  }

  .pricing-modal {
    padding: 14px;
  }

  .pricing-panel {
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .pricing-head,
  .pricing-foot {
    display: grid;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .credit-pricing-panel {
    grid-template-columns: 1fr;
  }

  .account-pill,
  .settings-entry {
    min-width: max-content;
  }

  .grid {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    min-height: 0 !important;
  }

  .chart-panel,
  .movers,
  [data-module] {
    grid-column: auto;
  }

  .panel {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 320px !important;
    transform: none !important;
    transition: transform 160ms ease, opacity 160ms ease, outline-color 160ms ease, box-shadow 160ms ease;
  }

  .resize-handle {
    display: none;
  }

  .chart-panel,
  .ai-panel,
  .watch {
    height: auto !important;
    min-height: 360px !important;
  }

  .watch {
    min-width: 0;
  }

  #chart {
    flex: none;
    height: 280px;
    min-height: 280px;
  }

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

  .watch-table-head,
  .watch-item {
    grid-template-columns: minmax(92px, 1fr) minmax(86px, 104px) 58px 64px;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    align-content: center;
    padding: 24px 16px;
    gap: 20px;
  }

  .auth-visual p {
    font-size: calc(16px + var(--app-font-delta, 0px));
  }

  .auth-decrypted-line {
    max-width: 88vw;
    font-size: clamp(17px, 5vw, 24px);
    white-space: normal;
    letter-spacing: 0.01em;
  }

  .workspace {
    padding: 10px;
  }

  .window-bar {
    grid-template-columns: 68px 1fr;
  }

  .window-status {
    display: none;
  }

  .window-title {
    justify-content: flex-start;
  }

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

  .search {
    min-width: 0;
  }

  .tier-switch {
    grid-auto-flow: column;
  }

  .quote-strip {
    grid-template-columns: 1fr;
  }

  .watch-table-head,
  .watch-item {
    grid-template-columns: minmax(88px, 1fr) 88px 58px 64px;
    gap: 8px;
  }

  .mini-sparkline {
    width: 88px;
  }

  .indicator-row,
  .agent-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-results {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .ai-workspace {
    grid-template-rows: auto 1fr;
  }

  .ai-workspace-top,
  .ai-hero-panel,
  .ai-two-column {
    grid-template-columns: 1fr;
  }

  .ai-tabs,
  .ai-capability-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .ai-two-column {
    min-height: 0;
  }
}

.superchart {
  --super-watch-width: 260px;
  --super-side-width: 320px;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-columns: 72px var(--super-watch-width) minmax(0, 1fr) var(--super-side-width);
  grid-template-rows: 74px minmax(0, 1fr) 58px;
  background: #0f1012;
  color: #f2f2f4;
}

.superchart.open {
  display: grid;
}

.super-column-resizer {
  position: absolute;
  z-index: 12;
  top: 74px;
  bottom: 58px;
  width: 12px;
  transform: translateX(-50%);
  cursor: col-resize;
  touch-action: none;
  outline: none;
}

.super-column-resizer.watch {
  left: calc(72px + var(--super-watch-width));
}

.super-column-resizer.side {
  right: calc(var(--super-side-width) - 6px);
  transform: none;
}

.super-column-resizer::before {
  content: "";
  position: absolute;
  inset: 0 5px;
  border-radius: 2px;
  background: rgba(101, 181, 255, 0.18);
  opacity: 0.34;
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.super-column-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  background: rgba(15, 16, 18, 0.88);
  box-shadow: 0 0 0 2px rgba(15, 16, 18, 0.62);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.super-column-resizer:hover::before,
.super-column-resizer:focus-visible::before,
.superchart.resizing-columns .super-column-resizer::before {
  opacity: 1;
  background: #65b5ff;
  box-shadow: 0 0 12px rgba(101, 181, 255, 0.58);
}

.super-column-resizer:hover::after,
.super-column-resizer:focus-visible::after,
.superchart.resizing-columns .super-column-resizer::after {
  border-color: #65b5ff;
  background: #65b5ff;
  box-shadow: 0 0 12px rgba(101, 181, 255, 0.58);
}

.superchart.resizing-columns,
.superchart.resizing-columns * {
  cursor: col-resize !important;
  user-select: none !important;
}

.ai-workspace {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  grid-template-rows: 74px 1fr;
  background:
    radial-gradient(circle at 18% 6%, rgba(10, 132, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #101113, #07080a);
  color: #f5f5f7;
}

.ai-workspace.open {
  display: grid;
}

.ai-workspace-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.ai-workspace-top strong,
.ai-workspace-top span {
  display: block;
}

.ai-workspace-top strong {
  font-size: calc(18px + var(--app-font-delta, 0px));
}

.ai-workspace-top span {
  margin-top: 4px;
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.ai-tabs {
  height: 42px;
  display: grid;
  grid-auto-flow: column;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(120, 120, 128, 0.16);
}

.ai-tabs button {
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a1a1a6;
  cursor: pointer;
  padding: 0 14px;
}

.ai-tabs button.active {
  background: #0a84ff;
  color: #fff;
}

.ai-workspace-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.ai-hero-panel,
.ai-control-panel,
.ai-output {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(25, 27, 31, 0.9);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.ai-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.ai-hero-panel h2 {
  margin-top: 10px;
  font-size: calc(26px + var(--app-font-delta, 0px));
}

.ai-hero-panel p,
.ai-control-panel p {
  margin: 8px 0 0;
  max-width: 760px;
  color: #a1a1a6;
  line-height: 1.55;
}

.ai-capability-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px;
}

.ai-capability-grid span {
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(10, 132, 255, 0.26);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: #65b5ff;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 720;
  padding: 0 11px;
}

.ai-tab-panel {
  display: none;
}

.ai-tab-panel.active {
  display: block;
}

.ai-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  min-height: 540px;
}

.ai-control-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-control-panel h3 {
  margin: 0;
  font-size: calc(16px + var(--app-font-delta, 0px));
}

.ai-control-panel textarea,
.ai-control-panel input {
  width: 100%;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  outline: 0;
}

.ai-control-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.ai-control-panel input {
  height: 44px;
  padding: 0 12px;
}

.ai-output {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.ai-output .indicator-row div,
.ai-output .agent-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.review-workspace {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: none;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 132, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(48, 209, 88, 0.08), transparent 26%),
    linear-gradient(180deg, #101113, #07080a);
  color: #f5f5f7;
}

.review-workspace.open {
  display: grid;
}

.review-workspace.drawer-open .review-workspace-body {
  padding-right: min(534px, 40vw);
}

.review-workspace-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 20, 24, 0.9);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.review-workspace-top strong,
.review-workspace-top span {
  display: block;
}

.review-workspace-top strong {
  font-size: calc(18px + var(--app-font-delta, 0px));
}

.review-workspace-top span {
  margin-top: 4px;
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.review-actions {
  display: flex;
  gap: 10px;
}

.review-workspace-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  padding: 18px;
}

.review-brief,
.review-section,
.review-news-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(25, 27, 31, 0.9);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.review-brief {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.65fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.review-brief h2 {
  margin: 10px 0 0;
  max-width: 920px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
}

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

.review-market-stats div,
.swing-metrics span,
.review-checklist-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.review-market-stats div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
}

.review-market-stats span,
.review-section-head span,
.review-news-item time,
.review-news-item span {
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.review-market-stats b {
  font-size: calc(18px + var(--app-font-delta, 0px));
}

.review-market-stats .quality-ok,
.review-market-stats .quality-warn {
  grid-column: 1 / -1;
}

.review-market-stats .quality-ok b {
  color: var(--green);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.review-market-stats .quality-warn b {
  color: var(--orange);
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.review-section {
  grid-column: 1 / 2;
  padding: 16px;
}

.review-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-section-head h3 {
  margin: 0;
  font-size: calc(18px + var(--app-font-delta, 0px));
}

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

.theme-card-review {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.16), rgba(255, 255, 255, 0.04));
  color: inherit;
  text-align: left;
}

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

.theme-card-review b {
  font-size: calc(32px + var(--app-font-delta, 0px));
  color: #ff453a;
  font-variant-numeric: tabular-nums;
}

.theme-card-review span,
.theme-card-review p {
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.theme-card-review p {
  margin: 0;
  line-height: 1.45;
}

.theme-card-review small {
  color: #7d8590;
  font-size: calc(11px + var(--app-font-delta, 0px));
  line-height: 1.35;
}

.swing-focus-grid {
  display: grid;
  gap: 10px;
}

.swing-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.review-clickable {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.review-clickable::after {
  content: "›";
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(101, 181, 255, 0.72);
  font-weight: 900;
}

.review-clickable:hover,
.review-clickable:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  border-color: rgba(101, 181, 255, 0.62);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(255, 255, 255, 0.065));
  box-shadow: 0 16px 36px rgba(10, 132, 255, 0.12);
}

.review-clickable.selected {
  border-color: rgba(101, 181, 255, 0.86);
  box-shadow: inset 4px 0 0 #0a84ff, 0 18px 42px rgba(10, 132, 255, 0.16);
}

button.theme-card-review,
button.review-check-card,
button.review-news-item {
  font: inherit;
}

.swing-rank {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #bf1d12;
  color: #fff;
  font-weight: 850;
}

.swing-main header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.swing-main header small {
  display: block;
  margin-top: 2px;
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.swing-main header b {
  color: #ff453a;
  font-size: calc(24px + var(--app-font-delta, 0px));
  font-variant-numeric: tabular-nums;
}

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

.swing-metrics span {
  padding: 8px;
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.score-chip,
.drawer-score-row button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #a1a1a6;
  text-align: left;
  cursor: pointer;
  padding: 8px;
}

.score-chip:hover,
.drawer-score-row button:hover {
  border-color: rgba(101, 181, 255, 0.58);
  background: rgba(10, 132, 255, 0.12);
}

.swing-metrics b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: calc(15px + var(--app-font-delta, 0px));
}

.swing-main ul {
  margin: 0;
  padding-left: 18px;
  color: #d1d1d6;
  line-height: 1.65;
}

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

.review-checklist-grid article,
.review-check-card {
  min-height: 170px;
  padding: 13px;
}

.review-checklist-grid strong,
.review-check-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0a84ff;
}

.review-check-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: left;
}

.review-check-card strong {
  display: flex;
  justify-content: space-between;
}

.review-checklist-grid p,
.review-check-card p {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d1d6;
  line-height: 1.5;
}

.review-news-panel {
  grid-column: 2 / 3;
  grid-row: 1 / 5;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.review-news-list {
  display: grid;
  gap: 10px;
}

.review-news-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: #f5f5f7;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.review-news-item:hover {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.09);
}

.review-news-item strong {
  line-height: 1.45;
}

.review-news-item p {
  margin: 0;
  color: #a1a1a6;
  line-height: 1.5;
}

.review-news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.review-news-sources a {
  color: #65b5ff;
  text-decoration: none;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(10, 132, 255, 0.1);
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.review-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1a6;
}

.review-drawer {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 170;
  width: min(500px, calc(100vw - 24px));
  transform: translateX(104%);
  transition: transform 180ms ease;
  border-left: 1px solid rgba(101, 181, 255, 0.24);
  background: rgba(17, 19, 24, 0.96);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.review-drawer.open {
  transform: translateX(0);
}

.review-drawer-content {
  height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.review-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-drawer-head span,
.review-drawer-head small {
  display: block;
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.review-drawer-head strong {
  display: block;
  margin: 5px 0;
  font-size: calc(22px + var(--app-font-delta, 0px));
  line-height: 1.2;
}

.review-drawer-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  cursor: pointer;
}

.review-drawer-section {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.review-drawer-section strong {
  color: #f5f5f7;
}

.review-drawer-section p {
  margin: 0;
  color: #c7c7cc;
  line-height: 1.55;
}

.review-drawer-section.warning {
  border-color: rgba(255, 159, 10, 0.28);
  background: rgba(255, 159, 10, 0.08);
}

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

.drawer-score-row div,
.drawer-score-row button {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(10, 132, 255, 0.1);
}

.drawer-score-row span {
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.drawer-score-row b {
  color: #fff;
  font-size: calc(22px + var(--app-font-delta, 0px));
  font-variant-numeric: tabular-nums;
}

.drawer-tags,
.drawer-stock-list,
.drawer-news-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-tags span,
.drawer-tags em {
  padding: 6px 9px;
  border: 1px solid rgba(101, 181, 255, 0.24);
  border-radius: 999px;
  color: #cfe7ff;
  background: rgba(10, 132, 255, 0.1);
  font-style: normal;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.drawer-stock-list button {
  min-width: 132px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
  text-align: left;
  cursor: pointer;
}

.drawer-stock-list button:hover {
  border-color: rgba(101, 181, 255, 0.52);
  background: rgba(10, 132, 255, 0.11);
}

.drawer-stock-list small,
.drawer-disclaimer {
  color: #8e8e93;
}

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

.review-drawer-actions button,
.review-drawer-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
}

.drawer-primary {
  grid-column: 1 / -1;
  border: 1px solid rgba(10, 132, 255, 0.48);
  background: #0a84ff;
  color: #fff;
}

.drawer-secondary {
  border: 1px solid rgba(101, 181, 255, 0.28);
  background: rgba(10, 132, 255, 0.12);
  color: #dcecff;
}

.drawer-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d1d6;
}

.credit-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.review-drawer-actions .loading {
  opacity: 0.72;
  cursor: wait;
}

.review-drawer-actions .success {
  border-color: rgba(48, 209, 88, 0.42);
  background: rgba(48, 209, 88, 0.12);
  color: #b9f6ca;
}

.review-drawer-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: #a1a1a6;
}

.review-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 240;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 13px;
  border: 1px solid rgba(48, 209, 88, 0.34);
  border-radius: 12px;
  background: rgba(22, 35, 27, 0.96);
  color: #d8ffd9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.review-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.review-toast.danger {
  border-color: rgba(255, 69, 58, 0.38);
  background: rgba(48, 21, 22, 0.96);
  color: #ffd7d7;
}

.review-disclaimer {
  padding: 10px 18px 14px;
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 24, 0.88);
}

.super-topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) repeat(5, auto) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
}

.super-topbar strong {
  width: 58px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #202226;
  font-weight: 850;
}

.super-search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
  background: #181a1d;
  color: #d1d1d6;
}

.super-search span {
  flex: none;
  color: #65b5ff;
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.super-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f7;
  font-weight: 650;
}

.super-tool,
.trade,
.publish,
.super-left button,
.super-right button,
.super-range button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d1d1d6;
  cursor: pointer;
}

.super-tool {
  height: 38px;
  min-width: 48px;
  padding: 0 12px;
}

.icon-tool {
  min-width: 44px;
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: calc(17px + var(--app-font-delta, 0px));
  line-height: 1;
}

.super-tool.active {
  color: #fff;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
}

.timeframe-menu {
  position: relative;
}

.timeframe-options {
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 2;
  width: 132px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #181a1d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.timeframe-menu.open .timeframe-options {
  display: grid;
  gap: 4px;
}

.timeframe-options button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d1d1d6;
  cursor: pointer;
  text-align: left;
  padding: 0 10px;
}

.timeframe-options button:hover,
.timeframe-options button.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
}

.trade,
.publish {
  height: 42px;
  min-width: 44px;
  border-radius: 999px;
  font-weight: 760;
}

.publish {
  background: #fff;
  color: #111214;
}

.super-left,
.super-right {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
}

.super-watch-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
}

.super-right {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.super-left button,
.super-right button {
  min-height: 44px;
  border-radius: 12px;
  font-size: calc(18px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.super-left button:hover,
.super-right button:hover,
.super-range button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.super-left button.active,
.super-right button.active {
  color: #fff;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.22);
}

.super-left button:disabled {
  color: rgba(209, 209, 214, 0.34);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  background: transparent;
}

.super-watch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.super-watch-tabs button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #a1a1a6;
  cursor: pointer;
  font-weight: 760;
}

.super-watch-tabs button.active {
  color: #65b5ff;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.14);
}

.super-watch-title {
  height: 28px;
  display: flex;
  align-items: center;
  color: #a1a1a6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 760;
}

.super-watch-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: #8e8e93;
}

.super-watch-empty strong {
  color: #f5f5f7;
}

.super-watch-empty span {
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.super-watch-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.super-watch-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #f5f5f7;
  text-align: left;
  cursor: pointer;
}

.super-watch-list button.active,
.super-watch-list button:hover {
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(59, 130, 246, 0.13);
}

.super-watch-list span,
.super-watch-list b,
.super-watch-list em,
.super-watch-list strong,
.super-watch-list small {
  min-width: 0;
}

.super-watch-list span {
  display: grid;
  gap: 2px;
}

.super-watch-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.super-watch-list em {
  color: #8e8e93;
  font-style: normal;
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.super-watch-list svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 88px;
  height: 34px;
}

.super-watch-list polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.super-watch-list strong {
  grid-column: 3;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.super-watch-list small {
  grid-column: 3;
  justify-self: end;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.super-watch-list .up {
  color: var(--price-up);
}

.super-watch-list .down {
  color: var(--price-down);
}

.super-side-panel {
  grid-column: 1 / -1;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.super-side-panel h3 {
  margin: 0 0 4px;
  font-size: calc(14px + var(--app-font-delta, 0px));
}

.super-side-panel p,
.super-side-panel button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.super-side-panel button {
  cursor: pointer;
}

.super-side-panel small {
  display: block;
  margin-top: 3px;
  color: #8e8e93;
}

.super-side-panel em {
  color: #8e8e93;
  font-style: normal;
}

.super-side-panel .ask b {
  color: #ff3655;
}

.super-side-panel .bid b {
  color: #20e3c3;
}

.super-side-quote,
.super-side-mid {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
}

.super-side-quote b {
  font-size: calc(22px + var(--app-font-delta, 0px));
}

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

.super-stat-grid div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.super-stat-grid span {
  color: #8e8e93;
  font-size: calc(11px + var(--app-font-delta, 0px));
}

.super-stat-grid b {
  font-variant-numeric: tabular-nums;
}

.super-market-strip {
  grid-column: 2 / -1;
  min-width: 0;
  overflow-x: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
}

.super-market-strip button {
  min-width: 0;
  height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #f5f5f7;
  cursor: pointer;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

.super-market-strip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d1d1d6;
  font-weight: 760;
}

.super-market-strip em {
  color: #a1a1a6;
  font-style: normal;
}

.super-market-strip strong {
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.super-market-strip .up strong,
.super-market-strip .up em {
  color: var(--price-up);
}

.super-market-strip .down strong,
.super-market-strip .down em {
  color: var(--price-down);
}

.market-analysis-drawer {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: none;
}

.market-analysis-drawer.open {
  display: block;
}

.market-analysis-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.market-analysis-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  overflow: auto;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #161719;
  color: #f5f5f7;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
}

.market-analysis-head {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #202226, #17181a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-analysis-head button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #d1d1d6;
  cursor: pointer;
  font-size: calc(36px + var(--app-font-delta, 0px));
  line-height: 1;
}

.market-analysis-head strong {
  text-align: center;
  font-size: calc(24px + var(--app-font-delta, 0px));
}

.market-analysis-head span {
  color: #a1a1a6;
  font-variant-numeric: tabular-nums;
}

.market-analysis-content {
  display: grid;
  gap: 14px;
  padding: 18px 22px 28px;
}

.market-analysis-section {
  padding: 18px 0 20px;
  border-bottom: 10px solid #0b0c0e;
}

.market-analysis-section h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #d1d1d6;
  font-size: calc(26px + var(--app-font-delta, 0px));
}

.market-analysis-section h2 span {
  color: #8e8e93;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.breadth-histogram {
  min-height: 168px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}

.breadth-histogram div {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 6px;
}

.breadth-histogram b {
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-variant-numeric: tabular-nums;
}

.breadth-histogram i {
  width: 100%;
  min-height: 8px;
  border-radius: 3px 3px 0 0;
  background: #8e8e93;
}

.breadth-histogram i.up {
  background: var(--price-up);
}

.breadth-histogram i.down {
  background: var(--price-down);
}

.breadth-histogram span {
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
  white-space: nowrap;
}

.breadth-balance {
  height: 10px;
  display: flex;
  gap: 5px;
  margin: 18px 0 10px;
}

.analysis-stat-row,
.analysis-kpis,
.strong-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analysis-stat-row.style {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-stat-row b,
.analysis-kpis div,
.strong-board-grid div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  font-variant-numeric: tabular-nums;
}

.analysis-stat-row span,
.analysis-kpis span,
.strong-board-grid span {
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.analysis-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.analysis-kpis b,
.strong-board-grid b {
  font-size: calc(22px + var(--app-font-delta, 0px));
}

.mini-line-chart {
  display: grid;
  gap: 8px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d1d1d6;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 3px;
  margin-right: 5px;
  border-radius: 99px;
  vertical-align: middle;
  background: currentColor;
}

.mini-line-chart svg {
  width: 100%;
  height: 190px;
}

.mini-line-chart line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-dasharray: 4 4;
}

.mini-line-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orange {
  color: #ff8a2a;
  stroke: #ff8a2a;
}

.blue {
  color: #2f9cff;
  stroke: #2f9cff;
}

.purple {
  color: #a855f7;
  stroke: #a855f7;
}

.cyan {
  color: #22c7ff;
  stroke: #22c7ff;
}

.analysis-note {
  color: #8e8e93;
  line-height: 1.6;
}

.indicator-settings {
  position: fixed;
  top: 84px;
  right: 296px;
  z-index: 180;
  width: 320px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  display: none;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #171a1f;
  color: #f5f5f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.indicator-settings.open {
  display: block;
}

.indicator-settings header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.indicator-settings header button,
.indicator-settings form button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  cursor: pointer;
  padding: 0 12px;
}

.indicator-settings form {
  display: grid;
  gap: 10px;
}

.indicator-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}

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

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

.indicator-grid input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #22262d;
  color: #f5f5f7;
  outline: 0;
  padding: 0 9px;
}

.ma-period-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.ma-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 11px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.13);
  color: #dcecff;
  font-weight: 760;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.ma-pill strong {
  min-width: 34px;
}

.ma-pill input[type="color"] {
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ma-pill button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: calc(14px + var(--app-font-delta, 0px));
  line-height: 0;
}

.indicator-grid.add-ma-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.indicator-grid.add-fib-row {
  grid-template-columns: minmax(0, 1fr) 46px auto;
}

.indicator-grid.add-ma-row button {
  min-width: 74px;
}

.indicator-grid.add-fib-row button {
  min-width: 64px;
}

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

.fib-level-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 34px;
  gap: 8px;
  align-items: center;
}

.fib-level-row input[type="color"],
.indicator-grid input[type="color"] {
  padding: 3px;
  cursor: pointer;
}

.fib-level-row button {
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: calc(15px + var(--app-font-delta, 0px));
}

.indicator-settings .primary {
  width: 100%;
  border-color: rgba(10, 132, 255, 0.36);
  background: #0a84ff;
}

.chart-tooltip {
  position: fixed;
  z-index: 260;
  min-width: max-content;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -2px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(24, 26, 31, 0.96);
  color: #f5f5f7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-size: calc(12px + var(--app-font-delta, 0px));
  font-weight: 720;
  transition: opacity 120ms ease, transform 120ms ease;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drawing-context-menu {
  position: fixed;
  z-index: 390;
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(101, 181, 255, 0.32);
  border-radius: 10px;
  background: rgba(17, 18, 20, 0.98);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.drawing-context-menu.open {
  display: grid;
  gap: 4px;
}

.drawing-context-menu button {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: #f5f5f7;
  font-size: calc(13px + var(--app-font-delta, 0px));
  font-weight: 720;
  background: transparent;
}

.drawing-context-menu button:hover {
  border-color: rgba(101, 181, 255, 0.42);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(255, 255, 255, 0.055));
}

.superchart.drawing-mode #superCanvas {
  cursor: crosshair;
}

.super-canvas-wrap {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 8px;
}

.super-chart-head {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr);
  align-items: start;
  gap: 16px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #111214;
}

.super-chart-head h2 {
  color: #f2f2f4;
  font-size: calc(18px + var(--app-font-delta, 0px));
  margin-bottom: 8px;
}

.super-chart-head span {
  color: #20e3c3;
  font-variant-numeric: tabular-nums;
}

.super-data-strip {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(101, 181, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 12, 18, 0.72);
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
}

.probe-primary,
.probe-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.probe-primary strong {
  color: #f5f5f7;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.probe-primary b,
.probe-grid b {
  font-weight: 800;
}

.probe-primary span,
.probe-grid span {
  color: #a1a1a6;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.probe-primary em {
  margin-left: auto;
  color: rgba(161, 161, 166, 0.78);
  font-size: calc(11px + var(--app-font-delta, 0px));
  font-style: normal;
}

.probe-grid {
  flex-wrap: wrap;
  gap: 5px 12px;
}

.probe-grid span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#superCanvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101113;
  cursor: grab;
  touch-action: none;
}

.superchart.drawing-mode #superCanvas {
  cursor: crosshair;
}

#superCanvas:active {
  cursor: grabbing;
}

.super-range {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #111214;
}

.super-range button {
  border: 0;
  font-size: calc(16px + var(--app-font-delta, 0px));
}

.super-range span {
  margin-left: auto;
  color: #d1d1d6;
  font-variant-numeric: tabular-nums;
}

.strategy-lab-workspace {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  grid-template-rows: 74px 1fr;
  background: #0b0d10;
  color: #f5f5f7;
}

.strategy-lab-workspace.open {
  display: grid;
}

.strategy-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 22, 26, 0.96);
}

.strategy-lab-top strong {
  display: block;
  font-size: calc(20px + var(--app-font-delta, 0px));
}

.strategy-lab-top span {
  color: #a1a1a6;
  font-size: calc(13px + var(--app-font-delta, 0px));
}

.strategy-lab-body {
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.strategy-lab-hero,
.strategy-builder-card,
.strategy-json-card,
.strategy-backtest-card,
.strategy-optimize-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 34, 41, 0.94), rgba(18, 20, 24, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.strategy-lab-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
}

.strategy-lab-hero h2 {
  margin: 12px 0 8px;
  font-size: calc(28px + var(--app-font-delta, 0px));
}

.strategy-lab-hero p {
  margin: 0;
  max-width: 860px;
  color: #a1a1a6;
  line-height: 1.7;
}

.strategy-lab-status {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: rgba(10, 132, 255, 0.1);
  color: #65b4ff;
  font-weight: 800;
  text-align: center;
}

.strategy-lab-grid {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.strategy-builder-card,
.strategy-json-card,
.strategy-backtest-card,
.strategy-optimize-card {
  padding: 18px;
}

.strategy-builder-card {
  display: grid;
  gap: 14px;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.strategy-builder-card h3,
.strategy-card-head h3 {
  margin: 0;
}

.strategy-builder-card label {
  display: grid;
  gap: 8px;
  color: #a1a1a6;
  font-weight: 800;
}

.strategy-builder-card input,
.strategy-builder-card select,
.strategy-builder-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  padding: 12px;
  font: inherit;
}

.strategy-builder-card textarea {
  min-height: 150px;
  resize: vertical;
}

.strategy-lab-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.strategy-template-list {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.strategy-template-list strong {
  color: #d1d1d6;
}

.strategy-template-list button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.strategy-template-list button:hover {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.12);
}

.strategy-template-list button.active {
  border-color: rgba(10, 132, 255, 0.72);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(10, 132, 255, 0.08));
  box-shadow: inset 3px 0 0 #0a84ff;
}

.strategy-template-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(10, 132, 255, 0.14);
  color: #65b4ff;
  font-weight: 900;
}

.strategy-template-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.strategy-template-copy strong,
.strategy-template-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-template-copy small {
  color: #8e8e93;
}

.strategy-template-check {
  color: #65b4ff;
  font-weight: 900;
  opacity: 0;
}

.strategy-template-list button.active .strategy-template-check {
  opacity: 1;
}

.strategy-template-list span {
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.strategy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.strategy-card-head span {
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

#strategyJsonView {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #0f1115;
  color: #c7d2fe;
  font-size: calc(13px + var(--app-font-delta, 0px));
  line-height: 1.55;
}

.strategy-backtest-card {
  grid-column: 2;
  grid-row: 1;
  min-height: 430px;
}

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

.strategy-backtest-summary div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.strategy-backtest-summary span {
  display: block;
  color: #8e8e93;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

.strategy-backtest-summary strong {
  display: block;
  margin-top: 6px;
  font-size: calc(20px + var(--app-font-delta, 0px));
}

#strategyEquityCanvas {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #101318;
}

.strategy-trade-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.strategy-trade-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.strategy-trade-list span,
.strategy-trade-list small,
.strategy-optimize-result small {
  color: #8e8e93;
}

.strategy-optimize-result {
  display: grid;
  gap: 10px;
  color: #d1d1d6;
  line-height: 1.65;
}

.strategy-optimize-card {
  grid-column: 2;
  grid-row: 2;
}

.strategy-json-details {
  grid-column: 1 / -1;
  grid-row: 3;
}

.strategy-json-details > summary,
.strategy-advanced-settings > summary {
  cursor: pointer;
  color: #a1a1a6;
  font-weight: 800;
  list-style-position: inside;
}

.strategy-json-details[open] > summary,
.strategy-advanced-settings[open] > summary {
  margin-bottom: 14px;
  color: #f5f5f7;
}

.strategy-advanced-settings {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.strategy-advanced-settings label {
  margin-top: 12px;
}

.strategy-advanced-settings button {
  width: 100%;
  margin-top: 10px;
}

.strategy-run-button {
  width: 100%;
  min-height: 48px;
  font-weight: 900;
}

.strategy-lab-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-lab-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  padding: 10px 12px;
  border-left: 2px solid rgba(10, 132, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.strategy-lab-steps b {
  color: #65b4ff;
}

.strategy-lab-steps span {
  color: #d1d1d6;
  white-space: nowrap;
}

.strategy-result-empty {
  display: grid;
  place-content: center;
  gap: 10px;
  min-height: 310px;
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 15, 0.45);
  text-align: center;
}

.strategy-result-empty b {
  font-size: calc(22px + var(--app-font-delta, 0px));
}

.strategy-result-empty span {
  max-width: 520px;
  color: #8e8e93;
  line-height: 1.6;
}

.strategy-result-empty:not([hidden]) ~ .strategy-backtest-summary,
.strategy-result-empty:not([hidden]) ~ #strategyEquityCanvas,
.strategy-result-empty:not([hidden]) ~ .strategy-trade-list {
  display: none;
}

.strategy-plain-result {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #8e8e93;
  background: rgba(255, 255, 255, 0.04);
}

.strategy-plain-result.positive { border-left-color: #30d158; }
.strategy-plain-result.negative { border-left-color: #ff453a; }
.strategy-plain-result.neutral { border-left-color: #ffd60a; }

.strategy-plain-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.strategy-plain-head span,
.strategy-plain-result small {
  color: #8e8e93;
}

.strategy-plain-head strong {
  font-size: calc(22px + var(--app-font-delta, 0px));
}

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

.strategy-plain-grid p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 12px;
  background: rgba(7, 10, 15, 0.42);
}

.strategy-plain-grid span {
  color: #c7c7cc;
  line-height: 1.55;
}

.strategy-lab-disclaimer {
  margin: 16px 0 0;
  color: #8e8e93;
  text-align: center;
}

.strategy-optimize-result p {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.strategy-optimize-version {
  color: #0a84ff;
  font-weight: 900;
}

.strategy-next-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-next-tests span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #65b4ff;
  font-size: calc(12px + var(--app-font-delta, 0px));
}

@media (max-width: 1050px) {
  .review-workspace-top,
  .review-workspace-body,
  .review-brief,
  .theme-chip-grid,
  .swing-metrics,
  .review-checklist-grid,
  .strategy-lab-grid,
  .strategy-lab-hero,
  .strategy-lab-actions,
  .strategy-backtest-summary {
    grid-template-columns: 1fr;
  }

  .review-workspace-body {
    grid-template-rows: none;
  }

  .review-news-panel,
  .review-brief,
  .review-section {
    grid-column: 1;
    grid-row: auto;
  }

  .strategy-lab-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .strategy-builder-card,
  .strategy-backtest-card,
  .strategy-optimize-card,
  .strategy-json-details {
    grid-column: 1;
    grid-row: auto;
  }

  .strategy-lab-steps {
    flex-wrap: wrap;
  }

  .strategy-plain-grid {
    grid-template-columns: 1fr;
  }

  .superchart {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .super-topbar {
    grid-template-columns: 1fr auto;
  }

  .super-topbar .super-tool,
  .super-topbar .trade,
  .super-search {
    display: none;
  }

  .super-left,
  .super-right,
  .super-watch-panel,
  .super-column-resizer,
  .super-market-strip {
    display: none;
  }
}
