/* PicAltScan: styles that exist only in this tool. Shared look: ../../shared/css/style.css */

/* Page shell: a one-screen cockpit on desktop; stacked and scrolling below 1024px. */

html, body { min-height: 100%; }

.app-shell { min-height: 100vh; min-height: 100dvh; }

@media (min-width: 1024px) {
  html, body { height: 100%; overflow: hidden; }

  .app-shell { height: 100vh; height: 100dvh; }
}

/* Product images: the drop box with its file list (same box as ScopeLine's documents) */

.well-stack { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }

.doc-list { display: flex; flex-direction: column; gap: 6px; }

.doc-list[hidden] { display: none; }

.drop-hint { margin: auto; max-width: 260px; text-align: center; color: #94a3b8; font-size: 10pt; line-height: 1.5; }

.drop-hint[hidden] { display: none; }

.file-row {
  --accent: #6366f1;
  --accent-soft: #eef2ff;
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px;
}

.file-row__thumb { flex: none; width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: #f1f5f9; }

.file-row__name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #334155; font-size: 12px; font-weight: 600;
}

.doc-card__kind {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-card__remove {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.doc-card__remove:hover,
.doc-card__remove:focus-visible { background: var(--accent-soft); color: var(--accent); }

.crystal-well-3d.is-drop-target {
  border-color: #6366f1;
  border-style: dashed;
  background: #eef2ff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Results list: one card per image */

.alt-card {
  display: flex; gap: 10px; padding: 10px 12px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px;
}

.alt-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f1f5f9; border: 1px solid #e2e8f0; }

.alt-badge {
  flex-shrink: 0; font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 1px 7px; border-radius: 6px; white-space: nowrap; margin-top: 2px;
}
.alt-missing { background: #ffe4e6; color: #be123c; }
.alt-weak { background: #fef3c7; color: #b45309; }
.alt-ok { background: #d1fae5; color: #047857; }
.alt-new { background: #e0e7ff; color: #4338ca; }

.alt-current { font-size: 9.5pt; color: #475569; line-height: 1.4; overflow-wrap: anywhere; }

.alt-current.is-replaced { color: #94a3b8; text-decoration: line-through; }

p.alt-written { font-size: 10pt; color: #1e293b; line-height: 1.4; overflow-wrap: anywhere; }

p.alt-written.is-off { color: #94a3b8; }

.alt-count { margin-left: 6px; font-size: 8pt; font-weight: 700; color: #10b981; font-variant-numeric: tabular-nums; white-space: nowrap; }

.alt-count.is-over { color: #e11d48; }

.alt-hint { font-size: 8.5pt; color: #b45309; line-height: 1.35; }

.alt-error { font-size: 8.5pt; font-weight: 600; color: #e11d48; }

.alt-chip { font-size: 8pt; font-weight: 600; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.task-btn { color: #94a3b8; font-size: 11pt; line-height: 1; padding: 1px 3px; }
.task-btn:hover { color: #4f46e5; }
.task-btn:disabled { opacity: 0.35; cursor: default; color: #94a3b8; }

.alt-accept.is-on { color: #10b981; font-weight: 700; }

/* Print / PDF: the alt-text report. */

.print-only { display: none; }

@media print {
  @page { margin: 12mm; size: letter portrait; }

  html, body, main, main > section, main section > div, #resultList {
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; position: static !important; display: block !important;
    background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;
  }
  #toolHeader, #outputLockOverlay, #exampleBadge, #countText, .task-btn, .no-print { display: none !important; }

  .print-only { display: block !important; white-space: pre-wrap; font-size: 11pt; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
  .alt-card { display: flex !important; break-inside: avoid; border: 1px solid #cbd5e1 !important; margin-bottom: 8px; padding: 8px 10px !important; }
}
