/* MyBot-Trade — Watchlist (2026-10-06) */
.wl-star { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.22rem 0.65rem !important; min-height: 30px; border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--border)) !important; background: var(--panel2) !important; color: var(--gold) !important;
  font-weight: 700; font-size: 0.8rem; line-height: 1.1; white-space: nowrap; box-shadow: none !important; cursor: pointer; }
.wl-star.on { background: color-mix(in srgb, var(--gold) 18%, var(--panel)) !important; }
.wl-star:disabled { opacity: 0.6; }
.wl-star-note { margin: 0.35rem 0 0; }
#tab-watchlist { min-width: 0; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0; }
.wl-chips .chip { font-size: 0.74rem; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.wl-msg { margin: 0.45rem 0; padding: 0.45rem 0.65rem; border-radius: 10px; background: var(--panel2); border: 1px solid var(--border); font-size: 0.82rem; overflow-wrap: anywhere; }
.wl-msg.warn { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); color: var(--bad); }
.wl-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin: 0.5rem 0; }
.wl-toolbar > form { flex: 1 1 260px; min-width: 0; }
.wl-add { display: flex; gap: 0.4rem; min-width: 0; }
.wl-add button { flex: 0 0 auto; white-space: nowrap; }
.wl-wait { margin: 0.5rem 0 0.35rem; }
.wl-add input { flex: 1 1 auto; min-width: 0; padding: 0.5rem 0.7rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text); font: inherit; }
.wl-login { display: flex; flex-direction: column; gap: 0.35rem; }
.wl-count { white-space: nowrap; }
.wl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.6rem; margin-top: 0.4rem; }
.wl-card { min-width: 0; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm, 14px); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-sm, none); }
.wl-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wl-name { min-width: 0; overflow-wrap: anywhere; }
.wl-name strong { font-size: 1.05rem; }
.wl-head-r { display: flex; align-items: center; gap: 0.45rem; }
.wl-remove { padding: 0.2rem 0.6rem !important; min-height: 28px; font-size: 0.76rem; }
.wl-tf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; margin: 0.55rem 0 0.35rem; }
.wl-tfp { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 0.3rem 0.2rem; border-radius: 10px; border: 1px solid var(--border); background: var(--panel2); font-size: 0.72rem; min-width: 0; }
.wl-tfp .wl-tfn { color: var(--muted); font-weight: 650; }
.wl-tfp b { font-size: 0.86rem; }
.wl-tfp .wl-tfd { font-size: 0.68rem; color: var(--muted); }
.wl-tfp.long { border-color: var(--open-border, color-mix(in srgb, var(--good) 40%, var(--border))); }
.wl-tfp.long .wl-tfd { color: var(--open-text, var(--good)); }
.wl-tfp.short { border-color: var(--short-border, color-mix(in srgb, var(--bad) 40%, var(--border))); }
.wl-tfp.short .wl-tfd { color: var(--short-text, var(--bad)); }
.wl-tfp.strong.long { background: var(--open-bg, var(--good-dim)); }
.wl-tfp.strong.short { background: var(--short-bg, var(--bad-dim)); }
.wl-line { display: grid; grid-template-columns: minmax(84px, 0.3fr) minmax(0, 1fr); gap: 0.4rem; padding: 0.28rem 0; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); font-size: 0.8rem; align-items: baseline; }
.wl-k { color: var(--muted); font-size: 0.74rem; }
.wl-v { min-width: 0; overflow-wrap: anywhere; }
.wl-st { font-size: 0.72rem; padding: 0.05rem 0.4rem; border-radius: 999px; border: 1px solid var(--border); background: var(--panel2); white-space: nowrap; }
.wl-st.sent { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--border)); }
.wl-st.failed { color: var(--bad); }
.wl-foot { margin-top: 0.3rem; }
.wl-empty { padding: 1rem 0.9rem; border-radius: var(--radius-sm, 14px); border: 1px dashed var(--border-strong); background: var(--panel2); margin-top: 0.4rem; }
.wl-empty p { margin: 0.35rem 0 0.6rem; }
.wl-settings, .wl-events { margin-top: 0.8rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm, 14px); border: 1px solid var(--border); background: var(--panel); }
.wl-settings summary, .wl-events summary { cursor: pointer; font-weight: 700; }
.wl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0.55rem 0; font-size: 0.85rem; }
.wl-chs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.wl-ch { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; }
.wl-ch.off { color: var(--muted); }
.wl-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.wl-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.wl-field input { padding: 0.45rem 0.6rem; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text); font: inherit; min-width: 0; }
.wl-actions { flex-wrap: wrap; }
.wl-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.74rem; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem; max-height: 320px; overflow: auto; }
.wl-events ul { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; }
.wl-events li { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wl-cards { grid-template-columns: 1fr; }
  .wl-card { padding: 0.6rem 0.65rem; }
  .wl-grid2 { grid-template-columns: 1fr; }
}
