#idleSessionWarning{position:fixed;inset:18px auto auto 50%;transform:translateX(-50%);margin:0;width:min(640px,calc(100vw - 28px));padding:16px 18px;display:flex;align-items:center;gap:18px;border:1px solid #e6a5ad;border-radius:15px;background:#fff0f1;color:#891a2d;box-shadow:0 12px 40px #72223730;z-index:2000;font-family:Segoe UI,Arial,sans-serif}
#idleSessionWarning[hidden]{display:none}
#idleSessionWarning strong{display:block;font-size:16px;line-height:1.4}
#idleSessionWarning p{margin:5px 0 0;font-size:14px;line-height:1.5}
#idleStayActive{flex:none;border:0;border-radius:10px;padding:11px 14px;background:#b42336;color:white;font:700 13px Segoe UI,Arial,sans-serif;cursor:pointer}
#idleStayActive:focus-visible{outline:3px solid #f1a2aa;outline-offset:3px}
#idleLockDialog{position:fixed;inset:0;margin:0;padding:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;overflow:auto;background:#edf4f0}
#idleLockDialog::backdrop{background:#edf4f0}
#idleLockDialog .pin-gate{position:static;min-height:100dvh;width:100%;padding:24px}
@media(max-width:600px){#idleSessionWarning{align-items:stretch;flex-direction:column;gap:10px;padding:14px}#idleStayActive{align-self:flex-start}}

/* Lock owns one viewport. Never leave a non-functional outer scrollbar. */
html.ajmer-workspace-locked,html.ajmer-workspace-locked body{overflow:hidden!important;overscroll-behavior:none;scrollbar-gutter:auto}
html.ajmer-workspace-locked #idleLockDialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;overflow:hidden;box-sizing:border-box}
html.ajmer-workspace-locked #pinGate{width:100%;height:100dvh;min-height:0;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
