:root {
  --ink: #19324d;
  --muted: #68788a;
  --line: #e5ebf1;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --blue: #2563eb;
}

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell { max-width: 1120px; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; color: #fff; background: var(--ink); font-size: 18px;
}
.brand-name { font-weight: 700; letter-spacing: -.02em; }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.045em; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 1.06rem; }
.step-card, .upload-card, .result-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: 0 14px 38px rgba(25,50,77,.05);
}
.tool-card {
  display: flex; align-items: center; gap: 16px; min-height: 154px; height: 100%; padding: 24px;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: 0 14px 38px rgba(25,50,77,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card[href]:hover { transform: translateY(-3px); border-color: #b8cdfa; box-shadow: 0 18px 42px rgba(25,50,77,.1); }
.tool-card-disabled { color: #718096; background: #fafbfd; }
.tool-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 16px; font-size: 21px; }
.tool-icon-blue { color: #2563eb; background: #eaf1ff; }
.tool-icon-green { color: #15946a; background: #e5f7ef; }
.tool-icon-purple { color: #7c4dce; background: #f0eaff; }
.tool-content { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.tool-content strong { font-size: 1.05rem; }
.tool-content span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tool-content small { color: #8895a4; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tool-arrow { color: #91a0b0; font-size: .9rem; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf1ff; color: var(--blue); font-weight: 700; }
.drop-zone {
  border: 1.5px dashed #bbc9d8; border-radius: 16px; background: #f9fbfd;
  transition: border-color .2s, background .2s;
}
.drop-zone:focus-within, .drop-zone:hover { border-color: var(--blue); background: #f5f8ff; }
.drop-zone.is-dragging { border-color: var(--blue); background: #eaf1ff; box-shadow: inset 0 0 0 2px rgba(49, 94, 251, .12); }
.drop-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 15px; background: #eaf1ff; color: var(--blue); font-size: 22px; }
.small-muted { color: var(--muted); font-size: .9rem; }
.progress { height: 12px; background: #e9eff5; }
.progress-bar { transition: width .35s ease; }
.status-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eaf1ff; color: var(--blue); }
.format-table th { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.format-table td { font-size: .92rem; }
.scan-list-card { background: #fbfcfe; border-color: var(--line) !important; }
.scan-list-wrap { max-height: 260px; overflow: auto; }
.scan-list-wrap thead { position: sticky; top: 0; z-index: 1; background: #fbfcfe; }
.scan-list-wrap th { color: var(--muted); font-size: .78rem; }
.scan-list-wrap td { padding-top: .4rem; padding-bottom: .4rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: #1e4fbd; --bs-btn-hover-border-color: #1e4fbd; }
.footer-note { color: #7c8997; font-size: .82rem; }

@media (max-width: 575.98px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .upload-card { padding: 1.25rem !important; }
}
