/* TreeX skin — "pine at midnight": deep evergreen night base, holly-red accent,
   warm gold support. Layers on core.css (the family chrome); only token VALUES
   and TreeX's own components live here. */
:root {
  --sx-accent: #ff5a5f;
  --sx-accent2: #f2c84b;
  --sx-accent-hover: #ff7276;
  --sx-accent-ink: #2a0608;
  --sx-accent-soft: rgba(255, 90, 95, .16);
  --sx-bg: #0b1513;
  --sx-bg-hi: #10201c;
  --sx-bg-lo: #070e0c;
  --sx-panel: #10201c;
  --sx-panel2: #152a25;
  --sx-surface: #132520;
  --sx-surface2: #1a322b;
  --sx-glow-1: rgba(255, 90, 95, .16);
  --sx-glow-2: rgba(242, 200, 75, .12);
  --tx-gold: #f2c84b;
  --tx-pine: #2e8b57;
}

/* --- landing ---------------------------------------------------------------- */
.tx-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 44px 18px 18px; }
.tx-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.5px; }
.tx-hero h1 .hl { color: var(--sx-accent); }
.tx-hero p.lead { color: var(--sx-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; margin: 0 0 22px; max-width: 560px; }
.tx-hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tx-hero .art { position: relative; aspect-ratio: 1000 / 1250; max-height: 620px; justify-self: center; width: 100%; max-width: 480px; }
.tx-hero .art iframe, .tx-hero .art svg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .tx-hero { grid-template-columns: 1fr; text-align: center; } .tx-hero .btns { justify-content: center; } .tx-hero p.lead { margin-inline: auto; } }
.tx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 1120px; margin: 18px auto 40px; padding: 0 18px; }
.tx-card { background: var(--sx-panel); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 18px; }
.tx-card .ico { font-size: 26px; margin-bottom: 8px; }
.tx-card h3 { margin: 0 0 6px; font-size: 16px; }
.tx-card p { margin: 0; color: var(--sx-muted); font-size: 14px; line-height: 1.55; }

/* --- dashboard -------------------------------------------------------------- */
.tx-dash { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; max-width: 1280px; margin: 0 auto; padding: 16px; }
@media (max-width: 1000px) { .tx-dash { grid-template-columns: 1fr; } }
.tx-panel { background: var(--sx-panel); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 18px; margin-bottom: 16px; }
.tx-panel h3 { margin: 0 0 4px; font-size: 17px; }
.tx-panel .sub { color: var(--sx-muted); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }
.tx-preview { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0d0f16; border: 1px solid var(--sx-border2); }
.tx-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tx-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tx-tabs button { border: 1px solid var(--sx-border); background: var(--sx-surface); color: var(--sx-text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tx-tabs button.on { background: var(--sx-accent); color: var(--sx-accent-ink); border-color: transparent; }
.tx-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tx-row > * { flex: none; }
.tx-grow { flex: 1 1 auto !important; min-width: 0; }
.tx-field { margin-bottom: 14px; }
.tx-field > label:not(.sx-toggle) { display: block; font-size: 12px; color: var(--sx-muted2); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 6px; font-weight: 700; }
.tx-hint { font-size: 12.5px; color: var(--sx-muted); margin: 6px 0 0; line-height: 1.5; }
.tx-copy { display: flex; gap: 8px; }
.tx-copy input { font-family: var(--sx-mono); font-size: 12.5px; }
.tx-skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tx-skin { position: relative; border: 2px solid var(--sx-border); border-radius: 12px; background: var(--sx-surface); cursor: pointer; padding: 6px 6px 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--sx-text); }
.tx-skin svg { width: 100%; aspect-ratio: 1000 / 1250; display: block; }
.tx-skin.on { border-color: var(--sx-accent); box-shadow: 0 0 0 3px var(--sx-accent-soft); }
.tx-skin.locked { cursor: pointer; }
.tx-skin.locked svg { filter: grayscale(.85) brightness(.6); }
.tx-lock { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.7); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.tx-tiers .tier { display: grid; grid-template-columns: 1fr 36px; gap: 6px 8px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sx-border); }
.tx-tiers .tier .tx-kindsets { grid-column: 1 / -1; grid-row: 2; }
.tx-tiers .tier input { padding: 8px 10px; }
.tx-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.tx-kind { width: 38px; height: 44px; border: 2px solid var(--sx-border); border-radius: 10px; background: var(--sx-surface2); cursor: pointer; padding: 2px; position: relative; }
.tx-kind svg { width: 100%; height: 100%; }
.tx-kind.on { border-color: var(--sx-accent); }
.tx-kind.locked { opacity: .45; }
.tx-kind.locked::after { content: '🔒'; position: absolute; right: -4px; top: -6px; font-size: 11px; }
.tx-banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.tx-banner.warn { background: rgba(242,200,75,.08); border-color: rgba(242,200,75,.35); }
.tx-banner.info { background: rgba(127,208,255,.07); border-color: rgba(127,208,255,.3); }
.tx-banner.up { background: rgba(255,90,95,.08); border-color: rgba(255,90,95,.35); }
.tx-banner a { color: var(--sx-accent2); font-weight: 700; }
.tx-list { max-height: 360px; overflow: auto; }
.tx-list .it { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--sx-border); font-size: 14px; }
.tx-list .it svg { width: 26px; height: 32px; flex: none; }
.tx-list .it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-list .it .meta { color: var(--sx-muted); font-size: 12.5px; }
.tx-list .it button { background: none; border: 0; color: var(--sx-muted); cursor: pointer; font-size: 16px; }
.tx-cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tx-cal button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--sx-border); background: var(--sx-surface2); color: var(--sx-text); font: inherit; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 15px; }
.tx-cal button small { font-size: 16px; }
.tx-cal button.open { background: rgba(242,200,75,.14); border-color: rgba(242,200,75,.5); }
.tx-cal button.ready { border-color: var(--sx-accent); box-shadow: 0 0 0 2px var(--sx-accent-soft); }
.tx-cal button:disabled { opacity: .45; cursor: default; }
.tx-cal button.open:disabled { opacity: 1; }
.tx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tx-stat { background: var(--sx-surface); border: 1px solid var(--sx-border); border-radius: 12px; padding: 10px 12px; }
.tx-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.tx-stat span { font-size: 12px; color: var(--sx-muted); }
.tx-store { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tx-item { background: var(--sx-surface); border: 1px solid var(--sx-border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.tx-item .pv { display: flex; justify-content: center; gap: 4px; height: 92px; }
.tx-item .pv svg { height: 100%; }
.tx-item h4 { margin: 0; font-size: 14.5px; }
.tx-item p { margin: 0; font-size: 12.5px; color: var(--sx-muted); line-height: 1.45; flex: 1; }
.tx-item .buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tx-item .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.tx-obs { font-size: 13px; line-height: 1.6; background: var(--sx-surface); border: 1px dashed var(--sx-border2); border-radius: 10px; padding: 10px 12px; }
.tx-obs code { font-family: var(--sx-mono); background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 5px; }
.tx-tierbar { position: fixed; left: 14px; bottom: 14px; z-index: 60; background: var(--sx-panel2); border: 1px solid var(--sx-border); border-radius: 999px; padding: 6px 8px 6px 14px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; box-shadow: var(--sx-shadow); }
.tx-tierbar button { border: 1px solid var(--sx-border); background: var(--sx-surface); color: var(--sx-text); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-weight: 700; }
.tx-tierbar button.on { background: var(--sx-accent); color: var(--sx-accent-ink); }

/* --- How-to guide (guide.js) ------------------------------------------------ */
.txg-open { overflow: hidden; }
.txg-back { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 10, 8, .72); backdrop-filter: blur(4px); }
.txg-back[hidden] { display: none; }
.txg-card { position: relative; width: min(760px, 100%); max-height: min(92vh, 860px); display: flex; flex-direction: column; background: var(--sx-panel); border: 1px solid var(--sx-border2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; }
.txg-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sx-surface2); color: var(--sx-text); font-size: 22px; line-height: 1; cursor: pointer; }
.txg-head { padding: 18px 56px 8px 22px; }
.txg-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; color: var(--tx-gold); }
.txg-head h2 { margin: 4px 0 0; font-size: clamp(19px, 3.4vw, 24px); }
.txg-jump { display: flex; gap: 6px; padding: 6px 22px 10px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--sx-border); }
.txg-jump button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sx-border); background: var(--sx-surface); color: var(--sx-muted); cursor: pointer; font-weight: 800; font-size: 12.5px; line-height: 1; padding: 0; position: relative; }
.txg-jump button.on, .txg-jump button.done { color: var(--sx-text); }
.txg-jump button em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.txg-jump button.done { background: rgba(46,139,87,.22); border-color: rgba(46,139,87,.55); }
.txg-jump button.on { border-color: var(--sx-accent); box-shadow: 0 0 0 3px var(--sx-accent-soft); background: var(--sx-surface2); }
.txg-body { padding: 16px 22px 8px; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.txg-text { min-width: 0; font-size: 15px; line-height: 1.6; }
.txg-text p { margin: 0 0 10px; }
.txg-text ol, .txg-text ul { margin: 0 0 12px; padding-left: 22px; }
.txg-text li { margin-bottom: 7px; }
.txg-text code { font-family: var(--sx-mono); background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: 13px; white-space: nowrap; }
.txg-soft { color: var(--sx-muted); font-size: 13.5px; }
.txg-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--sx-accent-soft); color: var(--sx-accent); vertical-align: 1px; }
.txg-note { border-radius: 10px; padding: 9px 12px; font-size: 13.5px; background: rgba(127,208,255,.07); border: 1px solid rgba(127,208,255,.3); }
.txg-note.warn { background: rgba(242,200,75,.08); border-color: rgba(242,200,75,.4); }
.txg-note.ok { background: rgba(46,139,87,.12); border-color: rgba(46,139,87,.5); }
.txg-pos { display: block; margin-top: 6px; }
.txg-split { display: grid; grid-template-columns: 1fr 190px; gap: 16px; align-items: start; }
.txg-obs { background: #1e2129; border: 1px solid #343846; border-radius: 8px; font: 12.5px/1.2 system-ui, sans-serif; color: #d6d9e2; overflow: hidden; }
.txg-obs-h { background: #272b36; padding: 6px 10px; font-weight: 700; }
.txg-obs-r { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-top: 1px solid #2c303b; }
.txg-obs-r.hl { background: #2f4f86; color: #fff; }
.txg-eye { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; opacity: .7; }
.txg-obs-f { padding: 6px 10px; border-top: 1px solid #2c303b; color: #8c92a3; }
.txg-art { width: 190px; }
.txg-art svg { display: block; width: 100%; }
.txg-art-tree svg, .txg-art-picture svg { aspect-ratio: 1000 / 1250; }
.txg-art-skins, .txg-art-tiers { grid-column: 1 / -1; width: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.txg-art-skins figure, .txg-art-tiers figure { margin: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--sx-muted); }
.txg-art-skins figure { width: calc(25% - 8px); min-width: 96px; }
.txg-art-skins svg { aspect-ratio: 1000 / 1250; background: var(--sx-surface); border-radius: 10px; }
.txg-art-tiers svg { width: auto; aspect-ratio: 38 / 44; margin: 0 auto 4px; }
.txg-art-scene { grid-column: 1 / -1; width: 100%; }
.txg-scene { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(#123128, #08140f); border: 1px solid var(--sx-border2); overflow: hidden; font-size: 12px; font-weight: 700; }
.txg-scene > div { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 6px; }
.txg-sc-tree { background: rgba(46,139,87,.35); border: 1px dashed rgba(120,220,160,.6); }
.txg-sc-cam { background: rgba(255,90,95,.25); border: 2px solid var(--sx-accent); }
.txg-sc-goal { background: rgba(242,200,75,.18); border: 1px dashed rgba(242,200,75,.6); font-size: 10.5px; }
.txg-foot { display: flex; align-items: center; gap: 8px; padding: 12px 22px 16px; border-top: 1px solid var(--sx-border); }
.txg-count { flex: 1; text-align: center; font-size: 12.5px; color: var(--sx-muted); }
.txg-foot [hidden] { display: none; }
.tx-panel.txg-flash, .tx-field.txg-flash { animation: txg-flash 2.4s ease; border-radius: 12px; }
@keyframes txg-flash { 0%, 100% { box-shadow: none; } 15%, 60% { box-shadow: 0 0 0 3px var(--sx-accent), 0 0 30px var(--sx-accent-soft); } }
@media (max-width: 640px) {
  .txg-back { padding: 8px; }
  .txg-body { grid-template-columns: 1fr; padding: 12px 16px 6px; }
  .txg-art { width: 130px; justify-self: center; }
  .txg-art-skins, .txg-art-tiers, .txg-art-scene { width: auto; justify-self: stretch; }
  .txg-split { grid-template-columns: 1fr; }
  .txg-head, .txg-jump, .txg-foot { padding-left: 16px; padding-right: 16px; }
  .txg-foot .sx-btn { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tx-panel.txg-flash { animation: none; outline: 3px solid var(--sx-accent); } }

.tx-credit { max-width: 1280px; margin: 4px auto 28px; padding: 0 16px; text-align: center; font-size: 13.5px; color: var(--sx-muted); }
.tx-credit a { color: var(--tx-gold); font-weight: 700; }
.tx-kind.on::before { content: '✓'; position: absolute; left: -5px; top: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--sx-accent); color: var(--sx-accent-ink); font-size: 10px; font-weight: 900; line-height: 16px; text-align: center; }
.tx-skins { grid-template-columns: repeat(4, 1fr); }
input[type=range] { accent-color: var(--sx-accent); }
.txg-set { display: flex; gap: 2px; justify-content: center; align-items: flex-end; }
.txg-credit { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--sx-border2); font-size: 13.5px; color: var(--sx-muted); }
.txg-credit a { color: var(--tx-gold); font-weight: 700; }
.tx-dash[hidden] { display: none; }
.txg-art-skins .txg-skin { position: relative; width: calc(25% - 8px); min-width: 96px; border: 2px solid var(--sx-border); border-radius: 12px; background: var(--sx-surface); padding: 6px 6px 8px; cursor: pointer; color: var(--sx-text); font-weight: 700; font-size: 12px; line-height: 1.2; text-align: center; }
.txg-art-skins .txg-skin svg { aspect-ratio: 1000 / 1250; background: none; }
.txg-art-skins .txg-skin.on { border-color: var(--sx-accent); box-shadow: 0 0 0 3px var(--sx-accent-soft); }
.txg-art-skins .txg-skin.locked svg { filter: grayscale(.85) brightness(.6); }
.txg-art-skins .txg-skin i { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10.5px; background: rgba(0,0,0,.72); border-radius: 999px; padding: 2px 7px; }
.txg-art-skins .txg-skin span { display: block; margin-top: 4px; }
.tx-kinds-h { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--tx-gold); margin: 10px 0 6px; }

/* --- dashboard layout (2026-11-01): preview stays in view, settings in five tabs --- */
.tx-dash { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: start; }
.tx-stick { position: sticky; top: 12px; }
@media (max-width: 1000px) { .tx-stick { position: static; } }
.tx-settings { padding-top: 10px; }
.tx-stabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--sx-border); margin: 0 -18px 14px; padding: 0 14px 10px; position: sticky; top: 0; background: var(--sx-panel); z-index: 3; }
.tx-stabs button { border: 1px solid transparent; background: none; color: var(--sx-muted); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.tx-stabs button:hover { color: var(--sx-text); background: var(--sx-surface); }
.tx-stabs button.on { background: var(--sx-accent); color: var(--sx-accent-ink); }
.tx-settings section { max-height: calc(100vh - 230px); overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
@media (max-width: 1000px) { .tx-settings section { max-height: none; } }
.tx-checks { display: grid; gap: 9px; }
.tx-checks-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .tx-checks-2 { grid-template-columns: 1fr; } }
.tx-savebar { position: sticky; bottom: 0; background: var(--sx-panel); padding-top: 12px; border-top: 1px solid var(--sx-border); margin-top: 6px; }
.tx-savebar[hidden] { display: none; }
.tx-tierrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sx-border); }
.tx-tierrow input { padding: 7px 9px; }
.tx-picked { display: flex; gap: 2px; flex-wrap: wrap; min-width: 0; }
.tx-picked svg { width: 26px; height: 32px; }
@media (max-width: 520px) { .tx-tierrow { grid-template-columns: 1fr auto auto; } .tx-picked { grid-column: 1 / -1; grid-row: 2; } }
.tx-modal-back { position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,10,8,.72); backdrop-filter: blur(3px); }
.tx-modal-back[hidden] { display: none; }
.tx-modal { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--sx-panel); border: 1px solid var(--sx-border2); border-radius: 18px; padding: 18px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.tx-modal h3 { margin: 0; }
.tx-modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--sx-surface2); color: var(--sx-text); font-size: 20px; cursor: pointer; }
.tx-kinds-big { gap: 8px; }
.tx-kinds-big .tx-kind { width: 50px; height: 58px; }
.tx-kind em { position: absolute; right: -6px; bottom: -7px; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--sx-surface); border: 1px solid var(--sx-border2); color: var(--sx-muted); border-radius: 6px; padding: 0 3px; line-height: 14px; }
.tx-door-cta { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.tx-bigbtn { font-size: 16px; padding: 12px 18px; }
.tx-prizes { display: flex; flex-wrap: wrap; gap: 5px; }
.tx-prize { font-size: 12px; background: var(--sx-surface); border: 1px solid var(--sx-border); border-radius: 999px; padding: 3px 9px 3px 4px; color: var(--sx-muted); }
.tx-prize b { display: inline-block; min-width: 20px; text-align: center; margin-right: 4px; color: var(--sx-text); background: var(--sx-surface2); border-radius: 999px; }
.tx-prize.open { border-color: rgba(242,200,75,.5); color: var(--sx-text); }
.tx-stats { grid-template-columns: repeat(3, 1fr); }

/* --- History tab --- */
.tx-days { display: grid; gap: 8px; }
.tx-day { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; background: var(--sx-surface); border: 1px solid var(--sx-border); border-radius: 12px; padding: 8px 12px; }
.tx-day svg { width: 72px; aspect-ratio: 1000 / 1250; }
.tx-day b { display: block; margin-bottom: 2px; }
.tx-day span { display: block; font-size: 12.5px; color: var(--sx-muted); }
.tx-unwrap-list { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.tx-uw { display: grid; grid-template-columns: 150px 1fr 1.3fr auto; gap: 8px; align-items: center; font-size: 13px; }
.tx-uw .t { color: var(--tx-gold); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-uw b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-uw input { padding: 6px 8px; font-size: 13px; }
@media (max-width: 640px) { .tx-uw { grid-template-columns: 1fr 1fr; } }

/* ================= phones and tablets (2026-11-01 mobile pass) =================
   Order matters: these come last so they beat the desktop two-column rules above. */
@media (max-width: 1000px) {
  .tx-dash { grid-template-columns: minmax(0, 1fr); }
  .tx-stick { position: static; }
  .tx-settings section { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  .tx-dash { padding: 10px; gap: 12px; }
  .tx-panel { padding: 14px; }
  .tx-dash > * { min-width: 0; }
  /* settings tabs: one scrolling strip, full width */
  .tx-stabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 10px 10px; }
  .tx-stabs::-webkit-scrollbar { display: none; }
  .tx-stabs button { flex: none; min-height: 44px; padding: 8px 14px; }
  /* everything you tap is at least 44px */
  .sx-btn, .sx-btn-sm { min-height: 44px; }
  .tx-dash select, .tx-dash input:not([type=checkbox]):not([type=range]), .tx-modal input { min-height: 44px; font-size: 16px; }
  .tx-dash input[type=range] { min-height: 44px; }
  label.sx-toggle { min-height: 44px; display: flex; align-items: center; }
  .tx-kind, .tx-kinds-big .tx-kind { width: 48px; height: 56px; }
  .tx-copy { min-width: 0; }
  .tx-copy input { flex: 1 1 auto; min-width: 0; }
  .tx-copy button { flex: none; }
  .tx-row { min-width: 0; }
  .tx-row > select { max-width: 100%; }
  .tx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-stat { min-width: 0; }
  .tx-stat span { overflow-wrap: anywhere; }
  .tx-skins { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tx-skin { font-size: 11.5px; padding: 4px 3px 6px; min-width: 0; overflow-wrap: anywhere; }
  .tx-tierrow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tx-tierrow .tx-picked { grid-column: 1 / -1; grid-row: 2; }
  .tx-tierrow label input { width: 90px !important; }
  .tx-tierbar { position: static; margin: 0 10px 14px; border-radius: 14px; flex-wrap: wrap; box-shadow: none; }
  .tx-tierbar button { min-height: 44px; min-width: 44px; }
  .tx-uw { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tx-uw input { grid-column: 1 / -1; }
  .tx-day { grid-template-columns: 56px minmax(0, 1fr); }
  .tx-day svg { width: 56px; }
  .tx-item { min-width: 0; }
  .tx-store { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tx-list .it button { min-width: 44px; min-height: 44px; }
  .tx-modal-back { padding: 10px; align-items: center; }
  .tx-modal { padding: 14px; max-height: calc(100dvh - 20px); }
  .tx-modal-x { width: 44px; height: 44px; top: 6px; right: 6px; }
  .tx-kinds-big { justify-content: center; }
  .tx-credit { padding: 0 14px; }
  .tx-door-cta .tx-row { flex-wrap: wrap; }
  .tx-bigbtn { width: 100%; min-height: 52px; }
  /* the guide modal */
  .txg-card { max-height: calc(100dvh - 16px); }
  .txg-x { width: 44px; height: 44px; top: 6px; right: 6px; }
  .txg-jump { gap: 4px; }
  .txg-jump button { width: 44px; height: 44px; font-size: 14px; }
  .txg-foot .sx-btn { min-height: 44px; }
  .txg-art-skins .txg-skin { width: calc(50% - 6px); min-height: 44px; }
  .txg-text code { white-space: normal; overflow-wrap: anywhere; }
  .txg-obs { max-width: 100%; }
  /* the landing page */
  .tx-hero { padding: 24px 14px 10px; }
  .tx-cards { padding: 0 12px; }
}
@media (max-width: 360px) {
  .tx-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-stats { grid-template-columns: minmax(0, 1fr); }
  .tx-stabs button { padding: 8px 11px; font-size: 13px; }
  .tx-uw { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .tx-savebar { position: static; } .tx-stabs { position: static; } }
.tx-row > p { flex: 1 1 200px; min-width: 0; }
@media (max-width: 1000px), (pointer: coarse) {
  .sx-btn, .sx-btn-sm { min-height: 44px; }
  .tx-dash select, .tx-dash input:not([type=checkbox]):not([type=range]) { min-height: 44px; }
  .tx-stabs button { min-height: 44px; }
  label.sx-toggle { min-height: 44px; display: flex; align-items: center; }
  .tx-savebar { position: static; }
  .tx-tierrow .sx-btn { min-width: 44px; }
  .txg-jump button { width: 44px; height: 44px; }
  .txg-x, .tx-modal-x { width: 44px; height: 44px; }
}
@media (max-width: 1000px), (pointer: coarse) {
  .tx-dash input[type=range] { min-height: 44px; }
  .tx-list .it button { min-width: 44px; min-height: 44px; }
  .tx-tierbar button { min-height: 44px; min-width: 44px; }
  .tx-kind { min-width: 44px; min-height: 50px; }
}
