/* Trading post: LCD paper, ivory creature cards, B/A deck browsing. */
.market-page [hidden] { display: none !important; }
.market-page .account-main { font-size: 13px; }
.market-page .market-heading { flex-wrap: wrap; align-items: flex-start; }
.market-page .market-heading > div { flex: 1 1 auto; min-width: 0; }
.market-page .market-wallet { margin: 6px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.market-page .market-wallet strong { font: 800 1.05rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: #304029; }
/* Only the available points share Odette's frame; the board starts just below it. */
body#chimera-console.market-page #market-main .market-heading {margin:0 0 6px;padding:0 0 6px;border-bottom:1px solid var(--lcd-line)}
body#chimera-console.market-page #market-main .market-heading .account-eyebrow {display:none}
body#chimera-console.market-page #market-main .market-heading h1 {margin:0;font-size:18px;line-height:1.4}
body#chimera-console.market-page .market-results-heading:has(>.market-pagination[hidden]) {display:none}
body#chimera-console.market-page #explorer-guide #market-wallet {margin:0;padding:3px 0 3px 36px;min-width:0;border-left:1px solid #b5a37988;align-self:center}
body#chimera-console.market-page #explorer-guide #market-wallet::before {left:6px;width:26px;height:26px}
body#chimera-console.market-page #explorer-guide #market-wallet strong {display:block;font-size:16px;line-height:1.3}
body#chimera-console.market-page #explorer-guide:has(>#market-wallet:not([hidden])):has(details[open]) {grid-template-columns:80px minmax(0,1fr)}
body#chimera-console.market-page #explorer-guide:has(>#market-wallet:not([hidden])):has(details[open]) .explorer-dialogue {grid-column:1/-1;grid-row:2}
body#chimera-console.market-page #explorer-guide:has(>#market-wallet:not([hidden])):has(details[open]) #market-wallet {grid-column:2;grid-row:1}
/* A single compact welcome row leaves the LCD to the cards. Advice still opens. */
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) {grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:4px 8px;margin:0 0 6px;align-items:center}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) :is(.explorer-portrait,.explorer-image) {width:40px;height:40px}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) :is(.explorer-role,.explorer-speech) {display:none}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-dialogue {position:relative;padding-right:44px;min-width:0}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-name {margin:0;font-size:15px;line-height:1.3}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-advice {position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-listen {display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;font-size:0}
body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-listen::before {font-size:22px}
body#chimera-console.market-page #market-main #market-usage {margin:0 0 6px;font-size:11px;line-height:1.35;color:var(--lcd-muted)}
@media(max-width:620px) {
  body#chimera-console.market-page #explorer-guide #market-wallet {padding-left:8px}
  body#chimera-console.market-page #explorer-guide #market-wallet::before {display:none}
  body#chimera-console.market-page #explorer-guide #market-wallet strong {font-size:14px}
  body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) {grid-template-columns:32px minmax(0,1fr) auto;gap:6px;padding-inline:6px}
  body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) :is(.explorer-portrait,.explorer-image) {width:32px;height:32px}
  body#chimera-console.market-page #market-main #explorer-guide:not(:has(details[open])) .explorer-name {font-size:12px}
}
.market-page .market-error { padding: 12px; border: 1px solid #ad6977; border-radius: 5px; color: #702335; background: #f2e2df; overflow-wrap: anywhere; }
.market-page #market-retry { margin: 0 0 18px; }
.market-page .market-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.market-page .market-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
/* SELECT opens the same LCD frame as MENU, with the original register actions. */
body#chimera-console.market-page #market-console-menu .market-menu-heading {display:flex;align-items:center;gap:10px;min-width:0}
body#chimera-console.market-page #market-console-menu .market-menu-heading img {flex:none;width:48px;height:48px;object-fit:contain}
body#chimera-console.market-page #market-console-menu h2 {font-size:16px;line-height:1.35;overflow-wrap:anywhere;outline:none}
body#chimera-console.market-page #market-console-menu header>button {flex:none}
body#chimera-console.market-page #market-console-menu #market-tabs {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0}
body#chimera-console.market-page #market-console-menu #market-tabs>button {display:grid;grid-template-columns:24px minmax(0,1fr) 12px;gap:12px;align-items:center;padding:12px;min-height:72px;border:2px solid var(--lcd-line);border-radius:0;background:var(--lcd-light);color:#314025;box-shadow:none;text-align:left;text-wrap:initial}
body#chimera-console.market-page #market-console-menu #market-tabs>button:hover {background:#f4f7e5}
body#chimera-console.market-page #market-console-menu #market-tabs>button[aria-pressed=true] {border-color:var(--lcd-accent-dark);background:var(--lcd-accent);color:var(--lcd-on-accent);box-shadow:2px 2px 0 var(--lcd-accent-dark)}
body#chimera-console.market-page #market-console-menu #market-tabs>button:focus-visible {outline:2px solid #822249;outline-offset:2px}
body#chimera-console.market-page #market-console-menu .lcd-tab-index {display:block;font:10px ui-monospace,monospace;opacity:.8}
body#chimera-console.market-page #market-console-menu small {font-size:12px;line-height:1.45}
body#chimera-console.market-page #market-console-menu #market-menu-search {margin-top:4px;border-style:dashed}
.market-page .market-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin: 0; padding: 8px 10px; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.market-page .market-tabs button[aria-pressed="true"] { background: #315e49; color: #fffaf0; border-color: #315e49; }
.market-page .market-section-hint { margin: 0 0 14px; }
.market-page .market-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: end; margin-bottom: 14px; }
.market-page .market-search label { margin-top: 0; }
.market-page .market-search button[type="submit"] { width: auto; margin: 0; }
.market-page .market-sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 4px; border: 0; min-width: 0; }
.market-page .market-sort legend { padding: 0; margin-bottom: 6px; font-size: .78rem; font-weight: 700; }
.market-page .market-sort label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid #98a58e; border-radius: 6px; background: #fffef6; font-size: .82rem; cursor: pointer; }
.market-page .market-sort label:has(input:checked) { background: #315e49; color: #fffaf0; border-color: #315e49; }
.market-page .market-sort input { margin: 0; accent-color: #315e49; }
.market-page .market-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 16px; flex-wrap: wrap; }
.market-page .market-results-heading p { margin: 0; }
.market-page .market-pagination { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.market-page .market-pagination button { padding: 8px 11px; min-height: 44px; }
.market-page .market-empty { padding: 30px 24px; display: grid; gap: 10px; justify-items: start; }
.market-page .market-empty h2 { margin: 0; font-size: 1.15rem; }
.market-page .market-empty p { margin: 0; }
.market-page .market-items { list-style: none; margin: 0; padding: 0; }
.market-page .market-card { position: relative; margin: 0; padding: 0; min-width: 0; }
body#chimera-console.market-page .market-card-link { display: block; padding: 0; border: 0; border-radius: 6.3% / 4.2%; color: inherit; text-decoration: none; box-shadow: none; background: transparent; }
.market-page .market-card-link:focus-visible { outline: 3px solid #8b244b; outline-offset: 4px; }
.market-page .market-portrait-placeholder { display: grid; place-content: center; gap: 12px; height: 100%; padding: 12px; font: italic 5.5cqw/1.4 Georgia, serif; color: #7b6746; text-align: center; }
.market-page .market-portrait-placeholder::before { content: '◇'; font-size: 20cqw; font-style: normal; color: #a28b5e; }
/* Board of looping columns: every card visible, each column scrolls endlessly. */
.market-page .market-board { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 240px; overflow: hidden; }
.market-page .market-board-list { --market-gap: 12px; display: grid; grid-template-columns: repeat(var(--market-columns, 3), minmax(0, 1fr)); gap: var(--market-gap); flex: 1; min-height: 0; margin: 0; padding: 4px 2px 0; list-style: none; }
.market-page .market-column { position: relative; min-width: 0; min-height: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; touch-action: pan-x pinch-zoom; }
.market-page .market-column.is-static { touch-action: auto; }
.market-page .market-track { display: flex; flex-direction: column; gap: var(--market-gap); margin: 0; padding: 0; list-style: none; will-change: transform; }
.market-page .market-card { width: var(--market-card-width, 100%); }
.market-page .market-card.is-board-active .creature-card { box-shadow: 0 0 0 3px #8b244b66, 0 2px 1px #7f6b4d50, 0 7px 12px #40331e24; }
.market-page .market-board-hint { margin: 8px 0 0; text-align: center; font-size: .76rem; color: #526047; }
.market-page .market-card-price { display: table; max-width: 100%; box-sizing: border-box; margin: 7px auto 3px; padding: 4px 10px; border: 1px solid #b8a578; border-radius: 3px; background: #f3ead2; box-shadow: 0 1px 2px #40331e20; font: 800 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: #304029; font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-page .market-card.is-own .market-card-price::after { content: ' ·'; color: #8b244b; }
.market-page .market-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.market-page .market-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1px solid #b5a17e; border-radius: 12px; background: #f9f2e5; min-width: 0; }
.market-page .market-row[data-state="sold"] { border-style: dashed; }
.market-page .market-row[data-state="suspended"], .market-page .market-row[data-state="expired"], .market-page .market-row[data-state="withdrawn"] { opacity: .85; }
.market-page .market-row-thumb { display: block; width: 84px; min-width: 0; }
.market-page .market-row-thumb .creature-card { display: block; width: 100%; }
.market-page .market-row-thumb .market-portrait-placeholder { min-height: 96px; border: 1px dashed #9eaf8f; border-radius: 9px; font-size: .7rem; }
.market-page .market-row-thumb .market-portrait-placeholder::before { font-size: 1.4rem; }
.market-page .market-row-body { display: grid; gap: 6px; min-width: 0; }
.market-page .market-row-body strong { font-size: 1rem; overflow-wrap: anywhere; }
.market-page .market-row-detail { margin: 0; font-size: .84rem; color: #526047; overflow-wrap: anywhere; }
.market-page .market-row-price { font-weight: 700; color: #304029; font-variant-numeric: tabular-nums; }
.market-page .market-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.market-page .market-row-actions button { width: auto; margin: 0; min-height: 44px; padding: 8px 12px; }
.market-page .market-row-link { display: inline-flex; align-items: center; min-height: 44px; color: #742443; text-decoration: underline; overflow-wrap: anywhere; }
.market-page .market-detail { display: grid; gap: 16px; }
.market-page #market-back { justify-self: start; margin: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.market-page .market-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.market-page .market-detail-heading > div, .market-page .market-detail-heading > p { margin: 0; }
.market-page .market-detail-heading h2 { margin: 4px 0 0; font-size: 1.55rem; overflow-wrap: anywhere; }
.market-page .market-detail-heading h2:focus-visible { outline: 3px solid #8b244b; outline-offset: 4px; }
.market-page .market-state { display: inline-block; padding: 4px 10px; border: 1px solid #809369; border-radius: 999px; background: #dbe5b9; color: #34452b; font: 700 .72rem/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; }
.market-page .market-state[data-state="sold"] { background: #ebe3c6; border-color: #9b795c; color: #5a4326; }
.market-page .market-state[data-state="suspended"], .market-page .market-state[data-state="expired"], .market-page .market-state[data-state="withdrawn"] { background: #eee7e4; border-color: #ad6977; color: #702335; }
.market-page .market-spread { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.market-page .market-figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.market-page .market-figure figcaption { font-size: .78rem; color: #526047; text-align: center; }
.market-page .market-portrait { display: block; min-width: 0; }
.market-page .market-portrait .creature-card { display: block; width: 100%; }
.market-page .market-portrait img { cursor: zoom-in; }
.market-page .market-portrait img:focus-visible { outline: 3px solid #8b244b; outline-offset: 4px; }
.market-page .market-portrait .market-portrait-placeholder { min-height: 220px; border: 1px dashed #9eaf8f; border-radius: 9px; font-size: .9rem; }
.market-page .market-entry { display: grid; gap: 16px; min-width: 0; }
.market-page .market-meta { margin: 0; font-weight: 700; color: #304029; overflow-wrap: anywhere; }
.market-page .market-notes { border: 1px solid #c9b58f; border-radius: 10px; background: #fbf6ea; padding: 12px 14px; }
.market-page .market-notes summary { cursor: pointer; list-style: none; min-height: 32px; }
.market-page .market-notes summary::-webkit-details-marker { display: none; }
.market-page .market-notes summary:focus-visible { outline: 3px solid #8b244b; outline-offset: 3px; }
.market-page .market-notes-heading { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #594c32; }
.market-page .market-ornament { color: #a28b5e; }
.market-page .market-read-action { margin-left: auto; font-size: .78rem; color: #742443; text-decoration: underline; }
.market-page .market-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font: italic .9rem/1.5 Georgia, serif; color: #5a4c33; white-space: pre-wrap; overflow-wrap: anywhere; }
.market-page .market-notes[open] .market-excerpt { display: none; }
.market-page .market-description { margin: 10px 0 0; font: .95rem/1.6 Georgia, serif; color: #3f3222; white-space: pre-wrap; overflow-wrap: anywhere; }
.market-page .market-attacks { margin: 0; }
.market-page .market-attacks-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.market-page .market-attacks-heading h3 { margin: 0; font-size: 1rem; }
.market-page .market-attack-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.market-page .market-attack-list li { padding: 10px 12px; border: 1px solid #b5a17e; border-radius: 9px; background: #f9f2e5; min-width: 0; }
.market-page .market-attack-list strong { display: block; overflow-wrap: anywhere; }
.market-page .market-attack-list p { margin: 4px 0 0; font-size: .86rem; color: #526047; white-space: pre-wrap; overflow-wrap: anywhere; }
.market-page .market-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.market-page .market-facts > div { padding: 10px 12px; border: 1px solid #9baa80; border-radius: 6px; background: #e8edd3; min-width: 0; overflow-wrap: anywhere; }
.market-page .market-facts dt { font: 700 .72rem/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: #526047; }
.market-page .market-facts dd { margin: 4px 0 0; font-weight: 700; color: #304029; }
.market-page .market-fact-note { display: block; margin-top: 4px; font-weight: 400; font-size: .78rem; color: #526047; }
.market-page .market-refusal { margin: 0; display: grid; gap: 6px; border-color: #ad6977; color: #702335; background: #f2e2df; }
.market-page .market-success { margin: 0; border-color: #809369; background: #dbe5b9; color: #34452b; }
.market-page .market-success a { color: #742443; }
.market-page .market-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.market-page .market-detail-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 1 1 200px; margin: 0; min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
.market-page .market-detail-actions #market-report { flex: 0 1 auto; }
.market-page #market-main.has-detail .market-tabs { display: none; }
@media (max-width: 900px) {
  .market-page .market-spread { grid-template-columns: minmax(0, 1fr); }
  .market-page .market-figure { max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  /* Keep the heading on one row and the three tabs side by side so the deck keeps its LCD space. */
  body#chimera-console.market-page .market-heading { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; margin-bottom: 14px; }
  body#chimera-console.market-page .market-heading > div { flex: 1 1 200px; }
  .market-page .market-tabs { gap: 6px; margin-bottom: 12px; }
  .market-page .market-tabs button { min-height: 44px; padding: 6px 4px; font-size: .78rem; gap: 0; overflow-wrap: normal; }
  .market-page .market-tabs .lcd-tab-index { display: none; }
  .market-page .market-search { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .market-page .market-results-heading { align-items: stretch; flex-direction: column; }
  .market-page .market-pagination { justify-content: space-between; }
  .market-page .market-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .market-page .market-row-thumb { width: 64px; }
  .market-page .market-detail-actions button { flex-basis: 100%; }
  .market-page .market-detail-heading h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .market-page * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* The browse deck follows the size rule shared by the collection, the pre-combat
   roster and the progression page: the host hands it the LCD space left below the
   heading, the tabs and the results line, and nothing scrolls while cards are shown. */
body#chimera-console.market-page #market-main { container-type: size; }
body#chimera-console.market-page #market-main:has(#market-browse:not([hidden]) > .market-board:not([hidden])) { display: flex; flex-direction: column; }
body#chimera-console.market-page #market-main:has(#market-browse:not([hidden]) > .market-board:not([hidden])) > #market-content,
body#chimera-console.market-page #market-content > #market-browse:has(> .market-board:not([hidden])) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* ---- RP dressing: the exchange cabinet of a naturalists' society ---- */
/* Registry receipts: ledger paper, reference line, ink stamp for the state. */
body#chimera-console.market-page .market-row { position: relative; padding: 12px 14px 12px 12px; border: 1px solid #b5a17e; border-radius: 3px; background: repeating-linear-gradient(transparent 0 25px, #b8965a33 25px 26px), linear-gradient(#f6eedb, #eadcc2); box-shadow: 0 2px 1px #7f6b4d40; }
body#chimera-console.market-page .market-row::before { content: ''; position: absolute; left: 104px; top: 0; bottom: 0; width: 1px; background: #a5566a55; pointer-events: none; }
body#chimera-console.market-page .market-row-body { padding-right: 116px; }
body#chimera-console.market-page .market-row-registry { font: 700 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: #8a6d3b; overflow-wrap: anywhere; }
body#chimera-console.market-page .market-row-body > strong { font-family: Georgia, 'Times New Roman', serif; }
body#chimera-console.market-page .market-row-stamp { position: absolute; right: 18px; top: 12px; padding: 3px 9px; border: 2.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 6px; font: 900 12px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; transform: rotate(-8deg); opacity: .82; mix-blend-mode: multiply; color: #3f5a2e; pointer-events: none; white-space: nowrap; }
body#chimera-console.market-page .market-row-stamp[data-state="withdrawn"], body#chimera-console.market-page .market-row-stamp[data-state="expired"], body#chimera-console.market-page .market-row-stamp[data-state="suspended"] { color: #702335; }
/* The purse. */
body#chimera-console.market-page .market-wallet { position: relative; padding-left: 30px; }
body#chimera-console.market-page .market-wallet::before { content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); background: url('./assets/rpg-ui/optimized/wallet-192-cd42f900568ab76d.webp') center / contain no-repeat; image-rendering:pixelated; }
/* The archivist: medallion beside the messages that already exist; the text stays in its live region. */
body#chimera-console.market-page :is(.market-empty, .market-refusal, .market-success) { position: relative; padding-left: 100px; min-height: 84px; }
/* The console shell styles .account-panel with :has(#arena) (id-level specificity): the empty panels need three ids to keep their padding. */
body#chimera-console.market-page #market-main :is(#market-empty, #market-mine-empty, #market-purchases-empty) { padding-left: 100px; min-height: 84px; }
body#chimera-console.market-page :is(.market-empty, .market-refusal, .market-success)::before { content: ''; position: absolute; left: 16px; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); border-radius: 50%; background: #f6eedb url('./assets/explorers/odette-v1.webp') center / contain no-repeat; box-shadow: 0 0 0 2px #b8965a, 0 2px 1px #7f6b4d50; }
body#chimera-console.market-page :is(.market-empty, .market-refusal, .market-success):not([hidden]) { animation: market-arrive .3s ease both; }
@keyframes market-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
body#chimera-console.market-page .market-success-deed { margin: 0; }
/* The cabinet vignette behind the deck: no height taken, hidden on phones. */
body#chimera-console.market-page #market-browse > .market-board::before { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 70%; background: url('./assets/market/cabinet-v1.webp') center bottom / contain no-repeat; opacity: .3; pointer-events: none; }
body#chimera-console.market-page #market-browse > .market-board > * { position: relative; }
/* The trading post heading remains part of the LCD, like the other menus. */
body#chimera-console.market-page .market-heading {
  padding:0 0 12px;margin-bottom:14px;border:0;border-bottom:2px solid var(--lcd-line);
  border-radius:0;background:transparent;box-shadow:none;
}
body#chimera-console.market-page .market-heading .account-eyebrow {color:var(--lcd-muted)}
body#chimera-console.market-page .market-heading h1 {margin-bottom:0}

@media (max-width: 560px) {
  body#chimera-console.market-page :is(.market-empty, .market-refusal, .market-success) { padding-left: 24px; min-height: 0; }
  body#chimera-console.market-page #market-main :is(#market-empty, #market-mine-empty, #market-purchases-empty) { padding-left: 24px; min-height: 0; }
  body#chimera-console.market-page :is(.market-empty, .market-refusal, .market-success)::before { display: none; }
  body#chimera-console.market-page #market-browse > .market-board::before { display: none; }
  body#chimera-console.market-page .market-row::before { left: 84px; }
  body#chimera-console.market-page .market-row-body { padding-right: 0; padding-top: 30px; }
  body#chimera-console.market-page .market-row-stamp { right: 12px; top: 8px; font-size: 10px; }
}
/* The recorded exchange reads on paper, not on the LCD green, so the archivist's line and the deed stand out. */
body#chimera-console.market-page .market-success { background: linear-gradient(#f6eedb, #eadcc2); border-color: #809369; color: #304029; }

/* The listing is one in-place card. Its back is Odette's tabbed register. */
body#chimera-console.market-page #market-main.has-detail {display:flex;flex-direction:column;overflow:hidden}
body#chimera-console.market-page #market-main.has-detail > :is(.market-heading,#explorer-guide) {display:none}
body#chimera-console.market-page #market-main.has-detail > #market-content {display:flex;flex-direction:column;flex:1;min-height:0}
body#chimera-console.market-page #market-detail {display:flex;flex-direction:column;flex:1;min-height:0;gap:6px}
body#chimera-console.market-page #market-detail > #market-back,
body#chimera-console.market-page #market-detail :is(#market-buy,#market-withdraw) {display:none}
body#chimera-console.market-page #market-detail .creature-reader-detail[open] :is(#market-buy,#market-withdraw):not([hidden]) {display:inline-flex}
body#chimera-console.market-page .market-register-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:0 3px 4px;border-bottom:1px solid #82936688;color:#34452b;font:700 13px/1.4 ui-monospace,monospace}
body#chimera-console.market-page .market-register-toolbar strong {font:inherit;font-variant-numeric:tabular-nums}
body#chimera-console.market-page .market-register-space {flex:1;min-height:0;display:grid;place-items:center;container-type:size}
/* Host sizing and trading-only contents; the shared reader supplies both faces. */
body#chimera-console.market-page .market-register {width:min(100cqw,calc((100cqh - 4px) * 16 / 29),560px)}
body#chimera-console.market-page #market-detail-portrait {width:100%;height:100%}
body#chimera-console.market-page #market-detail-portrait > .market-portrait-placeholder {box-sizing:border-box;height:100%;background:#f2e8d1 url('./assets/cards/ivory-botanical-v1.webp') center / 100% 100% no-repeat;border:0;font-size:14px}
body#chimera-console.market-page .market-register-panel .market-attacks-heading {display:none}
body#chimera-console.market-page .market-register-price {margin:0;color:#63364a;font:600 clamp(24px,8cqw,36px)/1.2 Georgia,serif;text-align:center}
body#chimera-console.market-page .market-register-panel .market-state {display:table;margin:8px auto 0;border-radius:3px;background:transparent;font-size:10px;transform:rotate(-2deg)}
body#chimera-console.market-page .market-register-panel :is(.market-refusal,.market-success) {padding:12px;min-height:0;font:14px/1.5 Georgia,serif;box-shadow:none;border:1px dashed #b08971;background:#f2e8d6;color:#713344}
body#chimera-console.market-page .market-register-panel :is(.market-refusal,.market-success)::before {display:none}
body#chimera-console.market-page .market-register-panel #market-report {flex:none;min-height:44px;padding:8px 0;border:0;background:transparent;color:#802343;box-shadow:none;text-decoration:underline;font:12px/1.4 Georgia,serif}

/* Item icons and dialogue frames, without taking room from the card columns. */
body#chimera-console.market-page #market-main .market-heading h1 {display:flex;align-items:center;gap:10px}
body#chimera-console.market-page #market-main .market-heading h1::before {content:'';flex:0 0 28px;height:28px;background:url('./assets/rpg-ui/optimized/chest-192-4867e01705602620.webp') center/contain no-repeat;image-rendering:pixelated}
body#chimera-console.market-page #market-console-menu {border:3px double var(--lcd-ink);border-radius:0;background:var(--lcd-paper);box-shadow:4px 4px 0 var(--lcd-line)}
body#chimera-console.market-page #market-console-menu #market-tabs>button {grid-template-columns:40px minmax(0,1fr) 12px}
body#chimera-console.market-page #market-console-menu .lcd-tab-index {font-size:0;width:40px;height:40px;background:url('./assets/rpg-ui/optimized/journal-192-c9ec2df989cdeb09.webp') center/contain no-repeat;image-rendering:pixelated;opacity:1}
body#chimera-console.market-page #market-tab-browse .lcd-tab-index {background-image:url('./assets/rpg-ui/optimized/chest-192-4867e01705602620.webp')}
body#chimera-console.market-page #market-tab-purchases .lcd-tab-index {background-image:url('./assets/rpg-ui/optimized/wallet-192-cd42f900568ab76d.webp')}
body#chimera-console.market-page #market-menu-search .lcd-tab-index {background-image:url('./assets/rpg-ui/optimized/crystal-192-0a77b17ec79fc529.webp')}
body#chimera-console.market-page #market-console-menu #market-tabs>button[aria-pressed=true] small {color:var(--lcd-on-accent)}
@media(max-width:620px) {
  body#chimera-console.market-page #market-main .market-heading h1::before {display:none}
}
