  @font-face {
    font-family: "Blizz Quadrata";
    src: url("/fonts/blizz-quadrata.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Semplicita Pro";
    src: url("/fonts/semplicita-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Semplicita Pro";
    src: url("/fonts/semplicita-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Open Sans";
    src: url("/fonts/opensans-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Open Sans";
    src: url("/fonts/opensans-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --font-display: "Blizz Quadrata", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-kicker: "Semplicita Pro", "Open Sans", Arial, sans-serif;
    --font-body: "Open Sans", "Lucida Grande", "Helvetica Neue", Arial, sans-serif;

    /* Item Quality Colors (WoW Classic + dark-bar legibility) */
    --q0: #a8a8a8;
    --q1: #ffffff;
    --q2: #1eff00;
    --q3: #389eff;
    --q3-rim: #0070dd;
    --q4: #c46bff;
    --q4-rim: #a335ee;
    --q5: #ff8811;

    --gold-title: #ffd34d;
    --gold-warm: #f6b81e;
    --ink-paper: #28190b;
    --ink-paper-muted: #614526;
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
  }

  html { scrollbar-gutter: stable; }

  /* Warm Counting-House Walnut & Saddle-Leather Desk Surface (Zero repeating-gradient shader cost!) */
  body {
    min-height: 100vh;
    background-color: #1c130c;
    background-image:
      radial-gradient(ellipse 85% 520px at 50% -60px, rgba(226, 168, 78, 0.24) 0%, rgba(126, 78, 30, 0.12) 48%, transparent 78%),
      linear-gradient(180deg, #2a1d13 0%, #1d140d 45%, #150e09 100%);
    color: #f0e4cc;
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.44;
    -webkit-font-smoothing: antialiased;
  }

  a { color: var(--gold-title); text-decoration: none; }
  a:hover { color: #fff4c8; text-decoration: underline; }

  /* Sculpted Brass Groove Scrollbars */
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track {
    background: #140f0b;
    border-left: 1px solid #3a2b1c;
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #b89146 0%, #876326 55%, #5e4216 100%);
    border: 1px solid #2b1d09;
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #cfa657 0%, #9b732d 55%, #6e4e1a 100%);
  }

  .desk-shell {
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 22px 64px 28px;
  }
  /* Proportional High-Resolution / 4K Auto-Zoom: preserves the exact 1300px fixed-width
     WoW Auction House frame while filling 1080p, QHD, and 4K viewports at 100% browser zoom */
  @media (min-width: 1560px) and (min-height: 820px) {
    .desk-shell { zoom: 1.15; }
  }
  @media (min-width: 1840px) and (min-height: 900px) {
    .desk-shell { zoom: 1.36; }
  }
  @media (min-width: 2160px) and (min-height: 1050px) {
    .desk-shell { zoom: 1.56; }
  }
  @media (min-width: 2480px) and (min-height: 1150px) {
    .desk-shell { zoom: 1.82; }
  }
  @media (min-width: 2960px) and (min-height: 1350px) {
    .desk-shell { zoom: 2.15; }
  }
  @media (min-width: 3560px) and (min-height: 1650px) {
    .desk-shell { zoom: 2.68; }
  }
  @media (max-width: 760px) {
    .desk-shell { padding: 18px 10px 48px 14px; }
  }

  /* =========================================================================
     THE AUCTION HOUSE WINDOW FRAME (2004 WoW UIPanel + Apple Brushed Brass)
     ========================================================================= */
  .ah-frame-outer {
    position: relative;
    padding: 5px;
    border-radius: 11px 11px 8px 8px;
    background: linear-gradient(180deg, #d8b265 0%, #9e7633 14%, #6f5120 55%, #87642a 88%, #4d3713 100%);
    border: 1px solid #140c05;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.78),
      inset 0 1px 0 rgba(255, 245, 210, 0.72);
  }

  /* Corner Brass Rivets */
  .ah-rivet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff4c2 0%, #cfa44e 45%, #5c3f14 88%, #261906 100%);
    border: 1px solid #1f1404;
    z-index: 6;
    pointer-events: none;
  }
  .ah-rivet.tr { top: 8px; right: 10px; }
  .ah-rivet.bl { bottom: 8px; left: 10px; }
  .ah-rivet.br { bottom: 8px; right: 10px; }

  /* Iconic Overlapping Top-Left Circular WoW Portrait Medallion (UI-Portrait!) */
  .ah-portrait {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(145deg, #f5d68a 0%, #b58635 38%, #593d12 72%, #d9ae59 100%);
    border: 2px solid #1a1006;
    box-shadow:
      0 6px 14px rgba(0, 0, 0, 0.82),
      inset 0 1px 1px rgba(255, 248, 220, 0.75);
    z-index: 12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ah-portrait:hover {
    background: linear-gradient(145deg, #ffe5a3 0%, #c9963e 38%, #6b4916 72%, #ebbf65 100%);
  }
  .ah-portrait:active { transform: translateY(1px); }

  .ah-portrait-well {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #120d08;
    border: 2px solid #2b1b09;
  }
  .ah-portrait-well img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Curved Aqua Glass Dome Reflection over Portrait */
  .ah-portrait-well::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(168deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.10) 42%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.30) 100%);
    pointer-events: none;
  }

  .ah-frame-inner {
    background: #231c15;
    border: 1px solid #1c130a;
    border-radius: 7px 7px 5px 5px;
    overflow: hidden;
  }

  /* =========================================================================
     TOP TITLE CROWN & BRUSHED-METAL CONTROL DECK (Steve Jobs OS X + WoW)
     ========================================================================= */
  .ah-titlebar {
    position: relative;
    background: linear-gradient(180deg, #4d4031 0%, #342a20 52%, #241c15 100%);
    border-top: 1px solid rgba(255, 238, 204, 0.32);
    border-bottom: 1px solid #140e08;
    padding: 9px 12px 9px 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }

  .ah-title-plaque {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Engraved Sunken Nameplate Cartouche */
  .ah-cartouche {
    border: 1px solid transparent;
    border-radius: 5px;
    background:
      linear-gradient(180deg, #1b140e 0%, #261d14 100%) padding-box,
      linear-gradient(180deg, #150e07 0%, #3d2d16 36%, #6e5227 76%, #876631 100%) border-box;
    padding: 4px 14px 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.82), 0 1px 0 rgba(255, 238, 195, 0.08);
    cursor: pointer;
  }
  .ah-cartouche h1,
  .ah-cartouche .gs-brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: var(--gold-title);
    text-shadow: 0 2px 2px #000;
  }

  .ah-subtitle {
    font-family: var(--font-kicker);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d6c3a3;
    text-shadow: 0 1px 1px #000;
  }

  /* Jewel Glass Status Lamp */
  .ah-status-lamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 14px;
    background:
      linear-gradient(180deg, #1b150f 0%, #271f17 100%) padding-box,
      linear-gradient(180deg, #161008 0%, #332614 42%, #594321 78%, #6e542a 100%) border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.62);
    padding: 4px 11px;
    font-size: 11.5px;
    color: #e4d5ba;
  }
  .jewel-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #baffca 0%, #2ce665 45%, #0c6e29 90%);
    border: 1px solid #072910;
    box-shadow: 0 0 5px rgba(44, 230, 101, 0.6);
    flex-shrink: 0;
  }

  /* Goblin Street's own header rows (Azebott's pages read this sheet too, so these are scoped) */
  .gs-row1 { flex-wrap: nowrap; }
  .gs-row1 .ah-title-plaque { flex: 0 0 auto; flex-wrap: nowrap; }
  .gs-row1 .ah-search-wrap { flex: 1 1 240px; max-width: 460px; min-width: 0; }
  @media (max-width: 1139px) {
    .gs-row1 .ah-subtitle { display: none; }
  }
  @media (max-width: 820px) {
    .gs-row1 { flex-wrap: wrap; gap: 8px 10px; }
    .gs-row1 .ah-search-wrap { flex: 1 1 100%; max-width: none; }
  }

  /* Brushed Champagne-Pewter Toolbar (Lighter, Tactile, Apple Brushed-Metal Feel) */
  .ah-toolbar {
    background: linear-gradient(180deg, #5f503e 0%, #473b2e 50%, #372d22 100%);
    border-top: 1px solid rgba(255, 241, 212, 0.34);
    border-bottom: 2px solid #16100a;
    padding: 9px 12px 9px 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  @media (max-width: 820px) {
    .ah-titlebar { padding-left: 64px; }
    .ah-toolbar { padding-left: 12px; }
  }

  /* OS X / Counting-House Recessed Cream Paper Search Capsule! */
  .ah-search-wrap {
    position: relative;
    flex: 1 1 340px;
    max-width: none;
    display: flex;
    align-items: center;
  }
  .ah-search-icon {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    pointer-events: none;
    opacity: 0.72;
  }
  .ah-search {
    --search-bg: linear-gradient(180deg, #e5d6b8 0%, #f7efe0 35%, #fbf6ec 100%);
    --search-rim: linear-gradient(180deg, #21170b 0%, #43311c 46%, #6e5638 80%, #856b49 100%);
    width: 100%;
    padding: 6px 24px 6px 28px;
    border-radius: 15px;
    border: 1px solid transparent;
    background-image: var(--search-bg), var(--search-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: var(--ink-paper);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: inset 0 2px 3px rgba(42, 26, 8, 0.38);
  }
  .ah-search::placeholder {
    color: #7d6445;
    font-weight: 400;
    font-size: 11.8px;
  }
  .ah-search:focus {
    outline: none;
    --search-rim: linear-gradient(180deg, #ffe588 0%, #f5c342 52%, #c48b16 100%);
    box-shadow:
      inset 0 2px 3px rgba(42, 26, 8, 0.34),
      0 0 0 2px rgba(255, 211, 77, 0.42);
  }
  .ah-search-clear {
    position: absolute;
    right: 7px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: none;
    background: #8c7558;
    color: #fff8eb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .ah-search-clear.visible { display: inline-flex; }
  .ah-search-clear:hover { background: #6b553b; }

  /* =========================================================================
     GLOSSY AQUA / ENAMEL ROCKER SWITCHES & GEL BUTTONS (0ms WoW Snap!)
     ========================================================================= */
  .rocker-well {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(#1a130c, #1a130c) padding-box,
      linear-gradient(180deg, #110b06 0%, #261d14 48%, #524331 84%, #6b5943 100%) border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.62);
    padding: 2px;
    gap: 2px;
  }

  .rocker-btn {
    --rk-bg: linear-gradient(180deg, #4b3d2d 0%, #372c20 50%, #2c2218 52%, #251c14 100%);
    --rk-rim: linear-gradient(180deg, #735e45 0%, #524230 28%, #3b2f22 74%, #211910 100%);
    position: relative;
    font-family: var(--font-kicker);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-image: var(--rk-bg), var(--rk-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #d8c6a8;
    text-shadow: 0 1px 1px #000;
    cursor: pointer;
    user-select: none;
  }
  .rocker-btn:hover {
    --rk-bg: linear-gradient(180deg, #594936 0%, #433627 50%, #362a1e 52%, #2e2319 100%);
    --rk-rim: linear-gradient(180deg, #8a7154 0%, #63503a 28%, #473929 74%, #291f14 100%);
    color: #fff5dc;
  }
  .rocker-btn:active {
    transform: translateY(1px);
  }
  .rocker-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
  }

  /* Active Glossy Amber-Brass Gel Cap (50% Specular Horizon!) */
  .rocker-btn.is-active {
    color: #241400;
    text-shadow: 0 1px 0 rgba(255, 246, 205, 0.65);
    --rk-bg: linear-gradient(180deg, #fff0b8 0%, #f5c84c 48%, #df9f1f 51%, #f0b93a 100%);
    --rk-rim: linear-gradient(180deg, #fff9e0 0%, #f7cf5e 28%, #c98e20 76%, #8c5f0f 100%);
  }

  /* Alliance Glossy Royal-Aqua Enamel */
  .rocker-btn.fac-alliance.is-active {
    color: #ffffff;
    text-shadow: 0 -1px 1px rgba(0, 20, 60, 0.9);
    --rk-bg: linear-gradient(180deg, #74b9ff 0%, #2f7de0 49%, #195ec2 51%, #2874db 100%);
    --rk-rim: linear-gradient(180deg, #c7e4ff 0%, #6cb3fc 28%, #2568c9 76%, #0f3c80 100%);
  }

  /* Horde Glossy Ruby-Crimson Lacquer */
  .rocker-btn.fac-horde.is-active {
    color: #ffffff;
    text-shadow: 0 -1px 1px rgba(60, 0, 0, 0.95);
    --rk-bg: linear-gradient(180deg, #f26c5e 0%, #c92d20 49%, #a31b10 51%, #bf291d 100%);
    --rk-rim: linear-gradient(180deg, #ffc7c2 0%, #f0766b 28%, #ad251a 76%, #6b110b 100%);
  }

  /* Iconic Glossy WoW Red Gel Action Button */
  .gel-btn {
    --gel-bg: linear-gradient(180deg, #df5648 0%, #ab2318 49%, #82120a 51%, #9e1e14 100%);
    --gel-rim: linear-gradient(180deg, #ffa399 0%, #db5849 26%, #9c2015 76%, #590d08 100%);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    background-image: var(--gel-bg), var(--gel-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #ffe27a;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    user-select: none;
  }
  .gel-btn:hover {
    --gel-bg: linear-gradient(180deg, #ed6557 0%, #bf2a1d 49%, #96170e 51%, #b32419 100%);
    --gel-rim: linear-gradient(180deg, #ffb8b0 0%, #eb6859 26%, #b0281c 76%, #69100a 100%);
    color: #fff6c9;
    text-decoration: none;
  }
  .gel-btn:active {
    transform: translateY(1px);
  }

  .gel-btn-brass {
    --gel-bg: linear-gradient(180deg, #fae8b4 0%, #deb04b 49%, #c28e26 51%, #d6a43c 100%);
    --gel-rim: linear-gradient(180deg, #fff7db 0%, #e6be63 26%, #a87920 76%, #5e4110 100%);
    color: #241400;
    text-shadow: 0 1px 0 rgba(255, 247, 210, 0.65);
  }
  .gel-btn-brass:hover {
    color: #140b00;
    --gel-bg: linear-gradient(180deg, #fff1c7 0%, #e8bc58 49%, #cf992d 51%, #e0ae46 100%);
    --gel-rim: linear-gradient(180deg, #fffbe8 0%, #f0cb71 26%, #b88626 76%, #6e4d13 100%);
  }

  /* Sculpted OS X / Brass Sort Select */
  .ah-select {
    --sel-bg: linear-gradient(180deg, #524332 0%, #382d21 49%, #2b2218 51%, #33291e 100%);
    --sel-rim: linear-gradient(180deg, #9c7e52 0%, #755d3b 26%, #4d3c26 76%, #241a0f 100%);
    appearance: none;
    color: #f5e7ca;
    font-family: var(--font-kicker);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 26px 6px 11px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath d='M5 1L8.5 4.5H1.5L5 1ZM5 11L1.5 7.5H8.5L5 11Z' fill='%23ffd34d'/%3E%3C/svg%3E"),
      var(--sel-bg),
      var(--sel-rim);
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: right 8px center, 0 0, 0 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  }
  .ah-select:hover {
    --sel-rim: linear-gradient(180deg, #cfa65b 0%, #9c7838 28%, #634b22 76%, #2e200e 100%);
  }
  .ah-select:focus {
    outline: none;
    --sel-rim: linear-gradient(180deg, #ffe28c 0%, #dba844 30%, #8f6720 76%, #45300d 100%);
  }
  .ah-select option {
    background: #231b13;
    color: #f5e7ca;
  }

  /* =========================================================================
     WOW FOREVER (1.60.1 CAMELOT) FILTER DROPDOWN POPOVER
     ========================================================================= */
  .ah-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .ah-filter-btn {
    --flt-bg: linear-gradient(180deg, #524230 0%, #382c1f 50%, #2a2016 52%, #32271b 100%);
    --flt-rim: linear-gradient(180deg, #a68554 0%, #7c623c 26%, #4f3e26 76%, #23190e 100%);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    color: #f5e6c4;
    padding: 6px 13px;
    border-radius: 5px;
    border: 1px solid transparent;
    background-image: var(--flt-bg), var(--flt-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 1px #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
  }
  .ah-filter-btn:hover, .ah-filter-btn.is-open {
    color: var(--gold-title);
    --flt-bg: linear-gradient(180deg, #634f38 0%, #453625 50%, #36291b 52%, #3d2f20 100%);
    --flt-rim: linear-gradient(180deg, #e8c26b 0%, #c4953d 30%, #7d5b20 76%, #3b290c 100%);
  }
  .ah-filter-btn.has-active {
    --flt-rim: linear-gradient(180deg, #ffe28c 0%, #dba844 30%, #8f6720 76%, #45300d 100%);
    color: var(--gold-title);
    padding-right: 26px;
  }
  .ah-filter-badge {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 700;
    padding: 0 5px;
    border-radius: 8px;
    background: #d99b26;
    color: #1f1100;
    text-shadow: none;
  }
  .ah-filter-clear-x {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ff9c91;
    background: linear-gradient(180deg, #e04f42 0%, #96180e 100%);
    color: #fff6d6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .ah-filter-clear-x.visible { display: inline-flex; }
  .ah-filter-clear-x:hover { filter: brightness(1.15); }

  .ah-filter-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 268px;
    z-index: 60;
    background: linear-gradient(180deg, #1b1611 0%, #120e0a 100%);
    border: 2px solid #9e814d;
    border-radius: 6px;
    padding: 11px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.88);
    display: none;
    color: #efe2c9;
    font-size: 12.5px;
  }
  .ah-filter-popover.is-open { display: block; }
  .flt-sec-hdr {
    font-family: var(--font-kicker);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-title);
    margin: 8px 0 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(207, 160, 70, 0.22);
  }
  .flt-sec-hdr:first-child { margin-top: 0; }
  .flt-lvl-row {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .flt-lvl-inp {
    width: 66px;
    padding: 4px 7px;
    border-radius: 4px;
    border: 1px solid #634d30;
    background: #0b0806;
    color: #fff5dc;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
  }
  .flt-lvl-inp:focus {
    outline: none;
    border-color: var(--gold-title);
  }
  .flt-chk {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 2px;
    cursor: pointer;
    user-select: none;
  }
  .flt-chk:hover { color: #ffffff; }
  .flt-chk input[type="checkbox"] {
    accent-color: #e6b23c;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
  }
  .flt-rarity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
  }

  /* =========================================================================
     INTERIOR WORKSPACE: LEFT CATEGORY TROUGH + RIGHT AUCTION LEDGER
     ========================================================================= */
  .ah-body-grid {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #251d16;
  }
  @media (max-width: 920px) {
    .ah-body-grid { grid-template-columns: 1fr; }
  }

  /* Left Sunken Walnut Category Trough (WoW Forever Camelot AuctionCategoryButton Tree) */
  .ah-sidebar {
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(#17120d, #17120d) padding-box,
      linear-gradient(168deg, #0d0906 0%, #1d160e 36%, #3a2c1d 74%, #503d28 100%) border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.52);
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: start;
  }

  .goblin-picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .pick-chip {
    --chip-bg: linear-gradient(180deg, #362a1e 0%, #241c14 100%);
    --chip-rim: linear-gradient(180deg, #785e3e 0%, #57442d 28%, #382b1c 74%, #1a120a 100%);
    font-family: var(--font-kicker);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-image: var(--chip-bg), var(--chip-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #e3d2b4;
    cursor: pointer;
    text-align: center;
    text-shadow: 0 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pick-chip:hover {
    --chip-rim: linear-gradient(180deg, #cca356 0%, #9e7936 32%, #664c20 76%, #2e210d 100%);
    color: #fff4cf;
  }
  .pick-chip.is-active {
    --chip-bg: linear-gradient(180deg, #5e441c 0%, #38270e 100%);
    --chip-rim: linear-gradient(180deg, #ffe28a 0%, #deb048 32%, #8f681e 78%, #47320c 100%);
    color: var(--gold-title);
  }
  .pick-chip.span-2 { grid-column: span 2; }

  /* Profession picker, shown only on the Profitable Crafts view */
  .craft-prof-bar {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }
  .craft-prof-bar.is-visible { display: flex; }
  .craft-prof-bar .pick-chip { padding: 4px 9px; overflow: visible; }
  .profit-sub { font-size: 10.5px; color: #a89477; margin-top: 1px; white-space: nowrap; }
  .show-sm { display: none; }
  .ah-slot.is-unlisted .icon-socket, .ah-slot.is-unlisted .item-title { opacity: 0.62; }
  .unlisted-lbl { font-size: 12px; color: #a89477; font-style: italic; }
  .pad-src {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #8a5a12;
    margin-left: 3px;
  }
  .pad-advice a { color: #6b3d06; font-weight: 700; }
  .pad-advice {
    font-size: 12px;
    color: #3a2409;
    padding: 5px 8px;
    margin: 2px 0 6px;
    border-left: 3px solid #b8862b;
    background: rgba(184, 134, 43, 0.14);
  }

  .sidebar-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-kicker);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #a89272;
    padding: 5px 3px 2px;
    border-top: 1px solid rgba(207, 160, 70, 0.18);
    margin-top: 2px;
  }

  .ah-cat-tree {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .cat-btn {
    --cat-bg: linear-gradient(180deg, #33291f 0%, #251d15 54%, #1e1710 100%);
    --cat-rim: linear-gradient(180deg, #614d36 0%, #453625 28%, #2e2318 74%, #17110b 100%);
    width: 100%;
    text-align: left;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-image: var(--cat-bg), var(--cat-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: #e6d6bc;
    font-family: var(--font-display);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    text-shadow: 0 1px 2px #000;
  }
  .cat-btn:hover {
    --cat-bg: linear-gradient(180deg, #423527 0%, #30251b 54%, #261d14 100%);
    --cat-rim: linear-gradient(180deg, #ad8644 0%, #85642f 30%, #57401d 76%, #291d0c 100%);
    color: #fff2ce;
  }
  .cat-btn.is-active {
    --cat-bg: linear-gradient(180deg, #5c431c 0%, #3d2b10 52%, #2e1f0a 100%);
    --cat-rim: linear-gradient(180deg, #ffe394 0%, #e0b146 30%, #966d1f 78%, #4a340d 100%);
    color: var(--gold-title);
  }
  .cat-btn.is-branch-open:not(.is-active) {
    --cat-rim: linear-gradient(180deg, #8a6c43 0%, #695131 30%, #45341f 76%, #21180e 100%);
    color: #f7e9ce;
  }
  .cat-btn.lvl-1 {
    width: calc(100% - 10px);
    margin-left: 10px;
    padding: 4.5px 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    --cat-bg: linear-gradient(180deg, #261f18 0%, #1c1611 100%);
    --cat-rim: linear-gradient(180deg, #4a3a29 0%, #382c1f 35%, #1c150e 100%);
    color: #d6c3a5;
  }
  .cat-btn.lvl-1:hover {
    --cat-bg: linear-gradient(180deg, #362b20 0%, #261e16 100%);
    --cat-rim: linear-gradient(180deg, #9e7a40 0%, #785b2f 35%, #2e2210 100%);
    color: #fff2d4;
  }
  .cat-btn.lvl-1.is-active {
    --cat-bg: linear-gradient(180deg, #4f3a18 0%, #33240d 100%);
    --cat-rim: linear-gradient(180deg, #fad982 0%, #d9aa42 35%, #47320d 100%);
    color: var(--gold-title);
  }
  .cat-btn.lvl-2 {
    width: calc(100% - 20px);
    margin-left: 20px;
    padding: 3.5px 8px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 400;
    --cat-bg: linear-gradient(#14100c, #14100c);
    --cat-rim: linear-gradient(180deg, #362a1d 0%, #292016 45%, #17120c 100%);
    color: #c2af92;
  }
  .cat-btn.lvl-2:hover {
    --cat-bg: linear-gradient(#241c14, #241c14);
    --cat-rim: linear-gradient(180deg, #8c6b37 0%, #6b5129 40%, #291e0e 100%);
    color: #fff0cf;
  }
  .cat-btn.lvl-2.is-active {
    --cat-bg: linear-gradient(#382810, #382810);
    --cat-rim: linear-gradient(180deg, #f0cd75 0%, #cfa13a 38%, #45310d 100%);
    color: var(--gold-title);
    font-weight: 700;
  }
  .cat-btn.is-empty { opacity: 0.48; }
  .cat-lbl-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }
  .cat-lbl-wrap span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cat-caret {
    font-size: 10px;
    color: #cfa44e;
    width: 10px;
    text-align: center;
    flex-shrink: 0;
  }
  .cat-cnt {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 400;
    color: #9c886b;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }
  .cat-btn.is-active .cat-cnt { color: #ffe599; }
  .cat-icon {
    width: 19px;
    height: 19px;
    border-radius: 3px;
    border: 1px solid #785c32;
    overflow: hidden;
    flex-shrink: 0;
  }
  .cat-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Warm Pinned Cream Parchment Ticket inside Sidebar! */
  .parchment-ticket {
    position: relative;
    margin-top: 8px;
    padding: 13px 12px 11px;
    border-radius: 4px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #f5ead1 0%, #ead8b3 58%, #dfc79a 100%) padding-box,
      linear-gradient(180deg, #c49f68 0%, #94703b 42%, #694c22 100%) border-box;
    color: var(--ink-paper);
    box-shadow: inset 0 1px 0 rgba(255, 251, 240, 0.85), 0 3px 8px rgba(0, 0, 0, 0.55);
  }
  /* Brass Thumbtack at Top Center */
  .parchment-ticket::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6cc 0%, #d4a442 48%, #5e4010 92%);
    border: 1px solid #2e1d05;
  }
  .ticket-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #36200b;
    text-align: center;
    margin-top: 4px;
    border-bottom: 1px solid rgba(98, 64, 24, 0.28);
    padding-bottom: 5px;
  }
  .ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11.5px;
    padding: 3px 0;
    border-bottom: 1px dotted rgba(120, 84, 38, 0.2);
    color: var(--ink-paper-muted);
  }
  .ticket-row:last-child { border-bottom: none; }
  .ticket-row strong {
    color: var(--ink-paper);
    font-variant-numeric: tabular-nums;
  }

  /* =========================================================================
     SCULPTED 3D AUCTION BROWSE BARS (120fps Composited Slots!)
     ========================================================================= */
  .ah-main-well {
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(#17120d, #17120d) padding-box,
      linear-gradient(168deg, #0d0a06 0%, #1d160e 36%, #3a2c1d 74%, #503d28 100%) border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.52);
    padding: 8px;
    min-height: 540px;
  }

  /* Top of the list: the Filter button, and beside it what is being filtered */
  .ah-well-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .ah-well-tools .active-filter-bar { flex: 1 1 260px; min-width: 0; margin-bottom: 0; }

  /* Explicit Active Filter Indicator Bar */
  .active-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding: 6px 10px 6px 12px;
    border-radius: 5px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #22384f 0%, #172739 55%, #111d2b 100%) padding-box,
      linear-gradient(180deg, #8ac4ff 0%, #4c8cd6 32%, #295991 78%, #163357 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.55);
    font-size: 12px;
    color: #eaf4ff;
  }
  .active-filter-bar.is-visible { display: flex; }
  .active-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57b6ff;
    box-shadow: 0 0 7px #57b6ff;
    display: inline-block;
    flex-shrink: 0;
  }
  .active-filter-clear {
    --afc-bg: linear-gradient(180deg, #5e4729 0%, #3d2d18 100%);
    --afc-rim: linear-gradient(180deg, #d9ae5b 0%, #b0843a 35%, #5c4218 100%);
    appearance: none;
    cursor: pointer;
    font-family: var(--font-kicker);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff3d1;
    border: 1px solid transparent;
    border-radius: 4px;
    background-image: var(--afc-bg), var(--afc-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    padding: 3px 9px;
  }
  .active-filter-clear:hover {
    --afc-rim: linear-gradient(180deg, #ffe48f 0%, #e0b146 40%, #85611b 100%);
    color: #ffffff;
  }

  /* Beveled WoW Column Sort Header Strip */
  .ah-col-headers {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 70px 112px 98px 168px;
    gap: 6px;
    margin-bottom: 7px;
    padding-left: 54px;
  }
  .col-hdr {
    --hdr-bg: linear-gradient(180deg, #473a2b 0%, #2f251b 52%, #241c14 100%);
    --hdr-rim: linear-gradient(180deg, #856b46 0%, #614c31 28%, #3f311f 74%, #1a130c 100%);
    font-family: var(--font-kicker);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e8d5b2;
    border: 1px solid transparent;
    border-radius: 4px;
    background-image: var(--hdr-bg), var(--hdr-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    padding: 5px 9px;
    text-align: left;
    text-shadow: 0 1px 1px #000;
    cursor: pointer;
    user-select: none;
  }
  .col-hdr.num { text-align: right; }
  .col-hdr:hover {
    color: var(--gold-title);
    --hdr-rim: linear-gradient(180deg, #cca356 0%, #9e7936 30%, #664c20 76%, #2b1f0c 100%);
  }
  .col-hdr.is-sorted {
    color: var(--gold-title);
    --hdr-bg: linear-gradient(180deg, #594425 0%, #3b2c16 54%, #2b1f0f 100%);
    --hdr-rim: linear-gradient(180deg, #f7d37e 0%, #cfa046 30%, #876321 78%, #3d2b0d 100%);
  }

  .ah-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* Individual 3D Auction Slot: icon socket & slot bar share exact 48px outer height including border! */
  .ah-slot {
    display: flex;
    align-items: stretch;
    gap: 6px;
    min-height: 48px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    content-visibility: auto;
    contain-intrinsic-size: 48px;
  }
  .ah-slot:hover { text-decoration: none; }

  /* Socketed Item Icon with iOS-1 / Aqua Glass Sheen (Crisp zero-blur bevels in rows!) */
  .icon-socket {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #0b0806;
    border: 2px solid #7d623c;
    flex-shrink: 0;
    overflow: hidden;
  }
  .ah-slot > .icon-socket {
    height: auto;
    min-height: 48px;
    align-self: stretch;
  }
  .icon-socket img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Diagonal Top-Half Glass Specular Sheen */
  .icon-socket::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(172deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 43%, rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, 0.32) 100%);
    pointer-events: none;
  }

  /* The pointer over an item's icon in a list: the game's button highlight, a pale line and a
     blue glow just inside the border (the border keeps its quality colour), then the tooltip. */
  @media (hover: hover) {
    a.ah-slot[data-item-id] > .icon-socket::before {
      content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 4px; pointer-events: none; opacity: 0;
      mix-blend-mode: screen;
      box-shadow: inset 0 0 0 1px rgba(168, 184, 220, 0.9), inset 0 0 4px 3px rgba(48, 78, 150, 0.95);
    }
    a.ah-slot[data-item-id] > .icon-socket:hover::before { opacity: 1; }
  }
  /* The tooltip stands beside the icon the pointer is on, as the game anchors it to a button. */
  .gs-hover { position: fixed; z-index: 1000; left: 0; top: 0; width: 360px; max-width: calc(100vw - 16px); pointer-events: none; }
  .gs-hover .wow-tooltip { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85); }
  .icon-socket.icon-xl {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.85);
  }
  .icon-socket.q0 { border-color: #787878; }
  .icon-socket.q1 { border-color: #8c6f47; }
  .icon-socket.q2 { border-color: #28d911; }
  .icon-socket.q3 { border-color: var(--q3-rim); }
  .icon-socket.q4 { border-color: var(--q4-rim); }
  .icon-socket.q5 { border-color: var(--q5); }

  /* Crisp 3D Beveled Slate-Wood Slot Bar (0ms hover snap, exact 48px height matching .icon-socket!) */
  .ah-slot-bar {
    --slot-bg: linear-gradient(180deg, #382e23 0%, #271f18 52%, #1e1711 100%);
    --slot-rim: linear-gradient(180deg, #69543c 0%, #4d3d2b 26%, #33281c 74%, #17110b 100%);
    flex: 1;
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 70px 112px 98px 168px;
    gap: 6px;
    align-items: center;
    padding: 4px 11px;
    border-radius: 6px;
    border: 1px solid transparent;
    background-image: var(--slot-bg), var(--slot-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.52);
  }
  .prof-lvl {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-weight: 700;
    color: #ebd8b7;
    font-variant-numeric: tabular-nums;
  }
  .prof-lvl img {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    border: 1px solid #8c6f47;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
  }
  .ah-slot:hover .ah-slot-bar {
    --slot-bg: linear-gradient(180deg, #4f3d26 0%, #392b18 52%, #2b2011 100%);
    --slot-rim: linear-gradient(180deg, #f2ca72 0%, #c99b42 28%, #825f20 76%, #36250b 100%);
  }

  /* Tablets and foldables: the sidebar is still beside the list, so the columns tighten to fit */
  @media (min-width: 781px) and (max-width: 1140px) {
    .ah-col-headers, .ah-slot-bar { grid-template-columns: minmax(120px, 1fr) 46px 62px 88px 122px; }
    .ah-col-headers .col-hdr {
      padding-left: 6px;
      padding-right: 6px;
      font-size: 10px;
      letter-spacing: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  @media (max-width: 780px) {
    .ah-col-headers { display: none; }
    .ah-slot-bar {
      grid-template-columns: minmax(0, 1fr) auto;
      row-gap: 3px;
    }
    .ah-slot-bar .hide-sm { display: none; }
    .ah-slot-bar .show-sm { display: block; }
  }

  .item-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .q-text-0 { color: var(--q0); }
  .q-text-1 { color: var(--q1); }
  .q-text-2 { color: var(--q2); }
  .q-text-3 { color: var(--q3); }
  .q-text-4 { color: var(--q4); }
  .q-text-5 { color: var(--q5); }

  .item-meta {
    font-size: 11px;
    color: #b8a487;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Glossy Wax / Enamel Forever 1.60 Badge */
  .tag-160 {
    font-family: var(--font-kicker);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 1px 6px;
    border-radius: 3px;
    color: #dff2ff;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #3c92e6 0%, #1c5ca6 50%, #134480 100%) padding-box,
      linear-gradient(180deg, #a6d6ff 0%, #52a4f0 45%, #164887 100%) border-box;
  }
  .tag-flip {
    font-family: var(--font-kicker);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 1px 6px;
    border-radius: 3px;
    color: #291600;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #ffeaa6 0%, #ebb134 100%) padding-box,
      linear-gradient(180deg, #fff6cf 0%, #e6b23c 50%, #996b12 100%) border-box;
  }

  .cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* Glossy Enamel Delta Jewel Pills */
  .delta-jewel {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 1px #000;
  }
  .delta-up {
    color: #d9ffe5;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #2fb85d 0%, #197a39 50%, #125e2b 100%) padding-box,
      linear-gradient(180deg, #94f5b3 0%, #3ecf6e 45%, #115728 100%) border-box;
  }
  .delta-down {
    color: #ffe0dd;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #cf3c32 0%, #8f1d15 50%, #6e130d 100%) padding-box,
      linear-gradient(180deg, #ffaba4 0%, #e0554b 45%, #5c100b 100%) border-box;
  }
  .delta-flat {
    color: #c4b297;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #16110c 0%, #1f1812 100%) padding-box,
      linear-gradient(180deg, #120d09 0%, #2b2219 48%, #47392a 100%) border-box;
  }

  /* 3D Milled Stamped Gold / Silver / Copper Coins */
  .wow-money {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 1px #000;
    font-variant-numeric: tabular-nums;
  }
  .wow-money.money-lg { font-size: 18px; gap: 6px; }
  .wow-money.money-lg .wow-coin { width: 15px; height: 15px; }
  .wow-denom {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
  }
  .wow-coin {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
  }
  .coin-gold {
    background: radial-gradient(circle at 32% 28%, #fffbe0 0%, #ffe047 32%, #d48c00 72%, #6e4100 100%);
    border: 1px solid #382000;
  }
  .coin-silver {
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e1e7f0 35%, #8d98a8 74%, #434a57 100%);
    border: 1px solid #20252e;
  }
  .coin-copper {
    background: radial-gradient(circle at 32% 28%, #ffe0c7 0%, #eb864b 35%, #a34519 74%, #4f1c06 100%);
    border: 1px solid #2b0f03;
  }

  .more-bar {
    --more-bg: linear-gradient(180deg, #423320 0%, #2b2114 54%, #21180e 100%);
    --more-rim: linear-gradient(180deg, #bd924b 0%, #8c6a32 28%, #57401d 76%, #1f160b 100%);
    margin-top: 6px;
    padding: 8px 14px;
    width: 100%;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-title);
    border: 1px solid transparent;
    border-radius: 5px;
    background-image: var(--more-bg), var(--more-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.52);
    cursor: pointer;
    text-shadow: 0 1px 1px #000;
  }
  .more-bar:hover {
    --more-bg: linear-gradient(180deg, #544128 0%, #382a19 54%, #2b1f12 100%);
    --more-rim: linear-gradient(180deg, #f2ca72 0%, #c99b42 30%, #7d5b1f 78%, #33220b 100%);
    color: #fff3c7;
  }

  /* =========================================================================
     PHYSICAL HANGING BOTTOM TABS (WoW AuctionFrameTab1..4!)
     ========================================================================= */
  .ah-bottom-tabs {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 0 18px;
    flex-wrap: wrap;
    margin-top: -1px;
  }
  .hanging-tab {
    --tab-bg: linear-gradient(180deg, #261e16 0%, #362a1e 60%, #291f15 100%);
    --tab-rim: linear-gradient(180deg, #1a120a 0%, #5c4520 14%, #82622e 58%, #543e1a 100%);
    font-family: var(--font-display);
    font-size: 13px;
    color: #cbb899;
    padding: 7px 16px 8px;
    border-radius: 0 0 8px 8px;
    border: 2px solid transparent;
    border-top-width: 1px;
    background-image: var(--tab-bg), var(--tab-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    text-shadow: 0 1px 2px #000;
  }
  .hanging-tab:hover {
    color: #fff2c6;
    --tab-rim: linear-gradient(180deg, #1a120a 0%, #7a5c2b 14%, #ad843e 58%, #6e5122 100%);
  }
  .hanging-tab.is-active {
    color: var(--gold-title);
    font-weight: 700;
    padding-top: 10px;
    border-top-width: 0;
    --tab-bg: linear-gradient(180deg, #231c15 0%, #45341c 55%, #332512 100%);
    --tab-rim: linear-gradient(180deg, #87662a 0%, #d8ac54 55%, #9c742e 100%);
  }

  /* =========================================================================
     ITEM INSPECTOR VIEW (/item/:id — Tooltip + Parchment Pad + Brass Glass Chart)
     ========================================================================= */
  .inspector-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 224, 170, 0.12);
  }

  /* 4 Mechanical Enamel Counter Plaques */
  .counter-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
  }
  @media (max-width: 820px) {
    .counter-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .counter-plaque {
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(180deg, #352b20 0%, #221b14 52%, #19130e 100%) padding-box,
      linear-gradient(180deg, #9e7c48 0%, #755b34 24%, #4a3920 76%, #1c140b 100%) border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    padding: 9px 12px;
  }
  .counter-lbl {
    font-family: var(--font-kicker);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c7b293;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .fac-ico {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
  }
  .counter-val {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
    color: #fff8e8;
    font-variant-numeric: tabular-nums;
  }
  .counter-sub {
    font-size: 11px;
    color: #a89477;
    margin-top: 2px;
  }

  .inspector-grid {
    display: grid;
    grid-template-columns: 384px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  @media (max-width: 980px) {
    .inspector-grid { grid-template-columns: 1fr; }
  }

  /* Authentic WoW In-Game GameTooltip Box */
  .wow-tooltip {
    background: linear-gradient(180deg, #0e121c 0%, #080b12 100%);
    border: 2px solid #9e814d;
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 12.5px;
    line-height: 1.42;
    text-shadow: 1px 1px 0 #000;
  }
  .wow-tooltip .tt-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }
  .wow-tooltip .tt-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }
  .wow-tooltip .tt-ilvl { color: #ffd100; font-size: 11.5px; margin-top: 2px; }
  .wow-tooltip .tt-row { display: flex; justify-content: space-between; gap: 12px; }
  .wow-tooltip .tt-green { color: #1eff00; margin-top: 4px; }
  .wow-tooltip .tt-sell {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(158, 129, 77, 0.32);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbb899;
  }

  /* OS X Notes / Mercantile Ruled Cream Parchment Pad (Zero repeating-gradient cost!) */
  .ledger-pad {
    margin-top: 12px;
    border-radius: 5px;
    border: 1px solid transparent;
    /* Paper: margin rule, fine grain, soft mottling, a worn edge, then the sheet itself */
    background:
      linear-gradient(90deg, transparent 28px, rgba(186, 68, 56, 0.28) 28px, rgba(186, 68, 56, 0.28) 30px, transparent 30px) padding-box,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .23 0 0 0 0 .08 .8 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") padding-box,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .045' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 .42 0 0 0 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") padding-box,
      radial-gradient(ellipse 120% 90% at 50% 38%, transparent 58%, rgba(122, 82, 30, 0.2) 100%) padding-box,
      radial-gradient(ellipse 46% 30% at 82% 12%, rgba(255, 250, 232, 0.5) 0%, transparent 100%) padding-box,
      linear-gradient(180deg, #f7ecd4 0%, #eddcb8 65%, #e2cca1 100%) padding-box,
      linear-gradient(180deg, #c49f68 0%, #916d39 42%, #694c22 100%) border-box;
    color: var(--ink-paper);
    padding: 12px 14px 14px 38px;
    box-shadow: inset 0 1px 0 rgba(255, 251, 240, 0.85), inset 0 0 18px rgba(128, 86, 30, 0.14), 0 4px 12px rgba(0, 0, 0, 0.52);
  }
  .icon-socket, .icon-socket img, .peer-icon, .peer-icon img, .pad-mini-icon, .cat-icon, .cat-icon img { aspect-ratio: 1 / 1; flex-shrink: 0; }
  .ledger-pad h2, .ledger-pad h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 14.5px;
    color: #362009;
  }
  .pad-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
  }
  .pad-list li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(102, 68, 28, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .pad-list li:last-child { border-bottom: none; }
  /* "Reagent in" rows: icon, name, then the count, all on one centred line */
  .pad-use { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .pad-use .pad-item-link { min-width: 0; }
  .pad-use .pad-item-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pad-use .pad-qty { color: #785832; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
  .pad-more > summary { cursor: pointer; font-size: 11.5px; font-weight: 700; color: #6b3d06; padding: 5px 0 2px; list-style: none; }
  .pad-more > summary::-webkit-details-marker { display: none; }
  .pad-more[open] > summary { display: none; }
  .pad-badge {
    font-family: var(--font-kicker);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(74, 46, 14, 0.12);
    border: 1px solid rgba(74, 46, 14, 0.28);
    color: #4a2e0e;
    white-space: nowrap;
  }
  .pad-item-link {
    color: #2c1806;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
  }
  .pad-item-link:hover {
    color: #7d3f00;
    text-decoration: underline;
  }
  .pad-mini-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #3d2a10;
    box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.55), 0 1px 2px rgba(40, 22, 4, 0.45);
    background: #1a1208;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
  }
  /* Recipe materials get a larger socket so the art reads */
  .pad-subrow .pad-mini-icon { width: 26px; height: 26px; }
  .pad-item-link > span { line-height: 1.15; }
  .pad-subrow {
    font-size: 11.5px;
    color: #593e20;
    padding: 5px 0 4px 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  /* Brass-Trimmed Period Digest & Mailbox Net Gauge (Left Column) */
  .digest-box {
    margin-top: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(180deg, #342a1f 0%, #221b14 55%, #19130e 100%) padding-box,
      linear-gradient(180deg, #9e7d48 0%, #785e35 22%, #4a3920 78%, #1c140b 100%) border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    padding: 10px 12px;
  }
  .digest-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-title);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    text-shadow: 0 1px 1px #000;
  }
  .range-track {
    position: relative;
    height: 9px;
    border-radius: 5px;
    border: 1px solid transparent;
    background:
      linear-gradient(#120d08, #120d08) padding-box,
      linear-gradient(180deg, #090604 0%, #291f13 48%, #523f27 100%) border-box;
    margin: 6px 0 5px;
  }
  .range-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #28a856 0%, #deb04b 65%, #cf4538 100%);
  }
  .range-pip {
    position: absolute;
    top: -3px;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffbe0 0%, #ffd34d 48%, #7a5108 100%);
    border: 2px solid #140c04;
  }
  .digest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-top: 1px solid rgba(255, 224, 175, 0.08);
    color: #cbb899;
  }
  .digest-row strong { color: #f5ebd6; font-variant-numeric: tabular-nums; }

  /* Sunken Walnut Peer Trough on Left Column ("More in <Category>") */
  .peer-trough {
    margin-top: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(#17120d, #17120d) padding-box,
      linear-gradient(168deg, #0d0906 0%, #1d160e 36%, #3a2c1d 74%, #503d28 100%) border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.52);
    padding: 9px;
  }
  .peer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    padding: 0 2px;
  }
  .peer-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-title);
    text-shadow: 0 1px 1px #000;
  }
  .peer-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .peer-slot {
    --peer-bg: linear-gradient(180deg, #352b20 0%, #251d15 55%, #1d1610 100%);
    --peer-rim: linear-gradient(180deg, #634f38 0%, #4a3a28 28%, #302519 76%, #17100a 100%);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 5px;
    border-radius: 5px;
    border: 1px solid transparent;
    background-image: var(--peer-bg), var(--peer-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
    color: inherit;
    text-decoration: none;
  }
  .peer-slot:hover {
    --peer-bg: linear-gradient(180deg, #4d3b24 0%, #372917 55%, #291e10 100%);
    --peer-rim: linear-gradient(180deg, #edc56d 0%, #c4963f 30%, #7d5b1f 78%, #36250b 100%);
    text-decoration: none;
  }
  .peer-slot.is-current {
    --peer-bg: linear-gradient(180deg, #45351e 0%, #2b2012 100%);
    --peer-rim: linear-gradient(180deg, #f5cf78 0%, #c7983e 35%, #6e5019 100%);
  }
  .peer-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1.5px solid #7d623c;
    overflow: hidden;
    flex-shrink: 0;
    background: #0b0806;
  }
  .peer-icon.q2 { border-color: #28d911; }
  .peer-icon.q3 { border-color: var(--q3-rim); }
  .peer-icon.q4 { border-color: var(--q4-rim); }
  .peer-icon.q5 { border-color: var(--q5); }
  .peer-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .peer-name {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px #000;
  }

  /* Brass-Bezel Curved Glass Ticker Instrument Panel */
  .glass-instrument {
    border: 1px solid transparent;
    border-radius: 6px;
    background:
      linear-gradient(180deg, #33291e 0%, #211a13 100%) padding-box,
      linear-gradient(180deg, #a6834b 0%, #7d6136 20%, #4d3b20 80%, #1c140b 100%) border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.48);
    padding: 11px 13px;
  }
  .instrument-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 9px;
  }
  .instrument-title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gold-title);
    text-shadow: 0 1px 2px #000;
  }
  .chart-screen {
    position: relative;
    border-radius: 5px;
    border: 2px solid #120d08;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.01) 36%, transparent 38%),
      radial-gradient(ellipse 80% 90% at 50% 0%, rgba(46, 138, 82, 0.16) 0%, transparent 75%),
      #0c120f;
    overflow: hidden;
  }
  .chart-svg {
    width: 100%;
    height: 225px;
    display: block;
  }
  .chart-readout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 11.5px;
    color: #cbb899;
  }

  /* Same-Realm Faction Quotes & Global Regional Matrix */
  .quote-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
  }
  @media (max-width: 720px) {
    .quote-cards { grid-template-columns: 1fr; }
  }
  .quote-card {
    --qc-bg: linear-gradient(180deg, #2e251c 0%, #1e1812 100%);
    --qc-rim: linear-gradient(180deg, #80653e 0%, #5e492c 28%, #3d2f1c 76%, #1f170e 100%);
    border: 1px solid transparent;
    border-radius: 5px;
    background-image: var(--qc-bg), var(--qc-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    padding: 9px 11px;
  }
  .quote-card.is-current {
    --qc-bg: linear-gradient(180deg, #42331d 0%, #261d11 100%);
    --qc-rim: linear-gradient(180deg, #ffe08a 0%, #e0b146 30%, #966e20 78%, #4d360e 100%);
  }

  .region-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }
  .region-table th, .region-table td {
    padding: 6px 9px;
    border-bottom: 1px solid rgba(255, 224, 175, 0.09);
    text-align: left;
  }
  .region-table th {
    font-family: var(--font-kicker);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-title);
  }
  .region-table th.num, .region-table td.num { text-align: right; }
  .region-table tbody tr { cursor: pointer; }
  .region-table tbody tr:hover { background: rgba(255, 211, 77, 0.09); }

  /* Desk Brass Nameplate Footer & Non-Intrusive Legal Plaque */
  .desk-footer {
    margin-top: 22px;
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #c2ae90;
    text-shadow: 0 1px 1px #000;
    border-top: 1px solid rgba(207, 160, 70, 0.22);
  }
  .desk-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .desk-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .desk-footer-links a {
    color: #ebd39a;
    text-decoration: none;
    font-weight: 700;
  }
  .desk-footer-links a:hover {
    color: var(--gold-title);
    text-decoration: underline;
  }
  .desk-footer-about {
    max-width: 860px;
    margin: 4px 0 2px;
    line-height: 1.55;
    color: #c2ae90;
  }
  .desk-footer-about p { margin: 0 0 6px; }
  .desk-footer-about a { color: #ebd39a; font-weight: 700; text-decoration: none; }
  .desk-footer-about a:hover { color: var(--gold-title); text-decoration: underline; }
  .desk-footer-notice {
    font-size: 11px;
    color: #9e8b70;
    line-height: 1.45;
  }

  .sort-arrow {
    color: #ffd34d;
    font-size: 9.5px;
    margin-left: 4px;
    opacity: 0.95;
  }

  #legal-rocker a.rocker-btn,
  #legal-rocker a.rocker-btn:hover {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }

  /* Counting-House Legal & About Folio (/about, /privacy, /terms) */
  .legal-folio {
    max-width: 880px;
    margin: 4px auto 8px;
    border: 2px solid transparent;
    border-radius: 6px;
    background:
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 245, 220, 0.55) 0%, transparent 72%) padding-box,
      linear-gradient(180deg, #f3e6cb 0%, #ead6b1 55%, #dfca9f 100%) padding-box,
      linear-gradient(180deg, #c79d5b 0%, #916a35 45%, #664920 100%) border-box;
    color: #2b1d0e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 24px rgba(0, 0, 0, 0.55);
    padding: 24px 30px 28px;
    line-height: 1.62;
    font-size: 13.5px;
  }
  @media (max-width: 640px) {
    .legal-folio { padding: 16px 16px 20px; }
  }
  .legal-folio h1 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 23px;
    color: #3b2209;
    letter-spacing: 0.02em;
  }
  .legal-folio .legal-updated {
    margin: 0 0 16px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #704f29;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(112, 79, 41, 0.3);
  }
  .legal-folio h2 {
    margin: 20px 0 7px;
    font-family: var(--font-display);
    font-size: 16px;
    color: #4a2b0b;
    border-bottom: 1px solid rgba(112, 79, 41, 0.2);
    padding-bottom: 3px;
  }
  .legal-folio h3 {
    margin: 14px 0 5px;
    font-size: 13.5px;
    font-weight: 700;
    color: #3b2209;
  }
  .legal-folio p { margin: 0 0 10px; }
  .legal-folio ul { margin: 0 0 12px 20px; padding: 0; }
  .legal-folio li { margin-bottom: 5px; }
  .legal-folio code {
    background: rgba(65, 40, 14, 0.11);
    border: 1px solid rgba(112, 79, 41, 0.25);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 12px;
    color: #3d2106;
  }
  .legal-folio a {
    color: #6e3704;
    font-weight: 700;
    text-decoration: underline;
  }
  .legal-folio a:hover { color: #3b1c00; }
  /* A guide is not one of the three disclosure pages: its bar carries its own label and, until
     there is a second guide to switch to, no tab row. */
  .folio-bar-label { color: #d6c2a1; font-family: var(--font-display); font-size: 14px; }
  .folio-bar-label-guide { display: none; }
  #view-legal:has(#legal-doc-what-is-wow-forever[style*="block"]) .folio-bar-label-legal,
  #view-legal:has(#legal-doc-what-is-wow-forever[style*="block"]) #legal-rocker { display: none; }
  #view-legal:has(#legal-doc-what-is-wow-forever[style*="block"]) .folio-bar-label-guide { display: inline; }
  .legal-folio ol { margin: 0 0 12px 22px; padding: 0; }
  .legal-folio h2[id] { scroll-margin-top: 14px; }
  .legal-folio .legal-updated a { color: inherit; }
  /* Artwork in the folio: rounded, a bevelled brass edge, lifted off the page. */
  .folio-art-row { display: flex; gap: 14px; margin: 14px 0 18px; }
  .folio-art { flex: 1 1 0; min-width: 0; margin: 0; }
  .folio-art-frame {
    position: relative;
    display: block;
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(180deg, #e6c684 0%, #b48a45 38%, #7a5827 70%, #523a16 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(0, 0, 0, 0.35) inset,
      0 10px 22px rgba(43, 29, 14, 0.45), 0 2px 5px rgba(43, 29, 14, 0.4);
  }
  .folio-art-frame img { display: block; width: 100%; height: auto; border-radius: 9px; }
  .folio-art-frame::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 9px;
    pointer-events: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  }
  .folio-art-credit { margin: 18px 0 0; font-size: 11.5px; color: #704f29; }
  /* A video is a still until it is clicked; only then does the player load from YouTube. */
  .legal-folio a.folio-video { display: block; max-width: 640px; margin: 14px auto 18px; text-decoration: none; }
  .folio-video .folio-art-frame { aspect-ratio: 16 / 9; }
  .folio-video .folio-art-frame img { height: 100%; object-fit: cover; }
  .folio-video iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 9px; }
  .folio-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8 0%, #e2b23f 45%, #9a6a14 100%);
    box-shadow: 0 0 0 3px rgba(43, 29, 14, 0.75), 0 6px 16px rgba(0, 0, 0, 0.6);
  }
  .folio-video-play::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 20px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #3b2209;
  }
  .folio-video:hover .folio-video-play { filter: brightness(1.12); }
  .folio-video-cap { display: block; margin-top: 7px; font-size: 12px; font-weight: 700; color: #6e3704; text-align: center; }
  @media (max-width: 640px) {
    .folio-art-pair { flex-direction: column; }
  }
  .legal-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 14px;
  }
  .legal-pill {
    background: rgba(65, 40, 14, 0.09);
    border: 1px solid rgba(112, 79, 41, 0.34);
    border-radius: 4px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #462809;
  }

  .empty-box {
    padding: 38px 18px;
    text-align: center;
    color: #c2ae90;
    font-family: var(--font-display);
    font-size: 14.5px;
  }

  .empty-filter-wrap {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 14px;
  }
  .empty-filter-card {
    max-width: 540px;
    width: 100%;
    padding: 24px 22px 22px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, #241c14 0%, #19130d 100%) padding-box,
      linear-gradient(180deg, #7d633d 0%, #4d3b23 46%, #281e11 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 234, 184, 0.1), 0 8px 22px rgba(0, 0, 0, 0.52);
  }
  .empty-filter-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-title);
    text-shadow: 0 1px 2px #000;
    margin-bottom: 5px;
  }
  .nf-code {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--gold-title);
    text-shadow: 0 2px 3px #000;
    margin-bottom: 10px;
  }
  .nf-code span {
    display: inline-block;
    font-size: 44px;
    margin: 0 2px;
    transform: rotate(-12deg);
  }
  a.empty-filter-pill,
  a.gel-btn {
    text-decoration: none;
  }
  .empty-filter-sub {
    font-size: 12.5px;
    color: #cbb899;
    margin-bottom: 14px;
  }
  .empty-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-bottom: 18px;
  }
  .empty-filter-pill {
    --efp-bg: linear-gradient(180deg, #22384f 0%, #162536 100%);
    --efp-rim: linear-gradient(180deg, #8ac4ff 0%, #4681c7 40%, #1f4573 100%);
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-image: var(--efp-bg), var(--efp-rim);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 3px rgba(0, 0, 0, 0.45);
    font-family: var(--font-body);
    font-size: 12px;
    color: #eaf4ff;
    line-height: 1.3;
  }
  .empty-filter-pill:hover {
    --efp-bg: linear-gradient(180deg, #2b4663 0%, #1c2f45 100%);
    --efp-rim: linear-gradient(180deg, #b5daff 0%, #63a0e8 42%, #2b5d99 100%);
    color: #ffffff;
  }
  .empty-filter-pill .efp-kicker {
    color: #9ec8f5;
    font-size: 11px;
    font-weight: 600;
  }
  .empty-filter-pill .efp-val {
    font-weight: 700;
    color: #ffffff;
  }
  .empty-filter-pill .efp-x {
    color: #ffd34d;
    font-weight: 700;
    font-size: 13px;
    margin-left: 2px;
    line-height: 1;
  }
  .empty-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px;
  }

  /* Sidebar categories are links to /c/<path>; these three lines are what a <button> set by default. */
  a.cat-btn {
    line-height: normal;
    font-weight: 400;
    text-decoration: none;
  }
  a.cat-btn:hover { text-decoration: none; }
  a.pick-chip, a.pick-chip:hover { text-decoration: none; }

  /* The item name is the page heading on /item/:id; it keeps the look of the inline label it replaced. */
  .insp-h1 {
    display: inline;
    margin: 0;
    font: inherit;
    font-weight: 700;
    letter-spacing: inherit;
  }

/* Screen measurement for Traccia, with no script: the browser asks for one /screen.gif per
   measurement (viewport width, viewport height, pixel density with pointer) and the address
   says which bucket matched, then one /screen.gif?i=hover the first time the pointer is over
   the page. Draws nothing. Generated by `traccia screen-css /screen.gif` (its closing comment,
   the footer image, is at the end of the footer); regenerate rather than edit. Azebott serves
   this stylesheet too and answers the same path. */
html::after{content:"";position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none;background-image:var(--tr-w,none),var(--tr-h,none),var(--tr-d,none)}
:root{--tr-w:url("/screen.gif?w=0")}
@media (min-width:320px){:root{--tr-w:url("/screen.gif?w=320")}}
@media (min-width:360px){:root{--tr-w:url("/screen.gif?w=360")}}
@media (min-width:375px){:root{--tr-w:url("/screen.gif?w=375")}}
@media (min-width:390px){:root{--tr-w:url("/screen.gif?w=390")}}
@media (min-width:412px){:root{--tr-w:url("/screen.gif?w=412")}}
@media (min-width:430px){:root{--tr-w:url("/screen.gif?w=430")}}
@media (min-width:480px){:root{--tr-w:url("/screen.gif?w=480")}}
@media (min-width:600px){:root{--tr-w:url("/screen.gif?w=600")}}
@media (min-width:768px){:root{--tr-w:url("/screen.gif?w=768")}}
@media (min-width:820px){:root{--tr-w:url("/screen.gif?w=820")}}
@media (min-width:1024px){:root{--tr-w:url("/screen.gif?w=1024")}}
@media (min-width:1280px){:root{--tr-w:url("/screen.gif?w=1280")}}
@media (min-width:1366px){:root{--tr-w:url("/screen.gif?w=1366")}}
@media (min-width:1440px){:root{--tr-w:url("/screen.gif?w=1440")}}
@media (min-width:1536px){:root{--tr-w:url("/screen.gif?w=1536")}}
@media (min-width:1680px){:root{--tr-w:url("/screen.gif?w=1680")}}
@media (min-width:1920px){:root{--tr-w:url("/screen.gif?w=1920")}}
@media (min-width:2560px){:root{--tr-w:url("/screen.gif?w=2560")}}
@media (min-width:3440px){:root{--tr-w:url("/screen.gif?w=3440")}}
:root{--tr-h:url("/screen.gif?h=0")}
@media (min-height:480px){:root{--tr-h:url("/screen.gif?h=480")}}
@media (min-height:568px){:root{--tr-h:url("/screen.gif?h=568")}}
@media (min-height:640px){:root{--tr-h:url("/screen.gif?h=640")}}
@media (min-height:667px){:root{--tr-h:url("/screen.gif?h=667")}}
@media (min-height:720px){:root{--tr-h:url("/screen.gif?h=720")}}
@media (min-height:768px){:root{--tr-h:url("/screen.gif?h=768")}}
@media (min-height:800px){:root{--tr-h:url("/screen.gif?h=800")}}
@media (min-height:844px){:root{--tr-h:url("/screen.gif?h=844")}}
@media (min-height:900px){:root{--tr-h:url("/screen.gif?h=900")}}
@media (min-height:932px){:root{--tr-h:url("/screen.gif?h=932")}}
@media (min-height:1024px){:root{--tr-h:url("/screen.gif?h=1024")}}
@media (min-height:1080px){:root{--tr-h:url("/screen.gif?h=1080")}}
@media (min-height:1200px){:root{--tr-h:url("/screen.gif?h=1200")}}
@media (min-height:1440px){:root{--tr-h:url("/screen.gif?h=1440")}}
:root{--tr-d:url("/screen.gif?dpr=1&pointer=f")}
@media (min-resolution:1.5dppx){:root{--tr-d:url("/screen.gif?dpr=2&pointer=f")}}
@media (min-resolution:2.5dppx){:root{--tr-d:url("/screen.gif?dpr=3&pointer=f")}}
@media (pointer:coarse){:root{--tr-d:url("/screen.gif?dpr=1&pointer=c")}}
@media (pointer:coarse) and (min-resolution:1.5dppx){:root{--tr-d:url("/screen.gif?dpr=2&pointer=c")}}
@media (pointer:coarse) and (min-resolution:2.5dppx){:root{--tr-d:url("/screen.gif?dpr=3&pointer=c")}}
html:hover::before{content:"";position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none;background-image:url("/screen.gif?i=hover")}
