/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   DESKTOP, TIER TWO (2026-10-15): THE TRADE AND KIT SCREENS IN THE SIDE PANEL (audit SCR-02, IN-11).
   Loaded right after desktop.css. The market row, a seller's board, the sale, asking the way,
   belongings and ambitions are `.kit` screens (app.js kitHost): in a standing place they rise in the
   same right-side panel the exchange uses, with no painted banner; off a place they are the page.
   Measured before this: each one tore the 3D world down (place:false after all six) and came back as
   a 960px column at x 480 in a 1920px window, .panel 960x765 under a 1052x114 banner, six .shop-row
   960x75 with 67x34 buy buttons at x 1356, the exit a sticky 42px bar at y 879.
   THE RULES HERE
   - A board is two columns of goods and belongings three, so the panel widens for a kit:
     clamp(760px, 46vw, 980px), 883px at 1920, the world still standing in the other 1037px.
   - The exit is first in the head, a small ghost button with its Esc badge, not a bar at the foot.
   - Every row control carries its key as <kbd class="hk">, numbered 1..9 by app.js (kitCtl); a row
     you cannot afford is disabled and wears no key.
   - Off a place nothing here changes the page's single column: the grids are scoped to the plate.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */
/* SKEPTIC (2026-10-15): a LIVE kit only. A leaving kit (swap keeps it 180ms) kept the panel at 883 while
   the Use result was already drawn in it at 882 wide, and the panel then snapped to 653 with the result
   reflowing a beat after it appeared (sampled 883 at 16 and 356ms, 653 at 524ms). */
.hub.place .place-plate:has(> .kit:not(.leaving)) { width: clamp(760px, 46vw, 980px); }
body:has(.hub.place .place-plate.open > .kit:not(.leaving)) .reflection { right: calc(clamp(760px, 46vw, 980px) + var(--hud-inset)); }
/* inside the plate the panel is the plate's own box: no card corner, no cut, no card chrome */
.place-plate .kit { clip-path: none; }
.place-plate .kit::before { content: none; }
/* the mouse-look toast sits at the screen's centre (x 835 to 1085 at 1920) and the kit panel starts at
   x 1037, so it stands down under a kit as it does under the action menu; the world is halted anyway */
.hub.place:has(.place-plate.open > .kit) .w3-lock { display: none; }

/* ---- the head: the exit first (Tab and Esc), then the title and its line ---------------------- */
.kit .kit-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.kit .kit-head .panel-h { margin: 6px 0 0; }
.kit .kit-head .panel-sub { margin-bottom: 0; }
.kit .kit-head .ring-note { margin: 4px 0 0; font-size: 14px; color: var(--ink-dim); }
/* the trade's note is a line in a head, not scene prose: no drop cap (style.css:1983) */
.kit .kit-head .ring-note::first-letter { float: none; font-size: inherit; line-height: inherit; font-family: inherit; font-weight: inherit; color: inherit; margin: 0; padding: 0; }
.kit .kit-exit { display: inline-flex; align-items: center; padding: 6px 12px 6px 8px; font-size: 13px; min-height: 0; }
.kit .kit-exit kbd.hk { margin-right: 8px; }
.kit .inv-coin { margin: 0; }

/* ---- row controls: the key leads the label ---------------------------------------------------- */
.kit .btn.small { display: inline-flex; align-items: center; }
.kit .btn.small kbd.hk { margin-right: 7px; }
.kit .btn.small:disabled kbd.hk { display: none; }

/* ---- the sellers: a card each, the key leading, two columns in the panel ---------------------- */
.kit .mkt-seller { display: flex; align-items: flex-start; gap: 10px; }
.kit .mkt-seller kbd.hk { margin: 2px 0 0; }
.kit .mkt-seller .ms-body { flex: 1 1 auto; }
.kit .mkt-seller .ms-body { min-width: 0; }
/* "6 on the board" stays one line: the tag does not shrink below its own width (as a shrinking flex
   item it wrapped to three lines beside the long body text), and a longer tag wraps at half the card */
.kit .mkt-seller .ms-tag { flex: 0 0 auto; white-space: normal; text-align: right; max-width: 50%; }
.place-plate .kit .mkt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }

/* ---- goods and offers: two columns in the panel, the price at the foot of each card ------------ */
.place-plate .kit .shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 0; }
.place-plate .kit .shop > .muted { grid-column: 1 / -1; }
.place-plate .kit .shop-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.place-plate .kit .shop-row .shop-info { min-width: 0; }
.place-plate .kit .shop-row .buy, .place-plate .kit .shop-row .sell, .place-plate .kit .shop-row > .worn { align-self: flex-end; }
.place-plate .kit .ask { margin-bottom: 0; }
.place-plate .kit .amb-list { margin-bottom: 0; }

/* ---- belongings: three columns (worn, carried, provisions); the 2D doll is dropped in the panel only */
.place-plate .kit .inv-doll { display: none; }
.place-plate .kit .inv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.place-plate .kit .inv-cols .inv-section { margin-bottom: 0; }
.place-plate .kit .inv-cols .inv-grid { grid-template-columns: 1fr; gap: 8px; }
.place-plate .kit .inv-cols .inv-card { padding: 11px 12px; gap: 10px; }
.place-plate .kit .inv-cols .slot-row { grid-template-columns: 1fr; gap: 3px; }
.place-plate .kit .inv-cols .slot-name { padding-top: 0; }
.kit .inv-empty { font-size: 13px; margin: 4px 0 0; }
