@charset "UTF-8";
/* =====================================================================
   Walkirya OS — game reference skin (/db and every subpage, 6 languages)
   Explorer list views, property sheets, wizard steps, Explorer tree.
   Scope: everything sits under body.os-site .db-page (GameDbRenderer pages
   and the foreign landings /en /pt … which reuse the db-* blocks).
   Uses only the portal-os.css tokens. Every selector is one class deeper
   than portal-os.css, so it wins whatever order the skins are linked in.
   Optional Java hooks styled here (none are required):
     td/th.num                     numeric column  -> right, PT Mono
     td.db-ch[data-tier] --p:0..100 chance meter   -> rare|mid|common|adena
   ===================================================================== */

body.os-site .db-page {
  --db-t: .16s;                       /* hover / focus transition */
  --db-sticky-top: 53px;              /* taskbar: 52px + 1px border */
  --db-pane: var(--os-0);             /* list / sheet background */
  --db-zebra: color-mix(in srgb, var(--os-1) 65%, var(--os-2));
  --db-hover: color-mix(in srgb, var(--os-red) 11%, var(--os-0));
  --db-head: linear-gradient(var(--os-4), var(--os-3));
  --db-gloss: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%);
  --db-tree-row: 30px;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- headings & text ---------- */
body.os-site .db-page h1 {
  font-size: clamp(25px, 3.1vw, 36px); line-height: 1.15; margin: 4px 0 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
body.os-site .db-page h1::after {
  content: ''; display: block; width: 46px; height: 3px; margin-top: 12px; border-radius: 2px;
  background: var(--os-red); box-shadow: 0 0 10px var(--os-red-glow);
}
body.os-site .db-page .db-lead { color: var(--os-text-2); font-size: 15.5px; line-height: 1.65; max-width: 880px; margin: 0 0 18px; }

/* section titles = dialog group boxes: red marker, label, rule to the right */
body.os-site .db-page .db-h2,
body.os-site .db-page > h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 32px 0 12px;
  font: italic 700 clamp(17px, 1.7vw, 20px)/1.25 var(--os-logo); color: var(--os-text);
}
body.os-site .db-page .db-h2::before,
body.os-site .db-page > h2::before {
  content: ''; flex: none; width: 3px; height: 1.05em; border-radius: 2px;
  background: var(--os-red); box-shadow: 0 0 10px var(--os-red-glow);
}
body.os-site .db-page .db-h2::after,
body.os-site .db-page > h2::after {
  content: ''; flex: 1 1 40px; min-width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--os-line-2), transparent);
}
body.os-site .db-page h3 { font-family: var(--os-ui); font-weight: 700; color: var(--os-text); }

/* bullet lists: small red diamonds */
body.os-site .db-page .db-ul { list-style: none; margin: 0 0 8px; padding: 0; line-height: 1.7; }
body.os-site .db-page .db-ul > li { position: relative; padding: 3px 0 3px 22px; color: var(--os-text-2); }
body.os-site .db-page .db-ul > li::before {
  content: ''; position: absolute; left: 5px; top: calc(3px + .8em); width: 6px; height: 6px; margin-top: -3px;
  background: var(--os-red); transform: rotate(45deg); box-shadow: 0 0 6px var(--os-red-glow);
}

body.os-site .db-page :is(a, summary):focus-visible { outline: 2px solid var(--os-blue); outline-offset: 2px; border-radius: 3px; }

/* ---------- address bar (breadcrumbs) ---------- */
body.os-site .db-page > .breadcrumbs {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1px;
  min-height: 36px; margin: 0 0 18px; padding: 4px 8px 4px 36px;
  background: var(--os-black); border: 1px solid var(--os-black); border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px var(--os-line-2);
  color: var(--os-muted); font-size: 13px; line-height: 1.3;
}
body.os-site .db-page > .breadcrumbs::before { /* folder */
  content: ''; position: absolute; left: 11px; top: 9px; width: 17px; height: 17px;
  background: var(--os-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5.5A1.5 1.5 0 0 1 3.5 4h5l2 2h10A1.5 1.5 0 0 1 22 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-17A1.5 1.5 0 0 1 2 18.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5.5A1.5 1.5 0 0 1 3.5 4h5l2 2h10A1.5 1.5 0 0 1 22 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-17A1.5 1.5 0 0 1 2 18.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.os-site .db-page > .breadcrumbs > a,
body.os-site .db-page > .breadcrumbs > span:nth-child(odd) {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 7px;
  border: 1px solid transparent; border-radius: 3px; color: var(--os-text-2);
}
body.os-site .db-page > .breadcrumbs > a { transition: color var(--db-t), background-color var(--db-t), border-color var(--db-t); }
body.os-site .db-page > .breadcrumbs > a:hover {
  color: var(--os-text); border-color: var(--os-line-2);
  background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
}
body.os-site .db-page > .breadcrumbs > span:nth-child(even) { /* the "/" separators become ▸ */
  display: inline-flex; align-items: center; justify-content: center; width: 12px; font-size: 0;
}
body.os-site .db-page > .breadcrumbs > span:nth-child(even)::before {
  content: ''; border-left: 4px solid var(--os-muted); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
body.os-site .db-page > .breadcrumbs > span:last-child { color: var(--os-text); font-weight: 700; }

/* ---------- search box ---------- */
body.os-site .db-page .db-search { position: relative; gap: 8px; margin: 4px 0 8px; }
body.os-site .db-page .db-search::before { /* magnifier inside the field */
  content: ''; position: absolute; left: 13px; top: 13px; z-index: 1; width: 18px; height: 18px; pointer-events: none;
  background: var(--os-muted); transition: background-color var(--db-t);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M10 3a7 7 0 1 0 4.2 12.6l5.1 5.1 1.4-1.4-5.1-5.1A7 7 0 0 0 10 3zm0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M10 3a7 7 0 1 0 4.2 12.6l5.1 5.1 1.4-1.4-5.1-5.1A7 7 0 0 0 10 3zm0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.os-site .db-page .db-search:focus-within::before { background: var(--os-red-hi); }
body.os-site .db-page .db-search .input { height: 44px; padding: 0 14px 0 40px; font-size: 15px; background: var(--os-black); }
body.os-site .db-page .db-search .input::placeholder { color: var(--os-muted); font-style: italic; opacity: 1; }
body.os-site .db-page .db-search .btn { height: 44px; min-width: 104px; padding: 0 22px; }

/* ---------- hub tiles (/db home): Explorer "Tiles" view ---------- */
body.os-site .db-page .grid-3 { gap: 14px; }
body.os-site .db-page .db-hub {
  --db-hub-c: var(--os-red);
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start;
  padding: 16px; color: var(--os-text);
}
body.os-site .db-page .db-hub::before,
body.os-site .db-page .db-hub::after { content: ''; grid-area: 1 / 1 / 3 / 2; transition: transform .25s var(--os-ease), box-shadow var(--db-t); }
body.os-site .db-page .db-hub::before { /* glossy icon tile */
  width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--os-black);
  background: linear-gradient(rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 50%), linear-gradient(var(--os-4), var(--os-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px var(--os-line), 0 6px 14px rgba(0, 0, 0, .5);
}
body.os-site .db-page .db-hub::after { /* glyph */
  justify-self: center; align-self: start; width: 28px; height: 28px; margin-top: 12px;
  background: var(--db-hub-c);
  -webkit-mask: var(--db-hub-i) center / contain no-repeat;
  mask: var(--db-hub-i) center / contain no-repeat;
}
body.os-site .db-page .db-hub:hover::before { transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px var(--os-line-2), 0 0 20px color-mix(in srgb, var(--db-hub-c) 45%, transparent); }
body.os-site .db-page .db-hub:hover::after { transform: scale(1.1); }
body.os-site .db-page .db-hub > h3 { grid-column: 2; margin: 3px 0 0; font: 700 16.5px/1.25 var(--os-logo); color: var(--os-text); }
body.os-site .db-page .db-hub > p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--os-text-2); }
/* one glyph per hub (href ends the same in every language) */
body.os-site .db-page .db-hub[href$='/db/monsters'] { /* skull */
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2C7.58 2 4 5.36 4 9.5c0 2.47 1.27 4.66 3.25 6.03V19c0 .55.45 1 1 1H10v-2.2h1.25V20h1.5v-2.2H14V20h1.75c.55 0 1-.45 1-1v-3.47C18.73 14.16 20 11.97 20 9.5 20 5.36 16.42 2 12 2zM8.75 8.6a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm6.5 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM12 12.9l1.2 2.3h-2.4z'/%3E%3C/svg%3E");
}
body.os-site .db-page .db-hub[href$='/db/raids'] { /* crown */
  --db-hub-c: var(--os-gold);
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7.5l4.6 3.6L12 4.5l4.4 6.6L21 7.5l-1.9 9.5H4.9zM4.9 18.5h14.2V21H4.9z'/%3E%3C/svg%3E");
}
body.os-site .db-page .db-hub[href$='/db/quests'] { /* quest mark */
  --db-hub-c: var(--os-blue);
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 2.5h4.8l-1 12.5h-2.8zM12 16.6a2.45 2.45 0 1 1 0 4.9 2.45 2.45 0 0 1 0-4.9z'/%3E%3C/svg%3E");
}
body.os-site .db-page .db-hub[href$='/db/classes'] { /* class tree */
  --db-hub-c: var(--os-text-2);
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v5H9zM11 7h2v3h-2zM4 10h16v2H4zM4 12h2v3H4zM11 12h2v3h-2zM18 12h2v3h-2zM2 15h6v6H2zM9 15h6v6H9zM16 15h6v6h-6z'/%3E%3C/svg%3E");
}
body.os-site .db-page .db-hub[href$='/db/dyes'] { /* dye drop */
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.5c-3.9 5.1-6.5 8.7-6.5 12.1a6.5 6.5 0 0 0 13 0c0-3.4-2.6-7-6.5-12.1zM9.2 14.3c.3 1.6 1.2 2.6 2.6 3.1l-.5 1.4c-2-.7-3.2-2.2-3.6-4.3z'/%3E%3C/svg%3E");
}
body.os-site .db-page .db-hub[href$='/db/zones'] { /* map pin */
  --db-hub-c: var(--os-green);
  --db-hub-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 4.4a2.6 2.6 0 1 1 0 5.2 2.6 2.6 0 0 1 0-5.2z'/%3E%3C/svg%3E");
}

/* ---------- chips = OS tags / toolbar buttons ---------- */
body.os-site .db-page .db-chips { gap: 6px; margin: 4px 0 8px; }
body.os-site .db-page .db-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
  border-radius: 3px; border: 1px solid var(--os-black);
  background: var(--db-gloss), linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--os-line), 0 2px 4px rgba(0, 0, 0, .4);
  color: var(--os-text-2); font: 700 13px/1.2 var(--os-ui);
  transition: color var(--db-t), box-shadow var(--db-t), transform var(--db-t);
}
body.os-site .db-page .db-chip:hover {
  color: var(--os-text);
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 55%), linear-gradient(var(--os-4), var(--os-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px color-mix(in srgb, var(--os-red) 50%, transparent), 0 0 12px color-mix(in srgb, var(--os-red) 20%, transparent);
}
body.os-site .db-page .db-chip:active { transform: translateY(1px); }
body.os-site .db-page .db-chip.active { /* the current level bracket */
  color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
  background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 50%), linear-gradient(color-mix(in srgb, var(--os-red) 55%, var(--os-red-lo)), var(--os-red-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 14px var(--os-red-glow);
}

/* badges: compact; item grades in gold, boss markers stay red */
body.os-site .db-page .badge { padding: 1px 7px; border-radius: 3px; font-size: 11px; line-height: 1.5; vertical-align: 1px; text-indent: 0; white-space: nowrap; }
body.os-site .db-page :is(.db-tags, tr:has(.db-icon)) .badge-gold {
  background: color-mix(in srgb, var(--os-gold) 12%, transparent);
  border-color: color-mix(in srgb, var(--os-gold) 45%, transparent); color: var(--os-gold);
}

/* ---------- list view (every table): Explorer "Details" ---------- */
body.os-site .db-page .table-wrap {
  position: relative; counter-reset: db-rows;
  background: var(--db-pane); border: 1px solid var(--os-black); border-radius: 4px;
  box-shadow: 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
  overflow-x: auto; overscroll-behavior-x: contain;
}
body.os-site .db-page .table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
body.os-site .db-page .table-wrap th {
  padding: 9px 12px; text-align: left; vertical-align: bottom; white-space: nowrap;
  background: var(--db-gloss), var(--db-head);
  color: var(--os-text-2); font: 700 12.5px/1.25 var(--os-ui); letter-spacing: .02em; text-transform: none;
  border-bottom: 1px solid var(--os-black); border-right: 1px solid var(--os-black);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.os-site .db-page .table-wrap th:last-child { border-right: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
body.os-site .db-page .table-wrap td {
  padding: 8px 12px; vertical-align: middle; color: var(--os-text-2);
  background: var(--db-row, var(--db-pane)); border-bottom: 1px solid var(--os-line);
  font-family: var(--db-mono, var(--os-ui)); font-size: var(--db-mono-fs, 14px); font-variant-numeric: tabular-nums;
  transition: background-color var(--db-t), box-shadow var(--db-t);
}
body.os-site .db-page .table-wrap tbody tr { counter-increment: db-rows; }
body.os-site .db-page .table-wrap tbody tr:nth-child(even) { --db-row: var(--db-zebra); }
body.os-site .db-page .table-wrap tbody tr:is(:hover, :focus-within) { --db-row: var(--db-hover); --db-mark: 3px; }
body.os-site .db-page .table-wrap tbody tr:last-child > td { border-bottom: 0; }
body.os-site .db-page .table-wrap td:first-child { /* name column: bright, red edge on hover */
  color: var(--os-text);
  box-shadow: inset var(--db-mark, 0px) 0 0 var(--os-red), var(--db-edge, 0 0 0 transparent);
}
body.os-site .db-page .table-wrap td a { color: var(--os-blue); }
body.os-site .db-page .table-wrap tr:is(:hover, :focus-within) td a { color: color-mix(in srgb, var(--os-blue) 55%, #fff); }
body.os-site .db-page .table-wrap td > .muted { color: var(--os-muted); }
body.os-site .db-page .table-wrap td:has(> .db-icon:first-child) { /* icon + name: wrapped lines stay under the name */
  padding-left: 44px; text-indent: -32px;
}

/* status bar under every list: "Элементов: 258" */
body.os-site .db-page .table-wrap::after {
  content: 'Items: ' counter(db-rows);
  position: sticky; left: 0; display: block; padding: 5px 12px;
  background: linear-gradient(var(--os-2), var(--os-1)); border-top: 1px solid var(--os-black); box-shadow: inset 0 1px 0 var(--os-line);
  color: var(--os-muted); font: 12px/1.4 var(--os-ui);
}
body.os-site .db-page .table-wrap:lang(ru)::after { content: 'Элементов: ' counter(db-rows); }
body.os-site .db-page .table-wrap:lang(pt)::after { content: 'Itens: ' counter(db-rows); }
body.os-site .db-page .table-wrap:lang(es)::after { content: 'Elementos: ' counter(db-rows); }
body.os-site .db-page .table-wrap:lang(el)::after { content: 'Στοιχεία: ' counter(db-rows); }
body.os-site .db-page .table-wrap:lang(pl)::after { content: 'Elementy: ' counter(db-rows); }

/* sticky header row on laptops/desktops (taskbar is one line there).
   The window and the list must clip, not scroll, for sticky to follow the page. */
@media (min-width: 1101px) {
  body.os-site .os-win:has(> .os-wb > .db-page) { overflow: clip; }
  body.os-site .db-page .table-wrap { overflow: hidden; overflow: clip; }
  body.os-site .db-page .table-wrap thead th {
    position: sticky; top: var(--db-sticky-top); z-index: 2;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 8px -4px rgba(0, 0, 0, .7);
  }
  body.os-site .db-page .table-wrap thead th:last-child { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 8px -4px rgba(0, 0, 0, .7); }
}

/* ---------- column roles ----------
   The markup has no column classes, so tables are recognised by what their first cells link to:
   monster lists (/db/npc/), drops on a monster page (/db/item/), quests, zones, dyes (icon, no link), search. */

/* numbers: right-aligned PT Mono (headers right-aligned too) */
body.os-site .db-page .table-wrap :is(th, td).num,
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']) :is(th, td):nth-child(2),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:nth-child(6)) :is(th, td):nth-child(4),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:last-child:nth-child(4)) :is(th, td):nth-child(4),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:last-child:nth-child(5)):has(> tbody > tr > td:nth-child(3) > a) :is(th, td):nth-child(n+4),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:last-child:nth-child(5)):not(:has(> tbody > tr > td:nth-child(3) > a)) :is(th, td):nth-child(3),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/item/']) :is(th, td):is(:nth-child(2), :nth-child(3)),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a:is([href*='/db/quest/'], [href*='/db/zone/'])) :is(th, td):nth-child(4),
body.os-site .db-page .table-wrap table:has(> thead > tr > th:last-child:nth-child(3)):has(> tbody > tr > td:nth-child(2) > a[href*='/db/zone/']) :is(th, td):nth-child(3),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > .db-icon):not(:has(> tbody > tr > td:first-child > a)) :is(th, td):nth-child(4) {
  --db-mono: var(--os-mono); --db-mono-fs: 13px;
  text-align: right; white-space: nowrap;
}
/* level ranges ("20–30 ур.", "с 76 ур.") never break */
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a:is([href*='/db/quest/'], [href*='/db/zone/'])) td:nth-child(2),
body.os-site .db-page .table-wrap table:has(> thead > tr > th:last-child:nth-child(3)):has(> tbody > tr > td:nth-child(2) > a[href*='/db/zone/']) td:first-child,
body.os-site .db-page .table-wrap table:has(> thead > tr > th:last-child:nth-child(4)):has(> tbody > tr > td:nth-child(2) a) td:nth-child(3) {
  white-space: nowrap;
}
/* yes / — flags (aggro, spoil): centred */
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:nth-child(6)) :is(th, td):is(:nth-child(5), :nth-child(6)),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:last-child:nth-child(5)):not(:has(> tbody > tr > td:nth-child(3) > a)) :is(th, td):nth-child(4) {
  text-align: center;
}
/* search results: the "type" column is a quiet label */
body.os-site .db-page .table-wrap table:has(> thead > tr > th:last-child:nth-child(4)):has(> tbody > tr > td:nth-child(2) a) td:first-child {
  color: var(--os-muted); font-size: 12.5px;
}
/* chance = the number people look for: brighter than the rest */
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/item/']) td:nth-child(3),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > a[href*='/db/npc/']):has(> thead > tr > th:last-child:nth-child(5)):has(> tbody > tr > td:nth-child(3) > a) td:nth-child(5) {
  color: var(--os-text);
}
/* adena rows and dye fees in gold (adena selector must outrank the chance rule above) */
body.os-site .db-page .table-wrap table > tbody > tr:has(> td > img.db-icon[src*='etc_adena']) > td:is(:nth-child(2), :nth-child(3)),
body.os-site .db-page .table-wrap table:has(> tbody > tr > td:first-child > .db-icon):not(:has(> tbody > tr > td:first-child > a)) td:nth-child(3) {
  color: var(--os-gold);
}

/* optional chance meter: <td class='db-ch' data-tier='rare|mid|common|adena' style='--p:0..100'> */
body.os-site .db-page .table-wrap td.db-ch {
  --db-ch-c: var(--os-blue);
  position: relative; min-width: 7.5rem; padding-bottom: 13px; color: var(--db-ch-c);
  --db-mono: var(--os-mono); --db-mono-fs: 13px; text-align: right; white-space: nowrap;
}
body.os-site .db-page .table-wrap td.db-ch[data-tier='rare'] { --db-ch-c: var(--os-red-hi); }
body.os-site .db-page .table-wrap td.db-ch[data-tier='common'] { --db-ch-c: var(--os-green); }
body.os-site .db-page .table-wrap td.db-ch[data-tier='adena'] { --db-ch-c: var(--os-gold); }
body.os-site .db-page .table-wrap td.db-ch::before,
body.os-site .db-page .table-wrap td.db-ch::after { content: ''; position: absolute; left: 12px; bottom: 6px; height: 3px; border-radius: 2px; }
body.os-site .db-page .table-wrap td.db-ch::before { right: 12px; background: var(--os-line-2); }
body.os-site .db-page .table-wrap td.db-ch::after {
  width: calc((100% - 24px) * var(--p, 0) / 100); min-width: 2px;
  background: var(--db-ch-c); box-shadow: 0 0 6px color-mix(in srgb, var(--db-ch-c) 60%, transparent);
}

/* ---------- property sheet (.db-kv): Properties > Details ---------- */
body.os-site .db-page .db-kv {
  display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  background: var(--db-pane); border: 1px solid var(--os-black); border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
}
body.os-site .db-page .db-kv::before,
body.os-site .db-page .db-kv::after { /* column header: Property | Value */
  grid-row: 1; padding: 7px 12px;
  background: var(--db-gloss), var(--db-head); border-bottom: 1px solid var(--os-black);
  color: var(--os-text-2); font: 700 12px/1.25 var(--os-ui); letter-spacing: .02em;
}
body.os-site .db-page .db-kv::before { content: 'Property'; grid-column: 1; border-right: 1px solid var(--os-black); }
body.os-site .db-page .db-kv::after { content: 'Value'; grid-column: 2; }
body.os-site .db-page .db-kv:lang(ru)::before { content: 'Свойство'; }
body.os-site .db-page .db-kv:lang(ru)::after { content: 'Значение'; }
body.os-site .db-page .db-kv:lang(pt)::before { content: 'Propriedade'; }
body.os-site .db-page .db-kv:lang(pt)::after { content: 'Valor'; }
body.os-site .db-page .db-kv:lang(es)::before { content: 'Propiedad'; }
body.os-site .db-page .db-kv:lang(es)::after { content: 'Valor'; }
body.os-site .db-page .db-kv:lang(el)::before { content: 'Ιδιότητα'; }
body.os-site .db-page .db-kv:lang(el)::after { content: 'Τιμή'; }
body.os-site .db-page .db-kv:lang(pl)::before { content: 'Właściwość'; }
body.os-site .db-page .db-kv:lang(pl)::after { content: 'Wartość'; }
body.os-site .db-page .db-kv-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  padding: 0; gap: 0; border-bottom: 1px solid var(--os-line); font-size: 14px;
  transition: background-color var(--db-t);
}
body.os-site .db-page .db-kv-row:last-child { border-bottom: 0; }
body.os-site .db-page .db-kv-row > span {
  padding: 8px 12px; color: var(--os-muted); background: color-mix(in srgb, var(--os-1) 80%, transparent);
  border-right: 1px solid var(--os-line);
}
body.os-site .db-page .db-kv-row > b { padding: 8px 12px; font-weight: 700; text-align: left; color: var(--os-text); min-width: 0; }
body.os-site .db-page .db-kv-row > b .muted { color: var(--os-muted); font: 400 12.5px var(--os-mono); }
body.os-site .db-page .db-kv-row:hover { background: color-mix(in srgb, var(--os-red) 8%, transparent); }
body.os-site .db-page .db-kv-row:hover > span { color: var(--os-text-2); }
@supports (grid-template-columns: subgrid) {
  /* label column as wide as the longest label (capped), shared by every row */
  body.os-site .db-page .db-kv { grid-template-columns: fit-content(42%) minmax(0, 1fr); }
  body.os-site .db-page .db-kv-row { grid-template-columns: subgrid; }
  body.os-site .db-page .db-kv-row > span { min-width: 7.5em; }
}

/* NPC / zone page: properties and map side by side, tops aligned */
@media (min-width: 861px) {
  body.os-site .db-page .db-two > div > .db-h2:first-child { margin-top: 0; }
}

/* ---------- item header: big icon + name, like a Properties dialog ---------- */
body.os-site .db-page .db-item-head {
  gap: 18px; margin: 4px 0 18px; padding: 16px 18px;
  background: linear-gradient(var(--os-2), var(--os-1)); border: 1px solid var(--os-black); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--os-line);
}
body.os-site .db-page .db-item-head > div { min-width: 0; }
body.os-site .db-page .db-item-head h1 { margin: 0 0 10px; }
body.os-site .db-page .db-item-head h1::after { margin-top: 10px; }
body.os-site .db-page .db-item-head > .db-icon {
  flex: none; width: 64px; height: 64px; margin: 4px; border-radius: 6px;
  box-shadow: 0 0 0 3px var(--os-3), 0 0 0 4px var(--os-line-2), 0 10px 22px rgba(0, 0, 0, .6), 0 0 26px var(--os-red-glow);
}

/* item icons everywhere */
body.os-site .db-page .db-icon {
  border-radius: 3px; border: 1px solid var(--os-black); background: var(--os-2);
  box-shadow: 0 0 0 1px var(--os-line-2); margin-right: 3px; vertical-align: middle;
}
body.os-site .db-page .db-icon-empty { background: repeating-linear-gradient(135deg, var(--os-3) 0 3px, var(--os-2) 3px 6px); }

/* ---------- spawn map ---------- */
body.os-site .db-page .db-map {
  border: 1px solid var(--os-black); border-radius: 4px; isolation: isolate;
  box-shadow: 0 0 0 1px var(--os-line-2), 0 12px 28px rgba(0, 0, 0, .45);
}
body.os-site .db-page .db-map::after { /* viewer frame + vignette */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 60px rgba(0, 0, 0, .45);
}
body.os-site .db-page .db-pin {
  background: var(--os-red);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .45), 0 0 12px var(--os-red);
}
body.os-site .db-page .db-pin-n { /* quest steps: S, 1, 2 … */
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--os-gold) 55%, #fff), var(--os-gold) 55%, color-mix(in srgb, var(--os-gold) 65%, #000));
  color: var(--os-black); font: 700 12px/22px var(--os-mono);
  box-shadow: 0 0 0 2px var(--os-black), 0 0 0 3px rgba(255, 255, 255, .6), 0 3px 8px rgba(0, 0, 0, .5);
}

/* ---------- info boxes: notes and empty states ---------- */
body.os-site .db-page .db-note,
body.os-site .db-page > p.muted.mt-2 {
  position: relative; margin: 10px 0 0; padding: 8px 12px 8px 38px;
  font-size: 13px; line-height: 1.5; color: var(--os-text-2);
  background: color-mix(in srgb, var(--os-blue) 7%, var(--os-1));
  border: 1px solid color-mix(in srgb, var(--os-blue) 28%, transparent); border-left: 3px solid var(--os-blue); border-radius: 4px;
}
body.os-site .db-page > p.muted.mt-2 { margin-top: 16px; font-size: 14px; }
body.os-site .db-page .db-note::before,
body.os-site .db-page > p.muted.mt-2::before { /* (i) */
  content: 'i'; position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font: italic 700 12px/1 var(--os-ui);
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--os-blue) 55%, #fff), var(--os-blue) 55%, color-mix(in srgb, var(--os-blue) 55%, #000));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 8px color-mix(in srgb, var(--os-blue) 45%, transparent);
}

/* ---------- quest steps: wizard ---------- */
body.os-site .db-page .db-steps { list-style: none; counter-reset: db-step; margin: 4px 0 0; padding: 0; }
body.os-site .db-page .db-steps > li { counter-increment: db-step; position: relative; min-height: 40px; margin: 0; padding: 0 0 22px 52px; }
body.os-site .db-page .db-steps > li::before { /* step orb */
  content: counter(db-step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--os-black); color: var(--os-red-hi); font: 700 14px/1 var(--os-mono);
  background: radial-gradient(120% 60% at 50% 0, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(var(--os-4), var(--os-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px color-mix(in srgb, var(--os-red) 45%, transparent), 0 4px 10px rgba(0, 0, 0, .5);
  transition: color var(--db-t), box-shadow var(--db-t);
}
body.os-site .db-page .db-steps > li:is(:first-child, :hover)::before { /* start here / you are reading this */
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 60% at 50% 0, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(var(--os-red), var(--os-red-lo) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px var(--os-black), 0 0 16px var(--os-red-glow);
}
body.os-site .db-page .db-steps > li::after { /* connector to the next step */
  content: ''; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px;
  background: linear-gradient(color-mix(in srgb, var(--os-red) 55%, transparent), var(--os-line-2) 48px);
}
body.os-site .db-page .db-steps > li:last-child { padding-bottom: 4px; }
body.os-site .db-page .db-steps > li:last-child::after { display: none; }
body.os-site .db-page .db-steps > li > :first-child { margin-top: 5px; }
body.os-site .db-page .db-steps > li > :last-child { margin-bottom: 0; }
body.os-site .db-page .db-steps h3 { margin: 5px 0 6px; font-size: 16.5px; line-height: 1.3; }
body.os-site .db-page .db-steps p { margin: 0 0 8px; color: var(--os-text-2); line-height: 1.6; }
body.os-site .db-page .db-steps > li > p.muted, /* goal: who / where */
body.os-site .db-page .db-steps > li > p:has(> .db-icon) { /* collect: items */
  padding: 5px 10px 5px 12px; font-size: 13.5px;
  background: var(--db-pane); border: 1px solid var(--os-line); border-left: 2px solid var(--os-gold); border-radius: 3px;
}
body.os-site .db-page .db-steps > li > p:has(> .db-icon) { border-left-color: var(--os-blue); line-height: 2; }

/* ---------- class trees: Explorer tree with connecting lines ---------- */
body.os-site .db-page .db-tree { list-style: none; margin: 0; padding: 0 0 0 8px; border: 0; }
body.os-site .db-page .db-tree li { position: relative; margin: 0; padding: 0 0 0 20px; }
body.os-site .db-page .db-tree li::before { /* trunk */
  content: ''; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1px dotted var(--os-muted);
}
body.os-site .db-page .db-tree .db-tree > li:first-child::before { top: calc((var(--db-tree-row) - 9px) / -2); } /* reach the parent node */
body.os-site .db-page .db-tree li:last-child::before { bottom: auto; height: calc(var(--db-tree-row) / 2); }
body.os-site .db-page .db-tree .db-tree > li:first-child:last-child::before { height: calc(var(--db-tree-row) - 4.5px); }
body.os-site .db-page .db-tree li::after { /* branch */
  content: ''; position: absolute; left: 4px; top: calc(var(--db-tree-row) / 2); width: 14px; border-top: 1px dotted var(--os-muted);
}
body.os-site .db-page .db-tree li > a {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--db-tree-row); padding: 2px 9px 2px 6px;
  border: 1px solid transparent; border-radius: 3px; color: var(--os-text-2); line-height: 1.25;
  transition: color var(--db-t), background-color var(--db-t), border-color var(--db-t);
}
body.os-site .db-page .db-tree li > a::before { /* node: branch = [−] box */
  content: ''; flex: none; width: 9px; height: 9px; border-radius: 2px;
  border: 1px solid var(--os-red);
  background: linear-gradient(var(--os-red-hi), var(--os-red-hi)) center / 5px 1px no-repeat, var(--os-1);
  box-shadow: 0 0 6px var(--os-red-glow);
}
body.os-site .db-page .db-tree li:not(:has(> .db-tree)) > a::before { /* leaf = final class, gold diamond */
  width: 7px; height: 7px; margin: 0 1px; border: 0; border-radius: 1px; transform: rotate(45deg);
  background: var(--os-gold); box-shadow: 0 0 6px color-mix(in srgb, var(--os-gold) 50%, transparent);
}
body.os-site .db-page .db-tree li > a:hover {
  color: var(--os-text); border-color: color-mix(in srgb, var(--os-red) 45%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--os-red) 22%, transparent), color-mix(in srgb, var(--os-red) 8%, transparent));
}

/* /db/classes: one Explorer pane per race, laid out as a grid */
body.os-site .db-page:has(> .card) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start;
}
body.os-site .db-page:has(> .card) > :not(.card) { grid-column: 1 / -1; margin-top: 0; margin-bottom: 0; }
body.os-site .db-page > .card {
  margin: 0; padding: 0 0 12px; overflow: hidden;
  background: var(--db-pane); border: 1px solid var(--os-black); border-radius: 6px;
  box-shadow: 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
}
body.os-site .db-page > .card > .db-h2 { /* pane header strip = tree root */
  margin: 0 0 8px; padding: 10px 14px; font-size: 16px;
  background: var(--db-gloss), linear-gradient(var(--os-3), var(--os-2)); border-bottom: 1px solid var(--os-black);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.os-site .db-page > .card > .db-h2::after { display: none; }
body.os-site .db-page > .card > .db-h2 a { color: var(--os-text); }
body.os-site .db-page > .card > .db-h2 a:hover { color: var(--os-red-hi); }
body.os-site .db-page > .card > .db-tree { padding: 0 14px 0 16px; }

/* ---------- FAQ: expandable panels ---------- */
body.os-site .db-page .db-faq { display: grid; gap: 8px; }
body.os-site .db-page .db-faq details {
  margin: 0; padding: 0; overflow: hidden;
  background: var(--db-pane); border: 1px solid var(--os-black); border-radius: 4px; box-shadow: 0 0 0 1px var(--os-line);
}
body.os-site .db-page .db-faq summary {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px;
  list-style: none; cursor: pointer; color: var(--os-text); font-weight: 700; line-height: 1.35;
  background: var(--db-gloss), linear-gradient(var(--os-3), var(--os-2));
  transition: box-shadow var(--db-t);
}
body.os-site .db-page .db-faq summary::-webkit-details-marker { display: none; }
body.os-site .db-page .db-faq summary::before { /* ▷ / ▽ */
  content: ''; flex: none; border-left: 7px solid var(--os-text-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform .2s var(--os-ease), border-color var(--db-t);
}
body.os-site .db-page .db-faq summary:hover { background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 55%), linear-gradient(var(--os-4), var(--os-3)); }
body.os-site .db-page .db-faq details[open] > summary { box-shadow: inset 0 -1px 0 var(--os-black); }
body.os-site .db-page .db-faq details[open] > summary::before { transform: rotate(90deg); border-left-color: var(--os-red); }
body.os-site .db-page .db-faq details > p { margin: 0; padding: 12px 16px 14px 33px; color: var(--os-text-2); line-height: 1.65; }
body.os-site .db-page .db-faq details[open] > p { animation: db-reveal .24s var(--os-ease) both; }
@keyframes db-reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body.os-site .db-page { padding-inline: 12px; --db-tree-row: 40px; }
  body.os-site .db-page h1::after { margin-top: 10px; }

  body.os-site .db-page > .breadcrumbs { padding-left: 34px; }
  body.os-site .db-page > .breadcrumbs::before { top: 13px; }
  body.os-site .db-page > .breadcrumbs > a,
  body.os-site .db-page > .breadcrumbs > span:nth-child(odd) { min-height: 36px; padding: 2px 6px; }
  body.os-site .db-page > .breadcrumbs > a { min-height: 40px; }

  body.os-site .db-page .db-hub { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
  body.os-site .db-page .db-hub::before { width: 44px; height: 44px; border-radius: 9px; }
  body.os-site .db-page .db-hub::after { width: 24px; height: 24px; margin-top: 10px; }

  body.os-site .db-page .db-chip { min-height: 40px; padding: 6px 12px; white-space: normal; }

  /* lists: edge to edge in the window, scroll sideways inside the pane only */
  body.os-site .db-page .table-wrap { margin-inline: -12px; border-radius: 0; border-inline: 0; }
  body.os-site .db-page .table-wrap :is(th, td) { padding: 11px 10px; }
  body.os-site .db-page .table-wrap td:has(> .db-icon:first-child) { padding-left: 42px; }
  body.os-site .db-page .table-wrap table:has(> thead > tr > th:nth-child(5)) { min-width: 600px; }
  body.os-site .db-page .table-wrap table:has(> thead > tr > th:nth-child(5)) td:first-child {
    position: sticky; left: 0; z-index: 1;
    --db-edge: 1px 0 0 var(--os-black), 10px 0 12px -10px rgba(0, 0, 0, .9);
  }
  body.os-site .db-page .table-wrap table:has(> thead > tr > th:nth-child(5)) th:first-child {
    position: sticky; left: 0; z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 1px 0 0 var(--os-black), 10px 0 12px -10px rgba(0, 0, 0, .9);
  }

  /* property sheets stack: label above value */
  body.os-site .db-page .db-kv { grid-template-columns: minmax(0, 1fr); }
  body.os-site .db-page .db-kv::before,
  body.os-site .db-page .db-kv::after { display: none; }
  body.os-site .db-page .db-kv-row { grid-template-columns: minmax(0, 1fr); padding: 8px 0 9px; }
  body.os-site .db-page .db-kv-row > span { padding: 0 12px 1px; min-width: 0; border-right: 0; background: none; font-size: 12.5px; }
  body.os-site .db-page .db-kv-row > b { padding: 0 12px; }

  body.os-site .db-page .db-item-head { gap: 14px; padding: 14px; align-items: flex-start; }
  body.os-site .db-page .db-item-head > .db-icon { width: 52px; height: 52px; }

  body.os-site .db-page .db-steps > li { padding-left: 44px; }
  body.os-site .db-page .db-steps > li::before { width: 30px; height: 30px; font-size: 13px; }
  body.os-site .db-page .db-steps > li::after { left: 14px; top: 34px; }
  body.os-site .db-page .db-steps > li > :first-child { margin-top: 3px; }

  body.os-site .db-page .db-faq summary { min-height: 48px; }
  body.os-site .db-page .db-faq details > p { padding-left: 16px; }
}

/* ---------- motion & system modes ---------- */
@media (prefers-reduced-motion: reduce) {
  body.os-site .db-page { --db-t: 0s; }
  body.os-site .db-page .db-hub::before,
  body.os-site .db-page .db-hub::after,
  body.os-site .db-page .db-faq summary::before { transition: none; }
  body.os-site .db-page .db-hub:hover::before,
  body.os-site .db-page .db-hub:hover::after,
  body.os-site .db-page .db-chip:active { transform: none; }
  body.os-site .db-page .db-faq details[open] > p { animation: none; }
}
@media (forced-colors: active) {
  body.os-site .db-page .db-hub::after,
  body.os-site .db-page .db-search::before,
  body.os-site .db-page > .breadcrumbs::before { background: CanvasText; }
  body.os-site .db-page .db-steps > li::before { border-color: CanvasText; }
}

/* =====================================================================
   THEME «Синяя» (default): Windows 7 Explorer on the white window body.
   Every selector starts with html[data-theme="blue"], so the dark rules above
   are untouched and these win at any load order (attribute + type deeper).
   Only colours, backgrounds, borders and shadows change: the geometry, the
   sticky header, the phone layout and reduced motion stay the dark skin's.
   Text contrast is >= 4.5:1 on white, zebra #f7f9fc, hover #e8f2fd and
   selected #cfe4fb rows (hence the darker gold / green / muted below).
   ===================================================================== */
html[data-theme="blue"] body.os-site .db-page {
  --db-pane: #fff;
  --db-zebra: #f7f9fc;
  --db-hover: #e8f2fd;
  --db-sel: #cfe4fb;
  --db-head: linear-gradient(#ffffff, #eef1f5);
  --db-gloss: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 50%);
  --db-frame: #c3ccd7;            /* pane borders: lists, sheets, FAQ, cards */
  --db-sep: #e3e8ee;              /* column separators */
  --db-rule: #e8ecf1;             /* row lines */
  --db-edge-c: #2a6fd6;           /* blue left edge of the hovered row */
  --os-gold: #8a5a00;
  --os-green: #17703a;
  --os-muted: #566378;
}

/* ---------- headings & text ---------- */
html[data-theme="blue"] body.os-site .db-page h1 { text-shadow: none; }
html[data-theme="blue"] body.os-site .db-page h1::after { background: linear-gradient(90deg, #0f4aa8, #3b8fe8); box-shadow: 0 1px 4px rgba(42, 111, 214, .35); }
html[data-theme="blue"] body.os-site .db-page .db-h2::before,
html[data-theme="blue"] body.os-site .db-page > h2::before { background: linear-gradient(#5aa2f2, #1d5fbf); box-shadow: none; }
html[data-theme="blue"] body.os-site .db-page .db-h2::after,
html[data-theme="blue"] body.os-site .db-page > h2::after { background: linear-gradient(90deg, #c9d6e6, rgba(201, 214, 230, 0)); }
html[data-theme="blue"] body.os-site .db-page .db-ul > li::before { background: #2a6fd6; box-shadow: none; }

/* ---------- address bar: white field, Explorer crumbs ---------- */
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs {
  background: linear-gradient(#ffffff, #f7f9fc); border-color: #a9b6c6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 1px 0 #fff;
  color: var(--os-muted);
}
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs::before { background: linear-gradient(#f6d77a, #d9a133 55%, #b98118); }
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs > a { color: #3a495c; }
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs > a:hover { color: #0b1b2b; border-color: #a9c6e8; background: linear-gradient(#f5faff, #dcebfb); }
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs > span:nth-child(even)::before { border-left-color: #7a8798; }
html[data-theme="blue"] body.os-site .db-page > .breadcrumbs > span:last-child { color: #142030; }

/* ---------- search box ---------- */
html[data-theme="blue"] body.os-site .db-page .db-search .input { background: #fff; }
html[data-theme="blue"] body.os-site .db-page .db-search .input:hover:not(:focus) { border-color: #5f8fc2; }
html[data-theme="blue"] body.os-site .db-page .db-search:focus-within::before { background: #2a6fd6; }

/* ---------- hub tiles: Explorer "Tiles", glossy tinted icon tiles ---------- */
html[data-theme="blue"] body.os-site .db-page .db-hub { --db-hub-c: #2a6fd6; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/monsters'] { --db-hub-c: #c0392b; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/raids'] { --db-hub-c: #a86f00; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/quests'] { --db-hub-c: #1d5fbf; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/classes'] { --db-hub-c: #3a495c; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/dyes'] { --db-hub-c: #7a4cc2; }
html[data-theme="blue"] body.os-site .db-page .db-hub[href$='/db/zones'] { --db-hub-c: #1f8f45; }
html[data-theme="blue"] body.os-site .db-page .db-hub::before {
  border-color: color-mix(in srgb, var(--db-hub-c) 30%, #b9c6d6);
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(color-mix(in srgb, var(--db-hub-c) 7%, #fff), color-mix(in srgb, var(--db-hub-c) 18%, #f1f5fa));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 2px 5px rgba(16, 40, 80, .16);
}
html[data-theme="blue"] body.os-site .db-page .db-hub:hover::before {
  border-color: color-mix(in srgb, var(--db-hub-c) 55%, #7da2ce);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in srgb, var(--db-hub-c) 25%, transparent), 0 4px 14px color-mix(in srgb, var(--db-hub-c) 30%, transparent);
}
html[data-theme="blue"] body.os-site .db-page .db-hub:hover > h3 { color: #0f4aa8; }

/* ---------- chips: light Win7 tags; the current one is "selected" ---------- */
html[data-theme="blue"] body.os-site .db-page .db-chip {
  border-color: #b4c0ce; color: #1d2733;
  background: linear-gradient(#ffffff, #f3f6f9 49%, #e9eef4 50%, #f1f4f8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 1px 1px rgba(16, 40, 80, .06);
}
html[data-theme="blue"] body.os-site .db-page .db-chip:hover {
  color: #0b1b2b; border-color: #7da2ce;
  background: linear-gradient(#f5faff, #e3f0fd 49%, #d2e7fb 50%, #e0eefc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px rgba(125, 162, 206, .25);
}
html[data-theme="blue"] body.os-site .db-page .db-chip.active {
  color: #0b2a55; text-shadow: none; border-color: #84acdd;
  background: linear-gradient(#e4f0fc, #cfe4fb);
  box-shadow: inset 0 1px 2px rgba(16, 40, 80, .14);
}

/* item grades: amber tag (boss markers keep the blue core badge) */
html[data-theme="blue"] body.os-site .db-page :is(.db-tags, tr:has(.db-icon)) .badge-gold { background: #fff4d6; border-color: #e3c06a; color: #7a4f00; }

/* ---------- list view: Explorer "Details" on white ---------- */
html[data-theme="blue"] body.os-site .db-page .table-wrap {
  background: #fff; border-color: var(--db-frame);
  box-shadow: 0 1px 3px rgba(16, 40, 80, .08);
}
html[data-theme="blue"] body.os-site .db-page .table-wrap th {
  background: var(--db-head); color: #2b3a4a;
  border-bottom-color: #d3dae3; border-right-color: var(--db-sep);
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="blue"] body.os-site .db-page .table-wrap th:last-child { box-shadow: inset 0 1px 0 #fff; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td {
  color: var(--os-text-2); background: var(--db-row, #fff); border-bottom-color: var(--db-rule);
}
html[data-theme="blue"] body.os-site .db-page .table-wrap tbody tr:focus-within { --db-row: var(--db-sel); --db-mark: 3px; --db-edge-c: #1d5fbf; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td:first-child {
  color: var(--os-text);
  box-shadow: inset var(--db-mark, 0px) 0 0 var(--db-edge-c), var(--db-edge, 0 0 0 transparent);
}
html[data-theme="blue"] body.os-site .db-page .table-wrap td a { color: #1d5fbf; }
html[data-theme="blue"] body.os-site .db-page .table-wrap tr:is(:hover, :focus-within) td a { color: #0b3f8f; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* status bar under every list */
html[data-theme="blue"] body.os-site .db-page .table-wrap::after {
  background: linear-gradient(#f4f6f9, #eaeef3); border-top-color: #d3dae3;
  box-shadow: inset 0 1px 0 #fff; color: #445263;
}

/* sticky header: soft shadow instead of the black one */
@media (min-width: 1101px) {
  html[data-theme="blue"] body.os-site .db-page .table-wrap thead th,
  html[data-theme="blue"] body.os-site .db-page .table-wrap thead th:last-child { box-shadow: inset 0 1px 0 #fff, 0 3px 6px -3px rgba(16, 40, 80, .28); }
}

/* chance meter (optional hook) */
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch { --db-ch-c: #1d5fbf; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch[data-tier='rare'] { --db-ch-c: #c0392b; }
html[data-theme="blue"] body.os-site .db-page .table-wrap tr:focus-within td.db-ch[data-tier='rare'] { --db-ch-c: #a8281c; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch[data-tier='common'] { --db-ch-c: #17703a; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch[data-tier='adena'] { --db-ch-c: #8a5a00; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch::before { background: #dde3ea; }
html[data-theme="blue"] body.os-site .db-page .table-wrap td.db-ch::after { box-shadow: none; }

/* ---------- property sheet: Properties > Details ---------- */
html[data-theme="blue"] body.os-site .db-page .db-kv {
  background: #fff; border-color: var(--db-frame);
  box-shadow: 0 1px 3px rgba(16, 40, 80, .08);
}
html[data-theme="blue"] body.os-site .db-page .db-kv::before,
html[data-theme="blue"] body.os-site .db-page .db-kv::after {
  background: var(--db-head); border-bottom-color: #d3dae3; color: #2b3a4a;
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="blue"] body.os-site .db-page .db-kv::before { border-right-color: var(--db-sep); }
html[data-theme="blue"] body.os-site .db-page .db-kv-row { border-bottom-color: var(--db-rule); }
html[data-theme="blue"] body.os-site .db-page .db-kv-row > span { color: #3a495c; background: rgba(20, 45, 85, .028); border-right-color: var(--db-sep); }
html[data-theme="blue"] body.os-site .db-page .db-kv-row > b { color: #142030; }
html[data-theme="blue"] body.os-site .db-page .db-kv-row:hover { background: #e8f2fd; }
html[data-theme="blue"] body.os-site .db-page .db-kv-row:hover > span { color: #142030; }

/* ---------- item header + icons ---------- */
html[data-theme="blue"] body.os-site .db-page .db-item-head {
  background: linear-gradient(#ffffff, #f2f6fa); border-color: #cfd8e3;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(16, 40, 80, .08);
}
html[data-theme="blue"] body.os-site .db-page .db-icon {
  border-color: rgba(20, 32, 48, .55); background: #eef2f7;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 40, 80, .2);
}
html[data-theme="blue"] body.os-site .db-page .db-item-head > .db-icon { box-shadow: 0 0 0 3px #fff, 0 0 0 4px #b9c6d6, 0 4px 12px rgba(16, 40, 80, .22); }

/* ---------- spawn map: picture viewer frame; pins stay red, quest steps gold ---------- */
html[data-theme="blue"] body.os-site .db-page .db-map { border-color: #8c99a8; box-shadow: 0 1px 4px rgba(16, 40, 80, .18); }
html[data-theme="blue"] body.os-site .db-page .db-map::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 40px rgba(16, 40, 80, .22); }
html[data-theme="blue"] body.os-site .db-page .db-pin { background: #d9261c; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .4), 0 0 10px rgba(217, 38, 28, .75); }
html[data-theme="blue"] body.os-site .db-page .db-pin-n {
  background: radial-gradient(circle at 50% 28%, #fff3c4, #f2c14e 45%, #c98a12 100%);
  color: #3d2600; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .35);
}

/* ---------- info bars: notes = blue (i), empty states = yellow (!) ---------- */
html[data-theme="blue"] body.os-site .db-page .db-note {
  color: #22364d; background: linear-gradient(#f4f9ff, #e8f2fd);
  border-color: #a9c6e8; border-left-color: #6fa3e0;
}
html[data-theme="blue"] body.os-site .db-page .db-note::before {
  background: radial-gradient(circle at 50% 28%, #a6d4ff, #2a6fd6 55%, #0f4aa8);
  box-shadow: 0 0 0 1px rgba(15, 59, 134, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
html[data-theme="blue"] body.os-site .db-page > p.muted.mt-2 {
  color: #3d3000; background: #fffbe6;
  border-color: #e6d38a; border-left-color: #d9b440;
}
html[data-theme="blue"] body.os-site .db-page > p.muted.mt-2::before {
  content: '!'; font-style: normal; color: #3d2600;
  background: radial-gradient(circle at 50% 28%, #fff6cf, #f2c14e 55%, #c98a12);
  box-shadow: 0 0 0 1px rgba(122, 79, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ---------- quest steps: light glossy orbs, the current one blue glossy ---------- */
html[data-theme="blue"] body.os-site .db-page .db-steps > li::before {
  border-color: #7f9cc4; color: #0f4aa8; text-shadow: 0 1px 0 #fff;
  background: radial-gradient(120% 60% at 50% 0, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), linear-gradient(#f6f9fd, #d9e6f5);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .7), 0 2px 5px rgba(16, 40, 80, .2);
}
html[data-theme="blue"] body.os-site .db-page .db-steps > li:is(:first-child, :hover)::before {
  border-color: #0f3b86; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  background: radial-gradient(120% 60% at 50% 0, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%), linear-gradient(#4a92ea, #1d5fc4 55%, #0f4aa8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 255, 255, .7), 0 0 12px rgba(70, 150, 255, .5);
}
html[data-theme="blue"] body.os-site .db-page .db-steps > li::after { background: linear-gradient(#8fb6e6, #dfe5ec 48px); }
html[data-theme="blue"] body.os-site .db-page .db-steps > li > p.muted,
html[data-theme="blue"] body.os-site .db-page .db-steps > li > p:has(> .db-icon) { background: #f7f9fc; border-color: var(--db-sep); border-left-color: #d9a133; }
html[data-theme="blue"] body.os-site .db-page .db-steps > li > p:has(> .db-icon) { border-left-color: #3b8fe8; }

/* ---------- class trees: grey dotted lines, [−] boxes, amber leaves ---------- */
html[data-theme="blue"] body.os-site .db-page .db-tree li::before { border-left-color: #a3afbd; }
html[data-theme="blue"] body.os-site .db-page .db-tree li::after { border-top-color: #a3afbd; }
html[data-theme="blue"] body.os-site .db-page .db-tree li > a { color: #1d2733; }
html[data-theme="blue"] body.os-site .db-page .db-tree li > a::before {
  border-color: #8c99a8; box-shadow: none;
  background: linear-gradient(#2b3a4a, #2b3a4a) center / 5px 1px no-repeat, linear-gradient(#fff, #e3e9f0);
}
html[data-theme="blue"] body.os-site .db-page .db-tree li:not(:has(> .db-tree)) > a::before {
  background: linear-gradient(135deg, #ffd978, #d39a26 60%, #a8700c); box-shadow: 0 0 0 1px rgba(122, 79, 0, .35);
}
html[data-theme="blue"] body.os-site .db-page .db-tree li > a:hover { color: #0b1b2b; border-color: #b8d6fb; background: #e8f2fd; }

/* /db/classes panes */
html[data-theme="blue"] body.os-site .db-page > .card { background: #fff; border-color: var(--db-frame); box-shadow: 0 1px 3px rgba(16, 40, 80, .08); }
html[data-theme="blue"] body.os-site .db-page > .card > .db-h2 { background: linear-gradient(#f9fbfd, #dde5ee); border-bottom-color: #aab6c4; box-shadow: inset 0 1px 0 #fff; }
html[data-theme="blue"] body.os-site .db-page > .card > .db-h2 a { color: #10263f; }
html[data-theme="blue"] body.os-site .db-page > .card > .db-h2 a:hover { color: #0f4aa8; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
html[data-theme="blue"] body.os-site .db-page .db-faq details { background: #fff; border-color: var(--db-frame); box-shadow: 0 1px 2px rgba(16, 40, 80, .06); }
html[data-theme="blue"] body.os-site .db-page .db-faq summary { color: #142030; background: linear-gradient(#ffffff, #f3f6f9 49%, #eaeef3 50%, #f1f4f8); }
html[data-theme="blue"] body.os-site .db-page .db-faq summary:hover { background: linear-gradient(#f5faff, #e3f0fd 49%, #d2e7fb 50%, #e0eefc); }
html[data-theme="blue"] body.os-site .db-page .db-faq summary::before { border-left-color: #3a495c; }
html[data-theme="blue"] body.os-site .db-page .db-faq details[open] > summary { box-shadow: inset 0 -1px 0 #d3dae3; }
html[data-theme="blue"] body.os-site .db-page .db-faq details[open] > summary::before { border-left-color: #2a6fd6; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  html[data-theme="blue"] body.os-site .db-page .table-wrap { border-left: 0; border-right: 0; box-shadow: none; }
  html[data-theme="blue"] body.os-site .db-page .table-wrap table:has(> thead > tr > th:nth-child(5)) td:first-child {
    --db-edge: 1px 0 0 #d3dae3, 8px 0 10px -8px rgba(16, 40, 80, .28);
  }
  html[data-theme="blue"] body.os-site .db-page .table-wrap table:has(> thead > tr > th:nth-child(5)) th:first-child {
    box-shadow: inset 0 1px 0 #fff, 1px 0 0 #d3dae3, 8px 0 10px -8px rgba(16, 40, 80, .28);
  }
  html[data-theme="blue"] body.os-site .db-page .db-kv-row > span { background: none; }
}

/* ---------- system modes ---------- */
@media (forced-colors: active) {
  html[data-theme="blue"] body.os-site .db-page > .breadcrumbs::before,
  html[data-theme="blue"] body.os-site .db-page .db-search:focus-within::before { background: CanvasText; }
  html[data-theme="blue"] body.os-site .db-page .db-steps > li::before { border-color: CanvasText; }
}
