/* The Global Trade Link (client/js/ui/gtl; docs/gtl.md "The window",
   "Selling", "History"): a pixel-kit window (client/css/social-ui.css) laid
   out like the previews (preview A, "Market Board", for BROWSE; preview B,
   "Trade Post", for SELL and the sell flow). The values are the mockups'
   (common.css, a-desk.html, a-phone.html, b-desk.html, b-phone.html). The
   window picks its layout from the room
   #windows gives it (index.js): .wide (the filter rail, the list, the detail),
   .mid (the list and the detail; the filters in a sheet) and .phone (the list;
   the filters and the detail in sheets). Sized from #windows (100%), not the
   viewport: a phone on its side keeps only the middle, between the pads.
   Inside Hub (Hub → MARKET) it is .embedded: see "inside Hub" below. */

.gtl, .gtl-card { --alpha: #e8912d; --alpha-hi: #f7c65a; --alpha-lo: #b8611a; --alpha-ln: #3a2410; --gold: #8a5200; --green: #1e7a3c; }
.pxui.gtl { width: min(1320px, calc(100% - 24px)); height: min(900px, calc(100% - 16px)); display: flex; flex-direction: column; padding: 12px 14px 14px; overflow: hidden; }
.gtl h1, .gtl h2, .gtl-card h2, .gtl p, .gtl dl { margin: 0; }
.gtl-kick { color: var(--ink-3); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.gtl-muted { color: var(--ink-3); }
.gtl-grow { flex: 1; }

/* ------------------------------------------------------------------ header */
.gtl-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.gtl-head h1 { font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gtl-globe { flex: none; width: 30px; height: 30px; border: 3px solid var(--frame); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9fd3ff, #3f7fd0 60%, #23508f); box-shadow: inset 0 0 0 2px #ffffff55; }
.gtl-total { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gtl-wallet { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 3px solid var(--frame); border-radius: 8px; background: #fff; white-space: nowrap; }
.gtl-coin { flex: none; width: 16px; height: 16px; border: 2px solid #8a5a00; border-radius: 50%; background: #ffd64a; }
.gtl-money { font-weight: 700; font-variant-numeric: tabular-nums; }
.gtl-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 3px solid var(--frame); border-radius: 8px; background: #fff; font-size: 18px; font-weight: 700; }
.gtl-x.gtl-help { border-color: var(--blue); background: var(--sky); }
@media (hover: hover) { .gtl-x:hover { border-color: var(--sel-line); } }

/* ----------------------------------------------------------------- pockets */
.gtl-pockets { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 2px dashed var(--rule); }
.gtl-pockets .px-pocket { font-size: 16px; }
.gtl-pockets .gtl-grow { display: none; }
.gtl-feeline { margin-left: auto; text-align: right; }
.gtl-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 12px; }
.gtl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gtl-notice { margin: 0 0 10px; padding: 7px 12px; border: 2px solid #c98a2a; border-radius: 8px; background: var(--announce); color: var(--ink); font-size: 14px; font-weight: 600; }
.gtl-empty { padding: 18px 8px; color: var(--ink-3); text-align: center; }
.gtl-empty p { margin: 0 0 10px; }

/* ------------------------------------------------------------------- marks */
.gtl-alpha { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border: 2px solid #3a2410; border-radius: 4px; background: linear-gradient(#f7c65a 0 25%, #e8912d 25% 80%, #b8611a 80%); color: #fff8e6; font-weight: 700; font-size: 14px; line-height: 1; text-shadow: 1px 1px 0 #5a3212; }
.gtl-shiny { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border: 2px solid #6a5310; border-radius: 4px; background: #ffe27a; color: #8a5a00; font-size: 13px; font-weight: 700; line-height: 1; }
.gtl-ha { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 5px; border: 2px solid #7a3fa8; border-radius: 4px; background: #efe0fb; color: #5e2a8a; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.gtl-lock { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 2px solid #a4a8a0; border-radius: 4px; background: #eeeee4; color: #4e5868; font-size: 12px; }
.gtl-male { color: #2f6fd0; font-weight: 700; }
.gtl-female { color: #d04a6a; font-weight: 700; }
.gtl-up { color: #c8342a; }
.gtl-down { color: #2f6fd0; }
/* IV pips: 6 stats, gold at 31, green from 25 */
.gtl-ivs { display: inline-flex; gap: 2px; vertical-align: middle; }
.gtl-ivs i { display: block; width: 7px; height: 14px; border: 1px solid #7a8aa0; background: #e6eef8; }
.gtl-ivs i.g { background: #6fbf5f; border-color: #3d7a32; }
.gtl-ivs i.p { background: #e8b43a; border-color: #8a6a10; }
.gtl-ivs i.m { background: #9fc3e8; border-color: #5a7fa8; }
/* sprites: the sheets hold two frames stacked; the box shows the first */
.gtl-ico { flex: none; display: inline-block; width: 32px; height: 32px; background-size: 32px 64px; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; }
.gtl-ico.x2 { width: 48px; height: 48px; background-size: 48px 96px; }
.gtl-front { flex: none; display: inline-block; width: 128px; height: 128px; background-size: 128px 256px; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; }
.gtl-front.sm { width: 96px; height: 96px; background-size: 96px 192px; }
/* (a one-frame picture, market.js monFront: whole, at the box's size, whatever the box) */
.gtl-front.one { background-size: contain !important; background-position: center !important; }
.gtl-type { flex: none; display: inline-block; width: 48px; height: 24px; background-size: 48px 24px; background-repeat: no-repeat; image-rendering: pixelated; vertical-align: middle; }
.gtl-type.sm { width: 32px; height: 16px; background-size: 32px 16px; }
.gtl-typerow { display: flex; flex-wrap: wrap; gap: 4px; }

/* ------------------------------------------------------------------ browse */
.gtl-browse { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); gap: 12px; }
.gtl-browse.wide { grid-template-columns: 250px minmax(0, 1fr) 390px; }
.gtl-browse.mid { grid-template-columns: minmax(0, 1fr) 360px; }

/* the filter rail */
.gtl-rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px; border: 3px solid var(--blue); border-radius: 12px; background: #eef5fc; }
.gtl-rail label, .gtl-fform label { display: block; }
.gtl-rail .gtl-kick, .gtl-fform .gtl-kick { margin-bottom: 4px; }
.gtl-rail .px-field, .gtl-fform .px-field { width: 100%; }
.gtl-range { display: flex; gap: 6px; align-items: center; }
.gtl .gtl-range .px-field { width: 0; flex: 1; }
.gtl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gtl-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 3px solid var(--plain-line); border-radius: 8px; background: var(--plain); font-size: 14px; font-weight: 600; white-space: nowrap; }
.gtl-chip[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.gtl-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.gtl-typebtn { display: flex; align-items: center; justify-content: center; padding: 3px 0; border: 2px solid transparent; border-radius: 6px; background: none; }
.gtl-typebtn[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
@media (hover: hover) { .gtl-chip:hover, .gtl-typebtn:hover { border-color: var(--sel-line); } }
.gtl-rail-foot { margin-top: auto; display: flex; gap: 6px; padding-top: 4px; }
.gtl-rail-foot .px-btn { flex: 1; }
.gtl-rail .gtl-rail-foot { position: sticky; bottom: 0; background: #eef5fc; }

/* the list */
.gtl-results { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gtl-rhead { flex: none; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gtl-rtitle { font-size: 17px; white-space: nowrap; }
.gtl-count { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.gtl-sort { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.gtl .gtl-sortsel { height: 32px; }
.gtl-cols, .gtl-row { display: grid; grid-template-columns: 44px minmax(0, 1.5fr) 44px minmax(0, .9fr) 64px 96px; align-items: center; gap: 8px; }
.gtl-cols { flex: none; padding: 0 12px 6px; color: var(--ink-3); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.gtl-cols .r, .gtl-row .r { text-align: right; }
.gtl-cols .sorted { color: var(--ink); }
.gtl-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.gtl-row { flex: none; width: 100%; height: 54px; margin: 0; padding: 0 12px 0 6px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); text-align: left; }
.gtl-row.sel { border-color: var(--sel-line); background: var(--sel); }
@media (hover: hover) { .gtl-row:hover { border-color: var(--sel-line); } }
.gtl-row .gtl-ico { margin: -6px 0 0 -4px; }
.gtl-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.gtl-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gtl-sub { display: block; overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.gtl-lv { font-size: 15px; }
.gtl-ab { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.gtl-pr { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* compact rows (mid and phone) */
.gtl-row.compact { display: flex; align-items: center; gap: 8px; height: auto; min-height: 58px; padding: 4px 10px 4px 4px; }
.gtl-row.compact .gtl-ico { margin: -8px 0 0; }
.gtl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gtl-n { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.gtl-s { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.gtl-row.compact .gtl-pr { font-size: 15px; }
/* the pager */
.gtl-pager { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; }
.gtl-pager:empty { display: none; }
.gtl-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 4px; border: 3px solid var(--blue); border-radius: 6px; background: var(--sky); font-size: 14px; }
.gtl-pg.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.gtl-pg.gap { border-color: transparent; background: none; }
@media (hover: hover) { button.gtl-pg:not(:disabled):not(.on):hover { border-color: var(--sel-line); } }
/* the search row and chips (mid and phone) */
.gtl-search { flex: none; display: flex; gap: 6px; }
.gtl .gtl-search .px-field { flex: 1; min-width: 0; }
.gtl-filtersbtn .px-badge { background: var(--blue); }
.gtl-tools { flex: none; min-width: 0; }
/* (the chips wrap rather than scroll: none is ever out of sight) */
.gtl-chiprow { flex: none; flex-wrap: wrap; padding: 8px 0; }
.gtl-chiprow .gtl-chip { flex: none; }

/* the detail */
.gtl-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 3px solid var(--frame); border-radius: 12px; background: #fff; overflow: hidden; }
.gtl-plate { flex: none; position: relative; display: flex; gap: 10px; padding: 10px 12px 8px; background: linear-gradient(#cfe6fa, #eef6fd); border-bottom: 3px solid var(--rule); }
.gtl-plate .gtl-front { margin: -6px -8px -10px -10px; }
.gtl-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 6px; }
.gtl-meta h2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 20px; }
.gtl-lvl { font-size: 15px; color: var(--ink-2); }
.gtl-by { color: var(--ink-3); font-size: 13px; }
.gtl-by b { color: var(--ink); }
.gtl-dscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.gtl-sec { padding: 8px 12px 0; }
.gtl-sec .gtl-kick { margin-bottom: 4px; }
.gtl-kv { display: grid; grid-template-columns: 78px 1fr; row-gap: 3px; font-size: 14px; }
.gtl-kv dt, .gtl-facts dt { color: var(--ink-3); }
.gtl-kv dd, .gtl-facts dd { margin: 0; }
.gtl-bars { display: grid; grid-template-columns: 34px 1fr 26px; gap: 3px 8px; align-items: center; font-size: 13px; }
.gtl-bars b { text-align: right; }
.gtl-bar { display: block; height: 10px; border: 2px solid var(--frame); border-radius: 3px; background: #e6eef8; overflow: hidden; }
.gtl-bar i { display: block; height: 100%; background: #6fbf5f; }
.gtl-bar i.p { background: #e8b43a; }
.gtl-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.gtl-mv { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 30px; padding: 0 6px 0 4px; border: 2px solid var(--plain-line); border-radius: 6px; background: var(--plain); font-size: 13px; }
.gtl-mvname { flex: 1; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.gtl-guide { margin: 8px 12px 0; padding: 7px 10px; border: 2px dashed #c98a2a; border-radius: 8px; background: var(--announce); color: var(--gold); font-size: 13px; }
.gtl-guide b { color: var(--ink); }
.gtl-guide.off { border-color: var(--plain-line); background: var(--plain); color: var(--ink-3); }
.gtl-buy { flex: none; padding: 10px 12px 12px; border-top: 3px solid var(--sky); background: #f7fbff; }
.gtl-buytop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gtl-have { color: var(--ink-3); font-size: 13px; }
.gtl-have.short { color: var(--danger); font-weight: 600; }
.gtl-big { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gtl-buy .gtl-buybtn { width: 100%; height: 46px; margin-top: 8px; font-size: 18px; }
.gtl-buybtn.armed { box-shadow: inset 0 -3px 0 var(--red-edge), 0 0 0 3px var(--sel-line); }
.gtl-note { display: flex; gap: 6px; align-items: center; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.gtl-note.armed { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ sheets */
/* (over the window: the window is the positioned box they cover) */
.gtl-scrim { position: absolute; inset: 0; z-index: 5; background: #0b122266; }
.gtl-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 12px; border-top: 4px solid var(--frame); border-radius: 16px 16px 0 0; background: var(--cream); box-shadow: inset 0 3px 0 var(--ring), 0 -10px 30px #0006; }
.gtl.mid .gtl-sheet { max-width: 480px; margin: 0 auto; border-left: 4px solid var(--frame); border-right: 4px solid var(--frame); }
.gtl-grab { display: flex; align-items: center; justify-content: center; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: none; }
.gtl-grab::before { content: ""; width: 48px; height: 5px; border-radius: 3px; background: #b8c4d4; }
.gtl-sheet-title { margin: 0 0 8px; font-size: 19px; text-transform: uppercase; }
.gtl-fform { display: flex; flex-direction: column; gap: 10px; }
.gtl-fform .gtl-types { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.gtl-fform .gtl-rail-foot { position: sticky; bottom: 0; padding: 6px 0 2px; background: var(--cream); }
.gtl-top { display: flex; gap: 8px; align-items: center; }
.gtl-top .gtl-front { margin: -10px -6px -8px -10px; }
.gtl-top h2 { display: flex; align-items: center; gap: 6px; font-size: 19px; }
.gtl-top .gtl-meta { gap: 4px; padding-top: 0; }
.gtl-top .gtl-by { font-size: 14px; }
.gtl-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 6px; font-size: 14px; }
.gtl-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; }
.gtl-sheet .gtl-guide { margin: 0; padding: 6px 9px; }
.gtl-sheetfoot { position: sticky; bottom: 0; z-index: 1; margin-top: 10px; padding: 6px 0 2px; background: var(--cream); box-shadow: 0 -2px 0 var(--sky); }
.gtl-buyrow { display: flex; align-items: center; gap: 10px; }
.gtl-buyprice { display: flex; flex-direction: column; }
.gtl-buyrow .gtl-big { font-size: 24px; line-height: 1.15; }
.gtl-buyrow .gtl-buybtn { flex: 1; height: 50px; font-size: 18px; }
.gtl-sheet .gtl-note { margin-top: 8px; }

/* ------------------------------------------------------------------- phone */
.pxui.gtl.phone { width: calc(100% - 12px); height: calc(100% - 16px); padding: 10px 10px 0; }
.gtl.phone .gtl-head { gap: 8px; padding: 0 0 8px; }
.gtl.phone .gtl-head h1 { font-size: 19px; }
.gtl.phone .gtl-globe { width: 26px; height: 26px; }
.gtl.phone .gtl-wallet { height: 44px; gap: 5px; padding: 0 9px; font-size: 14px; }
.gtl.phone .gtl-coin { width: 13px; height: 13px; }
.gtl.phone .gtl-x { width: 44px; height: 44px; }
.gtl.phone .gtl-pockets { flex-wrap: nowrap; gap: 5px; padding-bottom: 8px; border-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.gtl.phone .px-pocket { flex: none; height: 44px; padding: 0 11px; font-size: 14px; }
.gtl.phone .gtl-feeline { display: none; }
/* one column that scrolls: the search, the chips, the list, the pager */
.gtl.phone .gtl-main { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 10px; }
.gtl.phone .gtl-body, .gtl.phone .gtl-browse, .gtl.phone .gtl-results { display: block; }
.gtl.phone .gtl-list { overflow: visible; }
.gtl.phone .gtl-noticeslot { position: sticky; top: 0; z-index: 2; }
.gtl.phone .gtl-search .px-field { height: 44px; font-size: 16px; }
.gtl.phone .gtl-search .px-btn, .gtl.phone .gtl-chip { height: 44px; }
.gtl.phone .gtl-chip { padding: 0 8px; }
.gtl.phone .gtl-pg { min-width: 44px; height: 44px; }
.gtl.phone .gtl-sheet .gtl-grab { height: 36px; }
.gtl.phone:not(.short) .gtl-top .gtl-front.sm { width: 128px; height: 128px; background-size: 128px 256px; }

/* ------------------------------------------------------------------- short */
/* A short screen (a phone on its side, about 390 px high: index.js .short,
   the stylesheets' max-height 520px line): one header row with the pockets
   in it and no fee line (the "?" card has it); the search and the chips on
   one row; the list column scrolling as one (3 rows at its top); the
   detail's plate small and its price and Buy on one row, pinned at its
   bottom; the sheets' price, Buy and lock pinned too. 44 px targets. */
.pxui.gtl.short { padding: 6px 10px 8px; }
.pxui.gtl.short.phone { padding: 6px 8px 0; }
.gtl.short .gtl-head { gap: 6px; padding: 0 0 6px; border-bottom: 2px dashed var(--rule); }
.gtl.short .gtl-head h1 { font-size: 18px; }
.gtl.short .gtl-globe { width: 24px; height: 24px; }
.gtl.short .gtl-head .gtl-pockets { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; gap: 5px; padding: 0; border: 0; overflow-x: auto; scrollbar-width: none; }
.gtl.short .gtl-head .px-pocket { flex: none; height: 44px; padding: 0 10px; font-size: 14px; }
.gtl.short .gtl-feeline { display: none; }
.gtl.short .gtl-wallet { height: 44px; gap: 5px; padding: 0 8px; font-size: 14px; }
.gtl.short .gtl-coin { width: 13px; height: 13px; }
.gtl.short .gtl-x { width: 44px; height: 44px; }
.gtl.short .gtl-main { padding-top: 6px; }
/* the search and the chips on one row when they fit, else the chips on a
   second row (never scrolled out of sight); α / ★ / HA as their marks only
   (their names: aria-label and title, market.js chip) */
.gtl.short .gtl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gtl.short .gtl-search { flex: 1 1 160px; min-width: 0; }
.gtl.short .gtl-chiprow { flex: 0 1 auto; min-width: 0; padding: 0; }
.gtl.short .gtl-chiprow .gtl-chiplabel { display: none; }
.gtl.short .gtl-chiprow .gtl-chip { justify-content: center; min-width: 44px; padding: 0 8px; }
.gtl.short .gtl-filtersbtn { padding: 0 10px; }
.gtl.short .gtl-search .px-field, .gtl.short .gtl-search .px-btn, .gtl.short .gtl-chip { height: 44px; }
/* (a narrower detail: the search field keeps room beside the chips) */
.gtl.short .gtl-browse.mid { grid-template-columns: minmax(0, 1fr) 330px; }
.gtl.short .gtl-row.compact { min-height: 52px; padding-top: 2px; padding-bottom: 2px; }
.gtl.short .gtl-row.compact .gtl-ico { margin-top: -6px; }
.gtl.short .gtl-list { padding-top: 6px; }
.gtl.short:not(.phone) .gtl-results { overflow-y: auto; overscroll-behavior: contain; }
.gtl.short:not(.phone) .gtl-list { flex: none; overflow: visible; }
.gtl.short .gtl-plate { padding: 6px 10px; gap: 8px; }
.gtl.short .gtl-plate .gtl-front, .gtl.short .gtl-top .gtl-front { width: 64px; height: 64px; background-size: 64px 128px; margin: 0; }
.gtl.short .gtl-meta { gap: 0; padding-top: 0; }
.gtl.short .gtl-typerow .gtl-type { width: 32px; height: 16px; background-size: 32px 16px; }
.gtl.short .gtl-meta h2 { font-size: 17px; }
.gtl.short .gtl-lvl, .gtl.short .gtl-by { font-size: 13px; }
.gtl.short .gtl-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 10px; padding: 6px 10px 8px; }
.gtl.short .gtl-have { font-size: 12px; line-height: 1.2; }
.gtl.short .gtl-buytop { grid-column: 1; grid-row: 1; }
.gtl.short .gtl-buytop .gtl-kick { display: none; }
.gtl.short .gtl-buy .gtl-big { grid-column: 1; grid-row: 2; font-size: 20px; line-height: 1.1; }
.gtl.short .gtl-buy .gtl-buybtn { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: 44px; margin: 0; padding: 2px 8px; font-size: 15px; line-height: 1.1; white-space: normal; text-align: center; }
.gtl.short .gtl-buy .gtl-note { grid-column: 1 / -1; margin-top: 4px; }
.gtl.short .gtl-sheet { max-height: 96%; }
.gtl.short .gtl-buyrow .gtl-big { font-size: 20px; }
.gtl.short .gtl-buyrow .gtl-buybtn { height: auto; min-height: 44px; padding: 2px 8px; font-size: 15px; line-height: 1.1; white-space: normal; text-align: center; }
.gtl.short .gtl-sheet .gtl-note { margin-top: 4px; }
/* a phone on its side, between the pads (about 480 px wide): the header's row fits */
.gtl.short.phone .gtl-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gtl.short.phone .gtl-head .px-pocket { padding: 0 8px; font-size: 13px; }
.gtl.short.phone .gtl-coin { display: none; }

/* -------------------------------------------------------------------- sell */
/* SELL (sell.js; preview B, b-desk: the slots row): six sale slots, a row of
   6 on a computer, 3 in the mid layout, one column on a phone. */
.gtl-sell { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.gtl-sect { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.gtl-sect h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
/* (12px over the slots: the SOLD ribbon sticks out of its slot) */
.gtl-slots { flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.gtl.mid .gtl-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gtl.phone .gtl-slots { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gtl-slot { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 150px; margin: 0; padding: 8px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); text-align: left; }
.gtl-slottop { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gtl-slot .gtl-front { margin: -10px -12px -12px -8px; }
.gtl-slotinfo { display: flex; flex-direction: column; min-width: 0; }
/* (the name and gender have the card's whole width, over the sprite's row: a
   10-letter name fits beside an active slot's ⋯; the α / ★ / HA marks have
   their own line beside the sprite) */
.gtl-slotnm { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 22px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.gtl-slot.active .gtl-slotnm { padding-right: 34px; }
.gtl-slotmarks { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.gtl-slotsub { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.gtl-slotsub.wrap { display: block; overflow: visible; white-space: normal; }
.gtl-slotpr { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gtl-slotfoot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gtl-slottime { color: var(--ink-2); font-size: 12px; }
.gtl-slotfee { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.gtl-slotfee b { color: var(--ink); font-size: 15px; }
.gtl-meter { height: 8px; border: 2px solid var(--frame); border-radius: 3px; background: #fff; overflow: hidden; }
.gtl-meter i { display: block; height: 100%; background: var(--blue); }
.gtl-slotbtn { width: 100%; height: 34px; padding: 0 8px; font-size: 14px; }
/* (a write waiting for its answer: aria-disabled, so the button keeps the focus) */
.gtl-slotbtn.busy, .gtl-slotmenu.busy { opacity: .55; cursor: default; }
.gtl-slotwarn { color: var(--danger); font-size: 12px; font-weight: 600; }
.gtl-slot.sold { border-color: #2f9e4a; background: #dff3df; }
.gtl-ribbon { position: absolute; top: -12px; right: 10px; z-index: 1; padding: 2px 8px; border: 2px solid #1e5a2c; border-radius: 4px 0 0 4px; background: #2f9e4a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.gtl-slot.ended { border-color: var(--plain-line); background: var(--plain); }
.gtl-ribbon.ended { border-color: #4e5868; background: #7a8494; }
.gtl-slot.empty { align-items: center; justify-content: center; border-style: dashed; border-color: var(--plain-line); background: var(--plain); color: var(--ink-3); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.gtl-plus { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 3px dashed var(--plain-line); border-radius: 10px; font-size: 26px; }
@media (hover: hover) { .gtl-slot.empty:hover { border-color: var(--sel-line); color: var(--ink); } }
/* an active listing's menu: ⋯ in its corner, Cancel in a kit menu */
.gtl-slotmenu { position: absolute; top: 4px; right: 4px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 2px solid var(--blue); border-radius: 6px; background: var(--sky); font-size: 18px; font-weight: 700; line-height: 1; }
.gtl-slot.open .gtl-slotmenu { border-color: var(--sel-line); background: var(--sel); }
.gtl-slotpop { position: absolute; top: 40px; right: 4px; z-index: 4; width: min(230px, calc(100% - 8px)); min-width: 0; }
.gtl-slotpop .px-item { min-height: 36px; font-size: 15px; }
.gtl-slotpophint { margin: 4px 6px 2px; color: var(--ink-3); font-size: 12px; }
.gtl-fullline { flex: none; margin: 0; padding: 8px 12px; border: 2px solid #c98a2a; border-radius: 8px; background: var(--announce); color: var(--gold); font-size: 14px; font-weight: 600; }
.gtl-howto { flex: none; padding: 8px 12px; border: 2px dashed var(--rule); border-radius: 10px; color: var(--ink-2); font-size: 14px; }
.gtl-howto ol { margin: 4px 0 0; padding-left: 22px; }
.gtl-howto li { margin: 2px 0; }
/* a phone: one column, each slot a row */
.gtl.phone .gtl-sell { display: flex; overflow: visible; }
.gtl.phone .gtl-slot { min-height: 0; }
.gtl.phone .gtl-slot.empty { flex-direction: row; gap: 10px; min-height: 56px; }
.gtl.phone .gtl-slot.empty .gtl-plus { width: 32px; height: 32px; font-size: 20px; }
/* a short screen: smaller sprites and slots */
.gtl.short .gtl-slot { min-height: 118px; }
.gtl.short .gtl-slot .gtl-front { width: 64px; height: 64px; background-size: 64px 128px; margin: -6px -4px -4px -6px; }
.gtl.short .gtl-sell { gap: 6px; }

/* -------------------------------------------------------------- sell flow */
/* The sell flow (sell.js; preview B, b-phone): a centred window over the
   GTL on a computer; the whole window on a phone or a short screen. */
.gtl-flowscrim { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 12px; background: #0b122266; }
.pxui .gtl-flow { display: flex; flex-direction: column; width: min(470px, 100%); height: min(820px, 100%); padding: 10px 12px 12px; }
.gtl.phone .gtl-flowscrim, .gtl.short .gtl-flowscrim { padding: 0; background: var(--cream); }
.pxui.gtl.phone .gtl-flow, .pxui.gtl.short .gtl-flow { width: 100%; height: 100%; padding: 10px 10px 8px; border: 0; border-radius: 8px; box-shadow: none; }
.pxui.gtl.short .gtl-flow { padding: 6px 10px 6px; }
.gtl-flowhead { flex: none; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px dashed var(--rule); }
.gtl-flowhead h2 { flex: 1; min-width: 0; overflow: hidden; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.gtl-x.gtl-back { border-color: var(--blue); background: var(--sky); font-size: 16px; }
/* ✓ Pick — 2 Price — 3 Review */
.gtl-steps { flex: none; display: flex; align-items: center; gap: 6px; margin: 10px 0; }
.gtl-st { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 13px; font-weight: 600; text-transform: uppercase; }
button.gtl-st { min-height: 32px; }
.gtl-st i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 3px solid var(--plain-line); border-radius: 50%; background: var(--plain); font-size: 13px; font-style: normal; }
.gtl-st.done { color: var(--green); }
.gtl-st.done i { border-color: #1e5a2c; background: #2f9e4a; color: #fff; }
.gtl-st.now { color: var(--ink); }
.gtl-st.now i { border-color: var(--sel-line); background: var(--sel); }
.gtl-stln { flex: 1; min-width: 8px; height: 3px; background: var(--rule); }
.gtl-flowbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.gtl-flowfoot { flex: none; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.gtl-flowfoot .gtl-next { width: 100%; height: 52px; font-size: 18px; }
.gtl-flownote { color: var(--ink-3); font-size: 12px; text-align: center; }
.gtl-flowerrslot:empty, .gtl-boxline:empty { display: none; }
.gtl-flowerr { padding: 7px 10px; border: 2px solid var(--danger); border-radius: 8px; background: #fbe3df; color: var(--danger); font-size: 14px; font-weight: 600; }
.gtl-banner { flex: none; padding: 7px 10px; border: 2px solid #c98a2a; border-radius: 8px; background: var(--announce); color: var(--gold); font-size: 14px; font-weight: 600; }
/* step 1: Pick */
.gtl-pickbar { flex: none; display: flex; align-items: center; gap: 8px; }
.gtl .gtl-pickbar .px-field { flex: 1; }
.gtl-boxline { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.gtl-picklist { display: flex; flex-direction: column; gap: 6px; }
.gtl-pickrow { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 58px; margin: 0; padding: 4px 10px 4px 4px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); text-align: left; }
.gtl-pickrow .gtl-ico { margin-top: -8px; }
.gtl-pickrow.sel { border-color: var(--sel-line); background: var(--sel); }
@media (hover: hover) { .gtl-pickrow:hover { border-color: var(--sel-line); } }
.gtl-pickrow.off { border-color: var(--plain-line); background: var(--plain); color: var(--ink-2); }
.gtl-pickrow.off.sel { border-color: var(--sel-line); }
.gtl-pickrow.off .gtl-ico { opacity: .55; filter: grayscale(1); }
.gtl-picktag { flex: none; max-width: 45%; padding: 2px 6px; border: 2px solid #a4a8a0; border-radius: 4px; background: #fff; color: #4e5868; font-size: 12px; text-align: center; }
.gtl-pickmax { flex: none; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
/* step 2: Price */
.gtl-pricestep { display: flex; flex-direction: column; gap: 10px; }
/* (min-width 0 all the way down: nothing in a column spills into the other one) */
.gtl-pcol, .gtl-pcol > * { min-width: 0; }
.gtl-pcol { display: flex; flex-direction: column; gap: 10px; }
.gtl-moncard { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px 6px 4px; border: 3px solid var(--sel-line); border-radius: 12px; background: var(--sel); }
.gtl-moncard .gtl-front { margin: -8px -10px -10px -6px; }
.gtl-cardmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* (.window h3 spreads its children: style.css) */
.gtl .gtl-cardmeta h3 { display: flex; justify-content: flex-start; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: 18px; white-space: nowrap; }
.gtl-cardmeta .gtl-s { flex-wrap: wrap; white-space: normal; }
/* "Your price · Max ₽10,000 (new trainer) · Why?": the row wraps in a narrow
   column (Max's words and Why? to the next line, Why? under the words if it
   must), never over the other column */
.gtl-lbl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.gtl-max { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; margin-left: auto; color: var(--ink-3); font-size: 13px; }
.gtl-maxtext { min-width: 0; }
.gtl-max b { color: var(--ink); }
.gtl-why { min-height: 30px; margin-left: 4px; padding: 0 8px; border: 2px solid var(--blue); border-radius: 6px; background: var(--sky); font-size: 13px; font-weight: 600; }
.gtl-price { display: flex; gap: 6px; margin: 0; }
.gtl-step { flex: none; width: 48px; height: 52px; padding: 0; border: 3px solid var(--blue); border-radius: 8px; background: var(--sky); font-size: 22px; font-weight: 700; }
.gtl-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px; border: 3px solid var(--frame); border-radius: 8px; background: #fff; }
/* (the field's own border is the focus ring: none inside it) */
.gtl-val:focus-within { border-color: var(--sel-line); }
.pxui .gtl-priceinput:focus, .pxui .gtl-priceinput:focus-visible { outline: none; box-shadow: none; }
.pxui .gtl-flow:focus, .pxui .gtl-flow:focus-visible { outline: none; }
.gtl-cur { color: var(--ink-3); font-size: 20px; }
.gtl-priceinput { flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: none; background: none; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gtl-priceinput::placeholder { color: var(--ink-3); font-size: 16px; font-weight: 400; }
.gtl-pricehint { min-height: 0; color: var(--ink-3); font-size: 13px; }
.gtl-pricehint:empty { display: none; }
.gtl-pricehint.bad { color: var(--danger); font-weight: 600; }
.gtl-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gtl-q { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 52px; padding: 0 4px; border: 3px solid var(--blue); border-radius: 8px; background: var(--sky); color: var(--ink-2); font-size: 12px; text-transform: uppercase; }
.gtl-q b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; text-transform: none; }
.gtl-q.on { border-color: var(--sel-line); background: var(--sel); }
@media (hover: hover) { .gtl-q:not(:disabled):hover, .gtl-step:not(:disabled):hover, .gtl-why:hover { border-color: var(--sel-line); } }
.gtl-hist { padding: 8px 10px; border: 3px solid var(--blue); border-radius: 12px; background: #eef5fc; }
.gtl-spark { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 6px; }
.gtl-spark i { flex: 1; max-width: 40px; border: 2px solid var(--blue); border-bottom: 0; border-radius: 3px 3px 0 0; background: var(--ring); }
.gtl-spark i.me { border-color: var(--sel-line); background: var(--sel); }
.gtl-spark i.none { border: 0; }
.gtl-histnote { margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.gtl-bill { padding: 8px 12px; border: 3px solid var(--frame); border-radius: 12px; background: #fff; font-size: 15px; }
.gtl-bill div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.gtl-bill .tot { margin-top: 4px; padding-top: 6px; border-top: 2px dashed var(--rule); font-size: 18px; font-weight: 700; }
.gtl-billfee { color: var(--red-edge); }
/* step 3: Review */
.gtl-revlines { font-size: 15px; }
/* a phone: the whole window; the steps' texts shorter */
.gtl.phone .gtl-flowhead h2 { font-size: 17px; }
.gtl.phone .gtl-x.gtl-back { width: 44px; height: 44px; }
/* a short screen: the steps in the header's row, the Price step in two
   columns, Review / List pinned at the bottom */
.gtl.short .gtl-flowhead { padding-bottom: 4px; }
.gtl.short .gtl-flowhead .gtl-steps { flex: 0 1 300px; min-width: 0; margin: 0; }
.gtl.short .gtl-flowfoot { padding-top: 6px; }
.gtl.short .gtl-flowfoot .gtl-next { height: 44px; font-size: 16px; }
.gtl.short .gtl-flownote { display: none; }
.gtl.short .gtl-flowbody { gap: 6px; }
.gtl.short .gtl-pricestep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 8px; }
.gtl.short .gtl-pcol { gap: 6px; }
.gtl.short .gtl-moncard .gtl-front { width: 64px; height: 64px; background-size: 64px 128px; margin: -4px -2px -4px -2px; }
.gtl.short .gtl-cardmeta h3 { font-size: 16px; }
.gtl.short .gtl-cardmeta .gtl-s { font-size: 12px; }
.gtl.short .gtl-ivnums { display: none; }
.gtl.short .gtl-step, .gtl.short .gtl-val, .gtl.short .gtl-q { height: 44px; }
.gtl.short .gtl-priceinput { font-size: 20px; }
.gtl.short .gtl-spark { height: 32px; }
.gtl.short .gtl-bill { padding: 4px 10px; font-size: 14px; }
.gtl.short .gtl-bill .tot { font-size: 16px; }
.gtl.short .gtl-banner { padding: 4px 8px; font-size: 13px; }
.gtl.short.phone .gtl-flowhead h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gtl.short.phone .gtl-flowhead .gtl-steps { flex: 1 1 auto; }
.gtl.short.phone .gtl-st { font-size: 12px; gap: 4px; }

/* ----------------------------------------------------------------- history */
/* HISTORY (history.js): the last 30 events, newest first. */
.gtl-history { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.gtl-hlist { display: flex; flex-direction: column; gap: 6px; }
.gtl-hrow { flex: none; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 4px 12px 4px 4px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); }
.gtl-hrow .gtl-ico { margin-top: -8px; }
.gtl-hrow.k-ended, .gtl-hrow.k-taken-back, .gtl-hrow.k-cancelled { border-color: var(--plain-line); background: var(--plain); }
.gtl-hrow .gtl-n { flex-wrap: wrap; row-gap: 2px; white-space: normal; }
.gtl-kind { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 2px solid var(--blue); border-radius: 4px; background: var(--sky); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gtl-kind.k-sold { border-color: #1e5a2c; background: #2f9e4a; color: #fff; }
.gtl-kind.k-collected { border-color: #8a6a10; background: #ffe27a; color: #5a3a00; }
.gtl-kind.k-ended, .gtl-kind.k-taken-back, .gtl-kind.k-cancelled { border-color: var(--plain-line); background: #fff; color: var(--ink-2); }
.gtl-hlv { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.gtl-hrow .gtl-s { white-space: normal; }
.gtl-hmoney { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.gtl-hmoney b { font-size: 16px; white-space: nowrap; }
.gtl-hmoney b.in { color: var(--green); }
.gtl-hmoney b.out { color: var(--red-edge); }
.gtl-hmoney small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.gtl.phone .gtl-history { display: flex; overflow: visible; }

/* ------------------------------------------------------- the lock elsewhere */
/* The trade window's offer cards (shops.js updateTrade): a trade-locked
   Pokémon greyed with "Locked · 2d 5h"; the reason on a tap. */
.pcard.locked { border-style: dashed; filter: grayscale(.7); opacity: .75; cursor: help; }
.pcard .pcard-lock { grid-column: 1 / -1; justify-self: start; }
.trade-note { margin: 0 0 6px; padding: 6px 10px; border: 2px solid #c98a2a; border-radius: 8px; background: #fbecd0; color: #8a5200; font-size: 14px; font-weight: 600; }
/* The party strip (main.js renderHud): a trade-locked slot shows "Locked ·
   2d 5h" under its HP bar (and the whole line in its title); like the other
   slots it lets clicks through to the field. */
.ps-mon.locked { border-style: dashed; }
.ps-lock { display: block; color: #4e5868; font-size: 11px; line-height: 1.2; }
.ps-lock:empty { display: none; }

/* -------------------------------------------------------------- inside Hub */
/* Hub → MARKET (client/js/ui/hub/market.js; the owner's 2026-10-05 call):
   the window built into Hub's panel (.gtl.embedded, no .pxui: Hub is the
   kit's window), as guild.css's .gd.embedded. No frame, size or ✕ of its
   own (Hub's); its header (the globe, its name as a heading under Hub's,
   the market's count, the wallet and "How the GTL works", a text button:
   Hub's "?" is "How Hub works"), the pockets as the kit's small
   tabs (.px-tab) under a dashed rule, then the pocket. On a computer it
   fills Hub's panel and a pocket's own lists scroll, as in the window; on a
   phone and on its side (.phone: a phone's room, or Hub's 640 px side
   panel; .short too on its side, the pockets in the header's row) Hub's
   .hub-main scrolls it all, so nothing here bounds its height. Its sheets,
   the sell flow and the cards sit over Hub's window (the box they are
   placed in), as the Guild's do: on a phone the flow is Hub's whole window. */
.gtl.embedded { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.gtl.embedded .gtl-head { padding: 0 2px 8px; }
.gtl.embedded .gtl-head h2 { font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
/* "How the GTL works": a text button (Hub's "?" is "How Hub works"), as the
   Guild's "How guilds work" (guild.css .gd-rulesbtn) */
.gtl.embedded .gtl-rulesbtn { flex: none; }
.gtl.embedded .gtl-pockets { gap: 4px; padding: 2px 0 8px; }
.gtl.embedded .gtl-pockets .px-tab { flex: none; padding: 0 12px; }
.gtl.embedded .gtl-main { padding-top: 10px; }
.gtl.embedded.phone { flex: none; }
.gtl.embedded.phone .gtl-head h2 { font-size: 19px; }
/* (a phone: the button on two lines, so the name and the wallet keep the row) */
.gtl.embedded.phone .gtl-rulesbtn { width: 86px; height: auto; min-height: 40px; padding: 2px 6px; font-size: 12px; line-height: 1.15; white-space: normal; }
/* (the pockets wrap onto a second row when they must, every one in view; the
   window of its own scrolls them sideways) */
.gtl.embedded.phone .gtl-pockets { flex-wrap: wrap; overflow: visible; padding-bottom: 8px; border-bottom: 2px dashed var(--rule); }
.gtl.embedded.phone .gtl-main { overflow: visible; padding: 10px 0 0; }
/* a phone on its side: the pockets in the header's row (as the window of its
   own on a short screen), wrapping rather than scrolling */
.gtl.embedded.short .gtl-head .gtl-pockets { flex-wrap: wrap; overflow: visible; padding: 0; border: 0; }
.gtl.embedded.short .gtl-head h2 { font-size: 18px; }
.gtl.embedded.short .gtl-main { padding-top: 6px; }
/* the sell flow on a phone or a short screen: Hub's whole window, as the window of its own's */
.gtl.embedded.phone .gtl-flow, .gtl.embedded.short .gtl-flow { width: 100%; height: 100%; padding: 10px 10px 8px; border: 0; border-radius: 8px; box-shadow: none; }
.gtl.embedded.short .gtl-flow { padding: 6px 10px 6px; }

/* ------------------------------------------------------------------- touch */
/* the kit's 44px targets (social-ui.css gives them only inside .pxui.touch,
   the social layer; these windows live in #windows) */
@media (pointer: coarse) {
  .gtl .px-btn, .gtl .px-pocket, .gtl .px-tab, .gtl .px-field, .gtl-chip, .gtl-typebtn, .gtl-x, .gtl-pg:not(.gap), .gtl-card .px-btn { min-height: 44px; }
  .gtl-x, button.gtl-pg { min-width: 44px; }
  .gtl .gtl-sortsel { height: 44px; }
  .gtl-grab { height: 44px; }
  .gtl-row, .gtl-pickrow { min-height: 54px; }
  .gtl-slotmenu { width: 44px; height: 44px; top: 2px; right: 2px; }
  .gtl-slotpop { top: 50px; }
  .gtl-slotpop .px-item, button.gtl-st, .gtl-why, .gtl-slotbtn { min-height: 44px; }
  /* (the 44 px ⋯: its room kept on the name's line) */
  .gtl-slot.active .gtl-slotnm { padding-right: 46px; }
}

/* --------------------------------------------------------------- the cards */
/* "How the GTL works" and the cap's "Why?" (rules.js): over the window */
/* the scrim under a card: over the whole room, taps stay off the market */
.window.gtl-cardscrim { inset: 0; max-width: none; max-height: none; padding: 8px; display: flex; align-items: center; justify-content: center; background: #0b122266; }
.pxui.gtl-card { flex: none; width: min(440px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.gtl-card-title { font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.gtl-card-lines { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.gtl-card-lines li { position: relative; padding-left: 18px; }
.gtl-card-lines li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; background: var(--blue); }
.gtl-card-lines li.mine { padding: 6px 10px 6px 26px; border-radius: 8px; background: var(--announce); color: var(--gold); font-weight: 600; }
.gtl-card-lines li.mine::before { left: 10px; top: calc(6px + .5em); background: var(--sel-line); }
.gtl-card-body { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.gtl-card-ok { width: 100%; height: 44px; font-size: 17px; }
