/* PhotoPanel styles (P69) - the panel-1 look, ONE file for all apps.
   Ported verbatim from app.css (which was ported from hair) so the visual
   result is unchanged; filesRetryBtn moves green -> brand pink (P47 law:
   no green left in the brand). */
.previewWrap {
  position: relative; width: fit-content; max-width: 100%;
  margin: 12px auto 0; border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden; /* clips the guide dimmer (paint-order trap) */
}
.previewWrap:has(#source-preview[hidden]) { display: none; }
#source-preview { max-width: 100%; max-height: 300px; display: block; }
/* display:block above would override the hidden attribute -> broken-image icon */
#source-preview[hidden] { display: none; }
/* CropGuide: the crop that WILL be applied (dim outside, ratio chip inside) */
.guideBox {
  position: absolute; box-sizing: border-box; pointer-events: none;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #000, 0 0 0 9999px rgba(0, 0, 0, 0.35);
}
.guideChip {
  position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 11px/1.4 system-ui, sans-serif;
}
.adjustCropBtn { font-size: 12px; padding: 6px 14px; margin-top: 8px; }
.filesRetryBtn {
  display: block; margin: 8px auto 0; font-weight: 600;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
}
.filesRetryBtn[hidden] { display: none; }
@media (hover: hover) { .filesRetryBtn:hover:not(:disabled) { background: #f06fa8; border-color: #f06fa8; } }
/* photo-panel error/info surface (p28): errors belong INSIDE panel 1 */
.cameraError { color: #dc2626; font-weight: 700; font-size: 13px; margin: 8px 0 0; text-align: center; }
.cameraError.info { color: var(--accent); }
.cameraError[hidden] { display: none; }

/* the panel's Pick/Take labels (the ONLY .btn users in the portal) */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn:active:not(:disabled) { transform: translateY(1px); }
