/* r322: watchlist market tabs and the details panel under it, pro chart style. Theme variables only. */
.wl-pre { display: flex; gap: 6px; padding: 10px 12px 6px; overflow-x: auto; scrollbar-width: none; }
.wl-pre::-webkit-scrollbar { display: none; }
.wl-pre-b { flex: none; height: 28px; padding: 0 11px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--t2); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wl-pre-b:hover { background: var(--fill); color: var(--t1); }
.wl-pre-b.on { background: var(--t1); border-color: var(--t1); color: var(--card); }
.wl-tabs .wl-tabs-l { margin: 0 4px 0 2px; font-size: 11px; font-weight: 600; color: var(--t3); white-space: nowrap; }
.wl-pre-note { padding: 2px 14px 6px; font-size: 11px; color: var(--t3); }

/* details panel under the watchlist */
.market-details { border-top: 1px solid var(--hair); padding: 14px 14px 10px; }
.market-details:empty { display: none; }
.market-details .mi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-details .mi-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.market-details .mi-head .w-logo { width: 36px !important; height: 36px !important; flex: none; }
.market-details .mi-head b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.market-details .mi-head small { display: block; font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.market-details .mi-ex { padding: 1px 5px; border-radius: 4px; background: var(--fill-2); color: var(--t2); font-style: normal; font-size: 10px; font-weight: 700; }
.market-details .mi-badge { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--t2); font-size: 10.5px; font-weight: 600; }
.market-details .mi-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 2px; }
.market-details .mi-px { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.market-details .mi-chg { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.market-details .mi-chg b { font-weight: 600; }
.market-details .up { color: var(--up, #089981); } .market-details .dn { color: var(--down, #f23645); }
.market-details .mi-muted { margin: 2px 0 8px; font-size: 11px; color: var(--t3); }
.market-details .mi-ohlc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 4px; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.market-details .mi-ohlc > div { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border-right: 1px solid var(--hair); min-width: 0; }
.market-details .mi-ohlc > div:last-child { border-right: 0; }
.market-details .mi-ohlc span { font-size: 10.5px; font-weight: 700; color: var(--t3); }
.market-details .mi-ohlc b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-details .mi-rbox { margin: 12px 0 0; }
.market-details .mi-range { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.market-details .mi-range b { font-size: 11px; font-weight: 600; color: var(--t3); }
.market-details .mi-track { position: relative; height: 4px; margin-top: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--down, #f23645), var(--t4, #b2b5be) 50%, var(--up, #089981)); opacity: .9; }
.market-details .mi-track i { position: absolute; top: -4px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--t1); box-shadow: 0 0 0 2px var(--card); }
.market-details .mi-h { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.market-details .mi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); }
.market-details .mi-grid > * { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.market-details details { margin-top: 10px; border: 1px solid var(--hair); border-radius: 10px; padding: 0 10px; }
.market-details details > summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; }
.market-details details > summary::-webkit-details-marker { display: none; }
.market-details .mi-actions { display: flex; gap: 8px; margin-top: 12px; }
.market-details .mi-actions .btn { flex: 1; height: 34px; justify-content: center; }

/* r325: one tab row (own list first), search + settings bar, rename box */
.wl-pre-b.wl-mine { display: inline-flex; align-items: center; gap: 5px; padding: 0 9px 0 8px; }
.wl-pre-b.wl-mine svg { width: 13px; height: 13px; flex: none; }
.wl-pre-b.wl-mine svg:last-child { width: 11px; height: 11px; opacity: .7; }
.wl-pre-b.wl-mine span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.wl-bar { display: flex; align-items: center; gap: 6px; padding: 2px 12px 6px; }
.wl-bar .wl-search { flex: 1; min-width: 0; margin: 0 !important; }
.wl-bar .wl-gear { flex: none; width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 9px; }
.wl-pre-note { display: flex; align-items: center; gap: 6px; }
.wl-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up, #089981); box-shadow: 0 0 0 2px color-mix(in srgb, var(--up, #089981) 25%, transparent); animation: wl325 1.6s ease-in-out infinite; }
@keyframes wl325 { 50% { opacity: .35; } }
.wl-rename { display: flex; flex-direction: column; gap: 8px; min-width: 240px; padding: 4px; }
.wl-rename input { height: 38px; padding: 0 10px; border: 1px solid var(--hair); border-radius: 9px; background: var(--fill); color: var(--t1); font: inherit; font-size: 14px; }
.wl-rename input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.wl-rename .err:empty { display: none; }
.wl-rename-b { display: flex; justify-content: flex-end; gap: 6px; }
.wl-rename-b .btn { height: 34px; }
.pop .wl-li { display: flex; justify-content: space-between; gap: 14px; }
.pop .wl-li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
