/* speedingfines.gg Gear page (levelling finder + level 60 BiS) and its widgets (js/levelgear-ui.js). Self-contained: works inside the app
   shell (app.css) and on other pages (guides) with its own tokens, dark either way. */
.lg {
  --lg-bg: #0c0f14; --lg-panel: #10141b; --lg-panel2: #151a23; --lg-field: #090b0f;
  --lg-line: rgba(255, 255, 255, 0.08); --lg-line2: rgba(255, 255, 255, 0.15);
  --lg-text: #eef0f4; --lg-muted: #9aa3b5; --lg-dim: #687083; --lg-red: #e5484d; --lg-red-bg: rgba(229, 72, 77, 0.14);
  --lg-green: #4cc38a; --lg-amber: #f5b14c; --lg-blue: #6ea2ff; --lg-purple: #b98cff;
  --lg-head: "Barlow Condensed", system-ui, sans-serif;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #3a8bff; --q4: #b46cf5; --q5: #ff8000;
  color: var(--lg-text); font-size: 15px; line-height: 1.45; min-width: 0;
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg button, .lg select, .lg input { font: inherit; color: inherit; }
.lg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-dim { color: var(--lg-dim); }
.lg-k { display: block; font: 700 0.72rem/1 var(--lg-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-dim); margin: 10px 0 6px; }

/* ---------- loading / errors ---------- */
.lg-load { display: flex; align-items: center; gap: 12px; padding: 40px 16px; color: var(--lg-muted); justify-content: center; }
.lg-load.small { padding: 16px; justify-content: flex-start; }
.lg-load span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lg-line2); border-top-color: var(--lg-red); animation: lg-spin 0.8s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-load span { animation: none; } }
.lg-err { padding: 18px; border: 1px solid rgba(229, 72, 77, 0.4); border-radius: 12px; background: var(--lg-red-bg); }
.lg-empty { margin: 4px 0; color: var(--lg-dim); font-size: 0.9rem; }

/* ---------- controls ---------- */
.lg-controls { background: linear-gradient(180deg, #10131a, #0c0f14); border: 1px solid var(--lg-line); border-radius: 12px; padding: 14px 16px 12px; }
.lg-chars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.lg-chars .lg-k { margin: 0 6px 0 0; }
.lg-char { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 9px; border: 1px solid var(--lg-line2);
  background: var(--lg-field); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.lg-char i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.lg-char small { color: var(--lg-muted); font-weight: 500; }
.lg-char.lg-on { border-color: var(--lg-red); background: var(--lg-red-bg); }
.lg-bar1 { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.lg-seg { display: inline-flex; border: 1px solid var(--lg-line2); border-radius: 9px; padding: 3px; gap: 3px; background: var(--lg-field); }
.lg-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 6px; cursor: pointer; color: var(--lg-muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.lg-seg button[aria-pressed="true"] { background: var(--lg-red); color: #fff; }
.lg-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lg-f > span { font: 700 0.72rem/1 var(--lg-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lg-dim); }
.lg-f select, .lg-f input[type=number] { background: var(--lg-field); border: 1px solid var(--lg-line2); border-radius: 8px; padding: 7px 10px; min-height: 38px; }
.lg-f select { padding-right: 28px; }
.lg-f select:focus, .lg-f input:focus { outline: none; border-color: rgba(229, 72, 77, 0.7); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15); }
.lg-lvl input { width: 5em; }
.lg-range { flex: 1 1 180px; max-width: 320px; }
.lg-range input { width: 100%; accent-color: var(--lg-red); min-height: 38px; }
.lg-fdet { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--lg-line); }
.lg-fdet > summary { cursor: pointer; font-weight: 600; color: var(--lg-muted); font-size: 0.9rem; list-style-position: inside; }
.lg-fdet > summary small { color: var(--lg-dim); font-weight: 500; margin-left: 4px; }
.lg-fdet[open] > summary { display: none; }
@media (max-width: 720px) { .lg-fdet[open] > summary { display: list-item; margin-bottom: 4px; } }
.lg-fdet .lg-filters { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lg-line); }
.lg-filters .lg-k { margin: 0 4px 0 0; }
.lg-sep { width: 1px; height: 20px; background: var(--lg-line2); margin: 0 4px; }
.lg-tog, .lg-preset { border: 1px solid var(--lg-line2); background: var(--lg-field); border-radius: 999px; padding: 4px 11px; font-size: 0.84rem; cursor: pointer; color: var(--lg-muted); }
.lg-tog[aria-pressed="true"] { border-color: rgba(229, 72, 77, 0.55); background: var(--lg-red-bg); color: #fff; }
/* The tick always takes its space (hidden when off), so switching a source on never widens the button and never
   pushes the last one onto the next line. */
.lg-tog::before { content: "\2713\00a0"; color: var(--lg-red); visibility: hidden; }
.lg-tog[aria-pressed="true"]::before { visibility: visible; }
.lg-preset { border-style: dashed; }
.lg-tog:hover, .lg-preset:hover, .lg-char:hover { border-color: rgba(255, 255, 255, 0.35); color: #fff; }

/* ---------- tabs ---------- */
.lg-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; border-bottom: 1px solid var(--lg-line); margin: 16px 0 14px; }
.lg-tabs [role=tab] { border: 0; border-bottom: 2px solid transparent; background: none; padding: 8px 12px 9px; cursor: pointer; color: var(--lg-muted);
  font: 700 1.02rem/1 var(--lg-head); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: -1px; }
.lg-tabs [role=tab][aria-selected="true"] { color: var(--lg-red); border-bottom-color: var(--lg-red); }
.lg-who { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.9rem; color: var(--lg-muted); padding: 6px 0; }
.lg-who b { color: var(--c); font-weight: 700; }
.lg-lead { color: var(--lg-muted); margin: 0 0 12px; }

/* ---------- the character window (best now, level 60) ---------- */
/* Left column Head..Wrist, right column Hands..Trinket 2, as in the game; weapons along the bottom. */
.lg-doll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lg-dcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lg-dbot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lg-cos { display: flex; align-items: center; background: transparent; border-style: dashed; padding: 8px 12px; }
.lg-cos h3 { margin: 0; color: var(--lg-dim); font-size: 0.98rem; }
@media (max-width: 1100px) { .lg-dbot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .lg-doll { display: flex; flex-direction: column; }
  .lg-dbot { display: flex; flex-direction: column; }
  .lg-cos { padding: 6px 12px; }
}
/* level 60: phase selector, build chips, enchant line */
.lg-phase { margin: 0 0 12px; }
.lg-phases { flex-wrap: wrap; }
.lg-phases button small { font-weight: 500; font-size: 0.74rem; color: var(--lg-dim); margin-left: 3px; }
.lg-phases button.lg-off { color: var(--lg-dim); cursor: help; }
.lg-phases button.lg-off[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--lg-muted); }
.lg-ptip { margin: 8px 0 0; font-size: 0.88rem; color: var(--lg-muted); max-width: 70em; }
.lg-ptip b { color: var(--lg-text); }
.lg-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.lg-vars .lg-k { margin: 0 4px 0 0; }
.lg-ench { font-size: 0.84rem; margin: 2px 0 1px; color: var(--lg-muted); }
.lg-ench .lg-si { width: 16px; height: 16px; vertical-align: -3px; }
.lg-eg { color: #1eff00; font-weight: 600; }
.lg-enote { color: var(--lg-dim); font-size: 0.8rem; margin: 1px 0 0 22px; }
.lg-pnote { margin: 3px 0 0; font-size: 0.8rem; color: var(--lg-dim); }
.lg-why { font: 600 0.72rem/1.1 inherit; color: var(--lg-dim); cursor: help; text-align: right; white-space: normal; max-width: 7.5em; }
.lg-why-forever, .lg-why-tier { color: #b9ecd2; }
.lg-why-classic { color: #c9cdd6; }
.lg-bsrc ul { margin: 0 0 12px; padding-left: 18px; font-size: 0.86rem; }
.lg-bsrc li { margin: 2px 0; }
.lg-bsrc .lg-ext { white-space: normal; }
@media (max-width: 720px) {
  .lg-phases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lg-phases button { padding: 7px 6px; }
}
.lg-w-best .lg-phase { margin-bottom: 8px; }
.lg-w-best .lg-phases button { padding: 5px 9px; font-size: 0.84rem; }

/* ---------- best now ---------- */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.lg-slot { background: linear-gradient(180deg, #10131a, #0c0f14); border: 1px solid var(--lg-line); border-radius: 12px; padding: 12px 12px 10px; min-width: 0; }
.lg-slot h3 { margin: 0 0 8px; font: 800 1.12rem/1 var(--lg-head); letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: baseline; gap: 8px; }
.lg-slot h3 small { font: 500 0.82rem/1 inherit; color: var(--lg-dim); letter-spacing: 0; text-transform: none; font-family: inherit; }
.lg-weap { grid-column: 1 / -1; }
.lg-wcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 14px; }
.lg-wcols > div { min-width: 0; }
.lg-wcols .lg-k { margin-top: 0; }
.lg-alts { grid-column: 1 / -1; }
.lg-weap > .lg-k { grid-column: auto; }
@media (min-width: 760px) {
  .lg-weap { grid-template-areas: "h h" "k1 k2" "i1 i2" "a a" "n n"; }
}
.lg-alts { margin-top: 6px; border-top: 1px dashed var(--lg-line); }
.lg-alts .lg-k { margin-top: 8px; }
.lg-note { margin: 8px 0 0; font-size: 0.86rem; color: var(--lg-muted); }

/* ---------- item row ---------- */
.lg-it { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  padding: 6px 8px; border-radius: 8px; margin: 0 -4px; }
.lg-it + .lg-it { margin-top: 2px; }
.lg-it:hover { background: rgba(255, 255, 255, 0.035); }
.lg-it.lg-big { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--lg-line); margin: 0; }
.lg-it.lg-big + .lg-it.lg-big { margin-top: 6px; }
.lg-ic { width: 30px; height: 30px; border-radius: 6px; border: 2px solid var(--qc, #5a6070); background: #0b0d12; display: block; cursor: help; }
.lg-it.lg-big .lg-ic { width: 40px; height: 40px; }
.lg-it.q0 { --qc: var(--q0); } .lg-it.q1 { --qc: #8a8f9c; } .lg-it.q2 { --qc: var(--q2); } .lg-it.q3 { --qc: var(--q3); } .lg-it.q4 { --qc: var(--q4); }
.lg-mid { min-width: 0; }
.lg-nl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.lg-nm { font-weight: 650; overflow-wrap: anywhere; cursor: help; text-decoration: none; border-radius: 3px; }
.lg-nm:focus-visible { outline: 2px solid var(--lg-red); outline-offset: 2px; }
.lg-it.q0 .lg-nm { color: var(--q0); } .lg-it.q1 .lg-nm { color: var(--q1); } .lg-it.q2 .lg-nm { color: var(--q2); }
.lg-it.q3 .lg-nm { color: var(--q3); } .lg-it.q4 .lg-nm { color: var(--q4); }
.lg-ty { color: var(--lg-dim); font-size: 0.8rem; }
.lg-src { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 0.82rem; color: var(--lg-muted); margin-top: 1px; }
.lg-s { min-width: 0; overflow-wrap: anywhere; }
/* Source icons: the game's icon in a thin gold frame, like the guides' item icons. */
.lg-si { display: inline-block; width: 18px; height: 18px; border-radius: 3px; border: 1px solid #a8862e; box-shadow: 0 0 0 1px #000;
  vertical-align: -4px; margin-right: 6px; background: #0b0d12; cursor: help; }
.lg-si.lg-hm { border-color: #b8232a; margin-right: 5px; }
.lg-rc { white-space: nowrap; color: #cfd6e4; cursor: help; border-radius: 3px; }
.lg-rc .lg-si { width: 16px; height: 16px; vertical-align: -3px; margin: 0 4px 0 2px; }
.lg-rc:focus-visible { outline: 2px solid var(--lg-red); outline-offset: 2px; }
.lg-s.lg-sahead { color: var(--lg-amber); }
.lg-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.lg-lv { font: 700 0.82rem/1 var(--lg-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lg-muted); background: var(--lg-field);
  border: 1px solid var(--lg-line2); border-radius: 6px; padding: 4px 6px 3px; }
.lg-lv.lg-ahead { color: var(--lg-amber); border-color: rgba(245, 177, 76, 0.45); }
.lg-sc { font: 600 0.8rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--lg-dim); }
.lg-bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--qc) var(--p), transparent var(--p)); opacity: 0.45; pointer-events: none; }
.lg-it:not(.lg-big) .lg-bar { display: none; }
.lg-b { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--lg-line2); color: var(--lg-muted); cursor: help; white-space: nowrap; }
.lg-b-chg { color: #ffd7a0; border-color: rgba(245, 177, 76, 0.45); background: rgba(245, 177, 76, 0.1); }
.lg-b-new { color: #b9ecd2; border-color: rgba(76, 195, 138, 0.45); background: rgba(76, 195, 138, 0.1); }
.lg-b-era { color: #c9cdd6; border-style: dashed; }
.lg-b-mv { color: #cfe0ff; border-color: rgba(110, 162, 255, 0.45); }
.lg-b-fx { color: var(--lg-dim); }
.lg-b-rs { color: #cfe0ff; }
.lg-b-boe { color: #dccbff; border-color: rgba(185, 140, 255, 0.35); }
.lg-gain { font: 700 0.8rem/1 var(--lg-head); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 6px; }
.lg-gain.lg-up { color: #0b1a12; background: var(--lg-green); }
.lg-gain.lg-same { color: var(--lg-muted); background: rgba(255, 255, 255, 0.06); }
.lg-gain.lg-down { color: var(--lg-dim); background: transparent; border: 1px solid var(--lg-line); }
.lg-it.lg-worse { opacity: 0.62; }
.lg-it.lg-worse:hover, .lg-it.lg-worse:focus-within { opacity: 1; }

/* ---------- upgrade path ---------- */
.lg-path { display: grid; gap: 8px; }
.lg-prow { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; align-items: start; background: linear-gradient(180deg, #10131a, #0c0f14);
  border: 1px solid var(--lg-line); border-radius: 12px; padding: 8px 10px; }
.lg-pslot { font: 800 1rem/1 var(--lg-head); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 12px; }
.lg-pnow { min-width: 0; border-right: 1px dashed var(--lg-line); padding-right: 8px; }
.lg-psteps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-psteps > .lg-dim { padding: 10px 0; font-size: 0.9rem; }
.lg-step { position: relative; padding-left: 34px; min-width: 0; }
.lg-step::before { content: ""; position: absolute; left: 13px; top: -2px; bottom: -2px; width: 2px; background: var(--lg-line2); }
.lg-step:first-child::before { top: 18px; } .lg-step:last-child::before { bottom: calc(100% - 18px); }
.lg-at { position: absolute; left: 0; top: 9px; width: 28px; height: 20px; border-radius: 6px; background: var(--lg-amber); color: #1a1205;
  font: 800 0.86rem/20px var(--lg-head); text-align: center; z-index: 1; }

/* ---------- dungeon ---------- */
.lg-dchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.lg-chip { border: 1px solid var(--lg-line2); background: var(--lg-field); border-radius: 9px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.lg-chip small { color: var(--lg-dim); font-weight: 500; margin-left: 2px; }
.lg-chip.lg-on { border-color: var(--lg-red); background: var(--lg-red-bg); }
.lg-dsel select { background: var(--lg-field); border: 1px solid var(--lg-line2); border-radius: 9px; padding: 6px 10px; min-height: 34px; max-width: 100%; }
.lg-dungeon { background: linear-gradient(180deg, #10131a, #0c0f14); border: 1px solid var(--lg-line); border-radius: 12px; padding: 14px; }
.lg-dhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; margin-bottom: 8px; }
.lg-dhead h3 { margin: 0; font: 800 1.6rem/1 var(--lg-head); letter-spacing: 0.03em; text-transform: uppercase; }
.lg-dhead p { margin: 4px 0 0; color: var(--lg-muted); }
.lg-warn { color: #ffd7a0 !important; font-size: 0.9rem; }
.lg-ext { color: var(--lg-blue); font-size: 0.86rem; text-decoration: none; white-space: nowrap; }
.lg-ext:hover { text-decoration: underline; }
.lg-bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.lg-boss { border: 1px solid var(--lg-line); border-radius: 10px; padding: 10px; background: rgba(255, 255, 255, 0.015); min-width: 0; }
.lg-boss h4 { margin: 0 0 6px; font: 800 1rem/1.1 var(--lg-head); letter-spacing: 0.05em; text-transform: uppercase; }
.lg-boss h4 small { color: var(--lg-dim); font-weight: 600; letter-spacing: 0.04em; }
.lg-quests { border-color: rgba(245, 177, 76, 0.3); }

/* ---------- how ---------- */
.lg-how { margin-top: 18px; border: 1px solid var(--lg-line); border-radius: 12px; padding: 0 14px; background: var(--lg-field); }
.lg-how summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--lg-muted); }
.lg-howbody p { margin: 0 0 10px; font-size: 0.9rem; }

/* ---------- widgets ---------- */
.lg-widget { display: block; }
.lg-wlist { display: grid; gap: 2px; }
.lg-key { margin: 0 0 8px; color: var(--lg-muted); font-size: 0.82rem; }
.lg-key b { font-weight: 700; color: var(--lg-text); }
.lg-wrow { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; }
.lg-wslot { font: 700 0.74rem/1.1 var(--lg-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lg-dim); }
.lg-wempty { color: var(--lg-muted); font-size: 0.92rem; padding: 8px 0; }
.lg-wempty a, .lg-more { color: #8fb4ff; }
.lg-more { display: inline-block; margin-top: 10px; font-size: 0.88rem; text-decoration: none; }
.lg-more:hover { color: #fff; }

/* ---------- page bits outside the app shell ---------- */
.lg-public { max-width: 1400px; margin: 0 auto; padding: 18px 16px 60px; }
.lg-public .lg-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lg-public .lg-top .brand { padding: 0; }
.lg-public .lg-top nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
.lg-public .lg-top nav a { color: var(--muted, #9aa3b5); text-decoration: none; }
.lg-public .lg-top nav a:hover { color: #fff; }

@media (max-width: 720px) {
  .lg-controls { padding: 12px; }
  .lg-fdet .lg-filters { margin-top: 6px; }
  .lg-bar1 { gap: 10px; }
  .lg-seg { width: 100%; } .lg-seg button { flex: 1; }
  .lg-f { flex: 1 1 calc(50% - 6px); }
  .lg-f select { width: 100%; }
  .lg-lvl { flex: 0 0 5.5em; } .lg-lvl input { width: 100%; }
  .lg-range { flex: 1 1 calc(100% - 6.5em); max-width: none; }
  .lg-to { flex: 1 1 100%; }
  .lg-filters .lg-sep { display: none; }
  .lg-who { margin-left: 0; width: 100%; padding: 4px 2px 8px; order: -1; }
  .lg-tabs [role=tab] { padding: 8px 10px 9px; font-size: 0.95rem; }
  .lg-prow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lg-pslot { padding-top: 2px; }
  .lg-pnow { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--lg-line); padding-bottom: 4px; }
  .lg-it { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 3px 8px; padding: 6px 4px; }
  .lg-it.lg-big { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .lg-it.lg-big .lg-ic { width: 36px; height: 36px; }
  .lg-dhead h3 { font-size: 1.35rem; }
  .lg-wrow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-wslot { margin-top: 6px; }
}

/* The paper doll (public/js/paperdoll.js) as the Gear page's character window: our controls sit in its controls slot,
   our source icon is each slot's badge, and a clicked slot opens its card under the frame. */
.lg-pd { margin: 0; }
.lg-pd .lg-controls { margin-bottom: 12px; }
.pd-badge .lg-pdb { width: 14px; height: 14px; display: block; border-radius: 3px; }
.pd-badge .lg-pdb.lg-pdh { box-shadow: 0 0 0 1px var(--lg-red, #c8281e); }
.lg-pd .pd-slot { cursor: pointer; }
.lg-pd .pd-slot[data-slot]:focus-visible { outline: 2px solid var(--lg-red, #c8281e); outline-offset: 2px; }
.lg-one { max-width: 760px; }
.lg-one .lg-slot { margin-bottom: 12px; }
.lg-pick { color: var(--lg-muted); }
.lg-wdoll .lg-wphase { margin: 0 0 8px; }
.lg-wdet { margin-top: 10px; }
.lg-wdet .lg-slot { margin: 0; }
.lg-pd .pd-slot[data-lg-sel] { box-shadow: 0 0 0 2px var(--lg-red, #c8281e); border-radius: 8px; }
