:root {
  --brand-navy: #10243e;
  --brand-ink: #172033;
  --brand-teal: #0f8b8d;
  --brand-green: #2e7d32;
  --brand-sky: #e9f5f7;
  --brand-line: #d8dee8;
  --brand-muted: #6b7280;
  --page-bg: #f5f7fa;
}

* {
  letter-spacing: 0;
}

body {
  background: var(--page-bg);
  color: var(--brand-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
}

body.is-embedded {
  background: #fff;
}

.wizard-app {
  min-height: 100vh;
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 3vw, 2rem);
}

.wizard-container {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
}

.wizard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wizard-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.wizard-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--brand-muted);
  max-width: 42rem;
}

.about-tool-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.25rem;
  color: var(--brand-muted);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #c5ced9;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.progress-step.active .progress-dot,
.progress-step.completed .progress-dot {
  border-color: var(--brand-teal);
  background: var(--brand-teal);
}

.progress-step.active {
  color: var(--brand-navy);
}

.progress-step.completed {
  color: var(--brand-teal);
}

.progress-connector {
  flex: 1 1 2rem;
  min-width: 1.25rem;
  height: 2px;
  margin: 0 0.15rem;
  background: #dde3ea;
}

.progress-step.completed + .progress-connector {
  background: var(--brand-teal);
}

.wizard-shell {
  width: 100%;
}

.wizard-panel,
.content-block,
.result-card {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff;
}

.wizard-panel {
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.section-title-compact {
  margin-bottom: 1rem;
}

.section-title-compact h2 {
  font-size: 1.15rem;
}

.section-title-compact p {
  font-size: 0.88rem;
}

.wizard-actions-compact {
  margin-top: 1rem;
}

.step1-fields .form-control {
  padding: 0.6rem 0.75rem;
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.results-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.result-card {
  padding: 1rem 1.1rem;
  min-height: 8rem;
}

.result-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
}

.result-card h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--brand-navy);
}

.result-card-body {
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-card-body .result-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.result-card.is-gated {
  opacity: 0.45;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.plan-upgrade-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
}

.plan-gate-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  z-index: 2;
}

.plan-gate-content {
  max-width: 22rem;
  padding: 1.25rem;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(16, 36, 62, 0.12);
}

.plan-gate-content p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--brand-muted);
}

.admin-diagnostics {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--brand-teal);
  border-radius: 12px;
  background: #f8fafc;
}

.admin-diagnostics h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-navy);
}

.admin-diagnostics-body {
  font-size: 0.82rem;
  font-family: ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.about-list li::before {
  background: var(--brand-teal);
}

.about-list-warn li::before {
  background: #e67e22;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.section-title {
  margin-bottom: 1.4rem;
}

.section-title h2,
.content-block h3,
.lead-panel h3 {
  margin: 0 0 0.4rem;
  color: var(--brand-navy);
  font-size: 1.35rem;
}

.section-title p,
.lead-panel p {
  margin: 0;
  color: var(--brand-muted);
}

.form-label {
  font-weight: 700;
  color: var(--brand-navy);
}

.form-control,
.form-select {
  border-color: var(--brand-line);
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 0.2rem rgba(15, 139, 141, 0.12);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  padding: 0.72rem 1rem;
}

.btn-primary {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0b7375;
  border-color: #0b7375;
}

.btn-outline-primary {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-outline-primary:hover {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-accent {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

.btn-accent:hover {
  background: #256a29;
  border-color: #256a29;
  color: #fff;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.result-panel {
  padding: 1rem;
  border: 1px solid #b7dce1;
  border-radius: 8px;
  background: #f2fbfc;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.summary-card {
  min-height: 112px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.summary-card span {
  display: block;
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 0.6rem;
  color: var(--brand-navy);
  font-size: 1.25rem;
}

.summary-card.total {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.summary-card.total span,
.summary-card.total strong {
  color: #fff;
}

.content-block {
  height: 100%;
  padding: 1.15rem;
}

.content-block h4 {
  margin-top: 1.2rem;
  color: var(--brand-navy);
  font-size: 1rem;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f6;
}

.clean-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--brand-green);
}

.clean-list.muted li::before {
  background: var(--brand-teal);
}

.notes {
  margin-top: 1rem;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.table {
  --bs-table-border-color: #e7ecf2;
}

.table thead th {
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.86rem;
}

.lead-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--brand-navy);
  color: #fff;
}

.lead-panel h3,
.lead-panel p {
  color: #fff;
}

.modal-content {
  border: 0;
  border-radius: 8px;
}

.toast {
  border: 0;
  color: #fff;
  background: var(--brand-navy);
}

@media (max-width: 991.98px) {
  .lead-panel,
  .results-header,
  .wizard-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-dashboard {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .wizard-app {
    padding: 0.65rem;
  }

  .wizard-progress {
    padding: 0.5rem;
  }

  .progress-label {
    font-size: 0.75rem;
  }

  .progress-connector {
    min-width: 0.5rem;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .results-actions {
    width: 100%;
  }

  .results-actions .btn {
    flex: 1;
  }
}

.compliance-disclaimer-banner {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0c36d;
  border-radius: 10px;
  background: #fff8e8;
  color: #5c4a1f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.compliance-disclaimer-banner strong {
  color: #8a5a00;
}

.compliance-notice {
  margin-bottom: 1rem;
  border-radius: 10px;
  line-height: 1.45;
}

.compliance-notice-body {
  padding: 0.75rem 1rem;
}

.compliance-notice-headline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.compliance-notice-detail {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.compliance-notice-meta {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.9;
}

.compliance-notice-responsibility {
  margin: 0;
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.compliance-notice--high {
  border: 1px solid #b8dcc0;
  background: #f3faf5;
  color: #1b4332;
}

.compliance-notice--high .compliance-notice-headline {
  color: #2e7d32;
}

.compliance-notice--medium {
  border: 1px solid #f0c36d;
  background: #fff8e8;
  color: #5c4a1f;
}

.compliance-notice--medium .compliance-notice-headline {
  color: #c05600;
}

.compliance-notice--low {
  border: 2px solid #e57373;
  background: #fdecea;
  color: #7f1d1d;
}

.compliance-notice--low .compliance-notice-body {
  padding: 0.9rem 1rem;
}

.compliance-notice--low .compliance-notice-headline {
  color: #b71c1c;
  font-size: 1rem;
}

.compliance-notice--low .compliance-notice-detail {
  font-weight: 600;
}

.translation-panel {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #f8fafc;
}

.translation-panel-title {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.translation-text {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--brand-line);
  font-size: 0.95rem;
  line-height: 1.45;
}

.translation-engine-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.classification-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 2px solid var(--brand-line);
}

.classification-confidence .confidence-value {
  font-size: 1.5rem;
}

.confidence-high {
  border-color: var(--brand-green);
  background: #edf7ee;
}

.confidence-high .confidence-value {
  color: var(--brand-green);
}

.confidence-medium {
  border-color: #e67e22;
  background: #fff4e8;
}

.confidence-medium .confidence-value {
  color: #c05600;
}

.confidence-low {
  border-color: #c62828;
  background: #fdecea;
}

.confidence-low .confidence-value {
  color: #c62828;
}

.classification-risk-warning,
.cn-fallback-warning {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.classification-risk-warning {
  background: #fdecea;
  color: #b71c1c;
}

.cn-fallback-warning {
  background: #fff3e0;
  color: #e65100;
}

.source-label {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: var(--brand-muted);
}

.duty-disclaimer,
.vat-explanation {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.45;
}

.measure-sample-notice {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a5a00;
  background: #fff8e8;
}

.lead-success-panel {
  border-color: #9fd4a8;
  background: #edf7ee;
  color: var(--brand-navy);
}

.lead-success-panel strong {
  color: var(--brand-green);
}

/* CN classification results — customer-facing UX (V2.5) */
.cn-results-ux {
  display: grid;
  gap: 1.25rem;
}

.cn-primary-card {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border: 2px solid var(--brand-teal);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 139, 141, 0.08);
}

.cn-primary-card.is-selected {
  border-color: var(--brand-green);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
}

.cn-confidence-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  border: 2px solid var(--brand-line);
  background: #f8fafc;
  line-height: 1.1;
}

.cn-confidence-badge-value {
  font-size: 1.65rem;
  font-weight: 800;
}

.cn-confidence-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.cn-confidence-badge-high {
  border-color: var(--brand-green);
  background: #edf7ee;
}

.cn-confidence-badge-high .cn-confidence-badge-value {
  color: var(--brand-green);
}

.cn-confidence-badge-medium {
  border-color: #e67e22;
  background: #fff4e8;
}

.cn-confidence-badge-medium .cn-confidence-badge-value {
  color: #c05600;
}

.cn-confidence-badge-low {
  border-color: #c62828;
  background: #fdecea;
}

.cn-confidence-badge-low .cn-confidence-badge-value {
  color: #c62828;
}

.cn-primary-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-teal);
}

.cn-code-display {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 800;
  color: var(--brand-navy);
  word-break: break-word;
}

.cn-official-desc,
.cn-combined-desc {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-ink);
}

.cn-terminal-desc {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--brand-muted);
}

.cn-terminal-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.cn-hierarchy-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--brand-line);
}

.cn-hierarchy-meta-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.cn-hierarchy-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-muted);
}

.cn-hierarchy-meta dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--brand-ink);
}

.cn-meta-code {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.cn-meta-text {
  display: block;
  margin-top: 0.15rem;
}

.cn-meta-confidence {
  font-weight: 800;
}

.cn-meta-confidence.cn-confidence-badge-high {
  color: var(--brand-green);
}

.cn-meta-confidence.cn-confidence-badge-medium {
  color: #c05600;
}

.cn-meta-confidence.cn-confidence-badge-low {
  color: #c62828;
}

.cn-hierarchy-panel {
  margin: 0 0 0.75rem;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #fff;
}

.cn-hierarchy-panel summary {
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--brand-teal);
}

.cn-hierarchy-list {
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem 1.5rem;
  list-style: decimal;
}

.cn-hier-row {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cn-hier-label {
  display: inline-block;
  min-width: 4.2rem;
  font-weight: 800;
  color: var(--brand-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.cn-hier-code {
  display: inline-block;
  margin: 0 0.35rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.cn-hier-desc {
  display: block;
  margin-top: 0.1rem;
  color: var(--brand-ink);
}

.cn-alt-body .cn-hierarchy-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.cn-alt-body .cn-hierarchy-panel {
  margin-top: 0.45rem;
}

.cn-simple-why {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--brand-sky);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cn-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}

.cn-alternates-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.cn-alt-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cn-alt-item {
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: #fff;
}

.cn-alt-item.is-selected {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 1px var(--brand-teal);
}

.cn-alt-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
}

.cn-alt-confidence {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--brand-line);
}

.cn-alt-confidence-high {
  color: var(--brand-green);
  border-color: #a5d6a7;
  background: #edf7ee;
}

.cn-alt-confidence-medium {
  color: #c05600;
  border-color: #ffcc80;
  background: #fff4e8;
}

.cn-alt-confidence-low {
  color: #c62828;
  border-color: #ef9a9a;
  background: #fdecea;
}

.cn-alt-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cn-alt-code {
  font-size: 0.95rem;
  word-break: break-word;
}

.cn-alt-desc {
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.4;
}

.cn-technical-analysis {
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: #f8fafc;
}

.cn-technical-analysis summary {
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
}

.cn-technical-body {
  padding: 0 0.9rem 0.85rem;
  border-top: 1px solid var(--brand-line);
}

.cn-technical-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--brand-muted);
  word-break: break-word;
}

.cn-technical-list li + li {
  margin-top: 0.45rem;
}

.cn-results-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--brand-muted);
}

.cn-source-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.cn-disambiguation-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: #fff8e8;
}

.cn-disambig-prompt {
  margin: 0 0 0.5rem;
}

.cn-disambig-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.cn-disambig-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}

@media (max-width: 576px) {
  .cn-primary-card {
    padding: 1rem 0.85rem;
  }

  .cn-alt-label {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .cn-alt-confidence {
    justify-self: start;
  }
}

.cn-suggestions-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cn-suggestion-item {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
  cursor: pointer;
}

.cn-suggestion-item.is-selected {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 1px var(--brand-teal);
}

.cn-suggestion-item label {
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  margin: 0;
}

.cn-suggestion-meta {
  font-size: 0.86rem;
  color: var(--brand-muted);
}

.route-notice-panel {
  border-color: #9fd4e8;
  background: #eaf6f7;
  color: var(--brand-navy);
}

.classification-manual-notice {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: #fff8e8;
  color: #8a5a00;
  font-size: 0.9rem;
  font-weight: 600;
}

.export-auditor-shell .metric-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  min-height: 110px;
}

.export-auditor-shell .metric-label {
  display: block;
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.export-auditor-shell .metric-value {
  display: block;
  color: var(--brand-navy);
  font-size: 1.65rem;
  line-height: 1.1;
}

.export-auditor-upload-zone input[type="file"] {
  padding: 0.85rem;
  border: 1px dashed var(--brand-line);
  background: #fff;
}

.export-auditor-json {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Export Classification Wizard V2 */
.classification-v2 .wizard-container {
  max-width: 920px;
}

.classification-v2 .legal-strip {
  font-size: 0.82rem;
  color: #5c4a1f;
  background: #fffbeb;
  border: 1px solid #f0e6c8;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.classification-v2 .wizard-trust {
  background: linear-gradient(135deg, #f0f7fa 0%, #f8fafc 100%);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.classification-v2 .trust-stat-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.classification-v2 .trust-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-teal);
}

.classification-v2 .trust-stat-label {
  font-size: 0.9rem;
  color: var(--brand-navy);
  font-weight: 600;
}

.classification-v2 .trust-differentiator {
  font-size: 0.92rem;
  color: var(--brand-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.classification-v2 .trust-process {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--brand-navy);
  display: grid;
  gap: 0.25rem;
}

.classification-v2 .classification-input-panel {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.classification-v2 .input-examples {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.classification-v2 .classification-results {
  display: grid;
  gap: 0.85rem;
}

.classification-v2 .result-hero {
  background: #fff;
  border: 2px solid var(--brand-teal);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.classification-v2 .commodity-description {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.4;
}

.classification-v2 .hierarchy-path {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--brand-muted);
  line-height: 1.5;
}

.classification-v2 .hierarchy-sep {
  margin: 0 0.35rem;
  color: #94a3b8;
}

.classification-v2 .hierarchy-code {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: var(--brand-navy);
}

.classification-v2 .results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.classification-v2 .result-card-wide {
  grid-column: 1 / -1;
}

.classification-v2 .result-card-compact {
  padding: 0.85rem 1rem;
}

.classification-v2 .confidence-source-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.classification-v2 .why-explanation {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--brand-navy);
}

.classification-v2 .attr-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.classification-v2 .attr-check {
  color: var(--brand-green);
  font-weight: 700;
}

.classification-v2 .source-checklist li {
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.classification-v2 .source-used {
  color: var(--brand-green);
  font-weight: 600;
}

.classification-v2 .source-unused {
  color: var(--brand-muted);
}

.classification-v2 .source-icon {
  display: inline-block;
  width: 1.1rem;
}

.classification-v2 .source-note {
  font-size: 0.8rem;
  font-weight: 400;
}

.classification-v2 .compliance-notice--results {
  border: 1px solid #d4a574;
  background: #fff8f0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.classification-v2 .compliance-notice-headline {
  font-weight: 700;
  color: #8a5a00;
  font-size: 0.92rem;
}

.classification-v2 .compliance-notice-body {
  font-size: 0.86rem;
  color: #5c4a1f;
  line-height: 1.45;
}

.classification-v2 .alt-desc {
  color: var(--brand-muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .classification-v2 .results-grid {
    grid-template-columns: 1fr;
  }
}

.classification-v2 .result-section {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.classification-v2 .result-section h2 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
  margin: 0 0 0.5rem;
}

.classification-v2 .recommended-cn-code {
  font-size: 2rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--brand-navy);
  margin: 0;
  letter-spacing: 0.06em;
}

.classification-v2 .confidence-band {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0;
}

.classification-v2 .confidence-band-high {
  background: #edf7ee;
  color: #2e7d32;
  border: 1px solid #b8dcc0;
}

.classification-v2 .confidence-band-medium {
  background: #fff8e8;
  color: #c05600;
  border: 1px solid #f0c36d;
}

.classification-v2 .confidence-band-low {
  background: #fdecea;
  color: #b71c1c;
  border: 2px solid #e57373;
}

.classification-v2 .research-source-label {
  margin: 0;
  font-weight: 600;
  color: var(--brand-navy);
}

.classification-v2 .manual-recommendation {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fdecea;
  border: 2px solid #e57373;
  color: #b71c1c;
  font-weight: 700;
}

.classification-v2 .compliance-notice--info {
  border: 1px solid #b8dcc0;
  background: #f3faf5;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.classification-v2 .plan-usage-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin-bottom: 1rem;
}

.classification-v2 .alt-codes-list code {
  font-size: 1rem;
  color: var(--brand-navy);
}

.classification-v2 .result-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.classification-v2 .result-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
  margin: 0 0 0.5rem;
}

.classification-v2 .result-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-muted);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.classification-v2 .classification-loading {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: #f8fafc;
}

.classification-v2 .loading-stages {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.classification-v2 .loading-stage {
  font-size: 0.9rem;
  color: var(--brand-muted);
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
}

.classification-v2 .loading-stage::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

.classification-v2 .loading-stage-active {
  color: var(--brand-navy);
  font-weight: 600;
}

.classification-v2 .loading-stage-active::before {
  content: "◉";
  color: var(--brand-teal);
}

.classification-v2 .loading-stage-done {
  color: var(--brand-green);
}

.classification-v2 .loading-stage-done::before {
  content: "✓";
  color: var(--brand-green);
}

.classification-v2 .auditor-actions {
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--brand-teal);
  border-radius: 12px;
  background: #f0fdfa;
}

.classification-v2 .alt-recommended {
  font-size: 0.85rem;
  color: var(--brand-teal);
  font-weight: 600;
}

