/* ==========================================================================
   ReadyCheck UI: sharp, dense, Steam-inspired. Class color = identity layer,
   Steam blue = UI action layer, green/red badges = gain/loss (always with ▲▼).
   ========================================================================== */
:root {
  --bg: #0b1017;
  --bg-top: #101722;
  --surface: #16202d;
  --surface-hi: #1b2838;          /* card top of gradient (Steam slate) */
  --surface-2: #1f2d3d;           /* inputs, hover */
  --surface-3: #2a3f55;           /* active / selected */
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .10);
  --line-blue: rgba(102, 192, 244, .22);
  --text: #e6ebf0;
  --muted: #9aa4ad;               /* Steam grey (a touch lighter for contrast) */
  --faint: #6f7c8a;
  --blue: #66c0f4;                /* Steam link blue: UI actions */
  --blue-2: #1a9fff;
  --accent: #c69b6d;              /* class color (set from JS) */
  --accent-ink: #15110a;
  --good-bg: #4c6b22; --good: #beee11;          /* Steam discount badge */
  --bad-bg: #5a1d22;  --bad: #ff7b7b;
  --warn: #e9b949;
  --r: 2px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Motiva Sans", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* chart series (validated: dark surface #1b2838, all checks pass) */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s-other: #4b5a6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 13.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(1200px 420px at 50% -120px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg) 480px);
  background-repeat: no-repeat; transition: background .6s var(--ease); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }
[x-cloak] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: 11.5px; }
.num, table .r { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .xs { font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.spacer { flex: 1; }
::selection { background: rgba(102, 192, 244, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3f55; border: 3px solid var(--bg); }

/* ------------------------------------------------------------------ motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.page { animation: fadeUp .32s var(--ease) both; }
.dash > * { animation: fadeUp .45s var(--ease) both; }
.dash > *:nth-child(1) { animation-delay: .02s } .dash > *:nth-child(2) { animation-delay: .06s }
.dash > *:nth-child(3) { animation-delay: .10s } .dash > *:nth-child(4) { animation-delay: .14s }
.dash > *:nth-child(5) { animation-delay: .18s } .dash > *:nth-child(6) { animation-delay: .22s }
.dash > *:nth-child(7) { animation-delay: .26s } .dash > *:nth-child(n+8) { animation-delay: .30s }
.bar, .grow { transform-origin: left center; animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms + .15s); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ shell */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(16, 23, 34, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1400px; margin: 0 auto; height: 50px; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.brand:hover { color: #fff; }
.brand .logo { width: 22px; height: 22px; background: linear-gradient(135deg, var(--blue) 0%, #2d73ff 55%, var(--accent) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.nav { display: flex; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; padding: 0 14px; color: #b8c2cc; font-weight: 700; font-size: 13px;
  letter-spacing: .6px; text-transform: uppercase; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform .25s var(--ease); box-shadow: 0 0 10px var(--blue); }
.nav a.on { color: var(--blue); } .nav a.on::after { transform: scaleX(1); }
.status { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; background: var(--surface-2);
  color: var(--muted); font-size: 11px; border-radius: var(--r); }
.status::before { content: ""; width: 6px; height: 6px; background: var(--faint); }
.status.ok::before { background: #5ba32b; box-shadow: 0 0 6px #5ba32b; } .status.bad::before { background: var(--bad); }

.subbar { background: linear-gradient(90deg, rgba(62,126,167,.14), rgba(62,126,167,.04)); border-bottom: 1px solid var(--line); }
.subbar .in { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; height: 46px; align-items: stretch; }
.subbar button { position: relative; background: none; border: 0; color: #c6d4df; font: 600 14px var(--sans); padding: 0 16px; cursor: pointer;
  transition: color .15s, background .15s; }
.subbar button:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.04); }
.subbar button.on { color: #fff; background: linear-gradient(180deg, transparent, rgba(102,192,244,.12)); }
.subbar button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); animation: grow .3s var(--ease); }
.subbar button:disabled { color: var(--faint); cursor: not-allowed; }
.subbar button small { font-size: 9.5px; margin-left: 5px; padding: 1px 4px; background: var(--surface-3); color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }

main { max-width: 1400px; margin: 0 auto; padding: 18px 20px 48px; }
.footer { color: var(--faint); font-size: 11px; text-align: center; padding: 28px 0 0; }

/* ------------------------------------------------------------------ primitives */
.card { background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 120px); border: 1px solid var(--line);
  border-radius: var(--r); position: relative; min-width: 0; }
.card > .hd { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.card > .bd { padding: 12px 14px; }
.card > .bd.flush { padding: 0; }
.card > .ft { padding: 8px 14px; border-top: 1px solid var(--line); }
h3.t { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
h3.t small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 8px; font-size: 11.5px; }
.stack > * + * { margin-top: 12px; } .stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .row.nowrap { flex-wrap: nowrap; }
.grid { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.sticky { position: sticky; top: 64px; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .span-3, .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 900px) { .layout, .cols-2 { grid-template-columns: 1fr; } .sticky { position: static; }
  .g12 > * { grid-column: span 12 !important; } .nav a { padding: 0 9px; } .hide-sm { display: none !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--r); background: rgba(103, 193, 245, .12); color: var(--blue); font: 600 12px var(--sans);
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, filter .15s, transform .1s; }
.btn:hover { background: var(--blue); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; background: rgba(103,193,245,.08); color: var(--blue); }
.btn.ghost { background: transparent; color: var(--muted); } .btn.ghost:hover { background: var(--surface-2); color: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.go { height: 46px; width: 100%; font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #fff; text-transform: uppercase;
  background: linear-gradient(90deg, #47bfff 0%, #1a44c2 100%); box-shadow: 0 6px 24px rgba(26, 68, 194, .35); }
.btn.go:hover:not(:disabled) { filter: brightness(1.12); color: #fff; }
.btn.go:disabled { background: var(--surface-3); box-shadow: none; color: var(--muted); }
.btn.primary { background: linear-gradient(90deg, #47bfff 0%, #1a44c2 100%); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { background: rgba(255, 123, 123, .12); color: var(--bad); } .btn.danger:hover { background: var(--bad); color: #fff; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
input, select, textarea { font: 13.5px var(--sans); color: var(--text); background: #0f161f; border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 0 10px; height: 34px; outline: none; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { font: 12px/1.5 var(--mono); padding: 8px 10px; height: auto; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.18); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(102,192,244,.2); }
input[type=checkbox] { accent-color: var(--blue-2); width: 16px; height: 16px; margin: 0; flex: none; }
input[type=range] { accent-color: var(--blue-2); padding: 0; height: 18px; border: 0; background: none; box-shadow: none; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }

.tag { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  background: var(--surface-3); color: #b8c6d3; white-space: nowrap; text-transform: uppercase; }
.tag.blue { background: rgba(102,192,244,.16); color: var(--blue); }
.tag.accent { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.tag.vault { background: rgba(233,185,73,.14); color: var(--warn); }
.tag.gem { color: #c79bff; } .tag.ench { color: #5fe0a8; } .tag.craft { color: #ffb45a; }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; font: 700 12px var(--sans);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { background: var(--good-bg); color: var(--good); }
.delta.down { background: var(--bad-bg); color: var(--bad); }
.delta.flat { background: var(--surface-3); color: var(--muted); }
.delta.lg { height: 30px; padding: 0 10px; font-size: 18px; }

.note { padding: 10px 14px; border-left: 3px solid; font-size: 13px; background: var(--surface-2); }
.note.err { border-color: var(--bad); color: #ffd0d0; background: rgba(255,123,123,.06); }
.note.warn { border-color: var(--warn); color: #f1dfb2; background: rgba(233,185,73,.05); }
.note.info { border-color: var(--blue); color: #c6d4df; }
.note ul { margin: 4px 0 0; padding-left: 16px; }
details summary { cursor: pointer; font-weight: 600; }

/* ------------------------------------------------------------------ character banner */
.banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 34%, #1b2838) 0%, #1b2838 55%, #16202d 100%); }
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.banner .in { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.class-icon { width: 52px; height: 52px; flex: none; background: var(--accent) center/cover; border: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 6px 18px rgba(0,0,0,.4);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--accent-ink); }
.class-icon.lg { width: 72px; height: 72px; font-size: 30px; }
.banner .name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.2px; line-height: 1.1; }
.banner .sub { color: #c6d4df; font-size: 12px; }
.ilvl-badge { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); }
.ilvl-badge b { font-size: 20px; color: #fff; line-height: 1; }
.ilvl-badge span { font-size: 9.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.paste-hero { padding: 26px 22px; }
.paste-hero h2 { margin: 0 0 4px; font-size: 22px; color: #fff; font-weight: 800; }
.paste-hero p { margin: 0 0 14px; color: #c6d4df; }
.kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); font: 600 11px var(--mono); color: #fff; }

/* paper doll */
.doll { display: grid; grid-template-columns: 1fr 1fr; }
.doll > .col + .col { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .doll { grid-template-columns: 1fr; } .doll > .col + .col { border-left: 0; } }
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 8px; min-height: 42px;
  padding: 4px 10px 4px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.slot-row:hover { background: linear-gradient(90deg, rgba(102,192,244,.08), transparent); }
.slot-row.on { background: linear-gradient(90deg, rgba(102,192,244,.16), transparent); box-shadow: inset 2px 0 0 var(--blue); }
.slot-row .item { display: flex; flex-direction: column; min-width: 0; }
.slot-row .item a { font-weight: 600; font-size: 12.5px; }
.slot-row .slot { font-size: 10px; color: var(--faint); letter-spacing: .6px; text-transform: uppercase; }
.slot-row .ilvl { font: 700 13px var(--sans); color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.slot-row .tags { display: flex; gap: 2px; }
.editor { padding: 10px 12px; background: #0f161f; border-bottom: 1px solid var(--line); animation: fadeIn .2s; }

/* pickers */
.pick-group { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.pick-group:last-child { border-bottom: 0; }
.pick-group h4 { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.pick { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; min-height: 28px;
  padding: 0 6px; margin: 0 -6px; transition: background .12s; }
.pick:hover { background: var(--surface-2); }
.pick .ilvl { font: 700 12px var(--sans); color: #c6d4df; text-align: right; }
.pick.equipped { opacity: .65; }

/* ------------------------------------------------------------------ job */
.job { max-width: 560px; margin: 72px auto; text-align: center; }
.job .class-icon { margin: 0 auto 14px; animation: pulse 1.8s infinite; }
.job .pct { font-size: 46px; font-weight: 800; letter-spacing: -1px; color: #fff; line-height: 1; }
.progress { height: 8px; background: #0f161f; border: 1px solid var(--line-2); overflow: hidden; position: relative; }
.progress > div { height: 100%; transition: width .35s var(--ease);
  background: linear-gradient(90deg, #47bfff, #1a44c2), repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 7px, transparent 7px 14px);
  background-blend-mode: overlay; background-size: auto, 28px 100%; animation: stripes .8s linear infinite; }
.progress.indet > div { width: 35% !important; position: absolute; animation: shimmer 1.2s var(--ease) infinite; }

/* ------------------------------------------------------------------ result dashboard */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(105deg, color-mix(in srgb, var(--accent) 38%, #1b2838) 0%, #1b2838 45%, #131c28 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 16px),
              radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.hero .in { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; flex-wrap: wrap; }
.hero .who { font-size: 13px; color: #c6d4df; }
.hero .who b { color: #fff; font-size: 16px; }
.hero .big { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1.5px; margin: 4px 0 6px; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero .big small { font-size: 13px; font-weight: 600; color: #c6d4df; letter-spacing: 0; margin-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: rgba(0,0,0,.28);
  border: 1px solid var(--line); font-size: 11px; color: #c6d4df; max-width: 100%; }
.chip b { color: #fff; font-weight: 600; }
.chip .s { color: var(--muted); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; }
.hero .actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.verdict { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(90deg, rgba(76,107,34,.28), rgba(22,32,45,.9) 60%); }
.verdict.none { background: linear-gradient(90deg, rgba(42,63,85,.6), rgba(22,32,45,.9) 60%); }
.verdict .t { font-size: 14px; font-weight: 700; color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { position: relative; padding: 11px 14px 12px; background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.kpi:hover { border-color: var(--line-blue); transform: translateY(-1px); }
.kpi .k { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .9px; text-transform: uppercase; }
.kpi .v { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v.sm { font-size: 15px; line-height: 1.5; }
.kpi .d { font-size: 11px; color: var(--muted); }
.kpi svg.spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 44px; opacity: .9; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .7; }

.chart { width: 100%; height: 220px; }
.chart.sm { height: 180px; }

/* composition bar (part-to-whole, <=6 segments, 2px gaps) */
.comp { display: flex; gap: 2px; height: 16px; margin: 4px 0 10px; }
.comp > div { height: 100%; transform-origin: left; animation: grow .8s var(--ease) both; transition: filter .15s; }
.comp > div:hover { filter: brightness(1.25); }
.legend { display: grid; gap: 4px; }
.legend .li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 12px; padding: 2px 0; }
.legend .sw { width: 10px; height: 10px; }
.legend .li .v { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
  padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.t td { padding: 0 10px; height: 34px; border-bottom: 1px solid var(--line); }
table.t .r, table.t th.r { text-align: right; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: linear-gradient(90deg, rgba(102,192,244,.08), rgba(102,192,244,.02)); }
table.t tr.child td { color: var(--muted); font-size: 11.5px; } table.t tr.child td:first-child { padding-left: 34px; }
table.t tr.hl { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.bar-cell { position: relative; }
.bar-cell > .bar { position: absolute; left: 0; top: 6px; bottom: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
.bar-cell > .lbl { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.caret { width: 12px; color: var(--faint); cursor: pointer; font-size: 9px; flex: none; transition: transform .2s; }
.scroll { max-height: 470px; overflow: auto; }
.rank { width: 26px; text-align: center; font-weight: 800; color: var(--faint); }
tr:first-child .rank { color: var(--good); }

/* stat weights (HTML bars + error whiskers) */
.sw-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 128px; white-space: nowrap; gap: 10px; align-items: center; height: 30px; }
.sw-track { position: relative; height: 12px; background: #0f161f; }
.sw-track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); }
.sw-track .whisk { position: absolute; top: -3px; bottom: -3px; border-left: 1px solid #fff; border-right: 1px solid #fff; opacity: .55; }
.sw-track .whisk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #fff; }

/* item chips in rankings */
.ichip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px 0 0; background: rgba(0,0,0,.25);
  border: 1px solid var(--line); font-size: 11.5px; max-width: 100%; }
.ichip .s { align-self: stretch; display: flex; align-items: center; padding: 0 6px; background: var(--surface-3); color: #b8c6d3;
  font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ichip .il { color: #fff; font-weight: 700; font-size: 11px; }

/* history */
.hist { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) 120px 110px 90px 110px; gap: 12px; align-items: center;
  min-height: 52px; padding: 6px 14px; border-bottom: 1px solid var(--line); color: inherit; transition: background .15s, transform .15s var(--ease); }
.hist:hover { background: linear-gradient(90deg, rgba(102,192,244,.10), rgba(102,192,244,.02)); color: inherit; }
.hist .class-icon { width: 36px; height: 36px; font-size: 15px; box-shadow: none; }
.pill { font-size: 10px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; padding: 0 8px; }
.pill.done { background: rgba(91,163,43,.18); color: #a4d007; }
.pill.failed { background: rgba(255,123,123,.14); color: var(--bad); }
.pill.running, .pill.queued { background: rgba(102,192,244,.14); color: var(--blue); }
.pill.cancelled { background: var(--surface-3); color: var(--muted); }
.pill.ok { background: rgba(91,163,43,.18); color: #a4d007; } .pill.estimated { background: rgba(102,192,244,.14); color: var(--blue); }
.pill.partial { background: rgba(233,185,73,.14); color: var(--warn); } .pill.missing { background: rgba(255,123,123,.14); color: var(--bad); }

.empty { text-align: center; color: var(--muted); padding: 30px 16px; }

/* upgrades + scrub */
.tag.track { background: rgba(163, 53, 238, .16); color: #c58cff; }
.pick .ilvl .up, .ilvl .up { color: var(--good); margin-right: 4px; font-weight: 800; }
.pick { grid-template-columns: 16px minmax(0, 1fr) auto 76px; }
.scrubbing .comp > div { animation: none; transition: width .12s linear; }
.scrubbing .legend .li .v { color: var(--blue); }
.legend .li { transition: opacity .15s; }

/* MDT route preview */
.route-box { border: 1px solid var(--line-2); background: #0f161f; padding: 8px 10px; }
.route-box .pulls { max-height: 220px; overflow: auto; margin: 6px -4px 4px; }
.pull { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr); gap: 6px; align-items: center; height: 22px;
  padding: 0 4px; font-size: 11.5px; cursor: pointer; }
.pull:hover { background: var(--surface-2); }
.pull .pn { font-weight: 800; color: var(--faint); text-align: right; }
.pull.boss { color: #ffcf6e; }
.pull.boss .pn { color: #ffcf6e; }

/* ---------- Simple / Advanced mode ---------- */
.subbar .mode { display: flex; align-items: stretch; margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--line); }
.subbar .mode button { font-weight: 800; letter-spacing: .6px; text-transform: uppercase; font-size: 11.5px; }
.simple-layout { grid-template-columns: minmax(0, 860px); justify-content: center; }
.simple-layout .adv-only { display: none !important; }
.step-n { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.step-h { margin: 0; font-size: 18px; color: #fff; font-weight: 800; }
.choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px; cursor: pointer;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font: 12.5px var(--sans); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.choice b { font-size: 17px; color: #fff; }
.choice span { color: var(--muted); }
.choice:hover { border-color: var(--line-blue); transform: translateY(-1px); }
.choice.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 26px rgba(26, 68, 194, .25);
  background: linear-gradient(180deg, rgba(102,192,244,.14), var(--surface)); }

/* ---------- scenario strip ---------- */
.scen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.scen-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 14px;
  background: #0f161f; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; overflow: hidden;
  color: var(--text); font: 12px var(--sans); transition: border-color .15s; }
.scen-tile .k { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.scen-tile .v { font-size: 20px; font-weight: 800; color: #fff; }
.scen-tile .d { text-align: left; line-height: 1.35; margin-top: 2px; }
.scen-tile .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.scen-tile:hover { border-color: var(--line-blue); }
.scen-tile.on { border-color: var(--blue); background: linear-gradient(180deg, rgba(102,192,244,.12), #0f161f); }

/* ---------- guide ---------- */
.guide .card { max-width: 880px; margin: 0 auto; }
.guide-body h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
.guide-body h4:first-child { margin-top: 0; }
.guide-body p, .guide-body li { color: #c6d4df; line-height: 1.6; }
.guide-body ol, .guide-body ul { padding-left: 20px; margin: 6px 0; }
.guide-body table.t td { height: auto; padding: 7px 10px; vertical-align: top; color: #c6d4df; }
.guide-body table.t td:first-child { white-space: nowrap; width: 130px; }

/* ---------- class discords footer ---------- */
.discords { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.discords-hd { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.discords-hd .faint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.discords-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.dc { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 8px;
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-left: 2px solid var(--cc); color: var(--text);
  transition: background .15s, border-color .15s, transform .15s var(--ease); }
.dc:hover { background: color-mix(in srgb, var(--cc) 12%, transparent); color: #fff; transform: translateY(-1px); }
.dc.mine { background: color-mix(in srgb, var(--cc) 16%, transparent); border-color: color-mix(in srgb, var(--cc) 50%, transparent); }
.dc-icon { width: 26px; height: 26px; background-size: cover; background-color: var(--cc); }
.dc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dc-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-cls { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }

/* ---------- guided tour ---------- */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-spot { position: fixed; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(5, 8, 12, .72), 0 0 0 2px var(--blue), 0 0 24px rgba(102,192,244,.5);
  transition: all .35s var(--ease); pointer-events: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; background: linear-gradient(180deg, #1f2d3d, #16202d);
  border: 1px solid var(--line-blue); border-radius: var(--r); box-shadow: 0 16px 50px rgba(0,0,0,.55); transition: all .35s var(--ease);
  animation: fadeUp .3s var(--ease); }
.tour-card h4 { margin: 2px 0 6px; font-size: 15px; color: #fff; }
.tour-card p { margin: 0 0 12px; color: #c6d4df; line-height: 1.55; }
.tour-step { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--blue); }

/* bonus-roll planner */
.best-row { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.roll-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 4px; }
.roll-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px;
  padding: 4px 6px 4px 9px; background: rgba(0,0,0,.25); border-left: 2px solid var(--line); transition: opacity .15s, border-color .15s; }
.roll-item.want { border-left-color: var(--good); }
.roll-item.own { border-left-color: var(--warn); opacity: .75; }
.roll-item.rolled { opacity: .4; }
.roll-item.rolled a { text-decoration: line-through; }
.roll-item.no { opacity: .6; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 11px; font: 600 12.5px var(--sans); color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: #fff; background: var(--surface-3); }
.seg button.on.want { background: var(--good-bg); color: var(--good); }
.seg button.on.own { background: rgba(233,185,73,.14); color: var(--warn); }
.seg button.on.rolled, .seg button.on.no { background: var(--surface-3); color: #fff; }
@media (max-width: 640px) { .roll-items { grid-template-columns: 1fr; } .roll-item { grid-template-columns: minmax(0,1fr) auto; } }

/* where you stand */
.stand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.stand h4 { margin: 0 0 4px; font-size: 12px; color: #fff; }
.luck { position: relative; height: 64px; margin: 40px 8px 0; border-bottom: 1px solid var(--line); }
.luck-band { position: absolute; bottom: 0; height: 18px; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.luck-iqr { position: absolute; bottom: 0; height: 18px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.luck-tick { position: absolute; bottom: 0; width: 1px; height: 22px; background: var(--muted); }
.luck-tick.mid { height: 30px; background: #fff; }
.luck-tick .lp, .luck-tick .lv { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; }
.luck-tick .lp { top: -26px; color: var(--muted); font-weight: 700; letter-spacing: .4px; }
.luck-tick .lv { top: -14px; color: #c6d4df; }
.luck-tick:nth-of-type(odd) .lp, .luck-tick:nth-of-type(odd) .lv { top: auto; }
.luck-tick:nth-of-type(odd) .lp { bottom: -28px; } .luck-tick:nth-of-type(odd) .lv { bottom: -40px; }
.luck-you { position: absolute; bottom: 0; width: 2px; height: 74px; background: var(--good); transition: left .3s cubic-bezier(.2,.8,.2,1); }
.luck-you span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font: 800 10px var(--sans); color: var(--good); letter-spacing: .5px; text-transform: uppercase; }
.luck-ends { display: flex; justify-content: space-between; margin: 46px 0 0; }
.ladder td { padding-top: 4px; padding-bottom: 4px; }
.ladder tr.you td { color: var(--good); font-weight: 700; background: var(--good-bg); }
.ladder tr.you .bar { background: var(--good); opacity: .18; }
.ladder tr.you .lbl { color: #fff; }
@media (max-width: 900px) { .stand-grid { grid-template-columns: 1fr; } }
.stand .verdict { display: block; line-height: 1.5; color: #c6d4df; padding-top: 16px; }

/* ------------------------------------------------------------------ sidebar */
body { --side: 200px; padding-left: var(--side); transition: padding-left .25s var(--ease); }
body.nav-closed { --side: 56px; }
.side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column;
  background: #0d141d; border-right: 1px solid var(--line); overflow: hidden; transition: width .25s var(--ease), transform .25s var(--ease); }
.side-hd { height: 50px; flex: none; display: flex; align-items: center; padding: 0 17px; border-bottom: 1px solid var(--line); }
.side .brand { white-space: nowrap; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px; color: #b8c2cc;
  font-weight: 700; font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
  border-radius: var(--r); transition: background .15s, color .15s; }
.side-nav a svg, .side-toggle svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { background: var(--surface-2); color: #fff; }
.side-nav a.on { background: rgba(102,192,244,.1); color: var(--blue); }
.side-nav a.on::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; background: var(--blue);
  box-shadow: 0 0 10px var(--blue); animation: fadeIn .25s; }
.side-sep { height: 1px; margin: 8px 6px; background: var(--line); }
.side-nav a span, .side-toggle span, .side-lbl { transition: opacity .18s; }
body.nav-closed .side-nav a span, body.nav-closed .side-toggle span, body.nav-closed .side-lbl { opacity: 0; pointer-events: none; }
.side-toggle { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; margin: 8px; padding: 0 10px; color: var(--muted);
  background: none; border: 0; border-radius: var(--r); cursor: pointer; font: 600 11.5px var(--sans); white-space: nowrap; }
.side-toggle:hover { background: var(--surface-2); color: #fff; }
.side-toggle svg { transition: transform .25s var(--ease); }
body.nav-closed .side-toggle svg { transform: rotate(180deg); }
.topbar .in { max-width: none; gap: 14px; }
.page-title { font-weight: 800; font-size: 15px; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
.burger { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; background: none; border: 0;
  color: #c6d4df; cursor: pointer; border-radius: var(--r); }
.burger svg { width: 20px; height: 20px; }
.burger:hover { background: var(--surface-2); color: #fff; }
.burger-brand { display: none; }
.side-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5); }
@media (max-width: 900px) {
  body, body.nav-closed { --side: 220px; padding-left: 0; }
  .side { transform: translateX(-100%); box-shadow: none; }
  .side.show { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  body.nav-closed .side-nav a span, body.nav-closed .side-lbl { opacity: 1; }
  .side-toggle { display: none; }
  .burger { display: inline-flex; } .burger-brand { display: flex; } .page-title { display: none; }
}

.pop-builds { padding: 10px 12px; background: var(--surface-2); border-left: 2px solid var(--accent); }
.loadout-picks { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* character search (top bar) */
.top-search { position: relative; display: flex; align-items: center; gap: 4px; }
.top-search select, .top-search input { height: 28px; font-size: 12px; }
.top-search select { width: 58px; padding: 0 6px; }
.top-search .ts-name { width: 130px; }
.realm-pick { position: relative; }
.realm-pick input { width: 150px; }
.realm-list { position: absolute; z-index: 60; top: calc(100% + 3px); left: 0; width: 220px; max-height: 280px; overflow-y: auto;
  background: #0f161f; border: 1px solid var(--line-blue, var(--line)); box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: fadeIn .12s; }
.realm-list div { padding: 5px 10px; font-size: 12.5px; color: #c6d4df; cursor: pointer; white-space: nowrap; }
.realm-list div.on { background: rgba(102,192,244,.16); color: #fff; }
.ts-err { position: absolute; top: calc(100% + 6px); right: 0; z-index: 55; max-width: 380px; padding: 7px 10px; font-size: 12px; color: #ffd0d0;
  background: #2a1518; border-left: 2px solid var(--bad); cursor: pointer; animation: fadeIn .15s; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.search-btn { display: none; }
@media (max-width: 1250px) { .topbar .status { display: none; } }
@media (max-width: 900px) {
  .search-btn { display: inline-flex; }
  .top-search { display: none; position: fixed; top: 50px; left: 0; right: 0; padding: 10px 12px; background: #101722; border-bottom: 1px solid var(--line); z-index: 45; }
  .top-search.show { display: flex; }
  .top-search .ts-name, .realm-pick { flex: 1; min-width: 0; } .realm-pick input { width: 100%; }
}

/* ------------------------------------------------------------------ route library */
.lib-head { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.lib-h { margin: 0 0 2px; font-size: 20px; color: #fff; letter-spacing: -.2px; }
.tier-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; padding: 6px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line); }
.tier { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 76px;
  padding: 14px 10px 12px; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font: inherit; transition: background .2s, border-color .2s, color .2s, box-shadow .25s; }
.tier b { font-size: 18px; color: #c6d4df; letter-spacing: -.2px; }
.tier span { font-size: 11px; }
.tier:hover { background: var(--surface-2); color: #c6d4df; }
.tier.on { background: rgba(102,192,244,.1); border-color: rgba(102,192,244,.45); color: #c6d4df; }
.tier.on b { color: #fff; }
.tier.rec.on { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 34%, #1b2838), color-mix(in srgb, var(--accent) 14%, #16202d));
  border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 22%, transparent); }
.rec-pill { position: absolute; top: 7px; padding: 1px 7px; font-size: 9.5px !important; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.tier.rec { padding-top: 24px; }
.tier.add { border: 1px dashed var(--line); }
.tier-intro h2 { margin: 6px 0 4px; font-size: 22px; color: #fff; letter-spacing: -.3px; }
.tier-intro p { margin: 0 0 4px; color: var(--muted); }
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 150px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; animation: fadeUp .35s var(--ease) both; }
.rcard:hover { border-color: var(--line-blue, rgba(102,192,244,.35)); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.rc-date { position: absolute; top: 10px; right: 10px; padding: 2px 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .8px;
  color: #b9a7ff; background: rgba(163,125,255,.14); }
.rc-top { display: flex; align-items: center; gap: 12px; padding-right: 44px; margin-top: 12px; }
.rc-top b { display: block; color: #fff; font-size: 14px; }
.rc-img { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #0f161f center / cover no-repeat;
  border: 2px solid rgba(255,255,255,.12); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.rc-notes { color: #c6d4df; line-height: 1.45; }
.rc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.copy-mdt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; cursor: pointer;
  font: 800 11.5px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #f0c65a;
  background: linear-gradient(180deg, #3a2f16, #2a2210); border: 1px solid #6b5423; transition: filter .15s, background .2s, color .2s; }
.copy-mdt svg { width: 14px; height: 14px; }
.copy-mdt:hover { filter: brightness(1.25); }
.copy-mdt.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); background: var(--good-bg); }
.rc-more { display: flex; }
.rc-more a, .rc-more button { height: 32px; padding: 0 10px; display: inline-flex; align-items: center; font: 700 11px var(--sans);
  letter-spacing: .5px; text-transform: uppercase; color: #b8c2cc; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.rc-more a + button { border-left: 0; }
.rc-more a:hover, .rc-more button:hover { color: #fff; background: var(--surface-3); }
.rc-admin { display: flex; gap: 10px; font-size: 11.5px; }
.rc-admin button { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.rc-admin button.neg { color: var(--bad); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* ------------------------------------------------------------------ route planner */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.plan-bar { flex-wrap: wrap; row-gap: 6px; }
.plan-dungeon { width: 180px; height: 28px; }
.plan-name { width: 150px; height: 28px; }
.forces-meter { position: relative; width: 170px; height: 24px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.forces-meter .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2d73ff, var(--blue)); opacity: .55; transition: width .3s var(--ease); }
.forces-meter.done .fill { background: linear-gradient(90deg, #3a9d4a, var(--good)); }
.forces-meter span { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; font: 700 11.5px var(--sans); color: #fff; }
.plan-msg { padding: 6px 14px; color: var(--good); background: var(--good-bg); border-bottom: 1px solid var(--line); }
.map-wrap { position: relative; background: #0b1016; aspect-ratio: 840 / 560; overflow: hidden; }
.map { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; touch-action: none; }
.map:active { cursor: grabbing; }
.map circle.mob { stroke: #d8e0e8; stroke-width: .9; cursor: pointer; transition: fill .15s, stroke .15s;
  filter: drop-shadow(0 .6px .8px rgba(0,0,0,.7)); }
.map circle.mob:hover { stroke: #fff; stroke-width: 1.6; }
.map circle.mob.pulled { stroke: #0b0f14; stroke-width: 1; }
.map circle.mob.cur { stroke: #fff; stroke-width: 1.4; }
.map circle.mob.boss { stroke: #f0c65a; stroke-width: 1.8; }
.map circle.mob.pack { stroke: var(--blue); stroke-width: 1.6; }
.map .packblob { pointer-events: none; transition: opacity .2s; }
.map .packblob.hl { opacity: .45 !important; }
.map .skull { fill: #f0c65a; pointer-events: none; }
.map circle.imp { fill: #ff4d5e; stroke: #0b0f14; stroke-width: .7; pointer-events: none; }
.pull-lbl { font: 800 13px var(--sans); fill: #fff; stroke: #0b0f14; stroke-width: 3px; paint-order: stroke; pointer-events: none; }
.map-tip { position: absolute; z-index: 5; min-width: 150px; max-width: 220px; padding: 7px 10px; font-size: 12px; pointer-events: none;
  background: rgba(15,22,31,.96); border: 1px solid rgba(102,192,244,.35); box-shadow: 0 8px 20px rgba(0,0,0,.5); color: #c6d4df; }
.map-tip b { color: #fff; }
.map-hint { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; font-size: 11px; color: #c6d4df; background: rgba(11,16,22,.78); pointer-events: none; }
.plan-side { position: sticky; top: 62px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 80px); }
.plan-pulls { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pl-list { overflow-y: auto; flex: 1; }
.pl-pull { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: start; padding: 8px 10px 8px 8px;
  border-left: 3px solid var(--pc); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.pl-pull:hover { background: var(--surface-2); }
.pl-pull.on { background: color-mix(in srgb, var(--pc) 12%, transparent); }
.pl-n { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; font: 800 11.5px var(--sans);
  color: #0b0f14; background: var(--pc); }
.pl-m { font-size: 12px; color: #c6d4df; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-m.boss { color: #f0c65a; font-weight: 700; }
.pl-m .mono { color: var(--muted); }
.pl-f { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--muted); }
.pl-f b { font-size: 12px; color: #fff; }
.pl-a { display: flex; flex-direction: column; gap: 1px; opacity: 0; transition: opacity .15s; }
.pl-pull:hover .pl-a, .pl-pull.on .pl-a { opacity: 1; }
.pl-a button { width: 18px; height: 16px; padding: 0; font-size: 9px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.pl-a button:hover { color: #fff; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: 1fr; } .plan-side { position: static; max-height: none; } }

/* planner: drawings, tools, mob card */
.plan-lvl { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding-left: 8px; font-weight: 800; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); }
.plan-lvl input { width: 58px; height: 28px; padding: 0 6px; border: 0; background: transparent; }
.map.tool-pen, .map.tool-arrow { cursor: crosshair; } .map.tool-note { cursor: copy; } .map.tool-erase { cursor: not-allowed; }
.map:not(.tool-pull) circle.mob { pointer-events: none; }
.map path.draw { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.map polygon.draw { pointer-events: none; }
.map.tool-erase .draw, .map.tool-erase .dnote { pointer-events: visiblePainted; cursor: pointer; }
.map.tool-erase .draw:hover, .map.tool-erase .dnote:hover { opacity: .45; }
.map .live { opacity: .85; }
.map .notch { fill: none; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.map .notch.kick { stroke: #c77dff; } .map .notch.stop { stroke: #2ee6c8; }
.map .dnote circle { fill: #f0c65a; stroke: #0b0f14; stroke-width: 1; }
.map .dnote-n { font: 900 7px var(--sans); fill: #0b0f14; pointer-events: none; }
.map .dnote-t { font: 700 8px var(--sans); fill: #fff; stroke: #0b0f14; stroke-width: 2.4px; paint-order: stroke; pointer-events: none; }
.draw-bar { position: absolute; top: 8px; left: 8px; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(11,16,22,.88); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.draw-bar button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  color: #b8c2cc; background: none; border: 1px solid transparent; cursor: pointer; font: 800 11px var(--sans); }
.draw-bar button svg { width: 16px; height: 16px; }
.draw-bar button:hover { color: #fff; background: var(--surface-2); }
.draw-bar button.on { color: var(--blue); background: rgba(102,192,244,.14); border-color: rgba(102,192,244,.4); }
.draw-bar .sw { width: 20px; height: 20px; margin: 0 1px; background: var(--sw); border: 2px solid rgba(0,0,0,.5); }
.draw-bar .sw:hover { background: var(--sw); filter: brightness(1.15); }
.draw-bar .sw.on { background: var(--sw); border-color: #fff; }
.draw-bar .sz { width: 22px; }
.db-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.note-edit { position: absolute; z-index: 6; }
.note-edit input { width: 250px; height: 28px; box-shadow: 0 8px 22px rgba(0,0,0,.5); border-color: #f0c65a; }
.map-hint .lg { display: inline-block; width: 9px; height: 9px; margin: 0 2px 0 4px; border-radius: 50%; border: 2px solid; vertical-align: -1px; }
.map-hint .lg.kick { border-color: #c77dff transparent #c77dff #c77dff; transform: rotate(45deg); }
.map-hint .lg.stop { border-color: #2ee6c8 #2ee6c8 transparent #2ee6c8; transform: rotate(-135deg); }
.kick-t { color: #c77dff; font-weight: 700; }
.plan-mob { flex: none; max-height: 46vh; overflow-y: auto; }
.pm-name { color: #fff; font-size: 14px; } .pm-name.boss { color: #f0c65a; }
.pm-h { margin: 2px 0 4px; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.pm-spell { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 12px; }
.pm-spell a { flex: 1; min-width: 0; }
.pm-tag { padding: 0 5px; height: 16px; display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: #c6d4df; background: var(--surface-3); }
.pm-tag.kick { color: #e3c6ff; background: rgba(199,125,255,.22); }
.pm-tag.magic { color: #9fd3ff; background: rgba(62,160,255,.18); } .pm-tag.poison { color: #a6f0a0; background: rgba(90,200,80,.18); }
.pm-tag.curse { color: #e0b0ff; background: rgba(170,90,230,.18); } .pm-tag.disease { color: #f1d49a; background: rgba(200,150,60,.18); }
.pm-tag.enrage { color: #ffb0a0; background: rgba(230,90,60,.18); } .pm-tag.bleed { color: #ff9aa8; background: rgba(220,50,80,.18); }
.pm-cc { padding: 1px 6px; font-size: 11px; color: #c6d4df; background: var(--surface-2); border: 1px solid var(--line); }
.pm-cc.stop { color: #b6fff2; border-color: rgba(46,230,200,.4); }

/* planner: abilities in pull cards */
.pl-mob + .pl-mob { margin-top: 5px; }
.pl-ab { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-height: 19px; margin-left: 20px; font-size: 11.5px; line-height: 1.35; }
.pl-ab a { min-width: 0; flex: 0 1 auto; color: #9fb4c7; }
.pl-ab.imp a { color: #ff9aa6; font-weight: 700; }
.pl-ab.imp::before { content: ""; flex: none; width: 5px; height: 5px; margin-left: -9px; border-radius: 50%; background: #ff4d5e; }
.ab-tag { flex: none; height: 14px; padding: 0 4px; display: inline-flex; align-items: center; font-size: 8.5px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase; color: #c6d4df; background: var(--surface-3); }
.ab-tag.kick { color: #ecd6ff; background: rgba(199,125,255,.28); }
.ab-tag.stop { color: #c2fff4; background: rgba(46,230,200,.22); }
.ab-tag.tank { color: #ffd6a0; background: rgba(255,150,40,.2); }
.ab-tag.frontal { color: #ffc2c2; background: rgba(255,80,80,.2); }
.ab-tag.aoe { color: #ffe4a0; background: rgba(240,198,90,.16); }
.ab-tag.avoid { color: #c9d6ff; background: rgba(110,140,255,.18); }
.ab-tag.adds { color: #e0e0e0; background: rgba(255,255,255,.1); }
.ab-tag.purge, .ab-tag.magic { color: #9fd3ff; background: rgba(62,160,255,.18); }
.ab-tag.soothe { color: #ffb0a0; background: rgba(230,90,60,.2); }
.ab-tag.poison { color: #a6f0a0; background: rgba(90,200,80,.18); } .ab-tag.curse { color: #e0b0ff; background: rgba(170,90,230,.18); }
.ab-tag.disease { color: #f1d49a; background: rgba(200,150,60,.18); } .ab-tag.bleed { color: #ff9aa8; background: rgba(220,50,80,.18); }
.ab-tag.special { color: #f0c65a; background: rgba(240,198,90,.12); }
.pl-more { margin-left: 20px; font-size: 10.5px; color: var(--faint); }
.seg-mini { display: inline-flex; border: 1px solid var(--line); margin-right: 4px; }
.seg-mini button { height: 22px; padding: 0 8px; font: 700 10.5px var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer; }
.seg-mini button.on { color: #fff; background: var(--surface-3); }
.pl-other { border-top: 1px solid var(--line); padding: 6px 10px 8px; font-size: 12px; }
.pl-other summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .4px; }
.pl-other .pl-mob { margin-top: 6px; }
.plan-guide { height: 26px; display: inline-flex; align-items: center; padding: 0 8px; font: 700 11px var(--sans); color: #b8c2cc;
  background: var(--surface-2); border: 1px solid var(--line); }
.plan-guide:hover { color: #fff; }
.stop-t { color: #2ee6c8; font-weight: 700; } .imp-t { color: #ff9aa6; font-weight: 700; }
.map-hint .lg.imp { width: 7px; height: 7px; border: 0; background: #ff4d5e; transform: none; }

/* planner: compact pull list */
.pl-pull { padding: 6px 8px 6px 6px; gap: 7px; }
.pl-pull:not(.open) .pl-n { width: 20px; height: 20px; font-size: 11px; }
.pl-sum { font-size: 12px; color: #c6d4df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.pl-threats { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.pl-pull.open .pl-threats { margin: 1px 0 5px; }
.ab-tag.imp { color: #fff; background: #d8344a; }
.pl-detail { display: flex; flex-direction: column; gap: 3px; }
.pl-mob + .pl-mob { margin-top: 0; }
.pl-mrow { display: flex; align-items: center; gap: 5px; min-height: 22px; }
.pl-cnt { flex: none; width: 22px; color: var(--muted); font-size: 11px; text-align: right; }
.pl-nm { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #c6d4df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-nm.boss { color: #f0c65a; font-weight: 700; }
.pl-ics { flex: none; display: flex; align-items: center; gap: 3px; }
.ab-ic { position: relative; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--surface-3); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); font-size: 0; line-height: 0; }
.ab-ic .iconsmall { position: absolute; inset: 0; margin: 0 !important; }
.ab-ic .iconsmall ins, .ab-ic .iconsmall { width: 18px !important; height: 18px !important; background-size: cover !important; }
.ab-ic .iconsmall del { display: none; }
.ab-ic-fb { font: 800 10px var(--sans); color: var(--muted); line-height: 1; }
.ab-ic[data-wh-icon-added] .ab-ic-fb { display: none; }
.ab-ic.kick { box-shadow: 0 0 0 1.5px #c77dff; } .ab-ic.stop { box-shadow: 0 0 0 1.5px #2ee6c8; }
.ab-ic.tank { box-shadow: 0 0 0 1.5px #ff9a2e; } .ab-ic.frontal { box-shadow: 0 0 0 1.5px #ff5a5a; }
.ab-ic.aoe { box-shadow: 0 0 0 1.5px #f0c65a; } .ab-ic.avoid { box-shadow: 0 0 0 1.5px #6e8cff; }
.ab-ic.purge { box-shadow: 0 0 0 1.5px #3ea0ff; } .ab-ic.soothe { box-shadow: 0 0 0 1.5px #e65a3c; }
.ab-ic.imp::after { content: ""; position: absolute; top: 1px; right: 1px; width: 5px; height: 5px; border-radius: 50%;
  background: #ff4d5e; box-shadow: 0 0 0 1px #0b0f14; }
.pl-ics .pl-more { margin: 0 0 0 2px; font-size: 10px; }
.pl-imp { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; margin: 0 0 2px 27px; font-size: 11px; line-height: 1.35; }
.pl-imp b { color: #ff9aa6; }
.pl-note { flex-basis: 100%; color: var(--muted); font-size: 10.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.icon-btn { height: 22px; min-width: 24px; padding: 0 5px; margin-right: 4px; font-size: 9px; letter-spacing: -1px; color: var(--muted);
  background: none; border: 1px solid var(--line); cursor: pointer; }
.icon-btn:hover, .icon-btn.on { color: #fff; background: var(--surface-3); }
.pl-pull:not(.open) .pl-a { display: none; }
.pl-pull:not(.open) { grid-template-columns: 22px minmax(0, 1fr) auto; }
.pl-pull:not(.open) .ab-tag { height: 13px; font-size: 8px; padding: 0 3px; }
.pl-pull:not(.open) .pl-f b { font-size: 11.5px; }
.h3.nowrap, .t.nowrap { white-space: nowrap; }
.icon-btn { font-size: 10px; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
.plan-pulls > .hd { gap: 6px; flex-wrap: nowrap; }
.plan-pulls > .hd .btn { white-space: nowrap; flex: none; }

.footer .vibe { margin-top: 5px; font-size: 11px; color: var(--faint); }
.footer .vibe b { color: var(--accent); font-weight: 800; }

/* group utility check */
.grp { display: inline-flex; align-items: center; gap: 3px; }
.grp-slot { width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--muted); font: 700 14px var(--sans); background: var(--surface-2) center / cover no-repeat; border: 1px dashed var(--line); border-radius: 3px; }
.grp-slot:hover { border-color: var(--blue); color: #fff; }
.grp-slot.on { border: 1px solid rgba(0,0,0,.6); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.grp-look { width: 118px; height: 26px; font-size: 11.5px; margin-left: 4px; }
.plan-util { flex: none; }
.plan-util > .hd { flex-wrap: wrap; row-gap: 6px; }
.util-rows { padding: 4px 0 6px; max-height: 30vh; overflow-y: auto; }
.util-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 3px 10px; font-size: 11.5px; }
.util-row .ab-tag { justify-content: center; min-width: 76px; }
.util-what { color: #9fb4c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util-what .imp-n { color: #ff7a8a; font-weight: 800; }
.util-who { color: #7fe3a0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.util-who.sug { color: var(--muted); font-weight: 600; }
.util-row.miss { background: rgba(255,77,94,.08); }
.util-row.miss .util-who { color: #ff8a98; }
.ab-tag.miss { box-shadow: inset 0 0 0 1px #ff4d5e; text-decoration: line-through; text-decoration-thickness: 1px; }
.spec-pop { position: fixed; z-index: 90; width: 340px; max-height: 430px; overflow-y: auto; padding: 8px 10px;
  background: #101722; border: 1px solid rgba(102,192,244,.35); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.spec-pop-hd { display: flex; align-items: center; margin-bottom: 6px; font-size: 12px; color: #fff; }
.spec-row { display: grid; grid-template-columns: 96px repeat(4, 30px); gap: 4px; align-items: center; margin-bottom: 3px; }
.spec-cls { font-size: 11px; font-weight: 800; }
.spec-ic { width: 30px; height: 30px; padding: 0; cursor: pointer; background: var(--surface-3) center / cover no-repeat;
  border: 1px solid rgba(0,0,0,.6); border-radius: 3px; color: var(--muted); font-weight: 800; transition: transform .12s, box-shadow .12s; }
.spec-ic:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--blue); }
.lib-group .bd { flex-wrap: wrap; }
.rc-fit { padding: 5px 8px; color: var(--muted); background: var(--surface-2); line-height: 1.4; }
.rc-fit.ok { color: #7fe3a0; background: rgba(90,200,120,.08); }
.rc-fit.miss { color: #ff8a98; background: rgba(255,77,94,.08); }
.util-row.warn .util-who { color: #f0c65a; }

/* sim vs top Warcraft Logs: color = source (sim in class color, logs neutral), not good/bad */
.wcl-sim { color: var(--accent); }
.wcl-log { color: #b8c2cf; }
td.wcl-sim { color: color-mix(in srgb, var(--accent) 70%, #fff); font-weight: 600; }
td.wcl-log { color: #9aa6b4; }
.wcl-share { display: grid; grid-template-columns: 1fr 44px; align-items: center; column-gap: 6px; row-gap: 2px; }
.wcl-share .b { height: 6px; border-radius: 1px; min-width: 1px; transition: width .4s ease; }
.wcl-share .b.sim { background: var(--accent); }
.wcl-share .b.log { background: #6f7c8c; }
.wcl-share .b.you { background: #4fc6b4; }
.wcl-you, td.wcl-you { color: #6fd8c8; }
.wcl-runs { display: flex; flex-wrap: wrap; gap: 6px; }
.wcl-run { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 5px 9px; min-width: 150px;
  background: rgba(0,0,0,.28); border-left: 2px solid #6f7c8c; color: inherit; text-decoration: none; }
.wcl-run:hover { background: rgba(0,0,0,.4); }
.wcl-run .k { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: #8f98a0; max-width: 120px; }
.wcl-run b { font: 700 14px/1.2 var(--mono); color: #fff; text-align: right; }
.wcl-run .sub { grid-column: 1 / -1; font-size: 10.5px; color: #8f98a0; }
.wcl-run.sim { border-left-color: var(--accent); }
.wcl-run.you { border-left-color: #4fc6b4; }
.wcl-run.skel { position: relative; overflow: hidden; border-left-color: rgba(255,255,255,.08); }
.wcl-run.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .wcl-run.skel::after { animation: none; } }
.wcl-share .v { font: 600 10px/1 var(--mono, monospace); text-align: right; }

.seg.view button.on { background: var(--surface-3); color: #fff; }
tr.wcl-total td { border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }

/* Droptimizer by slot */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.slot-card { background: rgba(0,0,0,.2); border: 1px solid var(--line); padding: 8px 10px; min-width: 0; animation: fadeUp .3s ease both; }
.slot-card.none { opacity: .55; }
.slot-card .sh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; min-width: 0; }
.slot-card .sh b { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; flex: none; }
.slot-card .si { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.04); }
.slot-card .rk { font: 700 11px var(--mono); color: var(--muted); }
.slot-card .nm { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.slot-card .nm .tag { margin-top: 2px; }
.tag.pop.common { background: rgba(102,192,244,.14); color: var(--blue); }
.tag.pop.rare { background: rgba(199,155,255,.16); color: #c79bff; }

/* ---------------------------------------------------------------- patch notes */
.nav-new { position: absolute; top: 9px; left: 26px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 6px var(--warn); }
.page.patch { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pn { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,34,48,.95), rgba(16,24,34,.95)); animation: fadeUp .35s ease both; }
.pn-hero { position: relative; padding: 26px 28px 20px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(233,185,73,.20), transparent 55%),
              radial-gradient(90% 120% at 100% 0%, rgba(102,192,244,.16), transparent 60%),
              linear-gradient(135deg, #1c2a3b, #111a25); border-bottom: 1px solid rgba(233,185,73,.35); }
.pn.older .pn-hero { padding: 16px 28px; cursor: pointer; background: linear-gradient(135deg, #1a2533, #121b26); border-bottom-color: var(--line); }
.pn.older .pn-hero:hover { background: linear-gradient(135deg, #1f2c3c, #141e2a); }
.pn-kicker { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: 1.6px; color: var(--warn); }
.pn.older .pn-kicker { color: var(--muted); }
.pn-hero h1 { margin: 6px 0 8px; font: 800 30px/1.1 var(--sans); color: #fff; letter-spacing: .3px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.pn.older .pn-hero h1 { font-size: 19px; margin: 4px 0; }
.pn-ver { color: var(--warn); font-weight: 800; margin-right: 4px; }
.pn.older .pn-ver { color: #c6d4df; }
.pn-hero p { margin: 0; max-width: 720px; color: #c6d4df; font-size: 13.5px; line-height: 1.55; }
.pn.older .pn-hero p { font-size: 12.5px; color: var(--muted); }
.pn-toggle { position: absolute; right: 22px; top: 18px; font: 700 11px var(--sans); color: var(--blue); }
.pn-body { padding: 6px 28px 22px; }
.pn-sec h2 { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; padding-bottom: 7px; font: 800 15px var(--sans);
  text-transform: uppercase; letter-spacing: .8px; color: #fff; border-bottom: 1px solid rgba(233,185,73,.25); }
.pn-sec ul { margin: 0; padding-left: 20px; }
.pn-sec > ul > li { margin: 7px 0; color: #dfe6ec; font-size: 13px; line-height: 1.55; }
.pn-sec > ul > li::marker { color: var(--warn); }
.pn-sec ul ul { margin-top: 4px; }
.pn-sec ul ul li { margin: 3px 0; color: #aab6c2; font-size: 12.5px; }
.pn-sec ul ul li::marker { color: var(--muted); }
.pn-dev { margin: 12px 0 4px; padding: 10px 14px; border-left: 3px solid var(--warn); background: rgba(233,185,73,.07);
  color: #d9c79c; font-style: italic; font-size: 12.5px; line-height: 1.55; }
.pn-dev b { font-style: normal; color: var(--warn); }
.pn-ic { flex: none; width: 22px; height: 22px; border: 1px solid rgba(233,185,73,.5); background: rgba(233,185,73,.1) center / 14px no-repeat; }
.pn-ic.ic-logs  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.pn-ic.ic-route { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Ccircle cx='5' cy='18' r='2'/%3E%3Ccircle cx='19' cy='6' r='2'/%3E%3Cpath d='M7 18h7a3 3 0 0 0 0-6H10a3 3 0 0 1 0-6h7'/%3E%3C/svg%3E"); }
.pn-ic.ic-loot  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Cpath d='M3 8h18v12H3zM3 8l3-4h12l3 4M12 8v12'/%3E%3C/svg%3E"); }
.pn-ic.ic-ui    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='16'/%3E%3Cpath d='M3 9h18M8 9v11'/%3E%3C/svg%3E"); }
.pn-ic.ic-group { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3.5 2.7-6 6-6s6 2.5 6 6M15 14.5c3 0 6 2 6 5.5'/%3E%3C/svg%3E"); }
.pn-ic.ic-fix   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .pn-hero, .pn-body { padding-left: 16px; padding-right: 16px; } .pn-hero h1 { font-size: 23px; } .pn-toggle { position: static; display: block; margin-top: 8px; } }

/* patch notes: what's new / updated / fixed in this patch */
.pn-tag { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-right: 7px; vertical-align: 1px;
  font: 800 9.5px var(--sans); letter-spacing: .6px; text-transform: uppercase; border-radius: 1px; }
.pn-tag.new { background: var(--good-bg); color: var(--good); box-shadow: 0 0 8px rgba(190,238,17,.25); }
.pn-tag.updated { background: rgba(102,192,244,.15); color: var(--blue); }
.pn-tag.fixed { background: rgba(255,255,255,.07); color: #aab6c2; }
.pn-sec h2 .pn-tag { margin: 0 0 0 4px; height: 18px; font-size: 10px; }
.pn-sec li.is-new > span:last-child { color: #e9f7b4; font-weight: 600; }
.pn-sec.is-new { position: relative; padding-left: 14px; margin-left: -14px; border-left: 2px solid var(--good); }
.pn-sec.is-new h2 { color: var(--good); }
.pn-sec.is-new > ul > li::marker { color: var(--good); }

.tag.cat { background: rgba(163,53,238,.16); color: #c58cff; }

/* Armory import: a form on the Sim page (it used to sit in the top bar and read like a login) */
.armory-card .bd { display: flex; flex-direction: column; gap: 8px; }
.armory-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.armory-hd b { font-size: 13px; color: #fff; }
.armory-form { flex-wrap: wrap; }
.armory-form .ts-name { width: 180px; }
.armory-form .realm-pick input { width: 200px; }
.armory-form .ts-err { position: static; max-width: none; flex-basis: 100%; }
@media (max-width: 900px) {
  .armory-form { display: flex !important; position: static !important; padding: 0 !important; background: none !important; border: 0 !important; }
}

/* M+ routes: the party picker, front and center */
.party-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px 18px; text-align: center;
  border: 1px solid rgba(102,192,244,.22); background: radial-gradient(90% 140% at 50% 0%, rgba(102,192,244,.12), transparent 70%),
  linear-gradient(180deg, #172230, #111a25); animation: fadeUp .3s ease both; }
.party-hd h3 { margin: 0; font: 800 17px var(--sans); color: #fff; letter-spacing: .3px; }
.party-hd p { margin: 4px auto 0; max-width: 560px; color: #aab6c2; font-size: 12.5px; }
.party-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.party-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; }
.grp-slot.big { width: 56px; height: 56px; font-size: 22px; background-size: cover; border: 1px dashed rgba(255,255,255,.22);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.grp-slot.big:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.grp-slot.big.on { border-style: solid; }
.party-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px var(--sans); color: var(--muted); }
.party-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--muted); }
.party-look { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.party-look select { width: 58px; height: 28px; }
.party-look .grp-look { width: 260px; height: 28px; margin: 0; font-size: 12px; }

/* ---------------------------------------------------------------- top players */
.top-pick .bd { display: flex; flex-direction: column; gap: 10px; }
.top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-lbl { width: 56px; font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.top-classes { display: flex; gap: 4px; flex-wrap: wrap; }
.top-cls { width: 28px; height: 28px; padding: 0; border: 0; background-size: cover; cursor: pointer; opacity: .55; transition: opacity .15s, transform .15s; }
.top-cls:hover { opacity: 1; transform: translateY(-1px); } .top-cls.on { opacity: 1; }
.top-specs { display: flex; gap: 4px; flex-wrap: wrap; }
.top-spec { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border: 1px solid var(--line); background: rgba(0,0,0,.2);
  color: #c6d4df; font: 600 12px var(--sans); cursor: pointer; }
.top-spec i { width: 20px; height: 20px; background-size: cover; }
.top-spec:hover { border-color: var(--blue); color: #fff; } .top-spec.on { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.top-encs { display: flex; gap: 4px; flex-wrap: wrap; padding-left: 66px; margin-bottom: 2px; }
.top-enc { height: 26px; padding: 0 10px; border: 1px solid var(--line); background: rgba(0,0,0,.2); color: #aab6c2; font: 600 11.5px var(--sans); cursor: pointer; }
.top-enc:hover { color: #fff; border-color: var(--line-2, var(--line)); } .top-enc.on { color: #fff; border-color: var(--blue); background: rgba(102,192,244,.12); }
.top-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.top-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: linear-gradient(180deg, #192636, #131d29); border: 1px solid var(--line); min-width: 0; animation: fadeUp .3s ease both; }
.top-card .k { font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.top-card b { font: 800 20px/1.1 var(--mono); color: #fff; }
.top-card .sub { font-size: 11px; color: #8f98a0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-prog { height: 6px; margin: 3px 0 1px; background: rgba(255,255,255,.06); } .top-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7fd67f); transition: width .6s ease; }
.top-split { display: flex; height: 10px; gap: 2px; margin: 5px 0 2px; } .top-split i { background: var(--c); min-width: 3px; }
.top-trinkets { display: flex; gap: 10px; margin-top: 3px; }
.top-trinkets > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.top-trinkets a { text-decoration: none; font-size: 0; }
.top-trinkets span { font: 700 11px var(--mono); color: #c6d4df; }
.top-tools { flex-wrap: wrap; gap: 8px; }
.top-tabs { display: flex; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.top-tabs button { white-space: nowrap; flex: none; }
.top-tabs button { height: 28px; padding: 0 12px; border: 0; background: transparent; color: #aab6c2; font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: .5px; cursor: pointer; border-bottom: 2px solid transparent; }
.top-tabs button small { margin-left: 5px; color: var(--muted); font-weight: 600; }
.top-tabs button:hover { color: #fff; } .top-tabs button.on { color: #fff; border-bottom-color: var(--accent); }
.top-find { position: relative; } .top-find input { width: 220px; height: 28px; }
.top-sug { position: absolute; right: 0; top: calc(100% + 3px); z-index: 30; width: 300px; max-height: 320px; overflow-y: auto; background: #0f161f; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.top-sug div { display: flex; align-items: center; gap: 7px; padding: 5px 9px; cursor: pointer; font-size: 12px; color: #c6d4df; }
.top-sug div:hover { background: rgba(102,192,244,.14); color: #fff; }
.top-sug img { width: 16px; height: 16px; } .top-sug em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.top-pinbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 8px 12px; }
.top-pinbar input { width: 280px; height: 28px; }
.top-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; }
.top-scroll { overflow: auto; max-height: 640px; }
.top-t { border-collapse: separate; border-spacing: 0; }
.top-t th, .top-t td { white-space: nowrap; }
.top-t thead th { position: sticky; top: 0; z-index: 3; background: #16202c; vertical-align: bottom; }
.top-t .sticky { position: sticky; z-index: 2; background: #121b26; }
.top-t thead .sticky { z-index: 4; background: #16202c; }
.top-t .c0 { left: 0; width: 32px; min-width: 32px; } .top-t .c1 { left: 32px; min-width: 140px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
.top-h { cursor: pointer; min-width: 64px; max-width: 96px; }
.top-hi { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.top-hi img { width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.5); }
.top-hi span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .3px; }
.top-hi small { font: 600 9.5px var(--sans); color: var(--muted); text-transform: none; }
.top-hi i { font-style: normal; font-size: 8px; color: var(--accent); }
.top-h.sorted span { color: #fff; }
.top-t tbody tr:hover td { filter: brightness(1.25); }
.top-median td { background: rgba(255,255,255,.035); font-weight: 700; border-bottom: 1px solid var(--line); }
.top-median .sticky { background: #18222e; }
.top-you td { border-bottom: 1px solid rgba(79,198,180,.25); }
.top-you .sticky { background: #10231f; } .top-you .c1 a { color: #6fd8c8; font-weight: 700; }
.tag.you { background: rgba(79,198,180,.16); color: #6fd8c8; }
.top-yes { color: var(--accent); }
.top-item { display: inline-flex; align-items: center; gap: 5px; max-width: 170px; text-decoration: none; }
.top-item img { width: 16px; height: 16px; } .top-item span { overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); }
.top-item.q-EPIC span, .top-item.q-epic span { color: #c58cff; } .top-item.q-RARE span, .top-item.q-rare span { color: #5aa7ff; }
.top-legend { display: inline-flex; gap: 1px; margin-right: 6px; vertical-align: -2px; }
.top-legend i { width: 14px; height: 10px; background: color-mix(in srgb, var(--accent) calc(4% + 40% * var(--p)), transparent); }
@media (max-width: 1100px) { .top-cards { grid-template-columns: repeat(2, 1fr); } .top-encs { padding-left: 0; } }

/* top players: match your group, and your analysis */
.top-match { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: rgba(79,198,180,.06); }
.top-an-tab { color: #6fd8c8 !important; } .top-an-tab.on { border-bottom-color: #4fc6b4 !important; }
.top-an { display: flex; flex-direction: column; gap: 14px; }
.top-an-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .top-an-hd b { font-size: 15px; color: #fff; }
.top-an-key { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.top-an-key i { display: inline-block; width: 16px; height: 8px; margin-right: 4px; vertical-align: 0; }
.k-band { background: rgba(255,255,255,.10); } .k-mid { background: rgba(255,255,255,.24); }
.k-med { width: 2px !important; height: 12px !important; background: #c6d4df; } .k-you { width: 9px !important; height: 9px !important; border-radius: 50%; background: #4fc6b4; }
.tag.odd { background: rgba(233,185,73,.15); color: var(--warn); }
.top-an-sec h4 { margin: 4px 0 6px; padding-bottom: 5px; font: 800 12px var(--sans); text-transform: uppercase; letter-spacing: .7px; color: #fff; border-bottom: 1px solid var(--line); }
.top-an-sec > p { margin: -2px 0 8px; }
.top-an-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(160px, 1fr) minmax(220px, 1.3fr); gap: 14px; align-items: center;
  padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.03); animation: fadeUp .25s ease both; }
.top-an-row.odd { background: rgba(233,185,73,.04); }
.an-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.an-name img { width: 20px; height: 20px; flex: none; }
.an-name b { font-size: 12.5px; color: #e4ebf1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-name em { font-style: normal; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.an-strip { position: relative; height: 22px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.an-strip i { position: absolute; top: 0; bottom: 0; }
.an-strip .band { background: rgba(255,255,255,.08); } .an-strip .mid { background: rgba(255,255,255,.18); }
.an-strip .med { width: 2px; background: #c6d4df; margin-left: -1px; }
.an-strip .you { top: 50%; bottom: auto; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #4fc6b4;
  box-shadow: 0 0 0 2px #0f161f, 0 0 8px rgba(79,198,180,.7); transition: left .5s ease; }
.an-strip .you span { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); font: 700 10px var(--mono); color: #6fd8c8; white-space: nowrap; }
.an-text { color: #aab6c2; line-height: 1.45; }
.top-an-row:not(:has(.an-strip)) { grid-template-columns: minmax(180px, 260px) 1fr; }
@media (max-width: 900px) { .top-an-row, .top-an-row:not(:has(.an-strip)) { grid-template-columns: 1fr; gap: 4px; } }

/* analysis: green / amber / red, visual first */
:root { --z-good: #5cb85c; --z-ok: #e9b949; --z-bad: #e05252; }
.z-good { color: #7fd67f; } .z-ok { color: #f0c860; } .z-bad { color: #f07a7a; }
.an-summary { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.an-score { padding: 12px 14px; background: linear-gradient(180deg, #172230, #111a25); border: 1px solid var(--line); }
.an-score .big { display: flex; align-items: baseline; gap: 6px; } .an-score .big b { font: 800 34px/1 var(--mono); color: #7fd67f; }
.an-score .big span { color: var(--muted); font-size: 13px; }
.an-stack { display: flex; height: 12px; gap: 2px; margin: 8px 0 5px; } .an-stack i { min-width: 2px; transition: flex .5s ease; }
.an-stack .good { background: var(--z-good); } .an-stack .ok { background: var(--z-ok); } .an-stack .bad { background: var(--z-bad); }
.an-counts { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.an-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #131d29; border: 1px solid var(--line); border-top: 3px solid var(--line); }
.an-tile .k { font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.an-tile b { font: 800 20px/1.15 var(--mono); color: #fff; } .an-tile .d { font: 700 12px var(--mono); } .an-tile .m { font-size: 11px; color: var(--muted); }
.an-tile.z-good { border-top-color: var(--z-good); } .an-tile.z-good .d { color: #7fd67f; }
.an-tile.z-ok { border-top-color: var(--z-ok); } .an-tile.z-ok .d { color: #f0c860; }
.an-tile.z-bad { border-top-color: var(--z-bad); } .an-tile.z-bad .d { color: #f07a7a; }
.top-an-key .k-good, .top-an-key .k-ok, .top-an-key .k-bad { display: inline-block; width: 16px; height: 8px; margin-right: 4px; }
.k-good { background: var(--z-good); } .k-ok { background: var(--z-ok); } .k-bad { background: var(--z-bad); }
.top-an-row { border-left: 3px solid transparent; }
.top-an-row.z-good { border-left-color: var(--z-good); } .top-an-row.z-ok { border-left-color: var(--z-ok); }
.top-an-row.z-bad { border-left-color: var(--z-bad); background: rgba(224,82,82,.05); }
.top-an-row.odd:not(.z-bad) { background: rgba(233,185,73,.04); }
.tag.zt.z-good { background: rgba(92,184,92,.16); } .tag.zt.z-ok { background: rgba(233,185,73,.16); } .tag.zt.z-bad { background: rgba(224,82,82,.18); }
/* the strip: coloured zones behind the top players' spread */
.an-strip.match { background: linear-gradient(90deg,
  rgba(224,82,82,.30) 0 var(--p10), rgba(233,185,73,.26) var(--p10) var(--p25), rgba(92,184,92,.34) var(--p25) var(--p75),
  rgba(233,185,73,.26) var(--p75) var(--p90), rgba(224,82,82,.30) var(--p90) 100%); }
.an-strip.dir-up { background: linear-gradient(90deg, rgba(224,82,82,.34) 0, rgba(224,82,82,.30) var(--p25), rgba(233,185,73,.28) var(--p25), rgba(233,185,73,.28) var(--med), rgba(92,184,92,.34) var(--med) 100%); }
.an-strip.dir-down { background: linear-gradient(90deg, rgba(92,184,92,.34) 0, rgba(92,184,92,.34) var(--med), rgba(233,185,73,.28) var(--med), rgba(233,185,73,.28) var(--p75), rgba(224,82,82,.30) var(--p75) 100%); }
.an-strip .band { background: rgba(255,255,255,.06); } .an-strip .mid { background: rgba(255,255,255,.12); }
.top-an-row.z-good .an-strip .you { background: var(--z-good); box-shadow: 0 0 0 2px #0f161f, 0 0 8px rgba(92,184,92,.8); }
.top-an-row.z-ok .an-strip .you { background: var(--z-ok); box-shadow: 0 0 0 2px #0f161f, 0 0 8px rgba(233,185,73,.8); }
.top-an-row.z-bad .an-strip .you { background: var(--z-bad); box-shadow: 0 0 0 2px #0f161f, 0 0 8px rgba(224,82,82,.8); }
.top-an-row.z-good .an-strip .you span { color: #9be09b; } .top-an-row.z-ok .an-strip .you span { color: #f5d27a; } .top-an-row.z-bad .an-strip .you span { color: #f59a9a; }

.top-pinprog { width: 120px; height: 6px; background: rgba(255,255,255,.08); } .top-pinprog i { display: block; height: 100%; background: #4fc6b4; transition: width .15s linear; }

/* role-based spec picker */
.top-roles button { min-width: 74px; }
.top-spec { border-left: 3px solid var(--cc, var(--line)); padding-left: 6px; height: 32px; }
.top-spec span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.top-spec b { font-size: 12px; } .top-spec small { font-size: 10px; color: var(--muted); font-weight: 600; }
.top-spec.on small { color: color-mix(in srgb, var(--cc) 80%, #fff); }
/* coaching callout */
.an-diag { margin: 4px 0 10px; padding: 10px 14px; border-left: 4px solid var(--z-ok); background: rgba(233,185,73,.08); font-size: 13px; line-height: 1.5; }
.an-diag b { color: #fff; } .an-diag span { color: #d7dee5; }
.an-diag.z-good { border-left-color: var(--z-good); background: rgba(92,184,92,.08); }
.an-diag.z-bad { border-left-color: var(--z-bad); background: rgba(224,82,82,.08); }

.top-filter { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-size: 12px; color: #c6d4df; }
.top-size-in { width: 60px !important; height: 28px; }

/* ---------------------------------------------------------------- navigation (grouped, collapsible) */
body { --side: 236px; } body.nav-closed { --side: 64px; }
.side-hd { height: 56px; padding: 0 10px 0 18px; justify-content: space-between; gap: 8px; }
.side-collapse { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: transparent; border: 0;
  color: var(--muted); cursor: pointer; border-radius: var(--r); transition: background .15s, color .15s; }
.side-collapse:hover { background: var(--surface-2); color: #fff; }
.side-collapse svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
body.nav-closed .side-hd { padding: 0; justify-content: center; }
body.nav-closed .side-hd .brand { display: none; }
body.nav-closed .side-collapse svg { transform: rotate(180deg); }
.side-cta { padding: 12px 10px 4px; }
.side-sim { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r); white-space: nowrap;
  color: #fff; font: 800 14px var(--sans); letter-spacing: .3px; text-decoration: none;
  background: linear-gradient(90deg, #47bfff 0%, #1a44c2 100%); box-shadow: 0 6px 18px rgba(26,68,194,.35); transition: filter .15s, transform .15s; }
.side-sim:hover { filter: brightness(1.12); transform: translateY(-1px); }
.side-sim svg { width: 20px; height: 20px; flex: none; }
.side-sim.on { box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 6px 18px rgba(26,68,194,.35); }
body.nav-closed .side-cta { padding: 12px 10px 4px; } body.nav-closed .side-sim { justify-content: center; padding: 0; }
body.nav-closed .side-sim span { display: none; }
.side-nav { gap: 1px; padding: 4px 10px 12px; overflow-y: auto; }
.side-grp { padding: 16px 12px 6px; font: 700 11px var(--sans); letter-spacing: 1.1px; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
body.nav-closed .side-grp { padding: 10px 0 6px; } body.nav-closed .side-grp span { display: none; }
body.nav-closed .side-grp::before { content: ""; display: block; height: 1px; margin: 0 8px; background: var(--line); }
.side-nav a { height: 40px; gap: 12px; padding: 0 12px; font: 600 14px var(--sans); letter-spacing: .1px; text-transform: none; color: #c3ccd5; }
.side-nav a svg { width: 20px; height: 20px; }
.side-nav a.on { background: rgba(102,192,244,.12); color: #fff; }
.side-nav a.on svg { color: var(--blue); }
.side-nav a.on::before { left: -10px; }
body.nav-closed .side-nav a { justify-content: center; padding: 0; }
body.nav-closed .side-nav a span { display: none; }
.side-foot { margin-top: auto; padding-top: 8px; }
.nav-new { top: 10px; left: 27px; }
.side-toggle { display: none !important; }
.topbar .in { height: 56px; }
@media (max-width: 900px) {
  body, body.nav-closed { --side: 260px; }
  body.nav-closed .side-hd .brand { display: flex; } body.nav-closed .side-sim span, body.nav-closed .side-nav a span, body.nav-closed .side-grp span { display: inline; }
  body.nav-closed .side-nav a, body.nav-closed .side-sim { justify-content: flex-start; padding: 0 12px; }
  .side-collapse { display: none; }
}

/* coaching: the plan */
.an-plan { padding: 14px 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #182433, #121b26); }
.an-plan h3 { margin: 0; font: 800 17px var(--sans); color: #fff; }
.an-plan-hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.an-step { display: flex; gap: 12px; padding: 12px 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-top: 3px solid var(--z-ok); animation: fadeUp .3s ease both; }
.an-step.z-bad { border-top-color: var(--z-bad); } .an-step.z-good { border-top-color: var(--z-good); }
.an-step .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font: 800 16px var(--mono); color: #fff;
  background: rgba(255,255,255,.08); border-radius: 50%; }
.an-step.z-bad .n { background: rgba(224,82,82,.35); } .an-step.z-ok .n { background: rgba(233,185,73,.3); }
.an-step .body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.an-step .t { display: flex; align-items: center; gap: 7px; } .an-step .t img { width: 22px; height: 22px; }
.an-step .t b { font-size: 15px; color: #fff; }
.an-step p { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 13px; line-height: 1.5; color: #d7dee5; }
.an-step p .lbl { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding-top: 2px; }
.an-step p.how span:last-child { color: #fff; }
.an-step p.tgt span:last-child { color: #7fd67f; font-weight: 600; }
.an-more { margin-top: 10px; } .an-more summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 13px; }
.an-more-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 7px 10px; margin-top: 4px; border-left: 3px solid var(--z-ok); background: rgba(0,0,0,.18); font-size: 12.5px; color: #c6d4df; }
.an-more-row.z-bad { border-left-color: var(--z-bad); } .an-more-row b { color: #fff; }
.an-good { border-left: 4px solid var(--z-good); }
.an-guides { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-mist summary { cursor: pointer; color: var(--blue); font-weight: 700; } .an-mist ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: #d7dee5; }
.an-mist { flex-basis: 100%; }
.top-howto { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: #c6d4df; background: rgba(102,192,244,.05); }
@media (max-width: 700px) { .an-more-row { grid-template-columns: 1fr; } .an-step p { grid-template-columns: 1fr; gap: 2px; } }

/* credits */
.page.credits { max-width: 980px; margin: 0 auto; }
.cr-body { display: flex; flex-direction: column; gap: 18px; }
.cr-intro { margin: 0; font-size: 14.5px; color: #dfe6ec; }
.cr-sec h2 { margin: 0 0 8px; padding-bottom: 6px; font: 800 13px var(--sans); text-transform: uppercase; letter-spacing: .8px; color: #fff; border-bottom: 1px solid var(--line); }
.cr-sec { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.cr-sec h2 { grid-column: 1 / -1; }
.cr-item { padding: 10px 12px; background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.cr-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.cr-item p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: #b9c4ce; }
.cr-legal { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------------------------------------------------------------- accounts */
.note.ok { border-color: var(--good); color: #e4f7b8; background: rgba(190,238,17,.05); }
.good-txt { color: var(--good); } .bad-txt { color: var(--bad); }
.btn.big { height: 42px; font-size: 14.5px; padding: 0 18px; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld > span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.fld input, .fld select { width: 100%; height: 38px; }
.q-poor { color: #9d9d9d !important; } .q-common { color: #fff !important; } .q-uncommon { color: #1eff00 !important; }
.q-rare { color: #0070dd !important; } .q-epic { color: #a335ee !important; } .q-legendary { color: #ff8000 !important; }
.q-artifact { color: #e6cc80 !important; } .q-heirloom { color: #00ccff !important; }

/* sign in */
.auth-page { display: flex; flex-direction: column; align-items: center; padding-top: 4vh; }
.auth-card { width: 100%; max-width: 440px; padding: 26px 28px; }
.auth-card h2 { margin: 0 0 2px; font-size: 22px; color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: #fff; }
.auth-brand .logo { width: 26px; height: 26px; background: linear-gradient(135deg, var(--blue) 0%, #2d73ff 55%, var(--accent) 100%); }
.auth-providers { display: flex; flex-direction: column; gap: 8px; }
.prov-row { display: flex; gap: 6px; } .prov-row .btn { flex: 1; }
.prov-region { width: 70px; height: 42px; }
.btn.prov { color: #fff; border: 0; font-weight: 700; }
.btn.prov svg { width: 20px; height: 20px; }
.btn.prov.discord { background: #5865f2; } .btn.prov.discord:hover { background: #6d78f5; }
.btn.prov.bnet { background: #0074e0; } .btn.prov.bnet:hover { background: #148eff; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-fine { text-align: center; }
.auth-foot { margin-top: 14px; }
.auth-hello { display: flex; gap: 14px; align-items: center; }
.auth-hello img { width: 56px; height: 56px; border-radius: 50%; }

/* account chip + menu in the top bar */
.acct-chip { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); font: 600 13.5px var(--sans); cursor: pointer; }
.acct-chip:hover { border-color: var(--line-blue); }
.acct-ava { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3) center/cover; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.acct-wrap { position: relative; }
.acct-menu { position: absolute; right: 0; top: 40px; z-index: 40; min-width: 210px; background: #16202d; border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.5); padding: 6px; display: flex; flex-direction: column; }
.acct-menu a, .acct-menu button { display: block; text-align: left; padding: 9px 10px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
.acct-menu .who { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* my characters */
.chars-hd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.chars-hd h1, .page.account h1 { font-size: 24px; color: #fff; margin: 0 0 2px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.char-card { background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 14%, var(--surface-hi)) 0, var(--surface) 70%);
  border: 1px solid var(--line); border-left: 3px solid var(--cc); display: flex; flex-direction: column; transition: transform .15s var(--ease), border-color .15s; }
.char-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--cc) 40%, transparent); border-left-color: var(--cc); }
.char-card.is-hidden { opacity: .5; }
.char-main { display: flex; align-items: center; gap: 12px; padding: 12px 12px 8px; color: var(--text); }
.char-ava { width: 52px; height: 52px; flex: none; background: var(--surface-3) center/cover; border: 1px solid color-mix(in srgb, var(--cc) 60%, transparent); }
.char-txt { display: flex; flex-direction: column; min-width: 0; }
.char-txt b { font-size: 16px; color: var(--cc); }
.char-ilvl { margin-left: auto; text-align: right; line-height: 1.1; }
.char-ilvl b { display: block; font-size: 20px; color: #fff; } .char-ilvl small { color: var(--faint); font-size: 11px; text-transform: uppercase; }
.char-actions { display: flex; align-items: center; gap: 6px; padding: 0 10px 10px 12px; }
.char-actions .icon-btn { width: 28px; height: 28px; color: var(--faint); background: none; border: 1px solid transparent; cursor: pointer; font-size: 14px; }
.char-actions .icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.char-actions .icon-btn.on { color: #f0c65a; }
.chars-more { margin: 10px 0; text-align: center; }
.chars-add { margin-top: 16px; max-width: 640px; }
.chars-empty { max-width: 640px; margin-bottom: 14px; }
.chars-empty h3 { margin: 0 0 6px; color: #fff; }

/* character stats */
.cs-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; min-height: 270px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--cc) 22%, #101722) 0%, #131c28 55%, #0f1620 100%); border: 1px solid var(--line); border-top: 3px solid var(--cc); }
.cs-render { position: absolute; right: 0; top: 0; bottom: 0; width: 640px; background: no-repeat 50% 62% / auto 150%; opacity: .95;
  mask-image: linear-gradient(90deg, transparent 0, #000 35%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); pointer-events: none; }
.cs-id { position: relative; max-width: 640px; }
.cs-back { color: var(--muted); }
.cs-id h1 { margin: 4px 0 0; font-size: 34px; line-height: 1.1; color: var(--cc); text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cs-title { color: #f0c65a; font-weight: 600; }
.cs-sub { font-size: 14px; }
.cs-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cs-tiles { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tile { min-width: 132px; padding: 10px 14px; background: rgba(8,12,18,.72); border: 1px solid var(--line-2); display: flex; flex-direction: column; backdrop-filter: blur(4px); }
.cs-tile small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.cs-tile b { font-size: 24px; color: #fff; line-height: 1.2; }
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 44px 74px 44px; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mp-row:last-child { border-bottom: 0; }
.mp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-bar, .lz-bar { height: 8px; background: rgba(255,255,255,.05); }
.mp-bar i, .lz-bar i { display: block; height: 100%; animation: grow .6s var(--ease) both; transform-origin: left; }
.mp-lvl { font-size: 15px; color: #fff; text-align: right; } .mp-lvl.untimed { color: var(--muted); }
.mp-ok { font-size: 11px; font-weight: 700; text-transform: uppercase; text-align: center; padding: 2px 0; }
.mp-ok.good { color: var(--good); background: rgba(190,238,17,.08); } .mp-ok.bad { color: var(--bad); background: rgba(255,123,123,.08); }
.mp-score { text-align: right; font-weight: 700; }
.rp-name { font-weight: 700; color: #fff; margin-bottom: 4px; }
.rp-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; padding: 3px 0; }
.rp-diff { font-size: 12px; font-weight: 700; color: var(--muted); }
.rp-diff.d-heroic { color: #a335ee; } .rp-diff.d-mythic { color: #ff8000; } .rp-diff.d-normal { color: #1eff00; }
.rp-bosses { display: flex; gap: 3px; }
.rp-bosses i { flex: 1; max-width: 34px; height: 10px; background: rgba(255,255,255,.07); }
.rp-bosses i.k { background: var(--good); }
.rp-n { text-align: right; color: #fff; }
.cs-logs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lz-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.lz-hd b { color: #fff; font-size: 14.5px; } .lz-avg { font-weight: 800; font-size: 16px; }
.lz-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 34px; align-items: center; gap: 10px; padding: 3px 0; }
.lz-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-pct { text-align: right; font-size: 14px; }
.cs-chart { height: 240px; }
.cs-gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 16px; }
.cg { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.cg small { color: var(--faint); font-size: 11px; text-transform: uppercase; }
.cg a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-meta { display: flex; gap: 6px; align-items: center; } .cg-meta b { color: #fff; }

/* account page */
.page.account { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.login-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.prov-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; }
.prov-dot.discord { background: #5865f2; } .prov-dot.bnet { background: #0074e0; } .prov-dot.email { background: var(--blue); }
.acct-pw { max-width: 420px; padding-left: 24px; }
details.danger summary { cursor: pointer; color: var(--bad); font-weight: 600; }

@media (max-width: 900px) {
  .cs-cols, .cs-logs { grid-template-columns: 1fr; }
  .cs-render { width: 100%; opacity: .35; right: 0; }
  .mp-row { grid-template-columns: 1fr 44px 74px 44px; } .mp-bar { display: none; }
}
.my-chars-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.my-char-chip { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 3px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--cc); color: var(--cc); font: 700 13.5px var(--sans); cursor: pointer; }
.my-char-chip:hover { background: var(--surface-3); }
.my-char-chip .char-ava { width: 26px; height: 26px; border: 0; }

/* sim queue */
.q-line { margin: 16px auto 0; max-width: 460px; text-align: left; background: rgba(0,0,0,.2); border: 1px solid var(--line); padding: 10px 12px; }
.q-hd { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.q-row { display: grid; grid-template-columns: 22px 1fr 110px 70px; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.q-n { width: 20px; height: 20px; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 800; }
.q-row.run .q-n { background: var(--blue); color: #0b1017; }
.q-row.you { border-bottom: 0; color: #fff; font-weight: 700; }
.q-row.you .q-n { background: var(--accent); color: var(--accent-ink); }
.q-type { display: flex; gap: 6px; align-items: center; }
.q-mine { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 5px; background: var(--surface-3); color: var(--muted); }
.q-state { font-size: 12px; color: var(--muted); text-align: right; }
.q-row.you .q-state { color: var(--accent); }
.q-bar { height: 6px; background: rgba(255,255,255,.05); }
.q-bar i { display: block; height: 100%; background: var(--blue); transition: width .6s var(--ease); }
.q-note { margin-top: 8px; }
