/* v0.1.3: touch/iPad accessibility improvements without changing the four-tab workflow. */
.visually-hidden-file {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important;
  border: 0 !important; opacity: 0 !important;
}
.ipad-panel { border-left: 4px solid var(--theme-orange); }
.ipad-panel .section-title { margin-bottom: 9px; }
.ipad-panel p { line-height: 1.5; }
.ipad-state { background: #F5F2EE; border: 1px solid #E4DED6; border-radius: 9px;
  color: #4F5D66; line-height: 1.45; padding: 11px 12px; font-size: 13px;
  margin: 10px 0 12px; }
.ipad-state.ready { background: #EBF4EC; border-color: #B3D6C1; color: #244F37; }
.ipad-state.warning { background: #FBF0E6; border-color: #E9CFBA; color: #7D401B; }
.ipad-connection { font-size: 12px; color: #65727A; margin: 7px 0 0; }
.ipad-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ipad-modal-steps { padding-left: 21px; color: #394954; line-height: 1.65; font-size: 14px; }
.ipad-modal-steps li { margin-bottom: 8px; }
@media (pointer: coarse) {
  .btn, .btn-small, .level-item, .zoom-controls .btn, .crumb { min-height: 44px; }
  .node-card { min-height: 78px; }
  .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
  .top-actions select, input[type=number] { min-height: 46px; font-size: 16px; }
  .tab { min-height: 52px; }
  .photo-upload .btn { min-height: 48px; display: inline-flex; align-items:center; justify-content:center; }
  .tree-scroll, .level-strip, .tabs { -webkit-overflow-scrolling: touch; }
  .tree-scroll { touch-action: pan-x pan-y; }
  .photo-tile img { min-height: 152px; }
}
@media (max-width: 780px) {
  .tabs { overflow-x: auto; justify-content: flex-start; }
  .tab { flex: 0 0 auto; white-space: nowrap; }
}
@supports (padding: max(0px)) {
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
  .footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
