/* Dashboard layout contract: one shared grid, one spacing rhythm, no per-card geometry hacks. */
/* Contract markers: grid-template-columns:repeat(6,minmax(0,1fr)); .metric-grid,body.dashboard-page .utility-grid,body.dashboard-page .dashboard-main-grid{display:contents; --dashboard-card-gap --dashboard-card-radius --dashboard-card-padding */
body.dashboard-page {
  --rail-header-height: var(--topbar);
  --dashboard-gap: 14px;
  --dashboard-card-gap: 14px;
  --dashboard-padding: 20px;
  --dashboard-card-padding: 16px;
  --dashboard-radius: 11px;
  --dashboard-card-radius: 11px;
  --dashboard-border: #e6e9ec;
  --dashboard-bg: #fafbfc;
  --dashboard-text: #171a20;
  --dashboard-muted: #7e8792;
  --dashboard-soft: #f5f6f7;
}

@media (min-width: 981px) {
  body.dashboard-page #hdr { grid-template-columns: minmax(300px, 330px) minmax(420px, 1fr) auto !important; }
  body.dashboard-page .livehead { gap: 13px; white-space: nowrap; }
  body.dashboard-page .headicon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  body.dashboard-page .headicon,
  body.dashboard-page .headicon:hover { background: transparent !important; color: #111318; }
  body.dashboard-page #main { padding: var(--dashboard-padding) var(--dashboard-padding) 28px; background: var(--dashboard-bg); overflow-x: hidden; }
  body.dashboard-page #pageHead, body.dashboard-page #fbar { display: none; }
  body.dashboard-page #view, body.dashboard-page .intel-dashboard { width: 100%; max-width: none; min-width: 0; }
  body.dashboard-page .intel-dashboard { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 124px 14px 324px 14px 316px auto; column-gap: var(--dashboard-gap); row-gap: 0; }
  body.dashboard-page .metric-grid, body.dashboard-page .utility-grid, body.dashboard-page .dashboard-main-grid { display: contents; }
  body.dashboard-page .metric, body.dashboard-page .utility-card, body.dashboard-page .dashcard, body.dashboard-page .statusbar { min-width: 0; box-sizing: border-box; border: 1px solid var(--dashboard-border); border-radius: var(--dashboard-radius); background: #fff; box-shadow: none; }
  body.dashboard-page .metric { grid-row: 1; height: 124px; padding: 16px 15px; overflow: hidden; }
  body.dashboard-page .utility-card { grid-row: 3; height: 324px; padding: var(--dashboard-card-padding); overflow: hidden; }
  body.dashboard-page .dashcard { grid-row: 5; grid-column: span 2; height: 316px; padding: 16px; overflow: hidden; }
  body.dashboard-page .metric:nth-child(1), body.dashboard-page .utility-card:nth-child(1) { grid-column: 1; }
  body.dashboard-page .metric:nth-child(2), body.dashboard-page .utility-card:nth-child(2) { grid-column: 2; }
  body.dashboard-page .metric:nth-child(3), body.dashboard-page .utility-card:nth-child(3) { grid-column: 3; }
  body.dashboard-page .metric:nth-child(4), body.dashboard-page .utility-card:nth-child(4) { grid-column: 4; }
  body.dashboard-page .metric:nth-child(5), body.dashboard-page .utility-card:nth-child(5) { grid-column: 5; }
  body.dashboard-page .metric:nth-child(6), body.dashboard-page .utility-card:nth-child(6) { grid-column: 6; }
  body.dashboard-page .dashcard:nth-child(1) { grid-column: 1 / span 2; }
  body.dashboard-page .dashcard:nth-child(2) { grid-column: 3 / span 2; }
  body.dashboard-page .dashcard:nth-child(3) { grid-column: 5 / span 2; }
  body.dashboard-page .statusbar { grid-column: 1 / -1; grid-row: 6; margin-top: 14px; }

  body.dashboard-page .metric { display: flex; align-items: stretch; gap: 7px; }
  body.dashboard-page .metric-icon { width: 27px; height: 27px; flex: 0 0 27px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: #eef2f3; color: #2a3036; font-size: 10px; font-style: normal; font-weight: 750; }
  body.dashboard-page .metric-main { display: grid; grid-template-rows: auto auto auto auto; align-content: center; min-width: 0; }
  body.dashboard-page .metric small { margin: 0 0 6px; color: var(--dashboard-muted); font-size: 10px; line-height: 1.1; letter-spacing: .055em; white-space: nowrap; }
  body.dashboard-page .metric b { font-size: 21px; line-height: 1.08; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
  body.dashboard-page .metric-change { display: block; margin-top: 7px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
  body.dashboard-page .metric-secondary { margin-top: 7px; color: #8b929b; font-size: 9px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
  body.dashboard-page .metric-spark { align-self: end; flex: 0 0 46px; height: 24px; margin: 0 -1px 10px auto; position: relative; overflow: hidden; opacity: .9; }
  body.dashboard-page .metric-spark::before { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: #d9dde0; }
  body.dashboard-page .metric-spark::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: 5px; height: 12px; border-top: 1.5px solid #aeb5bb; transform: skewY(-12deg) rotate(-4deg); transform-origin: left center; }
  body.dashboard-page .metric-spark.spark-neutral::after { display: none; }
  body.dashboard-page .metric-spark.spark-positive::after { border-color: #43ae78; }
  body.dashboard-page .metric-spark.spark-negative::after { border-color: #e07b7b; transform: skewY(12deg) rotate(4deg); }
  body.dashboard-page .metric em { display: none; }

  body.dashboard-page .feature-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 42px minmax(0, 1fr) 48px; min-height: 0; }
  body.dashboard-page .feature-card__header { grid-row: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; min-width: 0; height: 42px; }
  body.dashboard-page .feature-card__title { min-width: 0; margin: 0; color: var(--dashboard-text); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: normal; }
  body.dashboard-page .feature-card__source { display: block; width: fit-content; margin-top: 2px; color: #929aa4; font-size: 8px; font-weight: 500; line-height: 1.1; text-decoration: none; white-space: nowrap; }
  body.dashboard-page .feature-card__source:hover { color: #252a31; text-decoration: underline; }
  body.dashboard-page .feature-card__arrow { flex: 0 0 auto; color: #a3aab3; font-size: 19px; line-height: 1; }
  body.dashboard-page .feature-card__content { grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  body.dashboard-page .feature-card__footer { grid-row: 3; min-height: 48px; display: flex; align-items: flex-end; }
  body.dashboard-page .feature-card__button { width: 100%; height: 38px; min-height: 38px; margin: 0; font-size: 11px; }
  body.dashboard-page .utility-tabs { display: flex; align-items: center; gap: 2px; height: 24px; margin: 0 0 5px; padding: 2px; border-radius: 7px; background: var(--dashboard-soft); overflow: hidden; }
  body.dashboard-page .utility-tabs span { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; color: #8b929b; font-size: 9px; white-space: nowrap; }
  body.dashboard-page .utility-tabs button { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border: 0; border-radius: 6px; background: transparent; color: #8b929b; font: inherit; font-size: 9px; white-space: nowrap; cursor: pointer; }
  body.dashboard-page .utility-tabs span.on { background: #e9ecef; color: var(--dashboard-text); font-weight: 700; }
  body.dashboard-page .utility-tabs button.on { background: #e9ecef; color: var(--dashboard-text); font-weight: 700; }
  body.dashboard-page .utility-tabs button:focus-visible { outline: 2px solid #8e969f; outline-offset: 1px; }
  body.dashboard-page .utility-sort-row { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; }
  body.dashboard-page .utility-sort-row .utility-tabs { flex:none; margin-bottom:5px; }
  body.dashboard-page .utility-sort-direction { display:flex; align-items:center; gap:1px; height:24px; flex:none; margin:0 0 5px; padding:2px; border-radius:7px; background:var(--dashboard-soft); }
  body.dashboard-page .utility-sort-direction button { height:20px; padding:0 6px; border:0; border-radius:6px; background:transparent; color:#8b929b; font:inherit; font-size:8px; white-space:nowrap; cursor:pointer; }
  body.dashboard-page .utility-sort-direction button.on { background:#e9ecef; color:var(--dashboard-text); font-weight:700; }
  body.dashboard-page .utility-sort-direction button:focus-visible { outline:2px solid #8e969f; outline-offset:1px; }
  body.dashboard-page .previewrows { display: grid; grid-auto-rows: 39px; min-height: 0; overflow: hidden; }
  body.dashboard-page .previewrow { min-width: 0; height: 39px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid #f0f1f2; font-size: 11px; line-height: 1.15; }
  body.dashboard-page .previewrow:last-child { border-bottom: 0; }
  body.dashboard-page .previewrow b, body.dashboard-page .previewrow span, body.dashboard-page .previewrow time, body.dashboard-page .previewrow strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dashboard-page .previewrow b { color: #242a33; font-size: 11px; font-weight: 700; }
  body.dashboard-page .previewrow span { color: #67707a; font-size: 9px; }
  body.dashboard-page .previewrow span small { display: block; margin-top: 2px; color: #8c949d; font-size: 8px; }
  body.dashboard-page .previewrow time { color: #7f8792; font-size: 9px; }
  body.dashboard-page .previewrow strong { color: #159447; font-size: 11px; font-weight: 700; }
  body.dashboard-page .previewrow-promo { grid-template-columns: 22px minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-promo > span { display: block; }
  body.dashboard-page .previewrow-listing { grid-template-columns: 22px minmax(45px, .8fr) minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-listing b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(35px, .82fr) minmax(0, 1fr) auto; }
  body.dashboard-page .coin-mark, body.dashboard-page .project-mark { width: 22px; height: 22px; display: grid; place-items: center; align-self: center; border-radius: 50%; background: #eef1f3; color: #2d3339; font-size: 9px; font-style: normal; font-weight: 750; }
  body.dashboard-page .project-mark { border-radius: 6px; }
  body.dashboard-page .protocol-mark { border-radius: 6px; }
  body.dashboard-page .market-preview { min-height: 0; flex: 1; }
  body.dashboard-page .market-preview.market-list { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  body.dashboard-page .market-preview.market-list > .market-row { display: grid; }
  body.dashboard-page .market-row { grid-template-columns: 22px minmax(0, 1fr) minmax(58px, auto) minmax(48px, auto); min-width: 0; min-height: 39px; height: 39px; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f0f1f2; font-size: 11px; }
  body.dashboard-page .market-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  body.dashboard-page .market-row span, body.dashboard-page .market-row strong { white-space: nowrap; text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
  body.dashboard-page .market-row strong { font-weight: 700; }
  body.dashboard-page .utility-empty { align-items: flex-start; justify-content: flex-start; padding: 12px 0; text-align: left; font-size: 10px; }
  body.dashboard-page .provider-state { min-height: 60px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 12px 0; color: #67707a; font-size: 10px; }

  body.dashboard-page .dashcard { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 42px minmax(0, 1fr) 48px; }
  body.dashboard-page .dashcard > header { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; height: 42px; }
  body.dashboard-page .dashcard h2 { min-width: 0; margin: 0; color: var(--dashboard-text); font-size: 16px; font-weight: 700; white-space: nowrap; }
  body.dashboard-page .segments { flex: 0 0 auto; display: flex; height: 30px; padding: 2px; border-radius: 7px; background: var(--dashboard-soft); }
  body.dashboard-page .segments button { width: 45px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: #69727e; font-size: 10px; }
  body.dashboard-page .segments button.on { background: #111318; color: #fff; }
  body.dashboard-page .dashrows { grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; }
  body.dashboard-page .dashrow { display: grid; align-items: center; min-width: 0; height: 38px; min-height: 38px; gap: 7px; border-bottom: 1px solid #f0f1f2; font-size: 10px; font-variant-numeric: tabular-nums; }
  body.dashboard-page .dashrow-head { height: 28px; min-height: 28px; border-bottom: 0; color: #89919b; font-size: 8px; font-weight: 700; letter-spacing: .045em; }
  body.dashboard-page .dashrow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dashboard-page .dashrow span:first-child { font-weight: 700; }
  body.dashboard-page .dashrow span:nth-child(n+3) { text-align: right; }
  body.dashboard-page .dashcard-spreads .dashrow { grid-template-columns: minmax(74px, 1.05fr) minmax(120px, 1.55fr) minmax(50px, .75fr) minmax(48px, .7fr) minmax(54px, .75fr); }
  body.dashboard-page .dashcard-funding .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(70px, .9fr) minmax(64px, .9fr) minmax(78px, 1fr) minmax(50px, .7fr); }
  body.dashboard-page .dashcard-movements .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(58px, .85fr) minmax(62px, .9fr) minmax(70px, 1fr) minmax(50px, .7fr); }
  body.dashboard-page .dashcard > .viewall { grid-row: 3; align-self: end; width: 100%; height: 38px; min-height: 38px; margin: 0; font-size: 11px; }
  body.dashboard-page .skeleton-lines { height: 190px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #f0f1f2 38px, #f0f1f2 39px); }
}

@media (min-width: 981px) and (max-width: 1199px) {
  body.dashboard-page .intel-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: var(--dashboard-gap); }
  body.dashboard-page .metric, body.dashboard-page .utility-card { grid-column: span 1 !important; grid-row: auto !important; }
  body.dashboard-page .dashcard { grid-column: span 3 !important; grid-row: auto !important; }
  body.dashboard-page .statusbar { grid-row: auto; }
}

@media (max-width: 980px) {
  body.dashboard-page #main { padding: 16px 16px 24px; background: var(--dashboard-bg); }
  body.dashboard-page #pageHead, body.dashboard-page #fbar { display: none; }
  body.dashboard-page #view, body.dashboard-page .intel-dashboard { width: 100%; max-width: none; min-width: 0; }
  body.dashboard-page .intel-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dashboard-gap); min-width: 0; }
  body.dashboard-page .metric-grid, body.dashboard-page .utility-grid, body.dashboard-page .dashboard-main-grid { display: contents; }
  body.dashboard-page .metric, body.dashboard-page .utility-card { grid-column: span 1 !important; grid-row: auto !important; min-width: 0; box-sizing: border-box; border: 1px solid var(--dashboard-border); border-radius: var(--dashboard-radius); background: #fff; box-shadow: none; }
  body.dashboard-page .metric { display: flex; align-items: stretch; gap: 7px; height: 124px; min-height: 124px; padding: 16px 15px; overflow: visible; }
  body.dashboard-page .metric-icon { width: 27px; height: 27px; flex: 0 0 27px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: #eef2f3; color: #2a3036; font-size: 10px; font-style: normal; font-weight: 750; }
  body.dashboard-page .metric-main { display: grid; grid-template-rows: auto auto auto auto; align-content: center; min-width: 0; }
  body.dashboard-page .metric small { margin: 0 0 6px; color: var(--dashboard-muted); font-size: 10px; line-height: 1.1; letter-spacing: .055em; white-space: nowrap; }
  body.dashboard-page .metric b { font-size: 21px; line-height: 1.08; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
  body.dashboard-page .metric-change { display: block; margin-top: 7px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
  body.dashboard-page .metric-secondary { margin-top: 7px; color: #8b929b; font-size: 9px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
  body.dashboard-page .metric-spark { align-self: end; flex: 0 0 46px; height: 24px; margin: 0 -1px 10px auto; position: relative; overflow: hidden; opacity: .9; }
  body.dashboard-page .metric-spark::after { display: none; }
  body.dashboard-page .metric em { display: none; }
  body.dashboard-page .utility-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 42px minmax(0, 1fr) 48px; height: 332px; min-height: 332px; padding: 16px; overflow: visible; }
  body.dashboard-page .feature-card__header { grid-row: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; min-width: 0; height: 42px; }
  body.dashboard-page .feature-card__title { min-width: 0; margin: 0; color: var(--dashboard-text); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
  body.dashboard-page .feature-card__arrow { flex: 0 0 auto; color: #a3aab3; font-size: 19px; line-height: 1; }
  body.dashboard-page .feature-card__content { grid-row: 2; min-width: 0; min-height: 0; overflow: visible; display: flex; flex-direction: column; }
  body.dashboard-page .feature-card__footer { grid-row: 3; min-height: 48px; display: flex; align-items: flex-end; }
  body.dashboard-page .feature-card__button { width: 100%; height: 38px; min-height: 38px; margin: 0; font-size: 11px; }
  body.dashboard-page .utility-tabs { display: flex; align-items: center; gap: 2px; height: 24px; width: max-content; max-width: 100%; margin: 0 0 5px; padding: 2px; border-radius: 7px; background: var(--dashboard-soft); overflow: visible; }
  body.dashboard-page .utility-tabs span, body.dashboard-page .utility-tabs button { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border: 0; border-radius: 6px; background: transparent; color: #8b929b; font-size: 9px; white-space: nowrap; }
  body.dashboard-page .utility-tabs span.on, body.dashboard-page .utility-tabs button.on { background: #e9ecef; color: var(--dashboard-text); font-weight: 700; }
  body.dashboard-page .utility-sort-row { display:flex; align-items:center; justify-content:space-between; gap:5px; min-width:0; }
  body.dashboard-page .utility-sort-row .utility-tabs { flex:none; margin-bottom:5px; }
  body.dashboard-page .utility-sort-direction { display:flex; align-items:center; gap:1px; height:24px; flex:none; margin:0 0 5px; padding:2px; border-radius:7px; background:var(--dashboard-soft); }
  body.dashboard-page .utility-sort-direction button { height:20px; padding:0 5px; border:0; border-radius:6px; background:transparent; color:#8b929b; font-size:8px; white-space:nowrap; }
  body.dashboard-page .utility-sort-direction button.on { background:#e9ecef; color:var(--dashboard-text); font-weight:700; }
  body.dashboard-page .previewrows { display: grid; grid-auto-rows: 39px; min-height: 0; overflow: visible; padding: 4px 0 0; }
  body.dashboard-page .previewrow { min-width: 0; height: 39px; min-height: 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid #f0f1f2; font-size: 11px; line-height: 1.15; }
  body.dashboard-page .previewrow b, body.dashboard-page .previewrow span, body.dashboard-page .previewrow time, body.dashboard-page .previewrow strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dashboard-page .previewrow b { color: #242a33; font-size: 11px; font-weight: 700; }
  body.dashboard-page .previewrow span { color: #67707a; font-size: 9px; }
  body.dashboard-page .previewrow span small { display: block; margin-top: 2px; color: #8c949d; font-size: 8px; }
  body.dashboard-page .previewrow time { color: #7f8792; font-size: 9px; }
  body.dashboard-page .previewrow-promo { grid-template-columns: 22px minmax(0, 1fr) auto; height: 40px; }
  body.dashboard-page .previewrows:has(.previewrow-promo) { grid-auto-rows: 40px; }
  body.dashboard-page .previewrow-promo > span { display: block; }
  body.dashboard-page .previewrow-listing { grid-template-columns: 22px minmax(45px, .8fr) minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(35px, .82fr) minmax(0, 1fr) auto; }
  body.dashboard-page .coin-mark, body.dashboard-page .project-mark { width: 22px; height: 22px; display: grid; place-items: center; align-self: center; border-radius: 50%; background: #eef1f3; color: #2d3339; font-size: 9px; font-style: normal; font-weight: 750; }
  body.dashboard-page .project-mark { border-radius: 6px; }
  body.dashboard-page .market-preview { min-height: 0; flex: 1; }
  body.dashboard-page .market-preview.market-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 39px; align-content: start; gap: 0; overflow: visible; }
  body.dashboard-page .market-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(58px, auto) minmax(48px, auto); min-width: 0; min-height: 39px; height: 39px; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f0f1f2; font-size: 11px; }
  body.dashboard-page .market-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  body.dashboard-page .market-row span, body.dashboard-page .market-row strong { white-space: nowrap; text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
  body.dashboard-page .market-row strong { font-weight: 700; }
  body.dashboard-page .utility-empty { align-items: flex-start; justify-content: flex-start; padding: 12px 0; text-align: left; font-size: 10px; }
  body.dashboard-page .dashcard { grid-column: span 2 !important; grid-row: auto !important; height: 316px; }
  body.dashboard-page .statusbar { grid-column: 1 / -1; }
}

/* Homepage reference pass: compact, shared internals for all six cards. */
body.dashboard-page .metric-spark { position: absolute; right: 12px; bottom: 18px; width: 78px; height: 36px; display: block; opacity: .9; }
body.dashboard-page .metric-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.dashboard-page .metric-spark__line { fill: none; stroke: var(--dashboard-muted, #a0a5ad); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
body.dashboard-page .metric-spark__area { fill: var(--dashboard-muted, #a0a5ad); opacity: .08; }
body.dashboard-page .metric-spark-empty { border-bottom: 1px solid var(--dashboard-muted, #a0a5ad); opacity: .55; }
body.dashboard-page .market-row { display: grid; grid-template-columns: 20px 22px minmax(36px,1fr) max-content max-content; align-items: center; column-gap: 7px; }
body.dashboard-page .market-rank { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--dashboard-soft, #0d1013); color: var(--dashboard-muted, #a0a5ad); font-size: 10px; font-variant-numeric: tabular-nums; }
body.dashboard-page .market-row > .brand-icon { width: 22px; height: 22px; flex: 0 0 22px; }
body.dashboard-page .market-row > b, body.dashboard-page .market-row > span:not(.market-rank):not(.brand-icon), body.dashboard-page .market-row > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .market-row > span:not(.market-rank):not(.brand-icon), body.dashboard-page .market-row > strong { text-align: right; font-variant-numeric: tabular-nums; }
body.dashboard-page .utility-sort-row { min-height: 32px; align-items: center; flex-wrap: nowrap; }
body.dashboard-page .utility-tabs { height: 32px; display: flex; align-items: center; gap: 0; border-radius: 8px; overflow: hidden; background: var(--dashboard-soft, #0d1013); }
body.dashboard-page .utility-tabs button { height: 28px; min-width: 0; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--dashboard-muted, #a0a5ad); font-size: 10px; line-height: 1; white-space: nowrap; }
body.dashboard-page .utility-tabs button.on { background: #555c65 !important; color: #fff !important; }
body.dashboard-page .previewrows { display: grid; grid-auto-rows: 39px; }
body.dashboard-page .previewrow { min-height: 39px; height: 39px; display: grid; align-items: center; column-gap: 7px; border-bottom: 1px solid var(--dashboard-border-subtle, #1c2024); }
body.dashboard-page .previewrow > b, body.dashboard-page .previewrow > span, body.dashboard-page .previewrow > time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .previewrow-promo { grid-template-columns: 24px minmax(0,1fr) auto; }
body.dashboard-page .previewrow-listing { grid-template-columns: 24px minmax(0,1fr) minmax(36px,.7fr) auto; }
body.dashboard-page .previewrow-yield { grid-template-columns: 24px minmax(30px,.8fr) minmax(36px,1fr) auto; }
body.dashboard-page .previewrow-yield > strong { text-align: right; font-variant-numeric: tabular-nums; }
body.dashboard-page .brand-icon { width: 24px; height: 24px; flex: 0 0 24px; }
body.dashboard-page .brand-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
body.dashboard-page .brand-icon i { font-size: 10px; }
body.dashboard-page .dash-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
body.dashboard-page .dash-empty__icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--dashboard-border, #25292e); border-radius: 50%; color: var(--dashboard-muted, #a0a5ad); }
body.dashboard-page .dash-empty__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.dashboard-page .feature-card__header { min-height: 28px; }
body.dashboard-page .feature-card__title { font-size: 14px; font-weight: 650; }

html[data-theme="light"] body.dashboard-page {
  --dashboard-bg: #f5f6f8; --dashboard-surface: #fff; --dashboard-soft: #f1f3f5;
  --dashboard-border: #e0e4e8; --dashboard-border-subtle: #e9ecf0;
  --dashboard-text: #15181c; --dashboard-muted: #59616b; --dashboard-faint: #78818c;
  --dashboard-positive: #008f58; --dashboard-negative: #d92d3a;
}
html[data-theme="light"] body.dashboard-page #main, html[data-theme="light"] body.dashboard-page .intel-dashboard { background: var(--dashboard-bg) !important; }
html[data-theme="light"] body.dashboard-page .metric, html[data-theme="light"] body.dashboard-page .utility-card, html[data-theme="light"] body.dashboard-page .dashcard, html[data-theme="light"] body.dashboard-page .statusbar { background: var(--dashboard-surface) !important; border-color: var(--dashboard-border) !important; box-shadow: none !important; }
html[data-theme="light"] body.dashboard-page .metric-icon, html[data-theme="light"] body.dashboard-page .brand-icon, html[data-theme="light"] body.dashboard-page .market-rank { background: var(--dashboard-soft) !important; color: var(--dashboard-text) !important; }
html[data-theme="light"] body.dashboard-page .metric b, html[data-theme="light"] body.dashboard-page .feature-card__title, html[data-theme="light"] body.dashboard-page .utility-card h3, html[data-theme="light"] body.dashboard-page .dashcard h2, html[data-theme="light"] body.dashboard-page .previewrow b, html[data-theme="light"] body.dashboard-page .market-row b { color: var(--dashboard-text) !important; }
html[data-theme="light"] body.dashboard-page .metric small, html[data-theme="light"] body.dashboard-page .metric-secondary, html[data-theme="light"] body.dashboard-page .previewrow span, html[data-theme="light"] body.dashboard-page .previewrow time, html[data-theme="light"] body.dashboard-page .dashrow-head { color: var(--dashboard-muted) !important; }
html[data-theme="light"] body.dashboard-page .utility-tabs, html[data-theme="light"] body.dashboard-page .utility-sort-direction { background: var(--dashboard-soft) !important; border-color: var(--dashboard-border) !important; }
html[data-theme="light"] body.dashboard-page .utility-tabs button.on, html[data-theme="light"] body.dashboard-page .utility-sort-direction button.on { background: #68717b !important; color: #fff !important; }
html[data-theme="light"] body.dashboard-page .viewall, html[data-theme="light"] body.dashboard-page .feature-card__button { background: #f4f5f7 !important; border-color: var(--dashboard-border) !important; color: var(--dashboard-text) !important; }
html[data-theme="light"] body.dashboard-page .viewall:hover, html[data-theme="light"] body.dashboard-page .feature-card__button:hover { background: #e9ecf0 !important; }

@media (max-width: 599px) {
  body.dashboard-page .intel-dashboard { grid-template-columns: 1fr; }
  body.dashboard-page .metric, body.dashboard-page .utility-card, body.dashboard-page .dashcard { grid-column: span 1 !important; }
  body.dashboard-page .dashcard { height: 316px; }
  body.dashboard-page .metric b { font-size: 19px; }
}

@media (max-width: 700px) {
  body.dashboard-page #hdr { display: grid; grid-template-columns: 124px minmax(90px, 1fr) auto; gap: 8px; padding: 0 6px; }
  body.dashboard-page .livehead { min-width: 0; gap: 4px; overflow: hidden; }
  body.dashboard-page .header-logo { width: 70px; flex-basis: 70px; }
  body.dashboard-page .header-brand__cube { width: 22px; height: 22px; }
  body.dashboard-page .header-brand__wordmark { width: 70px; height: 24px; }
  body.dashboard-page .livepill { width: 24px; min-width: 24px; padding: 0; justify-content: center; font-size: 0; }
  body.dashboard-page #lastUpdateHead { display: none; }
  body.dashboard-page .searchbox { width: 100%; min-width: 0; padding: 0 6px; }
  body.dashboard-page .searchbox input { min-width: 0; }
  body.dashboard-page .hright { min-width: 0; gap: 4px; }
  body.dashboard-page #mobileAppBtn { display: none; }
}

@media (max-width: 680px) {
  body.dashboard-page .intel-dashboard { grid-template-columns: minmax(0, 1fr); }
  body.dashboard-page .metric, body.dashboard-page .utility-card, body.dashboard-page .dashcard { grid-column: span 1 !important; }
}

body.dashboard-page .metric:hover, body.dashboard-page .utility-card:hover, body.dashboard-page .dashcard:hover { border-color: #dce0e4; }
body.dashboard-page .viewall, body.dashboard-page .feature-card__button { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
body.dashboard-page .viewall:hover, body.dashboard-page .feature-card__button:hover { background: #fafafa; border-color: #d7dade; }
body.dashboard-page .header-logo { display: block; width: 94px; height: auto; flex: 0 0 94px; object-fit: contain; }
body.dashboard-page .header-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; height: 30px; }
body.dashboard-page .header-brand img { display: block; object-fit: contain; }
body.dashboard-page .header-brand__cube { width: 25px; height: 25px; }
body.dashboard-page .header-brand__wordmark { width: 78px; height: 26px; }

body.dashboard-page .brand-icon { position: relative; width: 22px; height: 22px; flex: 0 0 22px; display: inline-grid; place-items: center; align-self: center; border-radius: 50%; background: #eef1f3; color: #2d3339; font-size: 9px; font-style: normal; font-weight: 750; line-height: 1; }
body.dashboard-page .brand-icon--exchange, body.dashboard-page .brand-icon--protocol { border-radius: 6px; }
body.dashboard-page .brand-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
body.dashboard-page .brand-icon.has-image > i { display: none; }
body.dashboard-page .previewrow-yield > span .brand-icon { width: 14px; height: 14px; flex-basis: 14px; margin-right: 3px; vertical-align: -3px; font-size: 7px; }

@media (max-width: 680px) {
  body.dashboard-page { --rail-header-height: 82px; }
  body.dashboard-page #hdr {
    height: 82px;
    padding: 5px 8px;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 36px 32px;
    column-gap: 6px;
    row-gap: 3px;
  }
  body.dashboard-page .livehead { grid-column: 1; grid-row: 1; min-width: 0; gap: 3px; overflow: visible; }
  body.dashboard-page .header-brand { gap: 3px; height: 30px; }
  body.dashboard-page .header-brand__cube { width: 26px; height: 26px; }
  body.dashboard-page .header-brand__wordmark { width: 82px; height: 27px; }
  body.dashboard-page .livepill { width: 20px; min-width: 20px; height: 24px; flex: 0 0 20px; }
  body.dashboard-page .searchbox { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 32px; }
  body.dashboard-page .hright { grid-column: 2; grid-row: 1; display: flex; gap: 2px; }
  body.dashboard-page #mobileAppBtn,
  body.dashboard-page #languageTrigger { display: none; }
  body.dashboard-page .headicon { width: 32px; height: 32px; }
  body.dashboard-page .profilebtn { width: 30px; height: 30px; }
  body.dashboard-page #spreadDash,
  body.dashboard-page #fundDash,
  body.dashboard-page #moveDash {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  body.dashboard-page #spreadDash .dashrow,
  body.dashboard-page #fundDash .dashrow,
  body.dashboard-page #moveDash .dashrow { width: 430px; }
  body.dashboard-page #statusBar {
    width: 100%;
    height: auto;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px;
  }
  body.dashboard-page #statusBar > div {
    min-width: 0;
    min-height: 64px;
    padding: 8px 10px !important;
    border-right: 0;
    border-bottom: 1px solid var(--dashboard-border);
    overflow-wrap: anywhere;
  }
  body.dashboard-page #statusBar > div:last-child { border-bottom: 0; }
}

@media (min-width: 981px) {
  body.dashboard-page .feature-card__title { font-size: 13px; line-height: 1.15; white-space: nowrap; }
  body.dashboard-page .feature-card__content.utility-empty { padding: 0; }
  body.dashboard-page .feature-card__content { overflow: visible; }
  body.dashboard-page .previewrows { overflow: visible; grid-auto-rows: 38px; }
  body.dashboard-page .previewrow { height: 38px; }
  body.dashboard-page .previewrow-promo { grid-template-columns: 22px minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-promo > span { min-width: 0; }
  body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(35px, .82fr) minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-yield > span { white-space: nowrap; }
  body.dashboard-page .previewrow-listing { grid-template-columns: 22px minmax(40px, .8fr) minmax(0, 1fr) auto; }
  body.dashboard-page .market-preview.market-list { gap: 0; row-gap: 0; overflow: visible; }
  body.dashboard-page .market-row { height: 37px; min-height: 37px; }
  body.dashboard-page .dashcard > header { gap: 6px; }
  body.dashboard-page .timeframe-control { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 34px; }
  body.dashboard-page .timeframe-control .segments { height: 34px; padding: 2px; gap: 1px; align-items: center; }
  body.dashboard-page .timeframe-control .segments button { width: 42px; height: 30px; flex: 0 0 42px; padding: 0; border-radius: 6px; font-size: 10px; line-height: 1; }
  body.dashboard-page .timeframe-arrow { width: 22px; height: 34px; flex: 0 0 22px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #929aa4; font-size: 19px; line-height: 1; cursor: pointer; }
  body.dashboard-page .timeframe-arrow:hover { color: #171a20; }
  body.dashboard-page .dashcard-spreads .dashrow { grid-template-columns: minmax(74px, 1.02fr) minmax(120px, 1.55fr) minmax(54px, .78fr) minmax(48px, .7fr) minmax(58px, .78fr); }
  body.dashboard-page .dashcard-funding .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(70px, .9fr) minmax(64px, .9fr) minmax(78px, 1fr) minmax(68px, .9fr); }
  body.dashboard-page .dashcard-movements .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(58px, .85fr) minmax(62px, .9fr) minmax(70px, 1fr) minmax(68px, .9fr); }
  body.dashboard-page .dashrow-head { font-size: 8.5px; letter-spacing: .025em; }
  body.dashboard-page .dash-empty { min-height: 150px; display: grid; place-items: center; color: #7e8792; font-size: 11px; }
}

@media (max-width: 980px) {
  body.dashboard-page .utility-card { min-height: 332px; }
  body.dashboard-page .feature-card { grid-template-rows: 36px minmax(190px, 1fr) 43px; }
  body.dashboard-page .feature-card__content.utility-empty { padding: 0; }
  body.dashboard-page .feature-card__content { overflow: visible; }
  body.dashboard-page .market-preview.market-list { gap: 0; row-gap: 0; overflow: visible; }
  body.dashboard-page .previewrows { overflow: visible; }
  body.dashboard-page .dashcard > header { gap: 6px; }
  body.dashboard-page .timeframe-control { display: flex; align-items: center; gap: 5px; }
  body.dashboard-page .timeframe-control .segments { height: 30px; gap: 1px; }
  body.dashboard-page .timeframe-control .segments button { width: 38px; flex: 0 0 38px; }
  body.dashboard-page .timeframe-arrow { width: 18px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #929aa4; font-size: 18px; }
}

body.dashboard-page .feature-empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  color: #8a929c;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}
body.dashboard-page .feature-empty-state__mark { color: #aeb5bc; font-size: 20px; line-height: 1; }

@media (min-width: 981px) {
  body.dashboard-page .previewrows { padding: 4px 0 0; }
  body.dashboard-page .previewrow { height: 38px; min-height: 0; box-sizing: border-box; }
  body.dashboard-page .previewrow-promo { height: 40px; }
  body.dashboard-page .previewrows:has(.previewrow-promo) { grid-auto-rows: 40px; }
  body.dashboard-page .market-preview.market-list { grid-auto-rows: 37px; align-content: start; }
  body.dashboard-page .metric-spark::after { display: none; }
}

@media (min-width: 981px) and (max-width: 1439px) {
  body.dashboard-page .utility-card { height: 332px; padding: 12px; border-radius: 11px; }
  body.dashboard-page .feature-card { grid-template-rows: 36px minmax(0, 1fr) 43px; }
  body.dashboard-page .feature-card__header { height: 36px; }
  body.dashboard-page .feature-card__footer { min-height: 43px; }
  body.dashboard-page .feature-card__content.utility-empty { padding: 0; }
  body.dashboard-page .previewrows { grid-auto-rows: 38px; padding: 4px 0 0; }
  body.dashboard-page .previewrow { height: 38px; min-height: 0; box-sizing: border-box; }
  body.dashboard-page .previewrow-promo { height: 40px; }
  body.dashboard-page .previewrows:has(.previewrow-promo) { grid-auto-rows: 40px; }
  body.dashboard-page .market-preview.market-list { grid-auto-rows: 37px; align-content: start; gap: 0; overflow: visible; }
  body.dashboard-page .market-row { height: 37px; min-height: 37px; }
  body.dashboard-page .dashcard { height: 312px; padding: 13px; border-radius: 11px; grid-template-rows: 38px minmax(0, 1fr) 43px; }
  body.dashboard-page .dashcard > header { height: 38px; }
  body.dashboard-page .dashrow { height: 34px; min-height: 34px; }
  body.dashboard-page .dashrow-head { height: 27px; min-height: 27px; }
}

@media (max-width: 980px) {
  body.dashboard-page .previewrows { padding: 4px 0 0; }
  body.dashboard-page .previewrow { min-height: 0; box-sizing: border-box; }
  body.dashboard-page .metric-spark::after { display: none; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  body.dashboard-page #hdr { grid-template-columns: minmax(400px, 420px) minmax(180px, 1fr) auto !important; gap: 12px; padding: 0 14px; }
  body.dashboard-page .livehead { gap: 7px; }
  body.dashboard-page .header-brand { width: 130px; height: 42px; }
  body.dashboard-page .header-brand__wordmark { width: 130px; height: 42px; }
}

@media (min-width: 981px) and (max-width: 1199px) {
  body.dashboard-page #hdr { grid-template-columns: minmax(220px, 260px) minmax(120px, 1fr) auto !important; gap: 10px; padding: 0 12px; }
  body.dashboard-page .livehead { gap: 6px; }
  body.dashboard-page .header-brand { width: 112px; height: 36px; }
  body.dashboard-page .header-brand__wordmark { width: 112px; height: 36px; }
  body.dashboard-page #lastUpdateHead { display: none; }
}

@media (max-width: 980px) {
  body.dashboard-page #hdr { grid-template-columns: minmax(150px, auto) minmax(110px, 1fr) auto; gap: 8px; padding: 0 10px; }
  body.dashboard-page .livehead { gap: 6px; }
  body.dashboard-page .header-brand { width: 106px; height: 34px; }
  body.dashboard-page .header-brand__wordmark { width: 106px; height: 34px; }
  body.dashboard-page #lastUpdateHead { display: none; }
  body.dashboard-page .searchbox { width: 100%; min-width: 0; }
}

/* Reference-tuned desktop geometry. These selectors are scoped to Dashboard;
   the existing navigation rail and its overlay remain untouched. */
@media (min-width: 1440px) {
  body.dashboard-page { --rail-header-height: 73px; }
  body.dashboard-page #hdr {
    height: 73px;
    padding: 0 16px;
    gap: 16px;
    grid-template-columns: minmax(360px, 380px) minmax(420px, 1fr) auto !important;
  }
  body.dashboard-page .livehead { gap: 8px; }
  body.dashboard-page .header-logo {
    display: block;
    width: 94px;
    height: auto;
    flex: 0 0 94px;
    object-fit: contain;
  }
  body.dashboard-page #lastUpdateHead { font-size: 11px; }
  body.dashboard-page #main {
    padding: 12px 14px 28px;
    background: #f7f8fa;
  }
  body.dashboard-page {
    --dashboard-gap: 10px;
    --dashboard-padding: 12px;
    --dashboard-card-padding: 12px;
    --dashboard-radius: 11px;
    --dashboard-bg: #f7f8fa;
    --dashboard-border: #e7e9ec;
  }
  body.dashboard-page .intel-dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 105px 11px 332px 9px 312px auto;
    column-gap: var(--dashboard-gap);
  }
  body.dashboard-page .metric { height: 105px; padding: 12px 11px; border-radius: 11px; }
  body.dashboard-page .metric-icon { width: 25px; height: 25px; flex-basis: 25px; }
  body.dashboard-page .metric b { font-size: 21px; }
  body.dashboard-page .metric small { font-size: 10px; margin-bottom: 5px; }
  body.dashboard-page .metric-change { margin-top: 5px; font-size: 10px; }
  body.dashboard-page .metric-secondary { margin-top: 5px; font-size: 9.5px; }
  body.dashboard-page .metric-spark { flex-basis: 43px; height: 22px; margin-bottom: 7px; }
  body.dashboard-page .utility-card { height: 332px; padding: 12px; border-radius: 11px; }
  body.dashboard-page .feature-card { grid-template-rows: 36px minmax(0, 1fr) 43px; }
  body.dashboard-page .feature-card__header { height: 36px; }
  body.dashboard-page .feature-card__title { font-size: 14px; line-height: 1.15; }
  body.dashboard-page .feature-card__footer { min-height: 43px; }
  body.dashboard-page .feature-card__button { height: 38px; min-height: 38px; }
  body.dashboard-page .market-row { height: 37px; min-height: 37px; }
  body.dashboard-page .previewrows { grid-auto-rows: 38px; }
  body.dashboard-page .previewrow { height: 38px; }
  body.dashboard-page .dashcard { height: 312px; padding: 13px; border-radius: 11px; }
  body.dashboard-page .dashcard { grid-template-rows: 38px minmax(0, 1fr) 43px; }
  body.dashboard-page .dashcard > header { height: 38px; }
  body.dashboard-page .dashcard h2 { font-size: 15px; }
  body.dashboard-page .dashrow { height: 34px; min-height: 34px; font-size: 11px; }
  body.dashboard-page .dashrow-head { height: 27px; min-height: 27px; font-size: 9px; }
  body.dashboard-page .dashcard > .viewall { height: 38px; min-height: 38px; }
}

/* Preserve the original intrinsic logo bounds. */
.header-brand { display:inline-flex; flex:0 0 auto; align-items:center; gap:5px; height:30px; }
.header-brand img { display:block; flex:0 0 auto; object-fit:contain; }
.header-brand__cube { width:25px; height:25px; }
.header-brand__wordmark { width:78px; height:26px; }
@media (min-width:1440px){
  body.dashboard-page .header-brand { gap:5px; height:48px; }
  body.dashboard-page .header-brand__cube { width:48px; height:48px; }
  body.dashboard-page .header-brand__wordmark { width:148px; height:48px; }
}

/* Dashboard navigation adds the separate wordmark once; keep that text-only
   brand lockup aligned beside the clickable rail cube on every app screen. */
body:not(.dashboard-page) #hdr .livehead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
body:not(.dashboard-page) #hdr { padding-left: 6px; }
body:not(.dashboard-page) #hdr .header-brand { width: 128px; height: 41px; }
body:not(.dashboard-page) #hdr .header-brand__wordmark { width: 128px; height: 41px; }
body:not(.dashboard-page) #hdr #lastUpdateHead { display: none; }

/* Header brand is injected on every route. Keep source PNGs constrained globally
   so their intrinsic 677px/1378px dimensions can never paint into page content. */
.header-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 30px;
}
.header-brand img { display: block; flex: 0 0 auto; object-fit: contain; }
.header-brand__cube { width: 25px; height: 25px; }
.header-brand__wordmark { width: 78px; height: 26px; }

/* Visual QA corrections: all six feature cards share one measured content zone. */
@media (min-width: 981px) {
  body.dashboard-page .feature-card__header { align-items: center; }
  body.dashboard-page .feature-card__title { white-space: nowrap; font-size: 13px; }
  body.dashboard-page .feature-card__content.utility-empty { padding: 0; }
  body.dashboard-page .feature-card__content { overflow: visible; }
  body.dashboard-page .market-preview.market-list { gap: 0; row-gap: 0; overflow: visible; }
  body.dashboard-page .market-row { height: 37px; min-height: 37px; }
  body.dashboard-page .previewrows { grid-auto-rows: 38px; overflow: visible; }
  body.dashboard-page .previewrow { height: 38px; }
  body.dashboard-page .previewrow-promo { grid-template-columns: 22px minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-listing { grid-template-columns: 22px minmax(40px, .8fr) minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(35px, .82fr) minmax(0, 1fr) auto; }
  body.dashboard-page .previewrow-yield > span { white-space: nowrap; }

  body.dashboard-page .timeframe-control { height: 34px; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
  body.dashboard-page .timeframe-control .segments { height: 34px; padding: 2px; gap: 1px; align-items: center; }
  body.dashboard-page .timeframe-control .segments button { width: 42px; height: 30px; flex: 0 0 42px; padding: 0; border-radius: 6px; font-size: 10px; line-height: 1; }
  body.dashboard-page .timeframe-arrow { width: 22px; height: 34px; flex: 0 0 22px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #929aa4; font-size: 19px; line-height: 1; cursor: pointer; }
  body.dashboard-page .timeframe-arrow:hover { color: #171a20; }
  body.dashboard-page .dashcard-spreads .dashrow { grid-template-columns: minmax(74px, 1.02fr) minmax(120px, 1.55fr) minmax(54px, .78fr) minmax(48px, .7fr) minmax(58px, .78fr); }
  body.dashboard-page .dashcard-funding .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(70px, .9fr) minmax(64px, .9fr) minmax(78px, 1fr) minmax(68px, .9fr); }
  body.dashboard-page .dashcard-movements .dashrow { grid-template-columns: minmax(76px, 1fr) minmax(58px, .85fr) minmax(62px, .9fr) minmax(70px, 1fr) minmax(68px, .9fr); }
  body.dashboard-page .dashrow-head { font-size: 8.5px; letter-spacing: .025em; }
  body.dashboard-page .dash-empty { min-height: 150px; display: grid; place-items: center; color: #7e8792; font-size: 11px; }
}

@media (max-width: 980px) {
  body.dashboard-page .utility-card { min-height: 332px; }
  body.dashboard-page .feature-card { grid-template-rows: 36px minmax(190px, 1fr) 43px; }
  body.dashboard-page .feature-card__content.utility-empty { padding: 0; }
  body.dashboard-page .feature-card__content { overflow: visible; }
  body.dashboard-page .market-preview.market-list { gap: 0; row-gap: 0; overflow: visible; }
  body.dashboard-page .previewrows { overflow: visible; }
  body.dashboard-page .timeframe-control { display: flex; align-items: center; gap: 5px; }
  body.dashboard-page .timeframe-control .segments { height: 30px; gap: 1px; }
  body.dashboard-page .timeframe-control .segments button { width: 38px; flex: 0 0 38px; }
  body.dashboard-page .timeframe-arrow { width: 18px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #929aa4; font-size: 18px; }
}

/* Last desktop override: preserve space for the integrated branding.
   NOTE: this @media (min-width: 1440px) block deliberately spans everything up to the "NetSupply attribution" comment: the tablet/laptop dashboard layout was tuned with these rules scoped to >=1440px, so do not move the closing brace without re-checking 768/1024/1280 dashboards. */
@media (min-width: 1440px) {
  body.dashboard-page #hdr {
    grid-template-columns: minmax(460px, 470px) minmax(420px, 1fr) auto !important;
    column-gap: 12px;
    padding-left: 6px;
  }
  body.dashboard-page .livehead { gap: 7px; }
  body.dashboard-page .header-brand { gap: 5px; height: 48px; }
  body.dashboard-page .header-brand__cube { width: 48px; height: 48px; }
  body.dashboard-page .header-brand__wordmark { width: 148px; height: 48px; }
  body.dashboard-page .dash-empty:has(.dash-empty__hint) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
  body.dashboard-page .dash-empty__hint { color: #9aa1aa; font-size: 9px; line-height: 1.35; }
  body.dashboard-page .livepill { padding-inline: 8px; font-size: 10px; }
  body.dashboard-page #lastUpdateHead { font-size: 10px; }
  body.dashboard-page .dash-market-fallback-note { margin: 4px 0 0; text-align: center; }

  /* Final shared rail/header seam: use the rendered header height, not the
   nominal topbar token (Dashboard has shorter responsive headers). */
:root { --nav-rail-top-inset: 10px; --nav-rail-header-size: var(--topbar); }
@media (max-width: 980px) {
  :root { --nav-rail-top-inset: 6px; }
}
body.dashboard-page { --nav-rail-header-size: var(--topbar); }
@media (min-width: 1440px) {
  body.dashboard-page { --nav-rail-header-size: 73px; }
}
@media (max-width: 680px) {
  body.dashboard-page { --nav-rail-header-size: 82px; }
}
#sidebar .navrail-brand {
  height: var(--nav-rail-header-size, var(--topbar)) !important;
  min-height: var(--nav-rail-header-size, var(--topbar)) !important;
  flex: 0 0 var(--nav-rail-header-size, var(--topbar)) !important;
  margin-block: calc(0px - var(--nav-rail-top-inset, 10px)) 0 !important;
  border-bottom: 1px solid #e7e9ec !important;
}

/* Compact dashboard sort controls so every card keeps its controls inside. */
body.dashboard-page .utility-sort-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;flex-wrap:wrap}
body.dashboard-page .utility-sort-row .utility-tabs{flex:0 1 auto;min-width:0;max-width:100%;margin:0 0 5px;overflow:visible}
body.dashboard-page .utility-sort-row .utility-tabs button{padding-inline:7px}
body.dashboard-page .utility-sort-direction{display:flex;align-items:center;justify-content:center;gap:2px;width:58px;height:28px;flex:0 0 58px;margin:0 0 5px auto;padding:3px;border:1px solid var(--dashboard-border);border-radius:9px;background:#fff}
body.dashboard-page .utility-sort-direction button{display:grid;place-items:center;width:24px;height:20px;flex:0 0 24px;padding:0;border:0;border-radius:6px;background:transparent;color:#737d88;font:inherit;font-size:14px;line-height:1;cursor:pointer}
body.dashboard-page .utility-sort-direction button:hover{background:#f0f2f4;color:var(--dashboard-text)}
body.dashboard-page .utility-sort-direction button.on{background:#171a20;color:#fff;font-weight:700}
body.dashboard-page .utility-sort-direction button:focus-visible{outline:2px solid #8e969f;outline-offset:2px}

/* Approved homepage visual system. This is intentionally scoped to the
   dashboard and is the final paint layer; data/rendering and non-home routes
   remain untouched. */
html:not([data-theme="light"]) body.dashboard-page {
  --dashboard-bg: #050607;
  --dashboard-surface: #090b0d;
  --dashboard-soft: #0d1013;
  --dashboard-border: #25292e;
  --dashboard-border-subtle: #1c2024;
  --dashboard-text: #f5f6f7;
  --dashboard-muted: #a0a5ad;
  --dashboard-faint: #727983;
  --dashboard-positive: #00c978;
  --dashboard-negative: #f04452;
  --dashboard-gap: 12px;
  --dashboard-radius: 12px;
  --dashboard-card-padding: 12px;
}

html:not([data-theme="light"]) body.dashboard-page #main,
html:not([data-theme="light"]) body.dashboard-page .intel-dashboard {
  background: var(--dashboard-bg) !important;
}

@media (min-width: 1440px) {
  html:not([data-theme="light"]) body.dashboard-page #main { padding: 12px 14px 28px; }
  html:not([data-theme="light"]) body.dashboard-page .intel-dashboard {
    grid-template-rows: 112px 12px 320px 12px 300px auto;
    column-gap: var(--dashboard-gap);
  }
  html:not([data-theme="light"]) body.dashboard-page .metric,
  html:not([data-theme="light"]) body.dashboard-page .utility-card,
  html:not([data-theme="light"]) body.dashboard-page .dashcard,
  html:not([data-theme="light"]) body.dashboard-page .statusbar {
    background: var(--dashboard-surface) !important;
    border: 1px solid var(--dashboard-border) !important;
    border-radius: var(--dashboard-radius) !important;
    box-shadow: none !important;
  }
  html:not([data-theme="light"]) body.dashboard-page .metric { height: 112px; padding: 13px 12px; }
  html:not([data-theme="light"]) body.dashboard-page .utility-card {
    height: 320px;
    padding: 14px 12px 12px;
  }
  html:not([data-theme="light"]) body.dashboard-page .dashcard {
    height: 300px;
    padding: 13px 12px 12px;
  }
}

html:not([data-theme="light"]) body.dashboard-page .metric-icon,
html:not([data-theme="light"]) body.dashboard-page .coin-mark,
html:not([data-theme="light"]) body.dashboard-page .project-mark,
html:not([data-theme="light"]) body.dashboard-page .brand-icon {
  background: #15181c !important;
  color: var(--dashboard-text) !important;
}
html:not([data-theme="light"]) body.dashboard-page .metric small,
html:not([data-theme="light"]) body.dashboard-page .metric-secondary,
html:not([data-theme="light"]) body.dashboard-page .feature-card__source,
html:not([data-theme="light"]) body.dashboard-page .utility-tabs span,
html:not([data-theme="light"]) body.dashboard-page .utility-tabs button,
html:not([data-theme="light"]) body.dashboard-page .utility-sort-direction button,
html:not([data-theme="light"]) body.dashboard-page .previewrow span,
html:not([data-theme="light"]) body.dashboard-page .previewrow time,
html:not([data-theme="light"]) body.dashboard-page .dashrow-head {
  color: var(--dashboard-muted) !important;
}
html:not([data-theme="light"]) body.dashboard-page .metric b,
html:not([data-theme="light"]) body.dashboard-page .feature-card__title,
html:not([data-theme="light"]) body.dashboard-page .utility-card h3,
html:not([data-theme="light"]) body.dashboard-page .dashcard h2,
html:not([data-theme="light"]) body.dashboard-page .previewrow b,
html:not([data-theme="light"]) body.dashboard-page .market-row b,
html:not([data-theme="light"]) body.dashboard-page .dashrow span:first-child {
  color: var(--dashboard-text) !important;
}
html:not([data-theme="light"]) body.dashboard-page .utility-tabs,
html:not([data-theme="light"]) body.dashboard-page .utility-sort-direction {
  background: #15181c !important;
}
html:not([data-theme="light"]) body.dashboard-page .utility-tabs span.on,
html:not([data-theme="light"]) body.dashboard-page .utility-tabs button.on,
html:not([data-theme="light"]) body.dashboard-page .utility-sort-direction button.on {
  background: #555c65 !important;
  color: var(--dashboard-text) !important;
}
html:not([data-theme="light"]) body.dashboard-page .previewrow,
html:not([data-theme="light"]) body.dashboard-page .market-row,
html:not([data-theme="light"]) body.dashboard-page .dashrow {
  border-color: var(--dashboard-border-subtle) !important;
}
html:not([data-theme="light"]) body.dashboard-page .viewall,
html:not([data-theme="light"]) body.dashboard-page .feature-card__button {
  height: 40px !important;
  min-height: 40px !important;
  background: #15181c !important;
  border: 1px solid #292e34 !important;
  border-radius: 10px !important;
  color: var(--dashboard-text) !important;
  font-weight: 600;
}
html:not([data-theme="light"]) body.dashboard-page .viewall:hover,
html:not([data-theme="light"]) body.dashboard-page .feature-card__button:hover {
  background: #1c2025 !important;
  border-color: #353b43 !important;
}
html:not([data-theme="light"]) body.dashboard-page .dashcard > header {
  height: 38px;
}
html:not([data-theme="light"]) body.dashboard-page .dashcard h2 {
  font-size: 14px;
  font-weight: 650;
}
html:not([data-theme="light"]) body.dashboard-page .dashboard-route-action {
  width: 24px;
  height: 30px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dashboard-muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
html:not([data-theme="light"]) body.dashboard-page .dashboard-route-action:hover {
  color: var(--dashboard-text);
}
html:not([data-theme="light"]) body.dashboard-page .pos { color: var(--dashboard-positive) !important; }
html:not([data-theme="light"]) body.dashboard-page .neg { color: var(--dashboard-negative) !important; }
html:not([data-theme="light"]) body.dashboard-page .dash-empty,
html:not([data-theme="light"]) body.dashboard-page .utility-empty,
html:not([data-theme="light"]) body.dashboard-page .provider-state {
  color: var(--dashboard-faint) !important;
}

@media (max-width: 1439px) and (min-width: 981px) {
  html:not([data-theme="light"]) body.dashboard-page .metric,
  html:not([data-theme="light"]) body.dashboard-page .utility-card,
  html:not([data-theme="light"]) body.dashboard-page .dashcard,
  html:not([data-theme="light"]) body.dashboard-page .statusbar {
    background: var(--dashboard-surface) !important;
    border-color: var(--dashboard-border) !important;
  }
}

@media (max-width: 980px) {
  html:not([data-theme="light"]) body.dashboard-page .metric,
  html:not([data-theme="light"]) body.dashboard-page .utility-card,
  html:not([data-theme="light"]) body.dashboard-page .dashcard,
  html:not([data-theme="light"]) body.dashboard-page .statusbar {
    background: var(--dashboard-surface) !important;
    border-color: var(--dashboard-border) !important;
  }
}

/* Final cascade for the approved homepage internals. */
body.dashboard-page .metric-spark { position: absolute; left: 14px; right: 14px; bottom: 10px; width: auto; height: 28px; display: block; opacity: 1; }
body.dashboard-page .metric-spark::before, body.dashboard-page .metric-spark::after { display: none !important; }
body.dashboard-page .metric-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.dashboard-page .metric-spark__grid { fill: none; stroke: var(--dashboard-border-subtle, #252a30); stroke-width: .7; vector-effect: non-scaling-stroke; opacity: .8; }
body.dashboard-page .metric-spark__line { fill: none; stroke: var(--dashboard-muted, #aeb5bd); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
body.dashboard-page .metric-spark__area { fill: var(--dashboard-muted, #a0a5ad); opacity: .12; }
body.dashboard-page .metric-spark__dot { fill: var(--dashboard-muted, #d1d5da); stroke: var(--dashboard-surface, #090b0d); stroke-width: 1; vector-effect: non-scaling-stroke; }
body.dashboard-page .metric-spark-empty { display: grid; place-items: center; width: 44px; height: 28px; color: var(--dashboard-muted, #a0a5ad); font-size: 14px; opacity: .7; }
body.dashboard-page .intel-dashboard { grid-template-rows: 154px 14px 324px 14px 316px auto; }
body.dashboard-page .metric { height: 154px; padding: 15px; display: grid; grid-template-columns: 27px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 30px; column-gap: 7px; row-gap: 8px; align-items: start; }
body.dashboard-page .metric-icon { grid-column: 1; grid-row: 1; }
body.dashboard-page .intel-dashboard { grid-template-rows: 124px 14px 324px 14px 316px auto; }
body.dashboard-page .metric { height: 124px; padding: 16px; grid-template-rows: minmax(0, 1fr) 26px; row-gap: 6px; }
body.dashboard-page .metric-main { grid-column: 2; grid-row: 1; position: relative; z-index: 1; max-width: none; margin-top: 1px; align-content: start; }
body.dashboard-page .metric-spark { grid-column: 1 / -1; grid-row: 2; position: relative; left: auto; right: auto; bottom: auto; width: 100%; height: 54px; z-index: 2; }
body.dashboard-page .metric-spark-live { z-index: 2; }
body.dashboard-page .metric-spark__line { stroke-width: 1.8; }
body.dashboard-page .metric-spark__area { opacity: .16; }
body.dashboard-page .metric-spark--positive { --metric-chart: #35d399; }
body.dashboard-page .metric-spark--negative { --metric-chart: #ff5663; }
body.dashboard-page .metric-spark--neutral { --metric-chart: #c7cdd4; }
body.dashboard-page .metric-spark--positive .metric-spark__line, body.dashboard-page .metric-spark--negative .metric-spark__line, body.dashboard-page .metric-spark--neutral .metric-spark__line { stroke: var(--metric-chart); }
body.dashboard-page .metric-spark--positive .metric-spark__area, body.dashboard-page .metric-spark--negative .metric-spark__area, body.dashboard-page .metric-spark--neutral .metric-spark__area { fill: var(--metric-chart); }
body.dashboard-page .metric-spark__endpoint { fill: var(--metric-chart, #c7cdd4); }
body.dashboard-page .metric-fear-gauge { position: relative; display: block; align-self: end; height: 16px; }
body.dashboard-page .metric-fear-gauge__bar { position: absolute; left: 0; right: 0; top: 4px; height: 8px; border-radius: 999px; background: linear-gradient(90deg,#ff4d5a 0%,#ffcf4d 50%,#32d399 100%); }
body.dashboard-page .metric-fear-gauge i { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; border: 2px solid #f5f7f8; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #0008; }
/* Restore the original dashboard card geometry. Charts must not resize cards. */
body.dashboard-page .intel-dashboard { grid-template-rows: 124px 14px 324px 14px 316px auto !important; }
body.dashboard-page .metric { display: flex !important; position: relative !important; height: 124px !important; min-height: 124px !important; padding: 16px 15px !important; overflow: hidden !important; align-items: stretch !important; gap: 7px !important; }
body.dashboard-page .metric-icon { position: static !important; width: 27px; height: 27px; flex: 0 0 27px; margin-top: 1px; }
body.dashboard-page .metric-main { position: static !important; display: grid !important; grid-template-rows: auto auto auto auto; align-content: center !important; min-width: 0; max-width: none; overflow: visible; }
body.dashboard-page .metric-spark { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: 78px !important; height: 36px !important; flex: 0 0 78px !important; margin: 0 -1px 10px auto !important; align-self: end !important; }
body.dashboard-page .metric-fear-gauge { width: 78px !important; height: 16px !important; flex: 0 0 78px !important; align-self: end !important; margin-bottom: 10px !important; }
/* Keep the original card size while separating copy and chart vertically. */
body.dashboard-page .metric { display: block !important; }
body.dashboard-page .metric-icon { position: absolute !important; left: 15px; top: 16px; }
body.dashboard-page .metric-main { position: absolute !important; left: 51px; right: 15px; top: 14px; bottom: auto !important; height: 82px !important; box-sizing: border-box; z-index: 3 !important; display: grid !important; grid-template-rows: auto auto auto auto; align-content: start !important; overflow: visible !important; background: transparent !important; padding-bottom: 0; }
body.dashboard-page .metric-spark { position: absolute !important; left: 15px !important; right: 15px !important; top: auto !important; bottom: 2px !important; width: auto !important; height: 14px !important; }
body.dashboard-page .metric-fear-gauge { left: 15px !important; right: 15px !important; width: auto !important; height: 12px !important; bottom: 2px !important; }
/* Reference geometry: compact cards, split metadata and a dedicated chart band. */
body.dashboard-page .intel-dashboard { grid-template-rows: 112px 14px 324px 14px 316px auto !important; }
body.dashboard-page .metric { height: 112px !important; min-height: 112px !important; padding: 12px 15px !important; }
body.dashboard-page .metric-main { left: 51px; right: 15px; top: 11px; height: 64px !important; }
body.dashboard-page .metric-main .metric-change { position: absolute; right: 0; top: 0; margin-top: 0; }
body.dashboard-page .metric-main .metric-secondary { position: absolute; right: 0; top: 25px; margin-top: 0; }
body.dashboard-page .metric-spark { left: 15px !important; right: 15px !important; bottom: 6px !important; height: 27px !important; }
body.dashboard-page .metric-fear-gauge { left: 15px !important; right: 15px !important; bottom: 6px !important; height: 16px !important; }
/* Hard separation: the copy and chart own different physical card zones. */
body.dashboard-page .metric { display: block !important; position: relative !important; height: 124px !important; padding: 16px !important; }
body.dashboard-page .metric-icon { position: absolute !important; left: 16px; top: 16px; }
body.dashboard-page .metric-main { position: absolute !important; left: 51px; right: 16px; top: 17px; bottom: 40px; display: grid !important; grid-template-rows: auto auto auto auto; align-content: start !important; overflow: hidden; }
body.dashboard-page .metric-spark { position: absolute !important; left: 16px !important; right: 16px !important; top: auto !important; bottom: 8px !important; width: auto !important; height: 26px !important; }
body.dashboard-page .metric-fear-gauge { display: block !important; top: auto !important; bottom: 12px !important; height: 16px !important; }
body.dashboard-page .market-row { display: grid; grid-template-columns: 20px 22px minmax(36px,1fr) max-content max-content; align-items: center; column-gap: 7px; }
body.dashboard-page .market-rank { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--dashboard-soft, #0d1013); color: var(--dashboard-muted, #a0a5ad); font-size: 10px; font-variant-numeric: tabular-nums; }
body.dashboard-page .market-row > strong { text-align: right; font-variant-numeric: tabular-nums; }
body.dashboard-page .utility-sort-row { min-height: 32px; align-items: center; flex-wrap: nowrap; }
body.dashboard-page .utility-tabs { height: 32px; display: flex; align-items: center; gap: 0; border-radius: 8px; overflow: hidden; background: var(--dashboard-soft, #0d1013); }
body.dashboard-page .utility-tabs button { height: 28px; min-width: 0; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--dashboard-muted, #a0a5ad); font-size: 10px; line-height: 1; white-space: nowrap; }
body.dashboard-page .utility-tabs button.on { background: #555c65 !important; color: #fff !important; }
body.dashboard-page .previewrows { display: grid; grid-auto-rows: 39px; }
body.dashboard-page .previewrow { min-height: 39px; height: 39px; display: grid; align-items: center; column-gap: 7px; border-bottom: 1px solid var(--dashboard-border-subtle, #1c2024); }
body.dashboard-page .previewrow > b, body.dashboard-page .previewrow > span, body.dashboard-page .previewrow > time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .previewrow-promo { grid-template-columns: 24px minmax(0,1fr) auto; }
body.dashboard-page .previewrow-listing { grid-template-columns: 24px minmax(0,1fr) minmax(36px,.7fr) auto; }
body.dashboard-page .previewrow-yield { grid-template-columns: 24px minmax(30px,.8fr) minmax(36px,1fr) auto; }
body.dashboard-page .previewrow-yield > strong { text-align: right; font-variant-numeric: tabular-nums; }
body.dashboard-page .brand-icon { width: 24px; height: 24px; flex: 0 0 24px; }
body.dashboard-page .brand-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
body.dashboard-page .brand-icon i { font-size: 10px; }
body.dashboard-page .dash-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
body.dashboard-page .dash-empty__icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--dashboard-border, #25292e); border-radius: 50%; color: var(--dashboard-muted, #a0a5ad); }
body.dashboard-page .dash-empty__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.dashboard-page .feature-card__header { min-height: 28px; }
body.dashboard-page .feature-card__title { font-size: 14px; font-weight: 650; }
html[data-theme="light"] body.dashboard-page { --dashboard-bg:#f5f6f8; --dashboard-surface:#fff; --dashboard-soft:#f1f3f5; --dashboard-border:#e0e4e8; --dashboard-border-subtle:#e9ecf0; --dashboard-text:#15181c; --dashboard-muted:#59616b; --dashboard-faint:#78818c; --dashboard-positive:#008f58; --dashboard-negative:#d92d3a; }
html[data-theme="light"] body.dashboard-page #main, html[data-theme="light"] body.dashboard-page .intel-dashboard { background: var(--dashboard-bg) !important; }
html[data-theme="light"] body.dashboard-page .metric, html[data-theme="light"] body.dashboard-page .utility-card, html[data-theme="light"] body.dashboard-page .dashcard, html[data-theme="light"] body.dashboard-page .statusbar { background: var(--dashboard-surface) !important; border-color: var(--dashboard-border) !important; box-shadow:none !important; }
html[data-theme="light"] body.dashboard-page .metric-icon, html[data-theme="light"] body.dashboard-page .brand-icon, html[data-theme="light"] body.dashboard-page .market-rank { background:var(--dashboard-soft) !important; color:var(--dashboard-text) !important; }
html[data-theme="light"] body.dashboard-page .metric b, html[data-theme="light"] body.dashboard-page .feature-card__title, html[data-theme="light"] body.dashboard-page .utility-card h3, html[data-theme="light"] body.dashboard-page .dashcard h2, html[data-theme="light"] body.dashboard-page .previewrow b, html[data-theme="light"] body.dashboard-page .market-row b { color:var(--dashboard-text) !important; }
html[data-theme="light"] body.dashboard-page .metric small, html[data-theme="light"] body.dashboard-page .metric-secondary, html[data-theme="light"] body.dashboard-page .previewrow span, html[data-theme="light"] body.dashboard-page .previewrow time, html[data-theme="light"] body.dashboard-page .dashrow-head { color:var(--dashboard-muted) !important; }
html[data-theme="light"] body.dashboard-page .utility-tabs, html[data-theme="light"] body.dashboard-page .utility-sort-direction { background:var(--dashboard-soft) !important; border-color:var(--dashboard-border) !important; }
html[data-theme="light"] body.dashboard-page .utility-tabs button.on, html[data-theme="light"] body.dashboard-page .utility-sort-direction button.on { background:#68717b !important; color:#fff !important; }
html[data-theme="light"] body.dashboard-page .viewall, html[data-theme="light"] body.dashboard-page .feature-card__button { background:#f4f5f7 !important; border-color:var(--dashboard-border) !important; color:var(--dashboard-text) !important; }

/* Final metric text separation: reserve a real right-hand metadata column. */
body.dashboard-page .metric-main { right: 15px !important; z-index: 3 !important; }
body.dashboard-page .metric-main > small {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.dashboard-page .metric-main > b {
  display: block !important;
  width: 58% !important;
  max-width: 58% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.dashboard-page .metric-main .metric-change,
body.dashboard-page .metric-main .metric-secondary {
  width: max-content !important;
  max-width: 42% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: right !important;
}
body.dashboard-page .metric-main .metric-change { top: 0 !important; }
body.dashboard-page .metric-main .metric-secondary { top: 25px !important; }
body.dashboard-page .metric-spark,
body.dashboard-page .metric-fear-gauge { z-index: 1 !important; }

/* Use real layout columns instead of overlaying the value and metadata. */
body.dashboard-page .metric-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%) !important;
  column-gap: 8px !important;
  align-items: start !important;
  overflow: visible !important;
}
body.dashboard-page .metric-primary,
body.dashboard-page .metric-meta { min-width: 0 !important; }
body.dashboard-page .metric-primary { display: grid !important; gap: 4px !important; }
body.dashboard-page .metric-primary > small,
body.dashboard-page .metric-primary > b {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.dashboard-page .metric-primary > b { width: auto !important; }
body.dashboard-page .metric-meta {
  position: static !important;
  display: grid !important;
  justify-items: end !important;
  gap: 5px !important;
  max-width: 100% !important;
  text-align: right !important;
}
body.dashboard-page .metric-meta .metric-change,
body.dashboard-page .metric-meta .metric-secondary {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: right !important;
}

/* Metric cards use typography and data color only; remove the decorative
   letter badges so the compact reference layout has more usable width. */
body.dashboard-page .metric-icon { display: none !important; }
body.dashboard-page .metric-main {
  left: 15px !important;
  right: 15px !important;
}

/* Use the available width: the previous legacy 58% cap was shrinking values
   twice (once on the column and once on the value itself). */
body.dashboard-page .metric-main {
  grid-template-columns: minmax(0, 60%) minmax(0, 40%) !important;
  column-gap: 6px !important;
}
body.dashboard-page .metric-primary > b {
  width: 100% !important;
  max-width: 100% !important;
}
body.dashboard-page .metric-primary > small {
  width: 100% !important;
  max-width: 100% !important;
}

/* Final readable-value geometry: never ellipsize the primary metric itself. */
body.dashboard-page .metric-main {
  grid-template-columns: minmax(0, 68%) minmax(0, 32%) !important;
}
body.dashboard-page .metric-primary {
  width: 100% !important;
  min-width: 0 !important;
}
body.dashboard-page .metric-primary > b {
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Final deterministic card geometry.  Avoid the accumulated legacy grid
   rules entirely: primary copy is anchored left, metadata right, chart below. */
body.dashboard-page .metric-main {
  position: absolute !important;
  left: 15px !important;
  right: 15px !important;
  top: 11px !important;
  height: 64px !important;
  display: block !important;
  overflow: visible !important;
}
body.dashboard-page .metric-primary {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 58% !important;
  display: block !important;
}
body.dashboard-page .metric-primary > small,
body.dashboard-page .metric-primary > b {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}
body.dashboard-page .metric-primary > b {
  margin-top: 5px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
body.dashboard-page .metric-meta {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 38% !important;
  display: grid !important;
  justify-items: end !important;
}

/* Keep the bottom visual band fully inside the unchanged compact card. */
body.dashboard-page .metric { overflow: visible !important; }
body.dashboard-page .metric-spark {
  bottom: 8px !important;
  height: 24px !important;
  overflow: visible !important;
}
body.dashboard-page .metric-spark svg { overflow: visible !important; }
body.dashboard-page .metric-fear-gauge {
  bottom: 8px !important;
  height: 16px !important;
}

/* Empty analytical feeds still get a complete, useful state panel instead of
   a large void. Values remain honest: no synthetic market rows are shown. */
body.dashboard-page .dash-empty--structured {
  min-height: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 16px !important;
  gap: 7px !important;
  justify-content: center !important;
  color: var(--dashboard-muted, #a0a5ad) !important;
}
body.dashboard-page .dash-empty--structured strong {
  color: var(--dashboard-text, #f4f5f6) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
body.dashboard-page .dash-empty--structured .dash-empty__hint {
  max-width: 330px !important;
  color: var(--dashboard-muted, #a0a5ad) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}
body.dashboard-page .dash-empty__stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(100%, 360px) !important;
  margin-top: 8px !important;
  border: 1px solid var(--dashboard-border, #252a30) !important;
  border-radius: 9px !important;
  overflow: hidden !important;
}
body.dashboard-page .dash-empty__stats > span {
  display: grid !important;
  gap: 3px !important;
  padding: 8px 6px !important;
  border-right: 1px solid var(--dashboard-border, #252a30) !important;
  text-align: center !important;
}
body.dashboard-page .dash-empty__stats > span:last-child { border-right: 0 !important; }
body.dashboard-page .dash-empty__stats b { color: var(--dashboard-text, #f4f5f6) !important; font-size: 10px !important; }
body.dashboard-page .dash-empty__stats small { color: var(--dashboard-faint, #7d858e) !important; font-size: 8px !important; }

/* Preserve the original row rhythm when a neighboring card uses the
   structured empty state. */
body.dashboard-page .dashboard-main-grid .dashcard .dashrow {
  display: grid !important;
  align-items: center !important;
  height: 38px !important;
  min-height: 38px !important;
  line-height: 1.2 !important;
}
body.dashboard-page .dashboard-main-grid .dashcard .dashrow-head {
  height: 28px !important;
  min-height: 28px !important;
}
body.dashboard-page .dashboard-main-grid #fundDash,
body.dashboard-page .dashboard-main-grid #spreadDash,
body.dashboard-page .dashboard-main-grid #moveDash {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body.dashboard-page .dashboard-main-grid #fundDash .dashrow,
body.dashboard-page .dashboard-main-grid #spreadDash .dashrow,
body.dashboard-page .dashboard-main-grid #moveDash .dashrow {
  flex: 0 0 38px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.dashboard-page .dashboard-main-grid #fundDash .dashrow-head,
body.dashboard-page .dashboard-main-grid #spreadDash .dashrow-head,
body.dashboard-page .dashboard-main-grid #moveDash .dashrow-head {
  flex-basis: 28px !important;
}

/* The data area is a real grid: header + four visible rows. Extra live rows
   are intentionally left to the full route page instead of being squeezed. */
body.dashboard-page .dashboard-main-grid #fundDash,
body.dashboard-page .dashboard-main-grid #spreadDash,
body.dashboard-page .dashboard-main-grid #moveDash {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 28px repeat(4, 38px) !important;
  grid-auto-rows: 38px !important;
  align-content: start !important;
  overflow: hidden !important;
}
body.dashboard-page .dashboard-main-grid #fundDash .dashrow,
body.dashboard-page .dashboard-main-grid #spreadDash .dashrow,
body.dashboard-page .dashboard-main-grid #moveDash .dashrow {
  grid-column: 1 !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: none !important;
}
body.dashboard-page .dashboard-main-grid #fundDash .dashrow-head,
body.dashboard-page .dashboard-main-grid #spreadDash .dashrow-head,
body.dashboard-page .dashboard-main-grid #moveDash .dashrow-head {
  height: 28px !important;
  min-height: 28px !important;
}

/* Keep the fixed footer out of the data flow.  Dense live feeds may be
   longer than the compact card; the content region owns the scroll instead
   of letting rows pass underneath the action button. */
body.dashboard-page .feature-card__content { min-height: 0 !important; overflow: auto !important; scrollbar-width: thin; }
body.dashboard-page .feature-card__footer { position: relative; z-index: 2; background: var(--dashboard-surface, #090b0d); }
body.dashboard-page #stakingCard > .utility-sort-row,
body.dashboard-page #lendingCard > .utility-sort-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 6px !important; width: 100% !important; min-width: 0 !important; }
body.dashboard-page #stakingCard > .utility-sort-row .utility-tabs,
body.dashboard-page #lendingCard > .utility-sort-row .utility-tabs { min-width: 0 !important; width: 100% !important; }
body.dashboard-page #stakingCard > .utility-sort-row .utility-tabs button,
body.dashboard-page #lendingCard > .utility-sort-row .utility-tabs button { flex: 1 1 auto !important; min-width: 0 !important; padding-inline: 5px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page #stakingCard > .utility-sort-row .utility-sort-direction,
body.dashboard-page #lendingCard > .utility-sort-row .utility-sort-direction { width: 52px !important; flex: 0 0 52px !important; margin: 0 !important; }
html:not([data-theme="light"]) body.dashboard-page .previewrow-yield > strong,
html[data-theme="light"] body.dashboard-page .previewrow-yield > strong { color: var(--dashboard-text) !important; font-variant-numeric: tabular-nums; }

/* Final dashboard row contract. Each card owns a single one-column grid;
   explicit tracks are generated from the children so a live response with
   fewer or more rows cannot place records on top of one another. */
body.dashboard-page .dashboard-main-grid .dashrows {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  grid-auto-rows: 38px !important;
  align-content: start !important;
  overflow: hidden !important;
}
body.dashboard-page .dashboard-main-grid .dashrows > .dashrow {
  grid-column: 1 !important;
  grid-row: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  align-self: stretch !important;
}
body.dashboard-page .dashboard-main-grid .dashrows > .dashrow-head {
  height: 28px !important;
  min-height: 28px !important;
}
body.dashboard-page .dashboard-main-grid .dashrows > .dash-empty--structured {
  grid-column: 1 !important;
  grid-row: span 6 !important;
  min-height: 0 !important;
  height: 100% !important;
}

}
/* NOTE: the @media (min-width:1440px) block opened above is intentionally left open (tablet/laptop dashboard layouts depend on that scoping); global rules start below. */
/* NetSupply attribution sits under the card title instead of overflowing into the header arrow. */
body.dashboard-page .feature-card__title:has(.feature-card__source) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-width: 0; }
body.dashboard-page .feature-card__title .feature-card__source { margin-top: 0; }

/* Compact empty-state so the stats strip is not clipped by the card's View-all button. */
body.dashboard-page .dashboard-main-grid .dashrows > .dash-empty--structured { padding: 8px 16px !important; gap: 4px !important; }
body.dashboard-page .dashboard-main-grid .dash-empty--structured .dash-empty__icon { width: 32px; height: 32px; }
body.dashboard-page .dashboard-main-grid .dash-empty--structured .dash-empty__stats { margin-top: 4px !important; }

/* Secondary metric captions (e.g. "Core catalog: 56 183") wrap instead of ending in an ellipsis. */
body.dashboard-page .metric .metric-meta .metric-secondary { white-space: normal; overflow: visible; text-overflow: clip; text-align: right; line-height: 1.15; max-width: 100%; }

/* Fixed-height cards: never let content run under the footer button; rows that do not fit are hidden by fitDashboardCards(). */
body.dashboard-page [hidden] { display: none !important; }
body.dashboard-page .feature-card__content, body.dashboard-page .dashrows { overflow: hidden !important; min-height: 0; }
body.dashboard-page .feature-card__footer, body.dashboard-page .dashcard > .viewall { position: relative; z-index: 1; }
body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(48px, 1fr) minmax(0, .8fr) auto; }
body.dashboard-page .dashboard-main-grid .dash-empty--structured { overflow: hidden; }

/* No ellipsis-clipped captions/values on dashboard cards: wrap secondary captions, keep numbers whole. */
body.dashboard-page .metric-meta .metric-secondary { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2 !important; overflow-wrap: anywhere; }
body.dashboard-page .metric-meta { flex: 0 1 auto; min-width: 0; }
body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(44px, .8fr) minmax(56px, 1.2fr) auto; column-gap: 6px; }
body.dashboard-page .previewrow-yield > span { display: flex; align-items: center; gap: 4px; min-width: 0; }
body.dashboard-page .market-row { grid-template-columns: 14px 22px minmax(0, 1fr) max-content max-content !important; column-gap: 5px !important; }
body.dashboard-page .market-row strong, body.dashboard-page .market-row > span:not(.market-rank) { overflow: visible; text-overflow: clip; }
body.dashboard-page .previewrow-yield { grid-template-columns: 22px minmax(40px, .8fr) minmax(0, 1.2fr) max-content; }
body.dashboard-page .previewrow-yield > strong { overflow: visible; text-overflow: clip; text-align: right; }
body.dashboard-page .dashrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .dashrow { column-gap: 8px; }

/* Empty-state stats strip (global): three equal cells instead of run-together text on narrow screens. */
body.dashboard-page .dash-empty__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 360px; }
body.dashboard-page .dash-empty__stats > span { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 2px; border: 1px solid var(--dashboard-border, rgba(255,255,255,.1)); border-radius: 8px; }
body.dashboard-page .dash-empty__stats b { font-size: 11px; }
body.dashboard-page .dash-empty__stats small { font-size: 8px; white-space: normal; text-align: center; }
@media (max-width: 700px) {
  body.dashboard-page .dashrow, body.dashboard-page .dashrow-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) max-content !important; }
  body.dashboard-page .dashrow > span:nth-child(3) { overflow: visible; text-overflow: clip; }
}
