[hidden] { display: none !important; }
body.dashboard {
  --dash-ink: #14213b;
  --dash-muted: #526179;
  --dash-accent: #373dec;
  --dash-border: #d7e0ef;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
  align-items: start;
  color: var(--dash-ink);
  background: #f1f5fc;
}
.dashboard-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.dashboard-header {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100dvh;
  padding: 26px 15px 20px;
  overflow: auto;
  background: white;
  border-right: 1px solid var(--dash-border);
}
.dashboard-brand { display: flex; align-items: center; gap: 10px; padding-inline: 8px; font-size: 1.35rem; letter-spacing: -.04em; font-weight: 750; }
.dashboard-header nav { display: grid; gap: 4px; }
.dashboard-header nav a, .dashboard-nav-unavailable, .dashboard-account > a, #logout button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: 9px;
  font-size: .9375rem;
  font-weight: 600;
}
.dashboard-header nav a:hover, .dashboard-account > a:hover, #logout button:hover { background: #f1f4fb; }
.dashboard-header nav [aria-current] { color: #272bc3; background: #e8eaff; box-shadow: inset 3px 0 #4348f3; }
.copy-soon { margin-left: auto; border-radius: 5px; background: #edf1f8; padding: 2px 6px; color: var(--dash-muted); font-size: .75rem; }
.dashboard-nav-unavailable { color: var(--dash-muted); white-space: nowrap; gap: 7px; }
.dashboard-header nav svg, .overview-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dashboard-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--dash-border); }
#logout button { border: 1px solid var(--dash-border); color: var(--dash-ink); background: #f7f9fd; white-space: nowrap; }
#logout button:hover { border-color: #9daaf1; background: #edf0ff; color: #293abc; }
.analyzer { width: min(760px, calc(100% - 64px)); margin: 40px auto 60px; }
.analyzer-meta { color: #425676; }
.analyzer-panel { background: white; border: 1px solid #d6e3fc; border-radius: 20px; padding: clamp(16px, 4vw, 32px); margin-bottom: 16px; box-shadow: 0 12px 35px #1746a90a; }
.analyzer-entry { padding: clamp(14px, 3vw, 22px); }
.analyzer-entry-header { display: flex; align-items: center; gap: 10px; }
.analyzer-entry-header img { flex: none; }
.analyzer-entry-header h1 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 750; letter-spacing: -.035em; }
.analyzer-entry #access-status { margin-top: 14px; }
.analyzer-actions { margin-top: 8px; }
.analyzer-primary { display: inline-block; background: var(--dash-accent); color: white; padding: 12px 18px; border-radius: 9px; font-weight: 700; }
.analyzer-primary:not(:disabled):hover { background: #2b30d1; }
.analyzer-primary:disabled { opacity: .65; }
.analyzer-link, #plans { color: #1844bf; text-decoration: underline; }
#analysis-form { margin-top: 14px; }
#analysis-form fieldset { min-width: 0; border: 0; }
.analyzer-drop {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 232px;
  padding: clamp(18px, 4vw, 32px);
  border: 1px dashed #bfcbe3;
  border-radius: 14px;
  background: #f7f9fd;
  text-align: center;
  transition: background-color .15s, border-color .15s;
}
.analyzer-drop.is-dragging, .analyzer-drop:focus-within { border-color: #6875e9; background: #f0f3ff; }
.analyzer-drop h2 { font-size: clamp(1.08rem, 2.7vw, 1.25rem); font-weight: 750; letter-spacing: -.02em; }
.analyzer-drop > p { max-width: 38ch; color: var(--dash-muted); line-height: 1.4; }
.analyzer-drop .analyzer-meta { max-width: none; margin-top: 3px; font-size: .8125rem; }
.analyzer-upload { margin-top: 6px; border-radius: 999px; background: #182238; color: #fff; padding: 10px 18px; font-weight: 700; }
.analyzer-upload:hover:not(:disabled) { background: #2a3857; }
.analyzer-file { display: flex; align-items: center; text-align: left; gap: 9px; min-width: 0; max-width: 100%; border: 1px solid var(--dash-border); border-radius: 9px; padding: 6px 9px; background: white; }
.analyzer-file img { flex: none; border-radius: 4px; object-fit: cover; background: #edf2fb; }
.analyzer-file span { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; font-weight: 650; }
.analyzer-file button { flex: none; color: #334dc5; font-size: .8125rem; padding: 4px; }
.analyzer-file button:hover { text-decoration: underline; }
.analyzer-link-entry { margin-top: 16px; }
.analyzer-link-entry label, .report h2 { font-weight: 700; }
.analyzer-link-entry label { font-size: .875rem; }
.analyzer-link-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
#market-url { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--dash-border); border-radius: 9px; background: #fff; }
.analyzer-browse { width: 100%; margin-top: 14px; border: 1px solid var(--dash-border); border-radius: 10px; padding: 10px 16px; font-weight: 650; }
.analyzer-browse:hover:not(:disabled) { border-color: #9eabec; background: #f7f9ff; }
#analysis-form button:disabled { opacity: .6; }
.market-browser { position: fixed; inset: 0; margin: auto; width: min(500px, calc(100% - 24px)); height: min(780px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid #e0e5ef; border-radius: 22px; background: white; color: var(--dash-ink); box-shadow: 0 24px 70px #10203d52; }
.market-browser[open] { display: flex; flex-direction: column; }
.market-browser::backdrop { background: rgb(16 22 35 / 62%); }
.market-browser-header { flex: none; padding: 16px 16px 9px; border-bottom: 1px solid #e9edf4; }
.market-browser-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.market-browser-title h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.025em; }
.market-browser-title button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; font-size: 1.45rem; line-height: 1; }
.market-browser-title button:hover, .market-search button:hover { background: #e7ecfa; }
.market-search { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e6eaf2; border-radius: 10px; background: #f3f5fa; }
.market-search:has(input:focus-visible) { border-color: #8391ee; box-shadow: 0 0 0 2px #e4e9ff; }
.market-search input { width: 100%; min-width: 0; padding: 5px 8px; background: transparent; }
.market-search input:focus-visible { outline: none; }
.market-search button { flex: none; padding: 6px 9px; border-radius: 7px; color: #293abc; background: white; font-size: .8125rem; font-weight: 700; }
.market-categories { display: flex; gap: 4px; overflow: auto; margin-top: 9px; padding: 3px 1px; }
.market-categories button { flex: none; padding: 6px 10px; border-radius: 8px; color: var(--dash-muted); font-weight: 650; font-size: .875rem; white-space: nowrap; }
.market-categories button:hover, .market-categories [aria-pressed="true"] { color: #293abc; background: #edf0ff; }
.market-browser-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 15px 16px; }
#market-browser-status { color: var(--dash-muted); font-size: .875rem; }
#market-browser-status:empty { display: none; }
.market-results { display: grid; gap: 10px; }
.market-result { padding: 12px; border: 1px solid #e0e5ef; border-radius: 13px; box-shadow: 0 2px 3px #16234507; }
.market-result-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-weight: 750; }
.market-result-heading img { flex: none; width: 36px; height: 36px; object-fit: cover; border-radius: 7px; }
.market-result-heading button { text-align: left; }
.market-result-heading button:hover { color: #3146cd; }
.market-result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; min-height: 40px; font-size: .875rem; }
.market-result-contract { overflow-wrap: anywhere; }
.market-result-price { font-weight: 750; font-variant-numeric: tabular-nums; }
.market-result-choices { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 130px; }
.market-result-choice { min-height: 30px; border-radius: 6px; padding: 4px 8px; background: #edf0fb; color: #3146af; font-weight: 700; overflow-wrap: anywhere; }
.market-result-choice[data-outcome="yes"] { background: #d7f0e2; color: #136336; }
.market-result-choice[data-outcome="no"] { background: #fbe5e7; color: #9c2c39; }
.market-result-choice:hover { filter: brightness(.94); }
.market-result-volume { margin-top: 6px; color: var(--dash-muted); font-size: .8125rem; }
#contract-picker { display: grid; gap: 6px; margin-top: 16px; }
#analyzer-contract { width: 100%; padding: 9px 10px; border: 1px solid var(--dash-border); border-radius: 8px; background: #f7f9ff; }
#analysis-status:empty { display: none; }
#analysis-status { margin-top: 12px; }
.analysis-progress { margin-top: 14px; }
.analysis-elapsed { display: block; margin: -38px 0 17px auto; width: max-content; color: var(--dash-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.analysis-progress-surface { display: grid; align-content: center; gap: 8px; min-height: 166px; padding: 22px 18px; border: 1px solid #e6e9fd; border-radius: 14px; background: #fff; text-align: center; box-shadow: -8px 0 24px #a179ef26, 8px 0 24px #688af333; }
.analysis-progress-surface h2 { font-size: 1.08rem; font-weight: 750; }
.analysis-progress-surface h2:focus { outline: none; box-shadow: none; }
.analysis-progress-surface p { color: var(--dash-muted); overflow-wrap: anywhere; }
.analysis-stage { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 10px; background: #e8edff; color: #293ba8; font-weight: 700; font-size: .9375rem; }
.analysis-spinner { flex: 0 0 14px; height: 14px; border: 2px solid #aebafa; border-right-color: #3e50c8; border-radius: 50%; animation: analysis-spin .85s linear infinite; }
@keyframes analysis-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .analysis-spinner { animation: none; } }
.report p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
:focus-visible { outline: 2px solid #235ae9; outline-offset: 3px; }
.tool-suite { width: min(1320px, calc(100% - 64px)); margin: 36px auto 64px; }
.tool-suite h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.05em; }
.tool-suite h2 { font-size: 1.25rem; font-weight: 700; margin-block: 12px 8px; }
.tool-suite section > p { color: #425676; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 275px),1fr)); gap: 15px; margin-block: 18px; }
.tool-card { border: 1px solid #d6e3fc; background: white; border-radius: 15px; padding: 18px; overflow-wrap: anywhere; }
a.tool-card:hover { border-color: #235ae9; }
a.tool-card h2 { margin-top: 0; }
.tool-form { display: grid; justify-items: start; gap: 8px; margin-block: 16px; }
.tool-form label { font-weight: 700; }
.tool-suite input, .tool-suite textarea, .tool-suite select { min-width: 0; width: min(100%, 580px); border: 1px solid #bccbeb; border-radius: 8px; padding: 8px 12px; background: white; color: #17213d; }
.paper-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 190px),1fr)); gap: 12px; margin-top: 18px; }
.paper-summary > div { background: #e6efff; border-radius: 12px; padding: 12px 16px; }
.paper-summary strong { display: block; font-size: 1.45rem; }
.tool-row { margin-block: 7px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 16px; }
.tool-row > strong { flex: 1 1 210px; }
.tool-card a:not(.analyzer-primary), .tool-card button:not(.analyzer-primary) { color: #1745ba; text-decoration: underline; }
.coach-thread { min-height: 85px; margin-top: 18px; }
.coach-thread p { white-space: pre-wrap; margin: 6px 0 12px; }
.tool-suite [role=status] { min-height: 1.2em; }
.tool-suite [role=status]:empty { display: none; }

.dashboard-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.overview-heading { margin-bottom: 24px; }
.overview-heading p { color: var(--dash-muted); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(272px, 1fr); gap: 18px; }
.overview-grid > .tool-card { min-width: 0; padding: clamp(16px, 2vw, 26px); border-color: var(--dash-border); border-radius: 15px; }
.overview-grid h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.035em; }
.overview-analyzer fieldset { border: 0; min-width: 0; }
.overview-modes { display: flex; gap: 8px; margin-block: 12px 15px; border-bottom: 1px solid var(--dash-border); }
.overview-modes label { position: relative; display: block; padding: 8px 12px; border-bottom: 2px solid transparent; font-size: .9375rem; cursor: pointer; }
.overview-modes label:has(input:checked) { border-color: var(--dash-accent); color: #2c31bf; font-weight: 700; }
.overview-modes label:has(input:focus-visible) { outline: 2px solid var(--dash-accent); outline-offset: -2px; }
.overview-modes input { position: absolute; opacity: 0; pointer-events: none; }
.overview-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.overview-input input { width: 100%; background: #f8faff; }
.overview-input input::file-selector-button { padding: 4px 8px; margin-right: 8px; cursor: pointer; }
#overview-image-help { margin-top: 8px; font-size: .875rem; }
.overview-chart { margin-top: 24px; }
.overview-chart h3 { margin-bottom: 10px; color: var(--dash-muted); font-weight: 650; font-size: .875rem; }
.overview-chart ul { display: grid; gap: 10px; list-style: none; }
.overview-chart li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; font-size: .875rem; }
.overview-chart li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-chart li > strong { font-variant-numeric: tabular-nums; }
.volume-track { grid-column: 1 / -1; display: block; height: 6px; border-radius: 10px; background: #e9edfb; overflow: hidden; }
.volume-track span { display: block; height: 100%; border-radius: inherit; background: #5963ef; }
.overview-paper { display: flex; flex-direction: column; }
.overview-paper > p { margin-top: 14px; color: var(--dash-muted); }
.overview-paper > strong { font-size: clamp(1.75rem, 3.2vw, 2.85rem); line-height: 1.25; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.overview-paper dl { margin-block: 20px 24px; }
.overview-paper dl div { display: flex; justify-content: space-between; gap: 12px; border-block: 1px solid var(--dash-border); padding: 13px 0; }
.overview-paper dd { font-weight: 700; }
.overview-paper a.overview-button { margin-top: auto; display: block; border: 1px solid #6974f0; border-radius: 9px; padding: 10px 12px; color: #2d32bd; text-align: center; text-decoration: none; font-weight: 700; }
.overview-button:hover { background: #eef0ff; }
.overview-picks, .overview-tools { grid-column: 1 / -1; min-width: 0; }
.overview-picks > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 12px; }
.overview-picks > header a { font-size: .875rem; }
.overview-grid .overview-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 9px; padding: 14px; }
.overview-tools a, .overview-tool-unavailable { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px; font-weight: 700; border: 1px solid var(--dash-border); border-radius: 10px; }
.overview-grid .overview-tools a { color: var(--dash-ink); text-decoration: none; }
.overview-tool-unavailable { color: var(--dash-muted); }
.overview-grid .overview-tools a:hover { background: #f4f6fd; border-color: #9daaf1; }
.overview-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #2756bf; background: #e8f0ff; }
.overview-tools a:nth-child(2) .overview-icon { color: #5b3fc2; background: #efebff; }
.overview-tool-unavailable .overview-icon { color: var(--dash-muted); background: #edf1f8; }
.overview-tools small { border-radius: 5px; background: #edf1f8; padding: 2px 6px; color: var(--dash-muted); font-size: .75rem; font-weight: 600; }

.picks-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.picks-heading p { color: var(--dash-muted); }
.picks-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.picks-controls button { border: 1px solid var(--dash-border); border-radius: 8px; background: white; color: #2935bb; padding: 8px 12px; font-size: .875rem; font-weight: 650; }
.picks-controls button:hover:not(:disabled) { background: #edf0ff; border-color: #9daaf1; }
.picks-controls button:disabled { opacity: .6; }
.picks-refresh { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 12px; margin-bottom: 20px; border: 1px solid #bee8ad; border-radius: 999px; background: #e1f8d7; color: #265623; font-size: .875rem; }
.picks-refresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #419045; }
.picks-refresh time { font-weight: 750; font-variant-numeric: tabular-nums; }
.picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pick-card { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 16px; border-color: var(--dash-border); box-shadow: 0 2px 4px #11274c08; }
.pick-card-header, .pick-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dash-muted); font-size: .8125rem; }
.pick-card-header { font-weight: 650; }
.pick-card .pick-card-header a { color: #3845b7; text-decoration: none; }
.pick-card .pick-card-header a:hover { text-decoration: underline; }
.pick-card-heading { display: flex; align-items: flex-start; gap: 11px; flex: 1; }
.pick-card .pick-card-heading h2 { margin: 0; font-size: 1.095rem; line-height: 1.35; }
.pick-thumbnail { position: relative; display: grid; place-items: center; flex: 0 0 44px; height: 44px; overflow: hidden; border-radius: 10px; background: #e9edff; color: #3445cd; font-weight: 750; }
.pick-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-chart { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.pick-graph { display: grid; align-items: center; min-height: 88px; min-width: 0; }
.pick-graph canvas { display: block; width: 100%; height: 88px; }
.pick-chart-status { color: var(--dash-muted); font-size: .8125rem; }
.pick-quote { display: grid; text-align: right; white-space: nowrap; gap: 1px; }
.pick-quote strong { color: #3153e9; font-size: clamp(1.25rem, 2vw, 1.6rem); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pick-quote span { font-size: .75rem; color: var(--dash-muted); }
.pick-card-meta { margin-top: -6px; }
.pick-card-meta select { width: auto; font-size: .8125rem; padding: 4px 5px; color: #475775; background: #f7f9fd; }
.picks-grid .pick-card .pick-analyze { width: 100%; border: 1px solid #c9d1ff; border-radius: 8px; padding: 9px 10px; color: #2e3abb; background: #e9edff; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.picks-grid .pick-card .pick-analyze:hover { background: #dce3ff; border-color: #9aa8fa; }
#research-brief { margin-block: 0 16px; }

.wallet-leaderboard { overflow: hidden; border: 1px solid #d6def3; border-radius: 17px; background: white; }
.wallet-leaderboard-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: clamp(18px, 3vw, 29px); background: linear-gradient(115deg, #162752, #2e388f); color: #fff; }
.wallet-leaderboard-header h2 { margin: 0 0 3px; font-size: clamp(1.45rem, 3.4vw, 2.15rem); letter-spacing: -.035em; }
.wallet-leaderboard-header p { color: #e1e6ff; }
.wallet-periods { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: #10194366; border: 1px solid #ffffff36; border-radius: 10px; }
.wallet-periods button { padding: 6px 10px; border-radius: 6px; white-space: nowrap; font-size: .875rem; font-weight: 650; color: #eff1ff; }
.wallet-periods button:hover { background: #ffffff24; }
.wallet-periods [aria-pressed="true"], .wallet-periods [aria-pressed="true"]:hover { background: #fff; color: #263d88; }
.wallet-leaderboard-body { padding: clamp(12px, 2.5vw, 23px); }
#leaderboard-status { color: var(--dash-muted); }
.wallet-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wallet-podium-card { min-width: 0; display: grid; justify-items: start; gap: 9px; padding: clamp(12px, 2vw, 18px); border: 1px solid var(--dash-border); border-radius: 12px; background: #f7f9ff; }
.wallet-podium-card[data-rank="1"] { border-color: #b7c5ff; background: #eef2ff; }
.wallet-rank { display: block; border-radius: 6px; padding: 2px 8px; color: #374cbc; background: #e6ecff; font-size: .875rem; font-weight: 750; }
.wallet-podium-card[data-rank="1"] .wallet-rank { background: #394ce3; color: white; }
.wallet-trader { display: flex; align-items: center; min-width: 0; max-width: 100%; gap: 9px; }
.wallet-avatar { position: relative; display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #e0e8ff; color: #354ba5; font-size: .75rem; font-weight: 750; }
.wallet-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wallet-identity { display: grid; min-width: 0; overflow-wrap: anywhere; }
.wallet-identity strong { line-height: 1.25; }
.wallet-short { color: var(--dash-muted); font: .78rem ui-monospace, monospace; }
.wallet-podium-values { display: grid; gap: 1px; min-width: 0; }
.wallet-podium-values .wallet-profit { font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.wallet-podium-values > span, .wallet-shares, .wallet-muted { color: var(--dash-muted); font-size: .875rem; }
.wallet-profit { font-variant-numeric: tabular-nums; }
.wallet-profit.is-positive { color: #137047; }
.wallet-profit.is-negative { color: #a22d45; }
.wallet-action { display: inline-block; border: 1px solid var(--dash-border); border-radius: 7px; padding: 5px 9px; background: white; color: #3146b0; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.wallet-action:hover { background: #eaf0ff; border-color: #aebcf6; }
.wallet-table-scroll { overflow: auto; }
#leaderboard { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .875rem; }
#leaderboard :is(th, td) { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--dash-border); }
#leaderboard thead { color: var(--dash-muted); background: #f2f5fc; }
#leaderboard tbody tr:last-child > * { border-bottom: 0; }
#leaderboard :is(td:nth-child(3), td:nth-child(4), td:last-child) { white-space: nowrap; }
#leaderboard tbody td:last-child { text-align: right; }
.wallet-lookup, .wallet-detail { margin-top: 16px; padding: clamp(14px, 2.5vw, 22px); }
.wallet-lookup h2, .wallet-detail h2 { margin-top: 0; }
#wallet-form label { display: block; margin: 4px 0; color: var(--dash-muted); font-size: .875rem; }
.wallet-input { display: flex; align-items: stretch; gap: 8px; }
.wallet-input .analyzer-primary { white-space: nowrap; }
#wallet-status:not(:empty) { margin-top: 8px; color: var(--dash-muted); }
.wallet-address-full { display: block; overflow-wrap: anywhere; color: var(--dash-muted); font-size: .875rem; }
.wallet-activity { margin-top: 15px; }
.wallet-activity h3 { margin-bottom: 6px; font-weight: 750; }
.wallet-activity-row { padding: 9px 0; border-top: 1px solid var(--dash-border); }
.wallet-activity-heading, .wallet-activity-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wallet-activity-values { margin-top: 3px; font-size: .875rem; }
@media (max-width: 700px) {
  .wallet-podium { grid-template-columns: 1fr; }
  .wallet-podium-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .wallet-podium-values { grid-column: 2; grid-row: 2; }
  .wallet-podium-card .wallet-action { grid-column: 2; }
}

@media (max-width: 1260px) { .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .picks-grid { grid-template-columns: minmax(0, 1fr); } }

.report-heading { margin-bottom: 14px; }
.report-heading p { margin: 0 0 3px; color: var(--dash-muted); font-size: .875rem; }
.report-heading p:empty, .report-details:empty { display: none; }
.report-heading h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.25; letter-spacing: -.025em; }
.report-conclusion { border-radius: 10px; border: 1px solid #dfe4f8; background: #f0f3ff; color: #27345d; padding: 12px 14px; }
.report-conclusion p { margin-top: 3px; }
.report-conclusion[data-outlook="YES"] { color: #176444; border-color: #bfe7d2; background: #e6f8ef; }
.report-conclusion[data-outlook="NO"] { color: #8c323a; border-color: #f1ced3; background: #ffeff0; }
.report #report-confidence { font-weight: 700; margin-top: 15px; }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 8px; margin-block: 16px; }
.report-metrics > div { background: #f3f6fe; border: 1px solid var(--dash-border); border-radius: 9px; padding: 10px; }
.report-metrics dt { color: var(--dash-muted); font-size: .8125rem; }
.report-metrics dd { margin-top: 3px; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-details { display: grid; gap: 12px; margin-top: 16px; }
.report-details > section { border-top: 1px solid var(--dash-border); padding-top: 12px; }
.report-details h3 { font-weight: 700; }
.report-details ul { list-style: disc; margin-top: 6px; padding-left: 1.4em; }
.report-details li + li { margin-top: 5px; }
.report-factors ul, .report-risks ul { list-style: none; padding-left: 0; }
.report-factors li, .report-risks li { border-left: 3px solid #77bc9a; border-radius: 3px; padding: 4px 10px; }
.report-risks li { border-color: #d3a66d; }

@media (max-width: 1060px) {
  body.dashboard { grid-template-columns: 210px minmax(0, 1fr); }
  .tool-suite, .analyzer { width: calc(100% - 36px); }
  .overview-grid { grid-template-columns: minmax(0, 1.65fr) minmax(226px, 1fr); }
  .overview-input { grid-template-columns: minmax(0, 1fr); }
  .overview-input button { justify-self: start; }
}
@media (max-width: 800px) {
  body.dashboard { grid-template-columns: minmax(0, 1fr); }
  .dashboard-header { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: auto; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--dash-border); }
  .dashboard-brand { padding: 0; }
  .dashboard-header nav { grid-row: 2; grid-column: 1 / -1; display: flex; overflow: auto; padding: 3px; margin-inline: -3px; }
  .dashboard-header nav a { white-space: nowrap; }
  .dashboard-account { grid-row: 1; grid-column: 2; display: flex; margin: 0; padding: 0; border: 0; }
  .dashboard-account > a, #logout button { padding-inline: 7px; }
  .tool-suite, .analyzer { margin-top: 22px; }
}
@media (max-width: 590px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dashboard-header nav svg { width: 17px; height: 17px; }
  .analyzer-link-fields { grid-template-columns: minmax(0, 1fr); }
  .analysis-elapsed { margin-top: 0; margin-bottom: 8px; }
}
@media (max-width: 380px) {
  .dashboard-account { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .dashboard-header nav { grid-row: 3; }
}
