:root {
  --bg: #f4f2ee;
  --panel: #ffffff;
  --panel-border: #dbd9d4;
  --text: #191919;
  --text-dim: #666666;
  --accent: #0a66c2;
  --green: #1a9c53;
  --red: #d64545;
  --hover: #f3f2ef;
  --on-strong: #ffffff;
  --radius: 10px;
  --topbar-h: 97px;
}

/* Original dark theme, kept as an opt-in alternative -- toggled via the
   account menu, applied by setting data-theme="dark" on <html>. */
[data-theme="dark"] {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-border: #262b36;
  --text: #e7e9ee;
  --text-dim: #9aa1b1;
  --accent: #5b8def;
  --green: #3ec97c;
  --red: #ef5a5a;
  --hover: #1b1f29;
  --on-strong: #0a1114;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { font-weight: 700; font-size: 18px; }
.brand-link {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.brand-link:hover { opacity: 0.85; }

.equity-summary { font-size: 15px; color: var(--text-dim); display: flex; gap: 18px; }
.equity-summary b { color: var(--text); }
.equity-summary .pos { color: var(--green); }
.equity-summary .neg { color: var(--red); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.current-username { color: var(--text-dim); font-size: 13px; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }

.account-menu-wrap { position: relative; }
.account-menu-caret { font-size: 10px; margin-left: 2px; }
.account-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  min-width: 190px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  z-index: 40;
  overflow: hidden;
  padding: 4px 0;
}
.account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}
.account-menu-item:hover { background: var(--hover); }
.account-menu-item-danger { color: var(--red); }
.account-menu-divider { height: 1px; background: var(--panel-border); margin: 4px 0; }

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
}
.auth-brand { font-weight: 700; font-size: 20px; text-align: center; margin-bottom: 20px; }
.auth-tabs { display: flex; border: 1px solid var(--panel-border); border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.auth-tab.active { background: var(--panel-border); color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.auth-form input {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font-size: 14px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-hint { font-size: 12px; color: var(--text-dim); margin-top: -6px; }
.auth-submit { width: 100%; padding: 11px; }
.auth-optional { font-weight: 400; color: var(--text-dim); }
.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.auth-link:hover { text-decoration: underline; }

.terms-content { max-height: 55vh; overflow-y: auto; font-size: 13px; line-height: 1.6; color: var(--text); padding-right: 6px; display: flex; flex-direction: column; gap: 8px; }
.terms-checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-dim); margin: 4px 0; }
.terms-checkbox-row input { margin-top: 3px; }

.terms-fun-item {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.terms-fun-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  list-style: none;
}
.terms-fun-summary::-webkit-details-marker { display: none; }
.terms-fun-summary:hover { background: var(--hover); }
.terms-fun-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.terms-fun-item[open] .terms-fun-summary { border-bottom: 1px solid var(--panel-border); }
.terms-fun-body { padding: 12px 14px; }
.terms-fun-body p { margin: 0; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
}
.modal-card h2 { margin: 0 0 10px 0; font-size: 16px; }
.modal-warning { font-size: 13px; color: var(--text-dim); margin: 0 0 16px 0; line-height: 1.5; }
.modal-body-text { font-size: 13px; color: var(--text-dim); margin: 0 0 16px 0; line-height: 1.6; }
.modal-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.modal-card input {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 14px;
}
.modal-card input:focus { outline: none; border-color: var(--accent); }
.modal-card textarea {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.modal-card textarea:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
}
.admin-list-row:last-child { border-bottom: none; }
.admin-list-row .admin-list-main { flex: 1; min-width: 0; }
.admin-list-row .admin-list-summary { color: var(--text-dim); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions .btn { flex: 1; }

.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.learn-layout { grid-template-columns: 280px 1fr; align-items: start; }
@media (max-width: 900px) {
  .learn-layout { grid-template-columns: 1fr; }
}

.learn-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.learn-nav-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  text-align: left;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.learn-nav-item:hover { background: var(--hover); color: var(--text); }
.learn-nav-item.active { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--text); font-weight: 600; }
.learn-nav-rank { font-size: 16px; flex-shrink: 0; width: 20px; }

.learn-content .learn-kicker {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.learn-content h1 { font-size: 22px; margin: 0 0 16px 0; }
.learn-mascot-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.learn-mascot-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.learn-content p { line-height: 1.7; font-size: 14px; color: var(--text); margin: 0 0 14px 0; }
.learn-content ul, .learn-content ol { line-height: 1.7; font-size: 14px; padding-left: 20px; margin: 0 0 14px 0; }
.learn-content li { margin-bottom: 6px; }
.learn-content strong { color: var(--text); }
.learn-callout {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  margin: 0 0 14px 0;
}
.learn-example {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin: 0 0 14px 0;
  line-height: 1.6;
}
.learn-nav-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.learn-nav-footer .btn { flex: 1; }

.glossary-list { display: flex; flex-direction: column; gap: 16px; }
.glossary-term-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.glossary-term-body { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ---------- app shell + market indices rail ---------- */

.app-shell { display: flex; align-items: stretch; }
.app-main { flex: 1; min-width: 0; }

.indices-rail {
  width: 130px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--panel-border);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: var(--topbar-h);
  align-self: flex-start;
  height: calc(100vh - var(--topbar-h));
}

.indices-market-select-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--panel-border);
}
.indices-globe { font-size: 14px; }
.indices-market-select {
  background: none;
  border: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  width: 100%;
}
.indices-market-select:focus { outline: none; }

.indices-scroll {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.indices-scroll::-webkit-scrollbar { width: 6px; }
.indices-scroll::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 3px; }

.index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 8px 6px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}
.index-card:hover { background: var(--hover); }
.index-card-label {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-card-row { display: flex; flex-direction: column; gap: 4px; }
.index-card-text { display: flex; flex-direction: column; gap: 1px; }
.index-card-price { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.index-card-change { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.index-card-spark { width: 100%; height: 26px; }

.col { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-header-row h2 { margin: 0; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.modal-body-text code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
#importTransactionsFile { color: var(--text-dim); font-size: 13px; margin: 8px 0 14px 0; display: block; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--panel-border); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--text-dim); font-weight: 500; }
tr:last-child td { border-bottom: none; }

.pos { color: var(--green); }
.neg { color: var(--red); }
.dim { color: var(--text-dim); }

.sortable-table th { padding: 0; }
.sort-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 6px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  justify-content: flex-end;
}
.sortable-table th:first-child .sort-btn { justify-content: flex-start; }
.sort-btn:hover { color: var(--text); }
.sort-btn.active { color: var(--text); }
.sort-arrow { font-size: 10px; opacity: 0.6; }
.sort-btn.active .sort-arrow { opacity: 1; color: var(--accent); }

.empty-state { color: var(--text-dim); font-size: 14px; padding: 12px 0; text-align: center; }

.btn {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost { background: transparent; border: 1px solid var(--panel-border); color: var(--text); }
.btn-buy { background: var(--green); color: var(--on-strong); flex: 1; }
.btn-sell { background: var(--red); color: var(--on-strong); flex: 1; }

.trade-form { display: flex; flex-direction: column; gap: 12px; }
.trade-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.trade-form input {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 14px;
}
.trade-form input:focus { outline: none; border-color: var(--accent); }

.trade-buttons { display: flex; gap: 10px; margin-top: 4px; }

.quote-preview { font-size: 13px; color: var(--text-dim); min-height: 18px; }
.quote-preview b { color: var(--text); }

.trade-message { font-size: 13px; min-height: 18px; }
.trade-message.error { color: var(--red); }
.trade-message.success { color: var(--green); }

.watch-form { display: flex; gap: 8px; margin-bottom: 12px; }
.watch-form .autocomplete-wrap { flex: 1; }
.watch-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 14px;
}
.watch-form input:focus { outline: none; border-color: var(--accent); }

.autocomplete-wrap { position: relative; }
.autocomplete-wrap input { width: 100%; }

.autocomplete-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 13px;
}
.autocomplete-item .sym { font-weight: 600; color: var(--text); flex-shrink: 0; }
.autocomplete-item .name {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-item:hover,
.autocomplete-item.active { background: var(--hover); }
.autocomplete-empty { padding: 10px; font-size: 13px; color: var(--text-dim); }

.remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  padding: 0 4px;
}
.remove-btn:hover { color: var(--red); }

/* ---------- news ---------- */

#newsFeed { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--panel-border);
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--hover); }
.news-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.news-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.news-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: center; }
.news-title { font-size: 14px; color: var(--text); line-height: 1.35; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.news-badge { padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 11px; white-space: nowrap; }
.news-badge-portfolio { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.news-badge-trending { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }

.news-item-compact { padding: 8px 6px; gap: 0; }
.news-item-compact .news-body { gap: 4px; }
.news-item-compact .news-title {
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-compact .news-meta { font-size: 10.5px; gap: 6px; }
.news-item-compact .news-badge { padding: 1px 6px; font-size: 10px; }

/* ---------- bounded, paginated lists (trade history, news) ---------- */

.bounded-list { max-height: 380px; overflow: hidden; }
.bounded-list table { margin-bottom: 0; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--panel-border);
}
.pagination-btn {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(:disabled) { background: var(--hover); }
.pagination-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination-info { font-size: 12px; color: var(--text-dim); min-width: 90px; text-align: center; }

/* ---------- help / glossary ---------- */

.help-term {
  border-bottom: 1px dotted var(--text-dim);
  cursor: help;
}
.help-term:hover { color: var(--accent); border-color: var(--accent); }

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0.7;
}
.help-icon:hover { color: var(--accent); opacity: 1; }

/* ---------- clickable ticker links ---------- */

.symbol-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.symbol-link:hover { text-decoration: underline; }

/* ---------- stock detail page ---------- */

.back-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 16px 0;
  display: block;
}
.back-link:hover { color: var(--accent); }

.stock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.stock-symbol { font-size: 24px; font-weight: 700; }
.stock-name { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.stock-price-block { text-align: right; }
.stock-price { font-size: 24px; font-weight: 700; }
.stock-change { font-size: 14px; margin-top: 2px; }

.range-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.range-tab {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.range-tab:hover { color: var(--text); border-color: var(--text-dim); }
.range-tab.active { background: var(--accent); border-color: var(--accent); color: var(--on-strong); }

.chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}
#chartSvgHost { width: 100%; height: 100%; }
.chart-wrap svg { width: 100%; height: 100%; display: block; }
.chart-empty { color: var(--text-dim); font-size: 14px; text-align: center; padding-top: 100px; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.chart-tooltip .tt-price { color: var(--text); font-weight: 600; }
.chart-tooltip .tt-date { color: var(--text-dim); }

.position-summary { display: flex; flex-direction: column; gap: 10px; }
.position-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--panel-border); }
.position-row:last-child { border-bottom: none; }
.position-row .label { color: var(--text-dim); }
.position-row .value { font-weight: 600; }
.position-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.position-badge.pos { background: color-mix(in srgb, var(--green) 15%, transparent); }
.position-badge.neg { background: color-mix(in srgb, var(--red) 15%, transparent); }

.pnl-headline { font-size: 32px; font-weight: 700; }
.pnl-sub { font-size: 13px; color: var(--text-dim); margin: 2px 0 14px 0; }

/* ---------- stock fundamentals ---------- */

.fund-groups { display: flex; flex-direction: column; gap: 22px; }
.fund-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 20px; }
.fund-item .label { font-size: 12px; color: var(--text-dim); margin-bottom: 3px; }
.fund-item .value { font-size: 14px; font-weight: 600; color: var(--text); }
.fund-range-wrap { margin-top: 14px; }
.fund-range-bar { position: relative; height: 5px; background: var(--panel-border); border-radius: 3px; margin: 6px 0 4px 0; }
.fund-range-marker {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 11px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
}
.fund-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.fund-about-grid { display: grid; grid-template-columns: 1fr 200px; gap: 24px; }
@media (max-width: 700px) {
  .fund-about-grid { grid-template-columns: 1fr; }
}
.fund-about-summary { font-size: 13px; line-height: 1.6; color: var(--text); margin: 0; }
.fund-about-simple {
  font-size: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  padding: 12px 14px;
}
.fund-about-original { margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.fund-about-original summary { cursor: pointer; }
.fund-about-original p { margin: 8px 0 0; line-height: 1.6; }
.fund-about-stats { display: flex; flex-direction: column; gap: 14px; }
.fund-website { font-size: 13px; color: var(--accent); text-decoration: none; }
.fund-website:hover { text-decoration: underline; }
