.market-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--gap);align-items:start}.market-page{min-width:0}.market-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:10px 2px 22px}.market-eyebrow{display:block;color:var(--accent-dark);font:750 12px/1 var(--mono);letter-spacing:0}.market-head h1{margin:8px 0 4px;font-size:30px;line-height:1.25;font-weight:840;letter-spacing:0}.market-head p{margin:0;color:var(--fg-soft);font-size:14px}.market-live{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12.5px;white-space:nowrap}.live-dot{width:8px;height:8px;border-radius:50%;background:#aeb5bd;box-shadow:0 0 0 3px #aeb5bd29}.live-dot[data-state=live]{background:var(--up);box-shadow:0 0 0 3px #1aa26024}.live-dot[data-state=stale]{background:var(--star);box-shadow:0 0 0 3px #f6a60924}.live-dot[data-state=error]{background:var(--hot);box-shadow:0 0 0 3px #e5392f1f}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface);color:var(--fg-soft)}.icon-button:hover{color:var(--accent-dark);border-color:var(--accent);background:var(--accent-tint)}.icon-button .ic{width:17px;height:17px}.icon-button.is-loading .ic{animation:marketSpin .8s linear infinite}@keyframes marketSpin{to{transform:rotate(360deg)}}.market-ticker{margin:0 0 18px;overflow:hidden;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow)}.ticker-track{min-height:52px;display:flex;align-items:center;gap:28px;width:max-content;padding:0 20px;color:var(--fg-soft)}.ticker-track.is-ready{animation:marketTicker 48s linear infinite}.ticker-track:hover{animation-play-state:paused}.ticker-placeholder{color:var(--muted);font-size:13px}.ticker-item{display:inline-flex;align-items:center;gap:7px;color:var(--fg-soft);text-decoration:none;white-space:nowrap;font:650 13px/1 var(--mono)}a.ticker-item:hover{color:var(--accent-dark)}.ticker-item .coin-logo{width:23px;height:23px;font-size:8px}.ticker-item .up,.change.up,.sparkline.up,.trend-fallback.up{color:var(--up)}.ticker-item .down,.change.down,.sparkline.down,.trend-fallback.down{color:var(--hot)}.ticker-item .flat,.change.flat,.sparkline.flat,.trend-fallback.flat{color:var(--muted)}@keyframes marketTicker{to{transform:translate(calc(-50% - 14px))}}.market-panel{overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow)}.market-toolbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px 18px;border-bottom:1px solid var(--border)}.market-toolbar h2{margin:0 0 4px;font-size:18px;line-height:1.3;font-weight:780;letter-spacing:0}.market-summary{display:flex;gap:14px;color:var(--muted);font-size:12.5px}.market-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px}.currency-switch{flex:0 0 auto;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface-2)}.currency-switch button{min-width:70px;height:32px;padding:0 9px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}.currency-switch button:hover{color:var(--fg)}.currency-switch button[data-active=true]{background:var(--surface);color:var(--accent-dark);box-shadow:0 1px 4px #141e2817}.market-search{width:min(280px,40vw);min-height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface-2);color:var(--muted)}.market-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);background:var(--surface)}.market-search .ic{width:17px;height:17px;flex:0 0 auto}.market-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--fg);font-size:13.5px}.market-search input::placeholder{color:var(--muted)}.market-state{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center}.market-state strong{color:var(--fg);font-size:15px}.market-state>span:not(.market-loader){font-size:13px}.market-loader{width:28px;height:28px;margin-bottom:4px;border:3px solid var(--accent-tint);border-top-color:var(--accent);border-radius:50%;animation:marketSpin .8s linear infinite}.market-state[data-kind=error] .market-loader{display:none}.retry-button{margin-top:8px;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border:1px solid var(--accent);border-radius:var(--r-sm);background:var(--accent);color:#fff;font-weight:700;font-size:13px}.retry-button .ic{width:15px;height:15px}.market-table-wrap{width:100%;overflow-x:auto}.market-table{width:100%;min-width:810px;border-collapse:collapse;table-layout:fixed}.market-table th{height:52px;padding:0 10px;background:var(--surface-2);border-bottom:1px solid var(--border);color:var(--muted);text-align:right;font-size:12.5px;font-weight:650;white-space:nowrap}.market-table th:nth-child(1){width:48px;text-align:center}.market-table th:nth-child(2){width:126px;text-align:left}.market-table th:nth-child(3){width:116px}.market-table th:nth-child(4){width:72px}.market-table th:nth-child(5){width:86px}.market-table th:nth-child(6){width:112px}.market-table th:nth-child(7){width:116px}.market-table th:nth-child(8){width:134px;text-align:center}.market-table th button{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:nowrap}.market-table th:nth-child(1) button,.market-table th:nth-child(8) button{justify-content:center}.market-table th:nth-child(2) button{justify-content:flex-start}.market-table th button:hover,.market-table th[aria-sort]:not([aria-sort=none]) button{color:var(--accent-dark)}.sort-mark{width:10px;color:var(--accent)}[data-direction=asc] .sort-mark:before{content:"↑"}[data-direction=desc] .sort-mark:before{content:"↓"}.market-table td{height:82px;padding:10px;border-bottom:1px solid var(--border);color:var(--fg);text-align:right;font:570 13.2px/1.45 var(--mono);white-space:nowrap}.market-table tbody tr:last-child td{border-bottom:0}.market-table tbody tr:hover td{background:#fbfdff}.market-table tbody tr.coin-row-link{cursor:pointer}.market-table tbody tr.coin-row-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.rank-cell{text-align:center!important;color:var(--muted)!important}.rank-cell span{min-width:26px;height:26px;display:inline-grid;place-items:center;border-radius:50%;background:var(--surface-2);border:1px solid var(--border)}.market-table tr:nth-child(-n+3) .rank-cell span{border-color:var(--accent);background:var(--accent-tint);color:var(--accent-dark);font-weight:800}.coin-cell{display:flex;align-items:center;gap:10px;text-align:left!important;font-family:var(--font)!important}.coin-identity-link{min-width:0;display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.coin-identity-link:hover .coin-name b{color:var(--accent-dark)}.coin-logo{position:relative;width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--accent-tint);color:var(--accent-dark);font:800 10px/1 var(--mono)}.coin-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--surface)}.coin-name{min-width:0;display:flex;flex-direction:column;gap:2px}.coin-name b{font:760 14px/1.2 var(--mono)}.coin-name small{overflow:hidden;color:var(--muted);font-size:12px;line-height:1.3;text-overflow:ellipsis}.price-cell{color:var(--fg);font-weight:680!important}.change{font-weight:760}.sparkline-cell{text-align:center!important}.sparkline{display:inline-flex;align-items:center;gap:5px}.sparkline svg{width:78px;height:38px;overflow:visible}.sparkline path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sparkline small,.trend-fallback{min-width:43px;font:700 11px/1 var(--mono)}.empty-row td{height:220px;color:var(--muted);text-align:center!important;font-family:var(--font)}.market-note{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;border-top:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:12px}.market-note a{color:var(--accent-dark)}@media(prefers-reduced-motion:reduce){.ticker-track.is-ready{animation:none}.market-ticker{overflow-x:auto}}@media(max-width:1080px){.market-layout{grid-template-columns:1fr}}@media(max-width:720px){.market-head{align-items:flex-start;padding-top:4px}.market-head h1{font-size:26px}.market-live{flex-wrap:wrap;justify-content:flex-end}.market-live #marketStatus{max-width:120px;overflow:hidden;text-overflow:ellipsis}.market-toolbar{align-items:stretch;flex-direction:column;gap:12px}.market-controls{align-items:stretch;flex-direction:column}.currency-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.market-search{width:100%}.market-summary{justify-content:space-between}.market-table-wrap{overflow:visible;background:var(--bg)}.market-table{min-width:0;display:block;padding:10px}.market-table thead{display:none}.market-table tbody{display:grid;gap:10px}.market-table tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow)}.market-table td{min-width:0;height:auto;padding:10px 12px;border-bottom:1px solid var(--border);font-size:12.5px;white-space:normal}.market-table td:before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font:500 11.5px/1.3 var(--font)}.market-table .rank-cell{position:absolute;top:14px;right:12px;z-index:1;padding:0;border:0}.market-table .rank-cell:before{display:none}.market-table .coin-cell{grid-column:1 / -1;min-height:66px;padding-right:54px}.market-table .coin-cell:before{display:none}.market-table .sparkline-cell{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;border-bottom:0;text-align:left!important}.market-table .sparkline-cell:before{margin:0}.sparkline{margin-left:auto}.sparkline svg{width:150px}.empty-row{display:block!important}.empty-row td{display:grid;place-items:center;height:180px}.empty-row td:before{display:none}.market-note{align-items:flex-start;flex-direction:column;gap:4px}}@media(max-width:440px){.market-head{flex-direction:column;gap:14px}.market-live{width:100%;justify-content:flex-start}.market-live #marketStatus{max-width:none}.market-live .icon-button{margin-left:auto}}
