/* Only the phone script adds phone-lock-device. Tablet CSS and controls stay untouched. */
body.phone-lock-device .mobile-view-lock {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  flex: none; min-width: 125px; min-height: 48px; padding: 0 10px;
  border: 1px solid var(--line2); border-radius: 12px;
  background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 750;
  white-space: nowrap; box-shadow: var(--shadow);
}
body.phone-lock-device .mobile-view-lock span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
body.phone-lock-device .mobile-view-lock small { font-size: 11px; font-weight: 550; color: var(--muted); }
body.phone-lock-device .mobile-view-lock .ic { width: 17px; height: 17px; }
body.phone-lock-device.phone-editing .mobile-view-lock { background: #ffe4a1; border-color: #b47b18; }
body.phone-lock-device #view-main .maptools .mobile-view-lock { width: auto; height: 48px; border-radius: 12px; z-index: 21; }
body.phone-lock-device #view-admin .mobile-view-lock,
body.phone-lock-device #view-charts .mobile-view-lock {
  position: fixed; left: 8px; bottom: 8px; z-index: 6;
}
body.phone-lock-device.phone-view-locked #addparty,
body.phone-lock-device.phone-view-locked #reorderbtn,
body.phone-lock-device.phone-view-locked #waitlist .wcard button,
body.phone-lock-device.phone-view-locked #sheet button:not([data-sbtn="close"]):not(#mobile-readonly-close) {
  display: none !important;
}
body.phone-lock-device.phone-view-locked #waitlist .qscard { opacity: .55; pointer-events: none; }
body.phone-lock-device.phone-view-locked #serverbar [data-rot-drag] { cursor: default; pointer-events: none; }
body.phone-lock-device.phone-view-locked #view-admin [data-act],
body.phone-lock-device.phone-view-locked #view-charts .editor-tools button { opacity: .55; }
#mobile-unlock-confirm[hidden], #mobile-lock-notice[hidden] { display: none !important; }
body.phone-lock-device #mobile-unlock-confirm {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(70,58,34,.5);
}
body.phone-lock-device .mobile-unlock-sheet {
  width: min(360px, 100%); padding: 20px; border-radius: 14px;
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
body.phone-lock-device .mobile-unlock-sheet h3 { margin: 0 0 8px; font-size: 20px; }
body.phone-lock-device .mobile-unlock-sheet p { margin: 0 0 20px; font-size: 15px; line-height: 1.4; }
body.phone-lock-device .mobile-unlock-sheet button { display: block; width: 100%; min-height: 48px; margin-top: 8px; }
body.phone-lock-device #mobile-lock-notice {
  position: fixed; left: 12px; right: 12px; bottom: 64px; z-index: 81;
  padding: 10px 14px; border-radius: 10px; background: #263329; color: white;
  text-align: center; font-size: 14px; font-weight: 650;
}
