
:root{--ink:#191817;--panel:#292725;--panel-raised:#3c3730;--text:#eee8d6;--muted:#c7beaa;--line:#716755;--border:#85744f;--copper:#dcc184;--gold:#e5c789;--ui-font:Tahoma,Verdana,'Segoe UI',sans-serif}
body{font-family:var(--ui-font);font-size:13px;color:var(--text);background:#171615}
button,input,select,textarea{font-family:var(--ui-font)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #f0d998;outline-offset:3px}
.panel,.game-screen .panel,dialog.panel{background:linear-gradient(135deg,#39342c 0,#292725 65%,#232221 100%);border:1px solid #8b7955;border-image:none;box-shadow:inset 0 0 0 2px #171614,inset 0 0 0 3px #595043,0 5px 16px #0005;color:var(--text)}
.panel .section-heading h2,dialog.panel>.section-heading h2{font:600 18px/1.3 Georgia,serif;color:#ead3a2;letter-spacing:.2px}
.panel .section-heading{border-bottom:1px solid #796e4d;padding-bottom:10px;margin-bottom:12px}
.muted,.field-help{color:#c9c2b3}
dialog::backdrop{background:#0c0b0980}
dialog.panel{padding:18px;max-height:94dvh}
.panel button,.world-tools button,.world-location>button{font-family:var(--ui-font);font-size:12px;color:#e5dfca;background:linear-gradient(#574938,#392f25);border:1px solid #8d7958;box-shadow:inset 0 1px #ffffff0d,0 2px 3px #0003;border-radius:2px}
.panel button:hover:not(:disabled),.world-tools button:hover,.world-location>button:hover{background:linear-gradient(#6f5a40,#493c2c);border-color:#d8c18a;color:#fff2d4}
.panel button:disabled{cursor:default}
.panel button.primary{background:linear-gradient(#8e693b,#5f4429);color:#fff3cf;border-color:#beac73}
.panel button[aria-pressed=true],.panel button[aria-selected=true]{background:linear-gradient(#775b38,#4e3d29);border-color:#d0b477;color:#ffe7ad;box-shadow:inset 0 -2px #c6a86d}
.auth-screen,.character-screen{background:#24211e}
.realm-journal,.auth-card,.creation-panel,.character-roster,.portal-menu{background:linear-gradient(135deg,#3f352a,#282624);border:1px solid #8b7955;border-image:none;box-shadow:inset 0 0 0 2px #161513,inset 0 0 0 3px #6b5941,0 3px 10px #0004}
.portal-bar,.portal-footer{background:#30281f;color:#bdc8af;border-color:#707957;font:12px/1.5 var(--ui-font)}
.welcome-letter h2{font:600 29px/1.3 Georgia,serif;color:#eed9a8;letter-spacing:0}
.welcome-letter p,.world-primer p,.realm-summary p,.auth-note{font:13px/1.75 var(--ui-font);color:#d2dac5}
.world-primer h3{font:600 20px/1.3 Georgia,serif;color:#ead5a4}
.portal-menu nav a{font:600 14px/1.6 var(--ui-font);color:#d4d9bb;padding:10px 12px}
.wood-title,.auth-card h2{font:600 21px/1.4 Georgia,serif;color:#f0dcae}
.auth-card form{background:#221e19;border-color:#76634a;box-shadow:inset 0 1px 6px #0004}
.auth-card label{font:600 12px/1.5 var(--ui-font);color:#d4ddc8}
.auth-card input,.creation-panel input,.chat-form input{font:13px var(--ui-font);background:#201d19;color:#eef0dc;border:1px solid #8e7855;min-height:36px;padding:7px 10px}
.auth-card form>.primary{font:600 15px var(--ui-font);min-height:40px}
.auth-card .eyebrow,.realm-journal .eyebrow{color:#bfc5a5}
.character-entry strong,.character-entry .character-level{font:600 16px/1.4 var(--ui-font)}
.character-entry small,.class-detail{font:12px/1.6 var(--ui-font)}
.class-choice strong{font:600 16px/1.4 Georgia,serif}
.game-header.panel{padding:7px 12px;gap:14px;background:linear-gradient(#514333,#2c2720);border-color:#a18a59}
.game-header .profile-identity strong{font:600 15px/1.3 var(--ui-font);color:#f3e4ba}
.game-header .profile-identity .muted{font:12px/1.3 var(--ui-font);color:#c9c1ae}
.game-header .bar-labels,.game-header .experience>span{font:11px/1.35 var(--ui-font);font-variant-numeric:tabular-nums;color:#e4e4d4}
.game-header .meter{border:1px solid #827254;background:#191717;box-shadow:inset 0 1px 3px #0008;height:7px}
.game-header .meter.hp>span{background:linear-gradient(#c87562,#954738)}
.game-header .meter.resource>span{background:linear-gradient(#86b7bc,#467983)}
.game-header .meter.xp>span{background:linear-gradient(#d2b575,#8e7444)}
.game-header .header-actions button{min-height:30px}
.inventory-dock,.with-inventory-dock>.equipment-panel{padding:10px}
.dock-tabs{gap:6px;margin-bottom:12px;padding-bottom:10px;border-color:#6c7055}
.dock-tabs button,.equipment-tabs button{font:600 13px/1.2 var(--ui-font);min-height:34px}
.inventory-heading{font:600 12px/1.4 var(--ui-font);color:#e9ddbd}
.inventory-count{color:#d9c28b;font-variant-numeric:tabular-nums}
.inventory-grid{gap:3px;grid-auto-rows:38px;padding:5px;background:#1a1918;border-color:#7a6950;box-shadow:inset 0 1px 8px #0006}
.inventory-grid .inventory-cell{border-radius:2px;background:linear-gradient(#42382c,#2b261f);border-color:#79654a;box-shadow:inset 0 1px #ffffff09}
.inventory-grid .inventory-cell.empty{background:#24211d;border-color:#4d4437;box-shadow:inset 0 2px 3px #0003}
.bag-sockets-heading{font:600 11px/1.4 var(--ui-font);letter-spacing:.5px;color:#cbbca3;margin-top:16px}
.bag-socket.empty{border-style:dashed}
.inventory-selection{font:12px/1.55 var(--ui-font);padding-top:12px;color:#d7dccb}
.inventory-selection .item-name,.item-tooltip .item-name{font:600 14px/1.35 var(--ui-font);color:#f5e5bb}
.inventory-selection .item-quality,.item-tooltip .item-quality{font:11px/1.4 var(--ui-font);margin:5px 0 9px}
.inventory-selection small,.item-tooltip small,.inventory-hint{font:11px/1.55 var(--ui-font);color:#bcb6a9}
.inventory-actions button{font:12px var(--ui-font);min-height:32px}
.item-tooltip{width:280px;padding:14px 16px;border:1px solid #c1a571;border-image:none;background:#25211af7;box-shadow:inset 0 0 0 3px #514333,0 6px 18px #0008;color:#e2e5d5;font:12px/1.6 var(--ui-font);border-radius:3px}
.with-inventory-dock .equipment-grid{gap:6px}
.with-inventory-dock .equipment-slot{height:70px;min-height:70px;border:1px solid #817054;background:linear-gradient(#3b342a,#27231e);border-radius:2px;box-shadow:inset 0 1px 4px #0006}
.equipment-slot:not(.filled)::before{opacity:.33;top:7px}
.game-screen .equipment-slot>span:first-child:not(.item-icon){display:block!important;position:absolute;bottom:4px;left:1px;right:1px;top:auto;text-align:center;font:10px/1.2 var(--ui-font);color:#cabda4;white-space:normal;pointer-events:none}
.game-screen .equipment-slot .item-icon{top:4px}
#coins-label{font:600 13px/1.4 var(--ui-font);color:#edd49c;padding:9px 0;border-top:1px solid #706049}
.equipment-help{font:12px/1.5 var(--ui-font);color:#bfb4a0}
.world-tools{bottom:10px;right:10px;gap:6px;padding:5px;background:#241f1bea;border:1px solid #847152;box-shadow:0 2px 6px #0005;border-radius:3px}
.world-tools button{min-height:32px;padding:5px 12px;font-size:12px}
.world-location{background:#2c261eea;border:1px solid #97805b;padding:6px 9px;font:12px/1.4 var(--ui-font);box-shadow:0 2px 8px #0005;gap:6px}
.world-location>button{font-size:11px;min-height:27px}
.safe-badge{color:#c4dcaa;font:11px var(--ui-font)}
.message-log{font:12px/1.6 var(--ui-font)}
#quest-dialog{width:min(740px,calc(100vw - 24px))}
#quest-dialog #quest-panel{padding:0;margin:0}
#quest-dialog .field-help,#quest-dialog #quest-description,#quest-dialog #quest-goal{font:13px/1.65 var(--ui-font);color:#ccd2bc}
.quest-journal{display:grid;gap:12px}
.quest-journal .regional-quest-summary{border:1px solid #8a7554;border-left:3px solid #b4995f;padding:14px 16px;background:linear-gradient(120deg,#484031,#302a22);box-shadow:0 2px 5px #0003;margin:0}
.quest-journal .regional-quest-summary>strong{font:600 17px/1.35 Georgia,serif;color:#efdbac}
.quest-journal .regional-quest-summary[data-status=ready]{border-left-color:#b8d38b;background:linear-gradient(120deg,#48442d,#333120)}
.quest-journal .quest-progress-meter{width:100%;height:6px;display:block;margin:10px 0;accent-color:#b6c581;border:0}
.quest-progress-meter::-webkit-progress-bar{background:#211d17;border-radius:2px}
.quest-progress-meter::-webkit-progress-value{background:linear-gradient(90deg,#7b8754,#c4cd8a);border-radius:2px}
.quest-journal button{min-height:32px;margin-top:5px}
#quest-progress{font:12px var(--ui-font);color:#dbca9b}


@media(max-width:710px){.game-screen .equipment-slot .item-icon{width:38px;height:38px;left:calc(50% - 19px)}.with-inventory-dock .equipment-slot{height:62px;min-height:62px}.inventory-grid{grid-auto-rows:36px}.game-header.panel{gap:8px;padding:6px}.world-location{font-size:11px}.safe-badge{display:none}.world-tools{bottom:6px;right:6px;padding:3px;gap:4px}.world-tools button{font-size:11px;min-height:30px;padding:4px 8px}.with-inventory-dock>.equipment-panel,.inventory-dock{padding:7px}.equipment-grid .equipment-slot>span:first-child:not(.item-icon){font-size:9px}.inventory-selection .item-name{font-size:13px}}
@media(max-width:460px){.game-header .bar-labels{font-size:10px}.inventory-grid{padding:3px;gap:2px}.with-inventory-dock>.equipment-panel{padding:5px}.game-screen .equipment-slot>span:first-child:not(.item-icon){font-size:9px}.dock-tabs button,.equipment-tabs button{font-size:11px;padding:3px}.world-location{max-width:calc(100% - 14px)}.world-location>button{margin-left:auto}.world-tools button{padding:4px 7px}}
#loot-dialog{background:#2e281f;border:1px solid #a38b60;border-image:none;padding:12px;width:510px;max-width:calc(100vw - 20px);min-width:0}
#loot-dialog>.section-heading{background:#433625;border-bottom:1px solid #84704c;padding:7px 9px;margin:-7px -7px 10px}
#loot-dialog #loot-help{font:12px/1.5 var(--ui-font);color:#d4c9b3;max-width:none;margin:7px 0 12px}
#loot-dialog #loot-claims{max-height:52dvh;padding:0 2px}
#loot-dialog .loot-item-grid{display:grid;grid-template-columns:minmax(0,1fr);max-width:none;gap:5px}
#loot-dialog .loot-entry{display:grid;grid-template-columns:42px minmax(0,1fr) 88px;align-items:center;width:100%;background:#332d23;border:1px solid #695a40;padding:7px;gap:9px}
#loot-dialog .loot-item-icon{width:42px;height:42px;background:#201f17;box-shadow:none}
#loot-dialog .loot-item-icon .item-icon{width:38px;height:38px}
#loot-dialog .loot-item-details{text-align:left;min-width:0}
#loot-dialog .loot-item-title{font:12px/1.45 var(--ui-font);white-space:normal;display:block;color:#f1e5c9;overflow-wrap:break-word}
#loot-dialog .loot-claim-heading h3{font:bold 11px/1.5 var(--ui-font);color:#bfae8d;padding:7px 0 3px}
#loot-dialog .loot-choice-status,#loot-dialog .loot-votes,.loot-footer{font:11px/1.4 var(--ui-font);color:#c4baa6}
#loot-dialog .loot-choice-status{margin:4px 0 0}
#loot-dialog .loot-choice-actions{grid-column:3;flex-direction:row;gap:4px}
#loot-dialog .loot-choice-actions button{width:42px;min-width:42px;min-height:42px;padding:0;font-size:19px}
#loot-dialog .loot-footer{gap:8px;margin-top:12px;padding-top:10px;flex-wrap:wrap}
#loot-dialog .loot-footer button{font:bold 12px var(--ui-font);min-height:40px}
#loot-dialog #loot-space{font-size:10px}
@media(max-width:380px){#loot-dialog .loot-entry{grid-template-columns:36px minmax(0,1fr) 78px;gap:5px;padding:6px}#loot-dialog .loot-item-icon{width:36px;height:36px}#loot-dialog .loot-item-icon .item-icon{width:32px;height:32px}#loot-dialog .loot-choice-actions button{width:37px;min-width:37px}#loot-dialog #loot-space{flex-basis:100%;text-align:right}}

@media(prefers-reduced-motion:reduce){.item-icon::after,.rarity-unique::after,.rarity-rare::after,.rarity-legendary::after{animation:none!important}}



body{background:#171614;display:flow-root}
.game-screen{background:#171614}
.panel,.game-screen .panel,dialog.panel{background:#2c2923;border:1px solid #88714e;box-shadow:inset 0 0 0 1px #181613,0 2px 4px #0006}
.game-header.panel{background:#403427;border-color:#ad8a54}
.panel .section-heading h2,dialog.panel>.section-heading h2{font:bold 16px/1.3 Georgia,serif;color:#f1d6a0}
.panel .section-heading{padding-bottom:7px;margin-bottom:8px;border-color:#776044}
.godot-world{border:3px solid #6e5b3d;border-image:none;box-shadow:inset 0 0 0 1px #17130e,0 2px 7px #0007}
.dock-tabs{margin-bottom:7px;padding-bottom:6px;border-color:#796345}
.dock-tabs button,.equipment-tabs button{min-height:29px;font-size:12px}
.inventory-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:38px;gap:2px;background:#171614;border-color:#8c744e;padding:4px}
.inventory-grid .inventory-cell{background:#40372b;border-color:#89704b;box-shadow:inset 1px 1px #ffffff0b,inset -1px -1px #0008;border-radius:0}
.inventory-grid .inventory-cell.empty{background:#24201b;border-color:#514330}
.inventory-cell .item-icon{filter:drop-shadow(1px 2px 1px #0009)}
.with-inventory-dock .equipment-slot{height:54px;min-height:54px;background:#3b3327;border-color:#8c7550;border-radius:0}
.equipment-slot:not(.filled)::before{top:3px;opacity:.45;background-color:#c0aa7b}
.game-screen .equipment-slot .item-icon{width:36px;height:36px;left:calc(50% - 18px);top:0}
.game-screen .equipment-slot>span:first-child:not(.item-icon){bottom:3px;color:#e0cba3;font-size:10px}
.equipment-help,#equipment-gear-view>.field-help{display:none}
#coins-label{padding:5px 0;font-size:12px;border:0}
#equipment-panel .coins-line{margin:4px 0;padding:0;border-color:#796345;min-height:24px}
#equipment-panel #coins-label{padding:0;min-height:24px}
.recovery-row{margin-top:3px}
.recovery-row button{min-height:27px;font-size:11px;padding:4px 8px}
.bag-sockets-heading{margin-top:9px;font-size:10px}
.inventory-hint{color:#bba98e;font-size:10px;line-height:1.4}
.inventory-selection{padding-top:7px}
.bag-socket{background:#2b251d;border-color:#7e6849;color:#c6b290}
.brand-mark,.compact .brand-mark{background:#382a20;color:#efca82;border-color:#a88752;box-shadow:inset 1px 1px #bea06b,inset -1px -1px #201a13}
.world-tools{background:#2d261dee;border-color:#a0804d;border-radius:0}
.world-location{background:#2d261eee;border-color:#a0804d;color:#f1dfbd}
.game-header .meter{height:8px;border-color:#a18a63}
.bag-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}
#dock-auto-loot,#dock-auto-heal{font:11px var(--ui-font);padding:4px 7px;min-height:28px;background:#342f24;color:#c9bfa8;border-color:#766548;box-shadow:none;white-space:nowrap}
#dock-auto-loot[data-enabled=true],#dock-auto-heal[data-enabled=true]{color:#d7e4b7;border-color:#899262;background:#333a27}
#dock-auto-heal[data-empty=true]{color:#eed09c;border-color:#ad8852;background:#493b28}
.bag-coins{display:none;font-size:12px;color:#edce88}
#dock-gear-tab{display:none}
@media(min-width:951px){
 .game-screen.with-inventory-dock{width:calc(100% - 12px);height:calc(100dvh - 12px);min-height:672px;grid-template-columns:minmax(0,1fr) 272px;grid-template-rows:54px 312px minmax(0,1fr);grid-template-areas:'header header' 'world equipment' 'world dock';gap:6px}
 .with-inventory-dock>.equipment-panel{padding:8px 8px 4px;overflow:auto;min-height:0}
 .with-inventory-dock .equipment-grid{gap:4px;grid-template-columns:repeat(3,1fr)}
 .with-inventory-dock .inventory-dock{padding:8px;overflow:auto}
 .with-inventory-dock .inventory-pane{flex:1;overflow:auto;min-height:0}
 .with-inventory-dock .inventory-grid{max-height:none;flex:none}
 .with-inventory-dock .inventory-selection{flex:none;min-height:0}
 .with-inventory-dock .inventory-selection:has(.inventory-hint){display:none}
 .game-screen .equipment-panel .section-heading{margin-bottom:5px;padding-bottom:5px}
 #equipment-panel .equipment-tabs{margin:3px 0 5px}
 .with-inventory-dock .inventory-grid{grid-auto-rows:36px}
 .with-inventory-dock .bag-sockets-heading{margin-top:6px}
 .with-inventory-dock .bag-socket{min-height:29px;height:29px}
}
#quest-dialog{background:#d3c09a url('ui/book-paper.svg');color:#3d3020;border-color:#b28d55}
.location-map-target{padding:10px 12px;margin:8px 0 12px;border-left:3px solid #d9b66b;background:#332c21;color:#f0d899;font:600 14px/1.5 var(--ui-font)}
#location-map-dialog .map-legend{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:8px 12px;font-size:11px}
.legend-npc{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f2de9f}
#quest-dialog .section-heading h2,#quest-dialog #quest-progress{color:#503719}
#quest-dialog .section-heading{border-color:#a28a61}
.quest-journal .regional-quest-summary{background:#e2d1aa;border:1px solid #ac8f5e;border-left:3px solid #8e6636;box-shadow:0 2px 3px #59432326;padding:12px 14px}
.quest-journal .regional-quest-summary>strong{color:#4f331b;font-size:16px}
#quest-dialog .field-help,#quest-dialog #quest-description,#quest-dialog #quest-goal{color:#4c3d29;font-size:13px;line-height:1.65;text-shadow:none}
#quest-dialog #quest-title{color:#422c18;font:bold 19px/1.35 Georgia,serif;margin:12px 0 8px;text-shadow:none}
#quest-dialog #quest-reward{color:#58411f;font:600 12px/1.5 var(--ui-font);padding:8px 0;border-top:1px solid #b6a079}
#quest-dialog .quest-panel>.section-heading h2{display:none}
#quest-dialog .quest-panel>.section-heading{justify-content:flex-end;margin-bottom:5px;padding-bottom:5px}
#quest-dialog .quest-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
#quest-dialog .quest-actions button{width:auto;flex:1;min-width:150px;margin-top:0}
#quest-dialog .quest-route{background:#d8c59d;border-color:#8c6c3c;color:#483019;box-shadow:inset 0 1px #f0e2be;text-shadow:none}
#quest-dialog .quest-route:hover:not(:disabled){background:#e7d6ae;color:#302113;border-color:#654722}
#quest-dialog button:disabled{color:#78684e;background:#c5b58f;border-color:#ac956e;opacity:1}
#quest-dialog .quest-satchel,#quest-dialog .quest-satchel small{color:#4c3d29}
#quest-dialog .quest-material{background:#e2d1aa;border-color:#ac8f5e;color:#3d3020}
@media(max-width:650px){#quest-dialog button{min-height:42px;font-size:12px}#quest-dialog .regional-quest-summary{padding:10px}#quest-dialog .quest-actions{display:grid;grid-template-columns:1fr}#quest-dialog .quest-actions button{width:100%}}
.quest-journal .regional-quest-summary[data-status=ready]{background:#d9d0a8;border-color:#91955a}
.quest-progress-meter::-webkit-progress-bar{background:#b6a27a}
.quest-journal button{background:linear-gradient(#6b5941,#493b2a);border-color:#8a6a3e;color:#f2e2be;min-height:29px}
@media(max-width:950px){.inventory-grid{grid-auto-rows:40px}}
@media(max-width:710px){.game-screen .equipment-slot .item-icon{width:36px;height:36px;left:calc(50% - 18px)}.with-inventory-dock .equipment-slot{min-height:54px;height:54px}}
@media(max-width:460px){.inventory-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:40px}}


@media(max-width:710px){body:has(dialog[open]){overflow:hidden}}


.world-tools #battle-input-mode[aria-pressed="true"]{background:#485237;border-color:#a79b60;color:#f0e5bc}
.mobile-controls-help{display:none}
@media(max-width:650px){
 .game-screen.with-inventory-dock{width:100%;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto calc(clamp(288px,47dvh,432px) + 54px) auto;grid-template-areas:'header' 'world' 'dock';gap:5px;padding:5px;border:1px solid #796445;min-height:100dvh;height:auto}
 .game-screen .game-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:7px;min-width:0}
 .game-header .profile-identity{grid-column:1;grid-row:1;min-width:0}
 .game-header .profile-identity strong{font-size:13px;max-width:none}
 .game-header #profile-class{font-size:11px}
 .game-header .header-actions{grid-column:2;grid-row:1;gap:5px}
 .game-header .header-actions button{min-width:44px;min-height:44px;padding:4px}
 .game-header .vital-bars{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:3px 6px;min-width:0;width:100%}
 .game-header .bar-labels{grid-column:1/-1;display:flex;justify-content:space-between;font-size:10px;gap:8px}
 .game-header .vital-bars .meter{width:100%;height:6px;margin:0}
 .game-header .experience{grid-column:1/-1;grid-row:3;width:100%;min-width:0;padding:0;margin:0;display:block}
 .game-header #xp-label{display:block;font-size:10px;margin-bottom:2px}
 .game-header .experience .meter{height:4px;margin:0}
 .game-header #location-name{display:block;margin-top:4px;font-size:11px;line-height:1.2}
 .game-header .ward-label:empty{display:none}
 
 .game-screen .godot-world{height:clamp(288px,47dvh,432px);align-self:start;overflow:visible}
 .godot-world .world-location{display:contents}
 .godot-world .world-location>span,.godot-world .world-location::before{display:none}
 .godot-world .world-location>button{position:absolute;top:calc(100% + 6px);left:-2px;width:calc(25% - 3px);height:44px;min-width:0;padding:4px;font-size:12px;z-index:4}
 .godot-world .world-tools{top:calc(100% + 6px);bottom:auto;left:25%;right:-2px;height:44px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0;border:0;background:none;box-shadow:none}
 .godot-world .world-tools button{min-width:0;height:44px;padding:4px;font-size:11px}
 .with-inventory-dock .inventory-dock{height:auto;min-height:340px;max-height:none;padding:7px;min-width:0;overflow:visible}
 .inventory-dock .dock-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-bottom:9px}
 .dock-tabs button{min-height:40px;font-size:12px;padding:5px 3px}
 #dock-gear-tab{display:block}
 .with-inventory-dock .inventory-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:44px;max-height:276px;gap:3px}
 .bag-coins{display:inline}
 #dock-auto-loot,#dock-auto-heal{min-height:40px;font-size:12px;padding:4px 6px}
 .inventory-pane .bag-tools{flex-wrap:wrap;gap:5px}
 .inventory-pane .bag-coins{margin-left:auto}
 .inventory-dock>.equipment-panel{display:block;width:100%;padding:0;border:0;box-shadow:none;background:transparent;min-width:0}
 .inventory-dock>.equipment-panel .equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:360px;margin:0 auto}
 .inventory-dock .equipment-slot{height:66px;min-height:66px}
 .game-screen .equipment-slot .item-icon{width:42px;height:42px;left:calc(50% - 21px);top:2px}
 .game-screen .equipment-slot>span:first-child:not(.item-icon){font-size:11px;bottom:5px}
 .inventory-dock .equipment-tabs button,.inventory-dock .recovery-row button{min-height:36px;font-size:12px}
 .inventory-dock .inventory-actions button{min-height:42px;font-size:13px}
 .inventory-selection{min-height:0}
 .inventory-hint{font-size:11px;line-height:1.5}
 .world-tools button,.world-location>button{min-height:34px;font-size:11px}
 .bag-socket{min-height:38px}
 .inventory-dock .chat-panel{height:300px}
 .with-inventory-dock .inventory-dock>.context-sidebar{position:static;width:auto;max-height:none;overflow:visible;right:auto;top:auto;margin:0 0 7px}
 .inventory-dock>.context-sidebar:has(#group-panel[hidden]){display:none}
 .inventory-dock .group-panel:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:3px 8px;padding:7px}
 .inventory-dock .group-panel .section-heading{grid-column:1;grid-row:1;margin:0;padding-bottom:3px}
 .inventory-dock .group-panel .section-heading h2{font-size:13px}
 .inventory-dock .group-members{grid-column:1;grid-row:2;min-height:36px;height:36px;margin:0;padding:0;border:0;overflow:hidden}
 .inventory-dock .group-member .pixel-sprite{width:34px;height:34px}
 .inventory-dock #group-levels{grid-column:1;grid-row:3;margin:0;font-size:11px}
 .inventory-dock .group-fight-actions{grid-column:2;grid-row:1/4;display:grid;grid-template-columns:1fr;gap:5px;align-content:center}
 .inventory-dock .group-fight-actions button{min-height:44px;padding:5px;font-size:11px}
 .inventory-dock .group-panel>.field-help:last-child{display:none}
 .mobile-controls-help{display:block}
 .desktop-controls-help{display:none}
}
