/* Field Photo Report + Photos select mode (project-mobile-summary) */

#sectionPhotos.pg-select-mode .pg-card { cursor: pointer; }
#sectionPhotos.pg-select-mode .pg-select-check { display: flex; }
#sectionPhotos .pg-select-check {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.35);
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
#sectionPhotos .pg-card--selected .pg-thumb-wrap {
  box-shadow: inset 0 0 0 3px #E92A2C;
}
#sectionPhotos .pg-card--selected .pg-select-check {
  background: #E92A2C;
  border-color: #E92A2C;
}
#sectionPhotos .pg-thumb-wrap { position: relative; }

#sectionPhotos .pg-select-toggle {
  margin-left: auto;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 12px;
  border: 1px solid var(--border, #404040);
  background: transparent;
  color: var(--off-white, #e6e6e6);
  border-radius: 2px;
  cursor: pointer;
}
#sectionPhotos .pg-select-toggle.on {
  border-color: #E92A2C;
  color: #E92A2C;
}
body.light #sectionPhotos .pg-select-toggle {
  color: #202020;
  border-color: #ccc;
}

#pgSelectBar {
  display: none;
  position: sticky;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #202020;
  border: 1px solid rgba(230,230,230,.16);
  border-radius: 2px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#pgSelectBar.is-visible { display: flex; }
#pgSelectBar .pg-select-count {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .04em;
  color: #BFBFBF;
  margin-right: auto;
}
#pgSelectBar .pg-select-act {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 10px;
  border: 1px solid rgba(230,230,230,.24);
  background: transparent;
  color: #E6E6E6;
  border-radius: 2px;
  cursor: pointer;
}
#pgSelectBar .pg-select-act:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#pgSelectBar .pg-select-act--primary {
  background: linear-gradient(135deg, #E92A2C, #A71F23);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
#pgSelectBar .pg-select-act--ghost {
  border-color: transparent;
  color: #BFBFBF;
}

/* Report modal */
body.fpr-open { overflow: hidden; }
.fpr-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.fpr-dialog {
  width: min(720px, 100%);
  max-height: min(94vh, 920px);
  background: #151515;
  color: #E6E6E6;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.45);
}
.fpr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(230,230,230,.12);
}
.fpr-head-title {
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fpr-head-sub {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #BFBFBF;
  margin-top: 4px;
}
.fpr-x {
  border: 0;
  background: transparent;
  color: #BFBFBF;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.fpr-body {
  overflow: auto;
  padding: 14px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.fpr-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(230,230,230,.12);
  background: #1a1a1a;
}
.fpr-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .fpr-grid2 { grid-template-columns: 1fr; }
}
.fpr-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fpr-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #BFBFBF;
}
.fpr-label-note { text-transform: none; letter-spacing: 0; color: #888; font-family: Inter, sans-serif; }
.fpr-input {
  width: 100%;
  box-sizing: border-box;
  background: #0f0f0f;
  border: 1px solid rgba(230,230,230,.18);
  border-radius: 2px;
  color: #E6E6E6;
  padding: 10px 12px;
  font: 14px/1.4 Inter, system-ui, sans-serif;
  resize: vertical;
}
.fpr-subhead {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E92A2C;
  margin: 16px 0 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(230,230,230,.08);
}
.fpr-btn {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 14px;
  border: 1px solid rgba(230,230,230,.24);
  background: transparent;
  color: #E6E6E6;
  border-radius: 2px;
  cursor: pointer;
}
.fpr-btn-primary {
  background: linear-gradient(135deg, #E92A2C, #A71F23);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.fpr-btn-ghost { border-color: transparent; color: #BFBFBF; }
.fpr-status {
  min-height: 1.2em;
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}
.fpr-status.is-err { color: #E92A2C; }

.fpr-map-wrap { margin-bottom: 14px; }
.fpr-map-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  border: 1px solid rgba(230,230,230,.14);
  background: #0f0f0f;
  display: block;
}
.fpr-map-caption { margin-top: 8px; }
.fpr-map-addr { font-size: 14px; color: #E6E6E6; }
.fpr-map-meta, .fpr-map-empty {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.fpr-tag-hint {
  font-size: 13px;
  line-height: 1.45;
  color: #BFBFBF;
  background: rgba(233,42,44,.08);
  border: 1px solid rgba(233,42,44,.28);
  border-radius: 2px;
  padding: 10px 12px;
  margin: 4px 0 12px;
}
.fpr-tag-warn {
  margin-top: 6px;
  color: #E92A2C;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}
.fpr-desc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.fpr-desc-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fpr-mic-btn, .fpr-polish-btn {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border: 1px solid rgba(230,230,230,.22);
  background: transparent;
  color: #E6E6E6;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}
.fpr-mic-btn.is-listening {
  border-color: #E92A2C;
  background: rgba(233,42,44,.25);
  color: #fff;
  animation: fpr-pulse 1.2s ease-in-out infinite;
}
@keyframes fpr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}
.fpr-polish-btn:hover, .fpr-mic-btn:hover {
  border-color: #E92A2C;
}

.fpr-photo-row {
  display: grid;
  grid-template-columns: 28px 88px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(230,230,230,.1);
}
.fpr-photo-ord {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #E92A2C;
  padding-top: 4px;
}
.fpr-photo-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(230,230,230,.14);
  background: #0f0f0f;
}
.fpr-photo-tags { margin-top: 8px; margin-bottom: 8px; }
.fpr-photo-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.fpr-photo-meta {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #888;
  margin: 4px 0 8px;
}
.fpr-ai { margin-bottom: 8px; }
.fpr-ai.muted { font-size: 12px; color: #666; font-style: italic; }
.fpr-ai-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}
.fpr-ai-body {
  font-size: 12px;
  line-height: 1.4;
  color: #BFBFBF;
  white-space: pre-wrap;
}
.fpr-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(230,230,230,.22);
  background: transparent;
  color: #E6E6E6;
  border-radius: 2px;
}
.fpr-tag.on {
  border-color: #E92A2C;
  color: #fff;
  background: rgba(233,42,44,.18);
}
.fpr-tag-empty { font-size: 12px; color: #888; font-style: italic; line-height: 1.35; }

.fpr-print-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 7.5in;
  background: #fff;
}

@media (min-width: 720px) {
  .fpr-modal { align-items: center; padding: 24px; }
  .fpr-dialog { border-radius: 4px; max-height: 90vh; }
}
