:root {
  color-scheme: light;
  --brand-blue: #0095cf;
  --brand-blue-dark: #006a9d;
  --brand-navy: #0d415c;
  --brand-green: #3bb54a;
  --ink: #17313f;
  --muted: #657983;
  --line: #dce6e8;
  --surface: #ffffff;
  --page: #f5f8f4;
  --soft-blue: #eef8fc;
  --error: #bd342b;
  --success: #19733b;
  --shadow: 0 24px 70px rgba(30, 68, 80, 0.11);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 18%, rgba(60, 181, 74, 0.09), transparent 26rem),
    radial-gradient(circle at 94% 12%, rgba(0, 149, 207, 0.11), transparent 30rem),
    var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.site-header {
  height: 82px;
  border-bottom: 1px solid rgba(211, 224, 225, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 5;
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 14px;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.language-switch button.is-active {
  color: #fff;
  background: var(--brand-blue-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 224px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.environment-badge {
  padding: 8px 13px;
  border: 1px solid #cde6ee;
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: #f3fbfd;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(470px, 0.95fr);
  gap: 60px;
  align-items: center;
  min-height: 430px;
}

.hero-copy {
  padding: 20px 0 40px;
}

.eyebrow,
.result-kicker {
  margin: 0 0 13px;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(34px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--brand-navy);
}

html[lang="zh-CN"] h1,
html[lang="zh-Hant"] h1 {
  white-space: nowrap;
}

.hero-description {
  max-width: 530px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #3c5967;
  font-size: 14px;
  font-weight: 650;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list svg {
  width: 21px;
  height: 21px;
  fill: var(--brand-green);
}

.query-card {
  padding: 38px;
  border: 1px solid rgba(211, 225, 227, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.query-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #f7931e, #ed1c24 22%, #e5007d 44%, #00a1df 68%, #39b54a);
}

.query-card-heading,
.results-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.query-card-heading {
  margin-bottom: 30px;
}

.step-number {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-dark));
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(0, 126, 176, 0.22);
}

.query-card-heading h2 {
  margin-bottom: 3px;
  color: var(--brand-navy);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.query-card-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

form label {
  display: block;
  margin-bottom: 9px;
  color: #304d5b;
  font-size: 14px;
  font-weight: 720;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid #cfdfe2;
  border-radius: 14px;
  outline: none;
  color: var(--brand-navy);
  background: #fbfdfd;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #9aabb2;
  font-weight: 500;
  letter-spacing: 0.01em;
}

input:focus {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 149, 207, 0.12);
}

#query-button {
  min-width: 126px;
  height: 56px;
  padding: 0 23px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #007eb5);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0, 126, 181, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

#query-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(0, 126, 181, 0.28);
}

#query-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-loader {
  display: none;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.is-loading .button-label {
  display: none;
}

.is-loading .button-loader {
  display: block;
}

.field-help {
  margin: 9px 2px 0;
  color: #809198;
  font-size: 12px;
  line-height: 1.55;
}

.batch-guide {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d9e8e2;
  border-radius: 16px;
  background: #f7fbf8;
}

.batch-guide-copy {
  margin-bottom: 12px;
}

.batch-guide-copy h3 {
  margin-bottom: 4px;
  color: var(--brand-navy);
  font-size: 14px;
}

.batch-guide-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.batch-guide-image-frame {
  aspect-ratio: 1052 / 397;
  overflow: hidden;
  border: 1px solid #dce6e8;
  border-radius: 12px;
  background: #fff;
}

.batch-guide-image {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-5.7%);
}

.query-status {
  min-height: 22px;
  margin-top: 17px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-line;
}

.status-error {
  color: var(--error);
}

.status-success {
  color: var(--success);
}

.status-loading {
  color: var(--brand-blue-dark);
}

.results-section {
  scroll-margin-top: 24px;
  margin-top: 72px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.results-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.result-kicker {
  margin-bottom: 3px;
  letter-spacing: 0.11em;
}

.results-heading h2 {
  margin-bottom: 0;
  color: var(--brand-navy);
  font-size: 26px;
}

.verified-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--success);
  background: #edf8ef;
  font-size: 13px;
  font-weight: 720;
}

.verified-badge svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.product-summary {
  margin: 28px 0 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-summary div {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e2ebed;
  border-radius: 15px;
  background: #f9fbfb;
}

.product-summary dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.product-summary dd {
  margin: 0;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.subheading {
  margin-bottom: 12px;
  color: #49636f;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1.5px solid #dfe9eb;
  border-radius: 16px;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.report-card.is-selected {
  border-color: #79c5df;
  background: var(--soft-blue);
  box-shadow: 0 8px 24px rgba(0, 126, 181, 0.09);
}

.report-icon {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 12px 8px;
  color: #fff;
  background: #da3b35;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.report-card-copy {
  min-width: 0;
  padding-top: 2px;
}

.report-card h4 {
  margin-bottom: 5px;
  color: var(--brand-navy);
  font-size: 15px;
}

.report-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.report-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.preview-button,
.download-link {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.preview-button {
  border: 0;
  color: #fff;
  background: var(--brand-blue-dark);
  cursor: pointer;
}

.download-link {
  border: 1px solid #cfe0e4;
  color: #385866;
  background: #fff;
  cursor: pointer;
}

.preview-panel {
  overflow: hidden;
  border: 1px solid #dce7e9;
  border-radius: 18px;
  background: #f7fafa;
}

.preview-heading {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dce7e9;
  background: #fff;
}

.preview-heading > div {
  min-width: 0;
}

.preview-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.preview-heading strong {
  display: block;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.open-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.viewer-shell {
  height: 570px;
  position: relative;
}

.report-viewer {
  width: 100%;
  min-height: 570px;
  background: #e8ece8;
}

.version-switch,
.viewer-toolbar { display: flex; align-items: center; gap: 6px; }
.version-switch button,
.viewer-toolbar button {
  border: 1px solid #cbd6ca; border-radius: 7px; background: #fff;
  color: #244529; padding: 7px 10px; cursor: pointer;
}
.version-switch button.is-active { border-color: #216329; background: #216329; color: #fff; }
.version-switch button:disabled,
.viewer-toolbar button:disabled { cursor: not-allowed; opacity: .45; }
.translation-notice {
  margin: 0; padding: 10px 18px; border-top: 1px solid #e2e9e1;
  background: #fff8df; color: #6b5412; font-size: 13px;
}
.viewer-toolbar {
  justify-content: center; padding: 9px; background: #f8faf8;
  border-bottom: 1px solid #dbe3da;
}
.viewer-toolbar span { min-width: 64px; text-align: center; font-size: 13px; }
.viewer-stage { height: 510px; padding: 12px; overflow: auto; text-align: center; }
#report-canvas {
  display: inline-block; max-width: none; background: #fff;
  box-shadow: 0 2px 14px rgb(29 52 31 / 18%);
}
.viewer-status { margin: 0; padding: 0 12px 10px; color: #526354; text-align: center; font-size: 13px; }

.viewer-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  color: #82949b;
  text-align: center;
}

.viewer-empty svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: #a6b6bc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer-empty p {
  margin-bottom: 0;
  font-size: 13px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid #dbe6e3;
  color: var(--muted);
  font-size: 12px;
}

.footer-top,
.footer-brand,
.footer-legal {
  display: flex;
  align-items: center;
}

.footer-top {
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  gap: 15px;
}

.site-footer img {
  width: 126px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin-bottom: 0;
  line-height: 1.6;
}

.footer-contact {
  max-width: 560px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.footer-phone {
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-legal {
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #74868d;
}

.footer-legal a,
.footer-legal button {
  color: inherit;
  text-underline-offset: 3px;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-note {
  max-width: none;
  white-space: nowrap;
  text-align: right;
}

.privacy-banner {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 34px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid rgba(27, 108, 137, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 56px rgba(13, 53, 68, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner h2,
.privacy-banner p,
.privacy-banner ul {
  margin: 0;
}

.privacy-banner h2 {
  color: var(--brand-navy);
  font-size: 21px;
  line-height: 1.25;
}

.privacy-kicker {
  margin-bottom: 5px !important;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.privacy-lead {
  margin-top: 7px !important;
  color: #425d68;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-details-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce8e8;
  color: #425d68;
  font-size: 13px;
}

.privacy-details-content p {
  margin-top: 7px;
  line-height: 1.45;
}

.privacy-purpose-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 28px;
  padding-left: 1.25rem;
  line-height: 1.45;
}

.privacy-purpose-list li::marker {
  color: var(--brand-blue);
}

.privacy-actions {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 9px;
  align-self: center;
}

.privacy-actions button {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--brand-blue);
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-actions .button-secondary {
  color: var(--brand-navy);
  background: #fff;
}

.privacy-actions .button-primary {
  color: #fff;
  background: var(--brand-blue);
}

.legal-page {
  min-height: 100dvh;
  margin: 0;
  background: #f5f9f8;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.legal-header img {
  width: 150px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.legal-back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #cde6ee;
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: #f3fbfd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-content {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 48px;
}

.legal-content article {
  margin-bottom: 24px;
  padding: clamp(30px, 5vw, 56px) clamp(22px, 6vw, 68px);
  border: 1px solid #dbe6e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 68, 80, 0.06);
  line-height: 1.75;
}

.legal-content h1,
.legal-content h2 {
  color: var(--brand-navy);
}

.legal-page .legal-content h1 {
  max-width: 24ch;
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.legal-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 20px;
}

.legal-content article > p,
.legal-content article > ul {
  max-width: 72ch;
}

.legal-content article > p {
  color: #334f5c;
}

.legal-content article > ul {
  padding-left: 1.25em;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
}

.legal-content th,
.legal-content td {
  padding: 12px;
  border: 1px solid #dbe6e3;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--brand-navy);
  background: #eef7f5;
}

@media (max-width: 720px) {
  .privacy-banner {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100dvh - 12px);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .privacy-actions {
    flex-direction: column;
  }

  .privacy-purpose-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .privacy-actions button {
    width: 100%;
  }

  .privacy-purpose-list {
    grid-template-columns: 1fr;
  }

  .legal-header,
  .legal-content {
    width: min(100% - 24px, 960px);
  }

  .legal-back-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .legal-content article {
    padding: 24px 18px;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 149, 207, 0.35);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1101px) and (max-height: 900px) {
  .site-header {
    height: 70px;
  }

  .page-shell {
    padding: 38px 0 30px;
  }

  .site-footer {
    padding: 18px 0 22px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 700px;
    padding-bottom: 0;
  }

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

  .report-layout {
    grid-template-columns: 1fr;
  }

  .viewer-shell {
    height: 520px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .privacy-note {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 20px, 680px);
  }

  .brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  .brand img {
    width: clamp(100px, 30vw, 128px);
    height: 40px;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .language-switch {
    flex: 0 0 auto;
    padding: 2px;
  }

  .language-switch button {
    min-height: 40px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .environment-badge {
    max-width: 64px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
  }

  .page-shell {
    padding: 28px 0 46px;
  }

  .hero {
    min-height: 0;
    gap: 24px;
  }

  .hero-copy {
    padding: 2px 2px 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(23px, 6.4vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  html[lang="zh-CN"] h1,
  html[lang="zh-Hant"] h1 {
    white-space: normal;
  }

  .hero-description {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .trust-list {
    gap: 10px 16px;
    font-size: 12px;
  }

  .query-card,
  .results-section {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .query-card-heading {
    margin-bottom: 20px;
    gap: 11px;
  }

  .query-card-heading h2 {
    font-size: 20px;
  }

  .query-card-heading p {
    font-size: 13px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  #query-button {
    width: 100%;
    min-height: 48px;
  }

  .results-section {
    margin-top: 46px;
  }

  .batch-guide {
    margin-top: 16px;
    padding: 12px 10px;
  }

  .batch-guide-image-frame {
    border-radius: 9px;
  }

  .results-heading {
    align-items: flex-start;
  }

  .verified-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

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

  .product-summary div {
    padding: 14px;
  }

  .report-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .preview-button {
    width: 100%;
    min-height: 44px;
  }

  .preview-button:active {
    transform: scale(0.98);
  }

  .preview-panel {
    scroll-margin-top: 10px;
  }

  .viewer-shell {
    height: 68vh;
    min-height: 430px;
  }

  .preview-heading {
    align-items: flex-start;
  }


  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .footer-top,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top {
    gap: 18px;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-contact {
    max-width: none;
    text-align: left;
  }

  .footer-legal {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .privacy-note {
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .environment-badge {
    display: none;
  }
}

@media (max-width: 360px) {
  .environment-badge {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .language-switch button {
    padding-inline: 8px;
    font-size: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .query-card,
  .results-section {
    padding-inline: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
