body.fastscan-v2 {
  background: #fff;
}

body.fastscan-v2 .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}

.tool-header-inner {
  width: 100%;
  max-width: 1040px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-header-name {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.tool-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-switch,
body.fastscan-v2 .nw-lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
}

.tool-switch a,
body.fastscan-v2 .nw-lang-switch button {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.tool-switch a.active,
body.fastscan-v2 .nw-lang-switch button.active {
  background: #101828;
  color: #fff;
}

body.fastscan-v2 .main {
  max-width: 1040px;
  padding-top: 0;
}

.tool-hero {
  padding: 38px 0 28px;
  border-bottom: 1px solid #f0f2f5;
}

.tool-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(29px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.tool-hero-lead {
  max-width: 790px;
  margin: 14px 0 0;
  color: #344054;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.tool-hero-sub {
  max-width: 790px;
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.purpose-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow: hidden;
}

.purpose-item {
  padding: 12px 14px;
  border-right: 1px solid #e4e7ec;
  background: #fff;
}

.purpose-item:last-child { border-right: 0; }
.purpose-item strong { display: block; font-size: 11px; }
.purpose-item span { display: block; margin-top: 2px; color: #667085; font-size: 10px; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 30px;
  padding: 30px 0 12px;
}

.tool-primary { min-width: 0; }

.workflow-section,
body.fastscan-v2 .workspace-panel,
body.fastscan-v2 .guide,
body.fastscan-v2 .faq-section {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid #e4e7ec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.workflow-section h2 {
  margin: 0;
  font-size: 20px;
}

.section-copy {
  margin: 5px 0 0;
  color: #667085;
  font-size: 12px;
}

.input-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.input-mode-card {
  padding: 15px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.input-mode-card.active {
  border-color: #8eb7ff;
  box-shadow: inset 0 0 0 1px #cfe0ff;
}

.input-mode-card strong {
  display: block;
  font-size: 14px;
}

.input-mode-card span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}

body.fastscan-v2 .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}

body.fastscan-v2 .tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid #e4e7ec;
  background: #fff;
}

body.fastscan-v2 .tab:last-child { border-right: 0; }
body.fastscan-v2 .tab.active {
  border-bottom: 0;
  background: #101828;
  color: #fff;
}

body.fastscan-v2 .compact-status {
  margin: -10px 0 24px !important;
  border: 0;
  border-left: 3px solid #98a2b3;
  border-radius: 0;
  background: #fff;
}

body.fastscan-v2 .workspace-intro {
  margin-bottom: 13px;
}

body.fastscan-v2 textarea {
  height: clamp(180px, 28vh, 310px);
  border-color: #d0d5dd;
  border-radius: 12px;
}

.input-label {
  display: block;
  margin: 0 0 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

body.fastscan-v2 .ocr-box {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px dashed #98b9f5;
  border-radius: 12px;
  background: #fff;
}

body.fastscan-v2 .file-row input[type="file"] {
  border-color: #d0d5dd;
  background: #fff;
}

body.fastscan-v2 button {
  border-radius: 10px;
}

body.fastscan-v2 .button-primary {
  border-color: #2563eb;
  background: #2563eb;
}

body.fastscan-v2 .button-primary:hover { background: #1d4ed8; }

body.input-photo .text-only { display: none !important; }
body.input-text .photo-only,
body.input-text .photo-entry { display: none !important; }

body.fastscan-v2 .results {
  margin-top: 18px;
}

body.fastscan-v2 .result-summary,
body.fastscan-v2 .empty-state,
body.fastscan-v2 .result-card,
body.fastscan-v2 .suggestion-box,
body.fastscan-v2 .guide-card,
body.fastscan-v2 .faq-section details,
body.fastscan-v2 .nw-donate {
  background: #fff;
}

body.fastscan-v2 .result-card {
  border-color: #e4e7ec;
}

body.fastscan-v2 .result-card.is-current-review {
  outline-color: #2563eb;
}

body.fastscan-v2 .notice {
  border: 0;
  border-left: 3px solid #f0b429;
  border-radius: 0;
  background: #fffdf8;
}

.tool-side {
  padding-left: 24px;
  border-left: 1px solid #e4e7ec;
}

.side-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e7ec;
}

.side-block:last-child { border-bottom: 0; }
.side-block h2 { margin: 0 0 8px; font-size: 14px; }
.side-block p,
.side-block li { color: #667085; font-size: 12px; }
.side-block ul { margin: 8px 0 0; padding-left: 18px; }

.route-card {
  display: block;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.route-card strong { display: block; color: #1d4ed8; font-size: 12px; }
.route-card span { display: block; margin-top: 2px; color: #667085; font-size: 10px; }

body.fastscan-v2 .nw-donate {
  border-color: #e4e7ec;
  box-shadow: none;
}

@media (max-width: 850px) {
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tool-side {
    padding: 24px 0 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .tool-header-inner,
  body.fastscan-v2 .main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .tool-header-name { display: none; }
  .tool-header-inner { justify-content: flex-end; }
  .tool-hero { padding-top: 27px; }
  .purpose-strip { grid-template-columns: 1fr; }
  .purpose-item {
    border-right: 0;
    border-bottom: 1px solid #e4e7ec;
  }
  .purpose-item:last-child { border-bottom: 0; }
  .input-mode-grid { grid-template-columns: 1fr; }
  body.fastscan-v2 .summary-grid { grid-template-columns: 1fr 1fr; }
}
