/* 药品管理沿用装备提示的材质与信息层级。 */
[hidden]{display:none!important}
#potionManagerMask{position:fixed;inset:0;z-index:1020;background:#000b;backdrop-filter:blur(3px)}
#potionManager{position:fixed;z-index:1030;left:50%;top:50%;transform:translate(-50%,-50%);width:min(680px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;padding:18px;border:1px solid #7e6949;border-radius:8px;background:linear-gradient(145deg,#211e1b,#111214 70%);box-shadow:0 16px 48px #000c,inset 0 0 0 3px #ffffff04;color:#d9d0bd}
.potionTabs{display:flex;gap:7px;margin-bottom:12px}
.potionTabs button,.potionTileActions button{padding:5px 9px;cursor:pointer;background:linear-gradient(#302922,#171719);color:#d8c9ac;border:1px solid #65523c;border-radius:4px;font-size:11px}
.potionTabs button.on{border-color:#b29360;color:#f3d59c;background:linear-gradient(#423326,#24201c)}
.potionTileActions button:disabled{cursor:default;opacity:.4}
.potionSettings{padding:12px;margin-bottom:12px;border:1px solid #66553e;border-radius:6px;background:#0002}
.potionSettingRow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:9px;font-size:12px}
.potionSettingRow label{display:flex;align-items:center;gap:6px}
.potionSettingRow input[type=range]{width:110px;accent-color:#be9a60}
.potionSettingRow input[type=checkbox]{accent-color:#be9a60}
.potionSettingRow select{max-width:220px;color:#e0d4be;background:#141517;border:1px solid #6b5840;border-radius:4px;padding:5px;font-size:11px}
.potionRule,.potionFootnote,.potionBagNote{color:#a59c8a;font-size:11px;line-height:1.7}
.potionCatalogue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.potionTile{padding:12px;background:linear-gradient(145deg,#24201d,#131416 75%);border:1px solid #66543e;border-radius:6px;box-shadow:inset 0 0 0 2px #ffffff03}
.potionTileHeading{display:flex;align-items:center;gap:10px}
.potionTileHeading>div{min-width:0}.potionTileHeading b{font-size:14px;color:#e9deca;display:block;margin-bottom:4px}.potionTileHeading span:not(.itemIcon){font-size:11px;color:#99b3a2}
.potionTileMeta{display:flex;justify-content:space-between;gap:6px;color:#b2a084;font-size:10px;margin:10px 0}
.potionTileActions{display:flex;gap:5px;flex-wrap:wrap}.potionTileActions button{flex:1;padding:5px 3px;white-space:nowrap}
.potionNotice{min-height:20px;color:#d3b37c;font-size:12px;margin:12px 0 3px}.potionFootnote{border-top:1px solid #ffffff10;padding-top:10px}
.potionIcon img{width:80%;height:80%;max-width:34px;max-height:34px;padding:0;image-rendering:auto}
#inventoryPanel #bagGrid.potionBag{grid-template-rows:none!important;grid-auto-rows:max-content;align-content:start;align-items:start;row-gap:6px}
#inventoryPanel #bagGrid.potionBag>.potionStock{height:auto;aspect-ratio:1;min-height:44px}
.potionBagNote{grid-column:1/-1;padding:10px 3px;text-align:left}
.potionStock{font:inherit;cursor:pointer}.potionStock .bagQty{right:4px;bottom:0;line-height:1.1}
.potionManager .itemIcon{box-shadow:none}.potionManager .potionIcon{width:42px;height:42px}
.pot .potIcon{width:31px;height:31px;object-fit:contain;image-rendering:auto;transform:scale(var(--icon-zoom,1));transform-origin:center}
.offPotionItems{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;color:#b8ac94;font-size:11px}.offPotionItems>span{display:inline-flex;align-items:center;gap:4px}.offPotionItems .itemIcon{width:30px;height:30px}
@media(max-width:540px){.potionCatalogue{grid-template-columns:1fr}.potionManager .potionSettingRow{align-items:flex-start}.potionSettingRow input[type=range]{width:90px}}
