/* Yield Hatch dashboard. All colours come from the existing brand tokens. */
:root{--sidebar:238px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.negative{color:var(--red)}
.sidebar{padding:26px 12px 28px;background:color-mix(in srgb,var(--surface) 64%,var(--paper));border:0;overflow-y:auto;scrollbar-width:none}
.sidebar .brand-lockup{padding:0 12px;gap:8px;flex-shrink:0}
.sidebar .brand-symbol{display:block!important;position:relative;width:68px;height:60px;overflow:hidden;flex:none}
.sidebar .brand-symbol img{position:absolute;width:116px;height:116px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}
.sidebar .brand-wordmark{display:grid!important;gap:6px;min-width:0}
.brand-lockup b{font-size:25px;font-weight:800;letter-spacing:-.065em;line-height:1.1}
.brand-lockup small{font-size:11px;font-weight:400;white-space:nowrap;letter-spacing:-.03em;color:var(--muted)}
.primary-nav{margin-top:32px;gap:10px}
.sidebar .nav-item{padding:12px 22px;min-height:50px;gap:20px;border-radius:var(--pill);font-size:16px}
.sidebar .nav-item .icon{width:26px;height:26px;stroke-width:1.8}
.sidebar .nav-item.active{background:linear-gradient(110deg,color-mix(in srgb,var(--lime) 90%,var(--surface)),color-mix(in srgb,var(--lime) 68%,var(--surface)))}
.sidebar-find-yield{margin:clamp(48px,14vh,144px) 8px 40px;padding:28px 18px 18px;gap:12px;border-radius:18px;background:linear-gradient(140deg,color-mix(in srgb,var(--lilac) 76%,var(--surface)),var(--lilac));flex-shrink:0}
.sidebar-find-art{width:104px;height:98px;margin:10px 0 0 12px;background:color-mix(in srgb,var(--purple) 17%,var(--lilac));border-radius:48% 52% 46% 50%}
.sidebar-find-art .icon{width:62px;height:62px;stroke-width:1.5}
.sidebar-find-art i{width:25px;right:-15px;top:-10px}
.sidebar-find-art i:last-child{right:-42px;top:6px;transform:rotate(-40deg)}
.sidebar-find-yield strong{font-size:25px;letter-spacing:-.055em;line-height:1.08;margin-top:0}
.sidebar-find-yield p{font-size:13px;letter-spacing:-.02em}
.sidebar-find-yield .button{height:46px;font-size:16px;font-weight:500;gap:14px;background:linear-gradient(var(--charcoal),var(--ink));border:0}
.sidebar-bottom{padding:12px 22px;margin-top:auto;flex-shrink:0}
.help-link{font-size:16px;gap:18px}
.help-link .icon{width:24px;height:24px}
.dashboard-mode{display:none}
.app-body{padding:0 24px}
.topbar{height:114px;padding:26px 4px 18px;align-items:flex-start;gap:12px;flex-shrink:0}
.app-header-title{display:block;margin-right:auto;flex:1;min-width:0}
.dashboard-header-title h1{font-size:48px;line-height:1;letter-spacing:-.05em;font-weight:800}
.dashboard-header-title p{font-size:20px;color:var(--muted);margin-top:4px;white-space:nowrap}
.dashboard-mode:not([hidden]){display:inline-flex;align-self:flex-start;margin-top:12px;padding:6px 12px;font-size:11px;color:var(--muted);background:color-mix(in srgb,var(--line) 65%,transparent)}
.topbar .network-current,.topbar .wallet-button{height:50px;padding:10px 18px;border-radius:20px;gap:12px;font-size:14px;font-weight:600;background:var(--surface)}
.topbar .network-current .token{width:28px;height:28px}
.topbar .wallet-button{min-width:180px}
.topbar .wallet-button>.icon{width:23px;height:23px}
.workspace{padding-top:0;overflow:auto;scrollbar-width:thin}
.app-credit{display:none}
.topbar .mobile-brand,.topbar .mobile-help{display:none}
.workspace>.view:not(.dashboard-view){height:auto;min-height:100%;padding-bottom:18px;overflow:visible}
.dashboard-view{height:auto;min-height:100%;margin:0;padding:0 0 18px;overflow:visible;gap:16px}
.dashboard-view>*{flex-shrink:0;min-width:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-metric{height:136px;min-height:136px;padding:16px;display:grid;grid-template-columns:62px minmax(0,1fr);grid-template-rows:68px 1fr;gap:8px 18px;position:relative;border-radius:17px;overflow:hidden}
.dashboard-metric.lime{background:linear-gradient(110deg,color-mix(in srgb,var(--lime) 86%,var(--surface)),color-mix(in srgb,var(--lime) 75%,var(--surface)))}
.dashboard-metric.lilac{background:linear-gradient(110deg,var(--lilac),color-mix(in srgb,var(--lilac) 90%,var(--surface)))}
.dashboard-metric.blue{background:linear-gradient(110deg,color-mix(in srgb,var(--blue) 80%,var(--surface)),var(--blue))}
.dashboard-metric.peach{background:linear-gradient(110deg,color-mix(in srgb,var(--peach) 84%,var(--surface)),var(--peach))}
.metric-icon{width:62px;height:62px;border-radius:19px;display:grid;place-items:center;background:color-mix(in srgb,var(--surface) 80%,transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--surface) 80%,transparent)}
.metric-icon>.icon{width:32px;height:32px;stroke-width:1.8}
.lilac .metric-icon{color:var(--purple)}
.peach .metric-icon{color:var(--amber)}
.dashboard-metric-copy{display:grid;align-content:center;gap:6px;min-width:0;z-index:1}
.dashboard-metric-copy p{font-size:15px;font-weight:500;letter-spacing:-.025em;white-space:nowrap}
.dashboard-metric-copy>strong{font-size:34px;line-height:1.05;font-weight:750;letter-spacing:-.04em}
.dashboard-metric-footer{grid-column:2;display:flex;align-items:center;gap:4px;align-self:end;min-height:24px;color:var(--muted);font-size:13px;white-space:nowrap}
.dashboard-metric-footer .positive{font-size:14px;font-weight:600}
.metric-trace{position:absolute;width:74px;height:44px;right:14px;bottom:20px}
.trace-portfolio{color:var(--green)}
.trace-yield{color:var(--purple)}
.dashboard-metrics .dashboard-metric:nth-child(-n+2) .dashboard-metric-footer{padding-right:68px;font-size:12px}
.dashboard-metrics .dashboard-metric:nth-child(3) .dashboard-metric-footer{font-size:11px;gap:8px;justify-content:space-between}
.dashboard-claim{height:32px;min-height:32px;font-size:11px;padding:6px 12px;border-radius:var(--pill);font-weight:500;gap:8px}
.dashboard-claim .icon{width:15px;height:15px}
.metric-next{position:absolute;display:grid;place-items:center;width:40px;height:40px;right:16px;bottom:14px;background:var(--surface);border-radius:var(--pill)}
.metric-next .icon{width:20px;height:20px}
.dashboard-metric .burst{display:block;position:absolute;right:10px;top:11px;width:40px;height:36px;transform:rotate(-14deg)}
.dashboard-primary{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:stretch}
.dashboard-view .panel-card{border:0;border-radius:17px;box-shadow:none;min-width:0}
.dashboard-view .section-heading{padding:16px 20px 6px;border:0;min-height:42px;gap:12px;align-items:center}
.dashboard-view .section-heading h2,.price-heading h2{font-size:20px;letter-spacing:-.035em;font-weight:750;line-height:1.15}
.dashboard-view .text-link{color:var(--purple);font-size:14px;font-weight:400;white-space:nowrap}
.dashboard-view .text-link .icon{width:18px;height:18px}
.price-card{height:260px;padding:12px 20px 10px;display:block}
.price-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.price-heading h2{display:flex;align-items:center;gap:14px}
.price-heading .token{width:36px;height:36px}
.price-ranges{display:flex;border:1px solid var(--line);border-radius:var(--pill);background:color-mix(in srgb,var(--paper) 35%,var(--surface));padding:0;min-height:32px;overflow:hidden}
.price-ranges button{font-size:13px;min-width:49px;padding:5px 10px;border-radius:var(--pill)}
.price-ranges button[aria-pressed=true]{background:linear-gradient(140deg,var(--lilac),color-mix(in srgb,var(--purple) 18%,var(--lilac)))}
.price-ranges button:hover{background:var(--lilac)}
.price-summary{display:flex;align-items:center;gap:12px;height:46px;white-space:nowrap;font-size:14px;color:var(--muted)}
.price-summary>strong{font-size:30px;line-height:1;font-weight:750;letter-spacing:-.04em;color:var(--ink)}
.price-summary>.positive,.price-summary>.negative{font-weight:600}
.chart-source{margin-left:auto;font-size:10px;color:var(--muted)}
.chart-source .icon{width:11px;height:11px}
.price-graph{height:156px;position:relative;margin-top:4px;touch-action:pan-y;cursor:crosshair;border-radius:8px}
.chart-plot{position:absolute;inset:10px 8px 28px 60px}
.chart-plot>svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.chart-gridline{stroke:var(--line);stroke-dasharray:2 3}
.chart-price-line,.chart-active-segment{fill:none;stroke:var(--purple);stroke-linecap:round;stroke-linejoin:round}
.chart-price-line{stroke-width:2;stroke-opacity:.9}
.chart-active-segment{stroke-width:3.4}
.chart-y-axis{position:absolute;inset:10px auto 28px 0;width:52px}
.chart-y-axis>span{position:absolute;right:0;transform:translateY(50%)}
.chart-x-axis{position:absolute;bottom:0;left:60px;right:8px;height:20px}
.chart-x-axis>span{position:absolute;top:2px;transform:translateX(-50%)}
.chart-x-axis>span:first-child{transform:none}
.chart-x-axis>span:last-child{transform:translateX(-100%)}
/* Labels are HTML/CSS pixels, never scaled with the SVG or desktop chart height. */
.chart-x-axis,.chart-y-axis{font-size:var(--xs);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;line-height:1.4}
.chart-latest-dot{position:absolute;width:5px;height:5px;background:var(--purple);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.price-graph[data-active] .chart-latest-dot{opacity:.4}
.chart-crosshair{position:absolute;top:0;bottom:0;width:0;pointer-events:none}
.chart-crosshair:before{content:'';position:absolute;top:0;bottom:0;left:0;border-left:1px dashed color-mix(in srgb,var(--purple) 40%,var(--line))}
.chart-highlight{position:absolute;left:0;width:12px;height:12px;border:3px solid var(--surface);border-radius:50%;background:var(--purple);transform:translate(-50%,-50%);box-shadow:0 0 0 5px color-mix(in srgb,var(--purple) 13%,transparent),var(--shadow)}
.chart-tooltip{position:absolute;display:grid;gap:4px;max-width:calc(100% - 12px);padding:10px 13px;background:var(--surface);color:var(--ink);font-size:11px;border:1px solid var(--line);border-top:2px solid var(--purple);border-radius:12px;pointer-events:none;box-shadow:0 5px 22px color-mix(in srgb,var(--ink) 12%,transparent);white-space:nowrap;z-index:2;line-height:1.3}
.chart-tooltip-label{font-size:10px;letter-spacing:.035em;color:var(--muted)}
.chart-tooltip-label:before{content:'';display:inline-block;width:5px;height:5px;margin-right:6px;border-radius:50%;background:var(--purple);vertical-align:middle}
.chart-tooltip>strong{font-size:20px;font-weight:750;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.chart-tooltip>[data-chart-date]{font-size:11px;color:var(--muted)}
.chart-tooltip:after{content:'';position:absolute;left:calc(var(--chart-anchor) - 4px);bottom:-5px;width:8px;height:8px;background:var(--surface);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg)}
.chart-tooltip[data-below="true"]:after{top:-5px;bottom:auto;transform:rotate(225deg)}
.price-chart-loading{min-height:156px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;color:var(--muted);background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--lilac) 24%,var(--surface)));border-radius:8px}
.dashboard-wallet{height:260px}
.dashboard-table-wrap{position:relative;overflow-x:auto;padding:0 18px;scrollbar-width:thin}
.dashboard-table{width:100%;table-layout:auto;font-size:13px;border-collapse:collapse}
.dashboard-table th{position:static;height:30px;background:transparent;font-size:12px;font-weight:400;color:var(--muted);padding:4px 6px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,var(--surface));white-space:nowrap}
.dashboard-table td{height:44px;padding:4px 6px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,var(--surface));white-space:nowrap;font-size:13px}
.dashboard-table td:first-child,.dashboard-table th:first-child{padding-left:2px}
.dashboard-table td:last-child,.dashboard-table th:last-child{padding-right:2px}
.dashboard-table td>strong{font-size:13px;font-weight:500}
.dashboard-table td small{margin-top:0;font-size:12px;line-height:1.2}
.dashboard-table .identity{gap:10px}
.dashboard-table .identity strong{font-size:13px;font-weight:600;max-width:190px;letter-spacing:-.02em}
.dashboard-table .identity span:not(.token){font-size:12px;line-height:1.2}
.dashboard-table .token{width:34px;height:34px}
.dashboard-balance-table th,.dashboard-balance-table td{height:42px;font-size:14px}
.dashboard-balance-table th{height:34px;font-size:12px}
.dashboard-balance-table td:last-child{text-align:center;font-size:13px}
.dashboard-balance-table .identity strong{font-size:14px}
.dashboard-monitor-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:16px;align-items:stretch}
.monitor-summary{border-radius:17px;padding:0 12px 12px;display:flex;flex-direction:column;gap:12px;min-width:0;min-height:232px;height:100%;position:relative}
.monitor-summary.lilac{background:linear-gradient(115deg,color-mix(in srgb,var(--lilac) 49%,var(--surface)),color-mix(in srgb,var(--lilac) 60%,var(--surface)))}
.monitor-summary.blue{background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 56%,var(--surface)),color-mix(in srgb,var(--blue) 72%,var(--surface)))}
.dashboard-view .monitor-summary .section-heading{padding:14px 8px 0;min-height:35px}
.provider-feature{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,minmax(72px,.28fr));align-items:center;gap:12px;min-height:84px;background:color-mix(in srgb,var(--surface) 45%,transparent);border-radius:16px;padding:12px}
.provider-identity{display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.provider-identity>.token{width:46px;height:46px;border-radius:0;overflow:visible}
.provider-identity>div{min-width:0}
.provider-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.provider-name>strong{font-size:16px;font-weight:700;letter-spacing:-.035em}
.provider-identity p{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4;overflow-wrap:anywhere}
.provider-tag{display:inline-flex;align-items:center;border-radius:var(--pill);background:color-mix(in srgb,var(--purple) 11%,var(--lilac));color:var(--purple);font-size:11px;line-height:1;padding:6px 14px}
.provider-tag.tag-lime{background:color-mix(in srgb,var(--lime) 85%,var(--surface));color:var(--green)}
.provider-feature-stat{display:flex;flex-direction:column;gap:2px;border-left:1px solid color-mix(in srgb,var(--purple) 12%,transparent);padding-left:12px;min-width:0}
.provider-feature-stat strong{font-size:22px;line-height:1.1}
.provider-feature-stat span{font-size:12px;color:var(--muted);white-space:nowrap}
.monitor-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:auto}
.monitor-stat-grid>div{border-right:1px solid color-mix(in srgb,var(--ink) 8%,transparent);padding:0 18px;display:block;min-width:0}
.monitor-stat-grid>div:first-child{padding-left:18px}
.monitor-stat-grid>div:last-child{border:0;padding-right:0}
.monitor-stat-grid dd{font-size:18px;font-weight:750;letter-spacing:-.025em;margin:0;line-height:1.25;overflow-wrap:anywhere}
.monitor-stat-grid dt{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.3}
.monitor-source{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:0 8px;font-size:10px;color:var(--muted)}
.dashboard-view .monitor-source .text-link{font-size:10px;gap:4px}
.monitor-source .text-link>.icon{width:12px;height:12px}
.monitor-source>span{margin-left:auto}
.monitor-summary[data-provider-status="error"] .monitor-source>span{color:var(--red)}
.monitor-live-note{font-size:10px;color:var(--muted);position:absolute;top:8px;right:20px}
.dashboard-bottom-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.71fr);gap:14px;align-items:stretch}
.dashboard-bottom-row>.panel-card,.dashboard-bottom-row>.attention-card{min-height:216px;height:auto}
.dashboard-opportunity-table{min-width:0}
.dashboard-opportunity-table th:nth-child(1){width:32%}
.dashboard-opportunity-table th:nth-child(2){width:17%}
.dashboard-opportunity-table th:nth-child(3){width:15%}
.dashboard-opportunity-table th:nth-child(4){width:16%}
.dashboard-opportunity-table td:last-child{width:20%;text-align:right}
.dashboard-table .dashboard-row-action{min-height:36px;min-width:100px;padding:5px 12px;border:1px solid var(--line);border-radius:var(--pill);font-size:12px;font-weight:600;justify-content:space-between}
.dashboard-row-action .icon{width:17px;height:17px}
.type-chip,.dashboard-table .badge{display:inline-flex;border-radius:var(--pill);padding:5px 12px;font-size:11px;line-height:1.1;white-space:nowrap}
.type-yield{background:color-mix(in srgb,var(--peach) 65%,var(--surface));color:var(--amber)}
.type-lending{background:var(--blue);color:var(--purple)}
.type-staking{background:var(--lilac);color:var(--purple)}
.dashboard-table .badge-low{background:color-mix(in srgb,var(--lime) 40%,var(--surface));color:var(--green)}
.dashboard-position-table td{font-size:12px}
.dashboard-position-table .identity{gap:8px}
.dashboard-position-table .identity strong{font-size:12px;max-width:118px}
.dashboard-position-table .token{width:34px;height:34px}
.position-status{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:var(--pill);background:var(--green);flex:none}
.attention-card{position:relative;padding:0 14px 16px;display:flex;flex-direction:column;justify-content:flex-start;align-content:start;gap:12px;border-radius:17px;background:linear-gradient(120deg,color-mix(in srgb,var(--peach) 75%,var(--surface)),color-mix(in srgb,var(--peach) 90%,var(--surface)))}
.dashboard-view .attention-card .section-heading{padding:14px 2px 0;min-height:38px}
.attention-card>.burst{display:block;position:absolute;width:52px;height:46px;right:16px;top:-5px;transform:rotate(-12deg)}
.attention-row{display:flex;align-items:center;width:100%;gap:12px;padding:12px 14px;min-height:67px;border-radius:18px;text-align:left;background:color-mix(in srgb,var(--surface) 78%,transparent)}
.attention-row>span{display:grid;gap:4px;flex:1;min-width:0}
.attention-row strong{font-size:13px;font-weight:500;letter-spacing:-.02em;white-space:nowrap}
.attention-row small{font-size:12px;color:var(--muted);white-space:nowrap}
.attention-row>.icon{width:30px;height:30px;color:var(--amber);stroke-width:1.8}
.attention-row>.icon:last-child{color:var(--ink);width:16px;height:16px}
.dashboard-empty{padding:24px 12px;min-height:122px;display:grid;place-content:center;text-align:center;gap:8px;font-size:13px;color:var(--muted)}
.dashboard-empty p{font-size:12px}
.example-preview-label{color:var(--purple);font-size:13px}
.example-reward-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:12px 0}
.example-reward-row>span:last-child{color:var(--green);font-size:12px}
@media(min-width:1800px){
  .app-body{padding-inline:32px}
  .dashboard-metric-copy>strong{font-size:40px}
  .dashboard-metric-copy p{font-size:16px}
  .dashboard-metric{gap:8px 22px}
  .price-card,.dashboard-wallet{height:286px}
  .price-graph{height:182px}
  .dashboard-balance-table td{height:48px}
}
/* Use spare desktop height in the content rows, not as an empty page footer. */
@media(min-width:1101px){
  .dashboard-primary{flex:1.2 0 300px}
  .dashboard-bottom-row{flex:.8 0 232px}
  .dashboard-primary>.panel-card{display:flex;flex-direction:column;height:auto;min-height:300px}
  .dashboard-bottom-row>.panel-card{display:flex;flex-direction:column;min-height:232px}
  .dashboard-bottom-row>.attention-card{min-height:232px}
  .dashboard-view .section-heading,.dashboard-view .price-heading,.dashboard-view .price-summary{flex-shrink:0}
  .dashboard-primary .price-graph{flex:1;height:auto;min-height:192px}
  .dashboard-primary .price-chart-loading{flex:1;min-height:192px}
  .dashboard-wallet .dashboard-table-wrap,.dashboard-bottom-row .dashboard-table-wrap{display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:12px}
  /* Keep spare height below the list, never inside its rows. */
  .dashboard-wallet .dashboard-table,.dashboard-bottom-row .dashboard-table{height:auto;flex:0 0 auto}
  .dashboard-bottom-row .attention-row{flex:0 0 auto}
}
@media(min-width:1101px) and (max-width:1480px){
  :root{--sidebar:220px}
  .sidebar .brand-lockup{padding-inline:6px}
  .brand-lockup b{font-size:23px}
  .sidebar .brand-symbol{width:60px}
  .app-body{padding-inline:18px}
  .dashboard-metric{grid-template-columns:48px 1fr;gap:8px 12px;padding:14px}
  .metric-icon{width:48px;height:54px;border-radius:16px}
  .dashboard-metric-copy p{font-size:13px}
  .dashboard-metric-copy>strong{font-size:30px}
  .dashboard-metric-footer{font-size:11px;gap:3px}
  .dashboard-metric-footer .positive{font-size:12px}
  .dashboard-metrics .dashboard-metric:nth-child(3) .dashboard-metric-footer{grid-column:1/-1;margin-left:60px;gap:5px}
  .dashboard-claim{font-size:10px;padding-inline:8px}
  .metric-trace{width:60px;right:10px}
  .provider-feature{gap:12px;padding:10px}
  .provider-identity{gap:10px}
  .provider-name{gap:6px;flex-wrap:wrap;white-space:normal}
  .provider-name>strong{font-size:14px}
  .provider-tag{font-size:10px;padding:4px 10px}
  .provider-feature-stat{min-width:76px;padding-left:12px}
  .provider-feature-stat strong{font-size:20px}
  .provider-feature-stat span{font-size:10px}
  .monitor-stat-grid>div{padding-inline:10px}
  .monitor-stat-grid dd{font-size:17px}
  .monitor-stat-grid dt{font-size:10px}
  .dashboard-bottom-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  .dashboard-bottom-row>.attention-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:start;min-height:112px;padding:14px}
  .dashboard-view .attention-card .section-heading{grid-column:1/-1;min-height:0;padding:0}
}
@media(min-width:821px) and (max-width:1100px){
  :root{--sidebar:210px}
  .sidebar .brand .brand-wordmark,.sidebar .nav-item span{display:grid}
  .sidebar .brand-lockup{justify-content:flex-start;padding-inline:0}
  .sidebar .brand-symbol{width:58px}
  .brand-lockup b{font-size:22px}
  .brand-lockup small{font-size:10px}
  .sidebar .nav-item{justify-content:flex-start;padding:12px 18px;font-size:14px;gap:14px}
  .sidebar-find-yield{display:grid;margin-top:60px;padding:20px 14px}
  .sidebar-find-yield strong{font-size:23px}
  .help-link{font-size:14px;justify-content:flex-start}
}
@media(max-width:1100px){
  .app-body{padding-inline:18px}
  .topbar{height:146px;flex-wrap:wrap;align-content:flex-start;padding-top:24px}
  .app-header-title{flex:1 0 100%}
  .dashboard-header-title h1{font-size:40px}
  .dashboard-header-title p{font-size:16px}
  .dashboard-mode:not([hidden]){margin-right:auto;margin-top:8px}
  .topbar .network-current,.topbar .wallet-button{height:40px;border-radius:16px;font-size:12px;padding:8px 12px}
  .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-primary,.dashboard-monitor-row,.dashboard-bottom-row{grid-template-columns:1fr}
  .dashboard-bottom-row>.attention-card{grid-column:auto}
  .dashboard-metric-copy p{font-size:14px}
  .dashboard-metric-copy>strong{font-size:32px}
  .dashboard-metric{grid-template-columns:48px 1fr;padding:14px;gap:8px 12px}
  .metric-icon{width:48px;height:54px}
  .dashboard-metric-footer{font-size:11px}
  .dashboard-metrics .dashboard-metric:nth-child(3) .dashboard-metric-footer{grid-column:1/-1;justify-content:flex-end}
  .metric-trace{width:62px;right:12px}
  .price-card,.dashboard-wallet{height:auto;min-height:260px}
  .price-graph{height:180px}
  .dashboard-balance-table td{height:46px}
  .dashboard-opportunity-table,.dashboard-position-table{min-width:450px}
  .attention-card{min-height:216px}
  .dashboard-view .section-heading h2{font-size:20px}
}
@media(max-width:820px){
  :root{--sidebar:80px}
  .sidebar .brand-wordmark{display:none!important}
  .sidebar .nav-item span,.sidebar-find-yield,.help-link>span{display:none}
  .sidebar .brand-lockup{padding:0;justify-content:center}
  .sidebar .brand-symbol{width:56px}
  .sidebar .nav-item{padding:12px;justify-content:center}
  .sidebar-bottom{padding:12px;justify-items:center}
  .help-link{justify-content:center;font-size:0}
}
@media(max-width:640px){
  body{background:var(--paper)}
  .app-body{padding-inline:14px}
  .topbar{height:auto;min-height:128px;gap:8px;padding:20px 0 16px;align-items:center}
  .app-header-title{order:0;flex:1 0 calc(100% - 60px)}
  .dashboard-header-title h1{font-size:36px}
  .dashboard-header-title p{font-size:14px}
  .topbar .wallet-actions{order:1;align-self:flex-start}
  .topbar .wallet-button{min-width:44px;width:44px;height:44px;padding:10px}
  .topbar .wallet-button:before{display:none}
  .topbar .wallet-button>.icon:first-child{display:block;width:24px;height:24px}
  .dashboard-mode:not([hidden]){order:2;margin:0}
  .topbar .network-control{display:block;order:3;margin-left:auto}
  .topbar .network-current{height:32px;font-size:11px;padding:4px 8px;gap:6px;border-radius:var(--pill)}
  .topbar .network-current .token{width:20px;height:20px}
  .workspace{overflow:visible;padding-bottom:84px}
  .dashboard-view{gap:12px;padding-bottom:0}
  .dashboard-metrics{gap:10px}
  .dashboard-metric{height:154px;min-height:154px;padding:12px;grid-template-columns:34px minmax(0,1fr);grid-template-rows:72px 1fr;gap:8px}
  .metric-icon{width:34px;height:38px;border-radius:12px}
  .metric-icon .icon{width:23px;height:23px}
  .dashboard-metric-copy{gap:8px;align-content:start}
  .dashboard-metric-copy p{font-size:11px;white-space:normal;line-height:1.2}
  .dashboard-metric-copy>strong{font-size:27px}
  .dashboard-metric-footer{grid-column:1/-1;align-self:end;font-size:11px;flex-wrap:wrap;white-space:normal;gap:4px}
  .dashboard-metric-footer .positive{font-size:11px}
  .dashboard-metrics .dashboard-metric:nth-child(-n+2) .dashboard-metric-footer{padding-right:0;align-self:start;font-size:11px}
  .metric-trace{width:56px;height:28px;right:10px;bottom:8px}
  .dashboard-metrics .dashboard-metric:nth-child(3) .dashboard-metric-footer{justify-content:flex-start;font-size:10px}
  .dashboard-claim{height:28px;min-height:28px;font-size:10px;padding-inline:8px}
  .metric-next{width:28px;height:28px;right:10px;bottom:10px}
  .dashboard-metric .burst{display:none}
  .price-card{padding:12px;min-height:270px}
  .price-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .price-heading h2{font-size:18px;gap:8px}
  .price-heading .token{width:30px;height:30px}
  .price-ranges{min-height:28px}
  .price-ranges button{min-width:35px;font-size:11px;padding:4px 7px}
  .price-summary{gap:8px;flex-wrap:wrap;height:auto;min-height:55px;font-size:13px;padding-block:8px}
  .price-summary>strong{font-size:28px}
  .chart-source{font-size:8px}
  .price-graph{height:160px;margin-top:4px}
  .chart-plot{left:54px}
  .chart-y-axis{width:47px}
  .chart-x-axis{left:54px}
  .chart-x-axis,.chart-y-axis{font-size:11px}
  .dashboard-table-wrap{padding-inline:12px}
  .dashboard-balance-table{min-width:340px}
  .dashboard-balance-table td{font-size:12px}
  .dashboard-balance-table th{font-size:11px}
  .dashboard-table .identity{gap:6px}
  .dashboard-table .token{width:28px;height:28px}
  .dashboard-view .section-heading{padding:14px 14px 6px}
  .dashboard-view .section-heading h2{font-size:18px}
  .dashboard-view .text-link{font-size:12px;gap:6px}
  .monitor-summary{height:100%;min-height:232px;padding:0 10px 14px;gap:10px}
  .provider-feature{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:10px;min-height:140px}
  .provider-identity{gap:8px;grid-column:1/-1}
  .provider-identity>.token{width:36px;height:36px}
  .provider-name{gap:6px;flex-wrap:wrap;white-space:normal}
  .provider-name>strong{font-size:14px}
  .provider-tag{font-size:9px;padding:4px 8px}
  .provider-identity p{font-size:11px}
  .provider-feature-stat{min-width:0;flex:1;padding-left:10px}
  .provider-feature-stat strong{font-size:17px}
  .provider-feature-stat span{font-size:10px}
  .monitor-stat-grid>div,.monitor-stat-grid>div:first-child{padding-inline:8px}
  .monitor-stat-grid dd{font-size:16px}
  .monitor-stat-grid dt{font-size:10px;white-space:normal}
  .attention-card{padding-inline:14px}
}

/* Real partial reads stay useful without pretending to be complete totals. */
.dashboard-metric-copy>strong{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.metric-data-badge{font-size:10px;font-weight:600;letter-spacing:0;line-height:1.4;white-space:nowrap;border:1px solid currentColor;border-radius:999px;padding:2px 7px;opacity:.85}
.attention-card .attention-row{min-height:70px;flex:0 0 auto}
.attention-row.yield-upgrade{border:1px solid color-mix(in srgb,var(--purple) 24%,transparent)}
.yield-upgrade>svg{color:var(--purple)}
.yield-comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.yield-comparison-grid>article{padding:20px;border:1px solid var(--line);border-radius:18px;min-width:0}
.yield-comparison-grid span{color:var(--muted);font-size:12px}
.yield-comparison-grid strong{display:block;font-size:30px;letter-spacing:-1px;margin-top:10px}
.yield-comparison-grid p{font-size:14px;overflow-wrap:anywhere;margin-bottom:0}
.yield-comparison-grid h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere;margin:8px 0 0}.yield-comparison-grid strong small{display:block;font-size:12px;letter-spacing:0;font-weight:500;color:var(--muted);margin-top:5px}.yield-comparison-grid .yield-comparison-risk{font-size:12px}.yield-comparison-notes{display:flex;flex-wrap:wrap;gap:8px}.yield-comparison-notes>span{padding:7px 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.yield-upgrade-note{color:var(--muted)}
.yield-comparison-delta{color:var(--purple);font-weight:600;font-size:14px}
@media(max-width:400px){.yield-comparison-grid>article{padding:14px}.yield-comparison-grid strong{font-size:25px}}
