/* ---------- Tokens ---------- */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e4e7ec;
  --border: #e1e4e9;
  --border-strong: #c9ced6;
  --text: #14171c;
  --text-2: #3d434d;
  --muted: #6a7280;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.1);
  --accent-text: #ffffff;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --success: #16a34a;
  --star: #e3a008;
  --unread: #2f6bff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e12;
    --surface: #15181e;
    --surface-2: #1c2028;
    --surface-3: #252a34;
    --border: #262b34;
    --border-strong: #363c48;
    --text: #e8eaee;
    --text-2: #c3c8d1;
    --muted: #8a93a3;
    --accent: #6b93ff;
    --accent-soft: rgba(107, 147, 255, 0.14);
    --accent-text: #0c0e12;
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.14);
    --success: #4ade80;
    --star: #fbbf24;
    --unread: #6b93ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0e12;
  --surface: #15181e;
  --surface-2: #1c2028;
  --surface-3: #252a34;
  --border: #262b34;
  --border-strong: #363c48;
  --text: #e8eaee;
  --text-2: #c3c8d1;
  --muted: #8a93a3;
  --accent: #6b93ff;
  --accent-soft: rgba(107, 147, 255, 0.14);
  --accent-text: #0c0e12;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --success: #4ade80;
  --star: #fbbf24;
  --unread: #6b93ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); border-color: var(--accent); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--danger); filter: brightness(1.08); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.icon-btn { width: 36px; padding: 0; }
.btn-sm.icon-btn { width: 30px; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }

.input {
  height: 36px; width: 100%; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 14px;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="date"].input { width: auto; }
input[type="color"] { width: 36px; height: 36px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px;
  background: var(--surface-2); font: 12px/1.5 var(--mono); text-align: center;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 2px; }
.nav a {
  display: flex; align-items: center; height: 34px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 17px; height: 17px; flex: none; }
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.topbar-search .input { padding-left: 36px; padding-right: 36px; background: var(--surface); }
.topbar-search svg { position: absolute; left: 11px; top: 9px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.topbar-search kbd { position: absolute; right: 8px; top: 7px; }
.topbar-actions { display: flex; gap: 4px; margin-left: auto; }
.topbar-search + .topbar-actions { margin-left: 0; }

/* ---------- Layout ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 80px; }
.feed-col { max-width: 720px; margin: 0 auto; }
.page-title { margin: 4px 0 16px; font-size: 22px; font-weight: 700; }
.page-sub { margin: -10px 0 20px; color: var(--muted); font-size: 14px; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Filters ---------- */
.filters { margin-bottom: 14px; }
.chip-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.chip {
  --tag-color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag-color); flex: none; }
.chip.no-dot::before { display: none; }
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--tag-color) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--tag-color) 55%, transparent);
  color: var(--text);
}
.chip .x { margin-left: 2px; color: var(--muted); font-size: 15px; line-height: 1; }
.chip-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.filter-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.date-range { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.date-range .input { height: 30px; font-size: 13px; padding: 0 8px; }

/* ---------- Feed ---------- */
.feed-status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 13px; min-height: 20px; }
.new-pill {
  position: sticky; top: calc(var(--topbar-h) + 10px); z-index: 10;
  display: flex; margin: 0 auto 10px; height: 34px; padding: 0 16px;
  align-items: center; gap: 6px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer;
}
.feed { display: flex; flex-direction: column; gap: 10px; }
.card {
  position: relative;
  padding: 14px 16px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-strong); }
.card.focused { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.unread::before {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--unread);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 15px;
}
.card-meta { min-width: 0; flex: 1; line-height: 1.3; }
.card-channel {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; max-width: 100%;
}
.card-channel:hover { color: var(--accent); }
.card-time { color: var(--muted); font-size: 12px; }
.card-text {
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  color: var(--text-2); font-size: 15px; line-height: 1.7;
  unicode-bidi: plaintext;
}
.card-text.clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.card-text strong { color: var(--text); font-weight: 650; }
.card-text code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); font: 13px var(--mono); }
.card-text pre { margin: 6px 0; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); font: 13px/1.5 var(--mono); overflow-x: auto; white-space: pre; }
.card-text a { unicode-bidi: isolate; }
.card-text:empty::before { content: "(no text — media only)"; color: var(--muted); font-style: italic; }
.more-btn { margin-top: 2px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer; }
.card-actions { display: flex; align-items: center; gap: 2px; margin: 8px -6px 0; }
.card-actions .btn { color: var(--muted); }
.card-actions .btn:hover { color: var(--text); }
.card-actions .spacer { flex: 1; }
.btn.starred, .btn.starred:hover { color: var(--star); }
.btn.starred svg { fill: currentColor; }
.media-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.embed { margin-top: 10px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.embed iframe { display: block; width: 100%; height: 420px; border: 0; }

.divider {
  display: flex; align-items: center; gap: 10px; margin: 6px 0;
  color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.feed-end { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  max-width: min(480px, calc(100vw - 32px)); padding: 10px 16px;
  border-radius: var(--radius-sm); background: var(--text); color: var(--bg);
  font-size: 14px; box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toast-in .2s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.success::before { content: "✓"; color: var(--success); font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Dialog ---------- */
dialog {
  width: min(440px, calc(100vw - 32px)); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(5, 8, 12, 0.55); }
.dialog-body { padding: 20px; }
.dialog-body h3 { margin: 0 0 8px; font-size: 17px; }
.dialog-body p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.dialog-body label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.dialog-list { max-height: 260px; overflow-y: auto; margin: 0 0 12px; padding: 4px 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.dialog-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; font-size: 13px; }
.dialog-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-list li span:last-child { flex: none; font-size: 12px; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; align-items: center; }
.shortcuts dt { text-align: right; }
.shortcuts dd { margin: 0; color: var(--text-2); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); padding: 32px 28px; }
.login-card .brand { justify-content: center; margin-bottom: 6px; font-size: 22px; }
.login-card .brand img { width: 34px; height: 34px; }
.login-card p { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 14px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.pw-field { position: relative; }
.pw-field .input { height: 44px; padding-right: 44px; font-size: 15px; }
.pw-field .icon-btn { position: absolute; right: 4px; top: 4px; }
.login-card .btn-primary { height: 44px; font-size: 15px; }
.form-error { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; }

/* ---------- Fin ---------- */
.fin-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fin-controls .spacer { flex: 1; }
.fin-controls select.input { width: auto; height: 34px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.segmented button {
  height: 28px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2); font: 500 13px var(--font); cursor: pointer;
}
.segmented button:hover:not(:disabled) { background: var(--surface-2); }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.segmented button:disabled { opacity: .45; cursor: not-allowed; }
.segmented-sm button { height: 24px; min-width: 0; font-size: 12px; }
.fin-mode-hint[hidden] { display: none; }
.fin-panel .panel-body { display: flex; flex-direction: column; gap: 14px; }
.fin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.fin-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.fin-tile.is-hidden { opacity: .55; }
.fin-tile.is-hidden .swatch { background: transparent; box-shadow: inset 0 0 0 2px var(--swatch); }
.fin-tile-name {
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; text-align: left;
  color: var(--text-2); font: 500 13px var(--font); cursor: pointer;
}
.fin-tile-name:hover { color: var(--text); }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--swatch); }
.fin-price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.fin-change { font-size: 12px; font-variant-numeric: tabular-nums; }
.fin-change.up { color: var(--success); }
.fin-change.down { color: var(--danger); }
.fin-source { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--muted); text-decoration: none; }
.fin-source bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-time { font-size: 12px; color: var(--muted); }
a.fin-source:hover { color: var(--accent); }
.fin-source svg { flex: none; width: 12px; height: 12px; }
.fin-chart-wrap { position: relative; }
.fin-chart { height: 320px; }
.fin-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; pointer-events: none; }
.fin-empty[hidden], .fin-tooltip[hidden] { display: none; }
.fin-tooltip {
  position: absolute; top: 0; left: 0; z-index: 3; min-width: 180px; max-width: 320px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-lg);
  font-size: 12px; pointer-events: none;
}
.fin-tooltip-time { margin-bottom: 4px; color: var(--muted); }
.fin-tooltip-row { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.fin-tooltip-row strong { font-variant-numeric: tabular-nums; color: var(--text); }
.fin-tooltip-ohl { padding: 0 0 2px 16px; font-variant-numeric: tabular-nums; }
.fin-details summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; }
.fin-details .table-wrap { margin-top: 10px; overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th, .fin-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.fin-table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.fin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.fin-table a:hover { color: var(--accent); }
.fin-sources { min-width: 200px; }
.fin-sources div { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav a span { display: none; }
  .nav a { padding: 0 9px; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 104px; }
  .topbar-inner { flex-wrap: wrap; align-content: center; row-gap: 8px; }
  .topbar-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .topbar-search kbd { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar.no-search { --topbar-h: 60px; height: 60px; }
  .page { padding: 14px 12px 64px; }
  .topbar-inner { gap: 8px; }
  .nav a { padding: 0 8px; }
  .chip-row.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .chip-row.scroll::-webkit-scrollbar { display: none; }
  .card { padding: 12px 12px 8px; border-radius: 10px; }
  .card-text { font-size: 15px; }
  .hide-sm { display: none; }
  .fin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-price { font-size: 17px; }
  .fin-chart { height: 260px; }
  .fin-mode-hint { display: none; }
}

/* ---------- Finator ---------- */
.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.badge.scope-iran { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge.scope-world { background: var(--accent-soft); color: var(--accent); }
.badge.scope-markets { background: color-mix(in srgb, var(--star) 18%, transparent); color: color-mix(in srgb, var(--star) 70%, var(--text)); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: auto; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .spacer { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.news-card .card-head { margin-bottom: 6px; }
.news-card .badges { display: flex; gap: 4px; }
.news-rel { color: var(--muted); font-size: 12px; }
.moves { display: flex; flex-direction: column; gap: 12px; }
.move-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.move-pct { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.move-pct.up { color: var(--success); }
.move-pct.down { color: var(--danger); }
.move-when { font-weight: 600; }
.move-prices { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.move-news { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.move-news li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; }
.move-news time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.move-news .h { unicode-bidi: plaintext; color: var(--text-2); }
.move-news .meta { grid-column: 2; color: var(--muted); font-size: 12px; }
.note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 13px; }

/* ---------- Alerts ---------- */
.alerts-panel { margin-bottom: 16px; }
.alerts-panel > summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alerts li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.alerts li:last-child { border-bottom: 0; padding-bottom: 0; }
.alert-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.alert-head time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.alert-brief { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.alert-brief a { color: inherit; }
