/* image-board.css — "📷 From Image…" modal. LABEL: PILOT-READY.
   Visual language mirrors pdf-reader.css (same overlay/panel shape) so the
   two importers feel like one family. */

.imgb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}
.imgb-panel {
  background: var(--surface, #fff);
  color: var(--ink, #1a1a2e);
  width: min(560px, 100%);
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.imgb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, #e6e6ef);
}
.imgb-title { font-weight: 800; font-size: 1.05rem; }
.imgb-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-muted, #666);
  min-width: 44px;
  min-height: 44px;
}
.imgb-body { padding: 1rem; overflow: auto; }

.imgb-gate-lead { margin: 0 0 0.75rem; line-height: 1.45; }
.imgb-gate-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.imgb-gate-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.imgb-gate-check input { width: 20px; height: 20px; }

.imgb-gate-go,
.imgb-primary,
.imgb-secondary {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 1rem;
  font-size: 0.95rem;
}
.imgb-gate-go,
.imgb-primary {
  background: var(--brand-blue, #4f46e5);
  color: #fff;
  border: none;
  width: 100%;
}
.imgb-gate-go:disabled,
.imgb-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.imgb-secondary {
  background: transparent;
  border: 1.5px solid var(--border, #d0d0d0);
  color: var(--ink, #222);
}

.imgb-loading,
.imgb-error { padding: 1rem 0; line-height: 1.45; }
.imgb-error { color: #c0392b; font-weight: 600; }

.imgb-preview { display: flex; flex-direction: column; gap: 0.6rem; }
.imgb-thumb {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border, #e6e6ef);
  background: #faf9f6;
}
.imgb-fname {
  font-size: 0.82rem;
  color: var(--ink-muted, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.imgb-keynote {
  font-size: 0.85rem;
  line-height: 1.4;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}
.imgb-keynote-warn {
  background: rgba(232, 168, 56, 0.14);
  border: 1px solid var(--amber, #e8a838);
}
.imgb-actions { display: flex; gap: 0.5rem; }
.imgb-actions .imgb-secondary { flex: 0 0 auto; }
.imgb-actions .imgb-primary { flex: 1 1 auto; }
.imgb-status { font-size: 0.9rem; min-height: 1.2em; line-height: 1.4; }

@media (max-width: 480px) {
  .imgb-actions { flex-direction: column; }
  .imgb-actions .imgb-secondary,
  .imgb-actions .imgb-primary { width: 100%; }
}
