/* Tamarin app shell. Tokens mirror Figma "TAM Color" / "TAM Size" (EG76fPhNTXJGWOKhVd2RbT, page 04 Foundations).
   No inline styles anywhere: the /tam/ CSP is style-src 'self'. */
/* hidden always wins: a class's own display (.actions{display:flex}, .full-photo{display:block}) must never show
   something the code hid (Fable 0.7 S5). This is the only [hidden] rule; don't add per-class ones. */
[hidden]{display:none!important}
:root{
  --bg-canvas:#f9f5ef; --bg-surface:#ffffff; --bg-sunken:#f3eee6; --line:#e4dccf;
  --ink:#1e1b16; --ink-2:#5f574c; --on-accent:#ffffff;
  --accent:#b4501a; --accent-strong:#8f3c10; --accent-soft:#fbe7d7;
  --info:#2c5f8a; --info-soft:#e2edf7; --warn:#8a5a00; --warn-soft:#fff1cf; --ok:#2e7a4c; --ok-soft:#e2f2e8;
  --real-warn:#b34a00; --on-real-warn:#ffffff; /* TAM 0.7.8: publish-on-real-eBay buttons while in training (.btn.real-warn) */
  --radius:12px; --tap:44px;
  color-scheme:light;
}
*{box-sizing:border-box}
/* ROOT element, not body: the viewport reads touch-action from html (pwa-shell-check, cos-obs-095). */
html{touch-action:pan-y pinch-zoom;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;background:var(--bg-canvas)}
body{margin:0;background:var(--bg-canvas);color:var(--ink);font:17px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;overflow-x:clip}
.shell{min-height:100dvh;max-width:32rem;margin:0 auto;display:flex;flex-direction:column;gap:16px;
  padding-top:calc(env(safe-area-inset-top,0px) + 24px);padding-right:calc(env(safe-area-inset-right,0px) + 16px);
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 32px);padding-left:calc(env(safe-area-inset-left,0px) + 16px)}
.boot{color:var(--ink-2)}
h1{font-size:28px;line-height:34px;margin:8px 0 0;letter-spacing:-.01em}
h2{font-size:17px;line-height:22px;margin:0}
p{margin:0}
.lede{color:var(--ink-2);font-size:15px;line-height:20px}
.small{color:var(--ink-2);font-size:13px;line-height:18px}
.grow{flex:1}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.step{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start;background:var(--bg-surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px}
.step .num{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);display:grid;place-items:center;font-weight:600;font-size:15px}
.step .t{font-weight:600;font-size:15px;line-height:20px}
.step .d{color:var(--accent-strong);font-size:13px;line-height:18px}
.card{background:var(--bg-surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:8px}
.callout{border-radius:var(--radius);padding:12px;font-size:15px;line-height:20px}
.callout.info{background:var(--info-soft);color:var(--info)}
.callout.accent{background:var(--accent-soft);color:var(--accent-strong)}
.share-hint{display:flex;gap:8px;align-items:center;font-weight:600}
.share-hint .arrow{font-size:22px;line-height:1}
.btn{appearance:none;border:0;border-radius:var(--radius);min-height:var(--tap);padding:12px 16px;font-family:inherit;font-weight:600;font-size:17px;line-height:22px;width:100%;cursor:pointer;text-align:center;text-decoration:none;display:block}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.secondary{background:var(--bg-sunken);color:var(--ink)}
.btn.text{background:transparent;color:var(--accent)}
.btn:focus-visible,a:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px}
.btn[disabled]{opacity:.55;cursor:default}
.actions{display:flex;flex-direction:column;gap:8px}
.url{font:15px/20px ui-monospace,Menlo,monospace;background:var(--bg-sunken);border-radius:8px;padding:10px 12px;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all}
.qr{align-self:center;width:200px;height:200px;background:#fff;padding:12px;border-radius:var(--radius);border:1px solid var(--line)}
.qr svg{display:block;width:100%;height:100%}
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:var(--tap)}
.nav .title{font-weight:600}
.nav .left{justify-self:start}.nav .right{justify-self:end}
.nav button{appearance:none;background:none;border:0;color:var(--accent);font:inherit;min-height:var(--tap);min-width:var(--tap);padding:0 4px;cursor:pointer}
.empty{text-align:center;display:flex;flex-direction:column;gap:8px;padding:48px 8px}
.row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.status{min-height:18px}
a{color:var(--accent)}
/* Headings get programmatic focus on each screen change (VoiceOver starts there); no ring for that. */
[tabindex="-1"]:focus{outline:none}
.card p{font-size:15px;line-height:20px}
.link-row{display:flex;align-items:center;min-height:var(--tap)}
/* A button that reads as a row (Fable 0.8 review 2 #14): no native button look. */
button.link-row{appearance:none;background:none;border:0;padding:0;width:100%;text-align:left;font:inherit;color:var(--accent-strong);cursor:pointer}

/* D-32 (6): "Tamarin has moved" on the old address only (js/moved.js). Static at the top of the page, above the
   shell, so it never covers the TRAINING banner or the tab bar. */
.moved-bar{display:flex;flex-direction:column;gap:8px;max-width:32rem;margin:0 auto;background:var(--warn-soft);color:var(--ink);border-bottom:2px solid var(--warn);
  padding-top:calc(env(safe-area-inset-top,0px) + 12px);padding-right:calc(env(safe-area-inset-right,0px) + 16px);padding-bottom:12px;padding-left:calc(env(safe-area-inset-left,0px) + 16px)}
.moved-bar h2{font-size:17px;line-height:22px;overflow-wrap:anywhere}
.moved-bar p{font-size:15px;line-height:20px}
.moved-bar .moved-address{user-select:all;-webkit-user-select:all;overflow-wrap:anywhere}
/* Update bar (new version waiting): floats above the content, clear of the home indicator. */
.update-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 16px);z-index:20;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 32px);padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:16px;border-radius:var(--radius);background:var(--ink);color:var(--bg-surface);box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:15px;font-weight:600}
.update-bar button{appearance:none;min-height:var(--tap);padding:0 16px;border-radius:var(--radius);border:0;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
.update-bar .go{background:var(--accent);color:var(--on-accent)}
.update-bar .later{background:transparent;color:var(--bg-surface)}
.update-bar button:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}

/* --- 0.2.0 items and photos (TAM-040/041/042) --- */
.callout.warn{background:var(--warn-soft);color:var(--warn)}
.callout.warn .btn{margin-top:8px}
.alert:empty{display:none}
.alert{display:flex;flex-direction:column;gap:8px}
.actions.sticky{position:sticky;bottom:calc(env(safe-area-inset-bottom,0px) + 8px);background:var(--bg-canvas);padding-top:8px}
.btn.danger{background:#a3261b;color:#fff}
.btn.danger-text{color:#a3261b}
.confirm{display:flex;flex-direction:column;gap:8px}
.tips{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:20px}
.items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.item-row{display:flex;gap:12px;align-items:center;min-height:64px;padding:8px;background:var(--bg-surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);text-decoration:none}
.item-row .thumb{width:56px;height:56px;flex:none;border-radius:8px;object-fit:cover;background:var(--bg-sunken)}
.item-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.item-name{font-weight:600}
.item-meta{color:var(--ink-2);font-size:15px;line-height:20px}
.item-warn{color:var(--warn);font-size:13px;line-height:18px}
.badge{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--bg-sunken);color:var(--ink);font-size:13px;line-height:20px;font-weight:600}
.state-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:var(--ink-2)}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tile{appearance:none;position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg-sunken);cursor:pointer}
.tile img{display:block;width:100%;height:100%;object-fit:cover}
.tile[aria-pressed="true"]{border:4px solid var(--accent-strong)}
.tile .tag{position:absolute;left:4px;padding:1px 6px;border-radius:6px;font-size:12px;line-height:16px;font-weight:600}
.tile .cover{top:4px;background:var(--ink);color:#fff}
.tile .small-tag{bottom:4px;right:4px;background:var(--warn-soft);color:var(--warn)}
.tile:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
textarea{width:100%;font:inherit;font-size:17px;line-height:22px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-surface);color:var(--ink);resize:vertical;min-height:88px}
textarea:focus-visible,input:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{appearance:none;min-height:var(--tap);padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg-surface);color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
.chip .tick{display:none}
.chip[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-strong);font-weight:600}
.chip[aria-pressed="true"] .tick{display:inline}
.chip:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px}
.save-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.save-list li{display:flex;flex-direction:column;gap:6px}
.choices{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.choices legend{font-weight:600;padding:0;margin-bottom:8px}
.choice{display:flex;gap:12px;align-items:flex-start;min-height:var(--tap);padding:8px 0;cursor:pointer}
.choice input{width:22px;height:22px;margin:2px 0 0;flex:none;accent-color:var(--accent)}
.choice > span{display:flex;flex-direction:column;gap:2px}
.choice-label{font-size:17px}
.full-photo{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;border-radius:8px;background:var(--bg-sunken)}

/* --- 0.2.1 Connect your AI (TAM-050/051) --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.stack{display:flex;flex-direction:column;gap:16px}
.step-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.manual{display:flex;flex-direction:column;gap:8px}
.manual label{font-weight:600}
/* Not a password field (iOS would offer to save the key as a website password); masked by CSS instead. */
.key-input{min-height:var(--tap);width:100%;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-surface);color:var(--ink);font:inherit;font-size:17px;-webkit-text-security:disc}
.status-line{min-height:22px}
.status-line.error{color:#a3261b;font-weight:600}
.masked{font:15px/20px ui-monospace,Menlo,monospace}
.btn[aria-disabled="true"]{opacity:.55;cursor:default}
/* Home (FR-06): setup checklist. Done/not done is in words for VoiceOver, never colour alone (NFR-A1). */
.setup{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.setup-step{display:flex;gap:12px;align-items:center;min-height:var(--tap);padding:4px 0}
.setup-mark{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:600;background:var(--bg-sunken);color:var(--ink-2)}
.setup-step[data-state="done"] .setup-mark{background:var(--ok-soft);color:var(--ok)}
.setup-step .item-text{flex:1;min-width:0}
.setup-step .btn{width:auto;flex:none;padding-inline:8px}
/* Shipping and returns (FR-13, FR-15) */
.field-error{color:var(--warn);font-weight:600;margin:4px 0 0}
.cost-row{display:flex;flex-direction:column;gap:6px;padding:0 0 8px 34px}
#ship-cost,#ship-zip{font:inherit;font-size:17px;min-height:var(--tap);padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-surface);color:var(--ink);max-width:12em}

/* D-23: LIVE vs TRAINING. Training (eBay Sandbox) is unmistakable: a striped banner on every screen, a striped
   left edge on the page and a teal accent instead of Tamarin's orange. Colours pass 4.5:1 on their backgrounds. */
:root{--live:#2e7a4c;--live-soft:#e2f2e8;--train:#0f5e6e;--train-soft:#dff3f6}
.env-badge{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:12px;line-height:18px;font-weight:700;letter-spacing:.04em;vertical-align:1px;border:1px solid currentColor}
.env-badge.production{color:var(--live);background:var(--live-soft)}
.env-badge.sandbox{color:var(--train);background:var(--train-soft)}
.env-banner{margin:0;padding:10px 12px;border-radius:var(--radius);color:#fff;font-size:14px;line-height:19px;
  background:repeating-linear-gradient(135deg,var(--train) 0 14px,#0b4a57 14px 28px)}
.env-banner strong{letter-spacing:.06em}
html[data-ebay-env="sandbox"]{--accent:#0f6b7d;--accent-strong:#0b4a57;--accent-soft:#dff3f6}
html[data-ebay-env="sandbox"] body{border-left:6px solid transparent;border-image:repeating-linear-gradient(180deg,var(--train) 0 14px,#f2c200 14px 28px) 6}
.account{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:var(--radius)}
.account[data-in-use]{border-width:2px}
.account.production[data-in-use]{border-color:var(--live)}
.account.sandbox[data-in-use]{border-color:var(--train)}
.account .name{font-weight:600;overflow-wrap:anywhere}
.account .means{font-size:13px;line-height:18px;color:var(--ink-2)}
.accounts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}

/* D-26 Getting around: a bottom tab bar (Home · Items · Settings) and the TRAINING banner pinned to the top. */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:18;display:flex;flex-wrap:wrap;justify-content:center;gap:0;background:var(--bg-surface);border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.tabbar a{flex:1 0 4.5rem;max-width:10.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:6px 4px;color:var(--ink-2);text-decoration:none;font-size:13px;line-height:16px;font-weight:500;text-align:center;border-top:3px solid transparent}
.tabbar a .tab-icon{font-size:20px;line-height:22px}
.tabbar a[aria-current="page"]{color:var(--accent-strong);font-weight:700;border-top-color:var(--accent-strong)}
.tabbar a:focus-visible{outline:3px solid var(--accent-strong);outline-offset:-3px}
/* --tabs-h is the bar's real height, safe area included (dom.js showTabs, a ResizeObserver): with large text the bar
   wraps to two rows, and everything above it moves up with it (Fable 0.7 S14). The fallback is one row. */
html.has-tabs .shell{padding-bottom:calc(var(--tabs-h,calc(env(safe-area-inset-bottom,0px) + 60px)) + 36px)}
html.has-tabs .update-bar{bottom:calc(var(--tabs-h,calc(env(safe-area-inset-bottom,0px) + 60px)) + 12px)}
html[data-ebay-env="sandbox"] .tabbar{border-top:4px solid transparent;border-image:repeating-linear-gradient(90deg,var(--train) 0 14px,#f2c200 14px 28px) 4}
.env-banner{position:sticky;top:0;z-index:16}
.account-chip{display:inline-flex;align-items:center;gap:4px;max-width:12rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.account-chip .env-badge{margin-left:0}
/* Review screen (TAM-060) */
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600}
.field input[type=text],.field select{font:inherit;font-size:17px;min-height:var(--tap);padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-surface);color:var(--ink);width:100%;box-sizing:border-box}
.field.needs input,.field.needs select{border:2px solid var(--warn)}
.field .req{color:var(--warn);font-weight:600}
.todo{margin:0;padding-left:1.2rem}
.todo a{display:inline-block;min-height:32px;padding:4px 0}
.review-cover{border-radius:var(--radius);object-fit:cover}
.sheet .fee{font-size:20px;line-height:26px}
/* Large text (Fable 0.5.0 S9): nothing may push the page sideways at 200% text on a 320 pt screen. */
fieldset{min-width:0;min-inline-size:0}
.choice > span,.item-text,.item-meta{min-width:0;overflow-wrap:anywhere}
.nav{grid-template-columns:auto minmax(0,1fr) auto}
.nav .right{min-width:0;max-width:60vw}
.account-chip{max-width:100%;min-width:0}
.tabbar a{min-width:0;overflow-wrap:anywhere}
.setup-step{min-width:0;flex-wrap:wrap}
.setup-step .btn{flex:none}

/* D-30: pinned action area above the tab bar, and folding sections. */
.dock{position:fixed;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 60px);z-index:17;display:flex;flex-direction:column;gap:6px;
  padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));background:var(--bg-canvas);border-top:1px solid var(--line)}
.dock{max-height:45vh;overflow:auto}
.dock > *{max-width:32rem;width:100%;margin:0 auto}
.dock .dock-note{font-size:13px;line-height:18px;color:var(--ink-2);text-align:center}
.dock .dock-row{display:flex;gap:8px}
.dock .dock-row .btn{flex:1}
/* 0.7.4 S1: the real-eBay line and the "List it for real" question are the loudest text in the dock, not the quietest. */
.dock .dock-note.dock-warn{font-size:17px;line-height:22px;font-weight:600;color:var(--warn);background:var(--warn-soft);border-radius:var(--radius);padding:6px 10px}
.dock .dock-note.dock-warn:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px}
.dock .btn.waiting{opacity:.55}
/* TAM 0.7.8 (Mike 2026-11-22): a button that publishes on REAL eBay while training is in use is orange, a warning that
   stands apart from training's teal primary, in the amber family of the 0.7.4 real-eBay line (.dock-warn, --warn).
   White on --real-warn is 5.39:1 (WCAG AA for 17px text needs 4.5:1); the edge ring is --warn. Tamarin is light-only
   (color-scheme:light, no dark theme), so one value serves both OS modes; e2e-add-live checks it in each. */
.btn.real-warn{background:var(--real-warn);color:var(--on-real-warn);box-shadow:inset 0 0 0 2px var(--warn)}
.dock .dock-confirm{display:flex;flex-direction:column;gap:6px}
html.has-dock .shell{padding-bottom:calc(env(safe-area-inset-bottom,0px) + var(--dock-h,130px) + 76px)}
html.has-tabs.has-dock .shell{padding-bottom:calc(var(--tabs-h,calc(env(safe-area-inset-bottom,0px) + 60px)) + var(--dock-h,130px) + 16px)}
html.has-tabs .dock{bottom:var(--tabs-h,calc(env(safe-area-inset-bottom,0px) + 60px))}
html:not(.has-tabs) .dock{bottom:env(safe-area-inset-bottom,0px)}
.fold > h2{margin:0}
.fold-head{all:unset;cursor:pointer;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;width:100%;min-height:var(--tap);font-weight:700;font-size:17px}
.fold-head:focus-visible{outline:3px solid var(--accent-strong);outline-offset:2px;border-radius:6px}
.fold-head .caret{width:1em;color:var(--accent-strong)}
.fold-sum{font-weight:500;font-size:14px;color:var(--ink-2)}
.fold-sum.done{color:var(--ok)}
.fold-body{display:flex;flex-direction:column;gap:10px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.list-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.list-tools select,.list-tools input{font:inherit;font-size:16px;min-height:var(--tap);padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg-surface);color:var(--ink)}
.list-tools input{flex:1;min-width:8rem}

/* Sales tracker (FR-100 – FR-104): Your numbers and the item's Sales card. Figures use tabular digits. */
.figures{margin:0;display:grid;grid-template-columns:1fr;gap:12px}
.figure dt{font-weight:600}
.figure dd{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.figure-num{font-variant-numeric:tabular-nums;font-weight:700}
.figure .figure-num{font-size:28px;line-height:34px;overflow-wrap:anywhere}
.counts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.counts li{display:flex;justify-content:space-between;gap:12px;min-height:var(--tap);align-items:center;border-top:1px solid var(--line);flex-wrap:wrap}
.counts li:first-child{border-top:0}
.counts li > span:first-child{min-width:0;overflow-wrap:anywhere}
.tracker-status{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tracker-form input{font:inherit;font-size:17px;min-height:var(--tap);padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-surface);color:var(--ink);width:100%;max-width:14em}
.numbers-row{justify-content:space-between}
.numbers-row .chev{font-size:24px;color:var(--ink-2);flex:none;padding-right:8px}
/* --- FR-33b Plain background (TAM-044, D-30) --- */
/* "background" is one long word: at 200% text on a 320 pt screen it must break, not push the page sideways. */
.long-h1{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.plain-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.plain-card .plain-h{font-size:17px;line-height:22px;margin:0}
.plain-tile{width:50%;max-width:180px;cursor:zoom-in}
.plain-tile img{object-fit:contain;background:var(--bg-sunken)}
.plain-q{display:flex;flex-direction:column;gap:6px}
/* Two buttons side by side, stacking when large text leaves no room (200% zoom). */
.plain-card .pair{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.plain-card .btn{overflow-wrap:anywhere}
.plain-card .pair .btn[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-strong);outline:2px solid var(--accent-strong);outline-offset:-2px}
.btn.inline{display:inline;width:auto;min-height:var(--tap);padding:0 4px}
.choice .small{display:block}
/* TAM 0.7.5 (D-32, D-33): which kind of eBay a Listed item is on, in words; practice uses the TRAINING look. */
.listing-kind{font-weight:600;min-width:0;overflow-wrap:anywhere}
.listing-kind.practice{color:var(--train)}
.listing-kind .env-badge{margin-left:6px}
.callout.practice{box-shadow:inset 6px 0 0 var(--train);padding-left:18px;overflow-wrap:anywhere}
.callout.practice .env-badge{margin-left:0}
.list-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.list-links .btn{width:auto;flex:0 1 auto}
.list-tools select{max-width:100%;min-width:0}
/* TAM 0.8 (D-32 (5)): Check your listing → Photos, checked as a set. Each tile: the picture (opens it) and a
   "Use this photo" tick, 44 px; a word under it says what it is (never colour alone). */
.cgrid{gap:10px}
.ctile{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0}
.ctile.unused .tile img{opacity:.35}
.ctile.flagged .tile{border-color:var(--warn);border-width:3px}
.use-tick{appearance:none;position:absolute;top:0;right:0;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:flex-start;justify-content:flex-end}
.use-tick span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:6px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px var(--ink);background:rgba(0,0,0,.45);color:#fff;font-weight:700;font-size:16px;line-height:1}
.use-tick[aria-checked="true"] span{background:var(--accent-strong)}
.use-tick:focus-visible span{outline:3px solid var(--accent-strong);outline-offset:2px}
.tile-word{font-size:13px;line-height:18px;text-align:center;color:var(--ink);overflow-wrap:anywhere}
.ctile.flagged .tile-word{color:var(--warn);font-weight:700}
.photo-panel .compare{grid-template-columns:1fr 1fr}
.photo-panel figure{margin:0}
.photo-panel .full-photo{width:100%;height:auto;border-radius:8px;background:var(--bg-sunken)}
.photo-panel [aria-pressed="true"],.photo-panel [role="switch"][aria-checked="true"]{background:var(--accent-soft);color:var(--accent-strong);outline:2px solid var(--accent-strong);outline-offset:-2px}
.panel-row{display:flex;flex-wrap:wrap;gap:4px 12px}
.bg-row .chips{display:flex;flex-wrap:wrap;gap:8px}
.run-line{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
/* FR-11a pairing word: every word the same button, three across, A to Z. */
.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 12px}
/* rem, so the words grow with the phone's text size; one mis-tap costs a whole new sign-in (Fable review #13) */
.word-grid .btn.word{padding:14px 4px;min-height:56px;letter-spacing:.06em;font-size:1rem;border:2px solid transparent}
.word-grid .btn.word[aria-pressed="true"]{border-color:var(--accent-strong)}
