/* P306 Depot: CSS-only tabs and native-looking account expansion confirmation.
   Zero image URLs. The stored items retain their own inventory sprites. */
#infoModal.depot-mode .p305-tabs-shell{
 padding:11px 12px 10px!important;margin:0 0 10px!important;border:1px solid #345c76!important;
 background:linear-gradient(155deg,#102f48 0%,#0b2137 65%,#0a1e31 100%)!important;border-radius:10px!important;
 box-shadow:inset 0 1px 0 #91bfda12,0 6px 14px #0003;
}
#infoModal.depot-mode .p305-tabs-list{display:flex!important;align-items:stretch;gap:7px!important;padding:1px 1px 12px!important;overflow-x:auto!important;scrollbar-width:thin}
#infoModal.depot-mode .p305-tab{
 appearance:none!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
 padding:9px 11px!important;min-width:110px!important;height:44px!important;white-space:nowrap!important;
 color:#bed5e4!important;background:linear-gradient(180deg,#18394e,#11283d)!important;
 border:1px solid #365874!important;border-bottom:2px solid #28435d!important;border-radius:8px!important;
 box-shadow:inset 0 1px 0 #a2c8df19!important;transition:background .15s,border-color .15s,box-shadow .15s!important;
 text-align:left!important;font-family:inherit!important;font-size:11px!important;font-weight:800!important;text-shadow:none!important;
}
#infoModal.depot-mode .p305-tab::before{display:none!important;content:none!important}
#infoModal.depot-mode .p305-tab:hover{color:#e4f5ff!important;border-color:#6b9ab8!important;background:linear-gradient(180deg,#245374,#17364f)!important}
#infoModal.depot-mode .p305-tab.active{
 color:#fff0c6!important;border-color:#d3a75d!important;border-bottom-color:#ffcc74!important;
 background:linear-gradient(160deg,#28475a 0%,#1b3b50 100%)!important;
 box-shadow:inset 0 2px 0 #f3cd799a,0 0 0 1px #a67a303b,0 5px 12px #0005!important;
}
#infoModal.depot-mode .p305-tab:focus-visible{outline:2px solid #f3cb80!important;outline-offset:2px!important}
#infoModal.depot-mode .p305-tab > span:not(.p306-tab-count){max-width:95px;overflow:hidden;text-overflow:ellipsis;flex:1}
#infoModal.depot-mode .p306-tab-count{color:#94b4c9;background:#07182b9c;border-radius:4px;padding:3px 5px;font-size:9px;font-weight:800;line-height:1}
#infoModal.depot-mode .p305-tab.active .p306-tab-count{color:#ffe0a0;background:#0005}
/* General/gear/materials glyphs are drawn with borders and gradients, without image assets. */
#infoModal.depot-mode .p306-tab-symbol{display:inline-block;position:relative;flex:0 0 19px;width:19px;height:19px;color:var(--tab-accent,#63a8e3);filter:drop-shadow(0 0 5px #1b9fce4b)}
#infoModal.depot-mode .p306-tab-symbol-general{border:2px solid currentColor;border-radius:4px;background:linear-gradient(180deg,currentColor 0 3px,transparent 3px);transform:perspective(40px) rotateX(-7deg)}
#infoModal.depot-mode .p306-tab-symbol-general::before{content:'';position:absolute;left:2px;right:2px;top:6px;border-top:2px solid currentColor;opacity:.8}
#infoModal.depot-mode .p306-tab-symbol-general::after{content:'';position:absolute;top:9px;left:7px;width:2px;height:5px;background:currentColor;border-radius:2px}
#infoModal.depot-mode .p306-tab-symbol-materials{border-radius:4px;border:2px solid currentColor;transform:rotate(45deg) scale(.85);background:radial-gradient(circle at 35% 35%,#e0ffff85,transparent 55%)}
#infoModal.depot-mode .p306-tab-symbol-materials::before{content:'';position:absolute;top:5px;left:-5px;right:-5px;border-top:2px solid currentColor;transform:rotate(-45deg)}
#infoModal.depot-mode .p306-tab-symbol-materials::after{content:'';position:absolute;top:-5px;bottom:-5px;left:6px;border-left:2px solid currentColor;transform:rotate(45deg)}
#infoModal.depot-mode .p306-tab-symbol-gear{border:2px solid currentColor;border-radius:6px 6px 3px 3px;clip-path:polygon(12% 0,88% 0,100% 34%,82% 48%,88% 100%,12% 100%,18% 48%,0 34%)}
#infoModal.depot-mode .p306-tab-symbol-gear::before{content:'';position:absolute;top:4px;left:5px;width:5px;height:10px;border:1px solid currentColor;border-radius:1px}
#infoModal.depot-mode .p305-tab-add{min-width:130px!important;border-style:dashed!important;border-color:#488976!important;color:#b3efd3!important;background:linear-gradient(155deg,#153c3b,#102c35)!important}
#infoModal.depot-mode .p305-tab-add:hover{border-color:#78c9a0!important;background:linear-gradient(155deg,#1c524e,#143c41)!important}
#infoModal.depot-mode .p305-tab-add small{display:block;font-size:9px;font-weight:800;color:#8cd8ad;white-space:nowrap;margin-left:auto}
#infoModal.depot-mode .p306-tab-plus{display:inline-block;position:relative;width:20px;height:20px;flex:0 0 20px;border:1px solid #75cfa5;border-radius:5px;background:#3a956024}
#infoModal.depot-mode .p306-tab-plus::before,#infoModal.depot-mode .p306-tab-plus::after{content:'';position:absolute;background:#9aecc0;border-radius:5px;left:5px;top:9px;width:9px;height:2px}
#infoModal.depot-mode .p306-tab-plus::after{transform:rotate(90deg)}
#infoModal.depot-mode .p305-tab-info{border-top:1px solid #3c637935!important;padding-top:9px!important}
#infoModal.depot-mode .p305-tab-tools button{background:linear-gradient(180deg,#224960,#142b43)!important;border:1px solid #4a7087!important;color:#d9edfa!important;font-weight:800!important}
#infoModal.depot-mode .p305-tab-tools button:hover{border-color:#e4bc74!important}
#infoModal.depot-mode .p305-tab-tools input{background:#071b2c!important;color:#ebf3fa!important}
@media(max-width:700px){#infoModal.depot-mode .p305-tab{min-width:92px!important;height:40px!important;padding:7px 8px!important;font-size:10px!important}#infoModal.depot-mode .p306-tab-count{display:none}#infoModal.depot-mode .p305-tab-add small{font-size:8px}#infoModal.depot-mode .p305-tab-add{min-width:116px!important}}

.p306-purchase-backdrop{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;background:#010b16dc;backdrop-filter:blur(7px);padding:15px;animation:p306-purchase-enter .18s ease-out}
.p306-purchase-backdrop,.p306-purchase-backdrop *{box-sizing:border-box}
.p306-purchase-panel{position:relative;overflow:auto;max-height:calc(100dvh - 30px);width:min(460px,100%);border-radius:13px;background:radial-gradient(ellipse at 50% 8%,#22445b55,transparent 65%),linear-gradient(170deg,#10283e,#071728 83%);border:2px solid #ad7f3a;box-shadow:0 0 0 4px #051a2e,0 0 0 5px #36799a,0 24px 100px #000b,inset 0 2px 1px #ffe2a24a;color:#e1edf6;padding:23px 26px 22px;font-family:inherit;text-align:center}
.p306-purchase-header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.p306-purchase-kicker{color:#bbd4e5;letter-spacing:.19em;font-size:10px;font-weight:900}
.p306-purchase-cross{border:1px solid #4e6f82;color:#f5cf86;background:#142d43;cursor:pointer;border-radius:6px;min-width:31px;height:31px;font-size:24px;line-height:24px}
.p306-purchase-badge{width:74px;height:74px;margin:3px auto 12px;border:2px solid #d4a25d;border-radius:18px;display:grid;place-items:center;background:radial-gradient(circle,#286b83,#123144 73%);box-shadow:inset 0 0 13px #93e9fa33,0 0 20px #bfa15c33}
.p306-purchase-badge i{display:block;width:32px;height:30px;position:relative;border:3px solid #ffe0a1;border-radius:4px;background:linear-gradient(180deg,#ffe2a2 0 5px,transparent 5px);box-shadow:0 2px 8px #0008}
.p306-purchase-badge i::before{content:'';position:absolute;top:11px;left:5px;right:5px;border-top:2px solid #ffe0a1}
.p306-purchase-badge i::after{content:'';position:absolute;top:10px;left:12px;width:3px;height:10px;background:#ffe0a1}
.p306-purchase-panel h2{margin:0 0 8px;color:#ffdb92;font-size:26px;line-height:1.17;font-weight:900;text-shadow:0 2px 11px #ecae634e}
.p306-purchase-description{font-size:12px;color:#aecbda;line-height:1.55;margin:0 auto 16px;max-width:360px}
.p306-purchase-capacity{padding:13px 14px 12px;display:grid;gap:2px;border:1px solid #426c83;background:linear-gradient(180deg,#193a52,#0b2437);border-radius:10px;margin-bottom:13px}
.p306-purchase-capacity>span:first-child{color:#a5c9da;letter-spacing:.12em;font-size:9px;font-weight:900}
.p306-purchase-capacity strong{font-size:36px;color:#f6cc79;line-height:1.15;font-variant-numeric:tabular-nums}
.p306-purchase-capacity strong small{font-size:13px;color:#d2e6ee}
.p306-purchase-permanent{color:#87bea7;font-size:10px}
.p306-purchase-breakdown{border:1px solid #29485d;border-radius:9px;padding:4px 12px;background:#061b2d}
.p306-purchase-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;font-size:12px}
.p306-purchase-breakdown>div+div{border-top:1px solid #244054}
.p306-purchase-breakdown span{color:#a8c7d7}.p306-purchase-breakdown strong{color:#eaf3f8;font-size:13px;font-variant-numeric:tabular-nums}
.p306-purchase-breakdown>div:first-child strong{color:#ffdc8e}
.p306-purchase-balance-after strong{color:#9fdab5}
.p306-purchase-message{min-height:37px;padding:8px 6px 0;margin:5px 0 10px;font-size:11px;line-height:1.4;color:#b5d0dc}
.p306-purchase-message[data-state="insufficient"],.p306-purchase-message[data-state="error"]{color:#ffd08a}
.p306-purchase-message[data-state="success"]{color:#82f2b4}
.p306-purchase-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px}
.p306-purchase-actions button{border-radius:8px;border:1px solid #4e6b86;min-height:42px;font-weight:900;font-size:12px;cursor:pointer}
.p306-buy-cancel{background:#173046;color:#bdcfdd}
.p306-buy-confirm{background:linear-gradient(180deg,#f3d38f,#bc8a37);color:#071b2b;border-color:#dba64e!important;box-shadow:inset 0 1px 1px #fff4c58c}
.p306-buy-confirm:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;filter:grayscale(.22)}
.p306-buy-confirm:hover:not(:disabled){filter:brightness(1.08)}
.p306-purchase-panel button:focus-visible{outline:2px solid #f6cf8a;outline-offset:2px}
@keyframes p306-purchase-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:490px){.p306-purchase-panel{padding:17px 14px}.p306-purchase-panel h2{font-size:22px}.p306-purchase-actions{grid-template-columns:1fr 1.3fr}}
@media(prefers-reduced-motion:reduce){.p306-purchase-backdrop{animation:none}}
