/* Layout: profession rail on the left, recipe-by-character ledger on the right; the rail becomes a scrolling tab strip on phones. */
:root {
  --bg: #eceff2;
  --panel: #ffffff;
  --panel-2: #f3f5f8;
  --line: #cdd4db;
  --ink: #18212b;
  --ink-2: #556170;
  --gold: #a87800;
  --gold-fill: #efbf2c;
  --gold-ink: #1d1600;
  --focus: #2a6fdb;
  --note-bg: #fff4d6;
  --note-ink: #5b4300;
  --f-display: 'Quattrocento', Georgia, serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151a;
    --panel: #181e25;
    --panel-2: #1f2630;
    --line: #2c3541;
    --ink: #e7eaef;
    --ink-2: #9aa6b4;
    --gold: #e8b930;
    --gold-fill: #e8b930;
    --gold-ink: #1d1600;
    --focus: #7db2ff;
    --note-bg: #2b2410;
    --note-ink: #e9d49a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11151a;
  --panel: #181e25;
  --panel-2: #1f2630;
  --line: #2c3541;
  --ink: #e7eaef;
  --ink-2: #9aa6b4;
  --gold: #e8b930;
  --gold-fill: #e8b930;
  --gold-ink: #1d1600;
  --focus: #7db2ff;
  --note-bg: #2b2410;
  --note-ink: #e9d49a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Panels set their own display, which would otherwise beat the hidden attribute and leave empty boxes on the page. */
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  margin: 0;
  padding-bottom: 48px;
}
.wrap { max-width: 1440px; margin-inline: auto; display: grid; gap: 18px; padding: 20px 16px 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 7px 14px; cursor: pointer; min-height: 38px;
}
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); font-weight: 600; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding-inline: 8px; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); border-color: var(--line); }

.note {
  background: var(--note-bg); color: var(--note-ink); padding: 10px 14px; border-radius: 4px;
  font-size: 14px;
}



.main { min-width: 0; display: grid; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: end; justify-content: space-between; }
.toolbar .meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.controls select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; min-height: 36px;
}
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.pill {
  display: inline-block; font-size: 12px; font-family: var(--f-mono); padding: 1px 8px; border-radius: 99px;
  border: 1px solid var(--gold); color: var(--gold); vertical-align: middle; margin-left: 8px;
}

.ledger-wrap {
  overflow: auto; max-height: min(72vh, 780px); background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px;
}
table.ledger { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.ledger th, .ledger td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: center; vertical-align: middle; }
.ledger thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2); vertical-align: bottom;
  min-width: 96px; max-width: 120px; font-weight: 400;
}
.ledger tbody tr:last-child td, .ledger tbody tr:last-child th { border-bottom: 0; }
.ledger .rowhead {
  position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left;
  min-width: 190px; max-width: 260px; border-right: 1px solid var(--line); font-weight: 400;
}
.ledger thead .rowhead { z-index: 3; background: var(--panel-2); font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.ledger .rname { font-family: var(--f-display); font-size: 16px; }
.ledger .rsub { display: block; font-size: 12px; color: var(--ink-2); }
.ledger tr.gap .rname { color: var(--ink-2); }
.ledger .num { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.ch { display: grid; gap: 2px; justify-items: center; }
.ch-name { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.ch-skill { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.ch-spec { font-size: 11px; color: var(--ink-2); line-height: 1.2; }
.ch.mine .ch-name::after { content: 'you'; font-size: 10px; font-weight: 400; color: var(--gold); border: 1px solid var(--gold); border-radius: 99px; padding: 0 5px; }
.dot { width: 9px; height: 9px; flex: none; border-radius: 2px; outline: 1px solid var(--line); }
/* The dungeon journal's map pins are SVG circles with class "dot"; the guild colour-dot outline above drew a square around them. */
.dj-svg .dot { outline: 0; }

.tick { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; cursor: pointer; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.box {
  width: 22px; height: 22px; border: 1.5px solid var(--ink-2); border-radius: 3px; display: grid; place-items: center;
  background: transparent;
}
.box.static { border-color: var(--line); }
.box.on { background: var(--gold-fill); border-color: var(--gold-fill); }
.box.on::after {
  content: ''; width: 6px; height: 11px; border: solid var(--gold-ink); border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.tick input:checked + .box { background: var(--gold-fill); border-color: var(--gold-fill); }
.tick input:checked + .box::after {
  content: ''; width: 6px; height: 11px; border: solid var(--gold-ink); border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.tick input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }

.addrec { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addrec input, .mf input, .mf select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; min-height: 36px;
}
.addrec input { flex: 1 1 220px; min-width: 0; }
.import { display: grid; gap: 8px; }
.import p { margin: 0; color: var(--ink-2); font-size: 14px; }
.import textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; font-family: var(--f-mono); font-size: 13px; resize: vertical;
}
.import .btn { justify-self: start; }

:root { --tip-bg: #0f141a; --tip-fg: #e9edf2; --tip-mute: #98a4b2; --tip-line: #566271; --tip-gold: #f2c94c; }
.tip {
  position: fixed; left: 0; top: 0; z-index: 30; display: grid; gap: 2px; pointer-events: none;
  width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 9px 12px;
  background: var(--tip-bg); color: var(--tip-fg); border: 1px solid var(--tip-line); border-radius: 4px;
  font-size: 13px; line-height: 1.4; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.tip-title { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--tip-gold); overflow-wrap: anywhere; }
.tip-line { color: var(--tip-mute); }
.tip-head { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--tip-line); }
.tip-who { display: flex; gap: 6px; align-items: center; }
.tip-skill { margin-left: auto; padding-left: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--tip-mute); }
.tip-foot { margin-top: 6px; font-size: 12px; }
.tip.item { background: #0a1020; border-color: #34436a; max-width: min(330px, calc(100vw - 16px)); font-size: 14px; }
.tip-guild { display: grid; gap: 2px; }
.tip-guild.sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tip-line); font-size: 13px; }
.tip-guild.sep .tip-head { margin-top: 4px; padding-top: 0; border-top: 0; }
.tip-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.q-poor { color: #9d9d9d; } .q-common { color: #ffffff; } .q-uncommon { color: #1eff00; }
.q-rare { color: #4aa9ff; } .q-epic { color: #c566ff; } .q-legendary { color: #ff8000; }
.tip-il, .tip-flavor, .c-g { color: #ffd100; }
.tip-row { display: flex; justify-content: space-between; gap: 24px; }
.tip-eff { color: #1eff00; }
.tip-flavor { font-style: italic; }
.c-s { color: #c7c7cf; } .c-c { color: #eda55f; }
.tip-new { margin-top: 6px; color: #3ee0b0; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
[data-rid] { cursor: help; }
.ext {
  display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 3px; color: var(--focus);
  font-family: var(--f-mono); font-size: 13px; line-height: 1.3; text-decoration: none; cursor: pointer;
}
.ext:hover { text-decoration: underline; }
.foot { margin: 0; color: var(--ink-2); font-size: 13px; }

.results { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.res { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 4px 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res .rname { font-family: var(--f-display); font-size: 17px; }
.res .rsub { display: block; font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px 2px 8px; font-size: 14px; }
.chip .ch-skill { margin-left: 2px; }
.none { color: var(--ink-2); font-size: 14px; }
.empty { padding: 28px 16px; color: var(--ink-2); text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }

.manage { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 16px; }
.manage > p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.mchar { border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: grid; gap: 12px; }
.mf { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; }
.mf label { display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.mf input[type="number"] { width: 84px; }
.mprof { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.mprof .pname { font-family: var(--f-display); font-weight: 700; min-width: 120px; padding-bottom: 6px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 4px; font-size: 14px; z-index: 20; max-width: calc(100vw - 32px);
}
.save-state { font-size: 13px; color: var(--ink-2); min-height: 20px; }

/* Header buttons, the addon and sheet blocks, spec labels */
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mblock { border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: grid; gap: 10px; background: var(--panel-2); }
.mblock p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 75ch; }
.mblock textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; font-family: var(--f-mono); font-size: 13px; resize: vertical;
}
.mblock .meta, .manage .meta { color: var(--ink-2); font-size: 13px; margin: 0; }
.preview { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.warn { color: #a3261a; }
.sheet-item { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.sheet-item select, .filepick input { max-width: 100%; }
.sheet-item summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.filepick { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.src { font-size: 12px; color: var(--ink-2); padding-bottom: 8px; }
.tag-sel {
  display: block; margin-top: 4px; font-size: 12px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px;
}
.ch.sheet .ch-name { font-style: italic; font-weight: 400; }
.chip.sheet { border-style: dashed; }
.chip .ch-spec { font-size: 12px; }
.offscreen { position: fixed; left: -9999px; top: 0; }

@media (max-width: 760px) {
  .res { grid-template-columns: minmax(0, 1fr); }
  .ledger .rowhead { min-width: 150px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .rail button { transition: border-color .12s, background-color .12s; }
}

/* Sign-in / join screen and the signed-in label (backend.js) */
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(24, 33, 43, .72);
}
.gate-box {
  width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px 24px; display: grid; gap: 14px;
}
.gate-box h2 { margin: 0; font-family: var(--f-display); font-size: 26px; }
.gate-box p { margin: 0; color: var(--ink-2); }
.gate-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-row input { flex: 1 1 160px; min-width: 0; }
.gate-err { color: #a3261a; min-height: 1.4em; }
.gate-box p.gate-note { font-size: 12.5px; line-height: 1.45; opacity: .8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .warn, :root:not([data-theme="light"]) .gate-err { color: #ff8a7a; } }
:root[data-theme="dark"] .warn, :root[data-theme="dark"] .gate-err { color: #ff8a7a; }


/* Quality dots, reagent lines, profession filter (2026-10-13 polish) */
.qdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: currentColor; outline: 1px solid rgba(0, 0, 0, .25); }
.qdot.q-common { color: #b9bec5; }
.ledger .rreag, .res .rreag { display: block; font-size: 12px; color: var(--ink-2); max-width: 34ch; line-height: 1.35; margin-top: 2px; }
.find { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; min-height: 36px; width: 15em; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tip-reag { color: var(--tip-fg); }
.tip-mute { color: var(--tip-mute); }
.su-orange { color: #ff8040; } .su-yellow { color: #ffff00; } .su-green { color: #40bf40; } .su-grey { color: #9d9d9d; }
@media (max-width: 760px) { .find { width: 100%; } .controls > label:first-child { flex: 1 1 100%; } }

/* ---------- 2026-10-13 redesign: app bar, profession cards, recipe panel ---------- */
:root { --bar-bg: #141a22; --bar-ink: #eef1f5; --bar-mute: #9aa6b4; --bar-line: #2a3340; }
.appbar { background: var(--bar-bg); color: var(--bar-ink); border-bottom: 2px solid var(--gold-fill); position: sticky; top: 0; z-index: 25; }
.appbar-in { max-width: 1440px; margin-inline: auto; padding: 10px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 6px;
  background: linear-gradient(145deg, #f3cf58, #b88a10); color: #1d1600; font: 700 20px/1 var(--f-display);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-size: 19px; }
.brand-text small { color: var(--bar-mute); font-size: 12px; }
.appbar .finder { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.appbar .finder input {
  width: 100%; font-size: 15px; padding: 9px 36px 9px 14px; border-radius: 6px;
  background: #0c1117; color: var(--bar-ink); border: 1px solid var(--bar-line);
}
.appbar .finder input::placeholder { color: var(--bar-mute); }
.appbar .finder input:focus { border-color: var(--gold-fill); outline: none; box-shadow: 0 0 0 3px rgba(239, 191, 44, .25); }
.finder-key {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 12px var(--f-mono); color: var(--bar-mute); border: 1px solid var(--bar-line); border-radius: 3px; padding: 0 5px;
}
.appbar .finder input:not(:placeholder-shown) + .finder-key { display: none; }
.appbar .top-actions { justify-content: end; }
.appbar .btn.ghost { background: transparent; color: var(--bar-ink); border-color: var(--bar-line); }
.appbar .btn.ghost:hover:not(:disabled) { border-color: var(--bar-mute); }
.appbar .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bar-mute); grid-column: 1 / -1; justify-self: end; margin-top: -4px; }
.appbar .who .btn { background: transparent; color: var(--bar-ink); border-color: var(--bar-line); min-height: 30px; padding: 3px 10px; }

/* Profession cards */
.profbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pcard {
  display: flex; gap: 12px; align-items: center; text-align: left; cursor: pointer; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); position: relative;
}
.pcard:hover { border-color: var(--ink-2); }
.pcard[aria-current="true"] { border-color: var(--gold-fill); box-shadow: 0 0 0 1px var(--gold-fill), 0 4px 14px rgba(0, 0, 0, .08); }
.pmark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px;
  font: 700 15px/1 var(--f-display); color: #fff; background: var(--pc, #5b6675);
}
.p-alchemy { --pc: #2f8f5b; } .p-blacksmithing { --pc: #6b7280; } .p-cooking { --pc: #c2621d; } .p-enchanting { --pc: #7c4dcc; }
.p-engineering { --pc: #b08a12; } .p-first-aid { --pc: #c0392b; } .p-leatherworking { --pc: #8a5a2b; } .p-tailoring { --pc: #2f6fb5; }
.pbody { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pname { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.pstat { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar { height: 5px; border-radius: 3px; background: var(--panel-2); outline: 1px solid var(--line); overflow: hidden; margin: 3px 0 1px; }
.pbar > span { display: block; height: 100%; background: var(--pc, var(--gold-fill)); }

/* Two-column body: ledger + recipe panel */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail {
  position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; align-content: start;
}
.detail:focus { outline: none; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dkicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
.dclose { min-height: 30px; padding: 2px 8px; }
.dtitle { font-size: 24px; }
.dcard {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.4;
  background: #0a1020; color: var(--tip-fg); border: 1px solid #34436a;
}
.dcard .tip-name { font-size: 17px; }
.dfacts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.dfacts dt { color: var(--ink-2); }
.dfacts dd { margin: 0; font-weight: 600; display: grid; gap: 4px; }
.su-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; max-width: 180px; }
.su-o { background: #ff8040; } .su-y { background: #e6c800; } .su-g { background: #40bf40; }
.su-text { font-weight: 400; font-size: 12px; color: var(--ink-2); }
.dhead { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-top: 4px; }
.dreag, .dwho { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dreag li { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; background: var(--panel-2); border-radius: 4px; }
.dcount { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); min-width: 2.6em; text-align: right; }
.dwho li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.dwho .ch-skill { margin-left: auto; }
.dlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.dlinks a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.dhint { margin: 0; color: var(--ink-2); font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--focus); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: transparent; }
.linkish:hover { text-decoration-color: currentColor; }

/* Ledger polish */
.ledger-wrap { border-radius: 8px; max-height: calc(100vh - 230px); }
.ledger tbody tr { cursor: pointer; }
.ledger tbody tr:hover > * { background: var(--panel-2); }
.ledger tbody tr.sel > * { background: var(--note-bg); }
.ledger tbody tr.sel .rowhead { box-shadow: inset 3px 0 0 var(--gold-fill); }
.sk { display: inline-block; min-width: 3.2em; padding: 1px 6px; border-radius: 99px; font-family: var(--f-mono); font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.sk-none { color: var(--ink-2); }
.res { cursor: pointer; }
.res:hover { background: var(--panel-2); }
.res.sel { background: var(--note-bg); box-shadow: inset 3px 0 0 var(--gold-fill); }
.results, .empty, .manage { border-radius: 8px; }
.toolbar h2 { font-size: 26px; }

/* What's new */
.news .rel { border-top: 1px solid var(--line); padding-top: 10px; }
.news .rel:first-of-type { border-top: 0; padding-top: 0; }
.news summary { cursor: pointer; font-size: 15px; }
.news .relg h3 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 12px 0 4px; }
.news ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14px; max-width: 90ch; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pcard[aria-current="true"] { box-shadow: 0 0 0 1px var(--gold-fill); }
  :root:not([data-theme="light"]) .ledger tbody tr.sel > *, :root:not([data-theme="light"]) .res.sel { background: #2a2614; }
}
@media (max-width: 1180px) { .profbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pmark { display: none; } }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .detail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 26; max-height: 72vh; border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .3); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .detail:not(.open) { display: none; }
  .ledger-wrap { max-height: none; }
}
@media (max-width: 860px) {
  .appbar-in { grid-template-columns: 1fr auto; }
  .appbar .finder { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .brand-text small { display: none; }
  .appbar .top-actions { flex-wrap: nowrap; overflow-x: auto; }
  .profbar { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .pcard { flex: 0 0 auto; width: 172px; scroll-snap-align: start; padding: 10px 12px; }
}
@media (max-width: 560px) {
  .appbar .top-actions .btn { padding: 6px 10px; min-height: 34px; font-size: 14px; }
  .appbar-in { grid-template-columns: 1fr; }
  .appbar .top-actions { justify-content: start; }
  .toolbar h2 { font-size: 22px; }
}
.ledger th.num, .ledger td.num { width: 1%; white-space: nowrap; padding-inline: 14px; }
.dlinks a.btn { color: var(--ink); }
@media (max-width: 860px) { .pcard { width: 196px; } }
@media (max-width: 860px) { .appbar { position: static; } }
.detail { top: 100px; max-height: calc(100vh - 116px); }
@media (max-width: 1023px) { .detail { top: auto; max-height: 72vh; } }

/* ---------- 2026-10-13 planner views: tabs, shopping list, leveling, missing, requests ---------- */
.views { background: var(--panel); border-bottom: 1px solid var(--line); }
.views-in { max-width: 1440px; margin-inline: auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.vtab {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 11px 12px 9px; cursor: pointer; white-space: nowrap;
  color: var(--ink-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.vtab:hover { color: var(--ink); }
.vtab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold-fill); }
.vbadge { font: 600 11px/1 var(--f-mono); background: var(--gold-fill); color: var(--gold-ink); border-radius: 99px; padding: 3px 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.card h3 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.picks, .midl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.picks li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.picks li > span { flex: 1; min-width: 12em; }
.picks .rsub, .midl .rsub, .rlink + .rsub { display: inline; margin-left: 8px; font-size: 12px; color: var(--ink-2); }
.qty, .price, .rq-form input, .rq-form select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; min-height: 34px;
}
.qty { width: 5.2em; }
.price { width: 8em; font-family: var(--f-mono); font-size: 13px; }
table.mats { border-collapse: collapse; width: 100%; font-size: 14px; }
.mats th, .mats td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mats th { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.mats .num { text-align: right; font-family: var(--f-mono); width: 1%; white-space: nowrap; }
.total { margin: 0; }
.rlink { font-family: var(--f-display); font-size: 16px; color: var(--ink); }
.rlink:hover { color: var(--focus); }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.step { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.srange { font: 600 15px var(--f-mono); color: var(--gold); }
.sbody .rsub { display: block; margin: 2px 0 0; }
.step .rreag { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.sact { display: flex; gap: 8px; align-items: center; }
.stuck { padding: 12px 14px; border-radius: 8px; background: var(--note-bg); color: var(--note-ink); }
.btn.small { min-height: 30px; padding: 3px 10px; font-size: 13px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.res .chips .rreag { display: block; flex: 1 1 100%; font-size: 12px; color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; justify-self: start; flex-wrap: wrap; }
.seg button { background: var(--panel); border: 0; border-right: 1px solid var(--line); padding: 7px 14px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.seg button:last-child { border-right: 0; }
.seg button[aria-selected="true"] { background: var(--gold-fill); color: var(--gold-ink); }
.reqs { display: grid; gap: 8px; }
.req { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold-fill); border-radius: 8px; padding: 12px 14px; }
.req.st-claimed { border-left-color: var(--focus); }
.req.st-done, .req.st-cancelled { border-left-color: var(--line); opacity: .8; }
.rq-main { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.rq-main .rsub { display: block; font-size: 13px; color: var(--ink-2); }
.rq-badge { margin-left: 10px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.rq-note { font-size: 14px; background: var(--panel-2); border-radius: 4px; padding: 4px 8px; }
.rq-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-form .mf label.grow { flex: 1 1 220px; }
.rq-form .mf label.grow input { width: 100%; }
.dlinks .qty { width: 4.4em; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .sact { justify-content: space-between; }
}

/* ---------- BiS lists and guild profiles ---------- */
.shell.solo { grid-template-columns: minmax(0, 1fr); }
.shell.solo .detail { display: none; }
.main input[type="text"], .main input[type="number"], .main input[type="search"], .main select, .main textarea {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; min-height: 34px; font: inherit; max-width: 100%;
}
.main textarea { width: 100%; font-family: var(--f-mono); font-size: 13px; }
.mf label.grow { flex: 1 1 220px; }
.mf label.grow input { width: 100%; }
.sec { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 20px 0 8px; }
.sec-bar { align-items: center; margin-top: 12px; }
.sec-bar .sec { margin: 8px 0; }
.back { display: inline-block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin-bottom: 4px; }
.back:hover { color: var(--ink); text-decoration: underline; }
.dhint { color: var(--ink-2); font-size: 14px; }
.rsub { font-size: 13px; color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 10px 0; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.st-db { background: #e3f3e8; border-color: #9bd1ad; color: #1d5c34; }
.st-unconfirmed { background: #fff4d6; border-color: #e6c66e; color: #5b4300; }
.st-announced { background: #efe6ff; border-color: #c2a5f2; color: #4b2a8a; }
.st-unknown { background: transparent; border-style: dashed; color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-db { background: #173323; border-color: #2d6b44; color: #9fe0b5; }
  :root:not([data-theme="light"]) .st-unconfirmed { background: #2b2410; border-color: #6e5a1d; color: #e9d49a; }
  :root:not([data-theme="light"]) .st-announced { background: #261c3d; border-color: #5a4392; color: #d2bdfb; }
}
:root[data-theme="dark"] .st-db { background: #173323; border-color: #2d6b44; color: #9fe0b5; }
:root[data-theme="dark"] .st-unconfirmed { background: #2b2410; border-color: #6e5a1d; color: #e9d49a; }
:root[data-theme="dark"] .st-announced { background: #261c3d; border-color: #5a4392; color: #d2bdfb; }
.main select.st-sel { min-height: 26px; padding: 1px 6px; font-size: 12px; font-weight: 600; border-radius: 99px; }

.bcards, .gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bcard, .gcard { display: grid; gap: 4px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--cc, var(--gold-fill));
  border-radius: 8px; padding: 12px 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.bcard:hover, .gcard:hover { border-color: var(--ink-2); border-left-color: var(--cc, var(--gold-fill)); }
.bcard:focus-visible, .gcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bc-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.gc-top { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.bcard .pbar > span, .gcard .pbar > span, .bprog .pbar > span { background: var(--cc, var(--gold-fill)); }
.gcard .chips { margin-top: 4px; }
.chip.planned { border-style: dashed; background: transparent; }
.chip.none-yet { border-style: dashed; opacity: .75; }
.chip.pick { cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.chip.pick:hover { border-color: var(--ink-2); }
.main select.mini { min-height: 24px; padding: 0 4px; font-size: 12px; }

.title-in { font-family: var(--f-display); font-size: 24px; font-weight: 700; width: min(100%, 28em); }
.main input.title-in { padding: 2px 8px; }
.bprog { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: baseline; min-width: 180px; }
.bprog strong { font-family: var(--f-mono); font-size: 22px; }
.bprog .pbar { grid-column: 1 / -1; height: 8px; }
.bis-set { margin: 10px 0; }
.bis-wrap { margin-top: 8px; }
table.bis { width: 100%; border-collapse: collapse; background: var(--panel); }
table.bis th, table.bis td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.bis thead th { font-size: 12px; color: var(--ink-2); font-weight: 600; position: sticky; top: 0; background: var(--panel); }
table.bis .num { text-align: center; width: 1%; }
.bslot { white-space: nowrap; font-weight: 600; width: 1%; }
.bitem { min-width: 220px; }
.bitem .iname { font-weight: 600; text-decoration: none; margin-right: 4px; }
.bitem a.iname:hover { text-decoration: underline; }
.bitem .ph { font-style: italic; }
.bitem .note-in { margin-top: 6px; width: 100%; font-size: 13px; min-height: 30px; }
.bsrc { min-width: 180px; font-size: 13px; }
.bsrc .btn { margin-top: 4px; }
.bact { white-space: nowrap; width: 1%; }
tr.owned .bslot::after { content: ' ✓'; color: var(--gold); }
.bpick-row > td { background: var(--panel-2); }
.bpick { display: grid; gap: 14px; }
.bpick h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.bpick .find { width: 22em; margin-bottom: 8px; }
.bpick .mf input[type="text"] { flex: 1 1 200px; }
.bitem .iname.q-common, .bitem .iname.q-poor { color: var(--ink); }
.bitem .iname.q-uncommon { color: #1a8f00; } .bitem .iname.q-rare { color: #0063c7; } .bitem .iname.q-epic { color: #8a2ed6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bitem .iname.q-uncommon { color: #1eff00; } :root:not([data-theme="light"]) .bitem .iname.q-rare { color: #4aa9ff; } :root:not([data-theme="light"]) .bitem .iname.q-epic { color: #c566ff; } }

.cover th[scope="row"] a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cover th[scope="row"] a:hover { text-decoration: underline; }
.cover tr.gap th, .cover tr.gap td { background: var(--note-bg); }
.cover .chips { gap: 4px; }
.cover .chip { font-size: 12px; padding: 1px 8px; }
.pfields { display: grid; gap: 10px; }
.mlabel { font-size: 13px; color: var(--ink-2); align-self: center; }
.ptitle { font-size: 30px; }
.pnote { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.pprofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pprof { display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--pc, var(--gold-fill)); border-radius: 8px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
a.pprof:hover { border-color: var(--ink-2); border-top-color: var(--pc, var(--gold-fill)); }
.pprof .pname { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.pprof.planned { border-style: dashed; border-top-style: dashed; }
@media (max-width: 640px) {
  .title-in { font-size: 20px; }
  table.bis thead { display: none; }
  table.bis, table.bis tbody, table.bis tr, table.bis th, table.bis td { display: block; width: auto; }
  table.bis tr { border-bottom: 1px solid var(--line); padding: 6px 0; display: grid; grid-template-columns: 1fr auto; }
  table.bis th, table.bis td { border: 0; padding: 4px 10px; }
  table.bis .bslot { grid-column: 1; } table.bis .num { grid-column: 2; grid-row: 1; }
  table.bis .bitem, table.bis .bsrc, table.bis .bact { grid-column: 1 / -1; min-width: 0; }
  .bpick-row { display: block !important; } .bpick .find { width: 100%; }
}
.bitem a.iname { color: var(--ink); }

/* ---------- talent planner (inside a BiS list) ---------- */
.talents { margin-top: 18px; display: grid; gap: 8px; }
.talents .sec { margin: 0; }
.tal-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.tal-sum { margin: 0; color: var(--ink-2); }
.tal-sum strong { font-family: var(--f-mono); font-size: 20px; color: var(--ink); margin-right: 4px; }
.tal-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tal-tree { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 6px; min-width: 0; }
.tal-tree.on { border-color: var(--gold-fill); }
.tal-tree h4 { margin: 0 0 2px; font-family: var(--f-display); font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.tal-pts { font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); }
.tal-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; align-items: start; }
.tal-row > .tal { grid-column: 2; }
.tal-lv { grid-row: span 6; font: 11px/1.2 var(--f-mono); color: var(--ink-2); padding-top: 8px; }
.tal-row.locked .tal { opacity: .55; }
.tal { position: relative; display: flex; }
.tal-add {
  flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: var(--ink); font: inherit; font-size: 14px;
}
div.tal-add { cursor: default; }
button.tal-add:hover { border-color: var(--ink-2); }
.tal.has .tal-add { border-color: var(--gold-fill); background: var(--note-bg); }
.tal.max .tal-add { box-shadow: inset 3px 0 0 var(--gold-fill); }
.tal-n { font-weight: 600; overflow-wrap: anywhere; }
.tal-r { font: 12px var(--f-mono); color: var(--ink-2); align-self: center; }
.tal.has .tal-r { color: var(--ink); font-weight: 600; }
.tal-tag { grid-column: 1; justify-self: start; font-size: 11px; color: var(--gold); border: 1px solid currentColor; border-radius: 99px; padding: 0 6px; margin-top: 2px; }
.tal-d { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.tal-sub {
  position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); font: 600 14px/1 var(--f-body); padding: 0;
}
.tal-sub:hover { border-color: var(--ink-2); }
@media (max-width: 900px) { .tal-trees { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prices and profit ---------- */
.pimport textarea { width: 100%; font-family: var(--f-mono); font-size: 13px; }
.pimport h3 { margin: 0; }
table.profit tbody tr { cursor: pointer; }
table.profit tbody tr:hover > * { background: var(--panel-2); }
table.profit tbody tr.sel > * { background: var(--note-bg); }
table.profit th[scope="row"] { font-weight: 400; }
table.profit .rname { font-family: var(--f-display); font-size: 15px; }
table.profit thead th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
.gain { color: #1d7a3a; font-weight: 600; }
.loss { color: #a3261a; font-weight: 600; }
.psrc { font-size: 11px; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gain { color: #5fd38a; } :root:not([data-theme="light"]) .loss { color: #ff8a7a; } }
:root[data-theme="dark"] .gain { color: #5fd38a; } :root[data-theme="dark"] .loss { color: #ff8a7a; }

/* Racials, shown above the talent trees in a BiS list */
.racials { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.racials h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 17px; }
.racials .dhint { margin: 0; }
.rac-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.rac-list li { display: grid; gap: 1px; align-content: start; font-size: 13px; color: var(--ink-2); min-width: 0; }
.rac-list strong { color: var(--ink); font-size: 14px; }

/* Craft requests: game addon card (copy the board for the addon, import requests made in game) */
.rq-addon summary { cursor: pointer; list-style-position: inside; }
.rq-addon-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; margin-top: 10px; }
.rq-addon-in h4 { margin: 0 0 4px; font-size: 15px; }
.rq-addon-in .dhint { margin: 0 0 8px; }
.rq-addon-in textarea { width: 100%; min-height: 54px; font: 12px/1.4 var(--f-mono); margin-bottom: 8px; box-sizing: border-box; }

/* Races page: faction switch, race picker, then the chosen race with its classes and racials. */
.rc-crest { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 6px; }
.rc-notes { margin: 0; padding: 12px 16px 12px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); display: grid; gap: 4px; font-size: 14px; }
.rc-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rc-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.rc-card:hover { border-color: var(--ink-2); }
.rc-card[aria-current="true"] { border-color: var(--gold-fill); box-shadow: 0 0 0 1px var(--gold-fill); }
.rc-face { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; background: var(--panel-2); box-shadow: 0 0 0 2px var(--line); }
.rc-card[aria-current="true"] .rc-face { box-shadow: 0 0 0 2px var(--gold-fill); }
.rc-cn { display: grid; min-width: 0; line-height: 1.2; }
.rc-cn strong { font-family: var(--f-display); font-size: 17px; overflow-wrap: anywhere; }
.rc-cn small { color: var(--ink-2); font-size: 12.5px; }
.rc-detail { display: grid; gap: 12px; scroll-margin-top: 140px; }
.rc-ban { position: relative; display: flex; align-items: flex-end; gap: 18px; min-height: 260px; padding: 20px 24px; border-radius: 8px; overflow: hidden;
  background: #000 center 30% / cover no-repeat; box-shadow: inset 0 -140px 120px -40px rgba(0, 0, 0, .9); border: 1px solid var(--line); }
.rc-face.big { width: 92px; height: 92px; box-shadow: 0 0 0 3px var(--gold-fill), 0 8px 20px rgba(0, 0, 0, .6); }
.rc-bt .eyebrow { margin: 0 0 4px; color: #f0e4d4; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 4px #000; }
.rc-name { margin: 0; font-size: 44px; line-height: 1; color: #fff; text-shadow: 0 2px 10px #000; }
.rc-classes { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-class { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-weight: 600; }
.rc-class img { width: 28px; height: 28px; border-radius: 4px; }
.rc-class.new { border-color: var(--gold-fill); }
.rc-class em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); background: var(--gold-fill); padding: 1px 6px; border-radius: 3px; }
.rc-racials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rc-abil { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.rc-ai { width: 48px; height: 48px; border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--line); }
.rc-ab { min-width: 0; display: grid; gap: 4px; align-content: start; }
.rc-ah { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-ah strong { font-family: var(--f-display); font-size: 17px; }
.rc-meta { font-size: 12.5px; color: var(--ink-2); }
.rc-eff { margin: 2px 0 0; color: #ffd100; }
.rc-was, .rc-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.rc-classic summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.rc-classic p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.rc-upd { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.rc-upd li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.rc-upd time { grid-column: 2; }
.rc-upd time { color: var(--ink-2); font-size: 12px; }
.rc-uk { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 3px; background: var(--panel-2); }
.k-buff .rc-uk { background: #1f5d33; color: #b8f5c8; }
.k-nerf .rc-uk { background: #6b2418; color: #ffc9bd; }
.rc-st { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-2); }
.rc-st.st-new { background: #1f5d33; border-color: #2d7a47; color: #c8f7d4; }
.rc-st.st-modified, .rc-st.st-changed { background: #5a4310; border-color: #8a6a1d; color: #ffe39a; }
.rc-st.st-reported { background: #263c66; border-color: #3a5a95; color: #cfe0ff; }
.rc-st.st-removed { background: #4a1d1d; border-color: #7a3030; color: #ffc4c4; }
.rc-gone .rc-eff { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(255, 120, 120, .6); }
@media (max-width: 1180px) { .rc-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rc-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-racials { grid-template-columns: minmax(0, 1fr); }
  .rc-ban { min-height: 200px; padding: 14px; gap: 12px; }
  .rc-face.big { width: 64px; height: 64px; }
  .rc-name { font-size: 32px; }
}

/* Game icons: recipes, reagents, tooltips and profession pictures (files in icons/ and profs/) */
.ri { width: 24px; height: 24px; flex: none; border-radius: 4px; vertical-align: middle; margin-right: 8px; object-fit: cover;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, currentColor 70%, transparent); color: #9d9d9d; background: #111; }
.ri.sm { width: 20px; height: 20px; margin-right: 6px; }
.ri.q-common { color: #8a8a8a; } .ri.q-uncommon { color: #1eff00; } .ri.q-rare { color: #0070dd; } .ri.q-epic { color: #a335ee; } .ri.q-legendary { color: #ff8000; } .ri.q-poor { color: #5a5a5a; }
.tip-top { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.tip-icon { width: 40px; height: 40px; flex: none; border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255, 255, 255, .25); background: #111; }
.tip-src { color: #ffd100; }
.rsrc { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.dsrc { line-height: 1.4; }
.pmark.pic { overflow: hidden; }
.pmark.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Talent icons */
.tal-add.ic { grid-template-columns: 28px minmax(0, 1fr) auto; }
.tal-add.ic .tal-ic { grid-row: span 2; width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); align-self: start; }
.tal-row.locked .tal-ic { filter: grayscale(1); }
.tal-add.ic .tal-tag { grid-column: 2; }
.tal-add.ic .tal-d { grid-column: 2 / -1; }

/* Talents tab: class picker and level/race pickers above the planner */
.tal-cls { flex-wrap: wrap; margin: 0 0 12px; max-width: 100%; }
.tal-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 8px; }
.tal-opts label { display: inline-flex; align-items: center; gap: 8px; }
