/* Restricted to the opt-in admin inspector and approved UI phrases. */
.vtw-selected{outline:3px solid var(--vb-color-accent,#ef4444)!important;outline-offset:4px!important;box-shadow:0 0 0 6px color-mix(in srgb,var(--vb-color-accent,#ef4444) 10%,transparent)!important;}
.vtw-editor-toolbar{position:fixed;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);z-index:2147483500;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;max-width:calc(100vw - 20px);padding:8px 14px;background:#1d1d27;border:1px solid var(--vb-color-accent,#ef4444);border-radius:16px;color:white!important;box-shadow:0 5px 24px #0008;font:14px/1.4 system-ui,sans-serif;}
.vtw-editor-toolbar strong{color:var(--vb-color-accent-text,#fca5a5);}.vtw-editor-toolbar span{white-space:normal}.vtw-editor-toolbar button,.vtw-editor-panel button{font:inherit;border:1px solid #95516b;border-radius:10px;background:#3a2431;color:#fff;padding:9px 13px;cursor:pointer}
.vtw-editor-toolbar button:hover,.vtw-editor-panel button:hover{background:#613247}
.vtw-editor-panel[hidden]{display:none!important}.vtw-editor-panel{position:fixed;z-index:2147483501;right:clamp(10px,3vw,28px);bottom:max(14px,env(safe-area-inset-bottom));width:min(470px,calc(100vw - 20px));max-height:calc(100dvh - 92px);overflow:auto;box-sizing:border-box;background:#191921!important;border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:18px;padding:22px;color:#f6f2f5!important;box-shadow:0 18px 56px #000a;font:15px/1.55 system-ui,sans-serif;text-align:left;}
.vtw-editor-panel h2{font:bold 21px/1.3 system-ui,sans-serif;color:#fff;margin:0 0 15px}.vtw-editor-panel label{display:block!important;font:600 13px/1.4 system-ui,sans-serif;margin:12px 0 5px;color:var(--vb-color-accent-text,#fca5a5);}.vtw-original{padding:10px 12px;background:#292730;border-radius:8px;overflow-wrap:anywhere}.vtw-editor-panel input{display:block;width:100%;height:44px;box-sizing:border-box;min-width:0;border:1px solid #94556a!important;border-radius:9px;background:#101014!important;color:white!important;padding:8px 11px;font:16px/1.3 system-ui,sans-serif}.vtw-editor-panel .vtw-editor-status{margin:12px 0;color:#f5cbd7!important;font-size:13px;white-space:normal}.vtw-editor-actions{display:flex;gap:7px;flex-wrap:wrap}.vtw-editor-panel .vtw-primary{background:var(--vb-color-accent,#ef4444);color:white;}.vtw-editor-panel a{display:inline-block;color:#ffd4dd!important;margin-top:10px;text-decoration:underline}
@media(max-width:600px){.vtw-editor-toolbar{top:calc(6px + env(safe-area-inset-top));width:calc(100vw - 16px);box-sizing:border-box;gap:6px;font-size:12px}.vtw-editor-toolbar span{display:none}.vtw-editor-panel{bottom:max(8px,env(safe-area-inset-bottom));right:8px;width:calc(100vw - 16px);padding:15px;max-height:65dvh}.vtw-editor-panel h2{font-size:18px}.vtw-editor-panel button{padding:11px 12px;flex:1 1 auto}}
/* Keep the site navigation free while choosing its labels. */
@media(min-width:601px){.vtw-editor-toolbar{top:auto;bottom:14px;left:14px;transform:none}}
@media(max-width:600px){.vtw-editor-toolbar{top:auto;bottom:calc(6px + env(safe-area-inset-bottom));left:8px;transform:none}.vtw-editor-panel{bottom:calc(80px + env(safe-area-inset-bottom));max-height:calc(100dvh - 135px)}}
/* A permanent admin-only launcher; the editor itself is activated without navigation. */
.vtw-tools{position:fixed;z-index:2147483498;right:max(6px,env(safe-area-inset-right));top:45%;font:13px/1.4 system-ui,sans-serif;display:flex;align-items:flex-end;flex-direction:column;gap:6px}
.vtw-tools-button{border:1px solid var(--vb-color-accent,#ef4444)!important;border-radius:14px 0 0 14px!important;padding:12px 13px!important;background:#381e2b!important;color:#fff!important;box-shadow:0 4px 20px #0009;cursor:pointer;font:600 14px/1.2 system-ui,sans-serif!important;}
.vtw-tools-button.is-active{background:var(--vb-color-accent,#ef4444)!important;}
.vtw-tools-menu[hidden],.vtw-editor-toolbar[hidden]{display:none!important}
.vtw-tools-menu{background:#1a1a21;border:1px solid var(--vb-color-accent,#ef4444);border-radius:12px;padding:8px;min-width:215px;max-width:calc(100vw - 42px);box-shadow:0 12px 32px #000b;display:flex;flex-direction:column;gap:5px;}
.vtw-tools-menu a,.vtw-tools-menu button{display:block!important;text-align:left!important;width:100%;box-sizing:border-box;border:0!important;border-radius:8px!important;padding:10px 12px!important;background:#2b252d!important;color:#fff!important;cursor:pointer;text-decoration:none!important;font:500 14px/1.35 system-ui,sans-serif!important}
.vtw-tools-menu a:hover,.vtw-tools-menu button:hover{background:#623146!important}
@media(max-width:600px){.vtw-tools{top:calc(70px + env(safe-area-inset-top));right:max(4px,env(safe-area-inset-right))}.vtw-tools-button{padding:9px 10px!important;font-size:12px!important}.vtw-tools-menu{min-width:192px}}

/* Shared edge: Tools above the vertical Beta tab, menu opens inward. */
.vtw-tools{top:calc(40dvh - 102px);right:env(safe-area-inset-right,0px);gap:0}
.vtw-tools .vtw-tools-button{writing-mode:vertical-rl;width:38px;height:90px;box-sizing:border-box;padding:12px 10px!important;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.vtw-tools-menu{position:absolute;right:calc(100% + 10px);top:0;max-height:65dvh;overflow:auto}
@media(max-width:650px){.vtw-tools{top:calc(28dvh - 98px);right:env(safe-area-inset-right,0px)}.vtw-tools .vtw-tools-button{width:34px;height:86px;padding:11px 8px!important;font-size:11px!important}.vtw-tools-menu{right:calc(100% + 7px);min-width:190px;max-width:calc(100vw - 55px)}}
