#integrated-preview-banner{position:fixed;inset:0 0 auto;z-index:20000;display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#24483e;color:#f6f5de;padding:8px 12px;font:12px system-ui;border-bottom:1px solid #b6c293}#integrated-preview-banner span{color:#d2deca}#integrated-preview-banner button,#developer-tools-toggle{border:1px solid #9aae89;border-radius:6px;padding:6px 9px;background:#f2f4e5;color:#2d473c;font:12px system-ui;cursor:pointer}#developer-tools-toggle{position:fixed;right:16px;top:60px;z-index:19000}#developer-tools-dialog{width:min(560px,90vw);max-height:80vh;background:#f7f8ed;color:#28473b;border:1px solid #8ca47e;border-radius:14px;font:14px system-ui;padding:22px;z-index:21000}#developer-tools-dialog::backdrop{background:#10251d80}#developer-tools-dialog header{display:flex;justify-content:space-between;align-items:center}#developer-tools-dialog h2{font-size:21px;margin:4px 0 10px}#developer-tools-dialog h3{font-size:17px}#developer-tools-dialog label{display:block;margin:12px 0}#developer-tools-dialog input,#developer-tools-dialog textarea,#developer-tools-dialog select{display:block;width:100%;font:inherit;padding:8px;margin-top:6px;border:1px solid #b3c5a6;border-radius:6px;background:white;color:#28473b}#developer-tools-dialog textarea{height:70px;resize:vertical}#developer-tools-dialog button,#design-placement-hud button{border:1px solid #829b72;border-radius:6px;padding:8px 12px;background:white;color:#28473b;font:inherit;font-size:13px;cursor:pointer;margin:5px 5px 5px 0}#developer-tools-dialog button:disabled,#design-placement-hud button:disabled{opacity:.45;cursor:default}#developer-tools-dialog .design-note{font-size:12px;color:#64705b;line-height:1.5}#developer-tools-dialog .design-draft{border-top:1px solid #d3ddc6;padding:10px 0}#developer-tools-dialog .design-draft strong{display:block}#developer-tools-dialog pre{font:11px monospace;white-space:pre-wrap;word-break:break-word;background:#e8eddf;padding:10px}#design-placement-hud{position:fixed;left:16px;top:70px;z-index:19000;width:min(360px,calc(100vw - 32px));padding:16px;background:#f7f8edf2;color:#28473b;border:1px solid #97ab84;border-radius:12px;font:14px system-ui;box-shadow:0 8px 30px #10251d30}#design-placement-hud p{margin:8px 0;line-height:1.4}#design-placement-hud [data-valid=false]{color:#9a4e33}[hidden]{display:none!important}@media(max-width:700px){#integrated-preview-banner span{display:none}#developer-tools-toggle{top:85px}#design-placement-hud{top:120px;width:280px}}

.owner-password-dialog{width:min(28rem,calc(100vw - 3rem));border:0;border-radius:18px;background:#f6f7ee;color:#25382e;padding:26px;box-shadow:0 16px 64px #0005;font:15px/1.5 system-ui,sans-serif}.owner-password-dialog::backdrop{background:#15281b77}.owner-password-dialog h2{margin:0 0 8px;font-size:23px}.owner-password-dialog p{margin:0 0 20px;color:#536256}.owner-password-dialog label{display:block;margin:14px 0;font-weight:600}.owner-password-dialog input{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid #bdc8ba;border-radius:8px;background:#fff;font:inherit}.owner-password-dialog button{padding:9px 14px;margin:8px 8px 0 0;border:1px solid #bdc8ba;border-radius:8px;font:inherit}.owner-password-dialog :disabled{opacity:.55;cursor:not-allowed}.owner-password-dialog output{display:block;color:#81492e}

.existing-npc-card{border:1px solid #bac7b7;border-radius:12px;padding:16px;margin:16px 0}.existing-npc-card h4{margin:0 0 8px;font-size:18px}.npc-role-multiselect{width:100%;display:block}.npc-role-chips,.npc-role-options{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.npc-role-multiselect input{box-sizing:border-box;width:100%;padding:9px;border:1px solid #bac7b7;border-radius:8px}.npc-role-chips button{background:#dce9d8;border-radius:16px;padding:5px 10px}.npc-role-options button{padding:5px 10px}.npc-role-options span{color:#657361;font-size:13px}

#owner-unlock-toggle{position:fixed;right:16px;top:18px;z-index:19000;border:1px solid #829b72;border-radius:8px;padding:8px 12px;background:#f7f8ed;color:#28473b;font:13px system-ui;cursor:pointer}

/* Owner controls share the existing toolbar's layout and visual treatment. */
.multiplayer-bar:has(#owner-toolbar-actions){max-width:calc(100vw - 288px - var(--ui-right-reserve,0px));align-items:flex-start}
#owner-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-width:0}
#owner-toolbar-actions #host-controls{display:contents}
#owner-toolbar-actions button{flex:0 0 auto;min-width:0;height:44px;min-height:44px;padding:8px 13px;white-space:nowrap}
#owner-toolbar-actions :is(#owner-unlock-toggle,#developer-tools-toggle){position:static;inset:auto;z-index:auto;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-paper);color:var(--ui-text);box-shadow:0 3px 12px #4b494114;font:13px Inter,"Segoe UI",system-ui,sans-serif;cursor:pointer}
@media(max-width:900px),(pointer:coarse){
  .multiplayer-bar:has(#owner-toolbar-actions){max-width:calc(100vw - 24px)}
  #owner-toolbar-actions{width:100%;justify-content:flex-start;gap:6px}
  #owner-toolbar-actions button{flex:0 0 auto;padding:8px 12px}
  body:has(#owner-toolbar-actions) .performance-stats{top:calc(var(--owner-toolbar-bottom,132px) + 12px)!important}
}

/* Approved Compact Tabs, using the Admin Tools cream/green style. */
#developer-tools-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;background:#f5f3e8;border:1px solid #bdc5ac;border-radius:16px;box-shadow:0 12px 48px #17251b44}#developer-tools-dialog header{padding:14px 18px;border-bottom:1px solid #d5d9c7}#developer-tools-dialog h2{margin:0;font-size:20px}#developer-tools-dialog header button{margin:0;background:#e4e9d9}.developer-tabs{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid #d5d9c7;overflow:auto}#developer-tools-dialog .developer-tabs button{margin:0;white-space:nowrap;min-height:44px;background:transparent;border:0}#developer-tools-dialog .developer-tabs [aria-selected=true]{background:#345745;color:#fff;border-radius:8px}#developer-tab-panel{padding:16px;max-height:calc(100dvh - 175px);overflow:auto}#developer-tools-dialog .existing-npc-card{margin:8px 0;padding:12px;border-radius:8px;background:#fbfaf3}#developer-tools-dialog button{min-height:40px}#developer-tools-dialog button:focus-visible,#developer-tools-dialog summary:focus-visible{outline:3px solid #bb9b53;outline-offset:2px}.developer-player-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,.6fr) 44px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #d5d9c7}.developer-player-row>strong{overflow-wrap:anywhere;font-size:14px}.developer-player-area{font-size:13px;color:#58664f;overflow-wrap:anywhere}.developer-player-controls summary{cursor:pointer;min-width:40px;min-height:40px;display:grid;place-items:center;border:1px solid #aab99b;border-radius:8px;list-style:none}.developer-player-menu{padding:8px;background:#ecefdf;border:1px solid #bac7b0;border-radius:8px}.developer-player-controls:has(details[open]){grid-column:1/-1}.developer-player-menu label{font-size:12px}.developer-player-menu button{min-height:40px}@media(max-width:500px){#developer-tools-dialog header{padding:10px 12px}#developer-tools-dialog h2{font-size:18px}.developer-tabs{flex-wrap:wrap}.developer-tabs button{flex:1 0 40%;font-size:12px!important}#developer-tab-panel{padding:10px;max-height:calc(100dvh - 225px)}.developer-player-row{gap:6px;grid-template-columns:minmax(0,1fr) 90px 40px}}
