screen-controls, .screen-controls { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.screen-control-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.screen-control-button:hover, .screen-control-button[aria-pressed="true"] { color: var(--ink); border-color: var(--signal); background: var(--surface-hover); }
.screen-control-button app-icon { display: flex; }
.waitlist-screen-locked { overflow: hidden; }
.waitlist-screen-locked .live-waitlist-page { filter: blur(5px); user-select: none; }
.screen-lock-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); border: 0; background: var(--paper); background: radial-gradient(ellipse at 10% 15%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 60%), radial-gradient(ellipse at 90% 85%, color-mix(in srgb, var(--amber) 12%, transparent), transparent 60%), color-mix(in srgb, var(--paper) 22%, transparent); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.screen-lock-dialog[open] { display: grid; place-items: center; }
.screen-lock-dialog::backdrop { background: #00000003; -webkit-backdrop-filter: blur(4px) saturate(1.25); backdrop-filter: blur(4px) saturate(1.25); }
.screen-lock-card { box-sizing: border-box; width: min(100%, 390px); padding: 18px clamp(24px, 5vw, 36px) 28px; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); border-radius: 32px; background: linear-gradient(135deg, #ffffff18, transparent 45%), radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--signal) 12%, transparent), transparent 65%), color-mix(in srgb, var(--surface-solid) 68%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); box-shadow: 0 24px 100px #00000024, inset 0 1px 0 #ffffff30; text-align: center; animation: screen-lock-arrive .25s ease-out; }
.screen-lock-logo { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 auto 15px; }
.screen-lock-company-logo { display: block; width: auto; height: auto; max-width: min(100%, 220px); max-height: 56px; object-fit: contain; }
.screen-lock-card .screen-lock-list { margin: 0; font-size: 1.8rem; line-height: 1.15; font-weight: 650; letter-spacing: -.05em; color: var(--ink); overflow-wrap: anywhere; }
.screen-lock-card .screen-lock-state { margin: 0; font-size: .95rem; line-height: 1.2; font-weight: 600; color: var(--danger); }
.screen-lock-code { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.screen-lock-card .screen-lock-code input[type="text"] { box-sizing: border-box; width: 56px; min-width: 0; height: 66px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); color: color-mix(in srgb, var(--ink) 30%, var(--surface-solid)); font-family: inherit; font-size: 1.65rem; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; caret-color: var(--signal); box-shadow: none; transition: border-color .12s; }
.screen-lock-card .screen-lock-code input.filled { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.screen-lock-card .screen-lock-code input.active, .screen-lock-card .screen-lock-code input:focus { border-color: var(--signal); outline: 2px solid var(--signal); outline-offset: 3px; }
.screen-lock-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.screen-lock-card .screen-lock-error { color: var(--danger); font-size: .78rem; line-height: 1.5; margin: -8px 0 15px; }
.screen-lock-card .screen-lock-checking { color: var(--muted); font-size: .78rem; }
.screen-lock-keypad { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 13px 22px; }
.screen-lock-keypad button { display: grid; grid-column: auto; place-items: center; width: 64px; height: 64px; min-height: 0; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--surface-hover) 60%, var(--surface-solid)); color: var(--ink); font-size: 1.5rem; font-weight: 500; box-shadow: inset 0 1px 0 #ffffff12, 0 3px 8px #00000008; transition: background .12s, transform .12s; }
.screen-lock-keypad button:hover { color: var(--ink); background: var(--surface-hover); border-color: var(--signal); }
.screen-lock-keypad button:active { transform: scale(.93); }
.screen-lock-keypad button:focus-visible, .screen-control-button:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.screen-lock-keypad .screen-lock-function { font-size: .7rem; font-weight: 650; border-color: transparent; background: transparent; box-shadow: none; }
.screen-lock-card .screen-lock-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.screen-lock-footer app-icon { display: flex; flex-shrink: 0; }
.screen-lock-footer svg { width: 14px; height: 14px; }
.screen-lock-settings { display: grid; gap: 12px; min-width: 0; }
.fixed-settings-body > .screen-lock-settings { margin-top: 5px; }
.screen-lock-settings .message-settings-heading { gap: 0; margin-bottom: 0; }
.screen-lock-setting-toggle { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-inset); }
.screen-lock-setting-toggle .switch { flex-shrink: 0; margin: 2px 0 0; }
.screen-lock-setting-toggle .switch span { pointer-events: none; }
.screen-lock-setting-toggle strong { font-size: .9rem; }
.screen-lock-setting-toggle p, .screen-lock-settings-note, .screen-lock-settings-warning p { margin: 6px 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.screen-lock-time { display: flex; align-items: center; gap: 12px; max-width: 300px; }
.screen-lock-time label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: .8rem; }
.screen-lock-time input { box-sizing: border-box; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.screen-lock-time > span { padding-top: 20px; color: var(--muted); font-size: 1.5rem; }
.screen-lock-settings .screen-lock-settings-error { color: var(--danger); margin: 0; font-size: .8rem; }
.screen-lock-settings .screen-lock-settings-note { margin: 0; font-style: italic; }
.screen-lock-settings-warning { display: grid; justify-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.screen-lock-settings-note a { color: var(--ink); text-decoration: underline; }
unlock-code-editor { display: block; min-width: 0; }
.user-unlock-code { display: grid; gap: 7px; min-width: 0; }
.user-unlock-heading { position: relative; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.user-unlock-heading > label { display: block; margin: 0; font: inherit; }
.user-unlock-help-wrap { display: inline-flex; }
.user-unlock-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 32px; align-items: center; gap: 8px; width: 100%; max-width: 290px; }
.user-editor .user-unlock-row input[type] { box-sizing: border-box; width: 100%; min-width: 0; height: 52px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-solid); box-shadow: none; font-family: inherit; font-size: 1.4rem; font-weight: 500; text-align: center; caret-color: var(--signal); }
.user-editor .user-unlock-row input.active, .user-editor .user-unlock-row input:focus { border-color: var(--signal); outline: 2px solid var(--signal); outline-offset: 2px; }
.user-editor .user-unlock-code button { display: grid; grid-column: auto; place-items: center; align-self: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; box-shadow: none; }
.user-editor .user-unlock-code button:hover { color: var(--ink); background: var(--surface-hover); }
.user-editor .user-unlock-code .user-unlock-help-trigger { width: 24px; height: 24px; min-height: 24px; border-radius: 50%; }
.user-unlock-code app-icon { display: flex; }
.user-unlock-code app-icon svg { width: 18px; height: 18px; }
.user-unlock-help-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; box-sizing: border-box; width: min(280px, calc(100vw - 64px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-solid); box-shadow: var(--shadow-float); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.user-unlock-code .user-unlock-error { display: block; color: var(--danger); font-size: .75rem; line-height: 1.5; }
.waitlist-expanded .live-waitlist-page { position: fixed; inset: 0; z-index: 1100; box-sizing: border-box; height: 100%; height: 100dvh; overflow-y: auto; background: var(--paper); }
@keyframes screen-lock-arrive { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) {
  .screen-controls { gap: 5px; }
  .screen-control-button { width: 36px; height: 36px; border-radius: 10px; }
  .screen-lock-code { gap: 8px; }
  .screen-lock-card .screen-lock-code input[type="text"] { width: 52px; height: 60px; }
  .screen-lock-keypad { gap: 12px 18px; }
}
@media (max-height: 650px) {
  .screen-lock-card { padding-top: 12px; padding-bottom: 20px; }
  .screen-lock-logo { min-height: 40px; }
  .screen-lock-company-logo { max-height: 44px; }
  .screen-lock-code { margin-block: 18px; }
  .screen-lock-keypad { grid-template-columns: repeat(3, 54px); gap: 8px 20px; }
  .screen-lock-keypad button { width: 54px; height: 54px; }
  .screen-lock-card .screen-lock-footer { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-lock-card { animation: none; }
  .screen-lock-card .screen-lock-code input[type="text"], .screen-lock-keypad button { transition: none; }
}
