:root{color-scheme:dark;-webkit-text-size-adjust:100%;text-size-adjust:100%;--bg:#0b0e17;--panel:#10141f;--text:#e7e9f0;--muted:#9096a6;--line:#1c2230;--accent:#689eff;--positive:#208647;--negative:#b3343b;--badge-width:105px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.market-home{max-width:1280px;margin:auto;padding:32px 28px 28px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:.23em;color:var(--muted);margin:0 0 9px}h1{font-size:32px;font-weight:650;letter-spacing:-.04em;margin:0}.page-subtitle{font-size:15px;color:var(--muted);font-weight:400;margin-left:20px;letter-spacing:0}.icon-button{background:var(--panel);border:1px solid var(--line);border-radius:12px;min-height:42px;padding:0 15px;font-size:14px}.icon-button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.list-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}.search-field{display:flex;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:0 12px;max-width:320px;height:42px;margin-right:auto}.search-field span{color:var(--muted);font-size:26px}.search-field input{background:transparent;border:0;color:var(--text);outline:0;width:100%;min-width:0;font-size:14px}.quiet-button{border:0;background:transparent;padding:9px 8px;color:var(--muted);font-size:13px;min-height:40px;white-space:nowrap}.quiet-button.selected{color:var(--accent)}.status-line{font-size:12px;color:var(--muted);margin:12px 0 16px;min-height:18px}.status-line.error{color:#e5b875}.market-table{width:100%}.table-head,.market-row{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(135px,1fr) 138px minmax(135px,1fr) minmax(125px,.9fr);align-items:center;column-gap:36px}.table-head{color:var(--muted);font-size:12px;padding:0 4px 15px;border-bottom:1px solid var(--line)}.table-head>span:not(:first-child):not(.change-column){text-align:right}.table-head .change-column{width:var(--badge-width);justify-self:end;text-align:center}.table-head small{display:block;font-size:10px;line-height:1.5}.market-row{position:relative;border-bottom:1px solid #151b27;min-height:93px;padding:12px 4px;user-select:none;-webkit-user-select:none}.market-row:hover{background:#ffffff03}.asset-cell{display:flex;align-items:center;min-width:0;gap:9px}.asset-link{display:block;color:inherit;text-decoration:none;border:0;background:none;text-align:left;padding:0;min-width:0}.asset-name{font-size:22px;font-weight:500;letter-spacing:-.02em}.asset-pair{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}.asset-source{font-size:12px;color:var(--muted);margin-top:7px;white-space:nowrap}.price-cell{text-align:right;min-width:0}.last-price{font-size:23px;font-weight:650;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}.price-note{font-size:11px;margin-top:7px;color:var(--muted)}.change-cell{text-align:right}.change-badge{display:inline-flex;align-items:center;justify-content:center;min-width:var(--badge-width);min-height:43px;padding:7px 10px;border-radius:7px;font-size:18px;font-weight:650;background:#252a37;font-variant-numeric:tabular-nums}.change-badge.up{background:var(--positive);color:#fff}.change-badge.down{background:var(--negative);color:#fff}.desktop-cell{text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.high-low span{display:block;line-height:1.7}.high-low span:last-child{color:var(--muted)}.drag-handle{display:none;background:none;border:0;color:var(--muted);font-size:22px;line-height:1;min-width:26px;min-height:44px;touch-action:none;padding:0}.is-editing .drag-handle{display:block}.is-dragged{opacity:.22}.drag-ghost{position:fixed;z-index:1000;pointer-events:none!important;background:#182030;border:1px solid #6c9cf055;border-radius:10px;box-shadow:0 16px 60px #0009;opacity:.97;transform:scale(1.015);margin:0}.drag-ghost *{pointer-events:none!important}.dragging{cursor:grabbing}.dragging *{cursor:grabbing!important}.page-footer{color:var(--muted);font-size:11px;line-height:1.8;margin-top:23px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 20px}.page-footer p{margin:4px 0 0;width:100%}#preview-warning{color:#b69b73}.empty-state{text-align:center;color:var(--muted);padding:45px 12px}.integration-notice{margin-top:22px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.integration-notice h2{font-size:20px;margin:0 0 10px}.integration-notice p{font-size:14px;line-height:1.8;color:var(--muted)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:no-preference){.change-badge{transition:background-color .2s}.market-row{transition:background-color .15s}}
@media(max-width:900px){.table-head,.market-row{grid-template-columns:minmax(110px,1fr) minmax(125px,1fr) 110px;column-gap:32px}.desktop-cell{display:none}.market-home{max-width:750px}}
@media(max-width:540px){
  :root{--badge-width:72px}
  .market-home{padding:20px 14px calc(20px + env(safe-area-inset-bottom))}
  .site-header{margin-bottom:20px}.eyebrow{font-size:9px}h1{font-size:27px}
  .page-subtitle{font-size:13px;margin-left:12px}.icon-button{font-size:12px;min-height:40px;padding:0 11px}
  .list-toolbar{gap:4px}.search-field{height:40px;min-width:0;width:calc(100% - 145px);padding:0 9px;gap:5px}
  .search-field input{font-size:12px}.quiet-button{font-size:12px;padding:8px 6px;min-height:44px}
  .table-head,.market-row{grid-template-columns:minmax(0,1fr) minmax(max-content,1fr) max-content;column-gap:14px}
  .table-head{font-size:10.5px;padding:0 0 12px}.table-head .change-column{width:var(--badge-width);overflow-wrap:anywhere}
  .market-row{padding:13px 0;min-height:82px}
  .asset-name{font-size:18px;line-height:1.3}.asset-pair{display:inline-block;font-size:10px;margin-left:3px}
  .asset-source{font-size:10.5px;line-height:1.4;margin-top:5px;white-space:normal}.asset-source span{display:inline-block;white-space:nowrap}
  .last-price{font-size:18px;line-height:1.3;letter-spacing:-.015em}
  .price-note{font-size:10.5px;line-height:1.4;margin-top:5px}
  .change-badge{min-width:var(--badge-width);min-height:36px;border-radius:5px;font-size:14.5px;padding:6px}
  .asset-cell{gap:3px}.is-editing .asset-name{font-size:18px}.is-editing .asset-pair{font-size:10px}
  .is-editing .drag-handle{min-width:22px;font-size:18px}
  .status-line{font-size:10.5px;line-height:1.5;margin-bottom:16px}.page-footer{font-size:10.5px}
}
@media(max-width:359px){
  :root{--badge-width:66px}.market-home{padding-left:12px;padding-right:12px}
  .table-head,.market-row{column-gap:12px}.last-price{font-size:17px}.asset-name{font-size:17px}
  .change-badge{font-size:13.5px}.page-subtitle{display:none}
}

/* Keep title, ordering and search together without shrinking quote rows. */
.site-header{gap:12px;margin-bottom:12px}
.market-heading{flex-shrink:0}
.list-toolbar{justify-content:flex-end;margin:0 0 0 auto;gap:4px}
.quiet-button{min-height:44px;min-width:44px}
.status-line{margin:0 0 6px;line-height:1.5}
.market-search-control{position:relative;align-self:center;flex-shrink:0}
.market-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--muted)}
.market-icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.market-icon-button:hover,.market-icon-button.selected,.market-icon-button[aria-expanded=true]{background:var(--panel);color:var(--accent)}
.market-popover{position:absolute;z-index:20;background:#151c2b;border:1px solid #334054;border-radius:12px;padding:8px;color:var(--text);box-shadow:0 6px 20px #0005}
.market-search-popover{display:flex;right:0;top:calc(100% + 6px);width:min(330px,calc(100vw - 28px));gap:4px;align-items:center}
.market-search-popover .search-field{width:auto;flex:1;margin:0;padding:0 9px;min-width:0}
.market-search-popover .search-field input{font-size:16px}
.table-head .change-column{position:relative}
#market-change-open{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-height:44px;padding:2px 0;background:none;border:0;color:inherit;font-size:inherit;line-height:1.4}
#market-change-open svg{width:12px;height:12px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6}
.market-change-popover{right:0;top:100%;width:min(192px,calc(100vw - 28px));text-align:left;font-variant-numeric:tabular-nums}
.market-change-popover button{display:block;width:100%;min-height:44px;padding:8px 12px 8px 30px;border:0;border-radius:7px;background:none;text-align:left;font-size:14px;position:relative}
.market-change-popover button[aria-pressed=true]{background:#244460}
.market-change-popover button[aria-pressed=true]::before{content:'✓';position:absolute;left:10px}
.market-change-popover p{margin:6px 10px 2px;font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:540px){
  .market-home{padding-top:12px}
  .site-header{gap:4px;margin-bottom:4px;min-height:44px}
  .eyebrow,.page-subtitle{display:none}
  h1{font-size:22px;line-height:1.2}
  .list-toolbar{gap:2px}
  .quiet-button{padding:8px 6px}
  .market-search-popover{top:100%}
  .status-line{font-size:11px;line-height:1.5;margin:0 0 2px}
  .table-head{font-size:11px;padding-bottom:8px}
}
/* Flash the real tick independently from the persistent 24h sign. */
.market-row .last-price{transition:color .25s}
.market-row.tick-up .last-price{color:#76e5ae;transition:none}
.market-row.tick-down .last-price{color:#ff9b9b;transition:none}
.market-row.tick-up .change-badge{background:var(--positive);transition:none}
.market-row.tick-down .change-badge{background:var(--negative);transition:none}
.market-row .drag-handle:focus-visible{opacity:1;display:block}
@media(prefers-reduced-motion:reduce){.market-row .last-price{transition:none}}
