/* Wanted list (public page, respond form, owners' pages). Uses site_dark.css variables. */

.wt-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 20px 96px;
}
.wt-narrow { max-width: 760px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Header, toolbar, jump links ---- */
.wt-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  color: var(--sd-heading);
  margin: 0 0 8px;
  text-align: center;
}
.wt-narrow .wt-header h1 { text-align: left; font-size: 2rem; }
.wt-lede { text-align: center; color: var(--sd-muted); font-size: 1.05rem; margin: 0 0 24px; }

.wt-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center;
  margin: 16px 0;
}
.wt-search { flex: 1 1 360px; max-width: 560px; margin: 0; }
.wt-search input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 20px;
  border: 1px solid var(--sd-input-border);
  background: var(--sd-inset);
  color: var(--sd-heading);
}
.wt-search input:focus { outline: none; border-color: var(--sd-accent); box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18); }
.wt-filter { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--sd-muted); font-weight: 500; }
.wt-filter select, .wt-inline select {
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--sd-input-border); background: var(--sd-inset); color: var(--sd-text);
}

.wt-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--sd-border);
}
.wt-jump-link {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--sd-border-strong);
  color: var(--sd-heading) !important; font-weight: 600; text-decoration: none !important;
}
.wt-jump-link:hover { background: rgba(0, 217, 255, 0.12); }
.wt-jump-link.is-empty { opacity: 0.7; }
/* Tabs (only once wanted.js has taken over the jump links) */
.wt-tabbed .wt-jump { border-bottom: 1px solid var(--sd-border); }
.wt-tabbed .wt-jump-link[aria-disabled="true"] { cursor: default; pointer-events: none; }
.wt-tabbed .wt-jump-link.is-active {
  background: var(--sd-accent); border-color: var(--sd-accent); color: var(--sd-on-accent) !important;
}
.wt-tabbed .wt-jump-link.is-active .wt-count { background: rgba(3, 20, 37, 0.18); color: var(--sd-on-accent); }
.wt-tabbed .wt-section { margin-top: 24px; }
.wt-tabbed .wt-section:focus { outline: none; }
.wt-count {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; margin-left: 4px;
  border-radius: 999px; background: rgba(0, 217, 255, 0.14); color: var(--sd-accent-soft);
  font-size: 0.85em; font-weight: 600; text-align: center;
}

/* ---- Sections ---- */
/* style.css pads every <section> 120px and gives h2 a 20px line-height: undo both here. */
.wt-section { margin-top: 40px; padding: 0; scroll-margin-top: 72px; }
.wt-section-header { margin-bottom: 16px; }
.wt-section-header h2 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.3; color: var(--sd-heading); }
.wt-page h1, .wt-page h2, .wt-page h3 { line-height: 1.3; }
.wt-section-header p { margin: 0; color: var(--sd-muted); }
.wt-empty-all, .wt-no-match { color: var(--sd-muted); text-align: center; padding: 24px; }

.wt-meta { color: var(--sd-muted); font-weight: 400; }
.wt-notes { margin: 6px 0 0; color: var(--sd-text); font-size: 0.95rem; white-space: pre-line; }

/* ---- Badges ---- */
.wt-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-priority, .wt-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6; white-space: nowrap;
}
.wt-priority-2 { background: #ffcf5c; color: #2a1d00; }            /* Must have */
.wt-priority-1 { background: rgba(0, 217, 255, 0.2); color: var(--sd-accent-soft); }
.wt-priority-0 { background: rgba(148, 180, 210, 0.16); color: var(--sd-muted); }
.wt-chip { background: rgba(148, 180, 210, 0.14); color: var(--sd-text); font-weight: 600; }
.wt-chip-art { background: rgba(214, 120, 255, 0.18); color: #e4b8ff; }
.wt-chip-pending { background: rgba(255, 170, 80, 0.18); color: #ffc98f; }
.wt-chip-new { background: #ffcf5c; color: #2a1d00; text-decoration: none !important; }

/* ---- "I have this" + buttons ---- */
.wt-have, .wt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none !important; cursor: pointer;
  border: 1px solid var(--sd-accent); font-family: inherit; font-size: 0.95rem;
}
.wt-have, .wt-btn-primary { background: var(--sd-accent); color: var(--sd-on-accent) !important; }
.wt-have:hover, .wt-btn-primary:hover { background: var(--sd-accent-hover); border-color: var(--sd-accent-hover); }
.wt-btn-secondary { background: transparent; color: var(--sd-accent-soft) !important; border-color: var(--sd-border-strong); }
.wt-btn-secondary:hover { background: rgba(0, 217, 255, 0.1); }
.wt-btn-danger { background: rgba(220, 53, 69, 0.12); border-color: rgba(220, 53, 69, 0.5); color: #ffb4bc !important; }
.wt-btn-small { min-height: 32px; padding: 4px 10px; font-size: 0.85rem; }
.wt-inline { display: inline; margin: 0; }

/* ---- Games: marquee cards ---- */
/* Narrower cards, more columns (4 across on a typical desktop) rather than squashed art. */
.wt-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wt-game {
  display: flex; flex-direction: column;
  background: var(--sd-panel); border: 1px solid var(--sd-border); border-radius: 10px; overflow: hidden;
}
.wt-game-art {
  position: relative; aspect-ratio: 16 / 5; background: var(--sd-inset);  /* a marquee's own shape, so it stays readable */
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* Fill the strip: responsive.css sets img { height: auto } site-wide, which beats a plain class. */
.wt-game-art img.wt-art-img, .wt-game-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
}
.wt-game-art-fallback { font-family: 'Orbitron', sans-serif; color: var(--sd-dim); font-size: 0.95rem; padding: 0 12px; text-align: center; }
.wt-game-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
/* Left: title + year + priority badge, with the details line under it.
   Right: "I have this", stretched to the height of those two lines. */
.wt-game-head { display: flex; align-items: stretch; gap: 10px; }
.wt-game-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Badges move under the title when space is short, rather than squeezing the title. */
.wt-game-titleline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.wt-game-year { white-space: nowrap; }
.wt-game-titleline h3 { flex: 0 1 auto; }
.wt-game-titleline .wt-badges { flex-shrink: 0; flex-wrap: nowrap; }
.wt-game-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--sd-heading); min-width: 0; overflow-wrap: anywhere; }
.wt-game-year { font-size: 0.85rem; font-weight: 400; color: var(--sd-muted); }
.wt-game .wt-have { flex-shrink: 0; align-self: stretch; min-height: 0; padding: 4px 12px; font-size: 0.82rem; border-radius: 8px; }
.wt-game-line { margin: 0; font-size: 0.85rem; }
.wt-game-notes {
  margin: 2px 0 0; font-size: 0.85rem; color: var(--sd-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
}

/* ---- Parts (by cabinet) and Other: rows ---- */
.wt-cabinet {
  background: var(--sd-panel); border: 1px solid var(--sd-border); border-radius: 12px;
  margin-bottom: 16px; overflow: hidden;
}
.wt-cabinet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--sd-inset); border-bottom: 1px solid var(--sd-border);
}
.wt-cabinet-head h3 { margin: 0; font-size: 1.2rem; color: var(--sd-heading); }
.wt-cabinet-head img.wt-cabinet-thumb {
  width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--sd-border);
}
.wt-rows { list-style: none; margin: 0; padding: 0; }
.wt-section > .wt-rows { background: var(--sd-panel); border: 1px solid var(--sd-border); border-radius: 12px; }
.wt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; border-top: 1px solid var(--sd-divider);
}
.wt-rows > .wt-row:first-child { border-top: 0; }
.wt-row-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wt-row-main .wt-notes { flex-basis: 100%; margin-top: 2px; }
.wt-row-title { font-size: 1.1rem; font-weight: 700; color: var(--sd-heading); }
.wt-qty { color: var(--sd-accent-soft); font-weight: 700; }
.wt-partno {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 1px 8px; border-radius: 6px; border: 1px solid var(--sd-border-strong);
  color: var(--sd-accent-soft); font-size: 0.9rem;
}
.wt-row-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wt-condition { color: var(--sd-muted); font-size: 0.9rem; }

/* ---- PCBs + owner tables ---- */
.wt-table-wrap { overflow-x: auto; background: var(--sd-panel); border: 1px solid var(--sd-border); border-radius: 12px; }
.wt-table { width: 100%; border-collapse: collapse; }
.wt-table th, .wt-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--sd-divider); }
.wt-table thead th { border-top: 0; background: var(--sd-inset); color: var(--sd-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.wt-table tbody th { color: var(--sd-heading); font-size: 1.05rem; }
.wt-table tbody th .wt-meta { display: block; font-size: 0.85rem; }
.wt-row-actions { white-space: nowrap; }
.wt-row-actions > * { margin: 2px; }
.wt-private { color: #ffc98f; }

/* ---- "Not in the catalogue?" ---- */
.wt-new-game { border: 1px dashed var(--sd-border-strong); border-radius: 12px; padding: 10px 16px; }
.wt-new-game > summary { cursor: pointer; font-weight: 600; color: var(--sd-accent-soft); }
.wt-new-game[open] > summary { margin-bottom: 8px; }

/* ---- Documentation grid ---- */
/* Centre headers and buttons the same way. `.wt-table td` (left-aligned) outranks a
   bare class, so the cell selector needs the table class too. Equal-width columns. */
.wt-doc-table thead th:not(:first-child), .wt-doc-table td.wt-doc-cell { text-align: center; width: 14%; }
.wt-doc-table tbody th { min-width: 200px; }
.wt-doc-mfg { display: block; font-size: 0.85rem; }
.wt-doc-none { color: var(--sd-dim); }
.wt-doc-never { color: var(--sd-dim); font-size: 0.8rem; font-style: italic; white-space: nowrap; }
/* One button per needed document; its colour is the priority. */
.wt-have-doc {
  display: inline-block; padding: 5px 12px; border-radius: 8px; border: 1px solid transparent;
  font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-decoration: none !important;
}
a.wt-have-doc:hover { filter: brightness(1.12); }
.wt-have-doc-2 { background: #ffcf5c; color: #2a1d00 !important; }
.wt-have-doc-1 { background: var(--sd-accent); color: var(--sd-on-accent) !important; }
.wt-have-doc-0 { background: transparent; border-color: var(--sd-border-strong); color: var(--sd-accent-soft) !important; }
.wt-doc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.wt-doc-legend .wt-have-doc { padding: 2px 9px; font-size: 0.78rem; }
.wt-doc-cell .wt-chip { display: block; width: max-content; margin: 4px auto 0; }
.wt-doc-extras { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wt-doc-extras li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 400; }
.wt-subhead { margin: 24px 0 10px; font-size: 1.2rem; color: var(--sd-heading); }
.wt-details > summary { cursor: pointer; list-style: none; }
.wt-details > summary::-webkit-details-marker { display: none; }
.wt-details > summary h2 { display: inline; margin: 0; font-size: 1.6rem; color: var(--sd-heading); }
.wt-details > summary h2::before { content: '\25B8  '; color: var(--sd-accent); }
.wt-details[open] > summary h2::before { content: '\25BE  '; }
.wt-details > summary p { margin: 4px 0 16px; color: var(--sd-muted); }

/* ---- Responses (owners) ---- */
.wt-responses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wt-response {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 16px; border-radius: 12px; background: var(--sd-panel);
  border: 1px solid var(--sd-border-strong); scroll-margin-top: 72px;
}
.wt-response:target { box-shadow: 0 0 0 2px var(--sd-accent); }
.wt-response.is-handled { opacity: 0.6; border-color: var(--sd-border); }
.wt-response p { margin: 0 0 4px; }
.wt-response-who { font-weight: 700; color: var(--sd-heading); }
.wt-response-contact a { font-weight: 600; }

/* ---- Forms ---- */
.wt-back { display: inline-block; margin-bottom: 12px; }
.wt-summary { padding: 16px; margin: 16px 0; border-radius: 12px; background: var(--sd-panel); border: 1px solid var(--sd-border); }
.wt-summary h2 { margin: 8px 0 4px; color: var(--sd-heading); font-size: 1.5rem; }
.wt-summary p { margin: 0; }
.wt-form { display: grid; gap: 16px; }
.wt-field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.wt-field > span, .wt-field legend { font-weight: 600; color: var(--sd-heading); }
.wt-field em { font-style: normal; font-weight: 400; color: var(--sd-muted); }
.wt-field small { color: var(--sd-muted); }
.wt-field input[type=text], .wt-field input[type=email], .wt-field input[type=tel],
.wt-field input[type=number], .wt-field select, .wt-field textarea {
  width: 100%; padding: 10px 12px; font-size: 16px; border-radius: 8px;
  border: 1px solid var(--sd-input-border); background: var(--sd-inset); color: var(--sd-text);
}
.wt-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.wt-field-small { max-width: 180px; }
fieldset.wt-field { border: 1px solid var(--sd-border); border-radius: 12px; padding: 12px 16px 16px; }
fieldset.wt-field legend { padding: 0 6px; font-size: 1rem; width: auto; border: 0; margin-bottom: 4px; }
.wt-contact legend strong { color: #ffcf5c; font-weight: 600; }
.wt-private-box { border-color: rgba(255, 170, 80, 0.35) !important; }
.wt-check { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.wt-kind-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.wt-kind-picker legend { grid-column: 1 / -1; }
.wt-kind-option { margin: 0; cursor: pointer; }
.wt-kind-option input { position: absolute; opacity: 0; }
.wt-kind-option span {
  display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--sd-border); background: var(--sd-inset);
}
.wt-kind-option strong { color: var(--sd-heading); }
.wt-kind-option small { color: var(--sd-muted); font-weight: 400; }
.wt-kind-option input:checked + span { border-color: var(--sd-accent); box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.25); }
.wt-kind-option input:focus-visible + span { outline: 2px solid var(--sd-accent); }
.wt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.wt-alert { margin: 12px auto; padding: 12px 14px; border-radius: 10px; max-width: 760px; }
.wt-alert p { margin: 0; }
.wt-alert p + p { margin-top: 4px; }
.wt-alert.is-error { background: rgba(220, 53, 69, 0.15); border: 1px solid rgba(220, 53, 69, 0.45); }
.wt-alert.is-success { background: rgba(40, 167, 69, 0.15); border: 1px solid rgba(40, 167, 69, 0.45); }
.wt-alert.is-info { background: rgba(255, 170, 80, 0.12); border: 1px solid rgba(255, 170, 80, 0.35); margin: 10px 0 0; }

/* ---- Phones ---- */
@media (max-width: 768px) {
  .wt-page { padding: 24px 14px 80px; }
  .wt-header h1 { font-size: 1.8rem; }
  .wt-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .wt-row-side { justify-content: space-between; flex-wrap: wrap; }
  .wt-response { flex-direction: column; }

  /* The PCB table becomes labelled rows. */
  .wt-table:not(.wt-manage-table) thead { display: none; }
  .wt-table:not(.wt-manage-table) tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--sd-divider); }
  .wt-table:not(.wt-manage-table) tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .wt-table:not(.wt-manage-table) td { padding: 0; border: 0; }
  .wt-table:not(.wt-manage-table) td[data-label]::before { content: attr(data-label); display: block; color: var(--sd-dim); font-size: 0.75rem; text-transform: uppercase; }
  .wt-table:not(.wt-manage-table):not(.wt-doc-table) td:last-child { grid-column: 1 / -1; }
  .wt-doc-table tr { grid-template-columns: repeat(4, 1fr); }
  .wt-doc-table td.wt-doc-cell { text-align: center; width: auto; }
  .wt-doc-table tbody th { min-width: 0; }
}

/* ---- Manage page: per-tab sub-lists ---- */
.wt-manage-toolbar { margin-top: 32px; }
.wt-subsection { margin-top: 20px; }
.wt-subsection > summary h3 { display: inline; margin: 0; font-size: 1.2rem; color: var(--sd-heading); }
.wt-subsection > summary h3::before { content: '\25B8  '; color: var(--sd-accent); }
.wt-subsection[open] > summary h3::before { content: '\25BE  '; }
.wt-subsection > summary p { margin: 4px 0 12px; color: var(--sd-muted); }

/* ---- Search results: every section with a match, on one page ---- */
.wt-results-summary { margin: 14px 0 0; text-align: center; color: var(--sd-accent-soft); font-weight: 600; }
.wt-searching .wt-section { margin-top: 32px; }
.wt-searching .wt-section + .wt-section { padding-top: 24px; border-top: 1px solid var(--sd-divider); }

/* ---- Batch documentation editor ---- */
.wt-docs-table thead th:not(:first-child), .wt-docs-table td { text-align: center; }
.wt-docs-table tbody th { min-width: 220px; }
.wt-docs-bulk th, .wt-docs-bulk td { background: var(--sd-inset); padding-top: 6px; padding-bottom: 10px; }
.wt-docs-bulk select {
  padding: 4px 8px; border-radius: 8px; font-size: 0.85rem;
  border: 1px solid var(--sd-input-border); background: var(--sd-panel); color: var(--sd-text);
}
.wt-tri { display: inline-flex; border: 1px solid var(--sd-border-strong); border-radius: 8px; overflow: hidden; }
.wt-tri.is-changed { box-shadow: 0 0 0 2px #ffcf5c; }
.wt-tri-option { margin: 0; cursor: pointer; }
.wt-tri-option input { position: absolute; opacity: 0; pointer-events: none; }
.wt-tri-option span {
  display: block; padding: 5px 9px; font-size: 0.78rem; font-weight: 700; color: var(--sd-muted);
  border-left: 1px solid var(--sd-border);
}
.wt-tri-option:first-child span { border-left: 0; }
.wt-tri-have input:checked + span { background: #2fb37a; color: #04170e; }
.wt-tri-missing input:checked + span { background: rgba(248, 113, 113, 0.85); color: #2a0606; }
.wt-tri-never input:checked + span { background: rgba(148, 180, 210, 0.35); color: var(--sd-heading); }
.wt-tri-option input:focus-visible + span { outline: 2px solid var(--sd-accent); outline-offset: -2px; }
.wt-docs-savebar {
  position: sticky; bottom: 56px; z-index: 5; margin-top: 16px;
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 12px; background: var(--sd-panel); border: 1px solid var(--sd-border);
  box-shadow: var(--sd-shadow);
}
.wt-docs-form.is-dirty .wt-docs-savebar { border-color: #ffcf5c; }
.wt-docs-form.is-dirty #wt-docs-changes { color: #ffcf5c; font-weight: 700; }
@media (max-width: 768px) {
  .wt-docs-table thead tr:first-child { display: none; }
  .wt-docs-bulk { display: none; }
  .wt-docs-table tbody tr { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--sd-divider); }
  .wt-docs-table tbody th, .wt-docs-table tbody td { padding: 0; border: 0; text-align: left; }
  .wt-docs-table tbody td { display: flex; justify-content: space-between; align-items: center; }
  .wt-docs-table tbody td::before { content: attr(data-label); color: var(--sd-muted); font-size: 0.85rem; }
}

/* ---- Game catalogue (/catalog/) ---- */
.cat-filters button.wt-jump-link { background: transparent; font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.cat-filters button.wt-jump-link.is-active { background: var(--sd-accent); border-color: var(--sd-accent); color: var(--sd-on-accent) !important; }
.cat-filters button.wt-jump-link.is-active .wt-count { background: rgba(3, 20, 37, 0.18); color: var(--sd-on-accent); }
.cat-table tbody th { min-width: 240px; }
.cat-title { display: inline-flex; align-items: center; gap: 10px; }
.cat-title a { color: var(--sd-heading) !important; }
.cat-thumb { width: 64px; height: 20px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sd-border); flex: 0 0 64px; }
.cat-table img.cat-thumb { height: 20px; }
.cat-thumb-none { display: inline-block; background: repeating-linear-gradient(45deg, var(--sd-inset), var(--sd-inset) 4px, transparent 4px, transparent 8px); }
.cat-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.cat-sort[data-dir="asc"]::after { content: ' \25B4'; color: var(--sd-accent); }
.cat-sort[data-dir="desc"]::after { content: ' \25BE'; color: var(--sd-accent); }
.cat-row.is-target { box-shadow: inset 3px 0 0 var(--sd-accent); }
@media (max-width: 768px) {
  .cat-table thead { display: none; }
  .cat-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--sd-divider); }
  .cat-table tbody th, .cat-table td { padding: 0; border: 0; }
  .cat-table tbody th { grid-column: 1 / -1; min-width: 0; }
  .cat-table td[data-label]::before { content: attr(data-label); display: block; color: var(--sd-dim); font-size: 0.75rem; text-transform: uppercase; }
  .cat-table td.wt-row-actions { grid-column: 1 / -1; white-space: normal; }
}
@media (max-width: 768px) {
  /* responsive.css forces every h3 to 18px !important on phones; keep compact card titles compact. */
  .wt-game-head h3 { font-size: 1.05rem !important; }
}
