#careerPanel,#careerLoading{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#100e15d9;font-family:var(--ui-font);color:#eee9e0}
#careerPanel[hidden],#careerLoading[hidden],#careerDock[hidden]{display:none}
.career-sheet{width:min(1080px,100%);height:100%;max-height:740px;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid #b89262;border-radius:14px;background:linear-gradient(135deg,#35222c,#1b1820);box-shadow:0 12px 60px #0009;overflow:hidden}
.career-sheet header,.career-sheet footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;background:#211a22}
.career-sheet header{border-bottom:1px solid #775d48}.career-sheet footer{border-top:1px solid #775d48}
.career-funds{display:flex;flex-wrap:wrap;gap:4px 14px;color:#dbb97e;font-size:clamp(11px,1.1vw,14px);margin-top:6px}
.career-body{display:grid;grid-template-columns:minmax(140px,.65fr) minmax(0,1.6fr);min-height:0;gap:16px;padding:8px}
.career-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;overflow:auto;min-height:0}
.career-choices button{display:grid;justify-items:center;gap:2px;padding:6px;min-height:0;height:auto;line-height:1.2;font-size:13px}
.career-choices img,.career-choices svg{width:42px;height:42px;max-width:42px;max-height:42px;object-fit:contain}
.career-detail{min-height:0;overflow:auto;padding:0 4px 0;line-height:1.35;font-size:14px}.career-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.career-mod-picker,.career-mod-actions{display:flex;gap:8px;align-items:center;margin:8px 0}.career-mod-picker>b{font-size:13px}.career-mod-picker button{flex:1}.career-skills,.career-mods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.career-detail h3{margin:6px 0;font-size:14px}.career-mod button{font-size:12px;padding:5px 8px;min-height:30px}.career-detail h2{margin:0;color:#f1ce91;font-size:clamp(17px,2vw,26px)}
.career-detail article{margin:4px 0;padding:6px;background:#ffffff06;border:1px solid #715345;border-radius:8px}.career-detail p{line-height:1.35;margin:3px 0;font-size:clamp(11px,1.1vw,15px)}
.career-sheet button,#careerDock button,#careerLoading button{font:inherit;font-size:13px;line-height:1.25;color:#f6e9d0;border:1px solid #93694c;border-radius:8px;background:#4b3038;padding:9px 13px;min-height:38px;cursor:pointer;touch-action:manipulation}
.career-sheet button:hover,#careerDock button:hover{background:#68444a}.career-sheet button:disabled,#careerDock button:disabled{opacity:.45;cursor:default}
.career-sheet button.selected,.career-mod.selected{border-color:#e6b85d;background:#624735}.career-locked{opacity:.6}.career-level{color:#d8b579;font-size:12px}.career-detail>b{font-size:13px}.career-detail article>b{font-size:13px}.career-synergy{color:#c9beac;font-size:11px}.career-upgrade{margin:6px 0}
.career-sheet footer nav{display:flex;gap:4px;min-width:0;flex-wrap:wrap}.career-sheet footer nav button{border:0;border-radius:0;border-bottom:3px solid transparent;background:transparent}.career-sheet footer nav button.selected{border-bottom-color:#e6b85d;color:#f6d68f}
.career-body.supplies{display:block;overflow:auto}.career-supplies{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.career-supplies>p,.career-test{grid-column:1/-1}.career-supplies article{padding:10px;border:1px solid #785640;border-radius:10px}.career-supplies p{margin:0;font-size:12px;line-height:1.4}.career-supplies h3{margin:0 0 8px;font-size:14px}.career-test{display:flex;flex-wrap:wrap;gap:8px}.career-test p{flex-basis:100%;color:#bfb5b2}
#careerDock{position:fixed;top:max(50px,12%);left:50%;transform:translateX(-50%);z-index:35;display:flex;gap:6px;align-items:center;padding:6px 8px;border:1px solid #9b7452;border-radius:9px;background:#201820ed;max-width:90%;font-size:clamp(10px,1vw,13px)}
#careerDock>span{color:#efc576;white-space:nowrap}#careerDock button{padding:6px 10px;white-space:nowrap}
.career-prompt{height:auto;max-width:580px}.career-prompt>p{padding:20px;line-height:1.8}.career-prompt footer{flex-wrap:wrap}
#careerLoading{z-index:190;background:#100e15ba}#careerLoading>div{display:grid;gap:18px;padding:28px;border:1px solid #b89262;border-radius:12px;background:#211a22}
@media(max-width:430px){.career-body{grid-template-columns:minmax(90px,.6fr) minmax(0,1fr);gap:8px}.career-choices{grid-template-columns:1fr}.career-sheet footer{flex-wrap:wrap}.career-sheet footer nav{width:100%;justify-content:space-between}.career-sheet footer nav button{padding:8px 5px}#careerDock{flex-wrap:wrap;justify-content:center;top:12%}.career-funds{gap:4px 8px}}
