/* Unit list page — extends styles.css */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 8px; }
.page-title { font-family: var(--font-head); font-size: 24px; margin: 0; color: var(--text); }
.page-title small { font-family: var(--font); font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.list-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.list-tools select { height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }

.filters { display: grid; gap: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.frow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.frow .flabel { width: 84px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }

.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.ucard { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; }
.ucard:hover { border-color: var(--gold); text-decoration: none; }
.ucard img:not(.gi) { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2); }
.ucard .body { min-width: 0; }
.ucard .top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ucard .n { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucard .stars { flex: none; margin-left: auto; color: var(--gold); font-size: 10.5px; letter-spacing: -1px; }
.ucard .t { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucard .meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }
.ucard .el { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.ucard .el .i { width: 14px; height: 14px; }
.ucard .role { color: var(--text); }
.tcol { display: inline-flex; align-items: center; gap: 4px; }
.tcol::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tcol-Power { color: #ef5b4f; } .tcol-Speed { color: #4fc97a; } .tcol-Technique { color: #5b9cf5; }
.tcol-Heart { color: #f2cb52; } .tcol-Intelligence { color: #b38cf5; }
.ustats { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border);
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text); }
.ustats small { color: var(--text-faint); font-size: 10px; margin-right: 3px; letter-spacing: .03em; }
.ustats .on { color: var(--gold); font-weight: 700; }
.ustats .on small { color: var(--gold); }
.ustats .pool-dot { margin-left: auto; }
.pool-dot { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10.5px; border: 1px solid; }
.group-block { margin-bottom: 14px; }
.group-title { font-family: var(--font-head); color: var(--gold); font-size: 14px; letter-spacing: .05em; margin: 6px 0; }
.group-title small { font-family: var(--font); color: var(--text-faint); font-size: 12px; letter-spacing: 0; }
.empty { color: var(--text-muted); padding: 24px 0; }

/* sort direction + effects panel */
.sort-dir { min-width: 30px; height: 28px; padding: 0 8px; font-size: 14px; }
.flabel small { display: block; text-transform: none; letter-spacing: 0; color: var(--text-faint); font-size: 10.5px; }
.chip .cnt { color: var(--text-faint); font-size: 10.5px; margin-left: 2px; }
.chip[aria-pressed="true"] .cnt { color: inherit; opacity: .75; }
.effects-panel { gap: 6px; }
.effects-panel .frow .flabel { width: 124px; }
.filters .frow .flabel { width: 124px; }
.ep-head { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.ep-toggle { height: 28px; font-weight: 600; }
.ep-toggle[aria-expanded="true"] { color: var(--gold); border-color: var(--gold); }
.ep-note { color: var(--text-faint); font-size: 11.5px; }
.ep-selected { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-head .toggle { margin-left: auto; }
#fx-body { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
#fx-body[hidden] { display: none; }
#more-rows, #effect-rows { display: grid; gap: 6px; }
.ep-sub { margin-top: 6px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ep-sub small { text-transform: none; letter-spacing: 0; color: var(--text-faint); font-size: 11px; margin-left: 6px; }
.chip:disabled { opacity: .35; cursor: default; }

@media (max-width: 760px) {
  .frow .flabel, .filters .frow .flabel, .effects-panel .frow .flabel { width: 100%; }
  .ugrid { grid-template-columns: 1fr; }
}

/* a selected effect with its own target */
.fx-pick { display: inline-flex; align-items: center; gap: 2px; }
.fx-to { height: 26px; font: inherit; font-size: 12px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); padding: 0 6px; }
.udmg { grid-column: 1 / -1; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.udmg small { color: var(--text-faint); font-size: 10px; margin-right: 3px; letter-spacing: .03em; }
.udmg .on, .udmg .on small { color: var(--gold); font-weight: 700; }
.ucard.unreleased { outline: 2px dashed var(--gold); outline-offset: -2px; background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
