/* Independent premium preview: restrained surfaces, clearer data hierarchy. */
@font-face { font-family:WatchUI; src:local("Segoe UI Variable Text"),local("Segoe UI"); font-style:normal; font-weight:100 900; font-display:swap; }
:root { --bg:#0b0e13; --panel:#10141b; --panel-2:#151b24; --line:#242c38; --line-soft:#1b222c; --text:#ecf0f6; --muted:#99a5b5; --subtle:#778495; --green:#4bd4a5; --red:#f07889; --accent:#82a8ff; }
body { background:var(--bg); font-family:WatchUI,"Segoe UI",system-ui,sans-serif; }
.shell { width:min(1500px,calc(100% - 48px)); padding-top:16px; }
.topbar { margin-bottom:14px; min-height:28px; }
.preview-label { display:flex; align-items:center; gap:10px; color:#9aa8bc; font-size:11px; letter-spacing:.04em; }
.preview-label b { font-weight:600; color:#c3d2e9; }
.preview-label a { color:#8c9bb0; text-decoration:none; border-left:1px solid var(--line); padding-left:10px; }
.preview-label a:hover { color:white; }
.header-actions { gap:12px; }
.header-actions .refresh { height:28px; padding:0 8px; border:0; background:transparent; font-size:11px; }
.live-state { font-size:11px; }
.live-dot { width:5px; height:5px; box-shadow:none; }
.market-overview { border-radius:10px; border-color:var(--line-soft); background:var(--line-soft); }
.overview-item { padding:11px 13px; gap:6px; min-height:82px; background:#10141a; }
.overview-name { color:#f3f6fa; }
.overview-logo { width:18px; height:18px; flex-basis:18px; }
.overview-item .overview-price { font-size:14px; font-weight:600; letter-spacing:-.02em; }
.overview-item strong { font-size:12px; font-weight:500; }
.overview-add { flex-basis:34px; min-height:60px; font-size:20px; }
.tabs { gap:6px; margin:22px 0 14px; align-items:center; }
.tab { min-width:0; min-height:42px; display:flex; align-items:center; gap:9px; padding:9px 11px; border-color:#303b4d; background:#151d29; border-radius:8px; color:#bfccdd; }
.tab.renameable { padding-right:48px; }
.tab .watchlist-title { font-size:12px; font-weight:600; gap:6px; white-space:nowrap; }
.tab small { font-size:10px; margin:0; color:#788697; font-variant-numeric:tabular-nums; }
.tab.active { background:#253d60; border-color:#6389c5; color:#fff; box-shadow:inset 0 1px 0 #ffffff0d; }
.tab.active small { color:#9bb7e4; }
.tab:hover { border-color:#526783; background:#202d40; color:#f2f6fc; }
.tab.active:hover { border-color:#82a8e4; background:#2b466d; }
.watchlist-icon { width:15px; height:15px; }
.watchlist-rename { right:22px; width:22px; height:22px; padding:3px; }
.watchlist-rename svg { width:15px; height:15px; }
.watchlist-create { width:27px; height:27px; flex-basis:27px; font-size:19px; background:transparent; border-color:#2a3545; border-radius:7px; }
.manager-toolbar { margin:0 0 14px; gap:14px; }
.manager-toolbar > .global-search-wrap { flex-basis:360px; }
#global-search,.search { height:34px; border:1px solid #283341; background:#111821; border-radius:7px; font-size:12px; }
#global-search { padding-left:32px; }
.global-search-wrap::before { content:''; position:absolute; left:12px; top:10px; width:10px; height:10px; border:1.5px solid #8493a7; border-radius:50%; pointer-events:none; }
.global-search-wrap::after { content:''; position:absolute; left:22px; top:21px; height:5px; width:1.5px; background:#8493a7; transform:rotate(-45deg); pointer-events:none; }
#global-search::placeholder,.search::placeholder { color:#8694a7; }
#global-search:focus,.search:focus { border-color:#668bc7; box-shadow:0 0 0 3px #759fff0b; }
.intraday-option,.movement-setting { font-size:11px; gap:7px; color:#9cabbc; }
input[type=checkbox] { appearance:none; position:relative; flex:0 0 26px; width:26px; height:15px; border:1px solid #455165; border-radius:20px; background:#232c38; vertical-align:middle; cursor:pointer; margin:0; transition:background .14s,border-color .14s; }
input[type=checkbox]::after { content:''; position:absolute; width:9px; height:9px; top:2px; left:2px; background:#b4bdc9; border-radius:50%; transition:transform .14s; }
input[type=checkbox]:checked { background:#5076b6; border-color:#7298d2; }
input[type=checkbox]:checked::after { transform:translateX(11px); background:white; }
input[type=checkbox]:focus-visible { outline:2px solid #91b3ff; outline-offset:3px; }
.manager-toolbar #alert-settings-button { height:30px; padding:4px 9px; background:transparent; border-color:#2b384b; color:#b5c4d9; font-size:11px; border-radius:7px; }
#alert-settings-button::before { content:none; }
#alert-settings-button svg { width:14px; height:14px; }
.panel { border-radius:10px; border:1px solid #27303d; background:var(--panel); box-shadow:none; }
.panel-head { min-height:62px; padding:13px 17px; border-bottom:1px solid #27303d; gap:10px; }
.panel-head h2 { font-size:15px; font-weight:600; letter-spacing:-.02em; }
.result-count { background:transparent; color:#8b9bb0; font-size:11px; font-weight:400; padding:0 3px; }
.search { width:285px; }
th { height:37px; padding:9px 13px; color:#91a0b4; font-size:10px; font-weight:600; letter-spacing:.045em; }
td { height:54px; padding:10px 13px; border-bottom:1px solid #1c232e; }
tbody tr:hover,tbody tr[data-url]:hover { background:#18202c; }
.asset-mark { width:28px; height:28px; flex-basis:28px; border-radius:8px; }
.asset-symbol { font-size:13px; font-weight:600; }
.asset-name { color:#8795a8; font-size:11px; }
.rank { color:#8592a4; font-size:10px; }
.rank.crypto-rank { width:44px; flex:0 0 44px; margin-right:9px; font-size:11px; font-weight:500; white-space:nowrap; font-variant-numeric:tabular-nums; }
.crypto-rank-prefix { margin-right:1px; color:#627188; }
@media(max-width:700px) { .rank.crypto-rank { width:40px; flex-basis:40px; margin-right:6px; } }
.price,.market-cap { font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.change { min-width:66px; padding:4px 0; font-size:12px; font-weight:500; text-align:right; font-variant-numeric:tabular-nums; border-radius:0; background:transparent; }
.flat { background:transparent; color:#9ba6b3; }
.favorite-button { opacity:.35; transition:opacity .12s,color .12s; }
tr:hover .favorite-button,.favorite-button:focus-visible,.favorite-button.active { opacity:1; }
.drag-handle { opacity:0; font-size:15px; padding:3px; transition:opacity .12s; }
tr:hover .drag-handle,tr:focus-within .drag-handle { opacity:.7; }
.company-tooltip { border:1px solid #3a485d; background:#141b25; border-radius:10px; padding:18px; box-shadow:0 14px 45px #0007; }
.tip-heading strong { font-size:15px; font-weight:600; }
.tip-heading div>span { font-size:11px; color:#91a2ba; }
.tip-summary { font-size:12px; line-height:1.65; color:#c6d1df; margin:12px 0 16px; }
.tip-facts { gap:13px 18px; border-color:#2b3849; }
.tip-note { font-size:10px; color:#8697ae; }
.tip-theme,.exposure-tag { background:#233148; color:#acc0dc; font-weight:500; }
dialog { background:#121923; border:1px solid #354358; border-radius:12px; padding:24px; box-shadow:0 24px 90px #0009; }
dialog::backdrop { background:#05080eb8; }
dialog h2 { font-size:18px; font-weight:600; letter-spacing:-.02em; }
dialog input { font-size:13px; border-radius:7px; background:#0e141e; border-color:#354258; padding:11px 12px; }
dialog button,.watchlist-actions button { border-radius:7px; background:#202e42; border-color:#394c67; font-size:12px; transition:background .14s; }
dialog button:hover { background:#2a3c55; }
#save-list { background:#416cad; color:white; border-color:#5882bf; }
.symbol-result { padding:12px 2px; border-color:#253143; }
.symbol-result strong { font-size:13px; font-weight:600; }
#global-results { background:#141c28; border-color:#35445d; border-radius:9px; }
footer { font-size:10px; color:#7c8ca3; padding-top:14px; }
@media(hover:none) { .drag-handle,.favorite-button,.watchlist-rename { opacity:1; } }
@media(max-width:700px) { .shell { width:calc(100% - 24px); padding-top:12px; } .topbar { flex-wrap:wrap; gap:8px; } .header-actions { width:auto; margin-left:auto; } .preview-label { font-size:10px; } .tabs { gap:4px; margin-top:16px; } .tab { flex:0 1 auto; min-width:0; min-height:38px; padding:8px 24px 8px 8px; gap:5px; } .tab.renameable { padding-right:45px; } .tab .watchlist-title { font-size:11px; } .tab small { font-size:9px; } .overview-item { min-height:75px; padding:9px; } .overview-custom { flex-basis:100px; } .manager-toolbar { gap:10px; } .manager-toolbar>.global-search-wrap { flex-basis:100%; } .panel-head { padding:12px; } .panel-actions { width:100%; } .search-wrap,.search { width:100%; } .panel { border-radius:8px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; } }
.topbar .preview-label { margin-right:auto; }
@media(max-width:700px) {
 .market-overview { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
 .overview-custom { flex:0 0 132px; }
 .overview-item { flex:1 0 auto; }
 .overview-add { flex:0 0 34px; }
 .header-actions { gap:6px; }
 .header-actions .live-state { font-size:10px; }
 .preview-label { flex-wrap:wrap; gap:6px; }
 .tabs .tab small { display:none; }
 .tab { min-height:36px; }
}
.watchlist-sections { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; padding:12px 17px; border-bottom:1px solid var(--line); }
.watchlist-sections[hidden] { display:none; }
.section-buttons { display:flex; flex:1 1 500px; flex-wrap:wrap; gap:6px; min-width:0; }
.section-filter { display:flex; align-items:center; gap:7px; padding:6px 10px; background:#151d29; color:#aebbd0; border:1px solid #303b4d; border-radius:6px; font-size:11px; cursor:pointer; }
.section-filter small { font-size:10px; opacity:.65; font-variant-numeric:tabular-nums; }
.section-filter:hover:not(:disabled) { background:#202d40; border-color:#526783; }
.section-filter.active { color:#fff; background:#253d60; border-color:#6389c5; }
.section-filter:disabled { opacity:.4; cursor:default; }
.section-filter:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.section-performance { padding-left:6px; border-left:1px solid #ffffff12; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; background:transparent; }
.section-performance.positive { color:var(--green); }
.section-performance.negative { color:var(--red); }
.section-performance.flat { color:var(--muted); }
@media(max-width:700px) { .watchlist-sections { padding:10px 12px; } .section-filter { padding:6px 8px; } }
.quote-unit { display:block; margin-top:3px; font-size:10px; color:#93a2b8; font-weight:400; }
.stock-value-column { display:none; }
.commodities-mode .market-cap-column,.commodities-mode td.market-cap { display:none; }
.commodities-mode .stock-value-column { display:table-cell; }
.stock-value-column { font-size:12px; font-variant-numeric:tabular-nums; }
.stock-estimate { color:inherit; text-decoration:underline dotted #64758c; text-underline-offset:4px; }
.stock-estimate:hover,.stock-estimate:focus-visible { color:#e2c98d; }
.stock-date { display:block; margin-top:4px; font-size:10px; color:#93a2b8; }
.tip-stock-value { border-top:1px solid var(--line); margin-top:10px; padding-top:8px; }
.tip-stock-value p { margin:5px 0; font-size:11px; line-height:1.45; color:#9dacc0; }
.tip-stock-value strong { color:#dce5f2; font-weight:500; }
.ranking-value-column { display:none; }
.global-ranking-mode .market-cap-column,.global-ranking-mode td.market-cap { display:none; }
.global-ranking-mode .ranking-value-column { display:table-cell; white-space:nowrap; font-size:12px; font-variant-numeric:tabular-nums; }
.ranking-metric { display:block; margin-top:3px; font-size:10px; color:#93a2b8; font-weight:400; }
.ranking-asset-type { font-size:9px; font-weight:400; color:#8ea3be; border:1px solid #304057; border-radius:4px; padding:2px 4px; }
.ranking-methodology { padding:9px 17px; border-bottom:1px solid var(--line); font-size:11px; color:#97a8bf; }
.ranking-methodology[hidden],.ranking-status[hidden] { display:none; }
.ranking-methodology summary { cursor:pointer; width:fit-content; }
.ranking-methodology p { max-width:960px; line-height:1.6; margin:9px 0; }
.ranking-methodology a { color:#afc8ed; }
.ranking-status { margin:0; padding:10px 17px; color:#d5b97f; font-size:11px; border-bottom:1px solid var(--line); }
.tab[data-list="commodities"] .watchlist-icon { color:#d4b778; }
.overview-custom .overview-item { cursor:grab; touch-action:none; user-select:none; }
.overview-custom.overview-dragging { opacity:.25; outline:1px dashed var(--accent); outline-offset:-2px; }
.overview-custom.overview-drop-target { box-shadow:inset 4px 0 #9ab5ff,0 0 0 2px #7094ff40; }
.overview-custom.overview-drop-target .overview-item { background:#253d60; }
.overview-drag-preview { position:fixed; z-index:10000; pointer-events:none !important; opacity:.78; transform:scale(1.06) rotate(-2deg); box-shadow:0 14px 35px #0009; outline:1px solid #a2baff; border-radius:8px; overflow:hidden; transition:none; margin:0; }
.overview-drag-preview * { pointer-events:none !important; }
.overview-drag-preview .overview-remove { display:none; }
.overview-drag-active,.overview-drag-active * { cursor:grabbing !important; user-select:none; }
.crypto-rank-filters { display:flex; flex:1 1 100%; align-items:center; flex-wrap:wrap; gap:6px; border-top:1px solid var(--line-soft); padding-top:10px; }
.rank-filter-label { color:var(--muted); font-size:10px; margin-right:4px; }
@media(prefers-reduced-motion:reduce) { .overview-drag-preview { transform:none; } }
.tab.removable { padding-right:60px; }
.tab.removable .watchlist-rename { right:32px; display:flex; align-items:center; justify-content:center; width:24px; height:24px; padding:0; }
.tab .watchlist-delete { position:absolute; right:6px; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:24px; height:24px; padding:0; border:0; border-radius:50%; color:#8291a5; background:transparent; font-size:0; line-height:0; cursor:pointer; touch-action:manipulation; opacity:0; pointer-events:none; transition:opacity .16s ease,color .16s ease,background .16s ease,transform .16s ease; }
.tab .watchlist-delete svg { display:block; width:14px; height:14px; flex:none; pointer-events:none; }
.tab:hover .watchlist-delete,.tab .watchlist-delete:focus-visible { opacity:1; pointer-events:auto; color:#bac7d8; }
.tab .watchlist-delete:hover,.tab .watchlist-delete:focus-visible { color:#ff9aa7; background:#f078891a; }
.tab .watchlist-delete:active { transform:translateY(-50%) scale(.92); background:#f0788929; }
.tab .watchlist-delete:focus-visible { outline:1px solid #f39ba8; outline-offset:2px; }
@media(hover:none) { .tab .watchlist-delete { opacity:1; pointer-events:auto; } }
.watchlist-delete-dialog { width:min(400px,calc(100vw - 32px)); padding:24px; }
.watchlist-delete-dialog p { margin:12px 0 24px; color:#a9b7ca; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.watchlist-delete-dialog strong { color:#dce5f2; font-weight:500; }
.delete-dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
.delete-dialog-actions button { padding:9px 14px; }
.delete-dialog-actions .confirm-delete { color:#ffb3bc; background:#f0788917; border-color:#f0788938; }
.delete-dialog-actions .confirm-delete:hover { color:#ffd8de; background:#f078892b; border-color:#f0788970; }
.delete-dialog-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:700px) { .tab:not(.removable) { padding-right:8px; } }

/* Both search fields use the same vector icon. */
.global-search-wrap::before,.global-search-wrap::after{content:none}
.global-search-wrap>svg,.search-wrap>svg{position:absolute;left:11px;top:50%;width:14px;height:14px;transform:translateY(-50%);fill:none;stroke:#8493a7;stroke-width:1.8;pointer-events:none}
@media(max-width:700px){#mobile-search .global-search-wrap>svg,#mobile-search .search-wrap>svg{width:16px;height:16px;left:13px}}

.tabs .tab.asset-list-drop-target{background:#294560!important;border-color:#9bbdde!important;box-shadow:0 0 0 2px #88b5eb55,inset 0 0 0 1px #ffffff15;transform:translateY(-2px)}
