/* TOOLBAR_ICONS_V1: native actions keep their handlers and accessible labels. */
:root{--minis-tool-size:44px;--minis-tool-gap:10px;--minis-hero-height:clamp(164px,19vw,265px);--minis-tools-top:calc(var(--minis-hero-height) + clamp(12px,2.2vw,28px) + clamp(12px,1.5vw,20px) + 11px)}
.minis-background-switch{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 var(--minis-tool-size);width:var(--minis-tool-size);min-width:var(--minis-tool-size);height:44px;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer;vertical-align:middle;touch-action:manipulation}
.minis-background-switch:hover{color:#87edce}
.minis-background-switch:focus-visible{outline:2px solid #a3e6d1;outline-offset:3px}
.minis-background-switch:disabled{opacity:.55;cursor:wait}
.minis-background-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Flatten only layout wrappers, not the native language select or theme buttons. */
body[data-minis-admin] #admin-content .terminal-header-controls{display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-end;gap:var(--minis-tool-gap);max-width:100%}
body[data-minis-admin] #admin-content .terminal-header-controls :is(.theme-toggle-wrapper,.theme-toggle){display:contents!important}
body[data-minis-admin] #admin-content .terminal-header-controls :is(.theme-btn,.admin-link-header,.minis-background-switch,.minis-page-link,.lang-select-wrapper){box-sizing:border-box!important;display:inline-flex!important;position:relative;align-items:center;justify-content:center;flex:0 0 var(--minis-tool-size)!important;width:var(--minis-tool-size)!important;min-width:var(--minis-tool-size)!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:5px;background:transparent!important;color:#f7f9ff!important;text-shadow:0 1px 2px #000!important;box-shadow:none!important}
body[data-minis-admin] #admin-content .terminal-header-controls .theme-btn.active{color:#87edce!important;box-shadow:inset 0 -2px 0 currentColor!important}
body[data-minis-admin] #admin-content .terminal-header-controls .lang-select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;padding:0!important;margin:0!important;opacity:0!important;cursor:pointer;z-index:1}
body[data-minis-admin] #admin-content .terminal-header-controls .lang-select-icon{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);pointer-events:none}
body[data-minis-admin] #admin-content .terminal-header-controls .lang-select-chevron{display:none!important}
body[data-minis-admin] #admin-content .terminal-header-controls .lang-select-wrapper:focus-within{outline:2px solid #a3e6d1;outline-offset:3px}
body[data-minis-admin] #admin-content .terminal-header-controls svg,.topbar .header-actions svg{display:block!important;flex:none;width:22px!important;height:22px!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Match the native admin hero + container padding + 11px header inset. */
.shell{--minis-hero-height:clamp(164px,19vw,265px);--minis-tools-top:calc(var(--minis-hero-height) + clamp(12px,2.2vw,28px) + clamp(12px,1.5vw,20px) + 11px)}
.shell .topbar{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--minis-tools-top) auto;align-items:start;gap:0;min-height:0;padding:0;border:0;border-radius:0}
.shell .topbar .brand{justify-self:start;margin-top:20px}
.shell .topbar .header-actions{display:flex;align-items:center;justify-self:end;flex-wrap:nowrap;gap:var(--minis-tool-gap);margin:0;padding:0}
.shell .topbar .header-actions :is(.icon-button,.minis-background-switch){box-sizing:border-box;flex:0 0 var(--minis-tool-size);width:var(--minis-tool-size);min-width:var(--minis-tool-size);height:44px;margin:0;padding:0;border:0;background:transparent;color:#f7f9ff}
@media(max-width:640px){:root,.shell{--minis-hero-height:166px}}
@media(max-width:360px){:root{--minis-tool-size:36px;--minis-tool-gap:6px}}

/* Keep six native actions plus the status dots inside narrow phone headers. */
@media(min-width:361px) and (max-width:400px){:root{--minis-tool-gap:clamp(3px,calc((100vw - 346px)/5),10px)}}
/* NODE_CENTER_NAV_V2: retire the language entry, preserving the saved locale. */
body[data-minis-admin] #admin-content .terminal-header-controls .lang-select-wrapper{display:none!important}
.minis-page-links{display:flex;align-items:center;gap:var(--minis-tool-gap)}
.minis-page-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 var(--minis-tool-size);width:var(--minis-tool-size);min-width:var(--minis-tool-size);height:44px;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:#f7f9ff;text-shadow:0 1px 2px #000;touch-action:manipulation}
.minis-page-link svg{display:block;flex:none;width:22px;height:22px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.minis-page-link:hover{color:#87edce;text-decoration:none}
.minis-page-link:focus-visible{outline:2px solid #a3e6d1;outline-offset:3px}
/* Same document-top and right inset as the native settings toolbar. */
body[data-minis-node-center] main>header{display:block;min-height:calc(var(--minis-tools-top) + 44px - 30px)}
body[data-minis-node-center] main>header .minis-page-links{position:absolute;top:var(--minis-tools-top);right:calc(max(0px,(100vw - 1664px)/2) + clamp(12px,2.6vw,40px) + 17px)}
body[data-minis-node-center] main>.metrics{margin-top:18px}
@media(max-width:580px){body[data-minis-node-center] main>header{min-height:calc(var(--minis-tools-top) + 44px - 22px)}}
