/* Server-delivered desktop presentation. All actions remain the original live game controls. */
html[data-desktop-client] {color-scheme:dark;background:#101416}
html[data-desktop-client] body{--bg:#12191c;--panel:#1b2428;--panel2:#243035;--line:#344147;--gold:#e8bf7a;--cream:#eef1ed;--muted:#a5b2b5;--green:#8fc9ae;--red:#ef9b94;background:radial-gradient(ellipse at 70% 0,#26353355,transparent 60%),#12191c;font:14px/1.5 system-ui,sans-serif;letter-spacing:.05px}
html[data-desktop-client] body h1,html[data-desktop-client] body h2,html[data-desktop-client] body h3{font-family:system-ui,sans-serif;letter-spacing:-.035em}
html[data-desktop-client] body h2{font-size:30px;font-weight:650}html[data-desktop-client] body h3{font-size:17px;letter-spacing:-.015em}
html[data-desktop-client] body button{border-radius:8px;background:#243035;border-color:#3b494e;font-size:13px;font-weight:550;min-height:40px;transition:background .16s,border-color .16s,box-shadow .16s;box-shadow:inset 0 1px #ffffff05}
html[data-desktop-client] body button:hover:not(:disabled){background:#30413f;border-color:#7eaa96;box-shadow:0 3px 16px #0003}
html[data-desktop-client] body button.primary{background:#abd3bd;color:#15231c;border-color:#abd3bd;font-weight:700}
html[data-desktop-client] body button.primary:hover:not(:disabled){background:#c4e5d2;border-color:#c4e5d2}
html[data-desktop-client] body :is(button,input,select,summary,a):focus-visible{outline:2px solid #aed8c2;outline-offset:3px}
html[data-desktop-client] body :is(input[type=text],input[type=email],input[type=password],select,textarea){background:#11191d;border-color:#3a494f;border-radius:8px}
html[data-desktop-client] body .card{background:linear-gradient(145deg,#202b2f,#1b2428);border:1px solid #354247;border-radius:12px;padding:22px;box-shadow:0 5px 16px #00000014}
html[data-desktop-client] body .card p{font-size:13px;line-height:1.65}
html[data-desktop-client] body .pill{font-size:11px;border-radius:6px;background:#c2aa7510;border-color:#b4a17735;padding:4px 9px;letter-spacing:.02em}
html[data-desktop-client] body .bar{height:6px;background:#0f171a;border-radius:3px}
html[data-desktop-client] body .bar i{border-radius:3px;background:linear-gradient(90deg,#629c80,#a4d5b9)}
html[data-desktop-client] body .bar.mana i{background:linear-gradient(90deg,#688ec2,#a0bfe9)}
html[data-desktop-client] body .bar.xp i{background:linear-gradient(90deg,#a68a52,#e8bf7a)}
html[data-desktop-client] body .heading{margin:10px 0 20px;gap:16px}
html[data-desktop-client] body .tabs{padding:5px;background:#0e1518;border:1px solid #2c393f;border-radius:10px;gap:5px}
html[data-desktop-client] body .tabs button{border:1px solid transparent;min-height:36px;background:transparent;padding:8px 18px;color:#a5b2b5;box-shadow:none}
html[data-desktop-client] body .tabs button.active{background:#2c3d37;border-color:#476854;color:#c5e3d2}
html[data-desktop-client] body .modal-backdrop{background:#080d13b8;backdrop-filter:blur(6px)}
html[data-desktop-client] body .modal{max-width:660px;border-color:#4f6960;border-radius:16px;padding:30px;box-shadow:0 28px 100px #0008;background:#1b2529}
html[data-desktop-client] body .log{max-height:260px;font-size:13px;line-height:1.7;scrollbar-color:#485c57 #11191d}
html[data-desktop-client] body .log>div{padding:9px 0;border-bottom:1px solid #34414780}
html[data-desktop-client] body .market-table{font-size:13px;background:#192226;border:0}
html[data-desktop-client] body .market-table :is(th,td){padding:14px 12px;border-bottom:1px solid #334147}
html[data-desktop-client] body .market-table th{background:#222e33;color:#b4c1c3;font-weight:600}
html[data-desktop-client] body .market-table tbody tr:hover{background:#263733}
html[data-desktop-client] body .market-table-scroll{border-radius:12px;border-color:#3a494f}
html[data-desktop-client] body .toast{background:#bddbc9;color:#17251e;border:1px solid #d3e8da;box-shadow:0 10px 32px #0005}
@media(min-width:960px){
 html[data-desktop-client] body .app{display:block;max-width:none;width:100%;margin:0;min-height:100vh;padding:0 36px 40px 264px;background:transparent;box-shadow:none}
 html[data-desktop-client] body .app:not(:has(>.nav)){padding:0 36px 40px}
 html[data-desktop-client] body .top{display:flex;position:relative;align-items:center;gap:20px;padding:26px 0 22px;border-bottom:1px solid #344147;background:transparent}
 html[data-desktop-client] body .brand{font:600 12px system-ui;letter-spacing:1.8px;color:#b9c9c2}
 html[data-desktop-client] body .top .eyebrow{font:500 14px system-ui;letter-spacing:0;text-transform:none;color:#dce4de;margin-top:10px}
 html[data-desktop-client] body .top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
 html[data-desktop-client] body .top-actions button{padding:8px 12px}
 html[data-desktop-client] body .hero-stats{display:flex;justify-content:space-between;padding:20px 0 14px;font-size:12px;color:#acbabe}
 html[data-desktop-client] body .hero-stats b{font-size:22px;color:#eed2a4;letter-spacing:-.03em;margin-right:4px;font-variant-numeric:tabular-nums}
 html[data-desktop-client] body .energy-strip{padding:18px 22px;margin:0 0 24px;border:1px solid #354247;border-radius:12px;background:linear-gradient(110deg,#22312e,#1b2529);box-shadow:0 4px 18px #0001}
 html[data-desktop-client] body .energy-strip .caption{font-size:12px}
 html[data-desktop-client] body #activeTrainingSlot:empty{display:none}
 html[data-desktop-client] body .main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;padding:0;max-width:1600px;margin:0 auto}
 html[data-desktop-client] body .main>*{grid-column:1/-1;min-width:0}
 html[data-desktop-client] body .main>.card{grid-column:auto;margin:0}
 html[data-desktop-client] body .main>.activity{grid-column:1/-1}
 html[data-desktop-client] body .main>.heading{margin-bottom:2px}
 html[data-desktop-client] body .nav{position:fixed;inset:0 auto 0 0;transform:none;display:flex;flex-direction:column;align-items:stretch;width:224px;max-width:none;margin:0;padding:30px 16px 20px;gap:6px;border:0;border-right:1px solid #344147;border-radius:0;background:linear-gradient(180deg,#1c2929,#131c20);overflow-y:auto;z-index:6}
 html[data-desktop-client] body .nav::before{content:'GUILD\a ADVENTURE IDLE';white-space:pre-line;display:block;margin:8px 12px 38px;padding:64px 0 0;background:url('/assets/icons/guild-icon-192.png') left top/48px 48px no-repeat;font:650 16px/1.45 system-ui;letter-spacing:1.4px;color:#e8cf9d}
 html[data-desktop-client] body .nav::after{content:'A SMALL ADVENTURE.\a A LASTING JOURNEY.';white-space:pre-line;display:block;margin-top:auto;padding:38px 12px 10px;font-size:9px;line-height:1.8;letter-spacing:1.5px;color:#7e9690}
 html[data-desktop-client] body .nav button{display:flex;align-items:center;gap:13px;min-height:48px;padding:12px 14px;font-size:13px;text-align:left;border:1px solid transparent;background:transparent;color:#a8bbb6;border-radius:8px;box-shadow:none}
 html[data-desktop-client] body .nav button>b{display:grid;place-items:center;flex:none;width:26px;margin:0;font-size:20px;color:#8caaa0}
 html[data-desktop-client] body .nav button:hover{background:#2c3b36;border-color:#385047;color:#f0f5ef}
 html[data-desktop-client] body .nav button.selected{background:linear-gradient(90deg,#345447,#2a3d35);color:#d3ebda;border-color:#50725e;box-shadow:inset 3px 0 #abd3bd}
 html[data-desktop-client] body .nav button.selected>b{color:#c2e4ce}
 html[data-desktop-client] body .scene{min-height:310px;border:1px solid #425b50;border-radius:14px;box-shadow:inset 0 0 70px #0002,0 8px 30px #0002}
 html[data-desktop-client] body .scene-view-tools button{font-size:10px;min-height:30px;padding:5px 10px;background:transparent}
 html[data-desktop-client] body .scene-view-tools{margin-bottom:8px;opacity:.85}
 html[data-desktop-client] body .scene-label{font:600 11px system-ui;letter-spacing:2px;background:#12241f9e;border:1px solid #78937d44;padding:7px 12px;border-radius:6px}
 html[data-desktop-client] body .coop-layout{grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:18px}
 html[data-desktop-client] body .coop-combat-scene{min-height:340px}
 html[data-desktop-client] body .skill-overview-grid{--skill-columns:3;gap:16px}
 html[data-desktop-client] body .skill-overview-grid>.card{padding:20px}
 html[data-desktop-client] body .skill-overview-grid .icon{background:#91b49b12;border-radius:8px;text-align:center;padding:4px}
 html[data-desktop-client] body .character-overview-top,html[data-desktop-client] body .equipment-dashboard{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.4fr);gap:20px}
 html[data-desktop-client] body .character-summary .scene{min-height:300px}
 html[data-desktop-client] body .character-xp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 html[data-desktop-client] body .character-xp-grid>.card{margin:0}
 html[data-desktop-client] body .title-screen{display:grid;grid-template-columns:1.15fr 1fr;gap:18px 32px;max-width:1140px;width:100%;padding:58px 24px;margin:auto;min-height:100vh;align-content:start}
 html[data-desktop-client] body .title-screen>h1{grid-column:1;font-size:68px;line-height:1.02;letter-spacing:-.06em;margin:10px 0 12px;color:#e8cf9d}
 html[data-desktop-client] body .title-screen>.eyebrow{grid-column:1;grid-row:1}
 html[data-desktop-client] body .title-screen>.title-actions{grid-column:2;grid-row:1;justify-content:flex-end}
 html[data-desktop-client] body .title-screen>.pill,html[data-desktop-client] body .title-screen>.intro{grid-column:1;justify-self:start}
 html[data-desktop-client] body .title-screen>#onlineCharacterSlot{grid-column:2;grid-row:2/5;align-self:stretch;margin:0;padding:30px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(130deg,#2d4438,#1d292b);border-color:#56745f}
 html[data-desktop-client] body .title-screen>.scene-view{grid-column:1/-1;margin:0}
 html[data-desktop-client] body .title-screen>.slot{grid-column:auto;margin:0}
 html[data-desktop-client] body .title-screen>:is(.halloween-banner,h3,.tiny,.wide,.error){grid-column:1/-1}
 html[data-desktop-client] body .title-screen>.slot:last-of-type{grid-column:1/-1}
 html[data-desktop-client] body .modal .grid{gap:12px}
 html[data-desktop-client] body .toast{left:calc(50% + 112px);bottom:30px}
}
@media(min-width:1440px){html[data-desktop-client] body .app{padding-right:48px;padding-left:288px}html[data-desktop-client] body .nav{width:240px;padding-left:22px;padding-right:22px}html[data-desktop-client] body .skill-overview-grid{--skill-columns:4}}
@media(max-width:959px){html[data-desktop-client] body .app{max-width:100%;padding:0 22px 96px}html[data-desktop-client] body .top{padding:20px 0;gap:10px;flex-wrap:wrap}html[data-desktop-client] body .main{padding:8px 0 20px}html[data-desktop-client] body .nav{width:100%;max-width:none;left:0;transform:none;grid-template-columns:repeat(6,minmax(0,1fr));border-color:#3c5147;background:#192725}html[data-desktop-client] body .nav button{padding:6px 2px;font-size:10px}html[data-desktop-client] body .hero-stats,html[data-desktop-client] body .energy-strip{padding-left:0;padding-right:0}html[data-desktop-client] body .title-screen{padding:36px 16px;max-width:700px;margin:auto}}
@media(prefers-reduced-motion:reduce){html[data-desktop-client] body *{transition:none!important;animation:none!important}}
html[data-desktop-client] body.reduced *{transition:none!important;animation:none!important}
@keyframes desktop-reveal{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:960px){
 html[data-desktop-client] body .top{padding-top:18px;padding-bottom:16px}
 html[data-desktop-client] body .hero-stats{padding-top:12px;padding-bottom:10px}
 html[data-desktop-client] body .energy-strip{padding:12px 20px;margin-bottom:18px}
 html[data-desktop-client] body .nav button>span{display:flex;align-items:center;gap:12px;width:100%}
 html[data-desktop-client] body .main>.desktop-smart-heal{grid-column:1/-1;padding:12px 18px;background:#1a2527}
 html[data-desktop-client] body .desktop-smart-heal h3{font-size:13px}
 html[data-desktop-client] body .desktop-smart-heal small{font-size:11px}
 html[data-desktop-client] body .desktop-smart-heal button{min-width:112px;padding:7px 14px}
 html[data-desktop-client] body .desktop-adventure-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:18px;align-items:start}
 html[data-desktop-client] body .desktop-stage{min-width:0}
 html[data-desktop-client] body .desktop-stage>.card{margin-top:14px}
 html[data-desktop-client] body .desktop-destinations{max-height:700px;overflow:auto;min-width:0;padding:20px;background:#182226;border:1px solid #354247;border-radius:12px;scrollbar-width:thin;scrollbar-color:#435c50 #182226}
 html[data-desktop-client] body .desktop-destinations>h3{font-size:15px;margin:0 0 12px;color:#d1ded5}
 html[data-desktop-client] body .desktop-destinations>.card{padding:15px;margin-top:12px;margin-bottom:0;background:#202c2e}
 html[data-desktop-client] body .desktop-destinations .card .card{padding:12px}
 html[data-desktop-client] body .desktop-destinations .row{flex-wrap:wrap}
 html[data-desktop-client] body .desktop-destinations .grid{grid-template-columns:1fr}
 html[data-desktop-client] body .desktop-journal{grid-column:1/-1;min-width:0}
 html[data-desktop-client] body .desktop-journal>.card{margin:0}
 html[data-desktop-client] body .main.menu-enter>.card{animation:desktop-reveal .2s ease-out}
 html[data-desktop-client] body .main.menu-enter .skill-overview-grid>.card{animation:desktop-reveal .22s ease-out both}
 html[data-desktop-client] body .main.menu-enter .skill-overview-grid>.card:nth-child(3n+2){animation-delay:.025s}
 html[data-desktop-client] body .main.menu-enter .skill-overview-grid>.card:nth-child(3n){animation-delay:.05s}
}
@media(max-width:1150px){html[data-desktop-client] body .desktop-adventure-grid{display:block}html[data-desktop-client] body .desktop-destinations{max-height:none;margin-top:16px}html[data-desktop-client] body .desktop-journal{margin-top:16px}}
html[data-desktop-client] body.reduced .main *,html[data-desktop-client] body.reduced .main{animation:none!important}
@media(prefers-reduced-motion:reduce){html[data-desktop-client] body .main *{animation:none!important}}
/* Theatre mode supplies its own logical stage height; keep its scaled viewport aligned. */
html[data-desktop-client] body .scene-view-theatre .scene{min-height:0}
/* Optional desktop workspace customization. The locked/default layout keeps ordinary gameplay controls. */
html[data-desktop-client] body .dp-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #40594d;border-radius:10px;background:#1c2c26}
html[data-desktop-client] body .dp-toolbar b{font-size:12px;color:#cee1d4;letter-spacing:.04em}
html[data-desktop-client] body .dp-toolbar small{display:block;margin-top:3px;font-size:11px;color:#a6b9ae}
html[data-desktop-client] body .dp-tools{display:flex;gap:8px;flex:none}
html[data-desktop-client] body .dp-tools button{min-height:34px;padding:6px 12px;font-size:11px}
html[data-desktop-client] body .dp-canvas{display:block!important;position:relative;grid-column:1/-1;min-width:0;max-width:100%;isolation:isolate;gap:0}
html[data-desktop-client] body .dp-canvas>.dp-panel{position:absolute!important;display:flex!important;flex-direction:column;grid-column:auto!important;grid-row:auto!important;min-width:0!important;min-height:170px;max-height:none!important;max-width:none;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #4a6255;border-radius:11px;background:#1a2529;box-shadow:0 5px 22px #0003}
html[data-desktop-client] body .dp-panel-header{display:flex;flex:none;height:36px;border-bottom:1px solid #3b5145;background:linear-gradient(90deg,#2b3f34,#24322c);padding:0 7px}
html[data-desktop-client] body .dp-move{width:100%;min-height:0;height:35px;display:flex;align-items:center;gap:9px;padding:5px 8px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:0;box-shadow:none;border-radius:0;font-size:11px;color:#c8dbcd}
html[data-desktop-client] body .dp-move:disabled{opacity:1;cursor:default}
html[data-desktop-client] body .dp-editable .dp-move{cursor:grab}
html[data-desktop-client] body .dp-editable .dp-move:before{content:'⠿';font-size:18px;color:#a8c5af}
html[data-desktop-client] body .dp-panel-content{position:relative;flex:1;min-height:0;overflow:auto;padding:16px;scrollbar-width:thin;scrollbar-color:#557363 #1a2529;overscroll-behavior:contain}
html[data-desktop-client] body .dp-panel-content>.card{margin-bottom:12px}
html[data-desktop-client] body .dp-panel-content>.scene-view{margin:0}
html[data-desktop-client] body .dp-resize{position:absolute;z-index:40;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:0;touch-action:none}
html[data-desktop-client] body .dp-resize:disabled{display:none}
html[data-desktop-client] body .dp-editable .dp-resize{opacity:1}
html[data-desktop-client] body .dp-resize-e{right:0;top:36px;bottom:15px;width:7px;cursor:ew-resize}
html[data-desktop-client] body .dp-resize-s{bottom:0;left:0;right:15px;height:7px;cursor:ns-resize}
html[data-desktop-client] body .dp-resize-se{right:0;bottom:0;width:19px;height:19px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 48%,#a3c2ac 49%,#a3c2ac 55%,transparent 56%,transparent 64%,#a3c2ac 65%,#a3c2ac 71%,transparent 72%)}
html[data-desktop-client] body .dp-resize:focus-visible{opacity:1;background-color:#557363;outline:2px solid #c3e0c8;outline-offset:-2px}
html[data-desktop-client] body .dp-move{touch-action:none}
html[data-desktop-client] body .dp-guide{display:none;position:absolute;pointer-events:none;z-index:60;background:#c0e8c8;box-shadow:0 0 6px #8de0a8a0}
html[data-desktop-client] body .dp-guide-x{top:0;bottom:0;width:1px}
html[data-desktop-client] body .dp-guide-y{left:0;right:0;height:1px}
html[data-desktop-client].dp-dragging,html[data-desktop-client].dp-dragging *{user-select:none!important;cursor:grabbing}
@media(max-width:959px){html[data-desktop-client] body .dp-toolbar{display:none}}
/* Keep the action workspace ahead of account chrome and supporting information. */
@media(min-width:960px){
 html[data-desktop-client] body .desktop-compact-top{padding:10px 0;min-height:58px}
 html[data-desktop-client] body .desktop-compact-top .brand{font-size:0;letter-spacing:0}
 html[data-desktop-client] body .desktop-compact-top .brand>.pill{font-size:10px}
 html[data-desktop-client] body .desktop-compact-top .eyebrow{margin:3px 0 0;font-size:12px}
 html[data-desktop-client] body .desktop-status-row{display:grid;grid-template-columns:minmax(180px,.5fr) minmax(0,1fr);gap:18px;align-items:center;max-width:1600px;margin:10px auto 16px}
 html[data-desktop-client] body .desktop-status-row .hero-stats{padding:0;font-size:11px;gap:12px;align-items:center}
 html[data-desktop-client] body .desktop-status-row .hero-stats b{font-size:18px}
 html[data-desktop-client] body .desktop-status-row .energy-strip{margin:0;padding:9px 14px}
 html[data-desktop-client] body .desktop-status-row .energy-strip .caption{font-size:10px}
 html[data-desktop-client] body .desktop-status-row .energy-strip .bar{margin:4px 0;height:4px}
 html[data-desktop-client] body .desktop-status-row #buffShort{font-size:10px}
 html[data-desktop-client] body .main{gap:12px}
 html[data-desktop-client] body .main>.heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0}
 html[data-desktop-client] body .main>.heading h2{font-size:24px}
 html[data-desktop-client] body .main>.heading .dp-toolbar{margin-left:auto}
 html[data-desktop-client] body .dp-toolbar{padding:0;border:0;background:transparent;gap:12px;flex-wrap:wrap}
 html[data-desktop-client] body .dp-toolbar>div:first-child{display:none}
 html[data-desktop-client] body .dp-toolbar-editing>div:first-child{display:block}
 html[data-desktop-client] body .dp-toolbar-editing b{display:none}
 html[data-desktop-client] body .dp-toolbar-editing small{font-size:10px}
 html[data-desktop-client] body .main:has(.desktop-adventure-grid)>.heading>.pill{display:none}
 html[data-desktop-client] body .main>.panel-tabs{margin:0;padding:3px;justify-self:start;width:auto;min-width:340px}
 html[data-desktop-client] body .main>.panel-tabs button{min-height:30px;padding:5px 16px;font-size:12px}
 html[data-desktop-client] body .desktop-context{font-size:11px;padding:8px 0;margin-bottom:10px;border-bottom:1px solid #405347}
 html[data-desktop-client] body .desktop-context>summary{cursor:pointer;color:#a8c2b0}
 html[data-desktop-client] body .desktop-context p{margin:10px 0}
 html[data-desktop-client] body .desktop-stage>.desktop-smart-heal{padding:10px 14px;margin-top:12px}
 html[data-desktop-client] body .desktop-stage>.desktop-smart-heal small{display:none}
 html[data-desktop-client] body .dp-base-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;grid-column:1/-1;min-width:0}
 html[data-desktop-client] body .dp-base-workspace>.card{margin:0;min-width:0}
 html[data-desktop-client] body .dp-panel-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
 html[data-desktop-client] body .dp-panel-group>h3{grid-column:1/-1}
 html[data-desktop-client] body .dp-panel-group>.card{margin:0;min-width:0}
 html[data-desktop-client] body .dp-panel-group.dp-panel>.dp-panel-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
 html[data-desktop-client] body .dp-panel-group.dp-panel>.dp-panel-content>h3{grid-column:1/-1}
 html[data-desktop-client] body .desktop-journal:not(.dp-panel) .log{max-height:150px}
 html[data-desktop-client] body .dp-panel-content>.desktop-smart-heal{padding:10px}
}
@media(min-width:960px){
 html[data-desktop-client] body .desktop-stage:not(.dp-panel){display:flex;flex-direction:column}
 html[data-desktop-client] body .desktop-stage.dp-panel>.dp-panel-content{display:flex;flex-direction:column}
 html[data-desktop-client] body .desktop-stage>.scene-view,html[data-desktop-client] body .desktop-stage>.dp-panel-content>.scene-view{order:0;flex:none}
 html[data-desktop-client] body .desktop-stage>.card.activity,html[data-desktop-client] body .desktop-stage>.dp-panel-content>.card.activity{order:1;flex:none;padding:14px;margin-top:12px}
 html[data-desktop-client] body .desktop-stage>.card:has(#hpbar),html[data-desktop-client] body .desktop-stage>.dp-panel-content>.card:has(#hpbar){order:2;flex:none;padding:12px 16px}
 html[data-desktop-client] body .desktop-stage .desktop-smart-heal{order:3;flex:none;padding:10px 14px}
 html[data-desktop-client] body .desktop-stage .desktop-smart-heal small{display:none}
 html[data-desktop-client] body .desktop-destinations.dp-panel>.dp-panel-content>h3,html[data-desktop-client] body .desktop-journal.dp-panel>.dp-panel-content>.card>h3{display:none}
}
@media(min-width:960px){
 html[data-desktop-client] body .desktop-skill-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:18px;align-items:start;grid-column:1/-1}
 html[data-desktop-client] body .desktop-skill-options{max-height:760px;overflow:auto;min-width:0;padding:16px;border:1px solid #354a40;border-radius:12px;background:#182226;scrollbar-width:thin}
 html[data-desktop-client] body .desktop-skill-options>.card{margin-bottom:12px;padding:16px}
 html[data-desktop-client] body .desktop-skill-options>.node-nav{margin-bottom:10px}
 html[data-desktop-client] body .desktop-skill-options>.node-options{margin-bottom:12px}
}
@media(max-width:1150px){html[data-desktop-client] body .desktop-skill-grid:not(.dp-canvas){display:block}html[data-desktop-client] body .desktop-skill-options:not(.dp-panel){margin-top:16px;max-height:none}}
@media(max-width:959px){html[data-desktop-client] body .desktop-status-row .hero-stats,html[data-desktop-client] body .desktop-status-row .energy-strip{padding:6px 0}html[data-desktop-client] body .desktop-context{padding:10px;border:1px solid #3b5145;border-radius:8px;margin:10px 0}html[data-desktop-client] body .desktop-stage{margin-bottom:14px}}
@media(min-width:960px){
 html[data-desktop-client] body .desktop-status-row>.hero-stats{grid-column:1;grid-row:1}
 html[data-desktop-client] body .desktop-status-row>.energy-strip{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:0 18px;align-items:center}
 html[data-desktop-client] body .desktop-status-row #activeTrainingSlot{grid-column:1;grid-row:1/4}
 html[data-desktop-client] body .desktop-status-row .energy-strip>.caption{grid-column:2;grid-row:1}
 html[data-desktop-client] body .desktop-status-row .energy-strip>.bar{grid-column:2;grid-row:2}
 html[data-desktop-client] body .desktop-status-row .energy-strip>#buffShort{grid-column:1/-1;grid-row:4}
 html[data-desktop-client] body .desktop-status-row .energy-strip>#buffShort:empty{display:none}
 html[data-desktop-client] body .desktop-status-row .energy-strip:not(:has(.training-xp-strip)){display:block}
 html[data-desktop-client] body .desktop-status-row .training-xp-strip{margin:0;padding:0;background:none;border:0;box-shadow:none}
 html[data-desktop-client] body .desktop-status-row .training-xp-heading{font-size:10px;line-height:14px}
 html[data-desktop-client] body .desktop-status-row .training-xp-icon{font-size:11px}
 html[data-desktop-client] body .desktop-status-row .training-xp-level{font-size:10px}
 html[data-desktop-client] body .desktop-status-row .training-xp-track{height:4px;margin:3px 0;border:0;box-shadow:none}
 html[data-desktop-client] body .desktop-status-row .training-xp-track:before,html[data-desktop-client] body .desktop-status-row .training-xp-track:after{display:none}
 html[data-desktop-client] body .desktop-status-row .training-xp-caption{font-size:9px;line-height:12px}
}

/* Skill catalog occupies its own full-width workspace below the action and support panels. */
html[data-desktop-client] body .desktop-skill-catalog{grid-column:1/-1;min-width:0;padding:22px;border:1px solid #354a40;border-radius:12px;background:#182226;margin-top:18px}
html[data-desktop-client] body .desktop-skill-catalog>h3{margin:0 0 18px}
html[data-desktop-client] body .desktop-skill-catalog .node-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:18px}
html[data-desktop-client] body .desktop-skill-catalog .node-options>button{min-height:52px;padding:12px 16px;text-align:left;white-space:normal}
html[data-desktop-client] body .desktop-skill-catalog .craft-ingredients-filter{margin:0 0 20px;padding:14px 16px}
html[data-desktop-client] body .desktop-skill-catalog .recipe-category{margin-bottom:14px}
html[data-desktop-client] body .desktop-skill-catalog.dp-panel{margin-top:0}
@media(min-width:1151px){html[data-desktop-client] body .desktop-skill-catalog{margin-top:0}}
/* Enemy hit targets sit over the scene; hover must not paint a rectangular button. */
html[data-desktop-client] body .enemy-lineup button.enemy-unit{background:transparent;box-shadow:none}

.dp-transfer-overlay{position:fixed;inset:0;z-index:2147483645;display:grid;place-items:center;padding:16px;background:#000b}.dp-transfer-dialog{width:min(640px,100%);max-height:90dvh;overflow:auto;padding:24px;background:var(--panel,#1a2529);color:var(--text,#eee);border:1px solid var(--line,#557363);border-radius:14px}.dp-transfer-dialog textarea{width:100%;box-sizing:border-box;font:12px monospace}.dp-transfer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media(min-width:960px){html[data-desktop-client] body .desktop-adventure-grid:not(.dp-canvas){grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr)}html[data-desktop-client] body .desktop-adventure-grid:not(.dp-canvas)>.desktop-stage{grid-column:1;grid-row:1/3}html[data-desktop-client] body .desktop-adventure-grid:not(.dp-canvas)>.desktop-journal{grid-column:2;grid-row:2}html[data-desktop-client] body .desktop-adventure-grid:not(.dp-canvas)>.desktop-destinations{grid-column:2;grid-row:1}}
