/* watchlist.css — Excel-style watchlist grid. Token-driven (dark/light). */
#watchlists.active-view { display: flex; flex-direction: column; }

.wl-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.wl-tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.wl-tab:hover { color: var(--text); border-color: var(--accent-line); }
.wl-tab.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-strong); }
.wl-tab-n { font-style: normal; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.wl-tab-x { font-style: normal; width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; color: var(--muted-2); }
.wl-tab-x:hover { background: var(--red); color: #fff; }
.wl-tab-add { width: 32px; height: 32px; border-radius: 9px; border: 1px dashed var(--border); background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.wl-tab-add:hover { border-color: var(--accent); color: var(--accent); }

.wl-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wl-add { width: 360px; max-width: 50vw; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-strong); font-size: 13px; }
.wl-add:focus { outline: 2px solid var(--accent-line); }
.wl-flex { flex: 1; }
.wl-filters { display: inline-flex; gap: 6px; }
.wl-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 12px; font-weight: 600; }
.wl-chip button { width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; }
.wl-chip button:hover { background: var(--accent); color: #fff; }
.wl-count { color: var(--muted); font-size: 12px; font-family: var(--mono); }

.wl-grid-wrap { flex: 1; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); max-height: calc(100vh - 240px); }
.wl-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wl-grid th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); color: var(--muted); text-align: right; padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.wl-grid th.wl-th-sym { text-align: left; }
.wl-grid th.sorted { color: var(--accent); }
.wl-grid th:hover { color: var(--text-strong); }
.wl-grid td { padding: 7px 12px; text-align: right; border-bottom: 1px solid var(--border-soft); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.wl-grid tbody tr:nth-child(even) td { background: var(--inset); }
.wl-grid tbody tr:hover td { background: var(--accent-soft); }
.wl-sym { text-align: left !important; font-family: "Inter", sans-serif; }
.wl-sym-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--panel-3); color: var(--accent); font-size: 10px; font-weight: 800; margin-right: 8px; vertical-align: middle; }
.wl-sym strong { color: var(--text-strong); }
.wl-note input { width: 150px; height: 26px; border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 6px; padding: 0 7px; font-family: "Inter", sans-serif; text-align: left; }
.wl-note input:hover { border-color: var(--border); }
.wl-note input:focus { border-color: var(--accent-line); background: var(--panel-2); outline: none; }
.wl-rowx button { width: 22px; height: 22px; border: 0; background: transparent; color: var(--muted-2); border-radius: 5px; cursor: pointer; }
.wl-rowx button:hover { background: var(--red-soft); color: var(--red); }
.wl-load { color: var(--muted-2); }
.wl-empty { text-align: center; color: var(--muted-2); padding: 36px; font-family: "Inter", sans-serif; }

.wl-colpop { position: absolute; right: 24px; z-index: 60; width: 220px; max-height: 70vh; overflow: auto; margin-top: 4px; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.wl-colpop-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 4px 6px 6px; font-weight: 700; }
.wl-colpop-group { font-size: 10.5px; color: var(--accent); padding: 8px 6px 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.wl-colpop-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.wl-colpop-row:hover { background: var(--panel-2); }

@media (max-width: 760px) { .wl-add { max-width: 100%; width: 100%; } .wl-toolbar { flex-wrap: wrap; } }
