/* Resona UI 2.0: original dark brass fantasy chrome, no backing panel on action bars. */
.realm-stage.realm-ui2 .realm-hud-bottom{width:min(610px,95%);gap:3px;pointer-events:none}
.realm-stage.realm-ui2 .realm-hud-bottom>*{pointer-events:auto}
.realm-stage.realm-ui2 .realm-hud-bottom #realm-spells,.realm-stage.realm-ui2 .realm-hud-bottom #realm-supplies{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;overflow:visible;padding:0;border:0;background:none;box-shadow:none;margin:0}
.realm-stage.realm-ui2 .realm-hud-bottom #realm-supplies[hidden]{display:none!important}
.realm-stage.realm-ui2 .realm-hud-bottom .realm-ui-slot{position:relative;display:block;aspect-ratio:1;min-width:0;min-height:0;width:100%;max-width:none;padding:0!important;margin:0;border:1px solid #b39a64;border-radius:4px;background:#12191d;color:#fff4d2;overflow:hidden;box-shadow:0 2px 5px #0009;isolation:isolate;cursor:pointer}
.realm-stage.realm-ui2 .realm-ui-slot img{width:100%;height:100%;display:block;object-fit:cover;pointer-events:none}
.realm-stage.realm-ui2 .realm-ui-slot[data-usable=false] img{filter:brightness(.43) saturate(.55)}
.realm-stage.realm-ui2 .realm-ui-slot[data-picked=true]{outline:2px solid #ffe29c;outline-offset:1px}
.realm-stage.realm-ui2 .realm-ui-slot:hover{border-color:#ffe8b0;box-shadow:0 0 8px #ffdb7777}
.realm-stage.realm-ui2 .realm-ui-slot kbd,.realm-stage.realm-ui2 .realm-ui-slot small{position:absolute;top:1px;left:2px;z-index:1;font: bold 10px system-ui;color:#fff;text-shadow:0 1px 2px #000,1px 0 #000;background:none;border:0;padding:0;pointer-events:none}
.realm-stage.realm-ui2 .realm-ui-slot small{top:auto;left:auto;right:2px;bottom:1px;font-size:11px}
.realm-ui-tools,.realm-ui-micro{display:flex;justify-content:center;gap:3px;align-items:center;flex-wrap:wrap}
.realm-stage.realm-ui2 :is(.realm-ui-tools,.realm-ui-micro) button{background:linear-gradient(#343a3d,#171d21);border:1px solid #827257;color:#e9d5ad;min-height:22px;margin:0;padding:2px 6px;border-radius:3px;font:600 11px system-ui}
.realm-stage.realm-ui2 .realm-ui-micro button{font-size:16px;min-width:27px;line-height:1.1}
.realm-ui-edit-note{color:#fff4ca;text-shadow:0 1px 3px #000;font-size:10px}
.realm-ui-xp{position:relative;height:11px;overflow:hidden;border:1px solid #8c7859;background:#171c20;border-radius:2px}
.realm-ui-xp progress{width:100%;height:100%;display:block;accent-color:#a080d6}
.realm-ui-xp span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:bold 9px system-ui;text-shadow:0 1px 2px #000}
.realm-stage.realm-ui2 #realm-stats .realm-bars label:has(progress[data-stat=XP]){display:none}
.realm-stage.realm-ui2 #realm-target[data-kind=mob] .realm-target-ability{display:none}
.realm-stage.realm-ui2 .realm-drawer{background:linear-gradient(145deg,#292d30,#161b1e)!important;color:#eee4cf!important;border:1px solid #ad966d;box-shadow:0 8px 25px #000b}
.realm-stage.realm-ui2 .realm-drawer>header{color:#f1d5a2;border-color:#817052;background:#25292c!important;font-family:Georgia,serif}
.realm-stage.realm-ui2 .realm-drawer :is(h2,h3){color:#e9ca91}
.realm-stage.realm-ui2 .realm-drawer :is(button,select,input:not([type=range]):not([type=checkbox])){color:#f2e4c9;background-color:#30383b;border-color:#82745c}
.realm-stage.realm-ui2 .realm-drawer :is(.realm-item,.realm-story-quest,.realm-inv-cell){background-color:#222a2b;color:#eadfc9}
.realm-stage.realm-ui2 .realm-drawer .realm-item small,.realm-stage.realm-ui2 .realm-drawer .realm-hint{color:#c6c3b9}
.realm-stage.realm-ui2 .realm-ui-window{top:12px;bottom:auto;max-height:calc(100% - 24px);right:auto;left:12px;width:min(660px,85%);padding:10px}
.realm-stage.realm-ui2 #realm-ui-book{left:auto;right:12px;width:min(420px,75%)}
.realm-ui-window[hidden],.realm-ui-move[hidden],.realm-ui-tools button[hidden],.realm-ui-micro button[hidden]{display:none!important}
.realm-ui-window-body h2{margin:8px 0 2px;font: bold 23px Georgia,serif}
.realm-ui-window-body h2+p{margin:0 0 10px;color:#c7c5b9}
#realm-ui-character .realm-ui-window-body{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px}
.realm-ui-character-main{min-width:0}
.realm-ui-tabrail{display:flex;flex-direction:column;gap:5px}
.realm-stage.realm-ui2 .realm-ui-tabrail button{font-size:20px;min-height:34px;margin:0;padding:3px;background:linear-gradient(#3d4448,#20262a);color:#e5cea0;border:1px solid #8b785c;border-radius:3px}
.realm-stage.realm-ui2 .realm-ui-tabrail button[aria-pressed=true]{border-color:#ffe0a0;background:#665337}
.realm-ui-character-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(130px,1fr);gap:12px;align-items:start}
.realm-ui-character-grid .realm-paperdoll{max-width:100%;margin:auto}
.realm-ui-stats{background:#10171977;border:1px solid #70634e;border-radius:4px;padding:9px}
.realm-ui-stats h3{font: bold 13px Georgia,serif;margin:9px 0 4px}
.realm-ui-stats h3:first-child{margin-top:0}
.realm-ui-stats>div{display:flex;justify-content:space-between;gap:6px;font-size:11px;padding:4px 0;border-bottom:1px solid #ffffff10}
.realm-ui-stats strong{color:#b4d6a7;text-align:right}
.realm-ui-book-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.realm-stage.realm-ui2 .realm-ui-book-entry{display:flex;align-items:center;text-align:left;gap:7px;min-width:0;min-height:51px;margin:0;padding:5px;background:#222b30;border:1px solid #75684e;border-radius:4px}
.realm-ui-book-entry img,.realm-ui-talent img{width:38px;height:38px;flex:none;border:1px solid #bca06b;border-radius:3px}
.realm-ui-book-entry span{min-width:0}
.realm-ui-book-entry strong,.realm-ui-book-entry small{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.realm-ui-book-entry small{font-size:10px;color:#c8c2b5}
.realm-ui-talent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:7px}
.realm-ui-talent{position:relative;padding:8px;display:grid;justify-items:center;text-align:center;gap:4px;border:1px solid #8a7759;background:#22292c;border-radius:4px}
.realm-ui-talent[data-learned=true]{border-color:#d8b46b}
.realm-ui-talent strong{font-size:13px}
.realm-ui-talent p{font-size:11px;margin:0}
.realm-ui-talent small{color:#dfc586}
.realm-ui-move{position:absolute!important;z-index:30;top:0;left:0;background:#234e74!important;color:#fff!important;border:1px dashed #a4d5ff!important;font:600 11px system-ui!important;cursor:move;touch-action:none;padding:3px 6px!important;margin:0!important}
.realm-ui-edit .realm-hud-left,.realm-ui-edit .realm-hud-right,.realm-ui-edit .realm-hud-bottom,.realm-ui-edit .realm-drawer:not([hidden]){outline:1px dashed #9cd1ff;outline-offset:2px}
.realm-ui-edit{background-image:linear-gradient(#8bb4d315 1px,transparent 1px),linear-gradient(90deg,#8bb4d315 1px,transparent 1px);background-size:20px 20px}
.realm-ui-drag-header{cursor:move;touch-action:none}
.realm-stage.realm-ui2:not(.realm-compact) .realm-drawer:not(.realm-ui-window){bottom:auto;max-height:calc(100% - 8px)}
.realm-stage.realm-ui2 .realm-section-nav .realm-nav-buttons button{color:#e9d9bc;background:#32393a}
.realm-stage.realm-ui2 .realm-section-nav .realm-nav-buttons button[aria-pressed=true]{background:#6b583c;border-color:#d7b77b;color:#fff2ce}
@container(max-width:650px){.realm-ui-character-grid{grid-template-columns:1fr}.realm-ui-book-grid{grid-template-columns:1fr}}
.realm-stage.realm-ui2.realm-compact .realm-hud-bottom{width:100%;padding:4px;box-sizing:border-box;background:none}
.realm-stage.realm-ui2.realm-compact .realm-hud-bottom :is(#realm-spells,#realm-supplies){grid-template-columns:repeat(12,minmax(36px,1fr));overflow-x:auto;justify-content:start;scrollbar-width:thin;padding-bottom:2px}
.realm-stage.realm-ui2.realm-compact .realm-hud-bottom #realm-supplies:not([hidden]){display:grid}
.realm-stage.realm-ui2.realm-compact .realm-ui-slot{min-height:36px}
.realm-stage.realm-ui2.realm-compact .realm-ui-tools button{min-height:32px;font-size:12px}
.realm-stage.realm-ui2.realm-compact .realm-ui-micro button{min-height:32px;min-width:32px}
.realm-stage.realm-ui2.realm-compact .realm-ui-window{inset:0;max-height:none;height:100%;width:100%!important}
.realm-stage.realm-ui2.realm-compact .realm-ui-character-grid{grid-template-columns:1fr}
.realm-stage.realm-ui2.realm-compact .realm-ui-book-grid{grid-template-columns:1fr}
.realm-stage.realm-ui2.realm-compact .realm-ui-drag-header{cursor:auto;touch-action:auto}
.realm-stage.realm-ui2.realm-compact .realm-ui-tools button:nth-child(3){display:none}

/* Modal interactions always remain above movable windows. */
.realm-stage.realm-ui2 :is(#realm-dialogue,#realm-fishing,.realm-merchant-overlay){z-index:10000!important}
.realm-stage.realm-ui2 .realm-ui-window:focus-within{outline-color:#bba16d}

/* Higher specificity than the original text-button bar. */
.realm-stage.realm-ui2 .realm-hud-bottom :is(#realm-spells,#realm-supplies) .realm-ui-slot{background:#151c21;border-color:#b39a64;min-height:0;color:#fff4d2;padding:0!important}
.realm-stage.realm-ui2 .realm-hud-bottom :is(#realm-spells,#realm-supplies) .realm-ui-slot:hover{border-color:#ffe7b0}
.realm-stage.realm-ui2:not(.realm-compact) .realm-menu-fold{display:none}
.realm-stage.realm-ui2.realm-compact .realm-hud-bottom :is(#realm-spells,#realm-supplies) .realm-ui-slot{min-height:36px}
.realm-stage.realm-ui2.realm-compact #realm-stats .realm-bars{grid-template-columns:repeat(2,minmax(0,1fr))}
.realm-stage.realm-ui2 .realm-hud-bottom .realm-ui-micro button{min-width:27px}
.realm-stage.realm-ui2:not(.realm-compact) .realm-hud-right #realm-quest-tracker{max-height:150px}

/* UI 2.1: per-component desktop transformations, configuration and combat feedback. */
.realm-stage.realm-ui2 #realm-ui-customize{left:auto;right:12px;width:min(460px,85%);max-height:calc(100% - 24px)}
.realm-stage.realm-ui2 #realm-ui-customize .realm-ui-window-body{display:grid;gap:8px}
.realm-stage.realm-ui2 #realm-ui-customize label{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:13px}
.realm-ui-config-tabs{display:flex;gap:4px;flex-wrap:wrap}
.realm-ui-config-tabs button[aria-pressed=true]{outline:1px solid #eac78b;background:#665337!important}
.realm-ui-bindings{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.realm-ui-bindings label{padding:4px;background:#151c2077;border:1px solid #75694c55;border-radius:3px}
.realm-ui-bindings span{min-width:0;overflow-wrap:anywhere}
.realm-stage.realm-ui2 .realm-ui-bindings input{width:72px;flex:none;min-width:0;padding:4px;text-align:center;cursor:pointer}
.realm-stage.realm-ui2 #realm-ui-customize textarea{box-sizing:border-box;width:100%;resize:vertical;background:#11191d;color:#e8dfcb;border:1px solid #82745c;padding:8px;font:11px monospace}
.realm-ui-widget-overlay{position:absolute;inset:0;pointer-events:none;z-index:9000;overflow:hidden}
.realm-ui-widget-overlay[hidden],.realm-ui-widget-handle[hidden]{display:none!important}
.realm-ui-widget-overlay .realm-ui-widget-handle{position:absolute;pointer-events:auto;touch-action:none;cursor:move;margin:0;padding:3px 6px;font:600 10px system-ui;background:#254e73;color:#fff;border:1px dashed #b6dfff;box-shadow:0 1px 4px #0008;white-space:nowrap;border-radius:3px}
.realm-ui-edit .realm-ui-widget{outline:1px dashed #83bdff!important;outline-offset:1px}
.realm-stage.realm-ui2:not(.realm-compact).realm-ui-custom-widgets :is(.realm-hud-left,.realm-hud-right){overflow:visible}
.realm-stage.realm-ui2 .realm-ui-widget{transform-origin:top left}
.realm-stage.realm-ui2:not(.realm-compact) .realm-hud-bottom :is(#realm-spells,#realm-supplies).realm-ui-vertical{grid-template-columns:repeat(2,42px);width:max-content;justify-self:start}
.realm-stage.realm-ui2.realm-ui-edit #realm-target:empty{display:block;min-height:28px;background:#213e5880}
.realm-ui-buffs{display:flex;gap:4px;flex-wrap:wrap;min-height:30px}
.realm-ui-buff{position:relative;display:block;width:32px;height:32px;border:1px solid #b5a26b;border-radius:3px;overflow:hidden}
.realm-ui-buff[data-bad=true]{border-color:#d8706d}
.realm-ui-buff img{width:100%;height:100%;display:block}
.realm-ui-buff small{position:absolute;bottom:0;right:1px;color:white;font:bold 10px system-ui;text-shadow:0 1px 3px black}
.realm-ui-cast,.realm-ui-global{display:grid;gap:2px;background:#171f25d9;border:1px solid #8c7857;border-radius:3px;padding:3px 5px;color:#f6e4b8;font:11px system-ui}
.realm-ui-cast progress,.realm-ui-global progress{height:7px;width:100%;accent-color:#e3b260}
.realm-ui-global{position:relative;min-height:12px;padding:0}
.realm-ui-global progress{height:12px;accent-color:#a696cf}
.realm-ui-global span{position:absolute;inset:0;text-align:center;color:#fff;font:600 9px system-ui;text-shadow:0 1px 2px black}
.realm-ui-buffs[hidden],.realm-ui-cast[hidden],.realm-ui-global[hidden],.realm-ui-chronicle[hidden]{display:none!important}
.realm-ui-cooldown{position:absolute;inset:0;display:grid;place-items:center;background:#0008;color:#fff;font:bold 17px system-ui;text-shadow:0 1px 3px #000;pointer-events:none}
.realm-ui-cooldown[hidden]{display:none!important}
.realm-ui-chronicle{position:absolute;bottom:100px;left:8px;width:min(250px,34%);max-height:160px;overflow:auto;z-index:4;color:#e9ddc5;background:#12191de8;border:1px solid #8d7957;border-radius:4px;padding:6px;font:11px system-ui}
.realm-ui-chronicle header{display:flex;align-items:center;justify-content:space-between;color:#e7c88f}
.realm-ui-chronicle header button{font-size:12px;margin:0;padding:1px 5px}
.realm-ui-chronicle p{margin:4px 0;overflow-wrap:anywhere}
.realm-stage.realm-ui2.realm-compact #realm-ui-customize{inset:0;width:100%!important;height:100%;max-height:none}
.realm-stage.realm-ui2.realm-compact .realm-ui-bindings{grid-template-columns:1fr}
.realm-stage.realm-ui2.realm-compact .realm-ui-chronicle{bottom:125px;width:min(270px,85%)}
.realm-stage.realm-ui2.realm-compact .realm-ui-buffs,.realm-stage.realm-ui2.realm-compact .realm-ui-cast{grid-column:1/-1}

/* Spellbook and detailed spell inspection. */
.realm-stage.realm-ui2 #realm-ui-customize{z-index:9500!important}
.realm-ui-spell-tooltip{position:absolute;z-index:9800;pointer-events:none;width:max-content;max-width:min(260px,85%);box-sizing:border-box;padding:9px;background:linear-gradient(#242b30,#10161b);border:1px solid #b79b64;border-radius:4px;color:#f3dfb6;box-shadow:0 5px 16px #000b;font:12px system-ui}
.realm-ui-spell-tooltip[hidden]{display:none!important}
.realm-ui-spell-tooltip header{display:flex;gap:7px;align-items:center;margin-bottom:5px}
.realm-ui-spell-tooltip header img{width:28px;height:28px;border:1px solid #aa8e5d;border-radius:3px}
.realm-ui-spell-tooltip header strong{font-size:13px;color:#ffdfa4}
.realm-ui-spell-tooltip header kbd{font-size:10px;color:#c4cbd2}
.realm-ui-spell-tooltip p{margin:3px 0;color:#d9dcd9}
.realm-ui-spell-tooltip small{color:#e48c80}
.realm-ui-book-entry[data-usable=false] img{filter:saturate(.45) brightness(.65)}
.realm-ui-book-entry[data-picked=true]{outline:2px solid #f4d394}
.realm-ui-window-body>h3{margin:12px 0 5px}
.realm-stage.realm-ui2 .realm-hud-bottom .realm-ui-global{position:absolute;bottom:100%;left:0;right:0;pointer-events:none}

/* Server-confirmed individual action cooldown sweep. */
.realm-ui-slot[data-cooling=true] .realm-ui-cooldown{background:conic-gradient(#000b 0deg var(--cooldown-sweep,360deg),transparent var(--cooldown-sweep,360deg) 360deg);text-shadow:0 1px 4px #000,0 0 4px #000}
.realm-ui-slot[data-cooling=true]{border-color:#70634d!important}

/* One edit surface: avoid nested/group outlines and handles covering each other. */
.realm-stage.realm-ui2.realm-ui-edit{background-image:none}
.realm-ui-edit :is(.realm-hud-left,.realm-hud-right,.realm-hud-bottom,.realm-ui-widget){outline:none!important}
.realm-ui-widget-overlay .realm-ui-widget-handle{display:flex;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-width:0;min-height:0;overflow:hidden;border:1px solid #95c9f1;background:#1c527317;box-shadow:none;text-shadow:0 1px 3px #000;color:#e1f3ff;padding:3px 4px}
.realm-ui-widget-overlay .realm-ui-widget-handle:hover{border-color:#f4d9a0;background:#376fa340}
.realm-ui-widget-overlay .realm-ui-widget-handle[hidden]{display:none!important}
.realm-stage.realm-ui2:not(.realm-compact).realm-ui-edit :is(.realm-hud-left,.realm-hud-right){overflow:visible}
.realm-stage.realm-ui2 .realm-zoom-tools{position:relative;display:grid;grid-template-columns:auto minmax(44px,1fr) auto;gap:3px;align-items:center}
.realm-stage.realm-ui2 .realm-zoom-tools button{min-width:26px}
.realm-stage.realm-ui2 .realm-zoom-tools input{grid-column:1/-1;width:100%;margin:0;accent-color:#d3b57e}

/* Specialization trees: the server provides ranks, gates and bonuses. */
.realm-talent-header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ab966d80;margin-bottom:8px}
.realm-talent-header strong{color:#b9dca3;font-size:13px}
.realm-talent-trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:start;margin:8px 0 14px}
.realm-talent-tree{--tree-color:#a89066;min-width:0;padding:8px 5px;border:1px solid var(--tree-color);border-radius:5px;background:linear-gradient(150deg,#333335,#172022);text-align:center;box-shadow:inset 0 0 20px #0004}
.realm-talent-tree:is([data-branch="fire"],[data-branch="berserker"],[data-branch="judgment-tree"]){--tree-color:#cb8657;background:linear-gradient(150deg,#4e3029,#1b2023)}
.realm-talent-tree:is([data-branch="frost-tree"],[data-branch="guardian"],[data-branch="divine"]){--tree-color:#91b9d1;background:linear-gradient(150deg,#2a3e4d,#1b2023)}
.realm-talent-tree:is([data-branch="arcane-tree"],[data-branch="restoration"]){--tree-color:#b498d7;background:linear-gradient(150deg,#44344f,#1b2023)}
.realm-talent-tree:is([data-branch="survival"],[data-branch="beastmaster"],[data-branch="marksman-tree"]){--tree-color:#a9bf81;background:linear-gradient(150deg,#3b4930,#1b2023)}
.realm-talent-tree header h3{margin:1px 0 3px;color:var(--tree-color)!important;font:700 15px Georgia,serif}
.realm-talent-tree header small{font:600 10px system-ui;color:#e3d7bf}
.realm-talent-tree>p{min-height:2.5em;margin:6px 0 9px;font-size:11px;color:#c7c7bc}
.realm-talent-node{padding:7px 4px;gap:3px;min-width:0;overflow-wrap:anywhere;background:#151b20e6}
.realm-talent-node[data-locked=true]{border-color:#535b5d}
.realm-talent-node[data-locked=true] img{filter:grayscale(.8) brightness(.55)}
.realm-talent-node[data-capstone=true]{border-style:double;border-width:3px}
.realm-talent-node[data-learned=true]{border-color:#edc679}
.realm-talent-node>small{font-size:10px;color:#aaaeb1}
.realm-talent-node button{font-size:11px;max-width:100%;margin:2px 0 0}
.realm-talent-node button:disabled{opacity:.6}
.realm-talent-glyph{position:relative;width:42px;height:42px}
.realm-talent-glyph img{width:42px;height:42px;display:block}
.realm-talent-glyph small{position:absolute;right:0;bottom:0;padding:1px 3px;font:bold 10px system-ui;background:#101519ec;border-radius:2px;color:#f1d9a5}
.realm-talent-link{height:16px;width:2px;background:#647179;margin:0 auto;position:relative}
.realm-talent-link[data-unlocked=true]{background:#d4af6d}
.realm-talent-link::after{content:"";position:absolute;left:-3px;bottom:0;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid currentColor;color:#858e91}
.realm-talent-link[data-unlocked=true]::after{color:#d4af6d}
.realm-stage.realm-ui2.realm-compact .realm-talent-trees{grid-template-columns:1fr}
.realm-stage.realm-ui2.realm-compact .realm-talent-tree>p{min-height:0}

/* Component bounds are passive; only the label is a drag surface. */
.realm-ui-widget-frame{position:absolute;box-sizing:border-box;border:1px solid #95c9f1;background:#1c527310;pointer-events:none}
.realm-ui-widget-frame[hidden]{display:none!important}
.realm-ui-widget-frame .realm-ui-widget-handle{position:absolute;top:-19px;left:0;width:max-content;max-width:180px;height:18px;min-height:18px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#213f58;pointer-events:auto;padding:1px 5px;border:1px solid #95c9f1;line-height:14px}
.realm-ui-widget-frame[data-edge=true] .realm-ui-widget-handle{top:100%;bottom:auto}
.realm-stage.realm-ui2.realm-ui-edit .realm-drawer:not([hidden]){outline:1px solid #95c9f1}

.realm-camera-settings{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;flex:1 1 100%;padding:8px;border:1px solid #8b795d;border-radius:4px;background:#192228;color:#e9d8b5}
.realm-camera-settings>strong{flex:1 1 100%;color:#edcc8d}
.realm-camera-settings label{display:flex;align-items:center;gap:5px;font-size:12px;white-space:normal}
.realm-camera-settings input[type=checkbox]{accent-color:#bba16a}

/* Independent desktop HUD: groups remain only as semantic/selectorial containers. */
.realm-stage.realm-ui-independent:not(.realm-compact) :is(.realm-hud-left,.realm-hud-right,.realm-hud-bottom){position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;transform:none!important;translate:none!important;overflow:visible!important;pointer-events:none!important;background:none!important;padding:0!important;margin:0!important}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-ui-widget{position:absolute!important;box-sizing:border-box;transform-origin:top left;max-width:none!important;margin:0!important;pointer-events:auto;order:0!important;min-width:0}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-ui-widget[hidden]{display:none!important}
.realm-stage.realm-ui-independent:not(.realm-compact) #realm-target:empty{display:none!important}
.realm-stage.realm-ui-independent:not(.realm-compact) :is(#realm-autoplay,#realm-party-frames,#realm-target,.realm-fold-panel,.realm-ui-chronicle).realm-ui-widget{overflow:auto;scrollbar-width:thin}
.realm-stage.realm-ui-independent:not(.realm-compact) :is(#realm-spells,#realm-supplies).realm-ui-vertical{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:84px}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-minimap-box canvas{width:100%;height:auto}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-hud-bottom .realm-ui-global{position:absolute;right:auto;bottom:auto;height:5px;min-height:0;padding:0;border:0;background:none;pointer-events:none}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-ui-global progress{height:5px;display:block}
.realm-ui-global span{display:none!important}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-ui-tools{flex-wrap:nowrap}
.realm-stage.realm-ui-independent:not(.realm-compact) .realm-ui-edit-note{display:none}
.realm-ui-resize-handle{position:absolute!important;bottom:-4px;right:-4px;z-index:2;pointer-events:auto;touch-action:none;cursor:nwse-resize;min-width:17px!important;min-height:17px!important;width:17px;height:17px;padding:0!important;margin:0!important;border:1px solid #a8d6f6!important;border-radius:3px;background:#213f58!important;color:#fff!important;font:bold 11px/14px system-ui!important}
.realm-shell:has(#realm-play:not([hidden]))>#realm-status{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;margin:0!important;pointer-events:none!important}
.realm-stage #realm-map-status{display:none!important}
.realm-gamepad-settings{display:grid;gap:6px;flex:1 1 100%;padding:8px;border:1px solid #8b795d;border-radius:4px;background:#192228;color:#e9d8b5}
.realm-gamepad-settings small{color:#d4c6a8;line-height:1.45}
.realm-gamepad-settings label{display:flex;gap:6px;align-items:center}
.realm-stage[data-gamepad=connected] .realm-ui-slot[data-pad-focus=true]{outline:2px solid #92daff;outline-offset:2px}
.realm-stage[data-gamepad=connected] :focus-visible{outline:2px solid #92daff;outline-offset:2px}

.realm-downed-notice{position:absolute;z-index:8;left:50%;top:43%;transform:translate(-50%,-50%);display:grid;gap:9px;text-align:center;min-width:min(260px,80%);max-width:90%;padding:14px;background:#271f2aeb;color:#f4e3cf;border:1px solid #c29a85;box-shadow:0 5px 20px #000a;border-radius:7px;pointer-events:auto}
.realm-downed-notice[hidden]{display:none!important}.realm-downed-notice strong{color:#f1ba9c;font:700 20px Georgia,serif}.realm-downed-notice small{font:12px system-ui}.realm-downed-notice button{justify-self:center}

.realm-world-boss-hud{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:7;width:min(420px,57%);padding:6px 10px;border:1px solid #b58b58;border-radius:5px;background:#211d2bea;box-shadow:0 2px 12px #0008;text-align:center;display:grid;gap:3px;pointer-events:none;color:#f5d8a3}.realm-world-boss-hud[hidden]{display:none!important}.realm-world-boss-hud strong{font-size:13px;line-height:1.25}.realm-world-boss-hud progress{width:100%;height:12px;accent-color:#d37869}.realm-world-boss-hud small{font-size:10px;line-height:1.3;color:#e6d9be}.realm-world-boss-hud[data-phase="3"]{border-color:#ef9267}.realm-world-boss-hud[data-danger="true"]{border-color:#ff6e58;box-shadow:0 0 14px #ed675d65}.realm-world-boss-hud[data-danger="true"] small{color:#ffc2a9;font-weight:700}
@media(max-width:650px){.realm-world-boss-hud{top:3px;width:52%;padding:4px}.realm-world-boss-hud strong{font-size:10px}.realm-world-boss-hud small{font-size:9px}.realm-world-boss-hud progress{height:8px}}

/* Action rejection feedback must remain visible even with the Chronicle closed. */
.realm-ui-action-notice{position:absolute;z-index:20;left:50%;bottom:24%;transform:translateX(-50%);max-width:80%;padding:6px 10px;border:1px solid #b39a64;border-radius:4px;background:#17242aee;color:#ffdf9b;font:600 13px system-ui;text-align:center;pointer-events:none;box-sizing:border-box}
.realm-ui-action-notice[hidden]{display:none!important}
.realm-stage.realm-compact .realm-ui-action-notice{bottom:32%;max-width:85%}
