/* Home Screen app support; private admin data is never cached by a service worker. */
.staff-app-panel > h3 { padding: 0; font-size: 22px; margin: 0 0 10px; }
.staff-app-panel > .eyebrow { margin-bottom: 8px; }
.staff-app-panel > p { max-width: 72ch; }
.staff-app-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.staff-app-option { min-width: 0; padding: 22px; background: #fff; border: 1px solid #d8e1e7; border-radius: 12px; }
.staff-app-platform { display: inline-block; color: #765719; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.staff-app-option h4 { margin: 8px 0 10px; font-size: 19px; line-height: 1.4; }
.staff-app-option p { margin-bottom: 16px; }
.staff-app-action { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; border-radius: 9px; text-decoration: none; font-weight: 600; text-align: center; }
.staff-app-instructions { padding-top: 3px; }
.staff-app-instructions summary { cursor: pointer; min-height: 44px; padding: 11px 14px; border: 1px solid #c6d3dc; border-radius: 9px; background: #f2f6f9; color: #102f48; font-weight: 700; }
.staff-app-instructions summary:hover { background: #e7eff5; }
.staff-app-instructions summary:focus-visible { outline: 2px solid #94722d; outline-offset: 3px; }
.staff-app-instructions ol { padding-left: 24px; margin: 16px 0; }
.staff-app-instructions li { padding-left: 3px; margin-bottom: 10px; overflow-wrap: anywhere; }
.staff-app-instructions p { font-size: 13px; color: #587081; margin-bottom: 0; }
.staff-app-installed { display: none; }
.login-overlay { overflow-y: auto; }
.login-modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; }
@media (display-mode: standalone) {
  body { padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
  .staff-app-installed { display: block; color: #22603c; margin: 14px 0 0; font-size: 13px; font-weight: 600; }
}
@media (max-width: 640px) {
  .staff-app-options { grid-template-columns: minmax(0, 1fr); }
  .staff-app-panel { margin: 16px; padding: 18px; }
  .staff-app-option { padding: 18px; }
  .staff-app-action { width: 100%; }
  .desk-header { flex-wrap: wrap; }
  .desk-header > .desk-header-controls { width: 100%; flex-direction: row; align-items: center; gap: 9px; }
  .master-office-switcher { flex-wrap: wrap; max-width: 100%; }
  .master-office-switcher select { min-width: 0; max-width: 100%; }
  .panel-actions { min-width: 0; width: 100%; }
  .panel-actions input[type="search"] { min-width: 0; max-width: 100%; }
  input, select, textarea, .login-modal input, .master-office-switcher select { font-size: 16px; }
  .login-overlay { padding: 16px; }
  .login-modal { padding: 22px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .login-modal-head { align-items: flex-start; }
  .login-modal-head h2 { font-size: 19px; }
  .login-modal-head button { flex-shrink: 0; }
}
