/* TrustNow 공통 — 문서 검증 사용자 화면 보조 레이아웃 */
:root {
  color-scheme: dark;
  --tn-bg: #0b1220;
  --tn-card: #121c2f;
  --tn-bd: #243152;
  --tn-txt: #e8eefc;
  --tn-muted: #8fa3c4;
  --tn-accent: #38bdf8;
  --tn-ok: #22c55e;
  --tn-warn: #f59e0b;
  --tn-bad: #f87171;
}

.trustnow-body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--tn-bg);
  color: var(--tn-txt);
  line-height: 1.45;
}

.verify-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.verify-hero h1 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.verify-hero p {
  margin: 0;
  color: var(--tn-muted);
  font-size: 0.92rem;
}

.verify-hero a {
  color: var(--tn-accent);
}

.verify-card {
  background: var(--tn-card);
  border: 1px solid var(--tn-bd);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  margin-top: 1rem;
}

.verify-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.verify-card > p:first-of-type {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--tn-muted);
}

.verify-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.verify-upload-row input[type="file"] {
  flex: 1;
  min-width: 180px;
  font-size: 0.85rem;
}

.verify-upload-row button,
.verify-card button[type="button"] {
  border: 1px solid var(--tn-bd);
  background: #1a2740;
  color: var(--tn-txt);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.verify-upload-row button:hover,
.verify-card button[type="button"]:hover:not(:disabled) {
  border-color: var(--tn-accent);
}

.verify-status-text {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--tn-muted);
  min-height: 1.2em;
}

.verify-status-text.is-error {
  color: #fecaca;
}

.verify-qr-preview video {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  border: 1px solid var(--tn-bd);
  background: #000;
  display: block;
  margin-bottom: 0.75rem;
}

.verify-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .verify-identity-grid {
    grid-template-columns: 1fr;
  }
}

.verify-stat {
  background: #0d1526;
  border: 1px solid var(--tn-bd);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.verify-stat-wide {
  grid-column: 1 / -1;
}

.verify-stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--tn-muted);
  margin-bottom: 0.25rem;
}

.verify-stat strong {
  font-size: 0.95rem;
  word-break: break-all;
}

.verify-helper-text {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: var(--tn-muted);
}

.verify-helper-text a {
  color: var(--tn-accent);
}

#verifySensitivitySelect {
  width: 100%;
  max-width: 280px;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--tn-bd);
  background: #0d1526;
  color: var(--tn-txt);
}

.verify-run-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.verify-run-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #0e7490;
  background: linear-gradient(180deg, #155e75, #134e5c);
  color: #fff;
  cursor: pointer;
}

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

.verify-decision-box {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--tn-bd);
}

.verify-decision-neutral {
  background: #0d1526;
}

.verify-decision-allow {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.verify-decision-deny {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}

.verify-decision-stepup {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
}

.verify-decision-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--tn-muted);
  margin-bottom: 0.35rem;
}

.verify-decision-text {
  font-size: 1.15rem;
  font-weight: 700;
}

.verify-summary-box h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.verify-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.verify-summary-row span {
  color: var(--tn-muted);
}

.verify-summary-row-block {
  grid-template-columns: 110px 1fr;
}

.verify-summary-row-block strong {
  white-space: pre-wrap;
  word-break: break-word;
}

.verify-summary-doc-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tn-bd);
}

.verify-summary-doc-box h3 {
  margin: 0 0 0.5rem;
}

#errorBanner {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #3f1d25;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
