
/* Personalized dashboard, using the existing terminal palette. */
#dashboard { max-width: 1600px; margin: 0 auto; }
#dashboard [hidden] { display: none !important; }
.dash-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.dash-eyebrow { color: var(--yellow); letter-spacing: .14em; font-size: .66rem; font-weight: 700; margin: 0 0 10px; }
#dashboard h2 { font-size: clamp(1.65rem, 2.5vw, 2.5rem); letter-spacing: -.035em; margin: 0 0 12px; }
#dashboard .section-description { margin: 0; max-width: 620px; }
.dash-actions { display: flex; gap: 8px; flex-shrink: 0; }
#dashboard button { cursor: pointer; font: inherit; border: 1px solid var(--border, #2b3139); background: var(--bg-panel); color: var(--text-primary); border-radius: 7px; padding: 10px 14px; font-size: .78rem; transition: border-color .15s, background .15s; }
#dashboard button:hover { border-color: var(--yellow); background: var(--bg-hover); }
#dashboard button:disabled { opacity: .4; cursor: default; }
#dashboard button:focus-visible, #dashboard input:focus-visible, #dashboard a:focus-visible, #dashboard select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
#dashboard .dash-primary { background: var(--yellow); border-color: var(--yellow); color: #15181c; font-weight: 700; }
.dash-meta { display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: .72rem; color: #9ba6b4; padding: 0 0 26px; align-items: center; }
.dash-meta a { color: var(--yellow); text-decoration: none; }
#dash-refresh-status { margin-left: auto; }
.dash-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 26px; }
.dash-card { min-width: 0; background: var(--bg-surface); border: 1px solid var(--border, #2b3139); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.dash-card-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: #aeb7c4; font-size: .76rem; }
.dash-state { display: inline-block; font-size: .68rem; line-height: 1.4; padding: 4px 7px; border-radius: 5px; color: #afb8c7; background: #262d36; white-space: normal; }
.dash-state[data-feed-state="fresh"] { color: #7cdec0; background: #14362e; }
.dash-state[data-feed-state="issue"] { color: #ffc09c; background: #412b24; }
.dash-state[data-feed-state="stale"],.dash-state[data-feed-state="saved"] { color: #f0ce7e; background: #3c3420; }
.dash-value { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.65rem,2.3vw,2.25rem); font-weight: 600; line-height: 1.35; margin: 21px 0 8px; letter-spacing: -.045em; overflow-wrap: anywhere; }
.dash-value small { font-size: .9rem; color: #9ba6b4; letter-spacing: 0; }
.dash-detail { color: #aeb7c4; font-size: .74rem; line-height: 1.6; margin: 0 0 20px; }
.dash-up { color: #66d4ad; }.dash-down { color: #ff929d; }
.dash-card-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border, #2b3139); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-card-bottom small { font-size: .7rem; color: #9ba6b4; line-height: 1.8; }
#dashboard .dash-card-bottom button { padding: 7px 11px; font-size: 1rem; background: transparent; }
.dash-columns { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 20px; margin-bottom: 26px; }
.dash-panel { background: var(--bg-surface); border: 1px solid var(--border, #2b3139); border-radius: 12px; padding: 24px; min-width: 0; }
.dash-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#dashboard .dash-panel h3 { font-size: 1.12rem; margin: 0; letter-spacing: -.02em; }
.dash-panel .dash-eyebrow { font-size: .59rem; margin-bottom: 7px; }
.dash-label { color: #9ba6b4; font-size: .7rem; }
#dash-brief-list { list-style: none; padding: 0; margin: 0; }
#dash-brief-list li { padding: 16px 0; border-bottom: 1px solid var(--border, #2b3139); }
#dash-brief-list li:first-child { padding-top: 0; }
#dash-brief-list li:last-child { border-bottom: 0; }
.dash-brief-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dash-brief-title strong { font-size: .82rem; font-weight: 600; }
#dash-brief-list p { color: #bec5cf; font-size: .78rem; line-height: 1.8; margin: 8px 0; }
#dash-brief-list small { color: #8f9cab; font-size: .7rem; }
.dash-footnote { font-size: .7rem; line-height: 1.8; color: #9ba6b4; margin: 12px 0 0; }
#dashboard a { color: var(--yellow); }
.dash-switch { display: flex; gap: 4px; }
#dashboard .dash-switch button { padding: 7px 12px; }
#dashboard .dash-switch button[aria-pressed="true"] { color: var(--yellow); border-color: #7b6725; background: #302a19; }
#dash-etf-frame { width: 100%; height: 346px; border: 0; border-radius: 8px; display: block; background: #191a18; color-scheme: dark; }
#dashboard .dash-text-button { border: 0; color: var(--yellow); background: transparent; padding: 10px 0; text-align: left; }
.dash-health { scroll-margin-top: 85px; }
.dash-health > .dash-footnote { margin: -6px 0 16px; max-width: 800px; }
.dash-health-row { display: grid; grid-template-columns: 1fr 1.05fr 1.4fr auto; align-items: center; gap: 20px; border-top: 1px solid var(--border, #2b3139); padding: 18px 0; font-size: .72rem; }
.dash-health-row strong { display: block; font-weight: 600; margin-bottom: 7px; font-size: .78rem; }
.dash-health-row a { font-size: .68rem; text-decoration: none; }
.dash-health-row small { display: block; color: #9ba6b4; line-height: 1.7; font-size: .7rem; margin-top: 4px; }
.dash-health-row > div > span:not(.dash-state) { display: block; margin: 3px 0; font-size: .7rem; }
#dashboard .dash-health-row button { font-size: .68rem; white-space: nowrap; }
.dash-external { border-top: 1px solid var(--border, #2b3139); padding-top: 18px; display: flex; align-items: flex-start; gap: 16px; }
.dash-external p { color: #9ba6b4; margin: 0; font-size: .7rem; line-height: 1.8; }
.dash-external strong { color: #bfc8d5; font-weight: 500; }
.dash-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; font-size: .66rem; color: #9ba6b4; }
.dash-editor { background: #1b2026; border: 1px solid #73612c; border-radius: 12px; padding: 22px; margin-bottom: 24px; }
.dash-editor-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.dash-editor h3 { margin: 0 0 8px; font-size: 1rem; }.dash-editor p { color: #aab4c2; font-size: .75rem; }
.dash-editor-heading > label { font-size: .7rem; color: #b8c1ce; }
#dash-preset { display: block; min-width: 190px; margin-top: 6px; padding: 9px; font-size: .76rem; }
#dash-card-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0; }
.dash-option { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #14191f; border: 1px solid #323a45; border-radius: 7px; padding: 8px 10px; }
.dash-option label { display: flex; align-items: center; gap: 10px; font-size: .75rem; cursor: pointer; }
.dash-option input { accent-color: var(--yellow); width: 16px; height: 16px; flex: none; }
#dashboard .dash-option button { padding: 6px 10px; font-size: .8rem; }
.dash-option > div { display: flex; flex: none; gap: 4px; }
.dash-editor-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#dash-save-status { font-size: .7rem; color: #b9c3d0; flex: 1; }
.dash-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #58616d; border-radius: 10px; color: #aab4c2; line-height: 1.8; font-size: .8rem; }
.dash-watchlist { list-style: none; padding: 0; margin: -8px 0 16px; }
.dash-watchlist li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: .72rem; padding: 6px 0; }
.dash-watchlist small { color: #9ba6b4; }
@media (max-width: 1250px) { .dash-heading { align-items: flex-start; }.dash-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }.dash-columns { grid-template-columns: 1fr; }.dash-health-row { grid-template-columns: 1fr 1fr; }.dash-health-row button { justify-self: start; } }
@media (max-width: 650px) { .dash-heading { flex-direction: column; gap: 16px; }.dash-actions { width: 100%; }.dash-actions button { flex: 1; }.dash-meta { gap: 10px; padding-bottom: 18px; }.dash-meta > span:first-child { width: 100%; }#dash-refresh-status { margin-left: 0; width: 100%; }.dash-cards { grid-template-columns: 1fr; gap: 12px; }.dash-card { padding: 18px; }.dash-value { font-size: 2rem; }.dash-panel { padding: 18px; }.dash-health-row { gap: 12px; }.dash-health-row > div:nth-child(3) { grid-column: 1 / -1; }.dash-external { flex-direction: column; gap: 8px; }.dash-editor { padding: 16px; }#dash-card-options { grid-template-columns: 1fr; }.dash-editor-heading > label,#dash-preset { width: 100%; }.dash-card-bottom small { font-size: .7rem; } }

