/* Tool page — shares styles.css tokens; this file styles the lookup flow. */

.tool { max-width: 720px; margin: 0 auto; padding: 30px 24px 80px; }
.tool h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.5px; }
.tool-sub { color: var(--muted); margin: 0 0 26px; }

.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.25s;
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.5), rgba(17, 23, 34, 0.85));
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 180, 214, 0.06), rgba(17, 23, 34, 0.9));
  box-shadow: 0 0 30px rgba(59, 180, 214, 0.12);
}
.dropzone.drag { transform: scale(1.01); }
.dz-ico { font-size: 40px; margin-bottom: 10px; }
.dz-hint { color: var(--muted); font-size: 14px; margin-top: 6px; }
.link-btn { background: none; border: none; color: var(--accent-text); cursor: pointer; font-size: 14px; padding: 0; }
.link-btn:hover { color: var(--accent); }

.tool-status {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  animation: rise-in 0.2s var(--ease-out);
}
.tool-status.error { background: #1f1314; border-color: #3d1f20; border-left-color: #e06b5c; color: #f1a3a3; }
.spinner {
  width: 15px; height: 15px; border: 2px solid var(--border-strong);
  border-top-color: var(--accent); border-right-color: var(--accent);
  border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result { margin-top: 26px; animation: rise-in 0.3s var(--ease-out); }
.result-head { display: flex; gap: 16px; align-items: flex-start; }
.thumb {
  width: 110px; height: 110px; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--border-strong); background: #000; flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 180, 214, 0.1);
}
.result-id { flex: 1; min-width: 0; }
.result-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--faint); font-weight: 600; }
.card-title { font-size: 16px; font-weight: 700; margin: 4px 0 12px; }
.research { display: flex; gap: 8px; }
.research input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.research input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 180, 214, 0.12);
}

.summary {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 6px; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.55), rgba(17, 23, 34, 0.9));
  border: 1px solid var(--border); border-radius: 14px;
  animation: rise-in 0.3s var(--ease-out);
}
.sum-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--faint); font-weight: 600; }
.sum-median {
  font-size: 30px; font-weight: 800; color: var(--green);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(70, 192, 138, 0.25);
}
.sum-right { text-align: right; }
.sum-range { color: var(--muted); font-size: 14px; }
.src-tag { font-size: 11px; color: var(--faint); margin-top: 4px; }
.src-tag.active { color: #fcd34d; }

.sales { list-style: none; padding: 0; margin: 8px 0 0; }
.sale {
  display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border);
  border-radius: 6px;
  animation: rise-in 0.28s var(--ease-out) backwards;
  transition: background 0.15s, transform 0.15s var(--ease-out);
}
.sale:nth-child(1) { animation-delay: 0.02s; }
.sale:nth-child(2) { animation-delay: 0.05s; }
.sale:nth-child(3) { animation-delay: 0.08s; }
.sale:nth-child(4) { animation-delay: 0.11s; }
.sale:nth-child(5) { animation-delay: 0.14s; }
.sale:hover { background: rgba(255, 255, 255, 0.025); transform: translateX(2px); }
.sale img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: #000; flex-shrink: 0; border: 1px solid var(--border); }
.sale-body { flex: 1; min-width: 0; }
.sale-title { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sale-meta { display: flex; justify-content: space-between; margin-top: 4px; align-items: center; }
.sale-price { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.sale-date { color: var(--muted); font-size: 12px; }
.sale a { font-size: 12px; }

.hidden { display: none !important; }
