/* ScapeCraft. OSRS interface, modern and clean. 8px grid. */

:root {
  --bg: #1b1510;
  --bg-2: #221a13;
  --panel: #2d241b;
  --panel-2: #352a1f;
  --border: #5b4a36;
  --border-soft: #463828;
  --slot: #3a2f24;
  --slot-line: #1a140f;
  --hi: rgba(255, 236, 200, 0.06);
  --gold: #ffb83f;
  --gold-hi: #ffd27a;
  --gold-ink: #2a1c08;
  --yellow: #ffff00;
  --green: #00ff80;
  --text: #f4ead8;
  --text-2: #cdbb9c;
  --text-3: #a08c6e;
  --good: #5fe08a;
  --bad: #ff7a66;
  --line: #5b4a36;

  --r-tile: 8px;
  --r-sheet: 16px;
  --r-ctl: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-med: 180ms;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gutter: 16px;
  --panel-w: 440px;
  --atlas: none;

  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.375;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
[hidden] { display: none !important; }
svg { display: block; }
.num, input[type="number"], .tabnum { font-variant-numeric: tabular-nums; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-ctl); }

/* ---------- Sprites ---------- */
.spr {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  background-image: var(--atlas);
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@supports (image-rendering: pixelated) { .spr { image-rendering: pixelated; } }
.spr-none { background: none; }
.slot {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--slot);
  border: 1px solid var(--slot-line);
  border-radius: 6px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .28), inset -1px -1px 0 var(--hi);
}
.slot-sm { width: 40px; height: 40px; border-radius: 6px; }
.slot-lg { width: 80px; height: 80px; border-radius: 8px; }
.slot-lg .spr { transform: scale(2); }
.qty {
  position: absolute;
  left: 3px;
  top: 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
.q-yellow { color: var(--yellow); }
.q-white { color: #fff; }
.q-green { color: var(--green); }

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(8px + var(--safe-t)) var(--gutter) 8px;
  background: linear-gradient(var(--bg) 85%, rgba(27, 21, 16, .92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand-mark { width: 28px; height: 28px; color: var(--gold); }

.search { position: relative; }
.search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 48px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--hi), inset 0 2px 6px rgba(0, 0, 0, .25);
  font-size: 17px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible,
.search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 var(--hi), 0 0 0 3px rgba(255, 184, 63, .22);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-2);
}
.search-clear svg { width: 20px; height: 20px; }
.search-clear:active { background: var(--panel-2); }

/* ---------- Filters ---------- */
.filters { padding: 0 0 8px; }
.chip-row {
  display: flex;
  gap: 8px;
  padding: 8px var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-sep { flex: none; width: 1px; margin: 8px 0; background: var(--border-soft); }
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--gutter);
  flex-wrap: wrap;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 14px 0 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--hi);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:active { transform: scale(.96); }
.chip .spr { margin: -4px -2px -4px -6px; }
.chip-svg { width: 18px; height: 18px; margin-right: 4px; color: var(--text-2); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.chip[aria-pressed="true"] .chip-svg { color: var(--gold-ink); }
.chip.skill[aria-pressed="true"] {
  background: color-mix(in srgb, var(--c) 30%, var(--panel));
  border-color: var(--c);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--c);
}
.chip-all { padding: 0 16px; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
}
.seg button {
  min-width: 44px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.seg button:active { transform: scale(.96); }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--gold);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 1px var(--border);
}
.seg-sm { height: 40px; }
.seg-sm button { font-size: 14px; padding: 0 10px; }

/* ---------- Results grid ---------- */
.results { padding: 0 var(--gutter) calc(32px + var(--safe-b)); }
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 4px 0 8px;
}
.count { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.grid { position: relative; contain: layout style; }
.tile {
  position: absolute;
  left: 0;
  top: 0;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  box-shadow: inset 0 1px 0 var(--hi);
  text-align: center;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tile:active { background: var(--panel-2); }
@media (hover: hover) { .tile:hover { border-color: #7a6448; background: var(--panel-2); } }
.tile[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--gold); }
.tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lvl {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c, var(--gold)) 22%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 60%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: color-mix(in srgb, var(--c, var(--gold)) 55%, #fff);
  font-variant-numeric: tabular-nums;
}
.tile-fav { position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; color: var(--gold); }
.empty {
  margin: 48px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Sheet (mobile bottom sheet, desktop right panel) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 5, 3, .6);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.scrim.on { opacity: 1; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--safe-t) + 8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: inset 0 1px 0 var(--hi), 0 -8px 32px rgba(0, 0, 0, .5);
  transform: translate3d(0, 100%, 0);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  will-change: transform;
}
.sheet.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform var(--t-med) var(--ease), visibility 0s;
}
.sheet.dragging { transition: none; }
.sheet-grip {
  flex: none;
  display: grid;
  place-items: center;
  height: 20px;
  touch-action: none;
}
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--border); }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
  touch-action: none;
}
.sheet-head.scrolled { border-bottom-color: var(--border-soft); }
.sheet-title {
  flex: 1;
  min-width: 0;
  margin: 0 4px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.sheet-head.scrolled .sheet-title { opacity: 1; }
.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--text-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:active { transform: scale(.96); background: var(--panel-2); }
@media (hover: hover) { .icon-btn:hover { background: var(--panel-2); color: var(--text); } }
.fav-btn[aria-pressed="true"] { color: var(--gold); }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) calc(32px + var(--safe-b));
}
.sheet-empty { display: none; }

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .app { margin-right: var(--panel-w); }
  .scrim { display: none !important; }
  .sheet {
    left: auto;
    top: 0;
    width: calc(var(--panel-w) + var(--safe-r));
    padding-right: var(--safe-r);
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--border);
    box-shadow: inset 1px 0 0 var(--hi);
    transform: none;
    visibility: visible;
    transition: none;
  }
  .sheet-grip { display: none; }
  .sheet-head { padding: 8px 12px 4px; min-height: 64px; }
  .sheet-body { padding: 0 24px 40px; }
  .sheet:not(.has-item) .sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    padding-bottom: 64px;
    color: var(--text-3);
    font-weight: 600;
  }
  .sheet:not(.has-item) #sheetClose { display: none; }
  .sheet-empty p { margin: 0; }
  .sheet-empty-slot {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    background: var(--slot);
    border: 1px solid var(--slot-line);
    border-radius: 8px;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .28), inset -1px -1px 0 var(--hi);
  }
  .sheet-empty-slot svg { width: 40px; height: 40px; color: var(--border); }
}

/* ---------- Detail ---------- */
.d-head { display: flex; gap: 16px; align-items: flex-start; padding: 4px 0 16px; }
.d-head-main { min-width: 0; flex: 1; padding-top: 2px; }
.d-name { margin: 0 0 8px; font-size: 24px; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}
.badge .spr { margin: -5px -4px -5px -6px; transform: scale(.75); }
.badge svg { width: 14px; height: 14px; }
.badge.skill { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--bg-2)); }
.badge.mem { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.badge.f2p { color: var(--text-2); }
.badge.raw { color: var(--text-2); }
.quests { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; }
.quests-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.badge.quest { color: #9fd0ff; border-color: rgba(120, 180, 255, .4); background: rgba(70, 120, 200, .14); white-space: normal; text-align: left; }

.section { padding: 16px 0; border-top: 1px solid var(--border-soft); }
.section:first-child { border-top: 0; }
.h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.h3 small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-3); }

.methods { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; height: auto; min-height: 44px; }
.methods::-webkit-scrollbar { display: none; }
.methods-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.methods.methods-list button { justify-content: flex-start; min-height: 44px; padding: 0 12px; text-align: left; white-space: normal; }
.methods:not(.methods-list) button { white-space: normal; flex: 1 1 0; padding: 4px 10px; line-height: 1.2; }
.methods button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; }
.methods .spr { margin: -6px -4px -6px -8px; transform: scale(.75); }

.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.facts b { color: var(--text); font-weight: 650; }

/* Calculator */
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.step-btn {
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hi), 0 2px 0 var(--slot-line);
  color: var(--gold);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.step-btn svg { width: 24px; height: 24px; }
.step-btn:active { transform: scale(.96); background: var(--slot); }
.step-btn:disabled { color: var(--text-3); opacity: .6; }
.make-input {
  width: 100%;
  height: 56px;
  min-width: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 750;
  background: var(--slot);
  border: 1px solid var(--slot-line);
  border-radius: 12px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .28), inset -1px -1px 0 var(--hi);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.make-input::-webkit-outer-spin-button, .make-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.make-input:focus { outline: none; border-color: var(--gold); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .28), 0 0 0 3px rgba(255, 184, 63, .22); }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.quick button {
  height: 44px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.quick button:active { transform: scale(.96); }
.quick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.make-meta { margin: 8px 0 0; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.stats { display: grid; gap: 1px; margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); background: var(--border-soft); }
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 12px;
  background: var(--bg-2);
  font-variant-numeric: tabular-nums;
}
.stat .spr { margin: -4px -4px -4px -8px; }
.stat-label { flex: 1; min-width: 0; font-size: 15px; color: var(--text-2); }
.stat-label small { display: block; font-size: 12px; color: var(--text-3); }
.stat-val { font-size: 16px; font-weight: 700; color: var(--text); text-align: right; white-space: nowrap; }
.stat-val small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
.stat-val.good { color: var(--good); }
.stat-val.bad { color: var(--bad); }
#dStats > .stats ~ .stats { margin-top: 8px; }
.note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* Rows (materials, shopping list, used in) */
.rows { display: grid; gap: 6px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  text-align: left;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
button.row:active { background: var(--slot); }
@media (hover: hover) { button.row:hover { border-color: var(--border); } }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-size: 15px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.row-sub { display: block; font-size: 13px; color: var(--text-3); }
.row-end { text-align: right; white-space: nowrap; }
.row-qty { display: block; font-size: 18px; font-weight: 750; color: var(--text); }
.row-cost { display: block; font-size: 13px; color: var(--text-3); }
.total-row { display: flex; justify-content: space-between; padding: 12px 12px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.total-row span:first-child { color: var(--text-2); }
.more-btn {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--text-2);
  font-weight: 650;
  font-size: 14px;
}

/* Crafting tree */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 19px; }
.tree li { position: relative; }
.tree ul > li { padding-left: 14px; }
.tree ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 26px;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-bottom-left-radius: 8px;
}
.tree ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 0;
  border-left: 2px solid var(--line);
}
.tree ul > li:last-child::after { display: none; }
.tn { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; }
.tn .slot-sm .spr { transform: none; }
.tn-name {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  border-radius: 6px;
  padding: 0 4px;
}
.tn-name b { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; line-height: 1.2; }
.tn-name span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) { button.tn-name:hover b { color: var(--gold); } }
.tn-qty { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag {
  flex: none;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
  line-height: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--slot);
  border: 1px solid var(--border-soft);
}
.tn-toggle {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-right: -8px;
  border-radius: 8px;
  color: var(--text-2);
}
.tn-toggle svg { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
.tn-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.tn-toggle:active { background: var(--slot); }
.tn-spacer { flex: none; width: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
