/* leveling: every selector starts with the tool's root class (TOOLS.md).
   The idea: the game's quest log and trainer window. The live answer ("where to quest at level N") sits right under
   the two controls and reads like the quest log's list; spells by level read like the trainer window, level by level,
   with the coins of the cost and the running total. Quiet tables, tabular figures, the game's yellow for levels. */
.kc-t-leveling .kc-t-lv-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin: 6px 0 14px; padding: 12px 14px;
  background: var(--tip-bg); border: 1px solid var(--tip-edge); border-radius: 5px; box-shadow: inset 0 0 0 2px #1d2030; font: 14px/1.3 var(--sans); color: var(--muted); }
.kc-t-leveling .kc-t-lv-form label { display: flex; flex-direction: column; gap: 4px; }
.kc-t-leveling .kc-t-lv-form select { min-width: 120px; min-height: 40px; font: 16px/1.2 var(--sans); padding: 6px 8px; background: #0a0d16; color: var(--game-yellow);
  border: 1px solid var(--gold-soft); border-radius: 0; font-variant-numeric: tabular-nums; }
.kc-t-leveling .kc-t-lv-form button { min-height: 40px; font: 700 14px/1.2 var(--sans); padding: 9px 14px; border: 1px solid #efcd7b; background: var(--gold); color: #171105; cursor: pointer; border-radius: 0; }
.kc-t-leveling .kc-t-lv-live h2 { margin-top: 0.6em; }
.kc-t-leveling .kc-t-lv-note { font: 14px/1.5 var(--sans); color: var(--muted); max-width: 72ch; }
.kc-t-leveling .kc-t-lv-where tbody tr:first-child td:first-child a { color: var(--game-yellow); font-weight: 700; }
.kc-t-leveling .kc-t-lv-sub { font: 400 13px/1.4 var(--sans); color: var(--muted); }
.kc-t-leveling .kc-t-lv-dg, .kc-t-leveling .kc-t-lv-top { margin: 0; padding-inline-start: 1.3em; font: 15px/1.6 var(--sans); }
.kc-t-leveling .kc-t-lv-top li::marker { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.kc-t-leveling .kc-t-lv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
.kc-t-leveling .kc-t-lv-bands th[scope="row"] { white-space: nowrap; font-weight: 600; }
.kc-t-leveling .kc-t-lv-bands th[scope="row"] a { color: var(--game-yellow); text-decoration: none; }
.kc-t-leveling .kc-t-lv-classes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; font: 16px/1.6 var(--sans); }
.kc-t-leveling .kc-t-lv-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 600 14px/1 var(--sans); }
.kc-t-leveling .kc-t-lv-nav a { display: inline-block; padding: 8px 11px; border: 1px solid rgba(141, 113, 59, 0.6); color: var(--muted); text-decoration: none; }
.kc-t-leveling .kc-t-lv-nav a[aria-current] { color: #171105; background: var(--gold); border-color: var(--gold); }
/* spells by level: the trainer window */
.kc-t-leveling .kc-t-lv-lh th { text-align: start; padding-top: 14px; color: var(--game-yellow); font: 700 15px/1.4 var(--sans); border-bottom: 1px solid rgba(255, 209, 0, 0.25); }
.kc-t-leveling .kc-t-lv-rank { color: var(--muted); font-size: 13px; }
.kc-t-leveling .kc-t-lv-spells td:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.kc-t-leveling .kc-t-lv-done td { opacity: 0.55; }
.kc-t-leveling .kc-t-lv-done .kc-t-lv-lh th { color: var(--q2); }
.kc-t-leveling .kc-t-lv-upto { font: 600 16px/1.5 var(--sans); color: var(--ink); min-height: 0; }
.kc-t-leveling .kc-t-lv-upto:empty { display: none; }
