/* Three aligned beige equipment banks and one compact inventory surface. */
.g2-scroll:has(> .g2-e-page) {padding:4px 4px 3px;overflow:hidden;}
.g2-e-page {box-sizing:border-box;display:grid;grid-template-columns:minmax(0,60fr) 12px minmax(0,40fr);column-gap:6px;height:100%;min-height:0;min-width:0;container:equipment-page / size;}
.g2-e-page * {box-sizing:border-box;}
/* Five equipped columns, three frames and two6px gaps require264px at44px wells. */
.g2-e-equipped {display:block;min-height:0;min-width:0;padding-top:var(--g2-e-top-inset,16px);container:equipment-banks / size;--g2-e-cell:max(44px,min(calc((100cqw - 44px)/5),calc((100cqh - 16px)/3)));}
.g2-e-banks {display:flex;align-items:start;justify-content:flex-start;gap:6px;min-height:0;min-width:0;}
.g2-e-bank-group {display:block;width:calc(var(--g2-e-cell)*2 + 12px);height:calc(var(--g2-e-cell)*3 + 16px);flex:0 0 auto;min-width:0;min-height:0;}
.g2-e-utility-bank-group {width:calc(var(--g2-e-cell) + 8px);}
.g2-e-bank.stone-ui {height:100%;padding:4px!important;min-height:0;min-width:0;overflow:hidden;}
.g2-e-equipped-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:4px;width:100%;height:100%;min-height:0;min-width:0;}
.g2-e-utility-grid {grid-template-columns:minmax(0,1fr);}
.g2-e-page .g2-e-slot.stone-ui {position:relative;display:block;box-sizing:border-box;width:100%!important;min-width:44px;max-width:none;height:100%;min-height:44px;padding:3px!important;margin:0;border:0;border-radius:0;background:var(--stone-code-skin) center/100% 100% no-repeat;box-shadow:none;overflow:hidden;cursor:pointer;}
.g2-e-slot>img {display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;}
.g2-e-slot.is-empty>:is(img,svg) {opacity:.68;}
.g2-e-page .g2-e-utility-slot.stone-ui {display:grid;place-items:center;color:#927d57;}
.g2-e-utility-slot>svg {display:block;width:80%;height:80%;max-width:100%;max-height:100%;pointer-events:none;}
.g2-e-page .g2-e-slot.is-selected {outline:2px solid #943d2d;outline-offset:-3px;}
.g2-e-page .g2-e-slot:focus-visible {outline:2px solid #906a30;outline-offset:-2px;}
.g2-e-item-level {position:absolute;right:3px;bottom:2px;padding:0 2px;border-radius:2px;background:#d9c8a4e8;color:#594123;font:700 8px/1.2 Georgia,serif;pointer-events:none;}
.g2-e-worn {position:absolute;top:3px;right:4px;color:#7a3628;font:700 9px/1 Georgia,serif;text-shadow:0 1px #f8eaca;pointer-events:none;}
.g2-e-divider {display:block;width:12px;height:100%;min-height:0;pointer-events:none;}
.g2-e-inventory {display:grid;grid-template-rows:44px minmax(0,1fr) 44px;gap:4px;min-height:0;min-width:0;container:equipment-inventory / size;}
.g2-e-inventory-toolbar {display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:4px;min-width:0;min-height:0;}
/* Prefix and native selection share one baseline; the complete44px field remains native. */
.g2-e-filter {--g2-e-filter-prefix:92px;position:relative;display:block;min-width:0;height:44px;}
.g2-e-filter-prefix {position:absolute;z-index:1;top:50%;left:4px;transform:translateY(-50%);white-space:nowrap;pointer-events:none;font:8.5px/1 system-ui,sans-serif;color:#624b2d;}
.g2-e-filter-word {font-family:Georgia,serif;font-weight:700;}
#game-runtime .g2-e-filter>select,.g2-e-filter>select {display:block;width:100%!important;min-width:0;height:44px;min-height:44px;padding:4px 1px 4px var(--g2-e-filter-prefix)!important;margin:0;border:1px solid #ac956b;border-radius:5px;background:#dfd1ac;color:#5e4a2e;font:9px/1.2 system-ui,sans-serif;}
.g2-e-pagination {display:flex;gap:4px;min-width:0;min-height:0;}
.g2-e-page .g2-e-pagination>.g2-button {display:grid;place-items:center;width:44px!important;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;margin:0;padding:0!important;border:1px solid #ac956b;border-radius:5px;background:#dfd1ac;color:#6a5331;font:24px/1 Georgia,serif;box-shadow:inset 0 1px #f2e3bf;}
.g2-e-page .g2-e-pagination>.g2-button:disabled {color:#a08c6c!important;background:#d9ccaa;}
.g2-e-page .g2-e-pagination>.g2-button:has(>small) {display:flex;gap:1px;align-items:center;justify-content:center;}
.g2-e-pagination>.g2-button>small {font:8px/1 system-ui,sans-serif;}
.g2-e-inventory-grid {--g2-e-inventory-cell:max(44px,min(calc((100cqw - (var(--g2-e-columns,6) - 1)*4px)/var(--g2-e-columns,6)),calc((100cqh - 96px - (var(--g2-e-rows,3) - 1)*4px)/var(--g2-e-rows,3))));position:relative;display:grid;grid-template-columns:repeat(var(--g2-e-columns,6),var(--g2-e-inventory-cell));grid-template-rows:repeat(var(--g2-e-rows,3),var(--g2-e-inventory-cell));justify-content:start;align-content:start;gap:4px;min-width:0;min-height:0;}
.g2-e-page .g2-e-inventory-slot.stone-ui {padding:2px!important;}
.g2-e-page .g2-e-vacant.stone-ui {cursor:default;}
.g2-e-empty-note,#game-runtime .g2-e-empty-note {position:absolute;inset:0;display:grid;place-items:center;margin:0!important;padding:5px;color:#8b7552;font:10px/1.2 system-ui,sans-serif;pointer-events:none;}
/* Name, real24px circular i, and the action are the footer's only three fields. */
.g2-e-comparison {display:grid;grid-template-columns:minmax(0,1fr) 24px 94px;align-items:center;gap:4px;height:44px;min-height:0;min-width:0;padding:0;overflow:hidden;}
.g2-e-selected-name {display:flex;align-items:center;gap:3px;min-width:0;overflow:hidden;white-space:nowrap;font:700 10px/1.15 Georgia,serif;color:#493e2a;}
.g2-e-item-name {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.g2-e-upgrade {flex:0 0 auto;white-space:nowrap;}
.g2-e-item-action {display:flex;align-items:center;min-height:0;min-width:0;}
.g2-e-page .g2-e-item-action>.g2-button {display:flex;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;width:100%!important;min-width:0;height:44px!important;min-height:44px!important;max-height:44px;margin:0;padding:3px!important;border:0;border-radius:0;background:var(--stone-code-skin) center/100% 100% no-repeat;box-shadow:none;white-space:nowrap;font:700 9px/1 Georgia,serif;letter-spacing:0;}
.g2-e-info {position:static;display:grid;place-items:center;box-sizing:border-box;width:24px!important;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;margin:0;padding:0!important;border:1px solid #a38a61;border-radius:50%;clip-path:circle(50%);background:#e8dab6;color:#70583a;box-shadow:inset 0 1px #fff2ce;cursor:pointer;}
.g2-e-info>span {pointer-events:none;font:700 italic 14px/1 Georgia,serif;}
.g2-e-info:focus-visible {outline:2px solid #967240;outline-offset:-3px;}
.g2-e-no-selection {display:flex;align-items:center;justify-content:center;}
.g2-e-no-selection>p,#game-runtime .g2-e-no-selection>p {margin:0!important;padding:0;font:10px/1.2 system-ui,sans-serif;text-align:center;color:#796243;}
.g2-e-sr-only {position:absolute;width:1px;height:1px;padding:0!important;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
@container equipment-inventory (max-width:229px) {
  .g2-e-filter {--g2-e-filter-prefix:38px;}
  .g2-e-filter-word {display:none;}
  .g2-e-filter-separator {display:none;}
}
@container equipment-page (max-width:560px) {
  .g2-e-comparison {grid-template-columns:minmax(0,1fr) 24px 86px;gap:3px;}
  .g2-e-page .g2-e-item-action>.g2-button {font-size:8.5px;}
  .g2-e-selected-name {font-size:9px;}
}
