/* v4 shell: quiet lacquer furniture; content owns the ornament and hierarchy. */
:root{--shell-rail:136px;--shell-edge:#b99a6055;--shell-ink:#0d1416;--shell-paper:#eee1c3;--ease-weight:cubic-bezier(.18,.78,.22,1)}
.topbar{height:58px;padding:7px 20px;background:linear-gradient(100deg,#17201bf5,#121918f5 70%,#3b3020e8);border-bottom:1px solid #b99a6070;box-shadow:0 2px 0 #080e0d,0 5px 16px #0004}
.brand h1{font-size:21px;letter-spacing:-.035em}.brand p{font-size:10px;margin-top:2px}.seal{width:40px;height:40px}
.workshopFrame{grid-template-columns:var(--shell-rail) minmax(0,1fr);min-height:calc(100dvh - 58px)}
.workspaceRail{padding:18px 9px 14px;gap:24px;background:linear-gradient(#14201eee,#0e1817eb),var(--ui-material);background-size:auto,500px;box-shadow:inset -1px 0 #b59a5b50,inset -4px 0 #060c0c80;border-right:0}
.heroPicker select{font-size:11px;padding-inline:7px;min-height:40px;background:#08121075;border-color:#a18b5866}.heroPicker .partyButton{min-height:38px;background:linear-gradient(105deg,#71603929,#17221c);border-color:#ae945958;color:#e4d4ae;font-size:12px}.pickerLabel{font-size:9px;color:#bdab89}
.workspaceRail .tabs{gap:6px}.workspaceRail .tab{min-height:48px;gap:9px;padding:11px 8px;font-size:11px;border-radius:2px;background:transparent;border:1px solid transparent;box-shadow:none;color:#bdb59d}
.workspaceRail .tabIcon{border:0;background:none;box-shadow:none;width:21px;height:25px;padding:0}.workspaceRail .tabIcon svg{width:21px;height:25px}
.workspaceRail .tab.active{background:linear-gradient(90deg,#b3925b2b,#bb97530a);border-color:#b6985859;color:#f8e8c8;box-shadow:inset 0 1px #f6d6a116,0 2px 6px #0002}
.workspaceRail .tab.active:before{left:-10px;top:9px;bottom:9px;width:3px;background:#d9b778;box-shadow:0 0 13px #d9b7784d}.workspaceRail .tab.active .tabIcon{color:#eccb8d;background:none}
.railLedger{margin-top:auto;padding:16px 5px 0;border-top:1px solid #ae925a30}.railLedger>span{font-size:9px;line-height:1.5;color:#b2a68d}.railLedger>b{display:block;margin:6px 0 10px;font:500 16px/1.35 var(--font-display);color:#e9d6b0}.railLedger button{font-size:10px;padding:9px 7px;min-height:40px;width:100%;border-color:#b0945a66}
.layout{padding:14px 20px 20px}.workspace{gap:13px}.characterHeader{min-height:82px;padding:9px 16px;gap:18px;border:0;border-radius:0;background:linear-gradient(90deg,#131e1ced,#1b251da6 55%,#26281cc7);box-shadow:inset 0 -1px #b79b6655,0 3px 12px #0002;overflow:visible}
.characterHeader.withAvatarBg:before{opacity:.09;inset:0;pointer-events:none}.characterPortrait{width:68px;height:68px;padding:3px;border-color:#c9a86a;box-shadow:inset 0 0 0 2px #192820,0 0 0 3px #c2a16516,0 4px 12px #0007}.characterHeader h2{font-size:31px;line-height:1.14;letter-spacing:-.025em}.characterHeader .sub{font-size:11px;color:#c0b294}.characterStats{gap:22px}.bigStat>b{font-size:15px}.bigStat>span{font-size:9px;color:#c1b18c}
.focusLayout .characterHeader{min-height:68px;padding-block:7px}.focusLayout .characterPortrait{width:54px;height:54px}.focusLayout .characterHeader:after{display:none}
.topActions #printBtn{min-height:40px;padding:9px 13px;font-size:12px}.topActions .appMenu summary{min-height:40px;min-width:40px}
@media(hover:hover) and (pointer:fine){.workspaceRail .tab:not(.active):hover{background:#b997550d;border-color:transparent;box-shadow:none;transform:none;color:#eadbbb}.heroPicker .partyButton:hover{border-color:#d2b47c}.topActions #printBtn:hover{filter:brightness(1.08)}}
@media(min-width:761px) and (max-width:1199px){
 :root{--shell-rail:78px}.workspaceRail{padding:12px 5px;gap:18px}.workspaceRail .tab{flex-direction:column;justify-content:center;gap:5px;min-height:61px;padding:7px 1px;font-size:9px;text-align:center}.workspaceRail .tab.active:before{left:-6px}.workspaceRail .tabs{gap:3px}.heroPicker{gap:6px}.heroPicker label{display:none}.heroPicker .partyButton{padding:8px 2px;font-size:10px;min-height:40px}.pickerPortrait{display:none}.railLedger{padding:12px 0 0}.railLedger>span,.railLedger>b{display:none}.railLedger button{font-size:9px;padding:7px 3px}.layout{padding:12px}.characterHeader{min-height:74px;padding:8px 12px}.characterPortrait{width:58px;height:58px}.characterHeader h2{font-size:28px}.characterStats{gap:13px}.walletStat .coinControls{display:none}.walletStat{padding-right:0}
}
@media(min-width:1800px){:root{--shell-rail:152px}.workspaceRail{padding-inline:12px}.workspaceRail .tab{font-size:12px}.workspaceRail .tab.active:before{left:-13px}.layout{padding:20px 28px}.characterHeader{min-height:92px}.characterPortrait{width:74px;height:74px}.characterHeader h2{font-size:36px}}
@media(max-width:760px){
 .topbar{height:calc(54px + env(safe-area-inset-top,0px));padding:6px 10px;padding-top:calc(6px + env(safe-area-inset-top,0px))}.brand h1{font-size:17px}.brand p{font-size:9px}.seal{height:36px;width:36px}.topActions #printBtn{width:40px;min-height:42px;padding:8px}.workshopFrame{display:block;min-height:0}.workspaceRail{padding:4px 10px;display:block;box-shadow:inset 0 -1px #b6985840;border:0;background:#14201ded}.heroPicker{display:flex;gap:8px}.heroPicker label{display:block;flex:1}.heroPicker select{font-size:14px;min-height:42px}.heroPicker .partyButton{font-size:12px;min-height:42px;padding:8px 12px}.railLedger{display:none}.pickerPortrait{width:38px;height:38px;display:block}.layout{padding:9px}.layout .characterHeader{display:none}.tabs.mobileDocked{border-radius:10px 10px 0 0;background:linear-gradient(#27332bf5,#111c19fc);backdrop-filter:blur(12px)}.tabs.mobileDocked .tab{font-size:9px;min-height:50px}.tabs.mobileDocked .tab.active{box-shadow:inset 0 2px #d0ae69;border-color:transparent;background:#d7b46814}.tabs.mobileDocked .tabIcon{color:#b9a576}.tabs.mobileDocked .tab.active .tabIcon{color:#ead09b}.railCharacter{min-height:42px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.tab,button{transition:none!important}}
