/* 测试台：与委托册同一张 760×366 册页（gd29），只用 k29 按钮与物品图标；一页一屏，不滚动 */
#panel .pbox.tb-box .k29-bd { overflow: hidden; }
.tb { height: 100%; display: flex; flex-direction: column; gap: 6px; font-family: 'Noto Sans SC', sans-serif; color: var(--ink); }
.tb .k29-btn { height: 30px; padding: 0 4px; border-width: 10px; font-size: 13px; letter-spacing: 0; }
.tb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 34px; gap: 6px; align-content: start; flex: 1; min-height: 0; }
.tb-grid .k29-btn { height: 34px; }
.tb-note { flex: none; margin: auto 0 0 !important; font-size: 11px; line-height: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-map { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.tb-map select, .tb-bar input { height: 26px; font-size: 13px; background: var(--paper-hi); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
/* 物品 */
.tb-bar { flex: none; display: flex; align-items: center; gap: 6px; }
.tb-bar input { flex: 1; min-width: 0; padding: 0 8px; }
.tb-bar .k29-btn { width: 52px; }
.tb-amt { display: flex; gap: 3px; }
.tb-amt button { height: 26px; padding: 0 7px; font: 12px 'Noto Sans SC', sans-serif; color: var(--ink-2); border: 1px solid var(--paper-edge); border-radius: 13px; background: var(--paper-hi); cursor: pointer; }
.tb-amt button.on { color: #fbf6e6; background: var(--line); border-color: var(--line); }
.tb-items { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 5px; }
.tb-it { min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0 4px; cursor: pointer; font: 12.5px 'Noto Sans SC', sans-serif; color: var(--ink); text-align: left;
  border: 7px solid transparent; border-image: url(../../assets/v29/ui/ui_card_raise.png) 12 fill stretch; image-rendering: pixelated; background: none; }
.tb-it > * { image-rendering: auto; }
.tb-it .ico { --s: 22px !important; width: 22px !important; height: 22px !important; flex: none; }
.tb-it span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-it:active { border-image-source: url(../../assets/v29/ui/ui_cell_on.png); }
.tb-none { grid-column: 1 / -1; text-align: center; color: var(--ink-3); }
.tb-pg { flex: none; display: flex; align-items: center; gap: 8px; }
.tb-pg .k29-btn { width: 76px; }
.tb-pg em { flex: 1; text-align: center; font-style: normal; font-size: 12px; color: var(--ink-3); }
/* 委托：两列 */
.tb-qs { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 33px; gap: 3px 12px; align-content: start; }
.tb-q { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; border-bottom: 1px dashed rgba(107,90,66,.35); }
.tb-q i { min-width: 0; display: flex; flex-direction: column; font-style: normal; line-height: 1.2; }
.tb-q b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-q small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.tb-q > span { display: grid; grid-template-columns: repeat(5, 40px); gap: 2px; }
.tb-q .k29-btn { height: 24px; border-width: 8px; font-size: 11.5px; padding: 0; }
/* HUD 右上角圆按钮列里的入口：与「指南」同款，排在它下面一格 */
html body #hud #hud-tr#hud-tr[data-ui][class] .tr-dock > #btn-bench { grid-row: 6; display: grid !important; place-items: center; font-family: "猫田楷", serif !important; font-size: 16px !important; line-height: 1 !important; color: var(--cinnabar, #a8392b) !important; text-indent: 0 !important; overflow: visible; }
#hud #hud-tr .tr-dock > #btn-bench { font: 400 15px "猫田楷", serif; color: var(--cinnabar, #a8392b); }
