/* A63 Home1 / Menu1 / Menu3 use UI2.blp (source lines 31757, 32526, 32644).
   Use the extracted original artwork, not a recoloured stone/brown substitute. */
:root{--source-panel-art:url('https://assets.4rc.fun/original/menu-icons/1021995f05f22b5f444bd4f4.webp');--source-slot-art:url('https://assets.4rc.fun/original/ui-icons/ui-empty.png');--paper:#eeeeee;--muted:#b8b8b8;--ink:#090a0b;--panel:#111214;--panel-light:#202124;--brass:#8a8a83;--brass-light:#d1d1c5;--ui-text:#eeeeee;--ui-muted:#b8b8b8;--ui-edge:#858585;--ui-inset:#101112;--ui-stone:#1d1e20}
body{color:#eee;background:#111214}
body[data-mode=game] .vignette{display:none}
#hud-stone-dock,#game-sidebar,#bag,#settings,#source-panel,.source-storage-extension{background:#101112 var(--source-panel-art) center/100% 100% no-repeat;border-color:#858585;box-shadow:inset 0 0 0 1px #303133}
#hud-stone-dock:before,#hud-stone-dock:after{display:none}
body[data-mode=game] header{background:#090a0b;border-bottom-color:#606164}
body[data-mode=game] header .wordmark,#currencies span{color:#f2dc31}
body[data-mode=game] #game-controls .portrait{background:#101112;border-color:#777}
body[data-mode=game] #game-controls #source-menu{background:transparent}
body[data-mode=game] #game-controls #source-menu button,#skills .slot,#quick .slot{background:#080808 var(--source-slot-art) center/100% 100%;border-color:#9b9b92;box-shadow:none}
body[data-mode=game] #game-controls #source-menu button:hover{background:#151619 var(--source-slot-art) center/100% 100%;border-color:#eee8b6;box-shadow:0 0 0 1px #c1bc84}
body[data-mode=game] #game-controls #source-menu button.active{background:#14170c var(--source-slot-art) center/100% 100%;border-color:#e3e294}
#skills .slot.empty,#quick .slot:disabled{background:#080909 var(--source-slot-art) center/100% 100%;border-color:#525352}
#skills .slot kbd,#quick .slot kbd,#skills .slot small,#quick .slot small{background:#050505d9;color:#f1e5b5}
#source-panel>.dialog-header,#bag .dialog-header,#settings .dialog-header,.tooltip-heading{background:linear-gradient(#242527,#0c0d0e)!important;border-color:#717275!important;box-shadow:none}
#source-panel .dialog-header h2,#bag .dialog-header h2,#settings .dialog-header h2{color:#eee9c9;text-shadow:0 1px #000}
#source-panel .dialog-header button,#bag .dialog-header button,#settings .dialog-header button{background:#18181a!important;border-color:#858585!important;color:#eee}
#source-panel h3,#source-panel h4{color:#efe185;border-color:#73736b}
#source-panel p{color:#ddd}
#source-panel-tabs,#inventory-tools,#bag .bag-original-footer{background:#0c0d0edb;border-color:#565759}
#source-panel-tabs button,#bag #inventory-tools button,.source-storage-extension nav button{background:linear-gradient(#2a2b2c,#0c0d0e);border-color:#777;color:#e3e3dc;box-shadow:inset 0 0 0 1px #050505}
#source-panel-tabs button.active,.source-storage-extension nav button[aria-pressed=true]{background:#282b29;border-color:#d5d390;color:#f4e964}
.achievement-card,.daily-card,.growth-group,.recipe-detail,.scroll-result{background:#101112c9;border-color:#66676a;box-shadow:inset 0 0 0 1px #050505}
.menu-stat-line{color:#ddd;border-bottom-color:#5556}.menu-stat-line strong{color:#fff}
.journal-heading>strong{color:#eee}.journal-heading>img{border-color:#93948b;background:#050505}
.quest-status{background:#202123;border-color:#777;color:#ddd}.daily-card.complete{background:#192018c9;border-color:#8c987d}.complete .quest-status{background:#303b27;border-color:#aebd90;color:#e6edb1}
.menu-progress{background:#050505;border-color:#666}.menu-progress>i{background:#b4ac54}.complete .menu-progress>i{background:#b6c48d}
.reward-chip{background:#080909;border-color:#5c5d59;color:#ddd}.shared-level{background:#141514d9;border-color:#7e8070}.shared-level>strong{color:#eee62d}.shared-level>span{color:#ddd}
#source-panel .resource-tile,#source-panel .recipe-tile,.scroll-item-grid .menu-icon-row,.dismantle-actions .menu-icon-row{background:linear-gradient(#222326,#0a0b0d);border-color:#737478;box-shadow:inset 0 0 0 1px #000}
#source-panel .resource-tile>img,#source-panel .recipe-tile img,.recipe-heading img{border-color:#9b9c91;background:#040505}
.resource-name,#source-panel .recipe-tile span{color:#eee}.resource-amount{color:#f1e25f}.resource-action{color:#ddd6a0}
#source-panel button.resource-tile{border-color:#9a9c88}#source-panel button.resource-tile:hover,#source-panel .recipe-tile:hover{background:#2d3032;border-color:#ddd}
#source-panel .recipe-tile.selected,.scroll-item-grid .menu-icon-row[aria-pressed=true]{background:#2b302a;border-color:#e4e3a4;box-shadow:inset 0 0 0 1px #a6ad80}
.recipe-material{border-color:#555;color:#eee}.recipe-heading{border-color:#777}
#source-panel .recipe-gate{background:#151614;border-color:#737367;color:#e1dca6}
.craft-submit,#settings #potion-shop{background:linear-gradient(#31332c,#10110e);border-color:#9e9f7c;color:#eee7a9}.craft-submit:hover{background:#373a30;border-color:#ddd9a3}.craft-footnote{color:#aaa}
#bag .slot,.dismantle-items .slot{background:#080808 var(--source-slot-art) center/100% 100%;border-color:#91918a;box-shadow:none}
#bag .slot:hover,#bag .slot.selected{border-color:#e2e1ac;background:#161815 var(--source-slot-art) center/100% 100%}
#bag .bag-source-layout #stats{background:#070808c9;border-color:#676866}
#bag .bag-source-layout #stats>div,#bag .bag-source-layout #stats strong{color:#e5e5e5;border-color:#555}
#bag .bag-source-layout #stats>div:first-child,#bag .bag-source-layout #stats>div:first-child strong{color:#eeec22}
#bag .bag-item-actions button,.auto-salvage button{background:#17191a;border-color:#737573;color:#ddd}
.auto-salvage{border-color:#626362;color:#ddd}.auto-salvage button[aria-pressed=true]{background:#293423;border-color:#bcc397;color:#eee}
.storage-extension-heading{color:#eee431}.storage-extension-heading button{background:#211515;border-color:#938b80}.storage-help{color:#bbb}
#source-settings .menu-icon-row{background:linear-gradient(#26272a,#0c0d0f);border-color:#7c7d79;color:#eee;box-shadow:inset 0 0 0 1px #000}#source-settings [aria-pressed=true]{background:#242b20;border-color:#aeb393}
#settings .potion-setting{background:#0b0c0dd9;border-color:#74756f}#settings .potion-help{color:#ccc}#settings #potion-status{color:#e5e1c2}#settings .text-button{background:#202223;border-color:#757977;color:#eee}#settings input{accent-color:#b4ba93}
.game-tooltip{background:#060707f5;border-color:#999b91;color:#eee;box-shadow:inset 0 0 0 2px #141515,0 4px 12px #0008}#game-tooltip-body{color:#eee}.tooltip-heading strong{color:#e4e5c6}
body[data-mode=game] .chat{background:#090a0be8;border-color:#696b6c}.chat-heading,body[data-mode=game] .chat form{background:#191b1d;border-color:#666}body[data-mode=game] .chat input{background:#0a0b0c;color:#eee}
body[data-mode=game] #merchant-info,body[data-mode=game] .target{background:#101113eb;border-color:#8c8e85;box-shadow:inset 0 0 0 1px #060606}#merchant-info strong{color:#eee7ab}

/* Inventory actions stay next to the original bag slots, without another dialog. */
#bag.has-inline-dismantle .bag-source-layout #inventory-summary{top:10.7%!important;left:55%!important;width:43%;text-align:right;font-size:10px}
#bag .inventory-dismantle-inline{position:absolute;left:55%;top:83%;width:43%;padding:5px 0 0;border-top:1px solid #666;line-height:1.2}
.dismantle-inline-heading{display:flex;align-items:center;gap:6px;margin-bottom:5px;white-space:nowrap}
.dismantle-inline-heading strong{font-size:11px;color:#e9e3aa}.dismantle-inline-heading small{font-size:9px;color:#aaa}
.dismantle-inline-heading label{display:flex;align-items:center;gap:3px;margin-left:auto;font-size:10px;color:#ddd}
.dismantle-inline-heading input{width:12px;height:12px;margin:0;padding:0;accent-color:#c2c6a1}
.dismantle-grade-row,.dismantle-option-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin-top:3px}
#bag .dismantle-inline-button,#bag .dismantle-selection-submit{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;height:28px;padding:3px 2px;font-size:10px;line-height:12px;border:1px solid #747772;border-radius:1px;background:linear-gradient(#26282a,#0a0b0c);color:#ddd;white-space:nowrap}
#bag .dismantle-inline-button img{width:19px;height:19px;object-fit:contain}
#bag .dismantle-inline-button:last-child{border-color:#9d8175;color:#e4c5ba}
#bag .dismantle-selection-submit{grid-column:span 2;border-color:#93987b;color:#e5e7bd}
#bag .dismantle-inline-button:hover,#bag .dismantle-selection-submit:hover{background:#343835;border-color:#d2d5bc}
#bag .dismantle-selection-submit:disabled{opacity:.4}
#bag .slot.dismantle-mark{outline:2px solid #d5d68b;outline-offset:-3px;background-color:#343b20}
#bag.dismantle-selecting #inventory .slot:not(.empty):hover{outline:1px solid #e7e9b2;outline-offset:-2px}
#bag #inventory-tools{align-items:center;padding:7px 12px;gap:10px}
.inventory-upgrade-inline{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:3px 0}
.inventory-upgrade-modes{display:flex;flex-direction:column;gap:3px;flex:none}
#bag #inventory-tools .inventory-upgrade-modes button{height:22px!important;padding:2px 7px;font-size:10px;line-height:16px;justify-content:center}
#bag #inventory-tools .inventory-upgrade-modes button[aria-pressed=true]{border-color:#c2c799;color:#e4e7af;background:#262c21}
.inventory-upgrade-slots{display:flex;gap:4px;flex:none}
#bag #inventory-tools .upgrade-pick-slot{display:grid;place-items:center;width:40px!important;height:40px!important;padding:3px;background:#050606 var(--source-slot-art) center/100% 100%;border:1px solid #85877d}
#bag #inventory-tools .upgrade-pick-slot img{width:100%;height:100%;object-fit:contain}#bag #inventory-tools .upgrade-pick-slot span{font-size:10px}
.inventory-upgrade-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;font-size:11px;color:#c7c9bf}
.inventory-upgrade-copy>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.inventory-upgrade-copy select{max-width:100%;padding:2px 4px;font-size:10px;background:#17191a;color:#eee;border:1px solid #777}
#bag #inventory-tools .inventory-upgrade-inline>button{flex:none;height:30px!important;padding:4px 7px;font-size:11px}
#bag #inventory-tools .inventory-upgrade-inline>button:last-child{min-width:22px;padding:2px 5px;font-size:16px}
.inventory-upgrade-inline.choosing .upgrade-pick-slot{border-color:#d1d594!important}
@media(max-width:1100px){#bag .dismantle-inline-button img{width:15px;height:15px}#bag .dismantle-inline-button,#bag .dismantle-selection-submit{font-size:9px;gap:1px;height:24px}.dismantle-inline-heading small{display:none}.dismantle-inline-heading strong,.dismantle-inline-heading label{font-size:9px}.inventory-upgrade-inline{gap:5px}#bag #inventory-tools .upgrade-pick-slot{width:32px!important;height:32px!important}.inventory-upgrade-copy{font-size:10px}}
@media(max-height:800px){#bag .dismantle-inline-button,#bag .dismantle-selection-submit{height:22px;font-size:9px}#bag .dismantle-inline-button img{width:14px;height:14px}.dismantle-inline-heading{margin-bottom:3px}.dismantle-inline-heading small{display:none}.dismantle-inline-heading strong,.dismantle-inline-heading label{font-size:9px}}

/* Keep source HUD groups together instead of distributing them across 1fr. */
body[data-mode=game]{--controls-height:156px}
body[data-mode=game] #game-controls{grid-template-columns:250px 300px 70px 180px;grid-template-rows:54px 54px;grid-template-areas:'hero utility shortcuts skills' 'hero quick shortcuts skills';justify-content:center;align-content:center;column-gap:12px;row-gap:6px;padding:10px 12px 24px}
body[data-mode=game] #game-controls .portrait{height:114px!important}
body[data-mode=game] #game-controls #skills{width:180px;height:126px;gap:3px}
#source-shortcuts{grid-area:shortcuts;display:flex;flex-direction:column;gap:4px;align-self:center;z-index:1;pointer-events:auto}
#source-shortcuts button{display:flex;align-items:center;gap:5px;width:70px;height:34px;padding:3px 4px;border:1px solid #85867b;border-radius:1px;background:#0c0d0e;color:#ddd;font-size:10px;white-space:nowrap}
#source-shortcuts img{width:24px;height:24px;object-fit:contain}#source-shortcuts button:hover{background:#252828;border-color:#d5d7ba}
body[data-mode=game] #map-panel{position:absolute;inset:44px calc(var(--sidebar-width) + 12px) auto auto;display:flex;flex-direction:column;width:170px;height:187px;padding:5px;gap:3px;background:#08090bec;border:1px solid #85867b;box-shadow:inset 0 0 0 1px #232527;pointer-events:auto;z-index:6}
#map-panel>strong{font-size:10px;line-height:12px;font-weight:500;color:#ddd;text-align:center}
body[data-mode=game] #minimap{display:block;position:static!important;width:158px!important;height:158px!important;max-width:none;border:1px solid #4d504a;box-shadow:none;background:#060707;touch-action:none;cursor:crosshair!important}
body[data-mode=game] #merchant-info{right:calc(var(--sidebar-width) + 190px);top:44px}
@media(max-width:1200px){body[data-mode=game] #game-controls{grid-template-columns:200px 260px 62px 168px;column-gap:8px}body[data-mode=game] #game-controls #source-menu{grid-template-columns:repeat(6,37px);gap:4px}body[data-mode=game] #game-controls #source-menu button{width:37px!important;height:37px!important}body[data-mode=game] #game-controls #quick{width:252px;height:42px}body[data-mode=game] #game-controls #skills{width:168px;height:120px}#source-shortcuts button{width:62px;font-size:9px;gap:3px}#source-shortcuts img{width:22px;height:22px}}
@media(max-width:1000px){body[data-mode=game]{--controls-height:210px}body[data-mode=game] #game-controls{grid-template-columns:200px 168px 62px;grid-template-rows:112px 44px;grid-template-areas:'hero skills shortcuts' 'utility quick quick';column-gap:8px;row-gap:8px}body[data-mode=game] #game-controls #source-menu{grid-template-columns:repeat(6,29px);gap:3px}body[data-mode=game] #game-controls #source-menu button{width:29px!important;height:29px!important}body[data-mode=game] #game-controls #quick{width:238px}body[data-mode=game] #map-panel{width:146px;height:163px}body[data-mode=game] #minimap{width:134px!important;height:134px!important}body[data-mode=game] #merchant-info{right:calc(var(--sidebar-width) + 12px);top:215px}}
body[data-mode=game] header{flex-direction:row;justify-content:flex-start;align-items:center}
body[data-mode=game] #currencies{position:absolute;inset:3px calc(var(--sidebar-width) + 10px) auto auto;z-index:8;display:flex;justify-content:flex-end;width:max-content;max-width:calc(var(--stage-width) - 170px);height:29px;overflow:visible;background:#0a0b0c}
body[data-mode=game] #currencies .currency-cell{flex:none;min-width:62px}body[data-mode=game] #currencies span{color:#eee62d}
body[data-mode=game] #game-sidebar .chat{background:#090a0b;border-color:#696b6c}

/* Source inventory footer: compact instructions and five visible X/check toggles. */
#bag .bag-original-footer{padding:0 12px 8px;background:transparent;border-top:0;min-height:0}
#bag .bag-item-actions,#bag .bag-carry,#bag #bag-potion-status{display:none}
#bag .bag-help{margin:0 0 5px 54%;font-size:10px;line-height:1.35;text-align:center;color:#eee}
#bag .bag-help em{font-style:normal;color:#e9de57}
#bag .auto-salvage{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:5px 0 0 54%;border:1px solid #76705b;background:#090909;padding:4px;width:auto}
#bag .auto-salvage>strong{grid-column:1/-1;text-align:center;color:#efda35;font-size:11px}
#bag .auto-salvage>button{display:flex;flex-direction:column;align-items:center;gap:0;padding:0 2px;border:0;background:transparent;min-width:0;line-height:1.1;font-size:10px}
#bag .auto-salvage i{font-style:normal;font-size:26px;line-height:26px;color:#e71919;font-weight:900}
#bag .auto-salvage button[aria-pressed=true] i{color:#63e44b}
#bag .auto-salvage button:nth-child(2){color:#ede765}#bag .auto-salvage button:nth-child(3){color:#75d67c}#bag .auto-salvage button:nth-child(4){color:#56b0ee}#bag .auto-salvage button:nth-child(5){color:#e13637}#bag .auto-salvage button:nth-child(6){color:#d44fe5}
#bag #inventory-tools{min-height:0;padding:0 12px;justify-content:flex-end}#bag #inventory-tools:has(.inventory-upgrade-inline[hidden]){height:0;overflow:visible}
#bag .source-storage-button{display:none!important}.inventory-upgrade-inline[hidden]{display:none!important}
.original-enchant{width:360px;max-width:calc(100vw - 24px);padding:0;background:#101112 var(--source-panel-art) center/cover;color:#eee;border:1px solid #8b846c}
.original-enchant .dialog-header{padding:10px 12px}.original-enchant h2{font-size:16px;margin:0}.original-enchant-body{padding:14px}.original-enchant-choice{display:flex;align-items:center;justify-content:center;gap:22px}.original-enchant-choice>button{border:1px solid #807960;background:#070707;color:#ece1a6;padding:7px}.original-enchant-item{position:relative;width:70px;height:70px}.original-enchant-item img{width:100%;height:100%;object-fit:contain}.original-enchant-item strong{position:absolute;bottom:0;right:3px;color:#ffea00}.original-enchant-name{display:block;text-align:center;margin:8px 0;color:#f0de89;font-size:12px}.original-enchant-methods{display:flex;gap:6px;justify-content:center}.original-enchant-methods button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px;background:#111;border:1px solid #666;color:#ddd;font-size:11px}.original-enchant-methods button[aria-pressed=true]{border-color:#e4d47b;outline:1px solid #b9a757}.original-enchant-methods img{width:35px;height:35px;object-fit:contain}.original-enchant-requirements{white-space:pre-line;margin:12px 0;padding:10px;border:1px solid #4e4d46;background:#060606b0;font-size:12px;line-height:1.45}.original-enchant-materials{display:flex;justify-content:space-around;gap:12px}.original-enchant-materials>div{display:flex;align-items:center;gap:4px;color:#fff486;font-size:12px}.original-enchant-materials img{width:30px;height:30px;object-fit:contain}
