/* Mode Avis de recherche (mode-wanted.js). */
.w-progress { padding: 10px 16px 0; }
#w-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2f7a45, var(--ok)); transition: width .3s; }
#w-text { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 60px; text-align: right; }
.w-sub { padding: 4px 16px 0; font-size: 12px; color: var(--muted); }
.w-sub .w-cap { color: #8fd0ff; }

#sidebar-wanted .list li { grid-template-columns: 10px 40px 1fr auto; }
#sidebar-wanted .list li.selected { outline: 2px solid var(--select); outline-offset: -2px; background: #263446; }
#sidebar-wanted .list li.w-done .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ok); }
#sidebar-wanted .list li.w-done img { opacity: .5; }
#sidebar-wanted .list .lvl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.w-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Boutons rapides ⛓ capturé / ✔ ramené (liste et popups). */
.w-quick { display: inline-flex; gap: 3px; }
.w-qb { font-size: 12px; line-height: 1; padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--muted); cursor: pointer; filter: grayscale(1); opacity: .75; }
.w-qb:hover { opacity: 1; filter: none; }
.w-qb.on { filter: none; opacity: 1; color: #fff; }
.w-qb.on[data-wcap] { background: #1f4a6b; border-color: #3fb6ff; }
.w-qb.on[data-wret] { background: #24502f; border-color: var(--ok); }

/* Fiche. */
.w-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 6px; padding: 5px 8px; border-radius: 6px; font-weight: 600; font-size: 12.5px; border-left: 4px solid #ff7a1a; background: rgba(255, 122, 26, .08); }
.w-state.w-caught { border-left-color: #3fb6ff; background: rgba(63, 182, 255, .1); }
.w-state.w-done { border-left-color: var(--ok); background: rgba(91, 191, 114, .1); }
.w-state label { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.w-needs { margin: 0 0 6px; }
.w-needs .w-bad { color: #ff8a80; font-weight: 600; }
.w-links { margin: 4px 0 6px; }
.w-hint { font-size: 12.5px; font-style: italic; margin: 2px 0 6px; }
.w-crime { margin-top: 4px; font-style: italic; }
.w-zones { list-style: none; margin: 0 0 6px; padding: 0; font-size: 12.5px; }
.w-zones li { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.w-zones small { color: var(--muted); }

/* Carte : prison. */
.w-prison { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #1d2027; border: 2px solid #3fb6ff; color: #fff; font-size: 14px; line-height: 22px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.w-prison.sel { border-color: #fff; box-shadow: 0 0 0 3px var(--select), 0 0 12px var(--select); }
.w-prison span { position: absolute; right: -8px; top: -8px; min-width: 16px; padding: 0 3px; border-radius: 8px; background: #3fb6ff; color: #000; font-size: 10px; font-weight: 700; line-height: 16px; }

/* Popups. */
.w-pop ul { list-style: none; margin: 0; padding: 0; }
.w-pop { min-width: 250px; }
.popup li.w-poprow { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.w-poprow img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.w-poprow > span { flex: 1; min-width: 0; }
.w-poprow b { cursor: pointer; }
.w-poprow b:hover { text-decoration: underline; }
.w-poprow small { display: block; color: var(--muted); }
.w-poprow.w-done b { text-decoration: line-through; text-decoration-color: var(--ok); }
