:root {
  --ink: #20232b;
  --muted: #697184;
  --paper: #fffdfa;
  --surface: rgba(255, 255, 255, 0.94);
  --line: #dce2dc;
  --accent: #d629a1;
  --accent-dark: #a8177a;
  --accent-soft: #fff0f8;
  --accent-wash: rgba(214, 41, 161, 0.09);
  --ambient: rgba(236, 109, 155, 0.16);
  --signal: #ef9a22;
  --success: #17845d;
  --shadow: 0 22px 70px rgba(42, 34, 38, 0.1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --font-display: "Avenir Next Condensed", "DIN Condensed", "Noto Sans Arabic", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Noto Sans Arabic", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #fbf4ea;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(119, 102, 72, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 102, 72, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, var(--ambient), transparent 26rem),
    radial-gradient(circle at 89% 6%, rgba(241, 184, 57, 0.12), transparent 24rem),
    #fbf4ea;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  transition: background-color 180ms ease;
}

html[data-species="dog"] {
  --accent: #2677c9;
  --accent-dark: #185895;
  --accent-soft: #eef7ff;
  --accent-wash: rgba(38, 119, 201, 0.09);
  --ambient: rgba(38, 119, 201, 0.15);
}

button,
input,
select {
  font: inherit;
}

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

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.photo-source-button:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 72px;
}

.hero,
.panel {
  border: 1px solid rgba(211, 219, 213, 0.94);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 234px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  content: "";
}

.hero-copy {
  align-self: center;
  padding: 34px 38px 34px 32px;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(239, 154, 34, 0.12);
}

.species-lock {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 10px 6px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 7px;
  color: #454b59;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

.workflow b {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.assay-visual {
  position: relative;
  align-self: stretch;
  min-height: 234px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(145deg, var(--accent-soft), #fffdfa 65%);
}

.visual-wordmark {
  position: absolute;
  top: 18px;
  left: 20px;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.visual-disc {
  position: absolute;
  top: 72px;
  left: 34px;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 28px color-mix(in srgb, var(--accent) 25%, transparent);
  text-align: center;
}

.visual-disc small {
  font-size: 11px;
  font-weight: 800;
}

.visual-disc strong {
  margin-top: -3px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.dot-array {
  position: absolute;
  top: 56px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(6, 13px);
  gap: 9px;
  transform: rotate(-2deg);
}

.dot-array i {
  width: 13px;
  height: 13px;
  border: 1px solid #d9dcda;
  border-radius: 50%;
  background: #e9e9e7;
}

.dot-array i.hot {
  border-color: var(--accent);
  background: var(--accent);
}

.dot-array i.warm {
  border-color: var(--signal);
  background: var(--signal);
}

.visual-species {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: color-mix(in srgb, var(--accent) 18%, transparent);
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

main {
  margin-top: 14px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: panel-in 280ms cubic-bezier(.2, .75, .3, 1) both;
}

@keyframes panel-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.panel-heading,
.form-toolbar,
.section-heading-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel h2,
.form-toolbar h2,
.photo-section h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.default-badge,
.privacy-note {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  direction: ltr;
}

.language-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 19px;
  gap: 9px;
  min-height: 64px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  direction: ltr;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-option:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 10px 24px rgba(35, 31, 33, 0.07);
}

.language-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.language-code {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}

.language-option.active .language-code {
  background: var(--accent);
}

.language-option strong,
.language-option small {
  display: block;
}

.language-name-ar strong {
  direction: rtl;
  unicode-bidi: isolate;
}

.language-option strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.language-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.language-check {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.language-option.active .language-check {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.form-toolbar {
  margin-bottom: 22px;
}

.fixed-species-note,
.local-data-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.fixed-species-note strong {
  color: var(--accent-dark);
}

.local-data-note {
  max-width: 750px;
  margin: -3px 0 14px;
}

.text-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #424956;
  font-size: 12px;
  font-weight: 800;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #d8dfd9;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9c4bc;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
  outline: 0;
}

.section-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.section-heading-row {
  align-items: center;
  margin-bottom: 12px;
}

.photo-section h2 {
  margin-bottom: 0;
}

.photo-picker {
  position: relative;
  display: grid;
  min-height: 250px;
  gap: 15px;
  place-items: center;
  overflow: hidden;
  padding: 22px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--accent-wash), transparent 62%),
    #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.photo-picker:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(45, 37, 42, 0.07);
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.photo-idle {
  display: grid;
  max-width: 600px;
  place-items: center;
  padding: 3px 14px 0;
  text-align: center;
}

.camera-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.camera-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.photo-idle > strong {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 850;
}

.photo-idle > span:not(.camera-icon) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.photo-source-actions {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 10px;
}

.photo-source-button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 49px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.photo-source-button:hover {
  transform: translateY(-1px);
}

.photo-source-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.photo-source-primary {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.photo-source-primary:hover {
  box-shadow: 0 13px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.photo-source-secondary {
  color: var(--accent-dark);
  background: #fff;
}

.photo-source-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.photo-empty {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 11px;
}

.photo-selected {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 2px 0;
  text-align: left;
}

.preview-frame {
  position: relative;
  display: block;
  width: 116px;
  height: 142px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eee;
}

.preview-frame.preview-unavailable::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(145deg, var(--accent-soft), #f3f3f1);
  content: "IMG";
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-copy {
  min-width: 0;
}

.selected-copy small,
.selected-copy strong,
.selected-copy span {
  display: block;
}

.selected-copy small {
  margin-bottom: 4px;
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.selected-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.photo-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hint-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
}

.form-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #f0b9b3;
  border-radius: 8px;
  color: #a43c32;
  background: #fff4f2;
  font-size: 13px;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.actions p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.actions p strong {
  color: var(--ink);
}

.primary-button {
  display: inline-flex;
  min-height: 45px;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 20%, transparent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 24px color-mix(in srgb, var(--accent) 26%, transparent);
}

.primary-button:disabled,
.secondary-button:disabled {
  transform: none;
  opacity: 0.58;
  cursor: wait;
  box-shadow: none;
}

.primary-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(25, 27, 32, 0.58);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(15, 16, 19, 0.3);
  animation: modal-in 220ms cubic-bezier(.2, .8, .3, 1) both;
  text-align: center;
}

@keyframes modal-in {
  from {
    transform: translateY(12px) scale(.98);
    opacity: 0;
  }
}

.modal-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 24px;
  font-weight: 900;
}

.modal h2 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 26px;
}

.modal p {
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-close {
  min-width: 120px;
}

.processing-disclosure {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #eccd8d;
  border-radius: 10px;
  background: #fff9eb;
}

.disclosure-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a8670d;
  font-weight: 900;
}

.processing-disclosure h3,
.processing-disclosure p {
  margin: 0;
}

.processing-disclosure h3 {
  color: #714707;
  font-size: 13px;
}

.processing-disclosure p {
  margin-top: 3px;
  color: #705a35;
  font-size: 11px;
  line-height: 1.55;
}

.secondary-button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.processing-state {
  display: grid;
  max-width: 630px;
  min-height: 300px;
  margin: auto;
  place-items: center;
  align-content: center;
  text-align: center;
}

.processing-state h2 {
  margin-bottom: 7px;
  font-size: 29px;
}

.processing-state p {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 5px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

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

.result-ready {
  display: grid;
  max-width: 660px;
  justify-items: center;
  margin: 0 auto;
  padding: 32px 18px;
  text-align: center;
}

.result-ready-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}

.result-ready-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.result-ready h2 {
  margin: 8px 0 7px;
  font-family: var(--font-display);
  font-size: 32px;
}

.result-ready > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.result-ready .result-mobile-hint {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.result-ready-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.result-ready-actions .primary-button {
  text-decoration: none;
}

.route-error {
  min-height: 100vh;
  padding: 24px;
}

.route-error-card {
  width: min(680px, 100%);
  margin: 11vh auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 5px solid #b14b41;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-error-card h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 50px);
}

.route-error-card p {
  color: var(--muted);
  line-height: 1.6;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.route-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.route-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(680px, calc(100% - 22px));
    margin-top: 11px;
  }

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

  .hero-copy {
    padding: 28px 25px 24px;
  }

  .assay-visual {
    min-height: 124px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .visual-wordmark {
    top: 14px;
    left: 22px;
    font-size: 36px;
  }

  .visual-disc {
    top: 45px;
    left: 34px;
    width: 68px;
    height: 68px;
  }

  .visual-disc small {
    font-size: 7px;
  }

  .visual-disc strong {
    font-size: 27px;
  }

  .dot-array {
    top: 25px;
    right: 132px;
    grid-template-columns: repeat(6, 7px);
    gap: 4px;
  }

  .dot-array i {
    width: 7px;
    height: 7px;
  }

  .visual-species {
    right: 16px;
    bottom: 8px;
    font-size: 38px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .language-option {
    min-height: 60px;
  }

}

@media (max-width: 390px) {
  .language-options {
    gap: 8px;
  }

  .language-option {
    grid-template-columns: 32px minmax(0, 1fr) 17px;
    gap: 7px;
    min-height: 56px;
    padding: 8px;
  }

  .language-code {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
  }

  .language-option strong {
    font-size: 12px;
  }

  .language-option small {
    font-size: 9px;
  }

  .language-check {
    width: 17px;
    height: 17px;
  }
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .panel-heading,
html[dir="rtl"] .form-toolbar,
html[dir="rtl"] .section-heading-row,
html[dir="rtl"] .processing-disclosure,
html[dir="rtl"] .result-ready,
html[dir="rtl"] .report-preview-toolbar {
  text-align: right;
}

html[dir="rtl"] .language-options {
  direction: ltr;
}

html[dir="rtl"] input:not([type="file"]),
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] input[type="tel"],
html[dir="rtl"] [data-photo-name] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

html[dir="rtl"] .primary-button svg,
html[dir="rtl"] .product-action b {
  transform: scaleX(-1);
}

[data-report-pages],
.report-page,
.report-page-overlay,
.report-dot-layer {
  direction: ltr;
}

@media (max-width: 620px) {
  body {
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
  }

  .page-shell {
    width: min(560px, calc(100% - 16px));
    margin-bottom: 36px;
  }

  .hero,
  .panel {
    border-radius: 12px;
  }

  .hero-copy {
    padding: 24px 20px 22px;
  }

  .assay-visual {
    min-height: 112px;
  }

  .visual-wordmark {
    top: 12px;
    left: 14px;
    font-size: 30px;
  }

  .visual-disc {
    top: 43px;
    left: 30px;
    width: 58px;
    height: 58px;
  }

  .visual-disc small {
    font-size: 6px;
  }

  .visual-disc strong {
    font-size: 23px;
  }

  .dot-array {
    top: 25px;
    right: 104px;
    grid-template-columns: repeat(6, 6px);
    gap: 3px;
  }

  .dot-array i {
    width: 6px;
    height: 6px;
  }

  .visual-species {
    right: 10px;
    bottom: 7px;
    font-size: 32px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 36px;
  }

  .workflow > span {
    font-size: 11px;
  }

  .panel {
    padding: 20px 16px;
  }

  .panel-heading,
  .form-toolbar,
  .section-heading-row {
    gap: 12px;
  }

  .form-toolbar {
    flex-direction: column;
  }

  .default-badge,
  .privacy-note {
    display: none;
  }

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

  .field-full {
    grid-column: auto;
  }

  .photo-picker {
    min-height: 260px;
    padding: 18px 14px;
  }

  .photo-source-actions {
    grid-template-columns: 1fr;
  }

  .photo-selected {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
  }

  .preview-frame {
    width: 84px;
    height: 108px;
  }

  .actions {
    display: grid;
  }

  .primary-button {
    width: 100%;
  }

  .result-ready {
    padding: 24px 0 18px;
  }

  .result-ready h2 {
    font-size: 28px;
  }

  .result-ready-actions {
    display: grid;
    width: 100%;
  }
}

@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;
  }
}

/* Seven-page HTML report -------------------------------------------------- */

.report-screen {
  width: 100%;
}

.report-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin: 28px 0 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 46px rgba(42, 34, 38, 0.09);
}

.report-preview-toolbar h2 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
}

.report-preview-toolbar p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.report-preview-toolbar .wechat-print-hint {
  margin-top: 9px;
  padding: 8px 10px;
  border-left: 3px solid #d98316;
  color: #704a18;
  background: #fff7e8;
}

.report-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  align-items: center;
}

.report-preview {
  width: 100%;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(69, 74, 83, 0.18);
  background: #ebe7e1;
  box-shadow: inset 0 1px 8px rgba(40, 36, 33, 0.07);
}

.report-pages {
  display: grid;
  width: max-content;
  margin: 0 auto;
  gap: 24px;
  zoom: 0.9;
}

.report-page {
  --report-accent: var(--accent);
  --report-accent-dark: var(--accent-dark);
  --report-accent-soft: var(--accent-soft);
  position: relative;
  width: 1122px;
  height: 794px;
  overflow: hidden;
  padding: 34px 42px 32px;
  color: #20232b;
  background: #fff;
  box-shadow: 0 14px 38px rgba(37, 34, 31, 0.15);
  font-family: var(--font-body);
  isolation: isolate;
}

.report-page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  height: 125px;
  background: #fafafa;
  content: "";
}

.report-page-header {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 45px;
  margin-bottom: 22px;
  border-bottom: 1px solid #dfe2e5;
}

.report-page-header > h2 {
  min-width: 0;
  margin: 0;
  color: #252832;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.report-brand {
  color: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.report-brand sup {
  font-size: 8px;
  vertical-align: super;
}

.report-brand small {
  margin-left: 7px;
  color: #6f7581;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-header-pet {
  min-width: 0;
  overflow: hidden;
  color: #555c69;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-draft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--report-accent);
  color: var(--report-accent-dark);
  background: var(--report-accent-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.report-page-footer,
.report-cover-footer {
  position: absolute;
  right: 42px;
  bottom: 16px;
  left: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #dfe2e5;
  color: #757c88;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.report-page-footer span:last-child,
.report-cover-footer span:last-child {
  color: var(--report-accent-dark);
  font-weight: 900;
}

/* Cover */

.report-cover {
  color: #fff;
  background: var(--report-accent-dark);
}

.report-cover::before {
  inset: 0 0 0 52%;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.075);
}

.report-cover::after {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -120px;
  bottom: -185px;
  border: 80px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.report-cover-header {
  border-color: rgba(255, 255, 255, 0.28);
}

.report-cover .report-brand,
.report-cover .report-draft-badge {
  color: #fff;
}

.report-cover .report-draft-badge {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.report-cover-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 0.95fr;
  min-height: 470px;
  align-items: center;
}

.report-cover-copy {
  position: relative;
  z-index: 2;
  padding-left: 22px;
}

.report-panel-pill {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  margin-bottom: 17px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-panel-pill b {
  font-size: 18px;
}

.report-cover h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.report-cover h1 span:first-child {
  color: #ffc66e;
}

.report-assay-pill {
  display: inline-block;
  margin: 25px 0 0;
  padding: 8px 13px;
  color: var(--report-accent-dark);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.report-cover-art {
  position: relative;
  align-self: stretch;
  min-height: 470px;
}

.report-watermark {
  position: absolute;
  top: 38px;
  right: 32px;
  color: rgba(255, 255, 255, 0.17);
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.report-animal-word {
  position: absolute;
  right: 41px;
  bottom: 50px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.report-cover-orbit {
  position: absolute;
  top: 136px;
  right: 110px;
  width: 242px;
  height: 242px;
  border: 58px solid #fff;
  border-radius: 50%;
  opacity: 0.96;
}

.report-cover-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 17px solid #ffc66e;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.report-cover-pet {
  position: absolute;
  z-index: 3;
  top: 192px;
  right: -17px;
  max-width: 330px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right top;
  white-space: nowrap;
}

.report-intended-use {
  position: absolute;
  right: 48px;
  bottom: 72px;
  left: 64px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.report-intended-use h2 {
  margin: 0;
  color: #ffc66e;
  font-family: var(--font-display);
  font-size: 24px;
}

.report-intended-use p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.55;
}

.report-cover-footer {
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
}

.report-cover-footer span:last-child {
  color: #fff;
}

/* Page two */

.report-page-two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 0.82fr);
  gap: 22px;
  height: 650px;
}

.report-page-two-left {
  display: grid;
  grid-template-rows: 220px 1fr;
  gap: 17px;
}

.report-info-card {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  overflow: hidden;
  border-left: 6px solid var(--report-accent);
  background: #f4f5f5;
}

.report-pet-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.report-pet-mark::before {
  position: absolute;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
}

.report-info-content {
  min-width: 0;
  padding: 18px 21px;
}

.report-info-content h2,
.report-map-card h2,
.report-overview-card h2 {
  margin: 0 0 10px;
  color: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.report-basic-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 8px 18px;
}

.report-basic-data div {
  min-width: 0;
}

.report-basic-data div:nth-child(5) {
  grid-column: 1 / -1;
}

.report-basic-data dt {
  color: #7a808b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-basic-data dd {
  min-height: 17px;
  margin: 2px 0 0;
  overflow: hidden;
  color: #262a32;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-basic-data div:nth-child(5) dd {
  display: -webkit-box;
  max-height: 26px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.report-map-card {
  padding: 18px 23px 14px;
  border: 1px solid #dfe2e5;
  background: #fff;
}

.report-section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.report-section-title-row > span {
  color: #79808b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-dot-map {
  display: grid;
  width: 382px;
  margin: 4px auto 0;
  grid-template-columns: 18px repeat(10, 1fr);
  gap: 5px 7px;
  align-items: center;
  justify-items: center;
}

.report-map-axis {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #676e7a;
  font-size: 8px;
  font-weight: 900;
}

.report-signal-dot {
  width: 18px;
  height: 18px;
  border: 1px solid #c9ced1;
  border-radius: 50%;
  background: #eef0ef;
}

.report-signal-0 { background: color-mix(in srgb, var(--report-accent) 5%, #eef0ef); }
.report-signal-1 { background: color-mix(in srgb, var(--report-accent) 14%, #eef0ef); }
.report-signal-2 { background: color-mix(in srgb, var(--report-accent) 24%, #eef0ef); }
.report-signal-3 { background: color-mix(in srgb, var(--report-accent) 35%, #eef0ef); }
.report-signal-4 { background: color-mix(in srgb, var(--report-accent) 47%, #eef0ef); }
.report-signal-5 { background: color-mix(in srgb, var(--report-accent) 58%, #eef0ef); }
.report-signal-6 { background: color-mix(in srgb, var(--report-accent) 68%, #eef0ef); }
.report-signal-7 { background: color-mix(in srgb, var(--report-accent) 78%, #eef0ef); }
.report-signal-8 { background: color-mix(in srgb, var(--report-accent) 88%, #eef0ef); }
.report-signal-9 { background: var(--report-accent-dark); }

.report-map-card > p {
  max-width: 510px;
  margin: 9px auto 0;
  color: #737985;
  font-size: 8px;
  line-height: 1.35;
  text-align: center;
}

.report-overview-card {
  position: relative;
  padding: 27px 25px;
  border-top: 7px solid var(--report-accent);
  color: #fff;
  background: var(--report-accent-dark);
}

.report-overview-card h2 {
  color: #fff;
  font-size: 31px;
}

.report-overview-lead {
  margin: 0 0 17px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  line-height: 1.5;
}

.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.2);
}

.report-metrics div {
  min-width: 0;
  padding: 13px 12px;
  background: var(--report-accent-dark);
}

.report-metrics span,
.report-trace-mini dt {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-metrics strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-relative-scale {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 17px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 850;
}

.report-relative-scale i {
  height: 7px;
  border-right: 52px solid #fff;
  background: rgba(255, 255, 255, 0.22);
}

.report-boundary-note {
  padding: 15px 16px;
  border-left: 4px solid #ffc66e;
  color: #342919;
  background: #fff7e6;
}

.report-boundary-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}

.report-boundary-note p {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.5;
}

.report-trace-mini {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  margin: 18px 0 0;
}

.report-trace-mini dd {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Position pages */

.report-table-intro,
.report-quality-intro {
  max-width: 850px;
  margin: 0 0 18px;
  color: #69717e;
  font-size: 11px;
  line-height: 1.5;
}

.report-position-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.report-position-group {
  min-width: 0;
  border-top: 5px solid var(--report-accent);
  background: #f5f6f6;
}

.report-position-group h3 {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  color: #fff;
  background: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 23px;
}

.report-position-group ol {
  display: grid;
  margin: 0;
  padding: 8px 10px 11px;
  gap: 2px;
  list-style: none;
}

.report-position-group li {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 5px 4px;
  border-bottom: 1px solid #dfe2e5;
  color: #555d6a;
  font-size: 9px;
}

.report-position-group li:last-child {
  border-bottom: 0;
}

.report-position-group li span {
  color: var(--report-accent-dark);
  font-weight: 900;
}

.report-position-group li strong {
  overflow: hidden;
  color: #282c34;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-allergen-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-allergen-column {
  min-width: 0;
  padding: 7px 11px;
  border-top: 5px solid var(--report-accent);
  background: #f4f5f5;
}

.report-allergen-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  gap: 7px;
  align-items: center;
  min-height: 23px;
  border-bottom: 1px solid #d9dde0;
  font-size: 8px;
}

.report-allergen-item:last-child {
  border-bottom: 0;
}

.report-allergen-item b {
  color: var(--report-accent-dark);
  font-weight: 900;
}

.report-allergen-item span {
  min-width: 0;
  overflow: hidden;
  color: #4f5763;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-allergen-item strong {
  overflow: hidden;
  color: #242831;
  font-size: 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-allergen-table-contact .report-allergen-item {
  min-height: 28px;
}

.report-page-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 19px;
  padding: 14px 17px;
  border-left: 5px solid #d98a17;
  color: #594225;
  background: #fff6e7;
  font-size: 10px;
  line-height: 1.45;
}

.report-page-callout strong {
  color: #3c2d1b;
  font-family: var(--font-display);
  font-size: 17px;
}

/* General management page */

.report-management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-management-grid article {
  position: relative;
  min-height: 220px;
  padding: 55px 16px 16px;
  border-top: 5px solid var(--report-accent);
  background: #f3f4f4;
}

.report-management-grid article b {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--report-accent);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.report-management-grid article h3 {
  margin: 0 0 9px;
  color: #2b2f37;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.report-management-grid article p {
  margin: 0;
  color: #69717d;
  font-size: 8.5px;
  line-height: 1.48;
}

.report-general-guidance {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 5px solid #d98a17;
  color: #5a4427;
  background: #fff6e7;
  font-size: 9px;
  line-height: 1.45;
}

.report-general-guidance strong {
  color: #3c2d1b;
  font-family: var(--font-display);
  font-size: 18px;
}

/* Symptoms page */

.report-symptom-layout {
  display: grid;
  height: 490px;
  grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px 32px;
  align-items: stretch;
}

.report-symptom-layout article {
  position: relative;
  min-width: 0;
  padding: 21px 17px 14px 62px;
  border-left: 4px solid var(--report-accent);
  background: #f3f4f4;
}

.report-symptom-layout article:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.report-symptom-layout article:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.report-symptom-layout article:nth-of-type(3) { grid-column: 1; grid-row: 2; }
.report-symptom-layout article:nth-of-type(4) { grid-column: 3; grid-row: 2; }
.report-symptom-layout article:nth-of-type(5) { grid-column: 1; grid-row: 3; }
.report-symptom-layout article:nth-of-type(6) { grid-column: 3; grid-row: 3; }

.report-symptom-layout article b {
  position: absolute;
  top: 18px;
  left: 16px;
  color: var(--report-accent);
  font-family: var(--font-display);
  font-size: 27px;
}

.report-symptom-layout article h3 {
  margin: 0 0 6px;
  color: #2b2f37;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.report-symptom-layout article p {
  margin: 0;
  color: #69717d;
  font-size: 8.5px;
  line-height: 1.45;
}

.report-symptom-animal {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 230px;
  height: 230px;
  align-self: center;
  justify-self: center;
  place-items: center;
  border: 49px solid var(--report-accent);
  border-radius: 50%;
  color: var(--report-accent-dark);
  background: #fff;
}

.report-symptom-animal::before {
  position: absolute;
  inset: 20px;
  border: 2px solid var(--report-accent-dark);
  border-radius: 50%;
  content: "";
}

.report-symptom-animal span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.report-symptom-animal small {
  position: absolute;
  right: -65px;
  bottom: -67px;
  left: -65px;
  color: #707783;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.report-differential-note {
  margin-top: 12px;
  padding: 11px 15px;
  border-left: 5px solid #d98a17;
  color: #5a4427;
  background: #fff6e7;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

/* Household page */

.report-household-heading {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 46px 14px;
}

.report-household-heading .report-next-orbit {
  width: 84px;
  height: 84px;
  border-width: 20px;
}

.report-household-heading h2 {
  margin: 0 0 5px;
  color: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.report-household-heading p {
  margin: 0;
  color: #69717e;
  font-size: 10px;
  line-height: 1.45;
}

.report-household-entry {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  width: 850px;
  margin: 0 auto 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--report-accent-dark);
  font-size: 9px;
}

.report-household-entry b {
  font-family: var(--font-display);
  font-size: 16px;
}

.report-household-plan {
  position: relative;
  display: grid;
  width: 850px;
  height: 305px;
  margin: 55px auto 0;
  padding: 31px 38px 31px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #eceeee;
}

.report-household-roof {
  position: absolute;
  top: -55px;
  left: 0;
  display: grid;
  width: 850px;
  height: 90px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--report-accent-dark);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.report-household-roof span {
  padding-top: 34px;
}

.report-household-plan article {
  position: relative;
  padding: 20px 22px 16px 69px;
  background: #fff;
}

.report-household-plan article b {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--report-accent);
  font-family: var(--font-display);
  font-size: 27px;
}

.report-household-plan article h3 {
  margin: 0 0 6px;
  color: #2b2f37;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
}

.report-household-plan article p {
  margin: 0;
  color: #69717d;
  font-size: 8.5px;
  line-height: 1.45;
}

.report-household-advice {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
  width: 850px;
  margin: 10px auto 0;
  padding: 10px 16px;
  border-left: 5px solid #d98a17;
  color: #5a4427;
  background: #fff6e7;
  font-size: 9px;
  line-height: 1.4;
}

.report-household-advice strong {
  color: #3c2d1b;
  font-family: var(--font-display);
  font-size: 17px;
}

/* Quality page */

.report-quality-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 7px solid var(--report-accent);
  border-left: 1px solid #dfe2e5;
}

.report-quality-grid div {
  min-width: 0;
  min-height: 104px;
  padding: 16px 14px;
  border-right: 1px solid #dfe2e5;
  border-bottom: 1px solid #dfe2e5;
  background: #f8f9f8;
}

.report-quality-grid span {
  display: block;
  min-height: 25px;
  color: #737a86;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-quality-grid strong {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #282c34;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.report-warning-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  min-height: 202px;
  margin-top: 22px;
  padding: 23px 26px;
  color: #fff;
  background: var(--report-accent-dark);
}

.report-warning-card h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
}

.report-warning-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  margin: 0;
  padding: 0;
  gap: 8px 22px;
  list-style: none;
}

.report-warning-card li {
  position: relative;
  padding: 8px 9px 8px 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  line-height: 1.35;
}

.report-warning-card li::before {
  position: absolute;
  top: 11px;
  left: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #ffc66e;
  border-radius: 50%;
  content: "";
}

/* Reading guide */

.report-how-layout {
  position: relative;
  height: 585px;
}

.report-how-center {
  position: absolute;
  top: 151px;
  left: 50%;
  width: 230px;
  height: 230px;
  color: #fff;
  transform: translateX(-50%);
}

.report-how-disc {
  position: absolute;
  inset: 0;
  border: 48px solid var(--report-accent);
  border-radius: 50%;
}

.report-how-disc::after {
  position: absolute;
  inset: 25px;
  border: 2px solid var(--report-accent-dark);
  border-radius: 50%;
  content: "";
}

.report-how-animal {
  position: absolute;
  top: 85px;
  left: 50%;
  color: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: translateX(-50%);
}

.report-how-grid {
  position: absolute;
  top: 135px;
  left: 50%;
  color: #717783;
  font-size: 10px;
  font-weight: 850;
  transform: translateX(-50%);
}

.report-how-note {
  position: absolute;
  width: 282px;
  min-height: 137px;
  padding: 17px 18px 15px 61px;
  border-left: 4px solid var(--report-accent);
  background: #f4f5f5;
}

.report-how-note b {
  position: absolute;
  top: 17px;
  left: 16px;
  color: var(--report-accent);
  font-family: var(--font-display);
  font-size: 27px;
}

.report-how-note h3 {
  margin: 0 0 6px;
  color: #282c34;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.report-how-note p {
  margin: 0;
  color: #68707c;
  font-size: 9px;
  line-height: 1.5;
}

.report-how-note::after {
  position: absolute;
  top: 50%;
  width: 73px;
  border-top: 1px solid var(--report-accent);
  content: "";
}

.note-one { top: 22px; left: 18px; }
.note-two { top: 222px; left: 0; }
.note-three { top: 423px; left: 34px; }
.note-four { top: 22px; right: 18px; }
.note-five { top: 222px; right: 0; }
.note-six { top: 423px; right: 34px; }
.note-one::after,
.note-two::after,
.note-three::after { right: -73px; }
.note-four::after,
.note-five::after,
.note-six::after { left: -73px; }

/* Validation path */

.report-next-heading {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 25px;
  align-items: center;
  margin: 4px 60px 20px;
}

.report-next-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  border: 25px solid var(--report-accent);
  border-radius: 50%;
}

.report-next-orbit::after {
  position: absolute;
  inset: 11px;
  border: 7px solid #ef9a22;
  border-radius: 50%;
  content: "";
}

.report-next-heading h2 {
  margin: 0 0 6px;
  color: var(--report-accent-dark);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.report-next-heading p {
  max-width: 720px;
  margin: 0;
  color: #69717e;
  font-size: 10px;
  line-height: 1.5;
}

.report-house {
  position: relative;
  display: grid;
  width: 850px;
  height: 385px;
  margin: 25px auto 0;
  padding: 96px 38px 34px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #eceeee;
}

.report-house-roof {
  position: absolute;
  top: -57px;
  left: 0;
  width: 0;
  height: 0;
  border-right: 425px solid transparent;
  border-bottom: 153px solid var(--report-accent-dark);
  border-left: 425px solid transparent;
}

.report-house-roof::after {
  position: absolute;
  top: 59px;
  left: -104px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  content: "VAMBER 100";
  white-space: nowrap;
}

.report-house-room {
  position: relative;
  padding: 20px 23px 16px 67px;
  background: #fff;
}

.report-house-room b {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--report-accent);
  font-family: var(--font-display);
  font-size: 27px;
}

.report-house-room h3 {
  margin: 0 0 5px;
  color: #2b2f37;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
}

.report-house-room p {
  margin: 0;
  color: #68707c;
  font-size: 9px;
  line-height: 1.45;
}

.report-final-boundary {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: center;
  width: 850px;
  margin: 13px auto 0;
  padding: 12px 16px;
  border-left: 6px solid #d98a17;
  color: #594225;
  background: #fff6e7;
  font-size: 9px;
  line-height: 1.4;
}

.report-final-boundary strong {
  color: #3c2d1b;
  font-family: var(--font-display);
  font-size: 17px;
}

@media (max-width: 1120px) {
  .report-pages { zoom: 0.76; }
}

@media (max-width: 900px) {
  .report-pages { zoom: 0.61; }
}

@media (max-width: 720px) {
  .report-preview-toolbar {
    display: grid;
    padding: 20px;
  }

  .report-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-preview-actions .primary-button,
  .report-preview-actions .secondary-button {
    width: 100%;
  }

  .report-preview { padding: 10px; }
  .report-pages { zoom: 0.49; }
}

@media (max-width: 570px) {
  .report-pages { zoom: 0.39; gap: 17px; }
  .report-preview-actions { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .report-pages { zoom: 0.3; }
}

@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  html,
  body {
    width: 297mm;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body > * {
    visibility: hidden !important;
  }

  .page-shell,
  main,
  .report-screen,
  .report-preview,
  .report-pages,
  .report-page,
  .report-page * {
    visibility: visible !important;
  }

  .page-shell,
  main,
  .report-screen,
  .report-preview,
  .report-pages {
    display: block !important;
    width: 297mm !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: none !important;
    zoom: 1 !important;
  }

  .hero,
  .report-preview-toolbar,
  [data-screen]:not([data-screen="report"]) {
    display: none !important;
  }

  .report-page {
    width: 297mm !important;
    height: 210mm !important;
    min-height: 210mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    break-after: page;
    page-break-after: always;
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .report-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* Source-PDF-faithful report --------------------------------------------- */

.report-page.report-page-art-shell {
  position: relative;
  width: 1122px;
  height: 794px;
  padding: 0;
  overflow: hidden;
  color: #3f3a3c;
  background: #fff;
  isolation: isolate;
}

.report-page.report-page-art-shell::before {
  display: none;
  content: none;
}

.report-page-art,
.report-page-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.report-page-art {
  z-index: 0;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.report-page-overlay {
  z-index: 1;
  pointer-events: none;
}

.report-header-name-mask {
  position: absolute;
  left: 17%;
  top: 7.2%;
  width: 31.7%;
  height: 4.1%;
  background: #fff;
}

.report-page-overlay-1 .report-header-name-mask {
  left: 97.2%;
  top: 77.55%;
  width: 18.5%;
  height: 4%;
  transform: rotate(90deg);
  transform-origin: 0 0;
}

.report-page-overlay-2 .report-header-name-mask,
.report-page-overlay-5 .report-header-name-mask {
  background: #f2f4f4;
}

.report-profile-value {
  position: absolute;
  left: 39.079%;
  width: 6.592%;
  height: 1.5%;
  display: block;
  padding: 0;
  overflow: hidden;
  color: #615c5d;
  font-family: "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 6.5px;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-profile-pet-name {
  left: 17.057%;
  top: 25.720%;
  width: 14.679%;
  height: 3.024%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  color: #cb509a;
  background: transparent;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.report-profile-pet-name[data-name-size="medium"] { font-size: 12px; }
.report-profile-pet-name[data-name-size="long"] { font-size: 10px; }

.report-profile-value[data-compact="true"]:not(.report-profile-pet-name) {
  font-size: 5.75px;
}

.report-profile-hospital { top: 23.814%; }
.report-profile-phone { top: 25.675%; }
.report-profile-date { top: 27.656%; }
.report-profile-doctor { top: 29.718%; }

html[data-species="dog"] .report-profile-pet-name {
  left: 16.944%;
  top: 26.138%;
  width: 14.820%;
  color: #1b99d6;
}
html[data-species="dog"] .report-profile-hospital { top: 24.011%; }
html[data-species="dog"] .report-profile-phone { top: 25.872%; }
html[data-species="dog"] .report-profile-date { top: 27.894%; }
html[data-species="dog"] .report-profile-doctor { top: 29.875%; }

.report-dot-layer {
  position: absolute;
  inset: 0;
}

.report-result-dot {
  position: absolute;
  left: var(--dot-x);
  top: var(--dot-y);
  width: 2.46%;
  height: 3.48%;
  border-radius: 50%;
  background: #eae7e7;
  transform: translate(-50%, -50%);
}

.report-result-dot[data-grade="1"] { background: #eaacce; }
.report-result-dot[data-grade="2"] { background: #db7eb3; }
.report-result-dot[data-grade="3"] { background: #cb509a; }
.report-result-dot[data-grade="4"] { background: #eda945; }

html[data-species="dog"] .report-result-dot[data-grade="1"] { background: #a9d7e5; }
html[data-species="dog"] .report-result-dot[data-grade="2"] { background: #3faac1; }
html[data-species="dog"] .report-result-dot[data-grade="3"] { background: #1b99d6; }
html[data-species="dog"] .report-result-dot[data-grade="4"] { background: #eda945; }

.report-grade-layer {
  position: absolute;
  display: block;
  width: 14.309%;
  overflow: hidden;
  color: #4a4546;
  font-family: Arial, "Avenir Next", sans-serif;
  font-size: 7.3px;
  line-height: 1.13;
}

.report-grade-food { left: 62.563%; }
.report-grade-contact { left: 79.684%; }

.report-grade-1 { top: 27.374%; height: 12.619%; }
.report-grade-2 { top: 42.764%; height: 13.490%; }
.report-grade-3 { top: 59.026%; height: 13.490%; }
.report-grade-4 { top: 75.288%; height: 12.804%; }

html[data-species="dog"] .report-grade-1 { top: 27.509%; }
html[data-species="dog"] .report-grade-2 { top: 42.899%; }
html[data-species="dog"] .report-grade-3 { top: 59.161%; }
html[data-species="dog"] .report-grade-4 { top: 75.424%; }

.report-grade-result {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}

.report-grade-result:not(:last-child)::after {
  content: ", ";
  white-space: pre;
}

.report-grade-density-compact {
  font-size: 6.2px;
  line-height: 1.08;
}

.report-grade-density-dense {
  font-size: 5.6px;
  line-height: 1.06;
}

.report-grade-density-xdense {
  font-size: 4.4px;
  line-height: 1.04;
}

.report-item-value-layer {
  position: absolute;
  inset: 0;
}

.report-item-value {
  position: absolute;
  left: var(--item-left);
  top: var(--item-top);
  width: var(--item-width);
  height: 17px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 3px;
  transform: translateY(-76%);
  overflow: hidden;
  color: #3e3b3b;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12.4px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-item-code {
  color: #b7b2b5;
  font-size: 0.94em;
  font-weight: 700;
}

.report-item-label {
  min-width: 0;
  overflow: hidden;
  color: #3e3b3b;
  text-overflow: clip;
}

.report-item-dot,
.report-item-number {
  display: none;
}

.report-item-value[data-positive="true"] .report-item-label {
  color: #cb509a;
  font-weight: 700;
}

html[data-species="dog"] .report-item-value[data-positive="true"] .report-item-label {
  color: #1b99d6;
}

.report-item-value[data-positive="true"] .report-item-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cb509a;
}

.report-item-value[data-positive="true"] .report-item-number {
  display: block;
  color: #3e3b3b;
  font-weight: 700;
  text-align: right;
}

.report-item-value[data-grade="1"] .report-item-dot { background: #eaacce; }
.report-item-value[data-grade="2"] .report-item-dot { background: #db7eb3; }
.report-item-value[data-grade="3"] .report-item-dot { background: #cb509a; }
.report-item-value[data-grade="4"] .report-item-dot { background: #eda945; }

html[data-species="dog"] .report-item-value[data-grade="1"] .report-item-dot { background: #a9d7e5; }
html[data-species="dog"] .report-item-value[data-grade="2"] .report-item-dot { background: #3faac1; }
html[data-species="dog"] .report-item-value[data-grade="3"] .report-item-dot { background: #1b99d6; }
html[data-species="dog"] .report-item-value[data-grade="4"] .report-item-dot { background: #eda945; }

.report-item-value[data-compact="true"] {
  font-size: 10.8px;
}

.report-item-value[data-xcompact="true"] {
  column-gap: 2px;
  font-size: 9.4px;
}

@media print {
  .report-page.report-page-art-shell {
    width: 297mm !important;
    height: 210mm !important;
    padding: 0 !important;
  }

  .report-page-art {
    width: 297mm !important;
    height: 210mm !important;
  }
}
