/* ============================================================
   Ctrader Control — design system
   Mobile-first trading command center. Dark terminal theme with
   a gold accent (XAUUSD). All interactive targets ≥ 44px, all
   color pairs meet WCAG AA on their intended surfaces.
   ============================================================ */

:root {
  /* palette */
  --bg: #0a0e14;
  --bg-raise: #10151d;
  --surface: #151b26;
  --surface-2: #1b2331;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --text-2: #9aa6b8;
  --text-3: #64708a;
  --accent: #d4a437;
  --accent-soft: rgba(212, 164, 55, 0.14);
  --accent-text: #f0c969;
  --up: #34c98e;
  --up-soft: rgba(52, 201, 142, 0.13);
  --down: #f26d6d;
  --down-soft: rgba(242, 109, 109, 0.13);
  --warn: #f5b945;
  --warn-soft: rgba(245, 185, 69, 0.13);
  --info: #5ea0f5;
  --info-soft: rgba(94, 160, 245, 0.13);

  /* metrics */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --pad: 16px;
  --gap: 12px;
  --nav-h: 60px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.8, 0.3, 1);
}

* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--bg); color: var(--accent);
}
.splash-mark { width: 56px; height: 56px; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.94); } }

/* ---------- shell ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.shell { display: flex; flex-direction: column; height: 100%; }
.main {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(12px + var(--sat)) var(--pad) calc(var(--nav-h) + var(--sab) + 24px);
  padding-left: max(var(--pad), var(--sal));
  padding-right: max(var(--pad), var(--sar));
}
.main > * { max-width: 720px; margin-inline: auto; width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--sat)) var(--pad) 10px;
  padding-left: max(var(--pad), var(--sal));
  padding-right: max(var(--pad), var(--sar));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
.topbar .spacer { flex: 1; }
.mark { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* ---------- bottom navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  padding: 6px max(8px, var(--sal)) calc(6px + var(--sab)) max(8px, var(--sar));
  background: color-mix(in srgb, var(--bg-raise) 88%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 62px; min-height: 48px; padding: 6px 8px 4px;
  border: 0; background: none; border-radius: var(--r-sm);
  color: var(--text-3); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2px; cursor: pointer;
  transition: color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item[aria-current="page"] { color: var(--accent-text); }
.nav-item:active { background: var(--surface-2); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raise) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad);
  margin-bottom: var(--gap);
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 13px; font-weight: 700;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.8px;
}
.card-title .age { margin-left: auto; }

/* ---------- rows & lists ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-label {
  font-size: 15px; font-weight: 550;
  overflow-wrap: anywhere; /* long rule names never hide meaning */
}
.row-sub {
  font-size: 12.5px; color: var(--text-2); margin-top: 2px;
  overflow-wrap: anywhere;
}
.row-side { flex: none; text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--text-2); margin: 0; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.2px;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.up   { background: var(--up-soft);   color: var(--up);   border-color: transparent; }
.chip.down { background: var(--down-soft); color: var(--down); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.gold { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.age {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.age .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.age.stale .dot { background: var(--warn); animation: blink 1.4s infinite; }
.age.dead  .dot { background: var(--down); }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform 0.1s var(--ease), background 0.15s,
              border-color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; pointer-events: auto; cursor: not-allowed;
}
.btn.primary {
  background: linear-gradient(180deg, #e3b54a, #c69530);
  border-color: transparent; color: #161203;
}
.btn.danger {
  background: var(--down-soft); color: var(--down);
  border-color: color-mix(in srgb, var(--down) 40%, transparent);
}
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.block { width: 100%; }
/* `.small` is an accepted alias of `.sm` — both are used in screens.
   Touch floor stays 44px; the desktop media query shrinks it. */
.btn.sm, .btn.small { min-height: 44px; padding: 0 12px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* natural width — never stretch a button to fill the row */
.btn-row .btn { flex: 0 0 auto; }
/* form footer: actions right-aligned, compact */
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--surface); border-color: var(--text-3); }
  .btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #eec258, #d1a03a); border-color: transparent; }
  .btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--down) 22%, transparent); }
  .btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
  .nav-item:hover { color: var(--text-2); }
  .row.hoverable:hover { background: var(--surface); }
}

/* ---------- banner / states ---------- */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 14px; line-height: 1.4; margin-bottom: var(--gap);
  border: 1px solid;
}
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: #f3cd8a; }
.banner.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); color: #a9c9f7; }
.banner.down { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 35%, transparent); color: #f5a3a3; }

.empty, .error-block {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 36px 20px; text-align: center; color: var(--text-2);
}
.empty svg, .error-block svg { width: 34px; height: 34px; opacity: 0.5; }
.empty .h, .error-block .h { font-size: 15px; font-weight: 650; color: var(--text); }
.empty .p, .error-block .p { font-size: 13.5px; max-width: 40ch; }
.error-block { color: var(--down); }

/* ---------- skeleton ---------- */
.sk {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk.line { height: 14px; margin: 8px 0; }
.sk.card { height: 120px; margin-bottom: var(--gap); border-radius: var(--r-lg); }

/* ---------- bottom sheet ---------- */
.sheet-veil {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s var(--ease);
}
.sheet-veil.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 8px var(--pad) calc(var(--sab) + 20px);
  padding-left: max(var(--pad), var(--sal));
  padding-right: max(var(--pad), var(--sar));
  max-width: 560px; margin-inline: auto;
  transform: translateY(105%);
  transition: transform 0.28s var(--ease);
  max-height: 82dvh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet-grip {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--line-strong); margin: 6px auto 14px;
}
.sheet-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.sheet-sub { font-size: 13.5px; color: var(--text-2); margin: 0 0 16px; }

/* steps inside a sheet (consent → step-up → execute) */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
}
.step .n {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line-strong);
}
.step.active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.step.active .n { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.step.done .n { background: var(--up-soft); color: var(--up); border-color: transparent; }
.step .t { font-size: 14.5px; font-weight: 600; }
.step .d { font-size: 12px; color: var(--text-2); margin-top: 1px; }

/* command state progress */
.cmd-line { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.cmd-line .seg { height: 3px; flex: 1; border-radius: 2px; background: var(--surface-2); }
.cmd-line .seg.on { background: var(--info); }
.cmd-line .seg.done { background: var(--up); }
.cmd-line .seg.bad { background: var(--down); }

/* ---------- toast ---------- */
.toasts {
  position: fixed; left: 0; right: 0; z-index: 80;
  bottom: calc(var(--nav-h) + var(--sab) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 var(--pad);
}
.toast {
  max-width: 100%; padding: 11px 16px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.25s var(--ease);
}
.toast.err { color: var(--down); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- offline bar ---------- */
.netbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  background: var(--down-soft); color: var(--down);
}
.netbar.online { background: var(--up-soft); color: var(--up); }

/* ---------- forms ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 600; }
.input {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--text); font-size: 15px;
}
.input:focus { border-color: var(--accent); outline: none; }
textarea.input { padding: 10px 12px; min-height: 0; resize: vertical; }

/* ---------- login ---------- */
.login {
  min-height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(24px + var(--sat)) var(--pad) calc(24px + var(--sab));
  gap: 18px; text-align: center;
}
.login .mark { width: 64px; height: 64px; }
.login h1 { font-size: 22px; margin: 0; letter-spacing: 0.3px; }
.login .sub { color: var(--text-2); font-size: 14px; max-width: 34ch; margin: 0; }
.login .btn { min-width: 240px; margin-top: 8px; }
.login details { width: 100%; max-width: 320px; text-align: left; }
.login summary {
  font-size: 13px; color: var(--text-3); cursor: pointer;
  padding: 10px; text-align: center; list-style: none;
}
.login details[open] summary { padding-bottom: 4px; }

/* ---------- value formats ---------- */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.dim { color: var(--text-3); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- tablet & desktop ---------- */
@media (min-width: 860px) {
  body { font-size: 15px; }
  .shell { flex-direction: row; }
  .nav {
    position: static; flex-direction: column; justify-content: flex-start;
    width: 88px; padding: calc(16px + var(--sat)) 8px 16px;
    border-top: 0; border-right: 1px solid var(--line);
    gap: 6px; order: -1;
  }
  .nav-item { width: 100%; }
  .main { padding-bottom: 40px; }
  .main > * { max-width: 780px; }
  .side-wrap { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }

  /* compact controls — pointer precision, not thumb reach */
  .btn { min-height: 34px; padding: 0 13px; font-size: 13px;
         border-radius: var(--r-sm); }
  .btn.sm, .btn.small { min-height: 28px; padding: 0 10px; font-size: 12px; }
  /* full-width is a mobile idiom; on desktop buttons size to content */
  .btn.block { width: auto; }
  .input { min-height: 34px; font-size: 13.5px; border-radius: var(--r-sm); }
  .row { padding: 8px 0; min-height: 36px; }
  .card { padding: 14px 16px; }
  .card-title { margin-bottom: 10px; }

  .sheet { border-radius: 22px; bottom: 24px; left: 50%; right: auto;
           transform: translate(-50%, 120%); width: min(480px, 92vw); }
  .sheet.open { transform: translate(-50%, 0); }
}

/* Assistant workspace */
.main > .ai-workspace { max-width: 1180px; }
.ai-workspace { padding: 12px 0 24px; }
.ai-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.ai-eyebrow { font-size:11px; font-weight:700; color:var(--accent-text); letter-spacing:2px; }
.ai-hero h1 { font-size:clamp(25px,3vw,36px); letter-spacing:-1px; line-height:1.15; margin:10px 0; }
.ai-hero p,.ai-help { color:var(--text-2); font-size:13px; line-height:1.6; }
.ai-hero p { margin:0; font-size:15px; }
.ai-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.ai-stat { border:1px solid var(--line); background:var(--surface); padding:18px; border-radius:16px; display:flex; flex-direction:column; gap:7px; min-width:0; }
.ai-stat span { color:var(--text-2); font-size:12px; }
.ai-stat strong { font-size:23px; letter-spacing:-.5px; }
.ai-stat small { font-size:11px; color:var(--text-3); overflow-wrap:anywhere; }
.ai-columns { display:grid; grid-template-columns:minmax(300px,370px) minmax(0,1fr); gap:22px; align-items:start; }
.ai-workspace .card { padding:22px; margin-bottom:18px; }
.ai-workspace h2 { margin:0; font-size:17px; letter-spacing:-.3px; }
.ai-workspace h3 { font-size:15px; margin:0; }
.ai-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.ai-step-label { color:var(--text-3); font-size:11px; }
.ai-providers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:20px 0; }
.ai-provider { cursor:pointer; text-align:left; min-width:0; display:flex; flex-direction:column; gap:10px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); padding:12px 9px; color:var(--text-2); }
.ai-provider[aria-pressed=true] { border-color:var(--accent); background:var(--accent-soft); color:var(--text); }
.ai-provider strong { display:block; font-size:12px; }
.ai-provider small { display:block; font-size:9px; margin-top:4px; }
.ai-provider-mark { display:grid; place-items:center; width:27px; height:27px; border:1px solid var(--line-strong); border-radius:8px; font-size:14px; color:var(--text); }
.ai-field { display:flex; flex-direction:column; gap:7px; margin:15px 0; min-width:0; }
.ai-field > span { color:var(--text-2); font-size:12px; font-weight:600; }
.ai-field small { font-size:11px; color:var(--text-3); line-height:1.5; }
.ai-workspace .input { min-height:44px; font-size:14px; width:100%; }
.ai-workspace textarea.input { font-family:var(--font); min-height:110px; padding:14px; line-height:1.6; }
.ai-workspace .btn { min-height:40px; font-size:12px; padding:0 12px; white-space:normal; }
.ai-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.ai-advanced { margin-top:22px; border-top:1px solid var(--line); padding-top:16px; }
.ai-advanced summary { cursor:pointer; color:var(--text-2); font-size:12px; }
.ai-check { display:flex; align-items:center; gap:10px; margin:14px 0; font-size:12px; color:var(--text-2); }
.ai-check input { width:17px; height:17px; accent-color:var(--accent); }
.ai-composer-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.ai-composer-footer > span { color:var(--text-3); font-size:11px; }
.ai-message { color:var(--up); font-size:13px; margin-top:12px; line-height:1.6; overflow-wrap:anywhere; }
.ai-message.is-error { color:var(--down); }
.ai-inline-stats { font-size:12px; color:var(--text-2); line-height:1.7; }
.ai-content { min-width:0; }
.ai-content pre { max-height:320px; overflow:auto; white-space:pre-wrap; font-size:11px; color:var(--text-2); }
.ai-content details summary { cursor:pointer; color:var(--text-2); font-size:12px; margin:12px 0; }
@media(max-width:1000px) { .ai-columns { display:flex;flex-direction:column;gap:0; }.ai-sidebar { display:contents; }.ai-connect {order:0;width:100%;}.ai-content {order:1;width:100%;}.ai-research {order:2;width:100%;} }
@media(max-width:620px) { .ai-hero { align-items:flex-start;flex-direction:column;gap:12px; }.ai-stats {gap:8px;}.ai-stat {padding:12px;}.ai-stat strong{font-size:18px;}.ai-workspace .card {padding:18px;}.ai-composer-footer{align-items:flex-end;}.ai-stats small{font-size:10px;} }

/* Durable decision reports */
.main > .report-workspace {max-width:1180px;}
.report-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;align-items:start;margin-bottom:24px;}
.report-list-item{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;width:100%;padding:17px;margin-bottom:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--text);cursor:pointer;overflow-wrap:anywhere;}
.report-list-item:hover{border-color:var(--accent);}.report-list-item strong{font-size:14px;line-height:1.5;}
.report-document{padding:26px;overflow-wrap:anywhere;}.report-document h1{font-size:24px;line-height:1.35;margin:16px 0;}.report-document h2{font-size:16px;margin-top:26px;}.report-answer{white-space:pre-wrap;line-height:1.8;}
.report-document figure{margin:18px 0;}.report-document img{width:100%;display:block;}.report-document figcaption{font-size:11px;color:var(--text-2);margin-top:8px;}
.report-check{padding:14px 0;border-bottom:1px solid var(--line);}.report-check .chip{margin-left:12px;}.report-check p{font-size:13px;color:var(--text-2);line-height:1.6;}
.report-evidence{border-bottom:1px solid var(--line);padding:14px 0;}.report-evidence summary{font-size:13px;color:var(--text-2);cursor:pointer;}.report-evidence pre{font-size:11px;line-height:1.6;white-space:pre-wrap;max-height:440px;overflow:auto;}
@media(max-width:800px){.report-layout{grid-template-columns:1fr;}.report-document{padding:18px;}.report-document h1{font-size:20px;}}

.main > .screen-ai,.main > .screen-reports {max-width:1180px;}

.report-document figure {overflow-x:auto;}
@media(max-width:620px){.report-document figure img{min-width:640px;}.report-document figcaption{max-width:100%;}}
.report-list-item strong{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}

.market-panel{margin:20px 0;}.market-panel h2{margin:6px 0;font-size:20px;}.market-panel figure{margin:18px 0;overflow-x:auto;}.market-panel img{width:100%;min-width:640px;display:block;}.market-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px;}.market-facts>div{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--line);padding:14px;border-radius:12px;}.market-facts span{font-size:11px;color:var(--text-2);}.market-facts strong{font-size:19px;}@media(max-width:620px){.market-facts{grid-template-columns:1fr 1fr;}}
