/* [Claude 2026-11-06] POS lock screen (pos-lock.js): above sheets (80), toasts (95) and the connection pill; fits 1024×600. */
.pos-lock { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--text); display: grid; place-items: center; padding: 16px; overflow: auto; animation: fade .25s var(--out); outline: none; }
.pos-lock .pl-box { width: min(760px, 100%); display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; text-align: center; }
.pos-lock .pl-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pos-lock .pl-id { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pos-lock .pl-avatar { width: 84px; height: 84px; font-size: 32px; }
.pos-lock .pl-name { font-size: 26px; font-weight: 700; line-height: 1.2; }
.pos-lock .pl-company { font-size: 16px; }
.pos-lock .pl-title { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-weight: 600; }
.pos-lock .pl-switch { min-height: 48px; padding: 0 18px; }
.pos-lock .pl-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pos-lock .pin-dots { margin: 8px 0 6px; }
.pos-lock .pl-err { color: var(--red); font-weight: 600; min-height: 22px; font-size: 15px; }
.pos-lock .pl-net { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14px; }
.pos-lock .pl-net[hidden] { display: none; }
.pos-lock .pad { gap: 10px 22px; justify-items: center; padding-top: 4px; }
.pos-lock .pad button { width: 68px; height: 68px; min-height: 0; border-radius: 50%; font-size: 30px; font-weight: 300; background: var(--fill); color: var(--text); }
.pos-lock .pad button:active { background: var(--fill-2); }
.pos-lock .pad button.del { background: transparent; font-size: 22px; }
.pos-lock .pad button.ok { background: var(--accent); color: #fff; }
.pos-lock .pad button.ok:disabled { opacity: .4; }
.pos-lock .pl-confirm { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px; background: var(--bg); text-align: center; animation: fade .2s var(--out); }
.pos-lock .pl-confirm-text { max-width: 460px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.pos-lock .pl-confirm .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pos-lock .pl-confirm .btn { min-height: 48px; padding: 0 20px; }
@media (min-width: 700px) { .pos-lock .pl-box { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-height: 640px) {
  .pos-lock { padding: 10px 16px; }
  .pos-lock .pl-avatar { width: 64px; height: 64px; font-size: 26px; }
  .pos-lock .pl-name { font-size: 22px; }
  .pos-lock .pad { gap: 8px 20px; }
  .pos-lock .pad button { width: 64px; height: 64px; font-size: 28px; }
}
/* [Claude 2026-11-06] The lock handle (Hadi: the finger starts on the lock icon and drags it down). Top left (toasts own the top centre), above the page,
   below sheets and the lock screen; 44 px knob; a short track appears while it is pulled; green when release will lock. */
.pos-lock-handle { position: fixed; top: 6px; left: 10px; z-index: 60; width: 56px; height: 44px; padding: 0; border: 0; background: none; touch-action: none; -webkit-tap-highlight-color: transparent; cursor: grab; }
.pos-lock-handle .plh-knob { position: absolute; left: 6px; top: 0; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--material, rgba(255,255,255,.85)); color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,.18); transform: translateY(var(--dy, 0px)); transition: transform .18s ease, background .15s, color .15s; }
.pos-lock-handle.pulling .plh-knob { transition: none; color: var(--accent); }
.pos-lock-handle.ready .plh-knob { background: var(--green); color: #fff; }
.pos-lock-handle .plh-track { position: absolute; left: 26px; top: 22px; width: 4px; height: var(--dy, 0px); border-radius: 2px; background: var(--accent); opacity: calc(.15 + .5 * var(--p, 0)); }
.pos-lock-handle.ready .plh-track { background: var(--green); }
.pos-lock-handle .plh-tip { position: absolute; left: 0; top: 50px; white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: var(--material, #fff); color: var(--text); font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.18); pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.pos-lock-handle.hint .plh-tip { opacity: 1; transform: none; }
.pos-lock-handle.hint .plh-knob { animation: plh-nudge .9s ease 2; }
@keyframes plh-nudge { 0%,100% { transform: translateY(0); } 40% { transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .pos-lock, .pos-lock .pl-confirm { animation: none; } .pos-lock-handle .plh-knob { transition: none; animation: none !important; } }
