/* Shared HUD tokens use CSS pixels; map art remains in the scene renderer. */
.world-home{--hud-surface:#FAF8ED;--hud-text:#244C56;--hud-muted:#5C7373;--hud-border:#789387;--hud-line:#D9E0D2;--hud-hover:#EEF2E7;--hud-pressed:#DCE8DD;--hud-selected:#D7EAE0;--hud-accent:#397E80;--hud-focus:#2A7379}
/* Replacing overlay content must not move the document's scroll anchor. */
.hud-root{position:absolute;inset:0;z-index:5;pointer-events:none;color:var(--hud-text);font-size:14px;line-height:20px;overflow-anchor:none}
.hud-root button,.hud-root input,.hud-root select,.hud-account,.hud-entry,.hud-account-menu{font-size:14px;font-weight:400;color:var(--hud-text);line-height:20px}
.hud-root button,.hud-account,.hud-entry{min-height:44px;background:var(--hud-surface);border:1px solid var(--hud-line);border-radius:6px;padding:8px 12px}
.hud-root button:hover:not(:disabled),.hud-account:hover,.hud-entry:hover{background:var(--hud-hover);border-color:var(--hud-border)}
.hud-root button:active:not(:disabled){background:var(--hud-pressed)}
.hud-root :focus-visible,.hud-account:focus-visible,.hud-entry:focus-visible,.hud-account-menu :focus-visible{outline:2px solid var(--hud-focus);outline-offset:2px}
.hud-icon{width:24px;height:24px;display:block;flex-shrink:0;color:#496A6E}.hud-illustration{display:block;width:100%;height:auto;max-height:180px}
.hud-dock{position:absolute;right:24px;top:50%;transform:translateY(-50%);width:64px;height:220px;padding:8px;display:grid;grid-template-rows:repeat(4,48px);gap:4px;background:var(--hud-surface);border-radius:12px;box-shadow:0 3px 10px rgba(35,66,53,.10);pointer-events:auto}
.hud-dock:before{content:'';position:absolute;inset:0;border:1px solid var(--hud-border);border-radius:12px;pointer-events:none}
.hud-dock .hud-dock-button{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;min-height:48px;border:0;background:transparent;border-radius:8px}
.hud-dock .hud-dock-button:hover{background:transparent}.hud-dock-plate{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;transition:background 120ms,box-shadow 120ms;pointer-events:none}
.hud-dock-button:hover:not(:disabled) .hud-dock-plate{background:var(--hud-hover)}.hud-dock-button:active:not(:disabled) .hud-dock-plate{background:var(--hud-pressed);transform:translateY(1px)}
.hud-dock-button[aria-pressed=true] .hud-dock-plate{background:var(--hud-selected);box-shadow:inset 0 0 0 2px var(--hud-accent)}.hud-dock-button[aria-pressed=true]:after{content:'';position:absolute;right:0;top:14px;width:2px;height:20px;background:var(--hud-accent)}
.hud-window{position:absolute;z-index:2;right:100px;top:50%;transform:translateY(-50%);width:320px;max-height:calc(100% - 160px);display:flex;flex-direction:column;border:1px solid var(--hud-border);border-radius:12px;background:var(--hud-surface);box-shadow:0 6px 18px rgba(35,66,53,.12);pointer-events:auto;overflow:hidden}
.hud-window.is-wide{width:520px}.hud-window-header{height:44px;min-height:44px;display:flex;align-items:center;gap:8px;padding-left:12px;border-bottom:1px solid var(--hud-line)}.hud-window-header>span .hud-icon{width:20px;height:20px}.hud-window h2{margin:0;flex:1;min-width:0;font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.hud-window #hud-close{width:44px;height:44px;padding:14px;border:0;border-radius:0;background:transparent}.hud-window #hud-close .hud-icon{width:16px;height:16px;stroke-width:1.5}.hud-window #hud-close .hud-icon *{vector-effect:non-scaling-stroke}
.hud-window-body{padding:12px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}.hud-window p{margin:0 0 12px;line-height:20px;font-size:14px;overflow-wrap:anywhere}.hud-window h3{font-size:14px;font-weight:500;line-height:20px;letter-spacing:0;margin:12px 0 8px}.hud-window .hud-muted,.hud-source{color:var(--hud-muted)}.hud-demo-label{color:var(--hud-text);padding:8px;background:var(--hud-hover);border-left:2px solid var(--hud-accent)}
.hud-window .hud-link{display:flex;min-height:44px;align-items:center;color:var(--hud-accent);font-size:14px}.hud-window .hud-back{margin-bottom:12px}.hud-profile-identity{display:flex;gap:8px;align-items:center;min-height:48px;margin-bottom:12px}.hud-profile-identity .avatar{width:32px;height:32px}.hud-profile-identity strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}.hud-facts{display:grid;grid-template-columns:1fr 1fr;margin:0 0 12px;gap:0 12px}.hud-facts dt{font-size:14px;font-weight:500;padding-top:8px}.hud-facts dd{font-size:14px;margin:0;padding:4px 0 8px;border-bottom:1px solid var(--hud-line);overflow-wrap:anywhere}.hud-facts dt:nth-of-type(1){grid-column:1;grid-row:1}.hud-facts dd:nth-of-type(1){grid-column:1;grid-row:2}.hud-facts dt:nth-of-type(2){grid-column:2;grid-row:1}.hud-facts dd:nth-of-type(2){grid-column:2;grid-row:2}.hud-facts dt:nth-of-type(3){grid-column:1;grid-row:3}.hud-facts dd:nth-of-type(3){grid-column:1;grid-row:4}.hud-facts dt:nth-of-type(4){grid-column:2;grid-row:3}.hud-facts dd:nth-of-type(4){grid-column:2;grid-row:4}.hud-record{display:grid;grid-template-columns:56px 1fr;gap:8px;align-items:center;min-height:44px;border-bottom:1px solid var(--hud-line)}.hud-record time{font-variant-numeric:tabular-nums;color:var(--hud-muted)}
.hud-tooltip{position:absolute;right:auto;bottom:auto;width:64px;height:24px;text-align:center;padding:4px 8px;font-size:12px;line-height:16px;color:var(--hud-surface);background:var(--hud-text);border-radius:6px;pointer-events:none;z-index:8}
.hud-agent{position:absolute;left:24px;bottom:24px;width:184px;height:48px;padding:8px;display:flex;gap:8px;align-items:center;border:1px solid var(--hud-border);border-radius:12px;background:var(--hud-surface);box-shadow:0 3px 10px rgba(35,66,53,.10);pointer-events:auto}.hud-agent-picture{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center}.hud-agent-picture .avatar{width:32px;height:32px;border-radius:6px}.hud-agent-identity{position:relative;height:48px;min-width:0;flex:1;margin:-8px 0;display:block;font-weight:400}.hud-agent-identity>span{position:absolute;top:2px;left:4px;font-size:12px;line-height:16px;pointer-events:none}.hud-agent-identity select{height:48px;min-height:44px;padding:16px 16px 0 4px;border:0;background:transparent;border-radius:6px;white-space:nowrap;text-overflow:ellipsis;font-weight:500}.hud-agent-identity select:disabled{opacity:1;color:var(--hud-muted)}
.world-home header{z-index:6}.world-home .nav-wrap{background:transparent;border:0;height:64px}.world-home header nav{position:relative;gap:12px}.hud-account{display:flex;align-items:center;gap:8px;max-width:200px;min-width:44px;height:44px;box-shadow:0 3px 10px rgba(35,66,53,.10)}.hud-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud-account>.hud-icon{width:16px;height:16px}.hud-entry{display:flex!important;align-items:center;text-decoration:none;box-shadow:0 3px 10px rgba(35,66,53,.10)}.hud-account-menu{position:absolute;right:0;top:52px;width:224px;padding:12px;border:1px solid var(--hud-border);border-radius:12px;background:var(--hud-surface);box-shadow:0 6px 18px rgba(35,66,53,.12)}.hud-account-menu .hud-link{display:flex;align-items:center;min-height:44px}.hud-account-menu p{font-size:14px;line-height:20px;margin:8px 0}.hud-account-menu button{width:100%;margin-top:4px;font-size:14px}
.hud-columns{display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:12px;align-items:start}.hud-filters{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}.hud-filters button{flex:1;white-space:nowrap;padding:8px}.hud-filters button[aria-pressed=true]{background:var(--hud-selected);box-shadow:inset 0 0 0 1px var(--hud-accent);border-color:var(--hud-accent)}.hud-search,.hud-filter-label{font-weight:400;font-size:14px;margin:0 0 12px;gap:4px}.hud-search input,.hud-filter-label select{min-height:44px;font-size:14px;line-height:20px;border-color:var(--hud-line);background:var(--hud-surface)}.hud-filter-label{display:flex;align-items:center;flex-direction:row;justify-content:space-between}.hud-filter-label select{width:144px}
.hud-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 6px}.hud-items>button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent}.hud-items>button:hover{background:transparent}.hud-item-slot{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--hud-line);border-radius:8px;background:#F5F3E9}.hud-item-slot>.hud-illustration{width:28px;height:28px}.hud-items>button[aria-pressed=true] .hud-item-slot{background:var(--hud-selected);box-shadow:inset 0 0 0 2px var(--hud-accent)}.hud-item-name{min-height:40px;text-wrap:balance;font-size:14px;line-height:20px;font-weight:400;overflow-wrap:anywhere;width:100%}.hud-item-detail,.hud-mail-detail{border-left:1px solid var(--hud-line);padding-left:12px;min-width:0}.hud-item-detail>h3,.hud-mail-detail>h3{margin-top:0}.hud-item-detail>.hud-illustration{margin-bottom:12px}.hud-item-detail p,.hud-mail-detail p{margin-bottom:8px}.hud-item-detail button,.hud-mail-detail button{width:100%}.hud-feedback{padding:16px 0;color:var(--hud-muted)}
.hud-messages button{display:grid;grid-template-columns:16px minmax(0,1fr) 64px;gap:8px;align-items:center;text-align:left;width:100%;min-height:56px;padding:8px 0;border:0;border-bottom:1px solid var(--hud-line);border-radius:0;background:transparent}.hud-messages button>.hud-icon{width:16px;height:16px;stroke-width:1.5}.hud-messages button>.hud-icon *{vector-effect:non-scaling-stroke}.hud-messages button>span{min-width:0}.hud-messages button span span,.hud-messages button strong{display:block;font-weight:400;overflow-wrap:anywhere}.hud-messages button strong{font-weight:500}.hud-messages button time{font-size:12px;line-height:16px;color:var(--hud-muted);font-variant-numeric:tabular-nums;text-align:right;padding-right:12px;white-space:nowrap}.hud-messages button[aria-pressed=true]{background:var(--hud-selected);box-shadow:inset 2px 0 var(--hud-accent)}
.hud-window .world-controls{position:static;transform:none;width:100%;max-width:none;background:transparent;box-shadow:none;border:0;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:0}.hud-world-row{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:8px;border-bottom:1px solid var(--hud-line)}.hud-world-row>span{flex-shrink:0}.hud-window .world-controls button{min-height:44px;min-width:44px;font-size:14px;padding:6px 8px;background:transparent;border:1px solid var(--hud-line)}.hud-window .world-zoom-controls{gap:0;min-width:0;margin:0}.hud-window .world-zoom-controls output{width:44px}.hud-world-actions{display:flex;align-items:center;gap:4px}.hud-world-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px}.hud-window .world-controls a{font-size:14px;min-height:44px;display:flex;align-items:center;padding:0;color:var(--hud-accent)}.hud-explore-exit{position:absolute;right:24px;bottom:24px;pointer-events:auto;box-shadow:0 3px 10px rgba(35,66,53,.10)}.world-map-notes #world-gesture-hint{display:none}.world-detail{z-index:5}
.hud-root.is-compact.is-open .hud-dock{visibility:hidden;pointer-events:none}.hud-root.is-compact .hud-window{left:12px;right:12px;width:auto;top:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:none;max-height:calc(45% - 12px);}.hud-root.is-compact .hud-window-body{scrollbar-gutter:auto}.hud-root.is-compact .hud-columns{display:block}.hud-root.is-compact .hud-item-detail,.hud-root.is-compact .hud-mail-detail{border-left:0;padding-left:0}.hud-root.is-compact .hud-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px}.hud-root.is-compact .hud-messages button{min-height:56px}.hud-root.is-compact .hud-item-detail>.hud-illustration{max-height:132px}
@media(max-width:759px){.world-home .nav-wrap{height:56px;padding:0 12px}.world-home .brand{font-size:16px;gap:6px}.world-home .brand-mark{width:24px;height:24px;font-size:23px}.world-home header nav{gap:8px}.hud-account{max-width:96px;padding:8px 6px;gap:4px}.hud-account>.hud-icon:last-child{display:none}.hud-account span{max-width:52px}.world-home .hud-entry{font-size:14px;padding:8px}.hud-dock{right:12px}.hud-tooltip{right:12px}.hud-agent{left:12px;bottom:max(12px,env(safe-area-inset-bottom))}.hud-explore-exit{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-height:480px){.hud-window{max-height:calc(100% - 88px)}.hud-agent{bottom:8px}.hud-root.is-compact .hud-window{max-height:65%;bottom:8px}}
/* An exiting shell remains visible but never blocks the world or a new host. */
[data-panel-state=closing],[data-panel-state=closing] *{pointer-events:none!important}
@media(min-width:760px){
  .hud-dock{left:50%;right:auto;top:auto;bottom:24px;transform:translateX(-50%);width:240px;height:72px;padding:12px;grid-template-columns:repeat(4,48px);grid-template-rows:48px;gap:8px}
  .hud-dock-plate{transition:transform 100ms cubic-bezier(.2,.8,.2,1),background 100ms cubic-bezier(.2,.8,.2,1),box-shadow 160ms cubic-bezier(.2,.8,.2,1)}
  .hud-dock-button:is(:hover,:focus-visible):not(:disabled) .hud-dock-plate{background:var(--hud-hover);transform:translateY(-2px) scale(1.04);transition-duration:120ms}
  .hud-dock .hud-dock-button:active:not(:disabled){background:transparent}
  .hud-dock-button:active:not(:disabled) .hud-dock-plate{background:var(--hud-pressed);transform:scale(.96);transition-duration:80ms}
  .hud-dock-button[aria-pressed=true] .hud-dock-plate{background:var(--hud-selected);box-shadow:none;transition-duration:160ms}
  .hud-dock-button:after{content:'';position:absolute;left:14px;right:auto;top:auto;bottom:0;width:20px;height:2px;background:var(--hud-accent);opacity:0;transform:scaleX(.5);transition:opacity 160ms cubic-bezier(.2,.8,.2,1),transform 160ms cubic-bezier(.2,.8,.2,1);pointer-events:none}
  .hud-dock-button[aria-pressed=true]:after{left:14px;right:auto;top:auto;bottom:0;width:20px;height:2px;opacity:1;transform:scaleX(1)}
  .hud-root .hud-window,.hud-root .hud-window.is-account,.world-home .world-detail{left:50%;right:auto;top:var(--world-panel-center-y,45%);bottom:auto;translate:-50% -50%;transform:none;transform-origin:center;max-width:var(--world-panel-width,calc(100% - 48px));max-height:min(760px,var(--world-panel-height,calc(100% - 224px)));height:max-content;margin:0}
  .world-home .world-detail{display:flex;flex-direction:column;padding:0;overflow:hidden;animation:none}
  .world-detail .world-detail-top{flex-shrink:0;min-height:44px;margin:0;padding:0 0 0 16px;border-bottom:1px solid var(--hud-line);align-items:center}
  .world-detail-top>div{min-width:0;padding:6px 0}.world-detail-top span{font-size:12px;line-height:16px;color:var(--hud-muted)}
  .world-detail .world-detail-top h2{font-size:16px;line-height:24px;margin:0;color:var(--hud-text)}
  .world-detail .world-detail-top button{flex:0 0 44px;width:44px;height:44px;padding:0;align-self:start}
  .world-detail .world-detail-top button span{font-size:20px;color:var(--hud-text)}
  .world-detail-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:12px 16px 16px;scrollbar-gutter:stable}
  .world-detail-body>p{font-size:14px;line-height:20px;color:var(--hud-muted);margin:0 0 12px}.world-detail-body .world-detail-note{padding-top:12px}
}
@media(prefers-reduced-motion:reduce){.hud-dock-plate,.hud-dock-button:after{transition:none!important}}

/* WS07 v0.4: example browsing stays separate from the live world and account. */
.hud-data-feature{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;overflow:hidden}
.hud-data-feature>.hud-feature,.hud-data-feature>.hud-platform-content{flex:1;min-height:0}
.hud-platform-content{min-width:0}
.hud-inventory-context{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px;flex-shrink:0}.hud-inventory-context>p{margin:0}
.hud-wallet-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--hud-muted)}.hud-root .hud-wallet-retry{padding:4px 8px;min-height:44px;border:0;background:transparent}
.hud-content-switch{flex-shrink:0;padding-top:8px;margin-top:8px;border-top:1px solid var(--hud-line)}
.hud-content-switch button{min-height:44px}
.hud-data-badge{display:inline-block;font-size:12px;line-height:18px;color:var(--hud-muted);overflow-wrap:anywhere}
.hud-platform-content .hud-item-slot>.hud-icon{width:32px;height:32px}
.hud-platform-content .hud-item-detail .hud-message-body,.hud-platform-body .hud-message-body{white-space:pre-wrap}
.hud-platform-content .hud-items>button{gap:4px}
.hud-platform-message-row{grid-template-columns:minmax(0,1fr) 88px 176px}
.hud-platform-message-row time{white-space:normal}
.hud-page-state{padding:12px 0}
.hud-page-state p{margin-bottom:8px}
.hud-related-content{display:flex;gap:8px;flex-wrap:wrap}.hud-related-content h3{flex-basis:100%}
.hud-detail-window{z-index:4;width:680px}
.hud-detail-window .hud-window-header{padding-left:20px}
.hud-detail-window .hud-window-header h2{font-size:18px;line-height:26px}
.hud-detail-window .hud-window-header button{width:44px;height:44px;padding:10px;border:0;border-radius:0;background:transparent;flex:0 0 44px}
.hud-detail-window .hud-window-body{padding:20px;overflow:auto;min-height:0}
.hud-detail-window .hud-message-body{white-space:pre-wrap}
.hud-detail-window .hud-illustration{max-height:240px}
.hud-inventory,.hud-mail{display:flex;flex-direction:column;gap:0;min-height:0;height:100%;overflow:hidden}
.hud-inventory-layout{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:24px;flex:1;min-height:0}
.hud-inventory-browser{display:flex;flex-direction:column;min-width:0;min-height:0}
.hud-inventory .hud-filters{flex-shrink:0;margin-bottom:12px;gap:8px}
.hud-inventory .hud-filters button{flex:0 0 auto;min-width:88px}
.hud-inventory .hud-search{flex-shrink:0;margin-bottom:16px}
.hud-inventory-grid-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 4px 0;scrollbar-gutter:stable}
.hud-inventory .hud-items{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.hud-inventory .hud-items>button{position:relative;gap:8px;border:0;padding:0;min-width:0;align-self:start}
.hud-inventory .hud-item-slot{width:64px;height:64px;flex:0 0 64px}
.hud-inventory .hud-item-slot>.hud-illustration{width:40px;height:40px;max-width:40px;max-height:40px}
.hud-inventory .hud-item-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:20px;height:40px;min-height:40px;text-wrap:balance;overflow-wrap:anywhere}
.hud-item-full-name{display:none;position:absolute;z-index:2;top:68px;left:50%;translate:-50% 0;max-width:180px;width:max-content;padding:4px 8px;border:1px solid var(--hud-border);background:var(--hud-surface);font-size:14px;line-height:20px;border-radius:6px;pointer-events:none}
.hud-items>button:is(:hover,:focus-visible) .hud-item-full-name{display:block}
.hud-inventory .hud-item-detail{border-left:1px solid var(--hud-line);padding-left:20px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.hud-inventory .hud-item-detail>.hud-illustration{max-height:180px;flex-shrink:0}
.hud-inventory:has(>.hud-back){overflow:auto;overscroll-behavior:contain}
.hud-inventory:has(>.hud-back)>.hud-illustration{min-height:140px;flex-shrink:0}
.hud-mail .hud-filters{gap:8px;flex-shrink:0;margin-bottom:12px}
.hud-mail .hud-filters button{flex:0 0 auto;min-width:120px}
.hud-mail-filters{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0;margin-bottom:12px}
.hud-mail-filters button[aria-pressed=true]{background:var(--hud-selected);border-color:var(--hud-accent)}
.hud-window .hud-list-heading{flex-shrink:0;margin:0 0 8px}
.hud-mail-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.hud-message-row{display:grid;grid-template-columns:minmax(0,1fr) 40px 88px 44px 44px;gap:12px;align-items:center;min-height:72px;padding:8px 16px;border-bottom:1px solid var(--hud-line)}
.hud-message-open{display:flex;align-items:center;gap:12px;min-width:0;min-height:56px;border:0!important;background:transparent!important;padding:0!important;text-align:left}
.hud-message-open>.hud-icon{width:20px;height:20px;flex:0 0 20px}
.hud-message-summary{min-width:0;display:flex;flex-direction:column;gap:2px}
.hud-message-summary strong{font-size:14px;line-height:20px;font-weight:400;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.hud-message-summary>.hud-muted{font-size:12px;line-height:18px}
.hud-message-row[data-read=false] .hud-message-summary strong{font-weight:650}
.hud-message-read,.hud-message-row time{font-size:12px;line-height:18px;color:var(--hud-muted);white-space:nowrap}
.hud-message-row time{text-align:right;font-variant-numeric:tabular-nums}
.hud-message-read{display:flex;align-items:center;gap:4px}
.hud-message-row[data-read=false] .hud-message-read:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--hud-accent)}
.hud-root .hud-mail-row-action{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;background:transparent}
.hud-mail-row-action .hud-icon{width:20px;height:20px}
.hud-row-action-label{display:none;position:absolute;z-index:3;right:0;top:44px;white-space:nowrap;padding:4px 8px;color:var(--hud-surface);background:var(--hud-text);font-size:12px;line-height:18px;border-radius:6px;pointer-events:none}
.hud-mail-row-action:is(:hover,:focus-visible) .hud-row-action-label{display:block}
.hud-mail-feedback-slot{flex-shrink:0;min-height:44px;margin-top:12px}
.hud-mail-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 8px 0 12px;border:1px solid var(--hud-border);border-radius:8px;background:var(--hud-surface);font-size:14px;line-height:20px;pointer-events:auto}
.hud-mail-feedback button{flex:0 0 auto;border:0;color:var(--hud-accent);padding:8px}
.hud-floating-feedback{position:absolute;left:calc(50% + 136px);bottom:60px;transform:translateY(50%);width:min(360px,calc(50% - 160px));z-index:3;pointer-events:none}
.hud-root .world-controls.hud-map-tools{position:absolute;left:auto;right:24px;top:var(--world-panel-top,88px);bottom:auto;transform:none;width:360px;height:56px;max-width:calc(100% - 48px);display:flex;align-items:center;gap:4px;padding:6px;border:1px solid var(--hud-border);border-radius:10px;background:var(--hud-surface);box-shadow:0 3px 10px rgba(35,66,53,.10);pointer-events:auto;z-index:1}
.hud-map-tools .world-zoom-controls{flex:1;justify-content:space-between;margin:0}
.hud-root .hud-map-tools button,.hud-root .hud-map-tools a{min-height:44px;min-width:44px;padding:8px;border:0;font-size:14px;background:transparent;white-space:nowrap}
.hud-map-tools .world-zoom-controls output{width:44px;text-align:center}
.hud-map-menu{position:absolute;right:0;top:62px;display:flex;flex-direction:column;width:208px;padding:6px;border:1px solid var(--hud-border);border-radius:10px;background:var(--hud-surface);box-shadow:0 3px 10px rgba(35,66,53,.10)}
.hud-map-menu button,.hud-map-menu a{text-align:left;text-decoration:none;display:flex;align-items:center}
@media(min-width:760px){
  .hud-root .hud-window[data-feature=inventory]{width:960px}
  .hud-root .hud-window[data-feature=mail]{width:880px}
  .hud-root .hud-window:is([data-feature=inventory],[data-feature=mail]){height:min(676px,var(--world-panel-height,676px));max-height:min(676px,var(--world-panel-height,676px))}
  .hud-window:is([data-feature=inventory],[data-feature=mail])>.hud-window-header,.hud-detail-window>.hud-window-header{height:54px;min-height:54px;padding-left:20px}
  .hud-window:is([data-feature=inventory],[data-feature=mail]) .hud-window-header h2{font-size:18px;line-height:26px}
  .hud-window:is([data-feature=inventory],[data-feature=mail])>.hud-window-body{display:flex;flex:1;flex-direction:column;overflow:hidden;padding:20px;min-height:0}
  .hud-root .hud-detail-window{height:min(620px,var(--world-panel-height,620px));max-height:min(620px,var(--world-panel-height,620px))}
  .hud-detail-window>.hud-window-body{flex:1}
}
