.field-icon{display:inline-block;object-fit:contain;image-rendering:pixelated;vertical-align:middle;width:42px;height:42px}
#page .kit-folio .folio-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
#page .kit-folio .folio-tabs button{display:flex;flex-wrap:wrap;align-content:center;column-gap:4px;row-gap:1px;padding:3px 1px}
.bench-rack,.bench-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bench-socket,.bench-options>button,.bench-recipes>button,.bench-bag-grid>button{border:1px solid #746448;border-radius:2px;background:radial-gradient(ellipse at 50% 38%,#38403e,#172429 78%);color:#f1e3bf;min-width:0;touch-action:manipulation}
.bench-socket{display:grid;grid-template-rows:auto minmax(43px,1fr) auto;justify-items:center;align-items:center;gap:3px;padding:7px 3px;box-shadow:inset 0 0 0 2px #192329;min-height:86px}
.bench-socket small,.bench-caption small,.bench-result small,.bench-bag summary small{font:12px/1.25 system-ui;color:#c3bcaa}
.bench-socket strong{font:500 14px/1.25 var(--serif-ja,serif);text-align:center}
.bench-art{display:grid;place-items:center}.bench-art :is(.field-icon,.folio-icon){width:45px;height:45px}
.socket-empty{border:1px dashed #83734e;color:#d3b77b;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font:22px/1 serif;background:#121e24}
.quick-rack .bench-socket{min-height:83px;background:radial-gradient(ellipse at 50% 40%,#34303c,#1b2128 78%)}
.bench-bag{border-block:1px solid #675d46;margin-top:12px;background:#1c292c}
.bench-bag summary{cursor:pointer;padding:10px 8px;font-size:15px}.bench-bag summary small{margin-left:6px}
.bench-bag-grid,.bench-recipes,.bench-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px}
.bench-bag-grid>button,.bench-options>button,.bench-recipes>button{display:grid;justify-items:center;align-content:start;justify-content:stretch;gap:2px;padding:4px 2px;font:13px/1.25 var(--serif-ja,serif)}
.bench-bag-grid small,.bench-options small,.bench-shop small,.bench-targets small{display:block;color:#cec1a1;font:12px/1.25 system-ui}
.bench-dialog{width:min(420px,calc(100vw - 20px));max-height:min(80dvh,660px);overscroll-behavior:contain;margin:auto;border:1px solid #b19769;border-radius:3px;background:linear-gradient(135deg,#223132,#101d23 83%);color:#f0e1bd;padding:12px;box-shadow:inset 0 0 0 3px #20272a,0 12px 35px #0008;font-family:var(--serif-ja,serif)}
.bench-dialog::backdrop{background:#030a10bb}.bench-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px;border-bottom:1px solid #78684a}
.bench-dialog-head h2{font:500 19px var(--serif-ja,serif);margin:4px 0}
.bench-dialog-head button{background:transparent;border:0;color:#ddc699;font:24px/1 serif;min-height:42px;min-width:42px}
.bench-options{padding:5px 0}.bench-options>button[aria-pressed=true],.bench-recipes>button[aria-pressed=true],.bench-mode>button[aria-pressed=true]{background:linear-gradient(#514632,#34332c);border-color:#ddb97a;box-shadow:inset 0 -2px #d2ad70}
.bench-result{display:flex;gap:10px;align-items:center;margin:4px 0;padding:8px;background:#142228;border-left:2px solid #b99c66}
.bench-result>div{display:grid;gap:3px}.bench-result strong{font-size:17px}.bench-result b{color:#b9d3a3;font:13px system-ui}.bench-dialog>.btn{min-height:42px}
.bench-mode,.bench-shop,.bench-make,.bench-step{display:flex;gap:5px}.bench-mode button{flex:1;border:1px solid #736347;background:#1d2b2b;color:#e9d8b4;padding:3px;font:15px var(--serif-ja,serif);min-height:42px}.bench-mode :is(img,.folio-icon,.camp-tool){width:30px;height:30px;margin-right:4px}
.bench-recipes{padding:7px 0}.bench-plan{border:1px solid #766449;background:#1e2b2d;padding:7px}.bench-plan .bench-result{margin:0 0 5px}
.bench-caption,.bench-plan li{display:flex;align-items:center;justify-content:space-between;gap:4px}.bench-caption{padding:2px 2px 4px;color:#e4d4ad;font-size:14px}
.bench-plan ul{padding:0;margin:0;list-style:none}.bench-plan li{border-top:1px solid #3d4844;min-height:26px;font-size:14px}.bench-plan li :is(.field-icon,.folio-icon){width:24px;height:24px}.bench-plan li span:not(.folio-icon){flex:1}
.bench-plan li b{font:14px/1.3 Georgia,serif;font-variant-numeric:tabular-nums}.bench-plan b.bench-short{color:#e1a289}
#page .bench-plan p{font:12px/1.4 system-ui;color:#bfb7a5;margin:4px 0}
.bench-make{align-items:center;margin-top:6px}.bench-make>.btn{flex:1;min-height:42px}
.bench-step{align-items:center;border:1px solid #77664b;gap:1px}.bench-step button{width:36px;min-height:40px;background:#273330;color:#e6d4af;border:0;font-size:18px}.bench-step :disabled{opacity:.4}
.bench-step b{font-size:14px;min-width:26px;text-align:center}
.bench-shop{padding:4px}.bench-shop>.btn{flex:1;min-width:0;font-size:13px;padding:4px 2px}.bench-shop :is(.field-icon,.folio-icon){display:block;margin:auto;width:27px;height:27px}
.field-belt{position:absolute;z-index:6;display:flex;gap:3px;pointer-events:auto;left:5px;bottom:calc(25vw + 18px)}
.field-belt[hidden]{display:none!important}
.field-belt>button{position:relative;display:grid;place-items:center;width:clamp(40px,11vw,46px);height:clamp(42px,11vw,46px);padding:1px;border-radius:4px;color:#f5e9c9;border:1px solid #ae9163;box-shadow:inset 0 0 0 2px #292b2d;background:radial-gradient(#35393de8,#101b22e8 75%);touch-action:manipulation}
.field-belt :is(.field-icon,.folio-icon){width:31px;height:31px;flex:none}
.field-belt .folio-icon{display:inline-block;background:url("assets/grimoire/reliquary.webp") no-repeat;background-size:400% 400%;image-rendering:pixelated}
.field-belt small{position:absolute;bottom:1px;right:2px;background:#0a141bdc;font:bold 11px/1 Georgia,serif;padding:1px 2px;border-radius:3px;color:#fff0c9}
.field-belt>button:disabled{opacity:.55}.kit-mana-vial{filter:hue-rotate(170deg)}
#controls .field-belt{bottom:calc(clamp(92px,25vw,124px) + 12px)}
#stage .field-belt{top:28%;bottom:auto;left:4px}
@media(max-width:350px){.bench-rack{gap:3px}.bench-options,.bench-bag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bench-socket strong{font-size:13px}#page .kit-folio .folio-tabs button{flex-direction:column;gap:2px;font-size:13px}}

.bench-ghost{filter:grayscale(1);opacity:.42}
.bench-palette{display:flex;gap:4px;margin-top:6px}.bench-palette button{display:flex;flex:1;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:42px;padding:2px;border:1px solid #625c4b;color:#e6d7b7;background:#1d292c;font:13px/1.1 var(--serif-ja,serif)}.bench-palette :is(.field-icon,.folio-icon){width:26px;height:26px}
@media(max-width:350px){.bench-palette button{flex-direction:column;gap:1px}.bench-palette :is(.field-icon,.folio-icon){width:24px;height:24px}}

.bench-mode .bench-filter{width:auto;max-width:40%;min-width:0;min-height:42px;appearance:none;padding:0 19px 0 6px;border:1px solid #736347;background:linear-gradient(45deg,transparent 48%,#cfb78b 50%) right 10px center/5px 5px no-repeat,linear-gradient(135deg,#cfb78b 48%,transparent 50%) right 5px center/5px 5px no-repeat,#18272b;color:#ead9b8;font:14px var(--serif-ja,serif)}
