/* The same section links stay within reach on a phone and beside the desktop brief. */
.dashboard { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 42px; align-items: start; }
.dashboard-content { min-width: 0; }
.today-sections { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding-right: 20px; border-right: 1px solid var(--line); }
.today-nav-label { font-size: 14px; font-weight: 600; margin: 0 0 14px 12px; }
.today-sections a { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: 9px 12px; border-radius: 4px; color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.today-sections a:hover { background: var(--panel-2); color: var(--text); }
.today-sections a[aria-current] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
[data-dashboard-section] { scroll-margin-top: 88px; }
.dash-hero { grid-template-columns: 1fr; align-items: start; gap: 12px; padding-bottom: 28px; }
.dash-hero .kicker { font-size: 12px; margin-bottom: 3px; }
.dash-hero h1 { font-size: 36px; line-height: 1.2; letter-spacing: -.035em; }
.dash-intro { justify-self: start; max-width: 64ch; }
.dash-intro p:first-child { font-size: 14px; }
.snapshot-context { grid-template-columns: minmax(0, 1fr) auto; font-size: 12px; }
.snapshot-context .coverage-link { display: flex; align-items: center; min-height: 44px; grid-column: 2; grid-row: 1 / 3; color: var(--accent); font-size: 12px; }
.dashboard-content > section { margin-top: 46px; }
.dashboard .board-head h2 { font-size: 24px; }
.theme-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
progress.theme-heat { display: block; appearance: none; border: 0; border-radius: 0; width: 100%; height: 3px; background: var(--accent-soft); color: var(--accent); }
progress.theme-heat::-webkit-progress-bar { background: var(--accent-soft); }
progress.theme-heat::-webkit-progress-value { background: var(--accent); }
progress.theme-heat::-moz-progress-bar { background: var(--accent); }
.pair-summary { color: var(--text); text-decoration: none; }
.pair-summary::after { content: '›'; }
.pair-head, .pair-summary { grid-template-columns: minmax(100px, 1.2fr) .65fr .9fr 1fr .8fr; padding-inline: 14px; }
.with-change .pair-head, .with-change .pair-summary { grid-template-columns: minmax(100px, 1.2fr) .65fr .9fr 1fr .8fr 1fr; }
.pair-summary { padding-right: 32px; }
.pair-label { grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
.pair-summary::after { right: 10px; }
.today-coin-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.today-coin-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); min-height: 78px; padding: 12px 0; font-size: 14px; }
.today-coin-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.today-coin-identity .coin-link { display: flex; flex-direction: column; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.today-coin-identity .coin-link:hover { color: var(--accent); text-decoration: underline; }
.today-coin-name { color: var(--text-2); overflow-wrap: anywhere; }
.today-coin-peak { font-family: var(--mono); font-size: 12px; }
.today-check-section > p, .sources-section > p { color: var(--text-2); max-width: 70ch; font-size: 14px; }
.today-check-section .coin-check-form { max-width: 100%; }
.sources-detail summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-size: 14px; }
.sources-detail summary::after { content: '+'; margin-left: 12px; }
.sources-detail[open] summary::after { content: '−'; }
.sources-detail { font-size: 14px; }
.sources-detail li { padding-block: 4px; }
.sources-detail a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--accent); margin-left: 8px; }
.theme-drawer { width: min(720px, 100%); }
.drawer-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; min-width: 0; font-size: 12px; line-height: 1.5; }
.drawer-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text-2); }
.drawer-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.drawer-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.breadcrumb-divider { color: var(--text-2); }
.drawer-top { align-items: flex-start; }
.drawer-top > .btn { flex: none; }
.drawer-cross-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 8px; color: var(--accent); font-size: 14px; }
.coin-view-links { display: flex; flex-direction: column; align-items: flex-start; margin-block: 12px; }
.coin-view-mint { font-family: var(--mono); font-size: 12px !important; overflow-wrap: anywhere; }
.ask-agent-preview { border-block: 1px solid var(--line-2); margin-top: 24px; }
.ask-agent-preview > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ask-agent-preview > summary::after { content: '+'; }
.ask-agent-preview[open] > summary::after { content: '−'; }
.today-conversation { margin-bottom: 16px; min-width: 0; }
.drawer-actions { background: transparent; }
.drawer-actions .prompt-copy { font-size: 12px; }
.theme-drawer .drawer-bottom-close { display: inline-flex; width: auto; min-height: 44px; margin-top: 16px; }
@media (min-width: 1300px) { .theme-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .dashboard { grid-template-columns: 144px minmax(0, 1fr); gap: 26px; }
  .today-sections { padding-right: 12px; }
  .today-sections a { padding-inline: 9px; font-size: 12px; }
  .pair-head, .pair-summary { gap: 10px; }
  .history-reader { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dashboard { display: block; padding-top: 0; }
  .today-sections { position: sticky; top: 60px; z-index: 20; display: flex; flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border: 0; border-bottom: 1px solid var(--line-2); background: var(--bg); padding: 6px 0; gap: 4px; margin-bottom: 28px; max-width: 100%; }
  .today-sections a { flex: none; min-height: 44px; padding: 9px 12px; font-size: 12px; }
  .today-nav-label { display: none; }
  [data-dashboard-section] { scroll-margin-top: 138px; }
  .snapshot-context .coverage-link { grid-column: 1 / -1; grid-row: auto; }
  .history-reader { grid-template-columns: 1fr; }
  .brief-list { display: flex; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .brief-button { flex: 1 0 46%; width: auto; }
}
@media (max-width: 760px) {
  .dash-hero { gap: 10px; padding-bottom: 22px; }
  .dash-hero h1 { font-size: 30px; }
  .dash-hero .kicker { font-size: 12px; }
  .dash-intro p:first-child { font-size: 14px; }
  .dashboard-content > section { margin-top: 34px; }
  .dashboard .board-head h2 { font-size: 20px; }
  .theme-board { grid-template-columns: minmax(0, 1fr); }
  .pair-summary, .with-change .pair-summary { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 28px 12px 12px; }
  .today-coin-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 10px; }
  .today-coin-identity { grid-row: 1 / 3; }
  .today-coin-name { display: none; }
  .today-coin-peak { font-size: 12px; }
  .today-coin-identity .coin-link { font-size: 14px; }
  .theme-drawer { padding: 18px; }
  .drawer-top { gap: 10px; }
  .drawer-breadcrumb { gap: 2px 6px; font-size: 12px; }
  .drawer-top > .btn { padding-inline: 12px; }
  .drawer-actions { position: static; margin: 14px 0 0; padding: 0 0 env(safe-area-inset-bottom); box-shadow: none; border: 0; }
  .theme-drawer .drawer-bottom-close { width: 100%; }
  .theme-drawer .prompt-copy { font-size: 12px; }
}

/* Chat view (default) and Dashboard view */
.view-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 500 14px/20px var(--sans); cursor: pointer; transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease); }
.view-switch button:hover { color: var(--text); }
.view-switch button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
.today-chat { max-width: 960px; }
.today-chat .conversation { margin-top: 52px; }
body[data-view="chat"] .dashboard { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
body[data-view="chat"] .today-sections,
body[data-view="chat"] .verdict-block,
body[data-view="chat"] .snapshot-context,
body[data-view="chat"] [data-dashboard-section]:not(#overview) { display: none; }
body[data-view="board"] .today-chat { display: none; }
body[data-view="chat"] .today-chat .conversation.is-live .conversation-reading { max-height: none; overflow: visible; }
body[data-view="chat"] .today-chat .conversation-composer { position: sticky; bottom: 16px; z-index: 5; }
