/* FA-06 Mobile signature capture — BUILD_INSTRUCTIONS.md §10. Fixed,
   edge-to-edge, [data-look="v2"] only. Colors are a deliberate exception to
   the Dusk/Ivory/Slate palettes (§10: "stable light neutral signing surface
   ... in every palette") — hardcoded #F3F1EB/#132C40, not --field-* tokens. */
[data-look="v2"] .mobile-sig-v2 {
  position: fixed;
  inset: 0;
  z-index: 80; /* above #photo-review (70) — signing takes priority if both were ever open */
  display: flex;
  flex-direction: column;
  background: #F3F1EB;
}
[data-look="v2"] .mobile-sig-v2.hidden { display: none; }

[data-look="v2"] .mobile-sig-v2-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 56px;
  padding-top: max(4px, env(safe-area-inset-top));
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
}
[data-look="v2"] .mobile-sig-v2-controls-mid { display: flex; gap: 8px; }
[data-look="v2"] .mobile-sig-v2-btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--field-radius-control, 10px);
  border: 2px solid #132C40;
  background: transparent;
  color: #132C40;
  font: 600 16px/24px var(--font);
}
[data-look="v2"] .mobile-sig-v2-btn:disabled { opacity: .4; }
[data-look="v2"] .mobile-sig-v2-btn-primary { background: #132C40; color: #F3F1EB; }

[data-look="v2"] .mobile-sig-v2-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
[data-look="v2"] .mobile-sig-v2-canvas-wrap canvas {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  touch-action: none; /* the active drawing surface only — page gestures elsewhere stay usable */
}
[data-look="v2"] .mobile-sig-v2-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: #8A1F1F;
  font: 400 14px/20px var(--font);
}
[data-look="v2"] .mobile-sig-v2-error.hidden { display: none; }

[data-look="v2"] .mobile-sig-v2-rotate {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #F3F1EB;
  color: #132C40;
  font: 600 16px/24px var(--font);
  text-align: center;
  padding: 0 24px;
}
[data-look="v2"] .mobile-sig-v2-rotate.hidden { display: none; }
