/* Scoped Talents403 layer: one scroll surface, readable portrait choices. */
:is(#root,body) dialog.s-modal253.s-modal253[open][data-kind=talents403]{inset:auto!important;top:max(10px,env(safe-area-inset-top))!important;left:50%!important;transform:translateX(-50%)!important;width:min(760px,calc(100vw - 20px))!important;max-width:none!important;max-height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)))!important;margin:0!important;padding:0!important;border-radius:22px!important;overflow:hidden!important;background:#0b1d27!important;border:1px solid #c1a36180!important}
:is(#root,body) .t403-panel.immersive-panel.s-modal-surface253{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;max-width:none!important;max-height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)))!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:linear-gradient(155deg,#112a35,#091923 70%)!important;color:#f2ead4!important;overflow:hidden!important;animation:t403-enter .22s ease-out both}
:is(#root,body) .t403-panel>.immersive-panel-head{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;min-height:66px!important;padding:12px 16px!important;margin:0!important;background:#0a1b25!important;border-bottom:1px solid #d4ba7a36!important}
:is(#root,body) .t403-panel>.immersive-panel-head h2{margin:0!important;font:700 clamp(23px,6vw,31px)/1.05 Georgia,serif!important;color:#f4e8c3!important}
:is(#root,body) .t403-panel>.immersive-panel-head span{font:600 11px/1.4 system-ui!important;letter-spacing:.07em;color:#9db8bc!important}
:is(#root,body) .t403-panel>.immersive-panel-head>button{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:10px!important;border:1px solid #c4d7d52b!important;border-radius:50%!important;background:#18333e!important;color:#f4e8c3!important}
:is(#root,body) .t403-panel>.immersive-panel-head>button svg{width:23px!important;height:23px!important}
:is(#root,body) .t403-panel>.immersive-panel-body{display:block!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:14px!important;overscroll-behavior:contain;scroll-padding:12px;-webkit-overflow-scrolling:touch;touch-action:pan-y!important;scrollbar-width:thin;scrollbar-color:#527277 transparent}
.t403-workbench,.t403-workbench *{box-sizing:border-box}
.t403-workbench{--talent-color:#d8bf82;min-width:0;width:100%;font:400 14px/1.4 system-ui,sans-serif;color:#e8eddf}
.t403-workbench :is(h2,h3,h4,p){margin:0}
.t403-workbench button{appearance:none;cursor:pointer;touch-action:manipulation;font-family:inherit;text-transform:none;letter-spacing:normal}
.t403-workbench button:disabled{cursor:default}
.t403-workbench button:focus-visible{outline:2px solid #fff2b5!important;outline-offset:3px}
.t403-workbench .t403-icon{display:block;flex:0 0 auto;width:20px;height:20px}
.t403-workbench .t403-eyebrow{font:750 10px/1.4 system-ui;letter-spacing:.12em;text-transform:uppercase;color:#b6c6bf}
.t403-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.t403-overview>div:first-child{min-width:0}
.t403-overview h2{font:700 22px/1.15 Georgia,serif;color:#f5e9c6;margin:3px 0 6px}
.t403-overview>div>p:last-child{font-size:12px;color:#acbdbb}
.t403-points{position:relative;display:grid;grid-template-columns:19px auto;align-items:center;justify-content:center;gap:0 6px;flex:0 0 83px;min-height:73px;padding:7px 9px;border:1px solid #cfb06566;border-radius:17px;background:linear-gradient(145deg,#5b4b29b0,#192e33);box-shadow:inset 0 1px #ffecad20;color:#edce87}
.t403-points>strong{font:750 27px/1.05 system-ui}
.t403-points>small{grid-column:1/-1;text-align:center;font:750 9px/1.5 system-ui;letter-spacing:.08em}
.t403-notice{display:flex;align-items:center;gap:9px;padding:10px 11px;margin:0 0 12px!important;border:1px solid #adc7c332;border-radius:11px;background:#15313d;color:#c4d9d5;font-size:12px}
.t403-legacy,.t403-next-point{margin:0 0 12px!important;color:#bfcac0;font-size:12px}
.t403-scope{margin:0 0 12px!important;color:#a6bbc0;font-size:11px;line-height:1.45}
.t403-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}
.t403-paths>button{display:flex;min-width:0;min-height:93px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 4px;border:1px solid #a1c2c42b;border-radius:13px;background:#0b202b;color:#aebfbe;transition:background .16s ease,border-color .16s ease}
.t403-paths>button>.t403-icon{color:var(--path-color);width:24px;height:24px}
.t403-paths>button>strong{font:700 12px/1.2 system-ui;text-align:center;overflow-wrap:break-word;color:#e5e7d6}
.t403-paths>button>small{font-size:10px;color:#a3b9b8}
.t403-paths>button[aria-selected=true]{border-color:var(--path-color);background:linear-gradient(145deg,#2b454b,#172e3b);box-shadow:inset 0 -3px var(--path-color),0 3px 14px #0002}
.t403-paths>button[aria-selected=true]>strong{color:var(--path-color)}
.t403-path-intro{margin-bottom:14px;padding:0 2px}
.t403-path-intro>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.t403-path-intro h3{font:700 19px/1.25 Georgia,serif;color:var(--talent-color)}
.t403-path-intro>div>span{font-size:11px;color:#c2d0c5;text-align:right}
.t403-path-intro>p{font-size:11px;color:#a6bdbe;margin:5px 0 7px}
.t403-path-progress{height:5px;overflow:hidden;background:#020c13;border-radius:9px}
.t403-path-progress>i{display:block;height:100%;background:var(--talent-color);border-radius:inherit;transition:width .24s ease}
.t403-tier{position:relative;margin-bottom:17px;min-width:0}
.t403-tier-heading{display:flex;align-items:center;gap:7px;margin:0 0 8px;color:#91a6aa}
.t403-tier-heading:after{content:'';height:1px;background:#9eb6ba2a;flex:1 1 auto;min-width:5px}
.t403-tier-number{display:grid;place-items:center;width:23px;height:23px;border:1px solid #9eb6ba3a;border-radius:8px;background:#102832}
.t403-tier-number>.t403-icon{width:13px;height:13px}
.t403-tier-heading h4{font:750 12px/1.2 system-ui;white-space:nowrap}
.t403-tier-heading>span:last-of-type{font-size:10px;white-space:nowrap}
.t403-tier.is-open .t403-tier-number{color:var(--talent-color);border-color:var(--talent-color)}
.t403-tier.is-open .t403-tier-heading h4{color:#d9decd}
.t403-node-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:stretch}
.t403-node{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:155px;padding:8px 5px 7px!important;gap:5px!important;border:1px solid #90b2b336;border-radius:14px;background:linear-gradient(160deg,#203b45,#0e222e);color:#d2ddcf;overflow:visible;transition:transform .12s ease,border-color .16s ease,background .16s ease}
.t403-node:active{transform:scale(.97)}
.t403-node-top{font:750 8px/1.3 system-ui;letter-spacing:.05em;color:#a4b8bb;min-height:10px}
.t403-node-art{position:relative;display:block;width:53px;height:53px;flex:0 0 auto;border-radius:13px;border:1px solid #c7d2bd60;background:#071720;box-shadow:0 4px 10px #0005}
.t403-workbench .t403-art{display:block;width:100%;height:100%;overflow:hidden;border-radius:inherit;background:#102630}
.t403-workbench .t403-art>svg,.t403-workbench .t403-art>img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover;filter:none;opacity:1;margin:0;padding:0;border:0}
.t403-node>strong{flex:1 1 auto;font:650 12px/1.2 system-ui;text-align:center;overflow-wrap:break-word;color:#e5e9db}
.t403-node-rank{font:750 10px/1.2 system-ui;font-variant-numeric:tabular-nums;color:#aec2bd}
.t403-ranks{display:flex;align-items:center;justify-content:center;gap:3px;height:5px}
.t403-ranks>i{display:block;width:8px;height:4px;background:#020c16;border:1px solid #99b9b343;border-radius:3px}
.t403-ranks>i.is-filled{background:var(--talent-color);border-color:var(--talent-color);box-shadow:0 0 5px #d7c18522}
.t403-node.is-locked{background:#0c1c27;border-color:#9fbdba21}
.t403-node.is-locked>.t403-node-art{filter:saturate(.45);opacity:.75}
.t403-node.is-locked>strong{color:#b2c2c1}
.t403-node.is-ready{border-color:#8dbe9a66}
.t403-node.is-ready>.t403-node-top{color:#b5d6ae}
.t403-node.is-learned,.t403-node.is-mastered{background:linear-gradient(150deg,#294348,#10232d);border-color:#ccb4746b}
.t403-node.is-mastered>.t403-node-top{color:#ead098}
.t403-node.is-selected{border-color:var(--talent-color);box-shadow:0 0 0 1px var(--talent-color),0 5px 15px #0003;background:linear-gradient(145deg,#385055,#182e39)}
:is(#root,body) dialog.s-modal253.s-modal253[data-kind=talents403] .t403-node[aria-pressed=true]{background:linear-gradient(145deg,#385055,#182e39)!important;border-color:var(--talent-color)!important;color:#e5e9db!important;box-shadow:0 0 0 1px var(--talent-color),0 5px 15px #0003!important}
.t403-node.is-capstone>.t403-node-art{border-color:#eccf94;border-radius:50%;box-shadow:0 0 0 3px #d9bb7233,0 5px 13px #0005}
.t403-node.is-training>.t403-node-top{color:#adb9c2}
.t403-mastered-seal{position:absolute;right:-5px;bottom:-4px;width:20px!important;height:20px!important;padding:3px;border-radius:50%;background:#efd08b;color:#193239;box-shadow:0 2px 7px #0008}
.t403-node-flare{position:absolute;inset:-5px;border:2px solid #fff3c5;border-radius:inherit;pointer-events:none;animation:t403-rank-flare .7s ease-out both}
.t403-detail{position:relative;margin-top:11px;padding:13px;border:1px solid #c4b57f77;border-radius:15px;background:linear-gradient(150deg,#243c40,#112734 80%);box-shadow:0 8px 20px #0002;scroll-margin:10px}
.t403-detail-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.t403-detail-head>.t403-art{flex:0 0 58px;width:58px;height:58px;border:1px solid var(--talent-color);border-radius:13px;box-shadow:0 4px 14px #0004}
.t403-detail-head>div{min-width:0}
.t403-detail-head h3{font:700 19px/1.15 Georgia,serif;color:#f1e6c2;overflow-wrap:break-word;margin:3px 0 6px}
.t403-detail-rank{display:flex;align-items:center;gap:9px;font:650 11px/1.2 system-ui;color:#c5d3c7}
.t403-effects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}
.t403-effects>div{padding:10px;border-radius:10px;background:#0c202b;border:1px solid #a9c4bc25;min-width:0}
.t403-effects>div:only-child{grid-column:1/-1}
.t403-effects small{display:block;color:#9fb6b7;font:750 9px/1.3 system-ui;letter-spacing:.07em;margin-bottom:5px}
.t403-effects p{font:500 12px/1.45 system-ui;color:#dce3d6;overflow-wrap:break-word}
.t403-effects .t403-effect-next{background:#2b4143;border-color:#ccb97755}
.t403-effects .t403-effect-next small{color:#f0d792}
.t403-effects .t403-effect-next p{color:#f4ebd2}
.t403-effect-note{display:flex;align-items:flex-start;gap:7px;margin-bottom:10px!important;padding:8px 9px;border:1px solid #a9bac53b;border-radius:9px;color:#c3d4d9;background:#102432;font-size:11px;line-height:1.4}
.t403-effect-note>.t403-icon{width:15px;height:15px;margin-top:1px}
.t403-effect-note.is-training{color:#f0d6a3;background:#43381f66;border-color:#d2ae5d55}
.t403-requirements{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.t403-requirements>span,.t403-requirements>button{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #a6babb30;border-radius:8px;background:#0a202b;color:#acbec0;font:550 10px/1.3 system-ui;text-align:left}
.t403-requirements>button{min-height:44px;font-size:11px;max-width:100%}
.t403-requirements>button>.t403-icon{width:15px;height:15px}
.t403-requirements>.is-met{color:#b4d4ae;border-color:#90c49c3d}
.t403-lock-reason{font-size:12px;color:#e2cca4;margin:5px 0 10px!important}
.t403-learn{display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;gap:8px;padding:11px;border:1px solid #ecd398aa;border-radius:12px;background:linear-gradient(145deg,#ddc180,#b99b58);box-shadow:inset 0 1px #fff7d85c,0 4px 10px #0003;color:#172c35;font:800 14px/1.25 system-ui;transition:transform .13s ease,background .13s ease}
.t403-learn:active:not(:disabled){transform:scale(.98)}
.t403-learn:disabled{border-color:#b4c3bb2a;background:#1c343e;box-shadow:none;color:#99b0b2}
.t403-feedback{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px;padding:10px;border:1px solid #d3a17555;border-radius:10px;background:#403a2d;color:#e7d3b5;font-size:12px;animation:t403-feedback .25s ease-out both}
.t403-feedback.is-success{border-color:#b6d29b70;background:#27443d;color:#d6eac5}
.t403-feedback>div{min-width:0;flex:1}
.t403-feedback strong{display:block;font-weight:650}
.t403-feedback button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin-top:6px;padding:7px 8px;border:1px solid #c0dba958;border-radius:8px;background:#112e2c;color:#e1efc6;font:650 12px/1.2 system-ui;text-align:left}
.t403-footer-note{padding:3px 8px 7px;text-align:center;color:#91acb2;font-size:11px;line-height:1.5}
.t403-workbench[data-motion-paused=true] *,.t403-workbench[data-motion-paused=true] *::before,.t403-workbench[data-motion-paused=true] *::after{animation-play-state:paused!important;transition:none!important}
@media(min-width:560px){.t403-node{min-height:175px;padding:11px!important}.t403-node-art{width:68px;height:68px}.t403-node>strong{font-size:14px}.t403-paths>button{min-height:91px}.t403-paths>button>strong{font-size:14px}.t403-effects p{font-size:14px}.t403-detail{padding:17px}.t403-detail-head h3{font-size:22px}.t403-overview h2{font-size:27px}}
@media(max-width:370px){:is(#root,body) .t403-panel>.immersive-panel-body{padding:10px!important}.t403-node-grid{gap:5px}.t403-node{padding:7px 4px!important;min-height:150px}.t403-node-art{width:48px;height:48px}.t403-node>strong{font-size:11px}.t403-overview h2{font-size:19px}.t403-points{flex-basis:72px}.t403-detail{padding:10px}.t403-effects{grid-template-columns:1fr}.t403-effects>div{padding:8px}.t403-paths>button>strong{font-size:11px}.t403-path-intro>div>span{font-size:10px}}
@media(max-height:540px){:is(#root,body) .t403-panel>.immersive-panel-head{min-height:53px!important;padding:7px 12px!important}.t403-overview{margin-bottom:8px}.t403-paths>button{min-height:75px}}
@keyframes t403-enter{from{opacity:.4;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes t403-rank-flare{0%{opacity:0;transform:scale(.8)}25%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.32)}}
@keyframes t403-feedback{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){:is(#root,body) .t403-panel,.t403-workbench *,.t403-workbench *::before,.t403-workbench *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
