/* Homepage: query and personal market first */
.development-notice { margin:6px 10px; width:calc(100% - 20px); padding:7px 10px; flex-direction:row; align-items:center; }
.development-notice-text .cp-notice-lines strong {font-size:12px}
.development-notice-text .cp-notice-lines > span {font-size:11px}
.development-notice #report-bug-button {min-width:80px;min-height:44px;font-size:11px;padding:8px}
.market-tabs {overflow-x:auto}
.market-tabs button {min-height:44px;flex-shrink:0}
.market-search input {font-size:16px!important}
#watchlist-home {padding:16px 0;border-bottom:1px solid #263a50;margin-bottom:10px}
#watchlist-title {font-size:17px;margin:0 0 6px}
#watchlist-home p {font-size:12px;color:#a5b8ce;line-height:1.5;margin:0 0 12px}
#watchlist-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#watchlist-cards .watchlist-empty {grid-column:1/-1;border:1px dashed #36536f;border-radius:10px;padding:12px;margin:0}
.watchlist-card {display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;background:#14253a;border:1px solid #34506c;border-radius:10px;color:#edf4ff;font:inherit;text-align:left;min-height:90px}
.watchlist-card span {font-size:16px;font-weight:700}
.watchlist-card small {font-size:12px}
#refresh {min-width:44px;min-height:44px}
.cp-row-star {min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.market-status {line-height:1.6;align-items:flex-start}
#detail {scroll-margin-top:12px}
@media(max-width:390px){.development-notice {flex-direction:row;align-items:center}.development-notice #report-bug-button {align-self:center}.market-tabs {gap:4px}.market-tabs button {padding:8px;font-size:10px}}
#watchlist-cards .watchlist-card {width:100%;max-width:none;min-width:0;box-sizing:border-box;white-space:normal}
#watchlist-cards .watchlist-card small {white-space:nowrap}
#watchlist-cards .watchlist-card {height:auto}

/* Quiet brand ornament for the beta banner. */
.beta-mark {display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #42658b;border-radius:9px;background:#1b3653;color:#80b8ff;font-size:21px}
.beta-pulse {flex:1 1 100px;max-width:240px;min-width:50px;height:40px;margin:0 18px;overflow:visible;color:#66aaff}
.beta-pulse path {fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;opacity:.6}
.beta-pulse .beta-baseline {opacity:.12;stroke-width:1}
.beta-pulse circle {fill:#4dd8bd;opacity:.85}
@media(max-width:520px){.beta-pulse{display:none}.beta-mark{flex-basis:25px;height:25px;font-size:18px}.development-notice{gap:8px}}
/* Candle inspection must stay compact on desktop and mobile. */
#detail .chart-ohlc-strip {box-sizing:border-box;width:100%;padding:10px 12px!important;margin:10px 0 12px!important;border:1px solid #2b425b;border-radius:10px;background:#0c192a}
#detail .ohlc-time {font-size:11px!important;line-height:1.5;color:#9db4ce;margin:0 0 8px}
#detail .ohlc-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#detail .ohlc-item {display:flex;flex-direction:column;gap:4px;min-width:0}
#detail .ohlc-item span {font-size:9px!important;letter-spacing:.06em;color:#9db4ce}
#detail .ohlc-item strong {font-size:13px!important;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:360px){#detail .ohlc-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep beta copy readable; ornament uses remaining space only. */
.development-notice .development-notice-text {flex:0 0 auto;min-width:0}
.development-notice .cp-notice-lines strong,.development-notice .cp-notice-lines > span {white-space:nowrap}
.development-notice .beta-pulse {flex:1 1 0;min-width:0;max-width:200px;margin:0 12px}
@media(max-width:600px){.development-notice .beta-pulse{display:none}.development-notice .development-notice-text{flex:1 1 auto}.development-notice .cp-notice-lines strong{font-size:11px}.development-notice .cp-notice-lines > span{font-size:10px}}
@media(max-width:350px){.development-notice .beta-mark{display:none}}

/* Market overview occupies the first mobile screen. */
@media(max-width:600px){
.header{height:52px;min-height:52px;padding-top:4px;padding-bottom:4px}
.development-notice{margin-top:4px;margin-bottom:4px;padding:5px 8px}
.development-notice .cp-notice-lines > span{display:none}
.ticker-section{display:none}
.market-intro{margin-bottom:8px}
.market-intro>.eyebrow{display:none}
.market-intro h1{font-size:23px}
.market-status{font-size:10px}
.stats{gap:6px;margin-bottom:8px}
.stat{min-height:54px;padding:7px 9px}
.stat strong{font-size:16px}
.heatmap{height:290px!important;min-height:290px!important}
.heatmap-section{margin-top:6px;margin-bottom:16px}
}
button:focus-visible,input:focus-visible{outline:2px solid #80b8ff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Calm, consistent chart typography. */
#detail .chart-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
#detail .chart-heading > span {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;font-weight:600;letter-spacing:.02em;color:#c4d3e5}
#detail .chart-ranges {display:flex;align-items:center;padding:4px;gap:4px;border-radius:12px}
#detail .chart-ranges button {font-family:inherit;font-size:13px;font-weight:600;letter-spacing:0;min-width:40px;min-height:40px;padding:0 10px;line-height:40px;text-align:center;border-radius:8px}
#detail .chart-stats {display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
#detail .chart-stats span {display:block;text-align:center;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
#detail .ohlc-time {text-align:center}
#detail .ohlc-item {align-items:center;text-align:center}
#detail .ohlc-item strong {font-variant-numeric:tabular-nums;font-weight:600}

.watchlist-entry{position:relative;min-width:0}.watchlist-entry .watchlist-card{padding-right:40px!important;height:100%!important}.watchlist-remove{position:absolute;right:0;top:0;width:40px;height:40px;border:0;background:transparent;color:#9db4ce;font-size:22px;cursor:pointer}#detail #chart-data-status{font-size:11px;color:#9db4ce;line-height:1.5;margin:8px 0;text-align:center}

/* Unified reading hierarchy for lists and supporting copy. */
body,button,input {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
#market-explorer h2,.trending-section h2 {font-size:20px;font-weight:650;line-height:1.25;letter-spacing:-.025em}
#watchlist-title {font-size:15px;font-weight:600;line-height:1.4;letter-spacing:-.01em;margin-bottom:4px}
#watchlist-home {padding:16px 0 14px}
#watchlist-home > p {font-size:11px;line-height:1.5;color:#899eb7;margin-bottom:10px}
#watchlist-cards .watchlist-empty {font-size:12px;font-weight:400;line-height:1.6;color:#a6b8cd;padding:12px 14px;border-style:solid;border-color:#283e56;background:#0e1d30;border-radius:9px}
.trending-description {font-size:12px;font-weight:400;line-height:1.6;color:#94a9c1;margin-top:8px;margin-bottom:16px}
#market-explorer .market-identity strong,.trending-row strong {font-size:13px;font-weight:600;letter-spacing:-.01em;line-height:1.4}
#market-explorer .market-values strong {font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0}
#market-explorer .market-identity small {font-size:10px;font-weight:400;line-height:1.5;color:#8fa5bf}
#market-explorer .market-values small {font-size:11px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums}
#market-explorer .market-tabs button {font-family:inherit;font-weight:500;letter-spacing:0}
#explorer-expand-button:not([hidden]),#trending-toggle {font-family:inherit;font-size:12px;font-weight:600;letter-spacing:0;min-height:44px}
#detail .detail-placeholder {font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.6;text-align:center;color:#94a9c1;padding:8px 4px}
.heatmap-footer {font-size:9px;letter-spacing:.025em;line-height:1.5}
/* Match trending rows to the main market list. */
#trending-list .trending-name strong {font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:-.01em}
#trending-list .trending-name small {font-size:10px;font-weight:400;line-height:1.5;color:#8fa5bf}
#trending-list .trending-value strong {font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:0;text-align:right}
#trending-list .trending-value small {font-size:11px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums;text-align:right}
#market-explorer .market-values strong,#market-explorer .market-values small {text-align:right;width:100%}
#market-explorer .market-identity strong,#trending-list .trending-name strong {overflow-wrap:anywhere}
