/* Layout: four numbered steps down the page (import, character and build, encounter settings, gear filter), then
   results that fill in live.
   Spacing comes from one scale (--s1..--s6) and every control is the same height, so rows line up. */
:root {
  --bg: #0e1013; --surface: #1a1d22; --surface-2: #14171b; --well: #0f1114; --ink: #e8e6e1; --muted: #9aa0a8; --line: #2c3139; --line-2: #464d58;
  --accent: #c8a45a; --accent-ink: #16130c; --accent-soft: #2a2417; --talent: #ffd100;
  --q2: #4fd04f; --q3: #4aa3ff; --q4: #c785ff; --q5: #ff9a3c;
  --good: #3fd06a; --good-soft: #14281b; --warn: #f39158; --warn-soft: #34201a;
  /* chart series, in a fixed order (validated for color-blind separation on dark surfaces) */
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #0ca30c; --c-other: #5d636c;
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* sans, as the body: no serif anywhere */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --ctl: 36px; --r1: 6px; --r2: 10px; --r3: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14.5px; line-height: 1.5; }
/* Scroll bars inside the page (the cast timeline, tables, strips, dialogs) are thin, a 6px thumb with no arrows or
   track; the browser's own bar for the whole page keeps its width. Firefox has no such pseudo-elements: it gets "thin". */
body *::-webkit-scrollbar { width: 6px; height: 6px; }
body *::-webkit-scrollbar-track, body *::-webkit-scrollbar-corner { background: transparent; }
body *::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
body *::-webkit-scrollbar-thumb:hover { background: var(--muted); }
body *::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) { body * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } }
.wrap { margin: 0 auto; padding: 0; display: grid; gap: var(--s5); }
/* Pages keep to the site's width: the Droptimizer, and the BiS page's class strip and backdrop (#bis-body) under it. */
#view-drop, #view-top, #view-bis > :not(#bis-body) { width: min(100%, 1560px); margin-inline: auto; padding-inline: var(--s4); }
#view-drop, #view-top { padding-top: var(--s6); padding-bottom: 64px; width: min(100% - 2 * var(--s4), 1560px); padding-inline: 0; } /* its panels on the column's edges, as the other pages' shaded column */
h1, h2, h3, p, ul { margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; letter-spacing: 0.01em; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.3; display: flex; align-items: center; gap: var(--s2); }
h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
a { color: var(--q3); }
code { font-family: var(--f-mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.lede { color: var(--muted); max-width: 72ch; }
.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta { font-size: 12.5px; color: var(--muted); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.n { font-family: var(--f-num); font-size: 12px; color: var(--muted); font-weight: 500; }
.chip { font-size: 11.5px; border-radius: 999px; padding: 2px var(--s2); border: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }

/* page frame: a site bar (brand left, page links right) that stays at the top while the page scrolls */
.site { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
/* The title at the window's left edge; the page tabs start at the left edge of the panels under them (the site's
   1560px column, (100% - 1560px) / 2 in from this bar's padding), or right after the title (its margin) where the
   window is too narrow for both. The first column is the larger of the two: minmax(max-content, edge). */
.site-in { padding: 0 var(--s4); display: grid; grid-template-columns: minmax(max-content, max(0px, (100% - 1560px) / 2)) auto 1fr; align-items: center; }
.brand { margin-right: 40px; justify-self: start; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; text-decoration: none; color: var(--ink); }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand h1 { font-size: 22px; line-height: 1.1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); display: grid; gap: var(--s4); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; justify-content: space-between; }
.panel-head > div:first-child { display: grid; gap: var(--s1); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--surface); font-family: var(--f-num); font-size: 15px; flex: none; }
/* Nothing moves when a choice changes: changing lists keep one width, notes keep room for two lines,
   hidden-but-reserved things use .ghost, and anything that opens floats over the page. */
.ghost { visibility: hidden; }
#rotation, #option, #metric, #armor, #enc, #f-slot, #f-src, #f-armor { width: 14em; }
#build-note:empty { display: none; }
/* Two or more plain choices side by side. */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: var(--surface-2); min-height: calc(var(--ctl) - 2px); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button { color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* What the fight assumes: icon tiles, lit when on. */
.assume { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s3); }
.agroup { display: grid; gap: var(--s2); align-content: start; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); padding: var(--s3); }
.ahead { display: flex; justify-content: space-between; gap: var(--s2); font-size: 13.5px; }
.ahead .ahr { display: flex; align-items: center; gap: var(--s2); }
.ahead .aclear { min-height: 0; padding: 1px var(--s2); font-size: 12px; }
.atiles { display: flex; flex-wrap: wrap; gap: var(--s2); }
.bt { position: relative; min-height: 0; padding: 0; border: 0; background: none; line-height: 0; border-radius: 6px; }
.bt .icon { filter: grayscale(1) brightness(0.5); opacity: 0.7; }
.bt.on .icon { filter: none; opacity: 1; border-color: var(--accent); }
.bt .rank { position: absolute; right: -5px; bottom: -5px; font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 4px; background: var(--surface); border: 1px solid var(--accent); color: var(--accent); }
/* Fight settings and run settings on one row, split by a rule. */
.fight-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: end; }
.run-set { border-left: 1px solid var(--line); padding-left: var(--s5); }
.run-set:not(:has(> :not([hidden]))) { display: none; } /* with Accuracy in the Run panel, nothing left to show for a damage build */
/* Accuracy, its Advanced button and what upgrades are ranked by, on the Run button's line, each label beside its menu */
/* its own line under the count: Accuracy on the left, the time and Run on the right (the player, 2026-11-25: "move the accuracy to the left") */
/* The Run line: the controls, and under them the search type's note, on the left; the time light and Run at the bottom
   right, level with the note (the player, 2026-11-26: "the run button isnt aligned to the bottom") */
.runbar > .row { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "acc eta run" "note eta run"; column-gap: var(--s4); row-gap: var(--s3); align-items: end; }
.runbar > .row > #run-acc { grid-area: acc; margin-right: 0; }
.runbar > .row > #mode-note { grid-area: note; }
.runbar > .row > .eta { grid-area: eta; }
.runbar > .row > .runbtn { grid-area: run; }
@media (max-width: 700px) { .runbar > .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "acc acc" "note note" "eta run"; } }
/* the time light as tall as a control, so its words sit level with the Run button beside it, not on the row's floor
   (the player, 2026-11-25: "the run button is now no longer in the proper spot") */
.runbar > .row > .eta { min-height: var(--ctl); }
.racc { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) var(--s4); margin-right: auto; }
/* each label above its control, as every other setting on the page (the player, 2026-11-25: "why is this input styling so
   different. the header is to the left rather than above the input") */
.racc .lab-inl { display: grid; gap: var(--s1); font-size: 12.5px; color: var(--muted); }
/* Search: Fast or Full, a switch with a sliding dot */
.mswitch { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl); padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.mswitch .ml { transition: color 0.15s; }
.mswitch .ml.on { color: var(--ink); font-weight: 600; }
.mswitch .mtrack { position: relative; width: 38px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 22%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent); flex: none; transition: background-color 0.15s, border-color 0.15s; }
.mswitch .mknob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: transform 0.15s ease; }
.mswitch[aria-checked="true"] .mtrack { background: var(--accent-soft); border-color: var(--accent); }
.mswitch[aria-checked="true"] .mknob { transform: translateX(16px); }
.mswitch:hover .mtrack { border-color: var(--accent); }
.mswitch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r1); }
@media (prefers-reduced-motion: reduce) { .mswitch .mknob, .mswitch .mtrack { transition: none; } }
#mode-note { margin: 0; }
.mnote { display: flex; align-items: center; gap: var(--s2); padding: 7px 0; font-size: 13px; line-height: 1.35; }
.mnote .mni { flex: none; }
.mnote.fast { color: #e6c34a; font-weight: 500; } /* yellow and a warning mark, no band behind it ("the background is a bit much") */
.mnote.full { color: var(--muted); }
.warnl { display: inline-flex; align-items: center; gap: var(--s2); color: #e6c34a; font-weight: 500; font-size: 13px; line-height: 1.35; }
.warnl .mni { flex: none; }
.racc label { display: grid; gap: var(--s1); font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .run-set { border-left: 0; padding-left: 0; } }
.block { display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* controls: one height, one gap */
.controls, .filters { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: end; }
.controls label, .filters label { display: grid; gap: var(--s1); font-size: 12.5px; color: var(--muted); }
.controls .lab { display: grid; gap: var(--s1); font-size: 12.5px; color: var(--muted); } /* a label over a control that is not a form field (Sim for) */
.controls .lab .seg button { font-size: 13.5px; padding: 0 var(--s3); }
.bossopts { display: grid; gap: var(--s2); }
.bossopts label.toggle { color: var(--ink); }
label.toggle, .controls label.toggle { display: flex; align-items: center; gap: var(--s2); min-height: var(--ctl); color: var(--ink); font-size: 13.5px; cursor: pointer; }
input[type=number], input[type=search], select, textarea { font: inherit; font-size: 14px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface-2); color: var(--ink); max-width: 100%; }
input[type=number], input[type=search], select { height: var(--ctl); }
input[type=number] { width: 96px; font-family: var(--f-num); }
input[type=search] { width: min(240px, 60vw); }
select { max-width: 240px; }
/* the menus' own chevron, a set gap in from the right edge (the player, 2026-11-25: "some of these dropdowns seem to have the
   arrow hugging way too far right"), instead of the browser's, which sits against the border */
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%239aa1ab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 10px 10px; cursor: pointer; }
textarea { width: 100%; padding: var(--s2); font-family: var(--f-mono); font-size: 12px; resize: vertical; }
button { font: inherit; font-size: 13.5px; min-height: var(--ctl); padding: 0 var(--s4); border-radius: var(--r1); border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 0 var(--s5); }
/* Run, and Stop while it runs: one width for both words, Stop plain rather than gold */
button.runbtn { min-width: 5.5rem; }
button.runbtn.stopping { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
button.runbtn.stopping:hover { border-color: var(--ink); }
button.primary:hover { filter: brightness(1.08); }
button.quiet { background: var(--surface-2); border-color: var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.msg { font-size: 13.5px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--r2); padding: var(--s2) var(--s3); }
.msg.ok { border-color: var(--good); background: var(--good-soft); }
#import-box { display: grid; gap: var(--s3); }

/* icons */
.icon { width: 30px; height: 30px; border-radius: 5px; border: 2px solid var(--line); display: block; background: var(--surface-2); flex: none; object-fit: cover; }
.icon.sm { width: 22px; height: 22px; border-width: 1px; border-radius: 4px; }
.icon.md { width: 36px; height: 36px; }
.icon.lg { width: 46px; height: 46px; border-radius: 7px; }
.icon.xl { width: 64px; height: 64px; border-radius: 9px; border-width: 3px; }
/* rarity menus: each choice in its rarity's colour; the one picked shows over the menu (qShow in app.js) as the rarity
   in its colour and "or better" / "and above" plain, the menu's own text hidden */
select option.rq1 { color: var(--ink); } select option.rq2 { color: var(--q2); } select option.rq3 { color: var(--q3); } select option.rq4 { color: var(--q4); } select option.rq5 { color: var(--q5); }
.qsel { position: relative; display: block; justify-self: start; }
.qsel > select[id] { color: transparent; }
.qshow { position: absolute; left: calc(var(--s2) + 1px); top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; white-space: pre; font-size: 14px; color: var(--ink); }
.qshow .rq1 { color: var(--ink); } .qshow .rq2 { color: var(--q2); } .qshow .rq3 { color: var(--q3); } .qshow .rq4 { color: var(--q4); } .qshow .rq5 { color: var(--q5); }
.q2 .icon { border-color: var(--q2); } .q3 .icon { border-color: var(--q3); } .q4 .icon { border-color: var(--q4); } .q5 .icon { border-color: var(--q5); }
/* One border per icon (the player, 2026-11-25: "i thought i said to get rid of the double bordering on the bis lists",
   2026-11-26 again): the game's icon art carries its own light or dark edge, which read as a second ring inside the
   quality border; img() in app.js draws the art enlarged as the box's background, so that edge falls outside it */
.iname { font-weight: 600; text-decoration: none; color: var(--ink); }
.q2 .iname { color: var(--q2); } .q3 .iname { color: var(--q3); } .q4 .iname { color: var(--q4); } .q5 .iname { color: var(--q5); }
a.iname:hover { text-decoration: underline; } /* a name in a sentence; a name beside its icon is words only */

/* 1 import: the three steps in order, then the paste box, which imports whatever is pasted into it (no buttons). Once a
   character is in, one line under the heading says what came in, and the box stays empty for the next export. */
.howto { margin: 0; padding-left: 1.5em; display: grid; gap: var(--s2); max-width: 90ch; }
.howto li { padding-left: var(--s1); }
.howto li::marker { color: var(--accent); font-weight: 700; }
.imported { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s1) var(--s2); }
#import-what { display: contents; }
.imported svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--good); }

/* 2 character and build: who, the build and its talent split (which opens the trees) across the top; then the gear
   worn, its stats and the gear in the bags side by side, the stats and the bags each on a shade of their own. */
/* No rules between the three: the row wraps on narrower screens, and a rule would then start a line. */
/* The Droptimizer's character bar, styled as the BiS build bar (the player, 2026-11-24: "style droptimizer similarly to
   what we just did in the character and build section"), without its icon ("remove the icon"): on the first line the
   character (name, then level, race, class, realm and professions) and the talent split on one line; on the second the
   build in use, which opens the talents window. On a narrow window it wraps. */
.charbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
.charbar .talsum { padding-left: 0; border-left: 0; }
.charbar .ccls { color: var(--cc, var(--ink)); font-weight: 600; } /* the class name in its WoW colour */
.charbar .cpart { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.charbar .cpart .icon.xs { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); }
.charid { display: grid; gap: 2px; min-width: 0; } /* the name, then under it the level, race, class, realm and professions (the player, 2026-11-25: "move the race, class, and professions underneath the name") */
@media (min-width: 901px) {
  .charbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: var(--s5); row-gap: 6px; }
  .charbar .charid { grid-row: 1; grid-column: 1; flex-wrap: nowrap; white-space: nowrap; }
  /* the talents in two lines as the name is (the player, 2026-11-26: "after we moved the lvl and professions and race and
     class beneath the name it feels like everything is just not aligned properly"): the split level with the name, the
     trees' names level with the line under it */
  .charbar { column-gap: var(--s6); }
  .charbar .talsum { grid-row: 1; grid-column: 2; display: grid; gap: 2px; align-self: start; justify-items: start; padding: 0; white-space: nowrap; }
  .charbar .talsum b { font-size: 17px; line-height: 1.25; }
}
/* the line under the name, and the talents' line beside it: rows centred on one 22px line, so their words sit level */
.charbar #char-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 22px; }
.charbar .csep { color: var(--muted); }
.charbar .talsum .meta { min-height: 22px; }
/* A step before the import: its title and one line, nothing else (the player, 2026-11-26: "can you have the other steps
   shown without the import?") */
.panel.waiting > :not(h2):not(.panel-head) { display: none !important; }
.panel.waiting::after { content: "Import your character first."; display: block; color: var(--muted); font-size: 13.5px; }
/* the rotation in use, right of the talents and laid out as they are (the player, 2026-11-26: "i want talents, and the
   apl rotation we're using", "pre-selected based off your talents"): a dropdown that reads as the talents' first line,
   no box, its name in ink, the arrow after it */
.charbar .rotsum { cursor: default; }
.charbar .rotsum select { height: auto; min-height: 0; max-width: 22rem; margin: 0; padding: 0 18px 0 0; border: 0; border-radius: 0; background-color: transparent; background-position: right 2px center; color: var(--ink); font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
.charbar .rotsum select:hover { text-decoration: underline; }
/* its open list as every other menu's (the player, 2026-11-26: "the styling is messed up here": with the box see-through
   the browser drew the list light, the words in light ink): the menus' ground and ink, at the menus' size and weight */
.charbar .rotsum select option { background-color: var(--surface-2); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 400; }
/* no box around it when clicked; from the keyboard it shows underlined */
.charbar .rotsum select:focus, .charbar .rotsum select:focus-visible { outline: none; }
.charbar .rotsum select:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (min-width: 901px) { .charbar .rotsum { grid-row: 1; grid-column: 3; justify-self: start; } }
/* The talent tree's art behind the gear (--bbg, set on the step by renderTrees; "lets move the class background to be
   behind the equipment setup"): the painting across the gear's area, faint and fading out at its edges, so the item
   names stay clear. Nothing is laid out on it, so it moves nothing. */
.char-gear { position: relative; isolation: isolate; }
.char-gear::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r2); pointer-events: none;
  background: var(--bbg, none) center 40% / cover no-repeat; opacity: 0.28; filter: saturate(0.85) brightness(0.9);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 45%, transparent 100%); }

.charcols { display: grid; gap: var(--s4) var(--s5); align-items: start; }
.char-gear, .cwell { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.char-gear { padding-block: var(--s4); } /* its heading level with the shaded columns' */
.cwell { background: var(--surface-2); border-radius: var(--r2); padding: var(--s4); }
/* Gear with the stat sheet under it on the left; bags and bank fill the right side, as tall as both (its icons scroll). */
@media (min-width: 1000px) {
  .charcols { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); align-items: stretch; }
  .char-gear { grid-area: 1 / 1; }
  .charcols > .dstats { grid-area: 2 / 1; }
  .bagwell { grid-area: 1 / 2 / 3 / 3; display: flex; flex-direction: column; }
  .bagwell .bagrid { flex: 1 1 0; min-height: 160px; max-height: none; align-content: start; }
}
#char-stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
#char-stage { width: min(100%, 520px); }
.bagrid { display: grid; gap: var(--s4); align-content: start; max-height: 420px; overflow-y: auto; padding: 5px; margin: -5px; }
/* The bags and bank by slot, the slot named above its pieces; each piece a tile of icon, name, where it is and its
   enchant, lit when it goes in and dark when left out, as the enchant and consumable windows' tiles. */
.bgroup { display: grid; gap: 4px; min-width: 0; }
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.btile { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--r2); cursor: pointer; min-width: 0; color: var(--muted); }
.btile .iconlink { position: relative; flex: none; line-height: 0; }
.btile .icon { filter: grayscale(1) brightness(0.5); opacity: 0.7; }
.btile.on { background: var(--surface); }
.btile.on .icon { filter: none; opacity: 1; }
.btile:hover { background: var(--surface); }
.btile:not(.on) .iname { color: var(--muted); }
.bt-text { min-width: 0; }
.btile .iname { display: block; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btile .meta { display: block; font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btile .cnt { position: absolute; right: -4px; bottom: -4px; font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #000; border: 1px solid var(--line-2); color: var(--ink); }
.enchline { display: block; }
.bagwell .lvhead h3 { margin: 0; }
.bag.off .icon { filter: grayscale(1) brightness(0.5); opacity: 0.6; }
.bag.off:hover .icon { filter: grayscale(0.5) brightness(0.8); opacity: 0.9; }
.bagrid:empty { display: none; }
.bag { position: relative; display: block; line-height: 0; }
.bag:hover .icon { filter: brightness(1.15); }
.bag .cnt { position: absolute; right: -4px; bottom: -4px; font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #000; border: 1px solid var(--line-2); color: var(--ink); }
.rot-row { border-top: 1px solid var(--line); padding-top: var(--s3); }
/* A bar's build in use, by name, with the arrow that says it opens the talents window, where builds are picked. */
/* In a talents window: the builds, then the talent presets, each a labelled row of words above the trees. */
.tpick { display: grid; gap: 4px; }
.tpick[hidden] { display: none; }
/* A saved talent preset with its X to delete it, and the field to save edited talents under a name. */
.tch { display: inline-flex; align-items: center; gap: 2px; }
button.xdel { display: inline-grid; place-items: center; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); }
button.xdel:hover { color: var(--ink); }
.tsrc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.tsrc select { min-width: 16rem; max-width: 24rem; }
.tsave { display: inline-flex; align-items: center; gap: var(--s2); }
.tsave input { height: 28px; width: 14rem; }

.charname { font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
.charbar .talsum b { font-size: 18px; }
/* The gear, as in the game's character pane: the left column's icons at its left edge, the right column's at its right
   edge with the names facing in, so the two columns span the whole width beside the bags. One column on phones. */
.doll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); }
.doll .icon.lg { width: 40px; height: 40px; border-radius: 6px; }
@media (max-width: 560px) { .doll { grid-template-columns: 1fr; } }
@media (min-width: 561px) {
  .doll > .gslot:nth-child(even) { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
  .doll > .gslot:nth-child(even) > :first-child { grid-column: 2; grid-row: 1; }
  .doll > .gslot:nth-child(even) > :last-child { grid-column: 1; grid-row: 1; }
}
.gslot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; font-size: 13px; line-height: 1.25; }
.gslot .meta, .ench { display: block; }
.ench { font-size: 11.5px; color: var(--good); }
.gslot.empty { opacity: 0.55; }

/* 2 build */
.cards, .sources, .podium, .fgrid { display: grid; gap: var(--s3); }
/* A class's builds share one row while each card can be at least 100px; a card too narrow for icon and name
   side by side stacks them. */
.cards { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--s2); }
.bcard { container-type: inline-size; display: block; min-width: 0; text-align: left; padding: var(--s2) var(--s3); border-radius: var(--r2); background: var(--surface-2); border-color: var(--line); line-height: 1.3; }
.bc { display: flex; gap: var(--s2); align-items: center; font-size: 13.5px; }
.bc > span { display: grid; gap: 1px; min-width: 0; overflow-wrap: break-word; }
@container (max-width: 150px) { .bc { flex-direction: column; text-align: center; } }
.bcard.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.bcard.on .icon { border-color: var(--accent); }

/* 3 sources */
.sources { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: start; }
.sgroup { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); padding: var(--s3); opacity: 0.7; }
.sgroup.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
label.sgroup, .sgroup summary { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.sgroup summary { list-style: none; }
.sgroup summary::-webkit-details-marker { display: none; }
.sgroup summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.slabel { display: grid; font-weight: 600; font-size: 14px; line-height: 1.25; }
.sub { display: grid; gap: var(--s2); }
details.sgroup[open] { opacity: 1; z-index: 6; }
details.sgroup .sub { position: absolute; top: calc(100% + var(--s1)); left: -1px; right: -1px; z-index: 6; max-height: min(360px, 60vh); overflow: auto; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r2); padding: var(--s3); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.sub label { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: var(--s2); align-items: center; font-size: 13px; cursor: pointer; }
.slots { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.slots button { font-size: 12.5px; min-height: 28px; padding: 0 var(--s3); border-radius: 999px; background: var(--surface); border-color: var(--line); }
.slots button.on { background: var(--accent-soft); border-color: var(--accent); }
.runbar { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--s4); }
.count { font-family: var(--f-num); font-size: 22px; }

/* results */
.progress { display: grid; gap: var(--s2); }
/* a run's steps: a mark, the step, its own bar and a short note, in columns that line up from step to step */
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rstep { display: grid; grid-template-columns: 16px minmax(12rem, 18rem) minmax(80px, 1fr) minmax(0, 22rem); gap: var(--s3); align-items: center; font-size: 13px; color: var(--muted); }
.rstep .stl { color: var(--muted); }
.rstep.run .stl { color: var(--ink); font-weight: 600; }
.rstep.done .stl { color: var(--ink); }
.rstep .stbar { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.rstep .stbar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width .2s linear; }
.rstep.done .stbar i { background: var(--good); }
.rstep.stop .stbar i { background: var(--warn); }
.rstep .stn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rstep .sti { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); justify-self: center; }
.rstep.run .sti { border-color: var(--accent); background: var(--accent); animation: stpulse 1.2s ease-in-out infinite; }
.rstep.done .sti { border-color: var(--good); background: var(--good); }
.rstep.stop .sti { border-color: var(--warn); background: var(--warn); }
@keyframes stpulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .rstep.run .sti { animation: none; } .rstep .stbar i { transition: none; } }
@media (max-width: 700px) { .rstep { grid-template-columns: 16px minmax(0, 1fr) 80px; } .rstep .stn { grid-column: 2 / -1; } }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .2s linear; }
.totals { display: flex; flex-wrap: wrap; gap: var(--s3); }
.totals:empty, .podium:empty, .farm:empty, #results:empty { display: none; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s2) var(--s3); min-width: 130px; }
.tile .v { font-family: var(--f-num); font-size: 20px; }
.filters { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); padding: var(--s3); }
.filters input, .filters select { background-color: var(--surface); }
.filters .meta { margin-left: auto; min-height: var(--ctl); display: flex; align-items: center; }
.podium { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); } /* the best few fill their row, no empty columns after them */
.pcard { position: relative; display: grid; justify-items: center; align-content: start; gap: var(--s1); text-align: center; padding: var(--s4) var(--s3) var(--s3); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); text-decoration: none; color: var(--ink); }
.pcard .prank { position: absolute; top: var(--s2); left: var(--s3); font-family: var(--f-display); color: var(--muted); }
.pgain { font-size: 20px; font-weight: 600; color: var(--good); }
.pcard .iname { font-size: 13.5px; line-height: 1.25; }
.farm { display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
/* the item list under the farm: its heading, the best few, then its filters right on top of it and the pager under it */
.rlist { display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.farm-head { display: grid; gap: var(--s1); }
.fgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* Every farm card one shape (the player, 2026-11-25: "normalize these panel sizes"): its five parts (place, number,
   note, bosses, upgrades) are rows of the grid itself (subgrid), so each part lines up with the same part of the cards
   beside it and the cards in a row are one height; a part a card has nothing for is an empty row. */
.fcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: var(--s3); align-content: start; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); padding: var(--s3); min-width: 0; }
.fhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; }
.ftitle { display: grid; gap: 2px; min-width: 0; }
.fhead h3 { font-family: var(--f-display); font-size: 16px; letter-spacing: 0.02em; text-transform: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnum { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; line-height: 1.2; }
.fnum b { font-size: 22px; color: var(--good); }
.fnote:empty, .bosses:empty { min-height: 0; }
.fitems { display: grid; gap: var(--s2); align-content: start; }
/* the results' column headings sort the list (a click; again, the other way round) */
th.sortable { padding: 0; }
th.sortable .thb { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; padding: inherit; padding: var(--s2) var(--s2); cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
th.sortable.r .thb { justify-content: flex-end; }
th.sortable .thb:hover { color: var(--ink); }
th.sortable .thb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
th.sortable.on .thb { color: var(--accent); }
th.sortable .sarr { display: inline-block; width: 0.8em; font-size: 0.8em; } /* its place kept when empty, so a heading never shifts */
/* A right-aligned heading has its arrow on the left, so its words end where the numbers under them end (the player,
   2026-11-25: "the dps column seems misaligned", "fights column is also not aligned properly"). */
th.sortable.r .sarr { order: -1; text-align: right; }
/* The gain column's heading uses the cells' own three slots: its words end over the gain, its arrow over the ±. */
th.sortable.gcol .thb { display: grid; grid-template-columns: var(--gcols); gap: var(--s2); }
th.sortable.gcol .thl { grid-column: 1 / 3; grid-row: 1; text-align: right; }
th.sortable.gcol .sarr { grid-column: 3; grid-row: 1; text-align: left; }
.farm h3.fsec { margin-top: var(--s2); } /* each section's label: Dungeons and raids, PvP, Other Sources */
.flist { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.flist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2); align-items: center; font-size: 13.5px; line-height: 1.3; }
.flist li > span { display: grid; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; --gcols: minmax(48px, 1fr) 62px 46px; } /* the gain column's slots, in px so heading and cells (two font sizes) share them */
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--s2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: var(--s2); border-bottom: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: right; white-space: nowrap; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; min-width: 230px; line-height: 1.3; }
.gain { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; }
.gain.up { color: var(--good); } .gain.down { color: var(--warn); } .gain.flat { color: var(--muted); font-weight: 500; }
.se { font-family: var(--f-num); font-size: 11.5px; color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--good); min-width: 2px; margin-top: 3px; margin-left: auto; }
/* the results' gain column: a set share of the table; in each row a bar track of one length, its fill the row's share
   of the biggest gain, then the gain and its ± in fixed slots, so the numbers line up and never run over the bar */
th.gcol, td.gcell { width: 38%; min-width: 220px; }
.gwrap { display: grid; grid-template-columns: var(--gcols); align-items: center; gap: var(--s2); }
.gtrack { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.gfill { display: block; height: 100%; border-radius: 999px; background: var(--good); }
.gwrap .gain { text-align: right; }
.gwrap .se { text-align: left; white-space: nowrap; }
#results { display: grid; gap: var(--s4); align-content: start; } /* its kept height (S.resMinH) sits under the list, never spread into the gaps */
.grp { display: grid; gap: var(--s2); align-content: start; }
/* every group's table the same columns, so they line up from group to group */
#results table { table-layout: fixed; min-width: 900px; } /* narrower, the table scrolls sideways in its .scroll */
#results .item { min-width: 0; overflow-wrap: anywhere; }
#results th.fcol { width: 5.5em; }
.grp-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.grp-head h3 { font-family: var(--f-display); font-size: 16px; letter-spacing: 0.02em; text-transform: none; color: var(--ink); }

/* dialogs */
dialog { border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); color: var(--ink); padding: var(--s5); width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
dialog[open] { display: grid; gap: var(--s4); }
dialog::backdrop { background: rgba(10, 8, 16, 0.6); }
.dlg-foot { display: flex; justify-content: flex-end; gap: var(--s3); }
.dlg-foot.tfoot { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.dlg-foot.tfoot .meta { margin: 0; }
.dlg-head { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; justify-content: space-between; }
#setup-text { height: min(60vh, 640px); font-size: 12.5px; line-height: 1.45; white-space: pre; overflow: auto; tab-size: 2; }
/* Talent trees, drawn like the game's talent frame: each tree on its spec's art (darkened so the icons read), a fixed
   grid of square slots, a small dark rank badge (green while points go in, gold when maxed), unlearnable talents grey,
   and arrows from a talent that another one needs, gold once that talent is maxed. */
.trees { display: grid; grid-template-columns: repeat(3, max-content); gap: var(--s3); justify-content: center; }
.talpop .trees { gap: var(--s4); }
.talpop .tree { --tcell: 58px; --tgap: 18px; }
.talpop .tgrid { padding: 18px 18px 22px; }
.talpop .tree-head { padding: 10px 14px; font-size: 16px; }
.talpop .icon.tl { width: 52px; height: 52px; border-radius: 6px; }
.talpop .tal .rank { font-size: 12px; right: -9px; bottom: -7px; }
@media (max-width: 820px) { .trees { grid-template-columns: max-content; } }
.tree { --tcell: 44px; --tgap: 14px; position: relative; overflow: hidden; display: grid; align-content: start; border: 1px solid #000; border-radius: var(--r2); background: #0c0c0f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.tree::before { content: ""; position: absolute; inset: 0; background: var(--tbg, none) center top / cover no-repeat; opacity: 0.6; }
.tree::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); }
.tree > * { position: relative; z-index: 1; }
.tree-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 7px 12px; background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--f-display); }
.tree-head .num { color: var(--talent); font-weight: 700; }
.tgrid { display: grid; grid-template-columns: repeat(4, var(--tcell)); gap: var(--tgap); justify-content: center; padding: 14px 14px 18px; }
.tal { position: relative; z-index: 1; place-self: center; min-height: 0; padding: 0; border: 0; background: none; border-radius: 6px; line-height: 0; }
.icon.tl { width: 40px; height: 40px; border-radius: 5px; border-width: 2px; border-color: #4a4a4a; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.tal.locked .icon { filter: grayscale(1) brightness(0.5); }
.tal.open .icon, .tal.some .icon { border-color: var(--good); }
.tal.full .icon { border-color: var(--talent); }
.tal:hover .icon { filter: brightness(1.15); }
.tal.locked:hover .icon { filter: grayscale(1) brightness(0.7); }
.tal .rank { position: absolute; right: -8px; bottom: -6px; font-size: 10px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #000; border: 1px solid #444; color: #c8c8c8; }
.tal.some .rank, .tal.open .rank { color: var(--good); border-color: var(--good); }
.tal.full .rank { color: var(--talent); border-color: var(--talent); }
/* An arrow spans the slots of the two talents it joins; its line runs between their icons. */
.tarrow { position: relative; z-index: 0; pointer-events: none; --ac: #6d6d6d; }
.tarrow.on { --ac: var(--talent); }
.tarrow::before, .tarrow::after { content: ""; position: absolute; }
.tarrow::before { background: var(--ac); border-radius: 2px; }
.tarrow.v::before { left: calc(50% - 2px); width: 4px; top: calc(var(--tcell) - 2px); bottom: calc(var(--tcell) + 4px); }
.tarrow.v::after { left: calc(50% - 6px); bottom: calc(var(--tcell) - 2px); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ac); }
.tarrow.h::before { top: calc(50% - 2px); height: 4px; left: calc(var(--tcell) - 2px); right: calc(var(--tcell) - 2px); }
.tarrow.h.r::before { right: calc(var(--tcell) + 4px); }
.tarrow.h.r::after { top: calc(50% - 6px); right: calc(var(--tcell) - 2px); border: 6px solid transparent; border-right: 0; border-left-color: var(--ac); }
.tarrow.h.l::before { left: calc(var(--tcell) + 4px); }
.tarrow.h.l::after { top: calc(50% - 6px); left: calc(var(--tcell) - 2px); border: 6px solid transparent; border-left: 0; border-right-color: var(--ac); }
@media (prefers-reduced-motion: reduce) { .meter i { transition: none; } }

/* expected value */
.tile.hot { border-color: var(--accent); background: var(--accent-soft); }
.tile .meta { display: block; }
.fcard.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tag { color: var(--accent); font-weight: 600; }
.bosses { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.bosses .chip b { color: var(--good); }

/* The page's own hover text (Wowhead draws the item, spell and talent tooltips). */
#tip { position: fixed; z-index: 50; max-width: min(320px, calc(100vw - 16px)); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--ink); color: var(--surface); font-size: 12.5px; line-height: 1.4; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); white-space: pre-line; }
a.tal, a.bt { display: block; text-decoration: none; color: inherit; }
a.iconlink { display: block; flex: none; line-height: 0; }

/* Pages */
/* The page picked is a lit pill in the accent colour, not an underline. */
.tabs { display: flex; align-items: center; gap: var(--s1); }
.tabs a { display: flex; align-items: center; gap: var(--s2); padding: 7px var(--s4); border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.2; transition: background-color 0.15s, color 0.15s; }
/* no background on any tab: the open page's name in gold, the others muted, brighter on hover (the player, 2026-11-25:
   "give me a different version with no background") */
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--accent); }

@media (max-width: 760px) { .site-in { grid-template-columns: minmax(0, 1fr); } .brand { margin-right: 0; } .tabs { padding-bottom: var(--s2); } .tabs a { flex: 1; justify-content: center; } }
#view-drop, #view-top, #view-bis { display: grid; gap: var(--s5); }
/* BiS lists: class and spec picker, the list switch, then the character sheet. */
#view-bis { gap: var(--s4); }
/* the BiS lists' work-in-progress note, a band the full width of the page in the accent's soft ground, its words centred
   (the player, 2026-11-26: "can you have the banner extend the full page") */
.wipbar { margin: 0; padding: var(--s2) var(--s4); border-block: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; text-align: center; }
#view-bis > #bis-wip { width: auto; max-width: none; margin-inline: 0; }
.wipbar b { color: var(--accent); }
/* a spec page's BiS set as plain HTML (tools/seo/gen_pages.py), shown until the app draws the list over it */
.seospec { display: grid; gap: var(--s3); padding: var(--s4); max-width: 1100px; margin-inline: auto; }
.seospec table { width: 100%; }
.seospec td, .seospec th { padding: 6px var(--s2); text-align: left; }
.seonav { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px var(--s4); margin: 0; padding: 0; list-style: none; }
#view-drop, #view-bis, #bis-body > * { min-width: 0; }
/* Classes on one row, the chosen class's specs on the row under it. Either row scrolls sideways when it doesn't fit,
   so a class with more specs never makes the picker taller. */
.picker { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); min-width: 0; }
.classes, .specs { display: flex; gap: var(--s2); align-items: center; min-width: 0; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.cls { flex: none; min-height: 0; padding: 0; border: 0; background: none; border-radius: 50%; line-height: 0; --cc: var(--accent); }
/* Each class button in the game's colour for that class (--cc); "All classes" keeps the accent. */
.cls[data-cls="ClassDruid"], .bisbar[data-cls="ClassDruid"], .charbar[data-cls="ClassDruid"] { --cc: #ff7c0a; }
.cls[data-cls="ClassHunter"], .bisbar[data-cls="ClassHunter"], .charbar[data-cls="ClassHunter"] { --cc: #aad372; }
.cls[data-cls="ClassMage"], .bisbar[data-cls="ClassMage"], .charbar[data-cls="ClassMage"] { --cc: #3fc7eb; }
.cls[data-cls="ClassPaladin"], .bisbar[data-cls="ClassPaladin"], .charbar[data-cls="ClassPaladin"] { --cc: #f48cba; }
.cls[data-cls="ClassPriest"], .bisbar[data-cls="ClassPriest"], .charbar[data-cls="ClassPriest"] { --cc: #ffffff; }
.cls[data-cls="ClassRogue"], .bisbar[data-cls="ClassRogue"], .charbar[data-cls="ClassRogue"] { --cc: #fff468; }
.cls[data-cls="ClassShaman"], .bisbar[data-cls="ClassShaman"], .charbar[data-cls="ClassShaman"] { --cc: #0070dd; }
.cls[data-cls="ClassWarlock"], .bisbar[data-cls="ClassWarlock"], .charbar[data-cls="ClassWarlock"] { --cc: #8788ee; }
.cls[data-cls="ClassWarrior"], .bisbar[data-cls="ClassWarrior"], .charbar[data-cls="ClassWarrior"] { --cc: #c69b6d; }
.icon.cl { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: none; filter: grayscale(0.6); opacity: 0.55; }
/* a faint ring of the class's colour, so each class reads as itself even where only its icon shows */
.cls .icon.cl { border-color: color-mix(in srgb, var(--cc) 35%, transparent); }
.cls:hover .icon.cl { filter: none; opacity: 1; }
.cls.on .icon.cl { border-color: var(--cc); filter: none; opacity: 1; box-shadow: 0 0 10px color-mix(in srgb, var(--cc) 45%, transparent); }
.spec { flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s4) 0 var(--s1); border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.spec .icon.sm { width: 26px; height: 26px; border-radius: 50%; }
.spec:hover { color: var(--ink); }
.spec.on { border-color: var(--accent); color: var(--ink); }
.spec.none { opacity: 0.55; }
.spec.solo { border-color: transparent; color: var(--ink); }
.lists { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s3); }
.lists .seg.tg { width: auto; }
.lists .seg.tg button { flex: none; }
.lists .seg { width: min(100%, 540px); }
.lists .seg button { flex: 1; padding: var(--s1) var(--s3); line-height: 1.2; }
#bis-body { display: grid; gap: var(--s4); }

/* The build bar: the class, the build (a dropdown when the class has more than one) with its talent split right beside
   it, which opens the talent trees. */
.bisbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); padding: var(--s3) var(--s5); border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); }
.whois { display: flex; align-items: center; gap: var(--s3); min-width: 0; max-width: 100%; }
.who-t { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; flex: 0 1 auto; }
.icon.sig { width: 44px; height: 44px; border-radius: 50%; border-color: var(--accent); }
.whois h2 { font-size: 20px; line-height: 1.2; }
/* The class's builds laid out as words in place of a dropdown (the player, 2026-11-24: "text based selections that are
   layed out"), most damage first. The one picked is told by its name alone, highlighted (bright) while the others are
   muted: no pill, border or class colour ("no border aroudn the selection", "name highlight", "no class coloring on
   the spec"). Hovering brightens a name. Every name keeps one weight and size, so picking moves nothing. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.builds { display: flex; flex-wrap: wrap; gap: 2px var(--s3); }
.builds .bld { height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-family: var(--f-display); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: color 0.15s; }
.builds .bld:hover { color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
.builds .bld.on { color: var(--ink); }
.builds .bld:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.builds .bld.late { opacity: 0.6; }
.builds .bld .nr { font-size: 12px; font-weight: 500; }
.talsum { display: grid; justify-items: start; text-align: left; min-height: 0; padding: 2px 0 2px var(--s5); border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); font-size: inherit; line-height: 1.3; }
.talsum b { font-family: var(--f-display); font-size: 20px; line-height: 1.15; color: var(--talent); }
.talsum .meta { display: inline-flex; align-items: center; gap: 3px; }
.talsum:hover .meta { color: var(--ink); text-decoration: underline; }
.talsum:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .talsum { padding-left: 0; border-left: 0; } }
/* The talent trees over the page: as tall as they need, never taller than the window. */
dialog.report.talpop { inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
.icon.lg { width: 48px; height: 48px; }
.pic { position: relative; display: block; line-height: 0; }
.got { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: var(--accent-ink); border: 2px solid var(--surface); }

/* The sets and the set picked. Wide: side by side, the set staying in view under the site bar while the list scrolls.
   Narrower: the list alone, and the set opens over the page from the bottom. Either way nothing below them moves. */
.bis-main { display: grid; gap: var(--s4); align-items: start; }
.sdetail { gap: var(--s4); outline: none; }
@media (min-width: 1200px) {
  .bis-main { grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 34rem); }
  .sdetail { position: sticky; top: calc(var(--hdr, 64px) + var(--s3)); }
  .sdetail .dclose, .dscrim { display: none !important; }
}
@media (max-width: 1199.98px) {
  .sdetail { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 640px); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 0; border-radius: var(--r3) var(--r3) 0 0; box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
    padding: var(--s4) max(var(--s4), env(safe-area-inset-right, 0px)) calc(var(--s4) + env(safe-area-inset-bottom, 0px)) max(var(--s4), env(safe-area-inset-left, 0px));
    transform: translateY(100%); visibility: hidden; transition: transform 0.2s ease, visibility 0s linear 0.2s; }
  .sdetail.open { transform: none; visibility: visible; transition: transform 0.2s ease; }
  /* its heading and Close stay at the top while the sheet scrolls */
  .sdetail .dtophead { position: sticky; top: calc(-1 * var(--s4)); z-index: 1; margin: calc(-1 * var(--s4)) 0 0; padding: var(--s4) 0 var(--s1); background: var(--surface); }
  .dscrim { z-index: 40; }
}
@media (prefers-reduced-motion: reduce) { .sdetail, .sdetail.open { transition: none; } }
.dtop { display: grid; gap: var(--s1); }
.dtophead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 28px; }
.dtophead + .dtop { margin-top: calc(var(--s1) - var(--s4)); }
.dval { display: flex; align-items: baseline; gap: var(--s2); }
.dval b { font-family: var(--f-display); font-size: 40px; line-height: 1.05; font-weight: 700; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.dval span { color: var(--muted); font-size: 13px; }
.dhow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); min-height: 28px; }
.deltas { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: 12.5px; color: var(--muted); min-height: 1.5em; }
.deltas b { font-weight: 600; color: var(--ink); }
.deltas b.good { color: var(--good); } .deltas b.bad { color: var(--warn); }
/* Every slot on one line of the same height: slot, icon (ringed when it is not the BiS set's item or enchant), name,
   then enchant and source. Wowhead's tooltip script colors any .q2-.q5 element by quality; only the name should be. */
.dgear { display: grid; border-top: 1px solid var(--line); }
.sdetail .dg { display: grid; grid-template-columns: 5.6rem auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 46px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.3; color: var(--ink); }
.dsl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dg .tx { display: grid; min-width: 0; }
.dg .iname, .dg .where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg .where { font-size: 12px; color: var(--muted); }
/* A slot that differs from the BiS set: its icon's own border turns the accent colour in place of the quality colour,
   one border either way (the player, 2026-11-25, on a ring round the quality border: "Yes, one border"). */
.dg.new .pic .icon { border-color: var(--accent); }
/* Top Gear: a slot the best set changes is ringed, as the BiS set's are; the swaps table's items sit icon and name. */
.toprank .ticons { display: flex; flex-wrap: wrap; gap: 6px var(--s4); }
.toprank .tit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.toprank .tit .iname { white-space: nowrap; }
.toprank td { vertical-align: middle; padding-top: 8px; padding-bottom: 8px; }
.toprank tr.on td { background: var(--accent-soft); }
.toprank tr.on td:first-child, .toprank tr.on td:nth-child(2) { font-weight: 600; }
#top-body { display: grid; gap: var(--s4); min-width: 0; }
.dg.empty .icon { border-style: dashed; background: none; }
/* Exclude: the item leaves every set of this build (it shows under Excluded, which brings it back). */
.dg .dx { display: inline-grid; place-items: center; width: 30px; min-height: 30px; padding: 0; color: var(--muted); }
.dg .dx:hover { color: var(--warn); border-color: var(--warn); }
@media (max-width: 560px) { .sdetail .dg { grid-template-columns: 4.2rem auto minmax(0, 1fr) auto; gap: var(--s2); } }
.dbody { display: grid; gap: var(--s5); align-content: start; }
.dstats { display: grid; gap: var(--s3); }
.dstats .seg { display: flex; width: 100%; }
.dstats .seg button { flex: 1 1 auto; min-height: 30px; padding: 2px var(--s2); font-size: 12.5px; line-height: 1.2; }
.mstats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); font-size: 13px; }
.mstats > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 5px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mstats dt { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mstats dd { margin: 0; white-space: nowrap; }
.mstats > p { grid-column: 1 / -1; }
/* Under the sets: what the sim assumed, then the sim report. */
.bis-more { display: grid; gap: var(--s4); align-items: start; }
.bpanel { border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); min-width: 0; align-content: start; }
.bhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); }
.foot { max-width: 110ch; }
/* The BiS page's backdrop: full-width bands told apart by shade, with no lines, boxes or gaps between them: the build
   bar on top (lightest), the sets with the set picked beside them (a step lighter than the sets, down the whole column
   to the window's edge), then the sim settings (a step darker), the report, and the note on how the list was found.
   Each band's content lines up with the page above (--gut: the site's width, centred). */
#bis-body { --b-head: #262a31; --b-list: #1c1f24; --b-side: #22262c; --b-more: #17191d; --b-rep: #1f2329; --b-foot: #17191d;
  --side-w: clamp(380px, 36vw, 34rem); --gut: max(var(--s4), calc((100% - 1560px) / 2 + var(--s4)));
  gap: 0; background: var(--b-list); }
/* The class strip is the column's first band: the same width and gutters as the bands under it, a shade of its own. */
#view-bis { gap: 0; }
#view-bis > .picker:not(#bis-body) { border-bottom: 0; padding: 0; background: #1f2227; }
/* One equal tile per class filling the whole strip, edge to edge and top to bottom with no gaps, icon and name (icon
   only where the row is too narrow for names), each name a muted shade of its class's colour. The chosen class's tile
   is lit in that colour across its whole cell, with a ring of it round the icon: no underline. Only colours and
   shadows change, so nothing moves. */
#bis-classes { gap: 0; min-height: 0; padding: 0; }
#bis-classes .cls { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s3) var(--s2); border-radius: 0; color: color-mix(in srgb, var(--cc) 50%, var(--muted)); font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
#bis-classes .cls .icon.cl { width: 40px; height: 40px; filter: saturate(0.45) brightness(0.8); opacity: 1; transition: filter 0.15s, box-shadow 0.15s; }
#bis-classes .cls:hover { background: color-mix(in srgb, var(--cc) 8%, #23262c); color: color-mix(in srgb, var(--cc) 80%, #fff); }
#bis-classes .cls:hover .icon.cl { filter: none; }
#bis-classes .cls.on { background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 24%, #23262c), color-mix(in srgb, var(--cc) 9%, #23262c)); color: color-mix(in srgb, var(--cc) 72%, #fff); }
#bis-classes .cls.on .icon.cl { filter: none; border-color: var(--cc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 25%, transparent), 0 0 12px color-mix(in srgb, var(--cc) 55%, transparent); }
@media (max-width: 1200px) { #bis-classes .cn { display: none; } }
@media (max-width: 560px) { #bis-classes .cls { padding: var(--s2) 2px; } #bis-classes .cls .icon.cl { width: 34px; height: 34px; } }
/* The target count right after the talent split ("moving the target selection to the left"); the class art takes the
   bar's right end. */
.bisbar .seg.tg button { flex: none; padding: var(--s1) var(--s3); line-height: 1.2; }
#bis-body .bisbar, #bis-body .bpanel { border: 0; border-radius: 0; background: none; }
#bis-body > * { padding-left: var(--gut); padding-right: var(--gut); }
#bis-body > .bisbar { background: var(--b-head); }
/* The build bar wears its class's colour, as the class tiles above it do (the player, 2026-11-24: "more thematically
   class based"): the icon ringed and lit in it, and the target count lit with it. The band keeps its own shade, with
   no colour wash ("remove the color glow on the background"); the build picked is told by brightness alone. */
/* The build's main talent tree's art (--bbg, set by renderBis) at the bar's right end, out to the band's edge
   ("i prefer the right alignment"), in its own space so no control sits on it: a band cut from the painting's middle,
   the bar's full height, fading in from the left, a little darker and greyer than the original. It takes only the room
   left over (at most 560px), so it never wraps anything; where the bar is too narrow to leave it room, it is left out. */
.bart { background: var(--bbg, none) center 42% / cover no-repeat; opacity: 0.5; filter: saturate(0.85) brightness(0.9); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.bisbar .bart { flex: 1 1 0; max-width: 560px; min-width: 0; align-self: stretch; margin-block: calc(-1 * var(--s3)); margin-left: auto; margin-right: calc(-1 * var(--gut)); }
@media (max-width: 900px) { .bisbar .bart { display: none; } }
/* On a wide window the bar is a fixed grid of two lines, the same for every class (the player, 2026-11-24: "not a fan
   of the resizing and variation of the talent choice sizes between classes"; picked "build names on their own line"):
   the class icon down both lines; on the first the talent split (numbers and trees on one line) and the target count,
   each in a column of its own fixed width, so neither moves from class to class; on the second the class's build names;
   the tree's art down both lines at the right end. The class's name is not repeated here: its tile above is lit ("the
   class name in here is redundant because of the selected tab"). */
@media (min-width: 901px) {
  #bis-body > .bisbar { display: grid; grid-template-columns: 68px 31.5rem auto minmax(0, 1fr); /* line two holds Rogue's six names */ grid-template-rows: auto auto; column-gap: var(--s4); row-gap: 6px; align-items: center; }
  #bis-body > .bisbar .whois, #bis-body > .bisbar .who-t { display: contents; }
  #bis-body > .bisbar .icon.sig { grid-row: 1 / 3; grid-column: 1; width: 68px; height: 68px; } /* as tall as the two lines ("the spec icon needs to be larger perhaps to fill the space evenly") */
  #bis-body > .bisbar .builds, #bis-body > .bisbar #bis-h:not(.vh) { grid-row: 2; grid-column: 2 / 4; }
  #bis-body > .bisbar .talsum { grid-row: 1; grid-column: 2; display: flex; align-items: baseline; gap: var(--s3); white-space: nowrap; }
  #bis-body > .bisbar .seg.tg { grid-row: 1; grid-column: 3; justify-self: start; }
  #bis-body > .bisbar .bart { grid-row: 1 / 3; grid-column: 4; justify-self: end; width: 100%; max-width: 560px; }
}
/* the icon's ring and its own small glow */
.bisbar[data-cls] .icon.sig { border-color: var(--cc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 25%, transparent), 0 0 16px color-mix(in srgb, var(--cc) 55%, transparent); }
#bis-body > .bisbar .talsum { padding-left: 0; border-left: 0; } /* no divider: the class name it parted the talents from is gone ("the bar to the left of the talents seems unnecessary now") */
.bisbar[data-cls] .seg.tg button.on { background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 40%, #23262c), color-mix(in srgb, var(--cc) 22%, #23262c)); color: color-mix(in srgb, var(--cc) 30%, #fff); }
#bis-body > .bis-more { background: var(--b-more); }
#bis-body > .bpanel { background: var(--b-rep); }
#bis-body > .msg { border: 0; border-radius: 0; padding-top: var(--s3); padding-bottom: var(--s3); }
#bis-body > .foot { max-width: none; padding-top: var(--s4); padding-bottom: var(--s6); background: var(--b-foot); }
#bis-body > .foot p { max-width: 110ch; margin: 0; }
.bis-main, .bis-more { gap: 0; }
#bis-body .bis-main > .combos, #bis-body .bis-more > .bpanel { padding-left: 0; padding-right: 0; }
@media (min-width: 1200px) {
  #bis-body .bis-main { grid-template-columns: minmax(0, 1fr) var(--side-w);
    background: linear-gradient(to left, var(--b-side) calc(var(--side-w) + var(--gut)), var(--b-list) calc(var(--side-w) + var(--gut))); }
  #bis-body .bis-main > .combos { padding-right: var(--s5); }
  #bis-body .bis-main > .sdetail { padding: var(--s4) 0 var(--s4) var(--s5); }
  /* The list and the set picked share rows: the list's heading and filters beside the set's value, the list beside the
     set's gear and then its stats (the list and the gear start on the same line), the pages under the list. The two
     scroll together. */
  #bis-body .bis-main { grid-template-rows: auto auto auto; }
  #bis-body .bis-main > .combos, #bis-body .bis-main > .sdetail { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; row-gap: var(--s4); align-self: stretch; }
  #bis-body .bis-main > .sdetail { position: static; }
  #bis-body .sdetail .dhead { display: grid; gap: var(--s4); align-content: start; }
  #bis-body .sdetail .dbody { align-self: start; }
  #bis-body .sdetail .mstats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.ctop { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
/* the summary and Search again share one line: a long progress line is cut, never wrapped */
.bsum { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.bsum #combo-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bsum #combo-rs { flex: none; }
.bsum .bupd { flex: none; white-space: nowrap; } /* the list's last change, beside its count */
/* Narrower, the set's parts sit straight in the sheet (so its heading stays at the top while the sheet scrolls). */
@media (max-width: 1199.98px) { .sdetail .dhead { display: contents; } }
/* Narrower, the set picked opens over the page from the bottom, so it keeps an edge of its own. */
@media (max-width: 1199.98px) {
  #bis-body .sdetail { background: var(--b-side); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r3) var(--r3) 0 0; }
  #bis-body .sdetail .dtophead { background: var(--b-side); }
}
/* The sets. The equipped items and the excluded ones each sit on their own line, always there and one icon high, that
   scrolls sideways; the list always has room for a whole page of rows. So neither excluding items nor paging changes
   the panel's height or anything below it. */
/* Sources, Include and Excluded each head their row from above (Include and Excluded with a Clear button at the right). */
.combos .leave { display: grid; gap: 2px; min-width: 0; }
.lvhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 28px; }
/* Sources: the kinds of gear, always all of them, so nothing moves when one is left out; one left out is greyed, like an
   excluded item. */
.lvcats { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; padding: 4px 0; }
.lvcat { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s2) 0 5px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.lvcat .icon { border-radius: 50%; }
/* A picture in a circle (class buttons, the spec picture, the spec and source chips) is drawn smaller than one in a
   square: a circle cuts off a square picture's corners, so at the squares' 108% it showed far less than Wowhead does
   (the player, 2026-11-26: "anything in a circular portrait", "keep it circle", "match ... wowhead in terms of whats
   visible"). At 86% the circle shows about what Wowhead's square shows, and the picture's own dark edge meets the
   dark ring. Over the size img() writes on the element itself, hence !important. */
.icon.cl, .icon.sig, .spec .icon.sm, .lvcat .icon { background-size: 86% !important; }
/* a chip with no icon (Confirmed, Unconfirmed): its words as far in from the left as the tick is from the right, not
   at the icon's 5px (the player, 2026-11-26: "spacing not correct inside with the padding on the left") */
.lvcat.noic { padding-left: var(--s3); }
.lvcat .ck { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.lvcat:hover { filter: brightness(1.12); }
.lvcat.on { border: 1px dashed var(--line); background: none; color: var(--muted); font-weight: 400; }
.lvcat.on .icon { opacity: 0.35; filter: grayscale(1); }
.lvcat.on .ck { background: none; border: 1px solid var(--line); }
.lvcat.on:hover { border-color: var(--muted); filter: none; }
.lvcat:disabled { cursor: default; opacity: 0.7; }
.lvstrip { display: flex; align-items: center; gap: 6px; overflow-x: auto; min-width: 0; flex: 1; min-height: 44px; padding: 4px 2px; }
.lvstrip > .meta { white-space: nowrap; font-size: 12.5px; }
.combos .lv { position: relative; flex: none; padding: 0; min-height: 0; border: 0; background: none; border-radius: 6px; line-height: 0; color: var(--ink); }
.lv:hover .icon { filter: brightness(1.15); }
.lv.on .icon { opacity: 0.4; filter: grayscale(1); }
.lv.on:hover .icon { opacity: 0.7; filter: grayscale(1); }
.lvgap { flex: none; width: 36px; height: 36px; border: 1px dashed var(--line); border-radius: 6px; }
.lvgrp { display: flex; flex: none; align-items: center; gap: 6px; }
.lvgrp + .lvgrp { margin-left: var(--s1); padding-left: var(--s3); border-left: 1px solid var(--line); }
.lvgn { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
/* Excluded wraps onto more lines rather than running off the column's edge (the player, 2026-11-24: "this is flowing off
   the edge"); each slot's label keeps its group apart, so no divider lines. */
#combo-out { flex-wrap: wrap; overflow-x: visible; column-gap: var(--s5); row-gap: var(--s2); }
#combo-out .lvgrp + .lvgrp { margin-left: 0; padding-left: 0; border-left: 0; }
/* Include: the items included, then the search that adds one. Its matches open over what is below, so typing never
   moves anything; the row wraps when narrow. */
.kline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); min-width: 0; }
#combo-keep { flex: 0 1 auto; flex-wrap: wrap; overflow-x: visible; column-gap: var(--s5); row-gap: var(--s2); }
#combo-keep .lvgrp + .lvgrp { margin-left: 0; padding-left: 0; border-left: 0; }
.kfind { position: relative; flex: 1 1 200px; max-width: 300px; min-width: 0; }
.kfind input[type=search] { width: 100%; }
.kres { position: absolute; z-index: 30; top: calc(100% + var(--s1)); left: 0; width: max(100%, min(380px, calc(100vw - 32px))); max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: var(--s1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.kopt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2); padding: 5px var(--s2); border-radius: var(--r1); color: var(--ink); text-decoration: none; }
.kopt .kn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.kopt .kn.q2 { color: var(--q2); } .kopt .kn.q3 { color: var(--q3); } .kopt .kn.q4 { color: var(--q4); } .kopt .kn.q5 { color: var(--q5); }
.kopt .meta { font-size: 12px; white-space: nowrap; }
.kopt.on, .kopt:hover { background: var(--accent-soft); }
.kempty { margin: 0; padding: var(--s2); }
/* On a phone the search takes a line of its own, so its matches have the column's whole width. */
@media (max-width: 599.98px) { .kfind { flex-basis: 100%; max-width: none; } .kres { width: 100%; } }
/* The source block at the bottom of Wowhead's item tooltip (always dark, so Wowhead's own tooltip colors). */
.wowhead-tooltip .fb-src { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.wowhead-tooltip .fb-src .fbk { color: #ffd100; }
.wowhead-tooltip .fb-src .fbz { color: #fff; font-weight: 600; }
.wowhead-tooltip .fb-src .fbd { color: #1eff00; }
.wowhead-tooltip .fb-src .fbn { color: #9d9d9d; font-size: 11px; }
button.sm { min-height: 28px; padding: 0 var(--s3); font-size: 12.5px; }
/* Every close on a pop-up, sheet or panel: a bare X, no button or border around it ("all close buttons on modals should be
   "X" icons instead", "no button/border style"), muted until hovered; its hit area stays a comfortable 32px. */
button.xclose { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); }
button.xclose:hover { color: var(--ink); }
.clist { border: 1px solid var(--line); border-radius: var(--r2); background: var(--well); scroll-margin-top: calc(var(--hdr, 64px) + var(--s3)); }
.crow { display: grid; grid-template-columns: 2.6rem 4.6rem 4rem minmax(0, 1fr); gap: var(--s3); align-items: center; padding: 4px var(--s3); border-bottom: 1px solid var(--line); font-size: 13px; min-height: 40px; cursor: pointer; }
.crow:last-child { border-bottom: 0; }
.crow.chead { min-height: 0; cursor: default; background: var(--surface-2); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-radius: var(--r2) var(--r2) 0 0; }
.crow.ghost { cursor: default; }
.crow.note > span { grid-column: 1 / -1; }
/* the BiS row is marked by its gold "BiS" alone, not a tint, so the picked row is the only one lit (the player,
   2026-11-26: "when i select a row it doesnt move the highlight properly": the tint read as the pick) */
.crow:not(.chead):not(.ghost):not(.on):hover { background: var(--surface); }
/* a set simmed on fewer fights is not dimmed: every row's gear looks the same (the player, 2026-11-26: "items are shaded
   differently? why cant the items just be consistent here") */
/* added up from single-slot sims, not simmed as one set */
.crow.est { box-shadow: inset 2px 0 0 var(--c-other); }
.crow.est .cv { font-style: italic; }
/* the set picked: the one the panel shows */
.crow.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.crow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crow .rk { color: var(--muted); text-align: right; }
.crow .cv { font-weight: 600; text-align: right; }
.crow .cd { text-align: right; color: var(--muted); }
.crow .cd.good { color: var(--good); } .crow .cd.bad { color: var(--warn); } .crow .cd.bis { color: var(--accent); font-weight: 600; }
/* A row's set: one cell per slot, the same width on every row, so a slot lines up down the list. */
.crow .cc { display: grid; grid-template-columns: repeat(auto-fill, 24px); gap: 4px; min-width: 0; }
.crow.chead .cc { display: block; }
.combos .gi { display: block; width: 24px; height: 24px; padding: 1px; border-radius: 5px; line-height: 0; }
.combos .gi.new .icon { border-color: var(--accent); } /* one border, as thick as every other piece's: gold instead of its quality */
.combos a.gi:hover .icon { filter: brightness(1.15); }
@media (max-width: 760px) {
  .crow { grid-template-columns: 2rem 4.6rem minmax(0, 1fr); row-gap: var(--s1); min-height: 64px; }
  .crow .cd { text-align: left; }
  .crow .cc { grid-column: 1 / -1; }
  .crow.chead { min-height: 0; }
  .crow.chead .cc { display: none; }
}
/* phones: a set's icons take two lines, and the rows kept for room are as tall */
@media (max-width: 480px) { .crow { min-height: 86px; } .crow.chead { min-height: 0; } }
/* Pages: back, up to seven page numbers and next, centred and each the same width, so they never shift; which sets
   are shown at the right. */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2) var(--s3); }
.pgs { display: flex; align-items: center; gap: var(--s1); }
.pager .pg, .pgap { min-width: 2.6rem; padding: 0 var(--s1); justify-content: center; }
.pgap { display: inline-grid; place-items: center; color: var(--muted); }
/* Text, not buttons: the page shown in gold and underlined, the others muted until hovered. */
.pager .pg { background: none; border-color: transparent; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pager .pg:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.pager .pg.on { background: none; border-color: transparent; color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pager .pg[aria-label] { font-size: 20px; line-height: 1; }
.pager .pg:disabled { opacity: 0.3; }
.pgn { justify-self: end; white-space: nowrap; }
@media (max-width: 560px) {
  .bpanel { padding: var(--s3) var(--s4); }
  .pager { grid-template-columns: 1fr; justify-items: center; }
  .pager > span:first-child { display: none; }
  .pgn { justify-self: center; }
  .pager .pg, .pgap { min-width: 1.75rem; padding: 0 2px; }
}
/* Sim settings: each group's name above its contents (the player, 2026-11-26: "too much spacing and gaps and i think
   the headers should be on top not to the left"): the fight's details on a line of their own, then the groups of icons
   side by side, each as wide as its icons, wrapping as the width allows. */
.setup { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: flex-start; }
.setup > .sgrp { gap: 6px; min-width: 0; }
.setup > .sgrp.fight { flex-basis: 100%; }
.sgrp { display: grid; gap: var(--s2); align-content: start; }
.sicons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.sicons .bt { display: block; line-height: 0; }
.who { display: grid; margin-right: var(--s2); line-height: 1.3; }
.rep-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
/* The sim report: a large dialog that scrolls on its own. */
dialog.report { position: fixed; inset: 12px 0; margin: 0 auto; z-index: 40; width: min(1500px, calc(100vw - 24px)); height: auto; max-height: none; overflow: auto; align-content: start; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35); }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(10, 8, 16, 0.6); }
#rep-body { display: grid; gap: var(--s5); min-width: 0; }
.rsec { display: grid; gap: var(--s3); min-width: 0; }
.rsec h3 .meta { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: var(--s2); }
.icon.xs { width: 20px; height: 20px; border-width: 1px; border-radius: 4px; }
.hist { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.hbar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.hbar i { display: block; width: 100%; background: var(--c1); border-radius: 4px 4px 0 0; }
.hbar:hover i { filter: brightness(1.15); }
.hmean { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--ink); opacity: 0.6; pointer-events: none; }
.haxis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.tscroll { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th, .rtable td { padding: 6px var(--s2); border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.rtable thead th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; vertical-align: bottom; white-space: normal; }
.rtable th:first-child { text-align: left; padding-left: 0; }
.rtable tbody th { font-weight: 500; }
.rtable td:nth-child(2) { text-align: left; }
.ab { display: inline-flex; align-items: center; gap: var(--s2); }
.share { display: flex; align-items: center; gap: var(--s2); min-width: 170px; }
.sbar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.sbar i { display: block; height: 100%; background: var(--c-other); border-radius: 4px; }
.uchip { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s2) 2px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: 12.5px; }
.lg { display: inline-flex; align-items: center; gap: var(--s1); }
.lg > i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.stack { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line); }
.scol { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; }
.scol i { display: block; width: 100%; flex: none; }
.scol i:last-child { border-radius: 4px 4px 0 0; }
.scol:hover { filter: brightness(1.15); }
.tlwrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--surface-2); }
.tl { display: grid; width: calc(var(--tlw) + 190px); }
.trow { display: grid; grid-template-columns: 190px var(--tlw); min-height: 28px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
/* the timeline's groups (rotation, buffs, resource): a heading row each, framed, with a band of page background
   between them */
.tl { background: var(--bg); }
.ttrack { background: var(--surface-2); }
.tl > .ruler { border-bottom: 0; }
.tgroup { display: grid; border-block: 1px solid var(--line-2); }
.tgroup + .tgroup { margin-top: var(--s3); }
.tl > .tgroup:last-child { border-bottom: 0; }
.trow.thead { min-height: 26px; }
.trow.thead .tlabel, .trow.thead .ttrack { background: var(--surface); }
.trow.thead .tlabel { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.tlabel { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); background: var(--surface); border-right: 1px solid var(--line); font-size: 12.5px; min-width: 0; }
.tlabel > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttrack { position: relative; }
.ruler { min-height: 22px; }
.tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); font-size: 10.5px; color: var(--muted); padding-left: 3px; line-height: 22px; font-family: var(--f-num); }
.tick.major { border-left-color: var(--muted); }
.casts .ttrack { height: calc(var(--lanes) * 26px + 4px); }
.cast { position: absolute; display: block; line-height: 0; margin-top: 3px; }
.cast b { position: absolute; left: 0; top: 4px; height: 12px; background: var(--c1); opacity: 0.35; border-radius: 3px; }
.cast .icon { position: relative; }
.swings .ttrack { height: 22px; }
.sw { position: absolute; top: 5px; width: 3px; height: 12px; border-radius: 2px; background: var(--muted); margin-left: -1px; }
.sw.crit { background: var(--accent); height: 16px; top: 3px; }
.sw.glance { opacity: 0.5; }
.sw.miss, .sw.dodge, .sw.parry { background: var(--warn); }
/* buff uptime bars on the report timeline (scoped: results use .gain.up for gains) */
.ttrack > .up { position: absolute; top: 7px; height: 14px; border-radius: 4px; background: var(--c3); }
.trow.res .ttrack { height: 56px; }
.trow.res svg { display: block; }
@media (max-width: 700px) { .trow { grid-template-columns: 120px var(--tlw); } .tl { width: calc(var(--tlw) + 120px); } }
/* Each fight detail: its icon level with its name and value, which start at the top of the cell whatever the height
   of its neighbour (a long value wraps to two lines without spreading out the others). */
.frows { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.frows > div { max-width: 19rem; }
.frows > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px var(--s2); align-content: start; align-items: start; font-size: 13px; line-height: 1.35; }
.frows .icon { grid-row: span 2; align-self: center; }
.frows dt { color: var(--muted); font-size: 11.5px; }
.frows dd { margin: 0; }

/* The BiS page reads in three levels: each band (Best gear sets, Sim settings, Sim report) under a large heading, the
   bands told apart by shade (no lines between them); each part of the report under a medium heading with room above it; small uppercase labels only inside a part.
   Names in the report's tables read as names, not labels. */
#bis-body .bhead { padding-bottom: var(--s1); }
#bis-body .bhead h3 { font-family: var(--f-body); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--ink); }
#bis-body .bhead .meta { font-size: 13px; }
#bis-body > .bpanel, #bis-body .bis-more > .bpanel { padding-top: var(--s5); padding-bottom: var(--s6); gap: var(--s4); }
#bis-body .eyebrow { font-size: 12px; }
#rep-body { gap: var(--s6); }
.rsec h3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--ink); }
.rsec h3 .meta { font-size: 13px; }
.rsec > .eyebrow { margin-top: var(--s2); }
.rtable tbody th { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); }

/* The content sits in a column of its own: the site's width, centred, its backdrop a shade apart from the page around
   it (no border lines: the change of shade is the edge), so the bands inside read as one page. The column's padding
   (--gut) lines its content up with the class strip above it. */
#bis-body, #items-body { width: min(100%, 1560px); margin-inline: auto; --gut: var(--s4); }

/* The Items page: the same column as the BiS page. The filters band on top (lightest), then the list, a page at a time,
   with the item picked beside it (a step lighter, down to the column's edge); on narrower screens the item opens over
   the page from the bottom. Every row keeps one height and a short page keeps the room of a full one, so filtering and
   paging move nothing below. */
#items-body { --b-head: #262a31; --b-list: #1c1f24; --b-side: #22262c; --side-w: clamp(320px, 28vw, 26rem);
  display: grid; gap: 0; background: var(--b-list); }
#items-body > * { padding-left: var(--gut); padding-right: var(--gut); }
#items-body .ihead { background: var(--b-head); padding-top: var(--s5); padding-bottom: var(--s4); display: grid; gap: var(--s3); }
#items-body .ihead h2 { font-family: var(--f-body); font-size: 19px; font-weight: 700; letter-spacing: 0; }
#items-body .ihead > .meta { max-width: 110ch; }
.ifilters { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
#it-slot { width: 12rem; } #it-q { width: 18rem; max-width: 100%; min-height: var(--ctl); }
#it-minil { width: 9.5rem; font-family: inherit; }
/* Sources and In the game each head their row from above, as on the BiS page (the player, 2026-11-26: "put sources and
   in the game filter titles above the filter not to the side") */
#items-body .leave.inc { display: grid; gap: 2px; min-width: 0; }
.itm-main { display: grid; gap: 0; }
.ilist { display: grid; gap: var(--s3); padding-top: var(--s4); padding-bottom: var(--s6); min-width: 0; align-content: start; }
@media (min-width: 1200px) {
  .itm-main { grid-template-columns: minmax(0, 1fr) var(--side-w);
    background: linear-gradient(to left, var(--b-side) calc(var(--side-w) + var(--gut)), var(--b-list) calc(var(--side-w) + var(--gut))); }
  .ilist { padding-right: var(--s5); }
  .itm-main > .idetail { padding: var(--s4) 0 var(--s4) var(--s5); }
}
@media (max-width: 1199.98px) { #items-body .idetail { background: var(--b-side); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r3) var(--r3) 0 0; padding: var(--s4); } }
.idetail { display: grid; gap: var(--s4); align-content: start; }
/* every row, the blank ones too, one height: a page of items is always as tall, so paging moves nothing */
/* Every column but Where from has a set width, and the table lays out from those alone (fixed), so no page, sort or
   filter can move a column; Where from takes the rest. Narrower than its least width, the table scrolls in its own box. */
.itable { table-layout: fixed; min-width: 56rem; }
.itable th[data-sort="il"] { width: 4.75rem; }
.itable th.thcls { width: 7.25rem; }
.itable th[data-sort="bis"] { width: 7.5rem; }
/* every head on one line, its sort arrow included, so sorting by any column never changes the header's height */
.itable thead th { white-space: nowrap; }
.itable tbody tr { height: 56px; } /* a little above any row's content, so real and blank rows match exactly */
.itable .ics { display: grid; grid-template-columns: repeat(5, 18px); gap: 2px; }
.itable .ics .icon { width: 18px; height: 18px; }
.itable .inm { display: grid; line-height: 1.25; min-width: 0; }
.itable .inm .meta { font-size: 12px; }
/* The item column keeps one width on every page, so paging never moves the columns; a name too long for it ends in
   "…" (the panel beside shows it whole), so every row keeps one height. */
.itable th:first-child { width: 17rem; min-width: 17rem; max-width: 17rem; padding-right: var(--s3); }
.itable tbody th[scope="row"] .ab { display: flex; min-width: 0; }
.itable .inm > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itable tr.ghost td { border-bottom-color: transparent; }
.itable th[data-sort] { cursor: pointer; user-select: none; }
.itable th[data-sort]:hover, .itable th[data-sort].on { color: var(--ink); }
.itable th[data-sort].on::after { content: " \2193"; }
.itable th[data-sort="n"].on::after { content: " \2191"; }
/* a right-aligned head (Level, In BiS sets) takes its arrow before the word, so the word ends where its numbers end */
.itable th[data-sort]:not(.txt):not(:first-child).on::after { content: none; }
.itable th[data-sort]:not(.txt):not(:first-child).on::before { content: "\2193\00a0"; }
.itable .irow { cursor: pointer; }
.itable .irow:hover { background: rgba(255, 255, 255, 0.03); }
.itable .irow.on { background: var(--accent-soft); }
/* the picked row's gold bar on its first cell: a shadow on the row itself Chrome draws up into the header (the player,
   2026-11-26: "this is messed up") */
.itable .irow.on > :first-child { box-shadow: inset 3px 0 0 var(--accent); }
/* room for that bar before the icon, the column's head moved in to match */
.itable th:first-child { padding-left: var(--s3); }
.itable .irow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.itable td.isrc { text-align: left; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.itable td.icls { text-align: left; }
/* Confirmed: Yes in green, No in orange, Bind on Pickup muted; the line under says how. */
/* one width on every page, so paging never moves the columns */
.itable td.iah { text-align: left; white-space: nowrap; }
.itable th[data-sort="ah"] { width: 10.5rem; }
.itable td.ah-na { color: var(--muted); }
/* Binds: BoE or BoP; wide enough for the sort arrow, so sorting by it moves nothing. */
.itable td.ibind { text-align: left; white-space: nowrap; font-weight: 600; }
.itable th[data-sort="bo"] { width: 4.5rem; }
.iah .ahv { font-weight: 600; }
.iah.ah-conf .ahv { color: var(--good); } .iah.ah-unconf .ahv { color: var(--warn); } .iah.ah-bop .ahv { color: var(--muted); }
.icls .icon { margin-right: 2px; vertical-align: middle; }
.itable .iname { text-decoration: none; font-weight: 600; }
.ihero { display: flex; gap: var(--s3); align-items: center; }
.ihero .iname { font-size: 17px; font-weight: 600; text-decoration: none; }
.icon.lg { width: 56px; height: 56px; }
.isrcs, .iuses { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.iuses a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; }
.iuses a:hover > span:first-of-type { text-decoration: underline; }
a.uchip { color: var(--ink); text-decoration: none; } a.uchip:hover { border-color: var(--accent); }
.itable thead th.txt { text-align: left; }
/* numbers sit right, under their right-aligned heads (the table-wide rule puts every second cell left) */
.itable td.num { text-align: right; }

/* The enchant under a piece worn opens the enchants to test in its slot. */
button.ench.epick { display: inline; padding: 0; border: 0; background: none; min-height: 0; font: inherit; font-size: 11.5px; line-height: 1.4; color: var(--good); cursor: pointer; text-align: inherit; }
button.ench.epick.none { color: var(--muted); }
button.ench.epick:hover { filter: brightness(1.25); }
button.ench.epick .n { color: var(--accent); }
/* the enchant under a piece opens the enchants to test: a small chevron says so (the player, 2026-11-25: "there's no
   enchant selector?") */
button.ench.epick .chev { display: inline-block; margin-left: 3px; vertical-align: -1px; opacity: 0.85; }
.count.bad { color: var(--warn); }
/* The last consumable tile: the whole list. */
.bt.add { width: 36px; height: 36px; display: inline-grid; place-items: center; line-height: 1; color: var(--muted); background: var(--surface); border-radius: 6px; }
.bt.add:hover { color: var(--ink); }
/* The picker window: tiles of icon and name, lit when on, dark when off. */
dialog.pickpop { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 48px); overflow: auto; }
/* its own width over the talents window's fit-to-content one, which it shares classes with: sized to content it stood as
   wide as its note, and with the note one short line it fell to a single column (the player, 2026-11-26: "why is
   consumables modal window now so long and narrow?") */
dialog.report.talpop.pickpop { width: min(820px, calc(100vw - 24px)); }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.ptile { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r2); cursor: pointer; color: var(--muted); min-width: 0; }
.ptile .iconlink { flex: none; line-height: 0; }
.ptile .icon { filter: grayscale(1) brightness(0.5); opacity: 0.7; }
.ptile.on { color: var(--ink); background: var(--surface-2); }
.ptile.on .icon { filter: none; opacity: 1; }
.ptile:hover { background: var(--surface-2); }
.ptile.own { cursor: default; }
.ptile .pn { display: block; font-size: 13.5px; line-height: 1.3; }
.ptile .meta { display: block; font-size: 11.5px; }
.pgroup h3 { display: flex; gap: var(--s2); align-items: baseline; margin: var(--s3) 0 var(--s2); }
.ptest { font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: var(--accent); font-weight: 600; }
/* How long a run will take: a light and words (green: quick; yellow: a few minutes; red: long). */
.eta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.eta:empty { display: none; }
.eta i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.eta b { font-weight: 600; color: var(--ink); }
.eta.g i { background: var(--good); }
.eta.y i { background: #e6c34a; }
.eta.r i { background: #e5484d; }
/* Run and Stop as icons (the player, 2026-11-24: "change run and stop to icon buttons"): square, their name in a tooltip. */
button.ibtn { width: var(--ctl); min-width: var(--ctl); padding: 0; display: inline-grid; place-items: center; line-height: 0; }
/* Advanced: a panel that slides in from the right edge over the page (and slides out), the page usable beside it; its
   accuracy levels a row each, their numbers in columns, the level picked now lit. */
.slideout { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(460px, 100vw); display: grid; gap: var(--s5); align-content: start;
  padding: var(--s5); background: var(--surface); box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden; transition: transform 0.22s ease, visibility 0s linear 0.22s; }
.slideout.open { transform: none; visibility: visible; transition: transform 0.22s ease; }
@media (prefers-reduced-motion: reduce) { .slideout, .slideout.open { transition: none; } }
.advsec { display: grid; gap: var(--s3); }
.advsec h3 { margin: 0; }
.advlabel { display: grid; gap: var(--s1); font-size: 12.5px; color: var(--muted); max-width: 200px; }
button.advbtn { display: inline-flex; align-items: center; gap: 8px; }
.accgrid { display: grid; gap: 4px; }
.acch, .accrow { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: center; }
.acch span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.accrow { padding: 6px 8px; margin: 0 -8px; border-radius: var(--r2); }
.accrow.on { background: var(--surface-2); }
.accrow b { font-weight: 600; color: var(--muted); }
.accrow.on b { color: var(--ink); }
.accrow input { width: 100%; min-width: 0; }
/* A scroll area never hands its scroll on to the page at its top or bottom (the player, 2026-11-24, a standing rule);
   app.js's wheel guard covers a window whose content fits. Sideways scrollers keep the page's own up and down. */
dialog, .bagrid, details.sgroup .sub, #setup-text, .sdetail { overscroll-behavior: contain; }
.scroll, .tscroll, .tlwrap, .lvstrip, .classes, .specs { overscroll-behavior-x: contain; }
/* Top Gear's results: the best sets as rows (the player, 2026-11-24: "results section needs some help in styling. it
   has too much empty space", "it should just be rows of the top 10"), the pieces each swaps in by icon and name right
   after its numbers, the best set's row lit. */
.toprank th, .toprank td { text-align: left; }
.toprank th:first-child, .toprank td:first-child { width: 2.5em; text-align: right; padding-right: var(--s3); }
.toprank th:nth-child(2), .toprank td:nth-child(2) { width: 1%; padding-right: var(--s4); }

/* Top Gear's best sets (the player, 2026-11-25: "the set should show your full equipment kit, your total DPS, and full
   stat sheet", then "maybe each row should expand to show the details?"): one list across the width; the open row
   shows its set under it, the stats on the left and the kit in two columns as the character pane, one column when
   narrow. */
.toplist .crow { grid-template-columns: 2.6rem 5rem 5.6rem minmax(0, 1fr) 18px; } /* wide enough for "vs. current" on one line */
.toplist .chead .cd { white-space: nowrap; }
.toplist .crow .cv { font-size: 14px; font-weight: 600; }
.toplist .tchev { color: var(--muted); justify-self: end; transition: transform 0.15s ease; }
.toplist .trow.open .tchev { transform: rotate(180deg); color: var(--accent); }
.toplist .trow:last-child .tdet { border-bottom: 0; border-radius: 0 0 var(--r2) var(--r2); }
.tdetw { display: block; } /* the open set's detail, which slides open and shut (pickTopRow) */
/* Three columns: the gear, the total and stats, the stat weights (the player, 2026-11-26: "format it better. 3 column
   style with gear/stats/weights"; earlier "add some spacing between the left portion and right portion stats vs. gear",
   "also perhaps move gear to the left side"). Under 1500px the weights go under the stats, beside the gear; on a narrow
   screen everything stacks, the total and stats first. */
.tdet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 22rem) minmax(250px, 22rem); gap: var(--s4) 48px; padding: var(--s4) var(--s4) var(--s5) calc(2.6rem + var(--s3) * 2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tdet .tleft { display: grid; gap: var(--s3); align-content: start; order: 2; }
.tdet > .twtw { order: 3; align-content: start; }
/* each column under its own label (the player, 2026-11-26: "maybe just label it equipment/stats/stat weights") */
.tdet > .tgear { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
@media (max-width: 1499px) {
  .tdet { grid-template-columns: minmax(0, 1fr) minmax(260px, 24rem); }
  .tdet > .tgear { grid-row: span 2; }
  .tdet > .twtw { grid-column: 2; }
}
.tcons { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.tdet .tkit { display: grid; grid-template-rows: repeat(9, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--s5); border-top: 0; align-content: start; }
/* its slot rows as the BiS panel's (.sdetail .dg), without that panel's sheet on narrow screens: always in the page */
.tdet .dg { display: grid; grid-template-columns: 5.6rem auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 42px; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.3; color: var(--ink); }
@media (max-width: 960px) {
  .tdet { grid-template-columns: minmax(0, 1fr); padding-left: var(--s4); }
  .tdet .tleft { order: 0; }
  .tdet .tkit { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .tdet > .tgear { grid-row: auto; }
  .tdet > .twtw { grid-column: auto; }
}
@media (max-width: 560px) { .tdet .dg { grid-template-columns: 4.2rem auto minmax(0, 1fr) auto; gap: var(--s2); } }
/* Swapped-in pieces stand out (the player, 2026-11-25: "can you style it more clearly on the items that are swapped in",
   then "remove the swapped in text"): in a set's row the pieces you wear now are dimmed, so the gold-bordered swaps
   lead (not on your own gear's row, which swaps nothing); in an open set a swapped slot's row is tinted gold with a
   gold bar, its slot name and item name lit. */
.toplist .crow:not(.now) .gi:not(.new) { opacity: 0.4; }
.toplist .crow:not(.now):hover .gi:not(.new) { opacity: 0.65; }
.tdet .dg.new { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--s3); margin-left: calc(-1 * var(--s3)); border-radius: 0 var(--r1) var(--r1) 0; }
.tdet .dg.new .dsl { color: var(--accent); }
.tdet .dg.new .iname { font-weight: 600; }
/* Credits and licences, at the foot of every page: quiet, inside the site's column */
/* centred in the site's column under the pages, not at the window's left edge (the player, 2026-11-25: "its on the far
   left", "center it please") */
.sitefoot { display: grid; gap: var(--s2); justify-items: center; text-align: center; width: min(100% - 2 * var(--s4), 1560px); margin-inline: auto; padding: var(--s3) 0 var(--s6); color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.sitefoot p { margin: 0; max-width: 110ch; }
.sitefoot a { color: var(--ink); }
.sitefoot a:hover { color: var(--accent); }
/* an open set's Sim report button, under its stats */
.tdet .trep { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
/* a set's stat weights: one row a stat, its name, a bar against the strongest, and the weight with its ± */
.twtw { display: grid; gap: var(--s2); }
.twts { display: grid; gap: 2px; }
.twt { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.twt .twn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twt .twb { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.twt .twb i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.twt .twv { text-align: right; white-space: nowrap; min-width: 7.5rem; }
.twt .twv .meta { font-size: 12px; }
