/* ============================================================
   OBIA — evidence intake tray styles (step 4)
   Loaded after styles.css. Additive only.
   ============================================================ */

.intake-tray {
  position: fixed; z-index: 70; top: 0; right: 0;
  width: min(440px, 96vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: rgba(8, 14, 22, .97);
  border-left: 1px solid var(--card-line, rgba(126,170,208,.22));
  box-shadow: -30px 0 90px rgba(0,0,0,.65);
  transform: translateX(102%);
  transition: transform .28s ease;
}
.intake-tray.open { transform: none; }

.intake-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--inner-line, rgba(126,170,208,.13));
}
.intake-head h2 {
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.intake-head > div { min-width: 0; }
.intake-eyebrow { margin: 0 0 4px; color: var(--cyan, #5cc8f0); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.intake-intro { max-width: 340px; margin: 7px 0 0; color: var(--dim, #7f95aa); font-size: 11px; line-height: 1.45; }
.intake-close {
  width: 26px; height: 26px; border: 0; background: transparent;
  color: var(--dim, #7f95aa); font-size: 19px; line-height: 1; cursor: pointer;
}
.intake-close:hover { color: var(--ink, #dfe9f3); }

.intake-actions { flex: 0 0 auto; display: flex; gap: 8px; padding: 13px 18px 0; }

.intake-btn {
  padding: 9px 13px;
  border: 1px solid var(--card-line, rgba(126,170,208,.22)); border-radius: 9px;
  background: rgba(92, 200, 240, .06); color: var(--cyan, #5cc8f0);
  font-size: 12px; cursor: pointer;
  transition: background .16s;
}
.intake-btn:hover { background: rgba(92, 200, 240, .13); }
.intake-btn:disabled { opacity: .5; cursor: default; }
.intake-btn.primary {
  border-color: rgba(224, 164, 78, .5);
  background: rgba(224, 164, 78, .16); color: #ffd79a; font-weight: 600;
}
.intake-btn.primary:hover { background: rgba(224, 164, 78, .26); }
.intake-btn.quiet { background: transparent; color: var(--muted, #8fa5b9); }

.intake-drop-hint {
  flex: 0 0 auto;
  margin: 12px 18px; padding: 14px;
  border: 1px dashed var(--card-line, rgba(126,170,208,.22)); border-radius: 11px;
  color: var(--dim, #7f95aa); font-size: 12px; line-height: 1.55;
}
body.intake-dragging .intake-drop-hint {
  border-color: var(--cyan, #5cc8f0);
  color: var(--cyan, #5cc8f0);
  background: rgba(92, 200, 240, .05);
}

.intake-paste { margin: 0 18px 12px; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.intake-paste h3 { grid-column: 1 / -1; margin: 0; color: var(--muted, #8fa5b9); font-size: 11px; font-weight: 500; }
.intake-paste textarea { grid-column: 1 / -1; resize: vertical; min-height: 66px; }
.intake-paste select, .intake-paste textarea {
  padding: 8px; border: 1px solid var(--inner-line, rgba(126,170,208,.13)); border-radius: 8px;
  background: #0b1520; color: var(--ink, #dfe9f3); font: inherit; font-size: 12px;
}
.intake-caveat { margin: 0 18px 12px; color: var(--dim, #7f95aa); font-size: 10.5px; line-height: 1.45; }

.intake-list {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 0 18px 18px; display: grid; gap: 12px; align-content: start;
  scrollbar-width: thin;
}

.intake-card {
  border: 1px solid var(--inner-line, rgba(126,170,208,.13)); border-radius: 12px;
  background: rgba(255,255,255,.014);
  padding: 13px;
}
.ic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ic-name { font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.ic-size { color: var(--dim, #7f95aa); font-size: 11px; white-space: nowrap; }

.ic-status { margin: 6px 0 0; color: var(--muted, #8fa5b9); font-size: 11.5px; }
.ic-status[data-tone="error"] { color: var(--red, #e8756a); }
.ic-status[data-tone="hold"]  { color: var(--amber, #e0a44e); }
.ic-status[data-tone="ok"]    { color: var(--teal, #5fd39a); }
.ic-status[data-tone="new"] { color: var(--cyan, #5cc8f0); }
.ic-status[data-tone="duplicate"] { color: var(--dim, #7f95aa); }
.ic-status[data-tone="updated"], .ic-status[data-tone="conflict"] { color: var(--amber, #e0a44e); }
.ic-status[data-tone="review"] { color: var(--teal, #5fd39a); }

.ic-body { margin-top: 10px; display: grid; gap: 10px; }
.ic-labels { display: flex; flex-wrap: wrap; gap: 5px; }
.ic-label { padding: 3px 7px; border: 1px solid rgba(92, 200, 240, .2); border-radius: 999px; color: var(--cyan, #5cc8f0); font-size: 9.5px; }

.ic-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  margin: 0; font-size: 11px;
}
.ic-facts dt { color: var(--dim, #7f95aa); white-space: nowrap; }
.ic-facts dd { margin: 0; color: var(--muted, #8fa5b9); overflow-wrap: anywhere; }
.ic-receipt { padding: 10px; border: 1px solid rgba(95, 211, 154, .3); border-radius: 9px; background: rgba(95, 211, 154, .05); }

.ic-warning {
  margin: 0; padding: 8px 10px;
  border-left: 2px solid var(--amber, #e0a44e);
  background: rgba(224, 164, 78, .07);
  color: #f2dcb4; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere;
}
.ic-note { margin: 0; color: var(--muted, #8fa5b9); font-size: 11px; line-height: 1.45; }
.ic-dispatch { padding: 10px; border: 1px solid rgba(95, 211, 154, .28); border-radius: 9px; background: rgba(95, 211, 154, .05); }
.ic-dispatch strong { color: var(--teal, #5fd39a); font-size: 11px; }
.ic-dispatch p { margin: 5px 0; color: var(--muted, #8fa5b9); font-size: 11px; line-height: 1.45; }
.ic-dispatch code { color: var(--dim, #7f95aa); font-size: 10px; overflow-wrap: anywhere; }

.ic-preview-frame { width: 100%; height: 220px; border: 1px solid var(--inner-line, rgba(126,170,208,.13)); border-radius: 8px; background: #1a1d22; }
.ic-preview-img { max-width: 100%; max-height: 220px; border-radius: 8px; object-fit: contain; }

.ic-choices { display: flex; gap: 8px; flex-wrap: wrap; }

.ic-register { display: grid; gap: 10px; }
.ic-field span { display: block; margin-bottom: 4px; color: var(--dim, #7f95aa); font-size: 10.5px; }
.ic-field select, .ic-field input {
  width: 100%; padding: 8px;
  border: 1px solid var(--inner-line, rgba(126,170,208,.13)); border-radius: 8px;
  background: #0b1520; color: var(--ink, #dfe9f3); font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .intake-tray, .intake-btn { transition: none; }
}

/* ============================================================
   Reconciliation widget (recon-widget.js)
   ============================================================ */

.recon-rows { display: grid; gap: 0; }
.recon-note { margin: 0; padding: 12px 14px; color: var(--dim, #7f95aa); font-size: 12px; }
.recon-note[data-tone="error"] { color: var(--red, #e8756a); }
.recon-fact {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 14px; font-size: 11.5px;
  border-top: 1px solid var(--inner-line, rgba(126,170,208,.13));
}
.recon-fact:first-child { border-top: 0; }
.recon-fact .rf-k { color: var(--dim, #7f95aa); }
.recon-fact .rf-v { color: var(--muted, #8fa5b9); text-align: right; overflow-wrap: anywhere; }
.recon-fact .rf-v[data-tone="warn"] { color: var(--amber, #e0a44e); }
.recon-run { margin: 10px 14px 13px; }
