#nesto-taskbar,#nst-window,#nst-toast{font-family:system-ui,-apple-system,Segoe UI,sans-serif;box-sizing:border-box}#nesto-taskbar * ,#nst-window *{box-sizing:border-box}
.nst-taskbar{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);height:46px;display:flex;align-items:center;gap:3px;padding:4px 7px;border:1px solid rgba(191,245,92,.4);border-radius:30px;background:rgba(20,30,25,.58);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 6px 25px rgba(0,0,0,.24);z-index:2147481000;max-width:calc(100vw - 16px);touch-action:none;user-select:none}
.nst-grip{color:#c8f67a;cursor:grab;font-size:18px;line-height:28px;padding:0 2px;touch-action:none}.nst-grip:active{cursor:grabbing}.nst-buttons{display:flex;gap:2px;align-items:center}.nst-btn{position:relative;display:flex;align-items:center;justify-content:center;gap:2px;border:0;border-radius:50%;background:transparent;color:#c5f76a;min-width:34px;width:34px;height:34px;font-size:21px;cursor:pointer;padding:0}.nst-btn:hover,.nst-btn:focus-visible,.nst-btn.nst-active{background:rgba(185,246,75,.19);outline-offset:2px}.nst-btn.nst-active:after{content:"";position:absolute;bottom:1px;width:5px;height:3px;border-radius:5px;background:#c5f76a}.nst-pages-btn{border-left:1px solid rgba(198,245,113,.25);border-radius:10px;width:43px;font-size:17px}.nst-pages-btn span:last-child{font-size:10px;font-weight:700}
.nst-window{position:fixed;z-index:2147481001;width:min(330px,calc(100vw - 24px));max-height:min(68vh,560px);overflow:auto;border:1px solid rgba(192,245,102,.35);border-radius:16px;background:rgba(22,32,27,.96);color:#f3f7ed;box-shadow:0 14px 38px rgba(0,0,0,.4);padding:12px;backdrop-filter:blur(18px)}.nst-window[hidden],.nst-toast[hidden]{display:none!important}.nst-window-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#c5f76a;font-size:14px}.nst-window-head button{background:transparent;border:0;color:#eaf4e0;font-size:25px;cursor:pointer}.nst-window a,.nst-window button.nst-action{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;margin:5px 0;padding:9px 11px;border-radius:9px;background:#2b3b2e;color:#f2f7ed;text-decoration:none;border:1px solid transparent;font-size:13px;cursor:pointer}.nst-window a:hover,.nst-window button.nst-action:hover{border-color:#b9f34d}.nst-window p{font-size:13px;line-height:1.5;color:#dce8d7;margin:6px 0 10px}.nst-page-row{display:flex;gap:6px;align-items:center}.nst-page-row a{flex:1;min-width:0}.nst-page-row button{background:transparent;border:0;color:#dce8d7;cursor:pointer;font-size:20px}.nst-current{border-left:3px solid #c5f76a!important}.nst-toast{position:fixed;z-index:2147481002;bottom:76px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#1d3023;color:#d4ff8b;padding:9px 13px;border-radius:12px;font-size:12px;box-shadow:0 6px 22px #0006}
@media(max-width:420px){.nst-taskbar{height:44px;padding:3px 5px}.nst-btn{width:31px;min-width:31px;height:33px;font-size:19px}.nst-pages-btn{width:38px;min-width:38px}.nst-grip{font-size:16px;padding:0 1px}.nst-buttons{gap:0}}
@media(prefers-reduced-motion:reduce){.nst-taskbar,.nst-window{scroll-behavior:auto}}

.nst-desktop-tabs{display:none}
@media(min-width:769px){.nst-taskbar{left:0!important;right:0!important;top:auto!important;bottom:0!important;transform:none!important;width:100%;max-width:none;height:48px;border-radius:0;padding:4px 14px;justify-content:flex-start;touch-action:auto}.nst-grip,.nst-pages-btn{display:none}.nst-desktop-tabs{display:flex;gap:5px;align-items:center;min-width:0;overflow-x:auto;flex:1;padding-left:12px}.nst-tab{display:flex;align-items:center;gap:7px;min-width:90px;max-width:190px;height:35px;border:1px solid #526c46;border-radius:7px;background:#253429;color:#e9f5df;font:12px system-ui;padding:0 9px;white-space:nowrap}.nst-tab.current{border-bottom:3px solid #c5f76a;background:#3b4d38}.nst-tab a{color:inherit;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.nst-tab button{border:0;background:none;color:#d6e9ce;cursor:pointer;font-size:16px}}

/* R34: TriviaCorner has a distinct compact cyan/violet dock-side invitation. */
.nst-tc-bubble[hidden],.nst-tc-choices[hidden]{display:none!important}
.nst-tc-bubble{position:fixed;z-index:2147483400;bottom:90px;left:50%;transform:translateX(-50%);width:min(275px,calc(100vw - 24px));box-sizing:border-box;padding:14px 15px 13px;background:linear-gradient(145deg,#172b35,#25213d);color:#eefbff;border:1px solid #65dde0;border-radius:17px;box-shadow:0 10px 32px #0009,0 0 16px #65dde033;font:14px system-ui,sans-serif;animation:nstTcAppear .35s ease-out}
.nst-tc-label{font-size:11px;letter-spacing:1.2px;font-weight:800;color:#65dde0;display:flex;justify-content:space-between;align-items:center}
.nst-tc-label button{border:0;background:transparent;color:#d6e4fa;font-size:23px;cursor:pointer;min-width:32px;min-height:32px}
.nst-tc-message{font-size:15px;line-height:1.45;margin:7px 0 5px}
.nst-tc-choices{display:flex;gap:10px;margin-top:11px}
.nst-tc-choices button{background:#302e50;border:1px solid #8e86d0;border-radius:12px;font-size:23px;min-width:56px;min-height:44px;cursor:pointer}
@keyframes nstTcAppear{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.nst-tc-bubble{animation:none}}

/* R34.2: unobtrusive TC dock-side teaser, never a hero-covering modal */
@media(max-width:750px){
 .nst-tc-bubble{bottom:calc(env(safe-area-inset-bottom,0px) + 82px)!important;left:auto!important;right:14px!important;transform:none!important;width:min(218px,calc(100vw - 36px))!important;padding:9px 11px!important;border-radius:13px!important;box-shadow:0 5px 18px #0008!important;animation:nstTcMini .25s ease-out!important}
 .nst-tc-label{font-size:9px!important;letter-spacing:.65px!important}
 .nst-tc-label button{font-size:18px!important;min-width:26px!important;min-height:26px!important}
 .nst-tc-message{font-size:12px!important;line-height:1.3!important;margin:3px 0 1px!important}
 .nst-tc-choices{margin-top:6px!important;gap:6px!important}
 .nst-tc-choices button{font-size:17px!important;min-height:34px!important;min-width:45px!important}
}
@keyframes nstTcMini{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.nst-tc-bubble{animation:none!important}}

/* R37.4 restore original compact floating dock rather than desktop-style tab strip */
.nst-desktop-tabs{display:none!important}
.nst-taskbar{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:max(14px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 16px)!important;height:46px!important;border-radius:30px!important;padding:4px 7px!important;justify-content:center!important}
@media(max-width:420px){.nst-taskbar{height:44px!important;padding:3px 5px!important}}

/* R56: ensure TriviaCorner remains touch-accessible and popup stays above other dock surfaces */
#nesto-taskbar [data-nst="trivia"]{pointer-events:auto;touch-action:manipulation;cursor:pointer}
#nst-window:not([hidden]){z-index:2147483401}
