.screen-lock-page {
  color-scheme: dark;
  box-sizing: border-box;
  min-height: 100dvh;
  margin: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
  background: #0a0b0f;
  color: #f0f2f8;
  font: 1rem/1.45 system-ui, sans-serif;
}

.screen-lock-card {
  box-sizing: border-box;
  width: min(100%, 27rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border2, #393e4c);
  border-radius: var(--radius, 14px);
  background: var(--bg2, #111318);
  color: var(--text, #f0f2f8);
  box-shadow: 0 0.75rem 3rem #0005;
}

.screen-lock-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}

.screen-lock-dialog::backdrop { background: #090b10ed; }
.screen-lock-card [hidden] { display: none; }
.screen-lock-card h1, .screen-lock-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-head, system-ui), sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  line-height: 1.2;
}
.screen-lock-brand { margin: 0 0 1.25rem; color: #9db2ff; font-weight: 700; }
.screen-lock-hint { margin: 0 0 1rem; color: #aab3cb; font-size: 0.93rem; }

.screen-lock-card label { display: block; margin: 0.85rem 0 0.35rem; font-weight: 650; }
.screen-lock-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #515a71;
  border-radius: 8px;
  background: #181c24;
  color: #f0f2f8;
  font: inherit;
  font-size: 1rem;
}
.screen-lock-card input[inputmode="numeric"] { letter-spacing: 0.18em; }
.screen-lock-error { margin: 0.6rem 0; color: #ffb4b2; font-size: 0.9rem; }
.screen-lock-error:empty { display: none; }

.screen-lock-primary, .screen-lock-secondary {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  min-height: 2.75rem;
  place-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.screen-lock-primary { margin-top: 1rem; background: #a3b6ff; color: #101732; }
.screen-lock-primary:hover { background: #c0cdff; }
.screen-lock-primary:disabled { opacity: 0.6; cursor: wait; }
.screen-lock-secondary { margin-top: 0.5rem; background: transparent; color: #c2cfff; text-decoration: none; }
.screen-lock-secondary:hover { background: #252a3a; }
.screen-lock-card :focus-visible, .screen-lock-trigger:focus-visible, .screen-lock-menu-button:focus-visible {
  outline: 2px solid #c8d3ff;
  outline-offset: 3px;
}

.screen-lock-trigger { flex-shrink: 0; white-space: nowrap; min-height: 36px; }
.pos-cart > .cart-header { flex-wrap: wrap; gap: 0.35rem; }
.screen-lock-menu-button {
  width: 100%;
  margin-bottom: 6px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font: 600 13px var(--font-body);
  cursor: pointer;
}
.screen-lock-menu-button:hover { background: var(--surface2); }
.screen-lock-trigger[hidden], .screen-lock-menu-button[hidden] { display: none; }
