/* Z order: world/markers < ordinary HUD < explicit menus < primary windows. */
body .bf-utility-source{display:none!important}
body.approved-hud #bloodfang-hud #hud-actions #bf-utility-toggle{left:124px;top:131px;width:98px;height:102px;pointer-events:auto;background:transparent;border:0;cursor:pointer}
body.approved-hud #bloodfang-hud #hud-actions #bf-utility-toggle>span{font-size:11px;bottom:0;color:#ffe2a4}
#bf-utility-toggle:focus-visible{outline:3px solid #f4cb70!important;outline-offset:2px}
#bf-utility-toggle[data-alert=true]{filter:drop-shadow(0 0 9px #ffd772)}
#bf-utility-menu{position:fixed;z-index:65;width:min(248px,calc(100vw - 24px));box-sizing:border-box;background:#151410f5;border:1px solid #a38a53;border-radius:5px;padding:12px;box-shadow:0 8px 28px #000b;color:#ecd8ad}
#bf-utility-menu[hidden]{display:none}#bf-utility-menu>strong{display:block;margin:0 0 8px;font-size:16px}#bf-utility-menu button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:42px;background:#24241d;color:#eddbb5;border:1px solid #5c5139;border-radius:3px;padding:8px 10px;margin-top:5px;font:inherit;cursor:pointer}#bf-utility-menu button:disabled{opacity:.4}#bf-utility-menu kbd{font-size:12px;padding:2px 5px;border:1px solid #695a3b}
body .bf-intro,body .bf-daily{background:#171711 url('quest-panel.webp') center/100% 100% no-repeat;border:0;border-radius:3px;padding:16px 18px;box-shadow:0 4px 18px #0006;color:#e5d8bb}
body .bf-intro{width:min(292px,calc(100vw - 24px));font-size:13px;line-height:1.4;z-index:30}body .bf-intro h2{font-size:18px;margin:9px 0 7px}body .bf-intro .bf-intro-hazard{font-size:11px;color:#c6ae7d}body .bf-intro [data-intro-primary]{background:linear-gradient(#4b402a,#30291e);border-color:#9c8149;color:#f1dfb8;min-height:36px;font-size:12px}body .bf-intro-direction{font-size:11px;color:#c8b88f}body .bf-intro progress{height:4px;margin:9px 0}body .bf-daily{z-index:29}
body.bf-ui-primary .bf-intro,body.bf-ui-primary .bf-daily,body.bf-ui-primary .bf-intro-world-label,body.bf-ui-primary .hud-journal,body.bf-ui-primary .bf-party-frames,body.bf-ui-primary #approved-context{visibility:hidden!important;pointer-events:none!important}
body.bf-ui-primary #hud-actions{visibility:hidden!important;pointer-events:none!important}
body #inventory{z-index:75!important;background:transparent;inset:14px 16px var(--bf-ui-bottom,125px);padding:0;align-items:stretch;justify-content:center;pointer-events:none}
body #inventory .inventory-card{pointer-events:auto;width:min(1200px,100%);height:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;margin:0 auto;border:1px solid #8b7343;box-shadow:0 10px 35px #0008;background:#171914f5}
body #inventory .inventory-heading{flex:0 0 auto;min-height:50px;padding:9px 16px;position:relative}body #inventory .inventory-heading h2{font-size:24px;line-height:1.15}body #inventory .inventory-content{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 16px}body #inventory .inventory-heading>button{position:absolute;right:12px;top:8px;min-width:40px;min-height:40px}
body #inventory .inventory-heading .eyebrow{display:none}body #inventory .section-heading h3{font-size:19px}body #inventory .bag-layout{min-width:0}body #inventory .backpack-summary{padding:6px}
body .bf-abilities-book,body .bf-party-modal,body #rpg-panel,body .bf-market,body #cubicle-storage{z-index:78!important}body #menu{z-index:100!important}body.bf-ui-primary #interact{visibility:hidden!important}
@media(max-width:700px){body #inventory{inset:8px 8px var(--bf-ui-bottom,115px)}body #inventory .inventory-content{padding:8px}body #inventory .inventory-heading{padding:9px 12px}body #inventory .inventory-heading h2{font-size:20px;padding-right:45px}body .bf-intro{width:min(268px,calc(100vw - 24px));padding:13px 15px;font-size:12px}body .bf-intro h2{font-size:16px}}

body.bf-ui-guided #approved-context{display:none!important}body.approved-hud .hud-journal{max-height:190px}body.approved-hud #hud-journal-body{max-height:125px;overflow-y:auto}body .bf-intro-world-label{font-size:15px;padding:5px 10px;max-width:235px;overflow:hidden;text-overflow:ellipsis}
/* Reset the old centered chest layout, which otherwise ignores the hotbar inset. */
body.approved-hud #inventory{display:flex;inset:14px 16px var(--bf-ui-bottom,125px)!important;align-items:stretch!important}
body.approved-hud #inventory[hidden]{display:none!important}
body.approved-hud #inventory .inventory-card{position:relative!important;inset:auto!important;transform:none!important;width:min(1200px,100%)!important;max-width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;margin:0 auto!important}
body.approved-hud #inventory #inventory-close{position:absolute!important;right:10px!important;left:auto!important;top:7px!important;bottom:auto!important;z-index:3;width:42px;min-width:42px;height:42px;min-height:42px;display:flex!important;align-items:center;justify-content:center;transform:none!important}
body.approved-hud #inventory .inventory-heading{position:relative;min-height:56px;padding-right:164px;box-sizing:border-box}
body.approved-hud #inventory .inventory-heading [data-bf-help-button]{position:absolute;right:62px;top:8px;max-width:94px}
body.approved-hud #inventory[data-mode=loot] .bf-bag-overview{display:none}
body.bf-ui-primary #approved-chat{visibility:hidden!important;pointer-events:none!important}
@media(max-width:700px){body.approved-hud #inventory{inset:8px 8px var(--bf-ui-bottom,115px)!important}body.approved-hud #inventory .inventory-heading{min-height:60px;padding-right:135px}body.approved-hud #inventory .inventory-heading h2{font-size:18px!important}body.approved-hud #inventory .inventory-heading [data-bf-help-button]{max-width:74px;padding:5px;font-size:10px}}
body.mobile-hud-v2.approved-hud .bf-utility-source,body.mobile-hud-v2 #bf-mobile-menu .bf-utility-source,body.mobile-hud-v2.approved-hud #bloodfang-hud #hud-actions #rpg-target-touch{display:none!important}
/* Compact desktop bags: fixed-size cells, never proportional to the window. */
@media(min-width:701px){
body.approved-hud:not(.mobile-hud-v2) #inventory{align-items:flex-start!important;top:60px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory:not([data-item-book=open]) .inventory-card{width:min(760px,100%)!important;height:auto!important;max-height:100%!important;overflow:hidden!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot]:not([data-item-book=open]) .inventory-card{width:min(900px,100%)!important;height:min(550px,100%)!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading{min-height:46px!important;padding:8px 150px 8px 12px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading h2{font-size:20px!important;margin:0!important}
body.approved-hud:not(.mobile-hud-v2) #inventory:not([data-mode=loot]):not([data-item-book=open]) .bag-layout{display:grid!important;grid-template-columns:350px minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
body.approved-hud:not(.mobile-hud-v2) #inventory:not([data-mode=loot]) .bag-layout>div>.section-heading{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview{display:flex!important;align-items:center;gap:8px;padding:4px 0!important;margin:0 0 6px!important;min-height:32px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview>img{width:30px!important;height:30px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview small,body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview>div>span,body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview>b{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview strong{font-size:14px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .bf-bag-overview{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:64px!important;gap:5px!important;align-content:start!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid .item-slot{width:100%!important;height:64px!important;min-height:0!important;max-height:64px!important;aspect-ratio:auto!important;padding:4px!important;box-sizing:border-box!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid .item-art{width:48px!important;height:48px!important;max-width:100%!important;object-fit:contain!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-inventory-wallet{min-height:26px!important;padding:3px 0!important;margin:0 0 6px!important;font-size:12px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-money{font-size:15px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-money img{width:18px!important;height:18px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-tools{gap:5px!important;margin:5px 0!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-tools input,body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-tools select,body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-tools button{font-size:12px!important;min-height:30px!important;padding:5px 7px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #item-details{margin:0!important;padding:10px!important;min-width:0!important;font-size:12px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #item-details h3{font-size:18px!important;margin:4px 0!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #item-details .item-preview{width:44px!important;height:44px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #item-details button{min-height:32px!important;padding:6px 8px!important;font-size:12px!important;margin-top:5px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bag-shortcut-help{font-size:11px!important;margin:5px 0!important}
}
/* Bag is a small game window; details exist only as a requested action popover. */
body.bag-open #inventory{backdrop-filter:none!important;background:none!important}
body.approved-hud #inventory:not([data-item-book=open]) #item-details{display:none!important}
body.approved-hud #inventory[data-bag-actions=open]:not([data-item-book=open]) #item-details{display:flex!important;flex-direction:column!important;align-items:stretch!important;position:fixed!important;right:332px;bottom:var(--bf-ui-bottom,125px);width:245px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 150px);overflow:auto!important;background:#11140ffb!important;border:1px solid #a38a53!important;box-shadow:0 5px 20px #000b!important;z-index:90!important;padding:10px!important;box-sizing:border-box!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .item-preview{display:none!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details button{flex:none!important;width:100%!important;font-size:12px!important;min-height:30px!important;padding:5px!important}
@media(min-width:701px){
body.approved-hud:not(.mobile-hud-v2) #inventory{inset:12px 12px var(--bf-ui-bottom,125px)!important;align-items:flex-end!important;justify-content:flex-end!important}
body.approved-hud:not(.mobile-hud-v2) #inventory:not([data-item-book=open]) .inventory-card{width:304px!important;height:auto!important;max-height:100%!important;margin:0!important;overflow:visible!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading{min-height:38px!important;padding:8px 115px 8px 9px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading h2{font-size:16px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #inventory-close{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;right:5px!important;top:4px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #inventory-close>span{font-size:22px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading [data-bf-help-button]{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-capacity{font-size:11px!important;position:absolute;right:42px;top:12px}
body.approved-hud:not(.mobile-hud-v2) #inventory:not([data-mode=loot]):not([data-item-book=open]) .bag-layout{display:block!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-content{padding:8px!important;overflow:visible!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-overview,body.approved-hud:not(.mobile-hud-v2) #inventory .bf-bag-tools,body.approved-hud:not(.mobile-hud-v2) #inventory .bf-quality-loadout{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:52px!important;gap:4px!important;max-height:calc(100dvh - 260px);overflow-y:auto!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid .item-slot{height:52px!important;max-height:52px!important;padding:2px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory #bag-grid .item-art{width:44px!important;height:44px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bf-inventory-wallet{margin:0 0 5px!important;min-height:20px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-tools{display:flex!important;gap:5px;margin:5px 0!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-tools button{min-height:23px!important;font-size:10px!important;padding:3px 6px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory .bag-shortcut-help{font-size:10px!important}
/* Chest is a separate neighboring window; world remains visible between them. */
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot]:not([data-item-book=open]) .inventory-content{display:block!important;overflow:visible!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .bag-layout{padding:0!important;overflow:visible!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .bag-layout>div{height:auto!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .bag-layout .section-heading{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] #loot-section{position:fixed!important;inset:auto 328px var(--bf-ui-bottom,125px) auto!important;width:244px!important;height:auto!important;max-height:calc(100dvh - 150px)!important;padding:9px!important;box-sizing:border-box!important;background:#171914f5!important;border:1px solid #8b7343!important;box-shadow:0 5px 20px #0009!important;overflow:auto!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] #loot-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;flex:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .loot-item{min-height:48px!important;height:48px!important;padding:2px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .loot-item .item-art{width:36px!important;height:36px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .section-heading h3{font-size:14px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .paired-loot-hint{display:none!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] .paired-chest-owner{width:24px!important;height:24px!important;flex-basis:24px!important}
body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot] #take-all{font-size:10px!important;min-height:28px!important;padding:3px!important}
}
@media(max-width:700px){body.approved-hud #inventory[data-bag-actions=open]:not([data-item-book=open]) #item-details{right:12px;bottom:var(--bf-ui-bottom,115px)}}
@media(min-width:701px){body.approved-hud:not(.mobile-hud-v2) #inventory[data-mode=loot]:not([data-item-book=open]) .inventory-card{width:304px!important;height:auto!important;min-height:0!important}}
/* Inventory is nonmodal: no world blur, pointer veil or hidden touch movement. */
body.approved-hud #inventory{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:transparent!important}
body.bag-open #world{filter:none!important;pointer-events:auto!important}
/* Leave thumb controls outside the phone bag rather than covering them. */
body.mobile-hud-v2.approved-hud.bag-open #inventory{bottom:calc(var(--bf-ui-bottom,115px) + 125px)!important}
body.mobile-hud-v2.approved-hud.bag-open #inventory .bf-bag-overview,body.mobile-hud-v2.approved-hud.bag-open #inventory .bf-bag-tools{display:none!important}
body.mobile-hud-v2.approved-hud.bag-open .touch-controls #joystick,body.mobile-hud-v2.approved-hud.bag-open .touch-controls #jump{visibility:visible!important;pointer-events:auto!important}
/* Original ImageGen full-panel artwork, with native content on top (no atlas slicing). */
body.approved-hud #inventory:not([data-item-book=open]) .inventory-card{background:#151811 url('inventory-frame-v1.webp') center/100% 100% no-repeat!important;border:0!important;border-radius:5px!important;padding:8px!important;box-sizing:border-box!important;box-shadow:0 8px 24px #0009!important}
body.approved-hud #inventory:not([data-item-book=open]) .inventory-heading{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.approved-hud #inventory:not([data-item-book=open]) .inventory-content{background:transparent!important}
body.approved-hud #inventory #bag-grid .item-slot{background:radial-gradient(ellipse at 50% 18%,#77704e24,#11140ed9 75%)!important;border:1px solid #736044!important;border-radius:3px!important;box-shadow:inset 0 1px 0 #d0ad6466,inset 0 -1px 2px #000d,0 1px 2px #0008!important}
body.approved-hud #inventory #bag-grid .item-slot:disabled{opacity:1!important;border-color:#514b3a!important;box-shadow:inset 0 1px 3px #000d,0 1px 0 #b79c4c22!important;background:#0b0f0b85!important}
body.approved-hud #inventory #bag-grid .item-slot[aria-pressed=true]{border-color:#e4bd68!important;box-shadow:0 0 0 1px #b68d42,inset 0 0 9px #c4953a44!important}
body.approved-hud #inventory #bag-grid .item-slot:hover:not(:disabled){border-color:#f3d48c!important;filter:brightness(1.12)}
body.approved-hud #inventory .inventory-tools button{background:linear-gradient(#3a3025dc,#1c1a15dc)!important;border-color:#776044!important;color:#dfcda5!important;box-shadow:inset 0 1px 0 #b2985f33!important;border-radius:3px!important}
body.approved-hud #inventory .bf-inventory-wallet{border-color:#b69b563b!important;background:transparent!important;color:#c2af83!important}
body.approved-hud #inventory #inventory-close{background:linear-gradient(#4c3025,#241a14)!important;border-color:#a48450!important;color:#e8ce99!important;box-shadow:inset 0 1px 0 #ccb07744,0 1px 3px #000!important}
@media(min-width:701px){body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading{min-height:44px!important;padding:7px 100px 7px 25px!important}body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-heading h2{text-shadow:0 2px 2px #000;font-family:Georgia,serif!important;font-size:17px!important;color:#f0d7a0!important}body.approved-hud:not(.mobile-hud-v2) #inventory #inventory-close{right:3px!important;top:5px!important}body.approved-hud:not(.mobile-hud-v2) #inventory #bag-capacity{top:14px!important;right:38px!important}body.approved-hud:not(.mobile-hud-v2) #inventory .inventory-content{padding:6px 5px 9px!important}}
@media(max-width:700px){body.mobile-hud-v2.approved-hud #inventory .inventory-heading h2{padding-left:24px!important;font:17px/1.25 Georgia,serif!important;color:#f0d7a0!important;text-shadow:0 2px 2px #000}}
@media(min-width:701px){body.approved-hud:not(.mobile-hud-v2) #inventory .bag-shortcut-help{visibility:hidden!important}}

/* An open item action popover replaces hover help; never stack both. */
body:has(#inventory:not([hidden])[data-bag-actions="open"]) #bf-item-tooltip{display:none!important}
/* Mobile technology trees: one full original scene, readable and pannable.
   Native nodes and the authoritative detail/action remain the only controls. */
@media(max-width:700px){
 body.approved-hud #rpg-panel[data-mode=skills] .rpg-card{width:94vw!important;height:82dvh!important;max-height:82dvh!important}
 body.approved-hud #rpg-panel[data-mode=skills] .rpg-content{overflow:hidden!important;min-height:0!important}
 body.approved-hud .bf-progress-scenes[data-mode=skills]{display:flex;flex-direction:column;min-height:0;max-width:100%}
 body.approved-hud .bf-progress-scenes[data-mode=skills] :is(.bf-progress-toolbar,.bf-progress-experience,.bf-progress-branches){flex-shrink:0}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-trees{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#b48b49 #15120e;background:#100f0c}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-trees:before{content:'Táhni strom do stran a dolů · klepni na dovednost';display:block;position:sticky;left:0;top:0;z-index:3;box-sizing:border-box;width:100%;padding:7px 8px;background:#18130ff2;color:#d5bd8c;border-bottom:1px solid #80613b;font:11px/1.2 system-ui;text-align:center;pointer-events:none}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-scene{width:1000px;max-width:none;flex:none}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-mobile-nodes{display:none!important}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-node :is(strong,small){visibility:visible!important;font-family:system-ui;font-size:12px;line-height:1.2}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-node small{font-size:11px}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-node i{font-size:18px}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-scene-title{font-size:30px}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-lane{font:13px/1.15 system-ui}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-detail{flex:none;max-height:132px;min-height:95px;overflow:auto!important;padding:9px 12px!important;gap:4px;font:12px/1.35 system-ui;background:linear-gradient(#211b13,#14130f);border-top:1px solid #9f7a40}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-detail>h3{font-size:19px}
 body.approved-hud .bf-progress-scenes[data-mode=skills] .bf-progress-primary{flex:none;min-height:44px!important;margin:5px 10px 9px!important;width:calc(100% - 20px)!important;font-size:15px!important;padding:9px 6px!important}
}
/* Compact settings share the original iron/leather panel art and native controls. */
body.approved-hud #menu{padding:14px;background:#080a0c80;backdrop-filter:none!important}
body.approved-hud #menu .menu-card{position:relative;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-width:390px;max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:25px 26px 24px;background:#151611 url('inventory-frame-v1.webp') center/100% 100% no-repeat;border:0;border-radius:4px;color:#e5d3ad;text-align:left;box-shadow:0 16px 60px #000b;scrollbar-width:thin;scrollbar-color:#a17f48 #14130e}
body.approved-hud #menu .menu-card>.eyebrow{font:9px/1.3 system-ui;letter-spacing:.15em;color:#bfa16a;padding-right:28px}
body.approved-hud #menu .menu-card>h2{margin:0 0 6px;font-size:25px;line-height:1.2;color:#f2dbab;text-shadow:0 2px 2px #000;padding-right:22px}
body.approved-hud #menu .menu-card>button:not([hidden]){min-height:38px;padding:8px 12px;border:1px solid #78603d;border-radius:3px;background:linear-gradient(#332b20,#1b1913);color:#e1cfaa;font-size:13px;line-height:1.2;box-shadow:inset 0 1px 0 #b99a5529;cursor:pointer}
body.approved-hud #menu .menu-card>#resume{background:linear-gradient(#842c21,#481813);border-color:#c0924c;color:#ffe1a0;font-size:15px;min-height:42px;margin-bottom:2px}
body.approved-hud #menu .menu-card>label:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 110px 42px;align-items:center;gap:7px;min-height:39px;margin:0;padding:5px 0;border-bottom:1px solid #846b3b38;font:12px/1.3 system-ui;color:#d8c8a7}
body.approved-hud #menu .menu-card>label:has(select){grid-template-columns:1fr 155px}
body.approved-hud #menu .menu-card>label:has(input[type=checkbox]){display:flex;gap:10px}
body.approved-hud #menu select{width:100%;min-height:36px;padding:6px 8px;color:#ead6ab;background:#201e17;border:1px solid #8c7044;border-radius:3px;font:12px system-ui;accent-color:#c8a461;color-scheme:dark}
body.approved-hud #menu input[type=range]{appearance:none;width:100%;height:22px;margin:0;background:transparent;accent-color:#c49b50;cursor:pointer}
body.approved-hud #menu input[type=range]::-webkit-slider-runnable-track{height:5px;border:1px solid #78613c;background:#372d1e;border-radius:3px}
body.approved-hud #menu input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:18px;margin-top:-7px;border:1px solid #e1bf7c;border-radius:3px;background:linear-gradient(#e2bd72,#916632);box-shadow:0 1px 4px #000}
body.approved-hud #menu input[type=range]::-moz-range-track{height:5px;border:1px solid #78613c;background:#372d1e;border-radius:3px}
body.approved-hud #menu input[type=range]::-moz-range-thumb{width:16px;height:18px;border:1px solid #e1bf7c;border-radius:3px;background:#be944c}
body.approved-hud #menu input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#bb914b;cursor:pointer}
body.approved-hud #menu .bf-setting-value{font:11px/1.2 system-ui;text-align:right;color:#e7c885;font-variant-numeric:tabular-nums;white-space:nowrap}
body.approved-hud #menu .menu-card>a{margin:4px 0 0;text-align:center;color:#baa77f;font:11px/1.4 system-ui}
body.approved-hud #menu #character-exit{font-size:12px;margin-top:2px;border-color:#584b35;background:#1d1b15}
body.approved-hud #menu #bf-settings-close{position:absolute;right:17px;top:16px;width:30px;min-height:30px!important;height:30px;padding:0!important;font:23px/1 Georgia!important}
body.approved-hud #menu :is(button,select,input,a):focus-visible{outline:2px solid #edc979;outline-offset:3px}
body.approved-hud #menu button:hover:not(:disabled){filter:brightness(1.15)}
@media(max-width:700px){body.approved-hud #menu .menu-card{padding:23px 24px 24px;gap:9px}body.approved-hud #menu .menu-card>label:not([hidden]){min-height:44px;grid-template-columns:minmax(0,1fr) 100px 40px}body.approved-hud #menu .menu-card>label:has(select){grid-template-columns:1fr 145px}body.approved-hud #menu .menu-card>button:not([hidden]),body.approved-hud #menu select{min-height:44px}body.approved-hud #menu #bf-settings-close{width:36px;height:36px;min-height:36px!important;right:15px;top:12px}}
@media(max-height:540px){body.approved-hud #menu .menu-card{padding:20px 24px;gap:7px;max-height:calc(100dvh - 20px)}}
body.approved-hud #menu .menu-card>label:has(input[type=checkbox]){justify-content:flex-start!important}
body.approved-hud #menu .menu-card button:not([hidden]):not(#resume):not(#bf-settings-close){color:#dfcba3;border-color:#76603d;border-radius:3px;background:linear-gradient(#30291f,#191812);font-size:12px;box-shadow:inset 0 1px 0 #a98a4a24}
body.approved-hud #menu .menu-card :is(p,small){color:#baa981;font:11px/1.4 system-ui}
/* Native item actions: compact reusable original frame, clear action hierarchy. */
body.approved-hud #inventory[data-bag-actions=open]:not([data-item-book=open]) #item-details{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;align-content:start!important;width:268px!important;padding:19px 18px 18px!important;background:#151610 url('inventory-frame-v1.webp') center/100% 100% no-repeat!important;border:0!important;border-radius:3px!important;box-shadow:0 8px 24px #000b!important;color:#decaa3!important;scrollbar-width:thin;scrollbar-color:#987440 #15130f}
body.approved-hud #inventory[data-bag-actions=open] #item-details>*{grid-column:1/-1;min-width:0;order:2}
body.approved-hud #inventory[data-bag-actions=open] #item-details .item-preview{display:block!important;position:absolute;left:19px;top:18px;width:36px!important;height:36px!important;margin:0!important;background:none;border:0;pointer-events:none}
body.approved-hud #inventory[data-bag-actions=open] #item-details .item-preview .item-art{width:36px!important;height:36px!important;object-fit:contain}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-category{margin:0 20px 0 45px;font:9px/1.3 system-ui;color:#b89b62;text-transform:uppercase;letter-spacing:.08em}
body.approved-hud #inventory[data-bag-actions=open] #item-details #bf-item-action-title{font-size:16px!important;line-height:1.15!important;margin:0 12px 4px 45px!important;color:#f0dbad!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-description{font:11px/1.4 system-ui!important;color:#c0b08f;margin:3px 0 6px;max-height:47px;overflow:auto;scrollbar-width:thin}
body.approved-hud #inventory[data-bag-actions=open] #item-details button{display:flex!important;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:33px!important;margin:0!important;padding:6px 7px!important;border:1px solid #79603a!important;border-radius:3px!important;background:linear-gradient(#352c20,#1c1913)!important;color:#e5d0a7!important;font:12px/1.2 'Bloodfang Forge',Georgia,serif!important;box-shadow:inset 0 1px 0 #b8995130!important;text-align:center;cursor:pointer}
body.approved-hud #inventory[data-bag-actions=open] #item-details button.primary{order:3;background:linear-gradient(#704321,#392615)!important;border-color:#b18a48!important;color:#ffe0a0!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details [data-assign]{order:4}
body.approved-hud #inventory[data-bag-actions=open] #item-details [data-item-action]{grid-column:auto;order:5}
body.approved-hud #inventory[data-bag-actions=open] #item-details [data-item-recipes]{order:7;color:#c6b590!important;background:#1a1913!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details [data-drop-item],body.approved-hud #inventory[data-bag-actions=open] #item-details [data-drop-one]{grid-column:auto;order:8;color:#d4ab8d!important;border-color:#79523d!important;background:linear-gradient(#35241b,#211912)!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-stack-detail{order:6;font:11px/1.4 system-ui;border-top:1px solid #94703c66;padding-top:6px;color:#cdb78d}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-stack-detail :is(select,input){box-sizing:border-box;max-width:100%;min-height:30px;color:#dfcda7;background:#1d1b14;border:1px solid #7b633c;border-radius:2px;font:11px system-ui;accent-color:#c4a160}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-stack-detail summary{cursor:pointer;padding:3px 0;color:#e0c38a}
body.approved-hud #inventory[data-bag-actions=open] #item-details .item-art{width:22px!important;height:22px!important;object-fit:contain}
body.approved-hud #inventory[data-bag-actions=open] #item-details .action-pictures{display:flex;align-items:center;gap:3px}
body.approved-hud #inventory[data-bag-actions=open] #item-details .action-pictures .item-art{width:19px!important;height:19px!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .shortcut-symbol{font:11px system-ui;color:#bca06b}
body.approved-hud #inventory[data-bag-actions=open] #item-details button.bf-item-actions-close{position:absolute;top:11px;right:10px;width:26px!important;min-height:26px!important;height:26px;padding:0!important;font:20px/1 Georgia!important;background:#292116!important;z-index:1}
body.approved-hud #inventory[data-bag-actions=open] #item-details button:disabled{opacity:.5;cursor:default}
body.approved-hud #inventory[data-bag-actions=open] #item-details :is(button,summary,input,select):focus-visible{outline:2px solid #ebc77b!important;outline-offset:1px}
@media(max-width:700px){body.approved-hud #inventory[data-bag-actions=open]:not([data-item-book=open]) #item-details{right:12px;bottom:calc(var(--bf-ui-bottom,115px) + 125px);max-height:calc(100dvh - var(--bf-ui-bottom,115px) - 145px)!important}body.approved-hud #inventory[data-bag-actions=open] #item-details button{min-height:40px!important}body.approved-hud #inventory[data-bag-actions=open] #item-details button.bf-item-actions-close{min-height:32px!important;width:32px!important;height:32px}}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-head{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;padding-right:18px;margin-bottom:3px}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-head .bf-item-action-icon .item-art{display:block;width:36px!important;height:36px!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-head .bf-item-action-category{margin:0!important}
body.approved-hud #inventory[data-bag-actions=open] #item-details .bf-item-action-head #bf-item-action-title{margin:3px 0 0!important}

/* Native profession/build panels participate in the same foreground hierarchy. */
body :is(#mining-panel,#worker-panel,.bf-farm,#shared-building-panel){z-index:78!important}
body.bf-ui-primary :is(#mining-open,.bf-worker-trigger,.bf-shared-tools){visibility:hidden!important;pointer-events:none!important}

body.mobile-hud-v2.approved-hud.bf-ui-primary #bloodfang-hud #hud-actions{visibility:hidden!important;pointer-events:none!important}

/* Native account dialog: scoped so destructive confirmations keep their own UI. */
#flow-dialog:has(#preview-low){box-sizing:border-box;width:min(410px,calc(100vw - 24px));max-width:410px;max-height:calc(100dvh - 32px);overflow:auto;padding:30px 28px 26px;background:#131310 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;border:0;color:#f3dfb1;box-shadow:0 18px 60px #000b;color-scheme:dark;scrollbar-color:#977b43 #171510}
#flow-dialog:has(#preview-low)::backdrop{background:#080a0c99;backdrop-filter:blur(2px)}
#flow-dialog:has(#preview-low) h2{font-size:25px;line-height:1.15;margin:0 0 18px;color:#f3dfb1;text-shadow:0 2px 2px #000}
#flow-dialog:has(#preview-low) p{font-size:13px;line-height:1.5;color:#c6bdac;margin:14px 0}
#flow-dialog:has(#preview-low) .settings-toggle{font-size:14px;min-height:44px;margin:12px 0;padding:8px 10px;border:1px solid #826a3d;background:#252016;box-sizing:border-box;border-radius:3px}
#flow-dialog:has(#preview-low) #preview-low{width:20px;height:20px;margin:0;accent-color:#c99c48;flex-shrink:0}
#flow-dialog:has(#preview-low) :is(button,a){font-size:13px}
#flow-dialog:has(#preview-low) button{min-height:42px;padding:8px 14px;border:1px solid #987845;border-radius:3px;background:linear-gradient(#3c3223,#211d16);color:#f1dbac}
#flow-dialog:has(#preview-low) #dialog-confirm{background:linear-gradient(#8c6635,#4b321e);border-color:#c8a469;font-weight:bold}
#flow-dialog:has(#preview-low) a{color:#e0bc73;text-underline-offset:3px}
#flow-dialog:has(#preview-low) :focus-visible{outline:2px solid #ffdb85;outline-offset:3px}
#flow-dialog:has(#preview-low) .dialog-actions{gap:8px;margin-top:20px;border-top:1px solid #6d5934;padding-top:14px}
@media(max-width:450px){#flow-dialog:has(#preview-low){padding:27px 23px 23px}#flow-dialog:has(#preview-low) h2{font-size:23px}}
#flow-dialog:has(#preview-low) .dialog-actions>button::before{display:none}
/* Mining overview and station recipes share native state and actual item names. */
body #mining-panel{width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:28px 25px 24px;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:0 0 0 100vmax #080a0c80,0 18px 60px #000a;color:#ecd7af;scrollbar-color:#977b43 #171510;font-family:inherit}
body #mining-panel .mining-heading{gap:10px;padding-bottom:12px;border-color:#806538}
body #mining-panel .mining-heading small{font-size:9px;letter-spacing:1.2px;color:#d1b775}
body #mining-panel h2{font-family:inherit;font-size:25px;line-height:1.15;margin:4px 0 0;color:#f3dfb1}
body #mining-panel [data-mining-close]{flex-shrink:0;width:44px;height:44px;font-size:24px;background:#282217;border-color:#a3844a;border-radius:3px}
body #mining-panel [data-mining-context]{padding:10px 12px;border-left:2px solid #c39a4f;background:#29231599;font-size:13px;line-height:1.5;color:#d9c9a9;margin:14px 0}
body #mining-panel .mining-resource-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
body #mining-panel .mining-resource-bar>span{display:grid;grid-template-columns:28px 1fr;gap:5px;align-items:center;padding:8px;background:#0c0d0ab8;border:1px solid #695737;border-radius:3px;min-width:0}
body #mining-panel .mining-resource-bar .item-art{width:28px;height:28px}
body #mining-panel .mining-resource-bar b{font-size:17px;font-variant-numeric:tabular-nums;color:#f2db9e}
body #mining-panel .mining-resource-bar>span::after{content:attr(title);grid-column:1/-1;font-size:11px;line-height:1.2;color:#c9bda7;overflow-wrap:anywhere}
body #mining-panel article{grid-template-columns:42px minmax(0,1fr);gap:9px;padding:10px;margin:9px 0;background:#171611e8;border-color:#786039}
body #mining-panel article>.item-art{width:40px;height:40px}
body #mining-panel h3{font-family:inherit;font-size:16px;line-height:1.25;margin:0 0 5px;color:#ead6b0}
body #mining-panel article small{color:#c1b6a0;font-size:12px;line-height:1.4}
body #mining-panel article button{grid-column:1/-1;width:100%;min-height:42px;font-family:inherit;font-size:13px;background:linear-gradient(#57412a,#2b2218);border-color:#a48248;border-radius:3px}
body #mining-panel [data-mining-feedback]:empty{display:none}
body #mining-panel :focus-visible{outline:2px solid #ffdb85;outline-offset:3px}
@media(max-width:450px){body #mining-panel{padding:26px 22px 22px}body #mining-panel h2{font-size:23px}}
body #mining-panel .mining-recipes:has(article:not([hidden]))::before{content:'Pracovat můžeš u stanice. Suroviny musíš mít v batohu.';display:block;font-size:12px;line-height:1.4;color:#cdbd9b;margin:12px 0 8px}
body #mining-panel article button:disabled[title]:not([title=""])::after{content:attr(title);display:block;font-size:11px;line-height:1.3;margin-top:4px}
/* Mobile creator keeps real appearance options and navigation within one viewport. */
@media(max-width:700px){
 body[data-view=create] .workbench{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 64px 190px minmax(0,1fr);height:calc(100dvh - 64px);min-height:0;padding:10px 12px 88px;gap:8px;overflow:hidden}
 body[data-view=create] .workbench-heading{grid-column:1;grid-row:1;min-height:40px;gap:8px}
 body[data-view=create] .workbench-heading h1{font-size:23px;line-height:1.1}
 body[data-view=create] .left-panel{grid-column:1;grid-row:2;max-height:none;min-height:0;padding:0;overflow-x:auto;overflow-y:hidden}
 body[data-view=create] .category-list{gap:5px}
 body[data-view=create] .category-button{width:64px;min-width:64px;min-height:60px;padding:5px 3px;font-size:9px;line-height:1.15;gap:3px}
 body[data-view=create] .category-button svg{width:23px;height:23px}
 body[data-view=create] .preview-panel{grid-column:1;grid-row:3;height:190px;min-height:0;overflow:hidden}
 body[data-view=create] .preview-stage{min-height:0}
 body[data-view=create] .preview-toolbar{padding-top:0;gap:5px}
 body[data-view=create] .preview-toolbar button{padding:5px 9px;font-size:10px;min-height:40px}
 body[data-view=create] .preview-caption{font-size:9px;margin:3px 0 0}
 body[data-view=create] .right-panel{grid-column:1;grid-row:4;align-self:stretch;height:100%;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:16px 18px}
 body[data-view=create] .right-panel h2{font-size:22px;margin:8px 0 12px}
 body[data-view=create] .option-group{margin-top:12px}
 body[data-view=create] .option-tile{min-height:66px;padding:7px 4px;font-size:10px}
 body[data-view=create] .option-tile svg{width:28px;height:25px}
 body[data-view=create] .color-swatch{width:26px;height:26px}
 body[data-view=create] .flow-actions{min-height:70px;padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:700px) and (max-height:760px){body[data-view=create] .workbench{grid-template-rows:auto 64px 150px minmax(0,1fr)}body[data-view=create] .preview-panel{height:150px}}
@media(max-width:700px){
 body[data-view=create] .preview-toolbar{position:absolute;right:4px;top:4px;display:grid;grid-template-columns:repeat(2,44px);gap:4px;justify-content:initial}
 body[data-view=create] .preview-toolbar button{min-height:44px;padding:5px 2px;min-width:0}
 body[data-view=create] .preview-toolbar button:nth-child(-n+2){grid-column:1/-1}
 body[data-view=create] .preview-caption{display:none}
}
/* Campfire: compact native recipes in the established whole fantasy frame. */
body #rpg-panel[data-mode=fire]{padding:12px;background:#080a0c66;backdrop-filter:none;color:#ecd7af;font-family:inherit}
body #rpg-panel[data-mode=fire] .rpg-card{box-sizing:border-box;width:min(640px,100%);max-height:calc(100dvh - 24px);border:0;border-radius:0;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;padding:25px 24px 23px;box-shadow:0 12px 45px #000a;scrollbar-color:#977b43 #171510}
body #rpg-panel[data-mode=fire] header{position:sticky;top:-1px;padding:4px 0 9px;background:#151410f5;border-bottom:1px solid #806737;gap:12px}
body #rpg-panel[data-mode=fire] h2{font:24px Georgia,serif;color:#f0d8a6}
body #rpg-panel[data-mode=fire] #rpg-close{min-width:44px;min-height:44px;width:44px;height:44px;padding:0;font-size:27px;flex:none}
body #rpg-panel[data-mode=fire] .rpg-content{padding:0;font-size:13px;line-height:1.4}
body #rpg-panel[data-mode=fire] [data-fire-status]{margin:10px 0;color:#f1cf83}
body #rpg-panel[data-mode=fire] .fire-fuel{gap:8px;padding:8px 0;border-bottom:1px solid #806737}
body #rpg-panel[data-mode=fire] .fire-fuel-art{gap:5px}
body #rpg-panel[data-mode=fire] .fire-fuel-art .item-art{width:30px;height:30px}
body #rpg-panel[data-mode=fire] .fire-fuel-count{flex:1 1 110px;font-size:12px}
body #rpg-panel[data-mode=fire] .fire-fuel button{min-height:44px;font-size:12px;padding:6px 10px}
body #rpg-panel[data-mode=fire] .fire-recipes{gap:10px;margin-top:12px}
body #rpg-panel[data-mode=fire] .fire-recipe{padding:10px;background:linear-gradient(145deg,#30271988,#100f0c88);border:1px solid #826936;border-radius:2px}
body #rpg-panel[data-mode=fire] .fire-result{gap:8px;align-items:flex-start}
body #rpg-panel[data-mode=fire] .fire-result .item-art{width:46px;height:46px}
body #rpg-panel[data-mode=fire] .fire-result h3{font:18px Georgia,serif;color:#f0d8a6}
body #rpg-panel[data-mode=fire] .fire-result p,body #rpg-panel[data-mode=fire] .fire-result small{font-size:12px;line-height:1.4}
body #rpg-panel[data-mode=fire] .fire-materials{margin:10px 0;gap:5px}
body #rpg-panel[data-mode=fire] .fire-material{gap:6px;font-size:12px}
body #rpg-panel[data-mode=fire] .fire-material .item-art{width:26px;height:26px}
body #rpg-panel[data-mode=fire] .fire-recipe button{min-height:44px;font-size:13px;padding:6px}
body #rpg-panel[data-mode=fire] .fire-requirement{font-size:12px;line-height:1.4;margin:7px 0 0;min-height:2.8em}
body #rpg-panel[data-mode=fire] [data-fire-feedback]:empty{display:none}
@media(max-width:700px){
 body #rpg-panel[data-mode=fire]{padding:10px}
 body #rpg-panel[data-mode=fire] .rpg-card{width:min(380px,100%);max-height:calc(100dvh - 20px);padding:25px 23px 22px}
 body #rpg-panel[data-mode=fire] h2{font-size:21px}
 body #rpg-panel[data-mode=fire] .fire-shortcuts{gap:6px;margin:10px 0}
 body #rpg-panel[data-mode=fire] .fire-shortcuts button{min-height:44px;font-size:12px;padding:4px}
 body #rpg-panel[data-mode=fire] .fire-shortcuts .item-art{width:26px;height:26px}
 body #rpg-panel[data-mode=fire] .fire-fuel{gap:6px}
}
body #rpg-panel[data-mode=fire] .rpg-card{padding-left:34px;padding-right:34px;scroll-padding-top:85px}
body #rpg-panel[data-mode=fire] header{top:-25px}
@media(max-width:700px){body #rpg-panel[data-mode=fire] .rpg-card{padding-left:29px;padding-right:29px;max-height:calc(100dvh - 90px)}}
/* Party keeps native invitations/trade in one compact, independently scrolling window. */
body .bf-party-modal{padding:14px;background:#080a0c66;backdrop-filter:none}
body .bf-party-window{box-sizing:border-box;width:min(450px,100%);max-height:calc(100dvh - 28px);padding:26px 30px 24px;border:0;border-radius:0;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;box-shadow:0 12px 45px #000a;font-family:inherit;font-size:13px;line-height:1.45;color:#ecd7af}
body .bf-party-window header{padding:0 0 10px;gap:8px;background:none;border-bottom:1px solid #806737}
body .bf-party-window h2{font:23px Georgia,serif;color:#f0d8a6}
body .bf-party-window button,body .bf-party-window input,body .bf-party-window select{min-height:44px;font-size:12px;padding:6px 9px}
body .bf-party-window [data-close]{width:44px;min-width:44px;height:44px;padding:0;flex:none;font-size:25px}
body .bf-party-content{padding:0;scrollbar-color:#977b43 #171510;overscroll-behavior:contain}
body .bf-party-window p{font-size:13px;line-height:1.5;margin:12px 0;color:#c9c2ae}
body .bf-party-window h3{font:18px Georgia,serif;margin:16px 0 8px;color:#f0d8a6}
body .bf-party-row{padding:8px;margin:7px 0;gap:6px;background:#17130dcc;border:1px solid #806737;border-radius:2px}
body .bf-party-row strong{min-width:100px;font-size:14px;color:#ecd7af}
body .bf-party-row small{font-size:12px;color:#c9c2ae}
body .bf-party-status{padding:8px 0 0;min-height:0;border-top:1px solid #806737;font-size:12px}
body .bf-party-status:empty{display:none}
body .bf-party-offers{gap:8px}
body .bf-party-offer{min-width:0;padding:8px;background:#17130dcc;border-radius:2px}
body .bf-party-item{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;font-size:12px;margin:3px 0;padding:4px}
body .bf-party-item img,body .bf-party-bag img{width:30px;height:30px}
body .bf-party-bag{gap:5px}
body .bf-party-bag button{max-width:100%;text-align:left}
body .bf-party-actions{gap:6px}
@media(max-width:700px){body .bf-party-modal{padding:12px}body .bf-party-window{width:min(390px,100%);max-height:calc(100dvh - 40px);padding:25px 26px 24px}body .bf-party-window h2{font-size:21px}body .bf-party-offers{grid-template-columns:1fr}}
/* Garden uses the existing whole fantasy panel, native state and native actions. */
body .bf-farm{width:min(400px,calc(100vw - 24px));max-height:calc(100dvh - 100px);padding:28px 28px 25px;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:0 0 0 100vmax #080a0c66,0 12px 45px #000a;color:#ecd7af;scrollbar-color:#977b43 #171510;overscroll-behavior:contain;font-size:13px}
body .bf-farm header{gap:8px;padding:0 0 10px;border-bottom:1px solid #806737}
body .bf-farm h2{font:22px Georgia,serif;color:#f0d8a6}
body .bf-farm p{font-size:13px;line-height:1.5;margin:12px 0;color:#d4cbb7}
body .bf-farm button{min-height:44px;padding:8px;border-radius:2px;border-color:#96763f;background:linear-gradient(#302719,#17130e);font-size:13px}
body .bf-farm>button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}
body .bf-farm [data-farm-focus=close]{width:44px;min-width:44px;height:44px;padding:0;font-size:24px;flex:none}
body .bf-farm button img{width:38px;height:38px}
body .bf-farm footer{font-size:12px;line-height:1.5;margin-top:14px;padding-top:10px;border-top:1px solid #806737;color:#c9c2ae;opacity:1}
body .bf-farm .bf-farm-seeds{gap:7px}
body .bf-farm .bf-farm-seeds button{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){body .bf-farm{padding:27px 27px 24px;max-height:calc(100dvh - 110px)}body .bf-farm h2{font-size:20px}}
/* Mobile home editor: readable native catalogue while leaving the board visible. */
@media(max-width:700px){
 body.cubicle-building .cubicle-editor-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px 8px;background:linear-gradient(#211b13f7,#12120ff7);border-color:#96763f;min-height:100px}
 body.cubicle-building .cubicle-editor-top .cubicle-heading{min-width:0;gap:4px}
 body.cubicle-building .cubicle-editor-top h2{font-size:16px;line-height:1.15;white-space:normal;min-width:0}
 body.cubicle-building .cubicle-editor-top button{min-height:44px}
 body.cubicle-building .cubicle-editor-top .cubicle-heading button{min-width:44px;width:44px;padding:0;flex:none}
 body.cubicle-building .cubicle-editor-view{gap:3px}
 body.cubicle-building .cubicle-editor-view button{min-width:44px;padding:3px;font-size:10px}
 body.cubicle-building .cubicle-editor-top .cubicle-build-tabs{grid-column:1/-1;width:100%;margin:0}
 body.cubicle-building .cubicle-build-tabs button{font-size:12px;min-height:44px}
 body.cubicle-building #cubicle-build{padding:19px 20px 20px;max-height:310px;gap:8px 10px;border:0;border-radius:0;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;scrollbar-color:#977b43 #171510}
 body.cubicle-building .cubicle-build-kinds{max-height:144px;gap:7px;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-color:#977b43 #171510}
 body.cubicle-building .cubicle-build-kinds button{flex-basis:112px;max-width:112px;min-height:126px;padding:6px;gap:2px;justify-content:flex-start;background:linear-gradient(#302719,#17130e);border-color:#96763f}
 body.cubicle-building .cubicle-build-kinds .item-art{width:38px;height:38px;flex:none}
 body.cubicle-building .cubicle-build-kinds strong{font-size:12px;line-height:1.25;min-height:30px}
 body.cubicle-building .cubicle-build-kinds small{font-size:10px;line-height:1.3;color:#d4cbb7}
 body.cubicle-building .cubicle-build-cost,body.cubicle-building .cubicle-build-feedback{font-size:12px;line-height:1.4}
 body.cubicle-building .cubicle-build-coordinates label{font-size:11px}
 body.cubicle-building .cubicle-build-coordinates input,body.cubicle-building .cubicle-build-coordinates button{min-height:44px;font-size:15px}
}
/* Native assignment state: all ten destinations remain clearly marked until chosen/cancelled. */
body.hotbar-assigning #hotbar .action-slot{outline:2px solid #d9ac50!important;outline-offset:-2px;box-shadow:inset 0 0 12px #cfa54745,0 0 5px #e4b95866!important;cursor:crosshair}
body.hotbar-assigning #hotbar .action-slot kbd{font:700 13px/1.1 Georgia,serif!important;color:#ffe4a5!important;background:#17130eef;border:1px solid #bb9145;border-radius:2px;padding:2px 4px;min-width:12px;text-align:center;text-shadow:0 1px #000}
body.hotbar-assigning #hotbar .action-slot:is(:hover,:focus-visible){outline:3px solid #ffe5a0!important;outline-offset:-3px;box-shadow:inset 0 0 18px #efcb7255,0 0 8px #ffe4a077!important}
body.hotbar-assigning #hotbar .action-slot .empty-action{color:#ecd197}
body.approved-hud.hotbar-assigning #inventory[data-bag-actions=open] #item-details{display:none!important}
body.mobile-hud-v2.hotbar-assigning #joystick{z-index:1!important}
/* Mobile paperdoll: readable earned stats and native touch targets, within the
   existing whole-image frame. Keep desktop proportions and equipment slots. */
@media(max-width:700px) and (min-height:601px){
 body.approved-hud #character-sheet.bf-character-polish .character-heading{flex-basis:44px}
 body.approved-hud #character-sheet.bf-character-polish .character-heading>div{max-width:none}
 body.approved-hud #character-sheet.bf-character-polish .character-heading h2{font-size:16px}
 body.approved-hud #character-sheet.bf-character-polish .character-heading button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 body.approved-hud #character-sheet.bf-character-polish .sheet-body{grid-template-rows:minmax(0,1fr) calc(var(--u)*96) 32px 22px 64px 44px!important}
 body.approved-hud #character-sheet.bf-character-polish .sheet-damage{font-size:12px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-damage b{font-size:16px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-stats-strip{padding:3px 0}
 body.approved-hud #character-sheet.bf-character-polish .sheet-attribute{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 24px;padding:0 3px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-attribute small{font:12px/1.2 Georgia,serif}
 body.approved-hud #character-sheet.bf-character-polish .sheet-attribute small span{font-size:12px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-attribute b{font-size:16px;padding-right:12px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-attribute button{position:absolute;inset:0;width:100%;height:100%;min-height:44px;border:0;background:transparent;text-align:right;display:flex;align-items:flex-end;justify-content:flex-end;padding:0 2px 5px;font-size:14px}
 body.approved-hud #character-sheet.bf-character-polish .sheet-foot>button{height:44px;min-height:44px;min-width:44px;font-size:12px}
}
/* Ability book shares the original whole forged frame used by compact bags. */
body.approved-hud .bf-warrior-book{box-sizing:border-box;width:min(560px,calc(100vw - 28px));right:14px;top:90px;max-height:min(600px,calc(100dvh - 190px));padding:25px 28px 24px;border:0;border-radius:0;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;box-shadow:0 12px 38px #000a}
body.approved-hud .bf-warrior-book>header{gap:8px;padding:0 0 8px;border-color:#806737}
body.approved-hud .bf-warrior-book h2{font:24px/1.2 Georgia,serif;color:#f0d8a6}
body.approved-hud .bf-warrior-book>header small{font:10px/1.4 system-ui;color:#c6af7d;letter-spacing:.08em}
body.approved-hud .bf-warrior-book [data-abilities-close]{width:44px;min-width:44px;height:44px;padding:0;font-size:25px;flex:none;background:#211d14;border-color:#947543}
body.approved-hud .bf-warrior-book>p{font:12px/1.5 system-ui;margin:10px 0;color:#d4c9b3}
body.approved-hud .bf-warrior-grid{gap:7px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#97733e #141611}
body.approved-hud .bf-warrior-book .bf-ability-card{grid-template-columns:44px minmax(0,1fr) 44px;gap:7px;padding:8px;border-radius:2px;background:#151811;border-color:#6e5835}
body.approved-hud .bf-warrior-book .bf-warrior-art{width:44px;height:44px;border-radius:2px}
body.approved-hud .bf-ability-card strong{font:16px/1.25 Georgia,serif;color:#efd9ae}
body.approved-hud .bf-ability-card small,body.approved-hud .bf-ability-card p,body.approved-hud .bf-ability-status{font:12px/1.45 system-ui}
body.approved-hud .bf-ability-card[data-locked=true]{opacity:1;filter:none}
body.approved-hud .bf-ability-card[data-locked=true] .bf-warrior-art{filter:saturate(.45);opacity:.75}
body.approved-hud .bf-ability-card[data-locked=true] button{opacity:.45;cursor:not-allowed}
body.approved-hud .bf-ability-card button:focus-visible{outline:2px solid #f4d58a;outline-offset:2px}
@media(max-width:700px){body.approved-hud .bf-warrior-book{top:84px;right:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 270px);padding:24px 26px}body.approved-hud .bf-warrior-grid{grid-template-columns:1fr}}
/* Quest conversations use a bounded original frame; trading keeps its two bags. */
body.approved-hud .bf-market[data-view=quest] .bf-market-card{width:min(640px,calc(100vw - 24px));height:min(690px,calc(100dvh - 160px));min-height:0;padding:24px 28px;border:0;border-radius:0;background:#151410 url('./inventory-frame-v1.webp') center/100% 100% no-repeat;grid-template-rows:auto auto minmax(0,1fr)}
body.approved-hud .bf-market[data-view=quest] .bf-market-heading{padding:0 0 10px;gap:10px;background:none;border-color:#806737}
body.approved-hud .bf-market[data-view=quest] .bf-market-portrait{width:54px;height:54px;flex-basis:54px}
body.approved-hud .bf-market[data-view=quest] .bf-market-identity{min-width:0}
body.approved-hud .bf-market[data-view=quest] h2{font:23px/1.2 Georgia,serif;color:#efd8a5}
body.approved-hud .bf-market[data-view=quest] .bf-market-heading p{font:12px/1.4 system-ui}
body.approved-hud .bf-market[data-view=quest] .bf-market-purse,body.approved-hud .bf-market[data-view=quest] .bf-market-hint{display:none}
body.approved-hud .bf-market[data-view=quest] .bf-market-close{width:44px;min-width:44px;flex-basis:44px;height:44px;min-height:44px;padding:0;font-size:25px!important}
body.approved-hud .bf-market[data-view=quest] .bf-market-tools{padding:8px 0;background:none}
body.approved-hud .bf-market[data-view=quest] .bf-market-tools [role=tab]{min-height:44px;font-size:12px;padding:7px 12px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job{width:100%;max-width:none;padding:12px 0 4px;scrollbar-width:thin;scrollbar-color:#97733e #141611}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-heading{gap:10px;align-items:flex-start}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-picture{flex-basis:52px;height:52px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-picture>.item-art{width:52px;height:52px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job h3{font:22px/1.2 Georgia,serif;margin:3px 0 7px;color:#f0d8a6}
body.approved-hud .bf-market[data-view=quest] .bf-first-job p{font-size:13px;line-height:1.5}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-reward{margin:12px 0;padding:9px 10px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-reward strong{font:23px/1.2 Georgia,serif}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-phase{margin:10px 0;padding:8px 10px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-requirements{gap:7px;margin:10px 0}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-requirement{padding:9px;gap:7px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-requirement>.item-art{width:36px;height:36px;flex-basis:36px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-requirement span{font:12px/1.45 system-ui}
@media(max-width:700px){body.approved-hud .bf-market[data-view=quest] .bf-market-card{width:calc(100vw - 16px);height:min(660px,calc(100dvh - 190px));padding:23px 25px}body.approved-hud .bf-market[data-view=quest] h2{font-size:20px}body.approved-hud .bf-market[data-view=quest] .bf-market-tools [role=tablist]{display:flex;flex-wrap:wrap}body.approved-hud .bf-market[data-view=quest] .bf-first-job-requirements{grid-template-columns:1fr}}
body.approved-hud .bf-market[data-view=quest] .bf-market-heading{grid-template-columns:54px minmax(0,1fr) 44px;align-items:center}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-heading p{margin:4px 0}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-reward{margin:8px 0;padding:8px 10px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-reward>.item-art{width:40px;height:40px;flex-basis:40px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-phase{margin:8px 0;padding:6px 10px}
body.approved-hud .bf-market[data-view=quest] .bf-first-job-hint{margin:8px 0}
