/* AI 行情分析页 - 独立页面样式
 * 刻意不复用主站 Ant Design / element-plus 样式，保持 /ai/ 视觉完全独立。
 */

:root {
  --primary: #1890ff;
  --primary-deep: #096dd9;
  --bull: #10b981;
  --bear: #ef4444;
  --hold: #f59e0b;
  --fg: #1a1a2e;
  --fg-sub: #555;
  --muted: #9aa0a6;
  --border: #ebeef2;
  --border-soft: #f0f2f5;
  --bg: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(20, 40, 80, 0.05);
  --shadow-md: 0 4px 18px rgba(20, 40, 80, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

.hidden { display: none !important; }

/* ============ Gate ============ */
.gate {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1f3a 0%, #1a2f5a 100%);
  z-index: 100; padding: 20px;
}
.gate-card {
  width: 100%; max-width: 380px;
  background: var(--card); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  animation: fadeUp 0.4s ease;
}
.gate-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary-deep); font-weight: 700; font-size: 13px;
  letter-spacing: 0.6px;
}
.gate-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(24,144,255,0.2);
}
.gate h1 {
  font-size: 22px; margin: 18px 0 8px;
  color: var(--fg); font-weight: 800;
}
.gate-hint {
  font-size: 13px; color: var(--fg-sub); margin: 0 0 20px;
  line-height: 1.6;
}
.gate input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; outline: none;
  transition: border-color 0.2s ease;
  font-family: "SF Mono", Consolas, Monaco, monospace;
}
.gate input:focus { border-color: var(--primary); }
.gate button { width: 100%; margin-top: 12px; }
.gate-error {
  color: var(--bear); font-size: 13px; margin-top: 10px;
  min-height: 18px;
}

/* ============ Topbar ============ */
.topbar {
  max-width: 720px; margin: 0 auto;
  padding: 18px 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 900px) {
  .topbar { max-width: 1100px; padding: 18px 20px 0; }
}
@media (min-width: 1280px) {
  .topbar { max-width: 1400px; }
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary-deep); font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(24,144,255,0.18);
}
.brand-name { font-weight: 700; }
.topbar-right { display: flex; gap: 6px; }

/* ============ Buttons ============ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white; border: none; border-radius: 999px;
  padding: 11px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(24,144,255,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24,144,255,0.42); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-lg { width: 100%; padding: 14px 28px; font-size: 15px; margin-top: 8px; }

.ghost-btn {
  background: transparent; color: var(--fg-sub);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s ease;
}
.ghost-btn:hover {
  color: var(--primary-deep); border-color: var(--primary);
  background: rgba(24,144,255,0.06);
}
.ghost-btn-sm {
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ghost-btn-sm:hover { color: var(--primary-deep); background: rgba(24,144,255,0.08); }

/* ============ Hero ============ */
.hero {
  max-width: 720px; margin: 24px auto 16px;
  padding: 0 16px; text-align: center;
}
.hero h1 {
  font-size: 28px; margin: 0 0 10px;
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.3;
}
.hero-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--fg-sub); font-size: 14px; line-height: 1.75;
  margin: 0 auto; max-width: 560px;
}

/* ============ Form ============ */
.form-card {
  max-width: 720px; margin: 0 auto;
  padding: 24px 20px 20px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  margin: 0 16px;
}
@media (min-width: 752px) {
  .form-card { margin: 0 auto; }
}

.form-row { margin-bottom: 16px; }
.form-row.form-inline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--fg-sub); margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-card input[type="text"], .form-card select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; outline: none;
  background: #fafbfc; color: var(--fg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-card input[type="text"]:focus, .form-card select:focus {
  border-color: var(--primary); background: var(--card);
}
.form-card input[type="text"] {
  font-family: "SF Mono", Consolas, Monaco, monospace;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.segmented {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  padding: 4px; background: #f3f5f9; border-radius: 10px;
}
.seg-btn {
  background: transparent; border: none; border-radius: 7px;
  padding: 9px 4px; font-size: 13px; font-weight: 600;
  color: var(--fg-sub); cursor: pointer;
  transition: all 0.2s ease;
}
.seg-btn:hover { color: var(--primary-deep); }
.seg-btn.active {
  background: var(--card); color: var(--primary-deep);
  box-shadow: var(--shadow-sm); font-weight: 700;
}

.run-hint {
  text-align: center; font-size: 12px; color: var(--muted);
  margin-top: 10px; min-height: 16px;
}

/* ============ Progress ============ */
.progress-card {
  max-width: 720px; margin: 20px 16px 0;
  padding: 18px 20px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (min-width: 752px) { .progress-card { margin: 20px auto 0; } }

.progress-bar {
  height: 6px; background: #f0f2f5; border-radius: 999px;
  overflow: hidden; margin-bottom: 10px;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  border-radius: 999px;
  animation: progressPulse 2s ease-in-out infinite;
  transition: width 0.5s ease;
}
.progress-text {
  font-size: 13px; color: var(--fg-sub); text-align: center;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============ Result ============ */
.result-card {
  max-width: 720px; margin: 20px 16px 0;
  padding: 22px 20px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  animation: fadeUp 0.5s ease;
}
@media (min-width: 752px) { .result-card { margin: 20px auto 0; } }

.result-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--primary);
}
.result-card.decision-buy::before {
  background: linear-gradient(90deg, var(--bull), #34d399); }
.result-card.decision-sell::before {
  background: linear-gradient(90deg, var(--bear), #f87171); }
.result-card.decision-hold::before {
  background: linear-gradient(90deg, var(--hold), #fbbf24); }

.result-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 12px;
}
.result-symbol {
  font-size: 22px; font-weight: 800; color: var(--fg);
  letter-spacing: -0.3px;
}
.result-market {
  font-size: 12px; color: var(--muted); margin-top: 4px;
  font-weight: 600; letter-spacing: 0.3px;
}
.result-decision {
  padding: 8px 16px; border-radius: 8px; font-size: 18px;
  font-weight: 800; letter-spacing: 1px; white-space: nowrap;
}
.result-decision.decision-buy { color: var(--bull); background: #ecfdf5; border: 1px solid #a7f3d0; }
.result-decision.decision-sell { color: var(--bear); background: #fef2f2; border: 1px solid #fecaca; }
.result-decision.decision-hold { color: var(--hold); background: #fffbeb; border: 1px solid #fde68a; }

.result-summary {
  font-size: 13.5px; color: var(--fg-sub); line-height: 1.75;
  padding: 14px 16px; background: #fafbfc;
  border-radius: 10px; border-left: 3px solid var(--primary);
  white-space: pre-line; margin-bottom: 16px;
}
.result-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.result-actions .btn-primary { flex: 1; min-width: 160px; }

/* ============ History ============ */
.history-card {
  max-width: 720px; margin: 16px 16px 0;
  padding: 18px 20px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (min-width: 752px) { .history-card { margin: 16px auto 0; } }

.history-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 700; font-size: 14px; color: var(--fg);
}
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: #fafbfc; border-radius: 10px;
  border: 1px solid var(--border-soft); cursor: pointer;
  transition: all 0.15s ease;
}
.history-item:hover {
  border-color: var(--primary); background: rgba(24,144,255,0.04);
}
.hi-left { display: flex; flex-direction: column; gap: 2px; }
.hi-symbol { font-weight: 700; font-size: 14px; color: var(--fg); }
.hi-meta { font-size: 11px; color: var(--muted); }
.hi-decision {
  padding: 3px 10px; border-radius: 6px; font-size: 11px;
  font-weight: 800; letter-spacing: 0.5px;
}
.hi-decision.decision-buy { color: var(--bull); background: #ecfdf5; }
.hi-decision.decision-sell { color: var(--bear); background: #fef2f2; }
.hi-decision.decision-hold { color: var(--hold); background: #fffbeb; }
.history-empty {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 20px;
}

/* ============ Footer ============ */
.footer {
  text-align: center; font-size: 11px; color: var(--muted);
  padding: 24px 16px 40px; margin-top: 20px;
  letter-spacing: 0.3px;
}

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26,26,46,0.95); color: white;
  padding: 10px 18px; border-radius: 8px; font-size: 13px;
  font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; transition: all 0.25s ease; z-index: 50;
  pointer-events: none;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ============ Anim ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Responsive tweaks ============ */
@media (max-width: 420px) {
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .seg-btn { font-size: 12px; padding: 9px 2px; }
  .result-symbol { font-size: 19px; }
  .result-decision { font-size: 16px; padding: 7px 12px; }
}

/* ============ Tabs ============ */
.tabs {
  max-width: 720px; margin: 16px auto 0;
  padding: 6px; background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin: 16px 16px 0;
}
@media (min-width: 752px) { .tabs { margin: 16px auto 0; } }
.tab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; font-size: 13px; font-weight: 600;
  color: var(--fg-sub); background: transparent; border: none;
  border-radius: 10px; cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { color: var(--primary-deep); background: rgba(24,144,255,0.06); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white; font-weight: 700; box-shadow: 0 3px 10px rgba(24,144,255,0.3);
}
.tab-btn.active svg { stroke: white; }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.25s ease; }

/* ============ Multi-column layout ============ */
/* Mobile first: single column, only the active tab-pane shows (original behavior). */
.layout {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}
.col { min-width: 0; }
.col-left, .col-right { display: none; }

/* Tablet: 2 columns, hide tabs, show all panes side-by-side. */
@media (min-width: 900px) {
  .mobile-only { display: none !important; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    max-width: 1100px;
    padding: 0 20px;
  }
  .col-left { display: none; }
  .col-right { display: flex; flex-direction: column; gap: 16px; }
  .col-center { min-width: 0; }
  .tab-pane { display: block !important; }
  /* Panels inside aside: slimmer margin so they stack tighter. */
  .col-right .panel-card { margin: 0; }
  .col-center .panel-card { margin: 0 0 16px; }
  .col-center .form-card,
  .col-center .progress-card,
  .col-center .result-card { margin: 0 0 16px; }
  .col-center .hero { margin: 0 0 16px; }
}

/* Desktop: 3 columns. */
@media (min-width: 1280px) {
  .layout {
    grid-template-columns: 340px minmax(0, 1fr) 340px;
    max-width: 1400px;
    gap: 20px;
  }
  .col-left { display: flex; flex-direction: column; gap: 16px; }
  .col-left .panel-card { margin: 0; }
}

/* Make left/right column panels sticky-ish on very tall desktop so they don't
   leave huge empty space when the middle column scrolls. */
@media (min-width: 1280px) {
  .col-left .panel-card:first-child,
  .col-right .panel-card:first-child {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

/* ============ Panel card (used by market/watchlist/history tabs) ============ */
.panel-card {
  max-width: 720px; margin: 16px 16px 0;
  padding: 16px 18px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
@media (min-width: 752px) { .panel-card { margin: 16px auto 0; } }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.panel-head-right { display: flex; align-items: center; gap: 8px; }
.panel-title {
  font-size: 14px; font-weight: 700; color: var(--fg);
  display: flex; align-items: center; gap: 6px;
}
.panel-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--primary);
}
.muted-tag {
  font-size: 11px; color: var(--muted); font-weight: 600;
  background: #fafbfc; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-soft);
}
.empty-hint {
  text-align: center; padding: 24px 10px; font-size: 13px; color: var(--muted);
}

/* ============ Quote grid (crypto) ============ */
.quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.quote-card {
  padding: 12px 10px; background: #fafbfc;
  border-radius: 12px; border: 1px solid var(--border-soft);
  text-align: center; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quote-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20,40,80,0.08);
}
.quote-card.tone-up {
  background: #d4f7e2;
  border-color: rgba(16, 185, 129, 0.45);
}
.quote-card.tone-up:hover { background: #c4f0d3; }
.quote-card.tone-up .quote-sym,
.quote-card.tone-up .quote-price,
.quote-card.tone-up .quote-change { color: #047857; }
.quote-card.tone-down {
  background: #fde2e2;
  border-color: rgba(239, 68, 68, 0.45);
}
.quote-card.tone-down:hover { background: #fcd2d2; }
.quote-card.tone-down .quote-sym,
.quote-card.tone-down .quote-price,
.quote-card.tone-down .quote-change { color: #b91c1c; }
.quote-card.tone-neutral { background: #f5f6f8; }
.quote-sym {
  font-size: 13px; font-weight: 700; color: var(--fg);
  letter-spacing: 0.3px; margin-bottom: 4px;
}
.quote-price {
  font-size: 16px; font-weight: 800; color: var(--fg);
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-variant-numeric: tabular-nums;
}
.quote-change {
  margin-top: 4px; font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.quote-spark {
  height: 28px; margin: 6px 0 2px;
  display: flex; align-items: center; justify-content: center;
}
.quote-spark .spark { width: 100%; }

/* ============ Sparkline ============ */
/* Inline SVG charts shown inside .quote-card and .watch-row. Coordinates are
   produced by JS as raw numbers, so we only need to colour the polyline /
   area fill here. Using stroke + fill currentColor would inherit the parent
   tone, but the spark- modifier wins so flat series stay neutral even inside
   a green card. */
.spark { display: block; overflow: visible; }
.spark .spark-line {
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
}
.spark .spark-area { fill: currentColor; opacity: 0.14; stroke: none; }
.spark-up    { color: #10b981; }
.spark-down  { color: #ef4444; }
.spark-flat  { color: #9aa3b2; }
.spark-empty { opacity: 0.2; }

@media (max-width: 480px) {
  .watch-spark { display: none; }
}

/* ============ Tone utilities ============ */
.tone-up { color: var(--bull); }
.tone-down { color: var(--bear); }
.tone-neutral { color: var(--muted); }

/* ============ Calendar list ============ */
.calendar-list { display: flex; flex-direction: column; gap: 2px; }
.cal-row {
  display: grid;
  grid-template-columns: 48px 46px 24px 1fr auto;
  align-items: center; gap: 8px;
  padding: 10px 4px; font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.cal-row:last-child { border-bottom: none; }
.cal-row.imp-high .cal-name { font-weight: 700; color: var(--fg); }
.cal-row.imp-medium .cal-name { font-weight: 600; color: var(--fg); }
.cal-row.imp-low .cal-name { color: var(--fg-sub); }
.cal-date {
  font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: 0.3px; text-align: center;
}
.cal-time {
  font-size: 12px; color: var(--fg-sub);
  font-variant-numeric: tabular-nums; text-align: center;
  font-family: "SF Mono", Consolas, Monaco, monospace;
}
.cal-flag { font-size: 15px; text-align: center; }
.cal-name {
  font-size: 13.5px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-actual {
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px;
  background: #fafbfc; min-width: 50px; text-align: center;
}
.cal-actual.tone-up { background: #ecfdf5; color: var(--bull); }
.cal-actual.tone-down { background: #fef2f2; color: var(--bear); }

/* ============ Watchlist ============ */
.watch-list { display: flex; flex-direction: column; gap: 8px; }
.watch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #fafbfc;
  border-radius: 10px; border: 1px solid var(--border-soft);
  cursor: pointer; transition: all 0.15s ease;
}
.watch-row:hover { border-color: var(--primary); background: rgba(24,144,255,0.04); }
.watch-left { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.watch-sym {
  font-size: 14px; font-weight: 700; color: var(--fg);
  display: flex; align-items: center; gap: 8px;
}
.market-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 5px;
  background: var(--border-soft); color: var(--muted);
  font-weight: 600;
}
.watch-meta { font-size: 11px; color: var(--muted); }
.watch-spark {
  flex: 0 0 80px; height: 24px; margin: 0 10px;
  display: flex; align-items: center;
}
.watch-spark .spark { width: 100%; }
.watch-right {
  display: flex; align-items: center; gap: 10px; text-align: right;
}
.watch-price {
  font-size: 15px; font-weight: 700; color: var(--fg);
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-variant-numeric: tabular-nums;
}
.watch-change {
  font-size: 12px; font-weight: 700; min-width: 60px;
  font-variant-numeric: tabular-nums;
}
.watch-del {
  width: 24px; height: 24px; border: none;
  background: transparent; color: var(--muted);
  border-radius: 50%; font-size: 18px; line-height: 1;
  cursor: pointer; transition: all 0.15s ease;
}
.watch-del:hover {
  background: #fee2e2; color: var(--bear);
}

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeUp 0.2s ease;
}
.modal-card {
  width: 100%; max-width: 400px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
  font-weight: 700; font-size: 14px; color: var(--fg);
}
.modal-close {
  width: 28px; height: 28px; border: none;
  background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
  border-radius: 50%;
}
.modal-close:hover { background: var(--border-soft); color: var(--fg); }
.modal-body { padding: 18px; }

/* History item within panel (override older rules) */
.history-item { background: #fafbfc; border: 1px solid var(--border-soft); }
.hi-symbol { display: flex; align-items: center; gap: 8px; }

