/* Phone Upload modal — QR code + live photo thumbnails.
   Loaded by phone-upload.js via LF_CSS_LOAD. */

.pu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.pu-modal {
  background: var(--lf-panel, #1a1d24);
  border: 1px solid var(--lf-border, #2a2e36);
  border-radius: 14px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.pu-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--lf-text-dim, #888);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.pu-close:hover { color: var(--lf-text, #eee); }
.pu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lf-text, #eee);
  margin: 0 0 16px 0;
}
.pu-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pu-qr-wrap img {
  border-radius: 8px;
  display: block;
}
.pu-url-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.pu-url-input {
  flex: 1;
  font-size: 11px;
  background: var(--lf-input-bg, #0f1115);
  border: 1px solid var(--lf-border, #2a2e36);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--lf-text-muted, #aaa);
  font-family: 'JetBrains Mono', monospace;
  min-width: 0;
}
.pu-copy-btn {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--lf-btn-bg, #2a2e36);
  color: var(--lf-text, #eee);
  border: 1px solid var(--lf-border, #2a2e36);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.pu-copy-btn:hover { background: var(--lf-panel-hover, #2e323c); }
.pu-status {
  text-align: center;
  font-size: 12px;
  color: var(--lf-text-dim, #888);
  margin-bottom: 12px;
}
.pu-status.has-photos {
  color: var(--lf-success, #34c759);
  font-weight: 600;
}
.pu-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.pu-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--lf-border, #2a2e36);
}
.pu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reusable attach bar — "Attach" + "Phone" button pair */
.pu-attach-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pu-attach-bar .pu-attach-btn,
.pu-attach-bar .pu-phone-btn {
  cursor: pointer;
}
.pu-attach-bar .pu-attach-status {
  font-size: 11px;
  color: var(--lf-text-dim, #888);
}
