.odati-lock {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; overflow-y: auto;
  background: var(--page-bg);
}
.odati-lock:not(.odati-lock-staff) {
  --modal-bg: var(--panel-bg);
  --modal-fg: var(--text-primary);
  --modal-muted: var(--color-neu);
  --modal-border: var(--border);
  --modal-input-bg: var(--panel-bg);
  --modal-input-border: var(--border-dark);
}
:root:not([data-theme="light"]) .odati-lock.odati-lock-staff { background: var(--color-dark); }
.odati-lock.odati-dim, :root:not([data-theme="light"]) .odati-lock.odati-lock-staff.odati-dim { background: color-mix(in srgb, var(--color-dark) 60%, transparent); }
html.mt-boot:root .odati-lock.odati-lock-staff.odati-dim { background: transparent; }
.odati-lock-cancel { display: flex; justify-content: flex-end; margin-top: 10px; }
html.odati-locked body { visibility: hidden; }
html.odati-locked.odati-asking #wa-confirm-modal { visibility: visible; }
html.odati-locked.odati-asking .odati-lock-q { visibility: visible; }
.odati-lock-card {
  width: 100%; max-width: 360px; box-sizing: border-box; padding: 24px 20px; text-align: center;
  background: var(--modal-bg); color: var(--modal-fg);
  border: 1px solid var(--modal-border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  font-family: var(--font);
}
.odati-lock-title { font-size: var(--ph-fs-title, 18px); font-weight: 700; margin-bottom: 8px; }
.odati-lock-sub { font-size: var(--ph-fs-body, 13px); color: var(--modal-muted); margin-bottom: 14px; line-height: 1.4; }
.odati-lock-block { margin-bottom: 8px; }
.odati-lock-boxes { display: flex; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.odati-lock-box {
  width: 40px; height: 48px; box-sizing: border-box; text-align: center; font-size: var(--ph-fs-body, 20px); font-weight: 700; outline: none;
  font-family: var(--font-mono); color: var(--modal-fg); background: var(--modal-input-bg);
  border: 1px solid var(--modal-input-border); border-radius: var(--radius);
}
.odati-lock-box:focus { border-color: var(--color-brand); box-shadow: 0 0 0 2px rgba(244,121,32,0.15); }
.odati-lock-status { min-height: 18px; margin-top: 10px; font-size: var(--ph-fs-body, 13px); color: var(--color-fail); }
.odati-lock-card :is(.btn, .btn-view-primary), .odati-lock-actions :is(.btn, .btn-view-primary) {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
  min-height: 40px; padding: 6px 16px; font-size: var(--ph-fs-button, 13px); font-weight: 600; line-height: 1.25; border-radius: 6px; text-align: center;
}
.odati-lock-single { display: flex; justify-content: center; margin-top: 10px; }
.odati-lock-single :is(.btn, .btn-view-primary) { min-width: 140px; }
.odati-lock-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: stretch; margin-top: 10px; }
.odati-lock-actions :is(.btn, .btn-view-primary) { width: 100%; }
.odati-lock-mark { display: flex; justify-content: center; color: var(--color-brand); margin-bottom: 8px; }
.odati-lock-mark svg { width: 40px; height: 40px; }
.odati-lock-btn-mark { display: inline-flex; }
.odati-lock-btn-mark svg { width: 16px; height: 16px; }
.odati-pinpad { display: grid; grid-template-columns: repeat(3, 58px); grid-auto-rows: 58px; gap: 10px 28px; justify-content: center; margin: 16px auto 4px; }
.odati-pinpad-key {
  width: 58px; height: 58px; padding: 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent;
  color: var(--modal-fg); font-family: var(--font); font-size: var(--ph-fs-num-lg, 28px); font-weight: 400; line-height: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.odati-pinpad-key:active { background: color-mix(in srgb, var(--modal-fg) 12%, transparent); }
html.odati-pinpad-on, html.odati-pinpad-on body { min-height: 100vh; min-height: 100dvh; }
.odati-lock-box[readonly], .digit-box[readonly] { cursor: default; }
@media (max-width: 400px) {
  .odati-lock-box { width: 36px; height: 44px; }
  .odati-lock-boxes { gap: 6px; }
}
.odati-offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; display: flex; justify-content: center; padding: 6px 8px; pointer-events: none; box-sizing: border-box; }
.odati-offline-box {
  max-width: 560px; box-sizing: border-box; padding: 8px 14px; text-align: center; font-size: var(--ph-fs-body, 13px); font-weight: 600; line-height: 1.4; font-family: var(--font);
  background: var(--panel-bg); color: var(--text-primary);
  border: 1px solid var(--color-fail); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.odati-offline-staff .odati-offline-box { background: var(--modal-bg); color: var(--modal-fg); }
html.av-in-frame, html.av-in-frame * { scrollbar-width: none; }
html.av-in-frame ::-webkit-scrollbar { display: none; }
body{opacity:1;animation:none}
