/* ============================================================
   Crypto AI Analysis Panel — Design System v3
   Glassmorphism dashboard, dark/light themes, RTL/LTR,
   skeleton loaders, staggered reveals, ripple micro-interactions.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --font-latin: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-fa: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --primary: #6366f1;
  --primary-2: #22d3ee;
  --accent: #a78bfa;
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;

  --gradient-brand: linear-gradient(120deg, var(--primary), var(--primary-2));
  --gradient-glow: radial-gradient(60% 60% at 30% 0%, rgba(99,102,241,.35), transparent 70%);

  --t-fast: 150ms ease;
  --t-med: 250ms cubic-bezier(.4,0,.2,1);
  --t-slow: 400ms cubic-bezier(.16,1,.3,1);

  --maxw: 1440px;
}

html[data-theme='dark'] {
  --bg: #070b14;
  --bg-2: #0b1120;
  --text: #e6edf7;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --glass: rgba(148,163,184,.06);
  --glass-2: rgba(148,163,184,.10);
  --glass-3: rgba(148,163,184,.16);
  --pop-bg: #151d31;
  --pop-opt-hover: #1f2a41;
  --pop-opt-active: rgba(99,102,241,.32);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --shadow-sm: 0 1px 2px rgba(2,6,17,.5);
  --shadow-md: 0 4px 16px rgba(2,6,17,.45), 0 1px 3px rgba(2,6,17,.5);
  --shadow-lg: 0 12px 40px rgba(2,6,17,.6), 0 2px 8px rgba(2,6,17,.5);
  --shadow-glow: 0 0 32px rgba(99,102,241,.25);
  --skeleton: linear-gradient(100deg, rgba(148,163,184,.08) 40%, rgba(148,163,184,.18) 50%, rgba(148,163,184,.08) 60%);
  --scrim: rgba(7,11,20,.65);
}

html[data-theme='light'] {
  --bg: #eef2f8;
  --bg-2: #f8fafc;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --glass: rgba(255,255,255,.78);
  --glass-2: rgba(255,255,255,.9);
  --glass-3: rgba(255,255,255,1);
  --pop-bg: #ffffff;
  --pop-opt-hover: #eef2f8;
  --pop-opt-active: rgba(99,102,241,.14);
  --border: rgba(15,23,42,.10);
  --border-strong: rgba(15,23,42,.18);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 6px 20px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.07);
  --shadow-lg: 0 16px 44px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
  --shadow-glow: 0 0 28px rgba(99,102,241,.18);
  --skeleton: linear-gradient(100deg, rgba(15,23,42,.05) 40%, rgba(15,23,42,.10) 50%, rgba(15,23,42,.05) 60%);
  --scrim: rgba(148,163,184,.25);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-latin);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med), color var(--t-med);
}

[dir='rtl'] body { font-family: var(--font-fa); }

/* Ambient background glows */
body::before, body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
}
body::before { top: -220px; inset-inline-start: -140px; width: 640px; height: 520px; background: rgba(99,102,241,.16); }
body::after  { bottom: -260px; inset-inline-end: -160px; width: 720px; height: 560px; background: rgba(34,211,238,.12); }
html[data-theme='light'] body::before { background: rgba(99,102,241,.10); }
html[data-theme='light'] body::after  { background: rgba(34,211,238,.09); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-2); }
button { font-family: inherit; }
img { max-width: 100%; }

/* Screen-reader-only text (real <label> for inputs that show no visible caption) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
html[dir='rtl'] .num { font-variant-numeric: tabular-nums; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout ---------- */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-5) clamp(var(--space-4), 4vw, var(--space-7)) var(--space-7);
}

.topbar {
  position: sticky;
  top: var(--space-3);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.topbar .brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }

.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
  color: #fff;
  font-size: 18px;
}

.brand h1 { font-size: 1.15rem; }
.brand .tagline { margin: 0; font-size: .78rem; color: var(--text-3); }

.topbar-actions { margin-inline-start: auto; display: flex; gap: var(--space-2); }

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.sidebar { position: sticky; top: 96px; display: grid; gap: var(--space-5); }

.content { display: grid; gap: var(--space-5); min-width: 0; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  overflow: hidden;
}

/* top hairline gradient */
.card::before {
  content: '';
  position: absolute;
  inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), rgba(34,211,238,.5), transparent);
  opacity: .6;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* The settings card hosts the combo dropdowns — it must not clip them.
   Its ::before hairline fades to transparent at both ends, so rounded
   corners stay clean even with overflow visible. */
#settingsForm { overflow: visible; }

/* backdrop-filter makes every .card a stacking context, so an open popup
   (z 60) would still paint under the later pipeline card — lift the host. */
#settingsForm:has(.combo-pop.open) { z-index: 70; }

.card-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: .95rem; margin-bottom: var(--space-4); color: var(--text);
}
.card-title i { color: var(--primary); font-size: .85rem; width: 18px; text-align: center; }
.card-title .card-hint { margin-inline-start: auto; font-size: .72rem; font-weight: 500; color: var(--text-3); }

/* ---------- Buttons (shadcn-style) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--border);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--glass-3); border-color: var(--border-strong); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.25); filter: brightness(1.06); background: var(--gradient-brand); }

.btn-ghost { background: transparent; border-color: var(--border); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 1rem; flex: none; }
.btn-lg { width: 100%; padding: 14px 22px; font-size: 1rem; border-radius: var(--radius-md); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.35);
  pointer-events: none;
  animation: ripple 600ms ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* analyze button shimmer while busy */
.btn-busy { color: #fff; }
.btn-busy::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.field .help { font-size: .72rem; color: var(--text-3); }
.field .help a { color: var(--primary-2); }

.input, .select-native {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--text);
  font: inherit; font-size: .88rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input:focus, .select-native:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.22);
  background: var(--glass-3);
}
.input::placeholder { color: var(--text-3); }

.input-wrap { position: relative; display: flex; }
.input-wrap .input { padding-inline-end: 44px; }
.input-wrap .eye-btn {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--text-3);
  cursor: pointer; padding: 8px; border-radius: 10px;
  transition: color var(--t-fast), background var(--t-fast);
}
.input-wrap .eye-btn:hover { color: var(--text); background: var(--glass-2); }

/* segmented control */
.segmented {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px; padding: 4px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented > span { display: flex; }
.segmented label {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-width: 0;
  white-space: nowrap; padding: 8px 12px;
  border-radius: 12px; font-size: .8rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all var(--t-fast);
}
.segmented label:hover { color: var(--text); }
.segmented input:checked + label {
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.segmented input:focus-visible + label { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* combobox (searchable select — replaces select2) */
.combo { position: relative; }
.combo-trigger {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; min-height: 46px; padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass-2);
  color: var(--text); font: inherit; font-size: .88rem;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.combo-trigger:hover { border-color: var(--border-strong); }
.combo-trigger[aria-expanded='true'] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.combo-trigger .caret { margin-inline-start: auto; color: var(--text-3); font-size: .7rem; transition: transform var(--t-med); }
.combo-trigger[aria-expanded='true'] .caret { transform: rotate(180deg); }
.combo-trigger img, .combo-opt img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; flex: none; background: #fff; padding: 1px; }
.combo-trigger .combo-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.combo-pop {
  position: absolute; z-index: 60; inset-inline: 0; top: calc(100% + 6px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--pop-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.985);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.combo-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.combo-pop input {
  width: 100%; border: none; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text);
  padding: 12px 14px; font: inherit; font-size: .86rem;
}
.combo-pop input:focus { outline: none; }
.combo-list { max-height: min(285px, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; }
.combo-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: .86rem; cursor: pointer; color: var(--text);
  transition: background var(--t-fast);
}
.combo-opt:hover, .combo-opt.active { background: var(--pop-opt-hover); }
.combo-opt[aria-selected='true'] { background: var(--pop-opt-active); color: var(--text); }
.combo-opt .opt-tag { margin-inline-start: auto; font-size: .68rem; color: var(--text-3); white-space: nowrap; }
/* Dark theme: fully opaque popup so page content never bleeds through */
html[data-theme='dark'] .combo-pop {
  background: var(--pop-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.stat .stat-label { font-size: .74rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stat .stat-value { font-size: 1.35rem; font-weight: 800; margin-top: 2px; }
.stat .stat-sub { font-size: .76rem; color: var(--text-3); }
.positive { color: var(--success); }
.negative { color: var(--danger); }

.stat-hero { display: block; align-items: center; gap: var(--space-3); }
.stat-hero img { width: 44px; height: 44px; border-radius: 14px; background: #fff; padding: 3px; }

/* F&G gauge */
.gauge { height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #84cc16, #22c55e); position: relative; margin-top: 10px; }
.gauge .gauge-dot {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--glass-3); border: 3px solid var(--text);
  transform: translate(-50%, -50%);
  transition: inset-inline-start var(--t-slow);
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  background: var(--glass-2); border: 1px solid var(--border); color: var(--text-2);
}
.badge-success { color: var(--success); border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.12); }
.badge-danger { color: var(--danger); border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.12); }
.badge-info { color: var(--primary-2); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.10); }

/* ---------- Indicator chips ---------- */
.indicator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.ind-chip {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--glass-2);
  border: 1px solid var(--border);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.ind-chip:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--glass-3); }
.ind-chip .ind-name { font-size: .72rem; font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
.ind-chip .ind-val { font-size: 1.02rem; font-weight: 800; margin-top: 2px; }
.ind-chip .ind-note { font-size: .72rem; color: var(--text-3); }

/* ---------- Levels ---------- */
.levels-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.level-col h4 { font-size: .8rem; color: var(--text-2); margin-bottom: var(--space-3); display: flex; align-items: center; gap: 8px; }
.level-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-3); align-items: center;
  padding: 10px 12px; margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--glass-2); border: 1px solid var(--border);
}
.level-row .strength-bar { width: 72px; height: 6px; border-radius: 3px; background: var(--glass-3); overflow: hidden; }
.level-row .strength-bar i { display: block; height: 100%; border-radius: 3px; }
.level-row.support .strength-bar i { background: var(--success); }
.level-row.resistance .strength-bar i { background: var(--danger); }

/* ---------- Volume profile ---------- */
.vp-bars { display: grid; gap: 5px; }
.vp-bar { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: var(--space-3); font-size: .76rem; }
.vp-bar .track { height: 12px; border-radius: 4px; background: var(--glass-2); overflow: hidden; }
.vp-bar .track i { display: block; height: 100%; border-radius: 4px; background: var(--gradient-brand); opacity: .75; transition: width var(--t-slow); }
.vp-bar.poc .track i { background: linear-gradient(90deg, var(--warning), #fbbf24); opacity: 1; }
.vp-bar .vp-price { color: var(--text-3); font-family: var(--font-mono); }

/* ---------- Fibonacci ---------- */
.fib-row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: var(--space-3); align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border); margin-bottom: 6px; font-size: .82rem;
}
.fib-row .fib-level { color: var(--text-3); font-weight: 700; }
.fib-row .fib-price { font-family: var(--font-mono); font-weight: 700; }
.fib-row.near { border-style: solid; border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.08); }

/* ---------- News ---------- */
.news-list { display: grid; gap: var(--space-3); }
.news-item {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--glass-2); border: 1px solid var(--border);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.news-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.news-item.important { border-inline-start: 3px solid var(--warning); }
.news-item h4 { font-size: .86rem; line-height: 1.4; margin-bottom: 4px; }
.news-meta { display: flex; gap: var(--space-3); font-size: .72rem; color: var(--text-3); flex-wrap: wrap; }
.news-meta a { color: var(--primary-2); font-weight: 600; }
.news-desc { font-size: .78rem; color: var(--text-2); margin: 6px 0 0; }

/* ---------- Live web search ---------- */
.search-list { display: grid; gap: var(--space-3); }
.search-item {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--glass-2); border: 1px solid var(--border);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.search-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.search-head { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.search-title { font-size: .86rem; font-weight: 700; line-height: 1.4; color: var(--primary-2); text-decoration: none; }
.search-title:hover { text-decoration: underline; }
.search-meta { display: flex; gap: var(--space-3); font-size: .72rem; color: var(--text-3); flex-wrap: wrap; margin-top: 2px; }
.search-desc { font-size: .78rem; color: var(--text-2); margin: 6px 0 0; }
/* Source badges reuse the existing pill; only the accent differs per source. */
.search-badge-yahoo { color: var(--warning); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12); }
.search-badge-barchart { color: var(--success); border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.12); }
.search-badge-perplexity { color: var(--primary-2); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.10); }
.search-badge-tipranks { color: var(--accent); border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.12); }
.search-badge-cnn { color: var(--primary); border-color: rgba(99,102,241,.35); background: rgba(99,102,241,.12); }

/* ---------- AI report ---------- */
.report-body { font-size: .92rem; color: var(--text); overflow-wrap: anywhere; word-break: break-word; }
/* A 60+ char LTR URL inside an RTL paragraph otherwise escapes its card on
   narrow screens; isolation keeps the bidi run from reordering the link. */
.report-body a { overflow-wrap: anywhere; unicode-bidi: isolate; }
.report-body h3 { margin: var(--space-5) 0 var(--space-2); color: var(--text); font-size: 1.02rem; border-inline-start: 3px solid var(--primary); padding-inline-start: var(--space-3); }
.report-body h4 { margin: var(--space-4) 0 var(--space-2); font-size: .92rem; }
.report-body p { margin: var(--space-2) 0; color: var(--text-2); }
.report-body ul, .report-body ol { padding-inline-start: 1.4rem; color: var(--text-2); }
.report-body li { margin-bottom: var(--space-1); }
.report-body strong { color: var(--text); }
.report-body code { background: var(--glass-2); padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: .84em; }
.report-body hr { border: none; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
.report-body table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.report-body th, .report-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; }
.report-body th { background: var(--glass-2); }

.report-toolbar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* ---------- Sources chips ---------- */
.sources-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.src-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--glass-2);
  font-size: .78rem; font-weight: 600; color: var(--text-2); text-decoration: none;
  direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.src-chip:hover { border-color: var(--border-strong); background: var(--glass-3); }
.src-chip .src-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.src-chip .src-host { white-space: nowrap; }
.src-chip .src-path {
  max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-3);
}
/* Dots reuse the search-card source palette so one source looks the same twice. */
.src-chip.src-yahoo .src-dot { background: var(--warning); }
.src-chip.src-barchart .src-dot { background: var(--success); }
.src-chip.src-perplexity .src-dot { background: var(--primary-2); }
.src-chip.src-tipranks .src-dot { background: var(--accent); }
.src-chip.src-cnn .src-dot { background: var(--primary); }

/* ---------- analyst forecast card (V5.1) ---------- */
/* Vanilla SVG only: the gauge and the donut are drawn with createElementNS and
   styled here, so the card keeps the project's zero-dependency rule, stays
   theme-aware through the tokens, and never overflows the card at 390 px. */
.forecast { display: grid; gap: var(--space-4); }
.fc-panel { display: grid; gap: var(--space-3); min-width: 0; }
.fc-panel-title { margin: 0; font-size: .78rem; font-weight: 700; color: var(--text-2); }

.fc-gauge-svg { display: block; width: 100%; max-width: 560px; height: auto; overflow: visible; }
.fc-band { fill: var(--glass-3); stroke: var(--border); }
.fc-band-label, .fc-axis-label { font-family: var(--font-mono); font-size: 8px; fill: var(--text-3); }
/* The card is RTL in Persian; every figure inside the chart is a plain
   number, so the text runs stay left-to-right regardless of the page dir. */
.fc-gauge-svg text { direction: ltr; unicode-bidi: isolate; }
.fc-zone { fill: rgba(99, 102, 241, .16); stroke: rgba(99, 102, 241, .34); }
.fc-axis { stroke: var(--border-strong); stroke-width: 1; }

.fc-pin-line { stroke-width: 2; stroke-linecap: round; }
.fc-pin-dot { stroke: var(--bg-2); stroke-width: 1.5; }
.fc-pin-low .fc-pin-line { stroke: var(--danger); }
.fc-pin-low .fc-pin-dot { fill: var(--danger); }
.fc-pin-high .fc-pin-line { stroke: var(--success); }
.fc-pin-high .fc-pin-dot { fill: var(--success); }
.fc-pin-avg .fc-pin-line { stroke: var(--warning); stroke-width: 2.5; }
.fc-pin-avg .fc-pin-dot { fill: var(--warning); }
.fc-pin-value { font-family: var(--font-mono); font-size: 8.5px; fill: var(--text-2); }

.fc-avg-chip rect { fill: rgba(245, 158, 11, .16); stroke: rgba(245, 158, 11, .45); }
.fc-avg-chip-text { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; fill: var(--warning); }
.fc-link { fill: none; stroke: var(--text-3); stroke-width: .8; opacity: .55; stroke-dasharray: 3 4; }
.fc-pill rect { fill: var(--glass-3); stroke: var(--border-strong); }
.fc-pill-text { font-family: var(--font-mono); font-size: 9px; font-weight: 700; fill: var(--text-2); }
.fc-pill.is-up rect { fill: rgba(16, 185, 129, .14); stroke: rgba(16, 185, 129, .4); }
.fc-pill.is-up .fc-pill-text { fill: var(--success); }
.fc-pill.is-down rect { fill: rgba(244, 63, 94, .14); stroke: rgba(244, 63, 94, .4); }
.fc-pill.is-down .fc-pill-text { fill: var(--danger); }
.fc-now-drop { stroke: var(--primary-2); stroke-width: 1; stroke-dasharray: 3 3; }
.fc-now-diamond { fill: var(--primary-2); stroke: var(--bg-2); stroke-width: 1.2; }
.fc-now-label { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; fill: var(--primary-2); }

.fc-donut-body { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; min-width: 0; }
.fc-donut-wrap { position: relative; flex: none; width: 132px; height: 132px; }
.fc-donut { display: block; width: 100%; height: 100%; }
.fc-donut-track { stroke: var(--glass-3); stroke-width: 14; }
.fc-donut-seg {
  stroke-width: 14;
  stroke-linecap: butt;
  stroke-dasharray: var(--seg-dash);
  stroke-dashoffset: calc(var(--off) * 1px);
  transition: stroke-dasharray 620ms cubic-bezier(.16, 1, .3, 1), stroke-dashoffset 620ms cubic-bezier(.16, 1, .3, 1);
}
.fc-seg-buy { stroke: var(--success); }
.fc-seg-hold { stroke: var(--warning); }
.fc-seg-sell { stroke: var(--danger); }
/* The centre box is the ring's hole (inner radius 41 of 60), so a long rating
   word cannot reach the stroke: the lines wrap inside it instead. */
.fc-donut-center { position: absolute; inset: 16%; display: grid; place-content: center; gap: 1px; text-align: center; pointer-events: none; }
.fc-donut-rating { max-width: 100%; font-size: .68rem; font-weight: 800; line-height: 1.12; letter-spacing: .02em; color: var(--success); overflow-wrap: anywhere; }
.fc-donut-rating.is-long { font-size: .58rem; }
.fc-donut-rating-line { display: block; }
.fc-donut-count { max-width: 100%; font-size: .66rem; color: var(--text-2); overflow-wrap: anywhere; }
/* The legend hugs the ring instead of stretching to the far edge of the panel. */
.fc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 0 1 auto; width: max-content; max-width: 210px; min-width: 0; }
.fc-legend-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: .78rem; }
.fc-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--text-3); }
.fc-dot-buy { background: var(--success); }
.fc-dot-hold { background: var(--warning); }
.fc-dot-sell { background: var(--danger); }
.fc-legend-label { color: var(--text-2); overflow-wrap: anywhere; }
.fc-legend-count { font-weight: 700; color: var(--text); }
.fc-legend-pct { font-size: .72rem; color: var(--text-3); }

.fc-eyebrow { margin: 0; font-size: .68rem; color: var(--text-3); letter-spacing: .02em; }
.fc-muted { margin: 0; font-size: .78rem; color: var(--text-3); }

.fc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fc-stat { display: grid; gap: 4px; padding: 8px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--border); min-width: 0; }
.fc-stat-label { font-size: .72rem; color: var(--text-2); }
.fc-stat-value { font-size: .86rem; font-weight: 700; white-space: nowrap; }
.fc-stat.is-up .fc-stat-value { color: var(--success); }
.fc-stat.is-down .fc-stat-value { color: var(--danger); }
.fc-stat-pos-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-stat-pos { grid-column: 1 / -1; }
.fc-mini-band { position: relative; flex: 1 1 auto; height: 8px; min-width: 26px; border-radius: var(--radius-pill); background: var(--glass-3); border: 1px solid var(--border); overflow: visible; }
.fc-mini-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--radius-pill) 0 0 var(--radius-pill); background: linear-gradient(90deg, rgba(16,185,129,.22), rgba(16,185,129,.62)); }
.fc-mini-marker { position: absolute; top: 50%; width: 2px; height: 14px; border-radius: 2px; transform: translate(-50%, -50%); background: var(--success); }

/* ---------- V5.4 — gauge + values table side by side ---------- */
.fc-gauge-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.fc-values { padding: 14px 16px 12px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.fc-values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fc-values-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--border); transition: background var(--t-fast), border-color var(--t-fast); }
.fc-values-row:hover { background: var(--glass-3); border-color: var(--border-strong); }
.fc-values-dot { width: 10px; height: 10px; border-radius: 3px; }
.fc-values-row.is-now .fc-values-dot { background: var(--primary-2); box-shadow: 0 0 8px rgba(34, 211, 238, .55); }
.fc-values-row.is-low .fc-values-dot { background: var(--danger); }
.fc-values-row.is-avg .fc-values-dot { background: var(--warning); }
.fc-values-row.is-high .fc-values-dot { background: var(--success); }
.fc-values-row.is-up .fc-values-dot { background: var(--success); }
.fc-values-row.is-down .fc-values-dot { background: var(--danger); }
.fc-values-row.is-band .fc-values-dot { background: linear-gradient(90deg, var(--danger), var(--warning), var(--success)); }
.fc-values-label { font-size: .78rem; color: var(--text-2); overflow-wrap: anywhere; }
.fc-values-num { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.fc-values-row.is-now .fc-values-num { color: var(--primary-2); }
.fc-values-row.is-low .fc-values-num { color: var(--danger); }
.fc-values-row.is-avg .fc-values-num { color: var(--warning); }
.fc-values-row.is-high .fc-values-num { color: var(--success); }
.fc-values-row.is-up .fc-values-num { color: var(--success); }
.fc-values-row.is-down .fc-values-num { color: var(--danger); }
.fc-values-src { font-size: .6rem; font-weight: 600; letter-spacing: .02em; color: var(--text-3); border: 1px solid var(--border-strong); background: var(--glass-2); padding: 2px 6px; border-radius: var(--radius-pill); white-space: nowrap; }
@media (max-width: 900px) {
  .fc-gauge-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .fc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-values-row { gap: 8px; padding: 7px 9px; }
  .fc-values-label { font-size: .74rem; }
  .fc-values-num { font-size: .76rem; }
  .fc-stat-pos { grid-column: span 2; }
  .fc-donut-body { gap: var(--space-3); }
  .fc-donut-wrap { width: 104px; height: 104px; }
  .fc-donut-rating { font-size: .6rem; }
  .fc-donut-rating.is-long { font-size: .52rem; }
}

/* Card reveal (§5.7): the donut arcs sweep out from each segment's own start and
   the gauge marks scale up — CSS only, no timers and no rAF. */
.reveal:not(.in) .fc-pin,
.reveal:not(.in) .fc-now,
.reveal:not(.in) .fc-avg-chip,
.reveal:not(.in) .fc-pill { opacity: 0; transform: scale(.7); }
.fc-pin,
.fc-now,
.fc-avg-chip,
.fc-pill {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
}
.reveal:not(.in) .fc-donut-seg {
  stroke-dasharray: 0 302;
  stroke-dashoffset: calc((var(--off) + var(--dash-len)) * 1px);
}

@media (prefers-reduced-motion: reduce) {
  .fc-donut-seg, .fc-pin, .fc-now, .fc-avg-chip, .fc-pill { transition: none; }
  .reveal:not(.in) .fc-pin,
  .reveal:not(.in) .fc-now,
  .reveal:not(.in) .fc-avg-chip,
  .reveal:not(.in) .fc-pill { opacity: 1; transform: none; }
  .reveal:not(.in) .fc-donut-seg { stroke-dasharray: var(--seg-dash); stroke-dashoffset: calc(var(--off) * 1px); }
}
.fc-foot { display: flex; flex-wrap: wrap; gap: 8px; font-size: .72rem; color: var(--text-3); overflow-wrap: anywhere; }
.fc-foot-src { overflow-wrap: anywhere; }

/* ---------- Streaming cursor ---------- */
.stream-cursor { display: inline-block; margin-inline-start: 2px; color: var(--primary-2); animation: stream-blink 1s steps(2, start) infinite; }
@keyframes stream-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stream-cursor { animation: none; opacity: .85; }
}

/* recommendation */
.reco-banner {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--glass-2); border: 1px solid var(--border-strong);
}
.reco-banner.buy { border-inline-start: 4px solid var(--success); }
.reco-banner.sell { border-inline-start: 4px solid var(--danger); }
.reco-banner.hold { border-inline-start: 4px solid var(--warning); }
.reco-banner .reco-action { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.reco-banner .reco-text { font-size: .82rem; color: var(--text-2); }

/* ---------- Chart ---------- */
.chart-frame {
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass-2);
}
.chart-frame > div, .chart-frame iframe { width: 100%; height: 100%; border: 0; }
.chart-error { display: grid; place-items: center; height: 100%; color: var(--text-3); gap: var(--space-2); text-align: center; padding: var(--space-4); }

/* ---------- Blockchain / metrics ---------- */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.kv { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid var(--border); }
.kv .k { font-size: .7rem; color: var(--text-3); font-weight: 600; }
.kv .v { font-size: .95rem; font-weight: 700; margin-top: 2px; }
.kv .s { font-size: .7rem; margin-top: 2px; }

/* ---------- Progress / status ---------- */
.pipeline { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.pipeline .step { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-3); }
.pipeline .step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glass-3); transition: background var(--t-med), box-shadow var(--t-med); }
.pipeline .step.active .dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.25); }
.pipeline .step.done .dot { background: var(--success); }
.pipeline .step.active { color: var(--text); font-weight: 600; }

/* ---------- Skeletons & reveal ---------- */
.sk {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--skeleton);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  overflow: hidden;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-text { height: 12px; margin-bottom: 8px; }
.sk-title { height: 22px; width: 55%; margin-bottom: var(--space-4); }
.sk-box { height: 90px; }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: var(--space-4); inset-inline-end: var(--space-4); z-index: 100; display: grid; gap: var(--space-2); width: min(360px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: .84rem; color: var(--text);
  animation: toast-in var(--t-med) both;
}
.toast.success { border-inline-start: 4px solid var(--success); }
.toast.error { border-inline-start: 4px solid var(--danger); }
.toast.info { border-inline-start: 4px solid var(--primary-2); }
.toast button { margin-inline-start: auto; border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all var(--t-med); }

/* ---------- Error panel ---------- */
.error-panel { text-align: center; padding: var(--space-6); display: grid; gap: var(--space-3); justify-items: center; }
.error-panel .error-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--danger); background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.3); }
.error-panel h3 { color: var(--text); }
.error-panel p { color: var(--text-2); margin: 0; }
.error-actions { display: flex; gap: var(--space-3); }
.error-tips { text-align: start; font-size: .78rem; color: var(--text-3); background: var(--glass-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* "Not applicable" state — informational, deliberately NOT the red error look,
   so unsupported assets don't read as a failure. */
.na-panel {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--glass-2);
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
  font-size: .8rem;
  line-height: 1.7;
}
.na-panel i { color: var(--text-3); font-size: .95rem; margin-top: 3px; flex: none; }
.na-panel b { color: var(--text); font-weight: 600; }
.kv .v.num.na { color: var(--text-3); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: .78rem; color: var(--text-3); }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--primary-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { padding: var(--space-3); }
  .brand .tagline { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .levels-wrap { grid-template-columns: 1fr; }
  .chart-frame { height: 340px; }
  .card { padding: var(--space-4); border-radius: var(--radius-md); }
}
@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ---------- Motion / a11y preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print/PDF ---------- */
.pdf-header { border-radius: var(--radius-md); background: var(--gradient-brand); color: #fff; text-align: center; padding: var(--space-4); margin-bottom: var(--space-4); }
.pdf-header h1 { margin: 0; font-size: 1.4rem; color: #fff; }
.pdf-header p { margin: 4px 0 0; font-size: .85rem; opacity: .9; }
body.pdf-mode .topbar-actions, body.pdf-mode .report-toolbar { display: none; }
/* html2canvas paints no box shadows and clips nowrap text, so the chips flatten
   and unwrap for the PDF while keeping their colors and wrapping. The print
   query and the .pdf-mode class need separate rules — a class is not a media
   feature, so "print, .pdf-mode" would invalidate the whole block. */
@media print {
  .src-chip { box-shadow: none; max-width: 100%; }
  .src-chip .src-path { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; }
  .stream-cursor { display: none; }
  .fc-donut-seg, .fc-pin, .fc-now, .fc-avg-chip, .fc-pill { transition: none; }
  .reveal:not(.in) .fc-pin, .reveal:not(.in) .fc-now,
  .reveal:not(.in) .fc-avg-chip, .reveal:not(.in) .fc-pill { opacity: 1; transform: none; }
  .reveal:not(.in) .fc-donut-seg { stroke-dasharray: var(--seg-dash); stroke-dashoffset: calc(var(--off) * 1px); }
  .fc-band, .fc-zone, .fc-donut-track, .fc-donut-seg, .fc-pill rect, .fc-avg-chip rect,
  .fc-mini-band, .fc-mini-fill, .fc-stat { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fc-gauge-row { break-inside: avoid; }
  .fc-values, .fc-values-row, .fc-values-dot, .fc-values-num, .fc-values-src { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fc-values, .fc-values-row { box-shadow: none; }
}
/* html2canvas(-pro) falls back to per-glyph text drawing whenever computed
   letter-spacing is non-zero, which destroys Arabic-script shaping (joined
   forms, ligatures, ZWNJ). Force spacing off for the capture only: the live
   UI keeps its design, the PDF gets native word-level shaping. */
body.pdf-mode,
body.pdf-mode * { letter-spacing: 0 !important; }
body.pdf-mode .src-chip { box-shadow: none; max-width: 100%; }
body.pdf-mode .src-chip .src-path { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; }
body.pdf-mode .stream-cursor { display: none; }
body.pdf-mode .fc-donut-seg, body.pdf-mode .fc-pin, body.pdf-mode .fc-now,
body.pdf-mode .fc-avg-chip, body.pdf-mode .fc-pill { transition: none; }
body.pdf-mode .reveal:not(.in) .fc-pin, body.pdf-mode .reveal:not(.in) .fc-now,
body.pdf-mode .reveal:not(.in) .fc-avg-chip, body.pdf-mode .reveal:not(.in) .fc-pill { opacity: 1; transform: none; }
body.pdf-mode .reveal:not(.in) .fc-donut-seg { stroke-dasharray: var(--seg-dash); stroke-dashoffset: calc(var(--off) * 1px); }
body.pdf-mode .fc-band, body.pdf-mode .fc-zone, body.pdf-mode .fc-donut-track, body.pdf-mode .fc-donut-seg,
body.pdf-mode .fc-pill rect, body.pdf-mode .fc-avg-chip rect, body.pdf-mode .fc-mini-band,
body.pdf-mode .fc-mini-fill, body.pdf-mode .fc-stat { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body.pdf-mode .fc-values, body.pdf-mode .fc-values-row, body.pdf-mode .fc-values-dot,
body.pdf-mode .fc-values-num, body.pdf-mode .fc-values-src { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body.pdf-mode .fc-values, body.pdf-mode .fc-values-row { box-shadow: none; }
