:root {
  color-scheme: light;
  --ink: #12201c;
  --muted: #5b6862;
  --line: #dce5df;
  --paper: #fbfcf8;
  --mint: #d8f0df;
  --water: #bfe3ea;
  --reef: #f26f4f;
  --leaf: #1f7a5a;
  --gold: #f2b544;
  --deep: #173d37;
  --tt-black: #111111;
  --tt-cyan: #25f4ee;
  --tt-pink: #fe2c55;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(23, 61, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

main {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.jmr-badge {
  background: #fff4d6;
  border: 1px solid rgba(242, 181, 68, 0.6);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
  margin-right: auto;
  padding: 7px 10px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.8vw, 32px);
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
}

.site-nav a {
  text-decoration: none;
}

.cart-nav {
  align-items: center;
  background: var(--tt-black);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  gap: 7px;
  margin-top: -7px;
  min-height: 34px;
  padding: 7px 12px;
}

.cart-nav svg,
.inline-cart svg,
.tiktok-shop svg,
.mobile-action-bar svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cart-nav svg {
  height: 18px;
  width: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: calc(100vh - 72px);
}

.hero-copy {
  align-self: center;
  padding: clamp(48px, 8vw, 92px) clamp(22px, 5vw, 72px);
}

.eyebrow {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 3.5rem;
  line-height: 1.04;
  margin-bottom: 22px;
  max-width: 780px;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.14;
  margin-bottom: 18px;
  overflow-wrap: normal;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 700px;
}

.jmr-origin {
  border-left: 4px solid var(--gold);
  color: var(--deep);
  font-size: 1rem;
  font-weight: 750;
  margin: 22px 0 0;
  max-width: 680px;
  padding-left: 14px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--reef);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--deep);
}

.button.tiktok-shop {
  background:
    linear-gradient(90deg, var(--tt-cyan), transparent 28%),
    linear-gradient(270deg, var(--tt-pink), transparent 28%),
    var(--tt-black);
  color: var(--white);
  gap: 9px;
}

.button.tiktok-shop svg {
  height: 20px;
  width: 20px;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.18), rgba(18, 32, 28, 0.04)),
    url("assets/home-of-fish-hero-clean.png") center / cover no-repeat;
  min-height: 520px;
}

.band,
.section,
.contact,
.site-footer {
  padding-left: clamp(22px, 5vw, 72px);
  padding-right: clamp(22px, 5vw, 72px);
}

.article-page {
  padding: clamp(28px, 5vw, 72px);
}

.article-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1040px;
  padding: clamp(28px, 6vw, 72px);
}

.article-shell h1 {
  font-size: 3.4rem;
}

.article-lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 780px;
}

.back-link {
  color: var(--leaf);
  display: inline-flex;
  font-weight: 850;
  margin-bottom: 28px;
  text-decoration: none;
}

.answer-block,
.warning-block {
  border-radius: 8px;
  margin-top: 28px;
  padding: 24px;
}

.answer-block {
  background: var(--mint);
}

.warning-block {
  background: #fff2e9;
  border: 1px solid #f5bea1;
}

.answer-block h2,
.warning-block h2 {
  font-size: 1.45rem;
}

.answer-block p,
.warning-block p {
  margin-bottom: 0;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.article-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.article-grid h2 {
  font-size: 1.45rem;
}

.article-grid li + li {
  margin-top: 8px;
}

.proof {
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(18px, 3vw, 28px);
  padding-top: clamp(18px, 3vw, 28px);
}

.metric {
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: clamp(16px, 2.6vw, 24px);
}

.metric strong {
  color: #ffd074;
  display: block;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

.metric span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.section {
  padding-bottom: clamp(56px, 8vw, 104px);
  padding-top: clamp(56px, 8vw, 104px);
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
}

.text-stack {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 860px;
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading p {
  color: var(--muted);
}

.tool-hub {
  background: #f9fbf7;
}

.tool-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.tool-entry-card {
  align-content: space-between;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.13), transparent 34%),
    var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  min-height: 270px;
  padding: clamp(18px, 3vw, 28px);
}

.tool-entry-card h3 {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.tool-entry-card p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.tool-entry-card button {
  background: var(--tt-black);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 15px;
  width: 100%;
}

.tool-entry-card.is-open {
  border-color: rgba(31, 122, 90, 0.35);
}

.tool-panel[hidden] {
  display: none !important;
}

.tool-disclaimer {
  background: #fff4d6;
  border: 1px solid rgba(242, 181, 68, 0.55);
  color: var(--deep);
  display: grid;
  gap: 4px;
  line-height: 1.45;
  padding: 13px 15px;
}

.tool-disclaimer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-disclaimer-wide {
  grid-column: 1 / -1;
}

.clinic {
  background: var(--paper);
}

.clinic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.clinic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
}

.clinic-card h3 {
  overflow-wrap: anywhere;
}

.clinic-card.urgent {
  background: #fff2e9;
  border-color: #f5bea1;
}

.card-kicker {
  color: var(--reef);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.clinic-card p {
  color: var(--muted);
}

.card-action {
  align-items: center;
  background: var(--tt-black);
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  margin-top: auto;
  min-height: 40px;
  padding: 9px 12px;
  text-decoration: none;
}

.acclimation-section {
  background: #f9fbf7;
}

.acclimation-app {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  margin-top: 32px;
}

.acclimation-status {
  align-self: start;
  background: var(--tt-black);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  position: sticky;
  top: 98px;
}

.arrival-orbit {
  --arrival-progress: 0deg;
  align-items: center;
  aspect-ratio: 1 / 1;
  background: conic-gradient(var(--tt-cyan) var(--arrival-progress), rgba(255, 255, 255, 0.16) 0);
  border-radius: 50%;
  display: grid;
  justify-self: start;
  place-items: center;
  position: relative;
  width: min(180px, 48vw);
}

.arrival-orbit::after {
  background: var(--tt-black);
  border-radius: 50%;
  content: "";
  inset: 14px;
  position: absolute;
}

.arrival-orbit.is-timing {
  animation: orbitPulse 1.2s ease-in-out infinite;
}

.arrival-orbit.is-complete {
  background: conic-gradient(var(--tt-cyan), var(--tt-pink), var(--tt-cyan));
}

.orbit-fish {
  align-items: center;
  background: linear-gradient(135deg, var(--tt-cyan), var(--tt-pink));
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 2rem;
  font-weight: 950;
  height: 72px;
  justify-content: center;
  position: relative;
  width: 72px;
  z-index: 1;
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.acclimation-status strong {
  font-size: 1.65rem;
  line-height: 1.18;
}

.acclimation-status p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.arrival-progress-track {
  background: rgba(255, 255, 255, 0.18);
  height: 10px;
  overflow: hidden;
}

.arrival-progress-track i {
  background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink));
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.arrival-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 12px;
}

.arrival-steps {
  display: grid;
  gap: 14px;
}

.arrival-step {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: clamp(18px, 3vw, 26px);
}

.arrival-step-number {
  align-items: center;
  background: #fff4d6;
  border: 1px solid rgba(242, 181, 68, 0.55);
  border-radius: 50%;
  color: var(--deep);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.arrival-step h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.arrival-step p,
.arrival-choice {
  color: var(--muted);
}

.evidence-reminder {
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  color: var(--deep);
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
}

.evidence-reminder span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.arrival-check,
.safety-list label {
  align-items: flex-start;
  display: flex;
  gap: 9px;
  font-weight: 850;
  margin-top: 12px;
}

.bag-buttons,
.arrival-toggle-row,
.mix-rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bag-buttons button,
.arrival-toggle-row button,
.inline-action,
.timer-card button {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 12px;
}

.bag-buttons button.is-active,
.arrival-toggle-row button.is-active,
.mix-rounds span.is-done {
  background: var(--tt-black);
  color: var(--white);
}

.bag-custom,
#problemCount {
  border: 1px solid var(--line);
  display: block;
  font: inherit;
  margin-top: 10px;
  min-height: 42px;
  padding: 9px 10px;
  width: min(100%, 320px);
}

.problem-box {
  background: #fff4d6;
  display: none;
  margin-top: 12px;
  padding: 14px;
}

.problem-box.is-visible {
  display: block;
}

.safety-list {
  display: grid;
  gap: 4px;
}

.timer-card {
  align-items: center;
  background: #f7f8f4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.timer-card strong {
  color: var(--tt-pink);
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}

.mix-rounds span {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.1);
  font-weight: 900;
  padding: 8px 10px;
}

.inline-action {
  margin-top: 10px;
}

.release-note {
  background: #e9f7ee;
  border-left: 4px solid var(--leaf);
  color: var(--deep);
  font-weight: 850;
  margin-top: 12px;
  padding: 12px;
}

.claim-note {
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  color: var(--deep);
  font-weight: 800;
  line-height: 1.45;
  margin-top: 12px;
  padding: 12px;
}

.arrival-receipt {
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.14), transparent 34%),
    var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
}

.arrival-receipt h3 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.arrival-receipt p,
.arrival-receipt small {
  color: var(--muted);
}

.arrival-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.arrival-receipt-actions button {
  background: var(--tt-black);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 14px;
}

.arrival-receipt-actions button + button {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.16);
  color: var(--deep);
}

.arrival-receipt-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.symptom-checker {
  background: #f7f8f4;
}

.checker-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin-top: 32px;
}

.quarantine-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  margin-top: 32px;
}

.fry-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin-top: 32px;
}

.checker-panel,
.risk-panel,
.quarantine-panel,
.quarantine-result,
.fry-panel,
.fry-result {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 61, 55, 0.08);
  padding: clamp(20px, 3vw, 30px);
}

.checker-disclaimer {
  background: #fff4d6;
  border: 1px solid rgba(242, 181, 68, 0.55);
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 16px;
  max-width: 820px;
  padding: 13px 15px;
}

.checker-progress {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.checker-progress span {
  background: #fff4d6;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 9px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 6px 0;
}

.checker-panel h3 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.quarantine-panel h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.fry-panel h3 {
  font-size: 1.55rem;
  margin: 18px 0 12px;
}

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

.fry-form-grid label,
.fry-today label {
  color: var(--deep);
  display: grid;
  font-weight: 900;
  gap: 6px;
}

.fry-form-grid input,
.fry-form-grid select,
.fry-today textarea,
.fry-result input {
  border: 1px solid var(--line);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.fry-today textarea {
  margin-top: 12px;
  min-height: 96px;
  resize: vertical;
}

.fry-checks {
  margin: 14px 0;
}

.fry-summary,
.fry-alert,
.fry-log-list {
  display: grid;
  gap: 8px;
}

.fry-summary {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 14px;
}

.fry-summary strong {
  color: var(--deep);
  font-size: 1.25rem;
}

.fry-summary p {
  color: var(--muted);
  margin: 0;
}

.fry-alert {
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  color: var(--deep);
  font-weight: 850;
  margin-top: 14px;
  padding: 12px;
}

.fry-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.fry-actions button {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 9px;
}

.fry-actions button:first-child {
  background: var(--tt-black);
  color: var(--white);
}

.fry-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.fry-log-list {
  margin-top: 16px;
}

.fry-log-list div {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 3px;
  padding: 10px;
}

.fry-log-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

#quarantineLesson {
  color: var(--muted);
  font-size: 1.04rem;
}

#quarantineLesson p {
  margin-bottom: 10px;
}

#quarantineLesson ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

#quarantineLesson li {
  padding-left: 2px;
}

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

.quarantine-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.checker-option {
  background: #f7f8f4;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  min-height: 152px;
  padding: 18px;
  text-align: left;
}

.checker-option:hover,
.checker-option:focus {
  border-color: var(--leaf);
  outline: none;
}

.checker-option strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.checker-option span {
  color: var(--muted);
  font-size: 0.92rem;
}

.checker-option.is-final {
  border-color: var(--leaf);
  grid-column: 1 / -1;
  min-height: 88px;
}

.quarantine-feedback {
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  color: var(--deep);
  font-weight: 850;
  margin-top: 14px;
  padding: 12px;
}

.quarantine-progress-track {
  background: #edf2ee;
  height: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.quarantine-progress-track i {
  background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink));
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.quarantine-certificate {
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.16), transparent 34%),
    #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.12);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.quarantine-certificate span {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quarantine-certificate strong {
  color: var(--deep);
  font-size: 1.35rem;
  line-height: 1.18;
}

.quarantine-certificate p {
  color: var(--muted);
  margin: 0;
}

.quarantine-cert-text {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--deep);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 4px 0 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.quarantine-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.quarantine-actions button {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 9px;
}

.quarantine-actions button:first-child {
  background: var(--tt-black);
  color: var(--white);
}

.quarantine-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quarantine-email-label {
  display: block;
  font-weight: 900;
  margin-top: 16px;
}

#quarantineEmail {
  border: 1px solid var(--line);
  font: inherit;
  margin-top: 8px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

#quarantineStatus {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  margin-top: 8px;
}

.checker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.checker-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.case-note {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.case-note label,
.case-email label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.case-note input {
  width: 100%;
}

.case-photo-preview {
  align-items: center;
  background: #f7f8f4;
  border: 1px dashed rgba(17, 17, 17, 0.2);
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-top: 10px;
  min-height: 82px;
  padding: 10px;
}

.case-photo-preview img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  height: 66px;
  object-fit: cover;
  width: 66px;
}

.risk-bars {
  display: grid;
  gap: 14px;
}

.risk-row span {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.risk-row strong {
  font-size: 0.95rem;
}

.risk-row em {
  color: var(--tt-pink);
  font-style: normal;
  font-weight: 950;
}

.risk-track {
  background: #edf2ee;
  height: 10px;
  overflow: hidden;
}

.risk-track i {
  background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink));
  display: block;
  height: 100%;
  min-width: 2px;
  transition: width 180ms ease;
}

.case-summary {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

/* Case report layout */
.case-report {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.case-report-header {
  align-items: center;
  background: var(--deep);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 14px;
}

.case-id-badge {
  background: var(--tt-cyan);
  color: var(--tt-black);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 4px 9px;
}

.case-report-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
}

.case-section-tag {
  color: var(--leaf);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.case-risk-primary {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.case-risk-primary strong {
  color: var(--deep);
  display: block;
  font-size: 1.22rem;
  line-height: 1.2;
  margin-bottom: 5px;
}

.case-risk-primary p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.case-action-box {
  background: #e9f7ee;
  border-bottom: 1px solid rgba(31, 122, 90, 0.2);
  padding: 12px 16px;
}

.case-action-box .case-section-tag {
  color: var(--leaf);
}

.case-action-box p {
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.case-watch-box {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.case-watch-box .case-section-tag {
  color: var(--muted);
}

.case-watch-box p {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.case-secondary-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.case-secondary-row strong {
  color: var(--deep);
  font-size: 0.95rem;
}

.case-report-extra {
  background: #fff4d6;
  border-bottom: 1px solid rgba(242, 181, 68, 0.4);
  padding: 10px 16px;
}

.case-report-extra strong {
  color: var(--deep);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.case-report-extra p {
  color: var(--deep);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.case-disclaimer {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 16px;
}

.case-save-panel {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 14px;
}

.case-save-panel:empty {
  display: none;
}

.case-save-panel h4,
.case-save-panel p {
  margin: 0;
}

.case-save-panel p,
.case-save-panel small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.case-save-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-save-actions button {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 9px;
}

.case-save-actions button:first-child {
  background: var(--tt-black);
  color: var(--white);
}

.case-save-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.article-match,
.product-match,
.quarantine-products {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.article-match {
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 14px;
}

.article-match h4,
.product-match h4,
.quarantine-products h4 {
  margin: 0;
}

.article-match p,
.product-match p,
.quarantine-products p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.article-match a,
.case-prompt {
  background: var(--white);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 11px;
  text-decoration: none;
}

.article-match a strong,
.case-prompt strong {
  color: var(--deep);
  line-height: 1.25;
}

.article-match a span,
.case-prompt span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.product-match a,
.quarantine-products a {
  align-items: center;
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 8px;
  text-decoration: none;
}

.product-match img,
.quarantine-products img {
  aspect-ratio: 1 / 1;
  background: var(--white);
  display: block;
  object-fit: contain;
  padding: 4px;
  width: 58px;
}

.product-match span,
.quarantine-products span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-match strong,
.quarantine-products strong {
  display: -webkit-box;
  font-size: 0.88rem;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-match em,
.quarantine-products em {
  color: var(--tt-pink);
  font-style: normal;
  font-weight: 950;
}

.case-email {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.case-email div {
  display: flex;
  gap: 8px;
}

.case-email input {
  border: 1px solid var(--line);
  flex: 1;
  font: inherit;
  min-height: 42px;
  min-width: 0;
  padding: 9px 10px;
}

.case-email button {
  background: var(--tt-black);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 14px;
}

.case-email p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 8px 0 0;
}

.water-panel {
  align-items: center;
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  padding-bottom: clamp(52px, 7vw, 86px);
  padding-top: clamp(52px, 7vw, 86px);
}

.water-panel .eyebrow {
  color: var(--gold);
}

.water-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

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

.checklist div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  min-height: 96px;
  padding: 18px;
}

.checklist strong {
  color: var(--gold);
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.checklist span {
  color: rgba(255, 255, 255, 0.78);
}

.media-bridge {
  align-items: center;
  background: linear-gradient(110deg, var(--water), var(--mint) 58%, #fff4d6);
  display: grid;
  gap: clamp(20px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.media-bridge-copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.media-bridge-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0;
}

.media-bridge-card {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
}

.media-bridge-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0;
}

.media-bridge-card p {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.product-note {
  background: var(--paper);
}

.product-note > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 980px;
  padding: clamp(26px, 4vw, 42px);
}

.shop-note > div {
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}

.inline-cart {
  align-items: center;
  background: var(--tt-black);
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-right: 10px;
  vertical-align: middle;
  width: 42px;
}

.inline-cart svg {
  height: 23px;
  width: 23px;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.shop-card {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(37, 244, 238, 0.12), transparent 38%),
    linear-gradient(270deg, rgba(254, 44, 85, 0.12), transparent 38%),
    #fafafa;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 20px;
}

.medicine-feature {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 16px;
  padding: 16px;
}

.medicine-feature-copy h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.medicine-feature-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.medicine-feature-item {
  align-items: center;
  background: #f7f8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 92px;
  padding: 8px;
  text-decoration: none;
}

.medicine-feature-item img {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: 6px;
  display: block;
  height: 72px;
  object-fit: contain;
  padding: 4px;
  width: 72px;
}

.medicine-feature-item span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.medicine-feature-item strong {
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.medicine-feature-item em {
  color: var(--tt-pink);
  font-style: normal;
  font-weight: 950;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.catalog-filter {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  color: var(--tt-black);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 13px;
}

.catalog-filter.is-active {
  background: var(--tt-black);
  color: var(--white);
}

.catalog-search-row {
  align-items: end;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-top: 16px;
  max-width: 720px;
}

.catalog-search-label {
  color: var(--deep);
  font-size: 0.88rem;
  font-weight: 900;
  grid-column: 1 / -1;
}

#catalogSearch {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.16);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

#catalogSearch:focus {
  border-color: var(--leaf);
  outline: 3px solid rgba(31, 122, 90, 0.14);
}

#catalogCount {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  padding-bottom: 11px;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.catalog-item {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
}

.catalog-item.is-hidden {
  display: none;
}

.catalog-empty {
  background: var(--white);
  border: 1px dashed rgba(17, 17, 17, 0.18);
  color: var(--muted);
  font-weight: 850;
  margin-top: 18px;
  padding: 18px;
}

.catalog-thumb {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f7f8f4;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--muted);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.catalog-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.catalog-price {
  color: var(--tt-pink);
  display: flex;
  font-size: 1.18rem;
  font-weight: 950;
  gap: 8px;
  margin: auto 16px 10px;
  min-height: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.catalog-discount {
  background: #fff2e9;
  color: var(--tt-pink);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 6px;
}

.catalog-item h3 {
  display: -webkit-box;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 16px 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.catalog-meta {
  color: var(--leaf);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  margin: 14px 16px 9px;
  text-transform: uppercase;
}

.catalog-buy {
  align-items: center;
  background: var(--tt-black);
  color: var(--white);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  margin: 0 16px 16px;
  min-height: 40px;
  padding: 9px 12px;
  text-decoration: none;
}

.shop-card h3 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.shop-card p {
  margin-bottom: 0;
}

.shop-label {
  color: var(--tt-pink);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.shop-stats {
  display: flex;
  gap: 10px;
}

.shop-stats span {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  color: var(--muted);
  display: block;
  min-width: 96px;
  padding: 12px;
  text-align: center;
}

.shop-stats strong {
  color: var(--tt-black);
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 5px;
}

.product-note p {
  color: var(--muted);
  font-size: 1.05rem;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
}

.contact {
  align-items: center;
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: clamp(44px, 6vw, 72px);
  padding-top: clamp(44px, 6vw, 72px);
}

.contact .eyebrow {
  color: var(--gold);
}

.contact p {
  max-width: 760px;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  min-height: 86px;
  gap: 16px;
}

.mobile-action-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 12px 38px rgba(17, 17, 17, 0.18);
  display: flex;
  gap: 10px;
  left: 50%;
  padding: 8px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 50;
}

.mobile-action-bar a {
  align-items: center;
  color: var(--tt-black);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-action-bar .center-action {
  background:
    linear-gradient(135deg, var(--tt-cyan), transparent 36%),
    linear-gradient(315deg, var(--tt-pink), transparent 36%),
    var(--tt-black);
  border-radius: 999px;
  color: var(--white);
  justify-content: center;
  padding: 8px;
  width: 48px;
}

.mobile-action-bar svg {
  height: 22px;
  width: 22px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.95rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero,
  .split,
  .contact,
  .water-panel,
  .checker-shell,
  .quarantine-shell,
  .fry-shell,
  .article-grid,
  .shop-card,
  .medicine-feature,
  .acclimation-app,
  .media-bridge {
    grid-template-columns: 1fr;
  }

  .acclimation-status {
    position: static;
  }

  .shop-stats {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 460px;
    order: -1;
  }

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

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

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

}

@media (max-width: 720px) {
  h1 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  .article-shell h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.55rem;
    line-height: 1.18;
  }

  .tool-entry-card {
    min-height: 200px;
  }

  .tool-entry-card h3,
  .acclimation-status strong,
  .arrival-receipt h3,
  .shop-card h3 {
    font-size: 1.35rem;
  }

  .arrival-step h3,
  .medicine-feature-copy h3,
  .article-grid h2,
  .answer-block h2,
  .warning-block h2 {
    font-size: 1.18rem;
  }

  .metric strong {
    font-size: 2rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: static;
  }

  .jmr-badge {
    margin-right: 0;
    white-space: normal;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .site-nav a[href="#water"],
  .site-nav a[href="#media"] {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    overflow-wrap: anywhere;
  }

  .hero-copy {
    padding-top: 36px;
  }

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

  .hero-media {
    min-height: 340px;
    order: 0;
  }

  .proof,
  .clinic-grid,
  .checker-options,
  .quarantine-options,
  .checklist,
  .tool-card-grid,
  .media-bridge {
    grid-template-columns: 1fr;
  }

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

  #catalogCount {
    padding-bottom: 0;
    white-space: normal;
  }

  .catalog-grid,
  .medicine-feature-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checker-option {
    min-height: 124px;
  }

  .checker-panel h3,
  .quarantine-panel h3 {
    font-size: 1.4rem;
  }

  .checker-shell,
  .quarantine-shell {
    margin-top: 22px;
  }

  .checker-panel,
  .risk-panel,
  .quarantine-panel,
  .quarantine-result,
  .fry-panel,
  .fry-result {
    padding: 18px;
  }

  .case-report-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .case-risk-primary strong {
    font-size: 1.08rem;
  }

  .arrival-step {
    grid-template-columns: 1fr;
  }

  .timer-card {
    align-items: stretch;
    flex-direction: column;
  }

  .timer-card strong {
    margin-right: 0;
  }

  .case-save-actions,
  .quarantine-actions,
  .fry-actions,
  .fry-form-grid {
    grid-template-columns: 1fr;
  }

  .catalog-item {
    min-height: 0;
  }

  .catalog-thumb {
    aspect-ratio: 1 / 1;
  }

  .catalog-meta {
    font-size: 0.68rem;
    margin: 10px 10px 6px;
  }

  .catalog-item h3 {
    font-size: 0.88rem;
    line-height: 1.28;
    margin: 0 10px 8px;
    -webkit-line-clamp: 2;
  }

  .catalog-price {
    font-size: 1rem;
    margin: auto 10px 8px;
    min-height: 26px;
  }

  .catalog-discount {
    font-size: 0.68rem;
    padding: 2px 5px;
  }

  .catalog-buy {
    font-size: 0.78rem;
    margin: 0 10px 10px;
    min-height: 34px;
    padding: 7px 8px;
  }

  .medicine-feature {
    padding: 12px;
  }

  .medicine-feature-item {
    align-items: start;
    gap: 7px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .medicine-feature-item img {
    height: auto;
    width: 100%;
  }

  .medicine-feature-item strong {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .metric {
    min-height: 118px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 24px;
    padding-top: 24px;
  }
}

@media (min-width: 860px) {
  .mobile-action-bar {
    display: none;
  }
}

@media (max-width: 859px) {
  body {
    padding-bottom: 0;
  }

  .mobile-action-bar {
    bottom: auto;
    left: auto;
    margin: 0 auto 16px;
    position: static;
    transform: none;
    width: max-content;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.95rem;
    line-height: 1.1;
  }

  .site-header {
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-nav {
    display: grid;
    font-size: 0.86rem;
    gap: 10px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
  }

  .site-nav a {
    min-width: 0;
  }

  .site-nav a[href="#water"],
  .site-nav a[href="#media"] {
    display: none;
  }

  .cart-nav {
    grid-column: span 2;
    justify-self: start;
    margin-top: 0;
  }

  .hero-copy {
    padding-left: 25px;
    padding-right: 25px;
  }

  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .case-email div {
    flex-direction: column;
  }

  .case-email button {
    min-height: 42px;
  }

  .catalog-grid {
    gap: 9px;
  }

  .catalog-item h3 {
    font-size: 0.82rem;
  }

  .catalog-price {
    font-size: 0.96rem;
  }

  .mobile-action-bar {
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }

  .mobile-action-bar a {
    font-size: 0.8rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================
   HOME OF FISH ASSISTANT — CHAT UI
   ============================================ */

.chat-shell {
  padding: 0;
}

.chat-ui {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: #f7faf8;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.chat-header {
  background: var(--deep);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-info .chat-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.chat-info .chat-status {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-msg-row.user-row {
  flex-direction: row-reverse;
}

.chat-msg-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-bubble.bot-bubble {
  background: #fff;
  color: var(--ink);
  border: 0.5px solid var(--line);
  border-bottom-left-radius: 3px;
}

.chat-bubble.user-bubble {
  background: var(--deep);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-bubble.typing-bubble {
  padding: 12px 16px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatBlink 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBlink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Product popup in chat */
.chat-product-card {
  margin-left: 34px;
  background: #fff;
  border: 1.5px solid var(--reef);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-icon {
  width: 36px;
  height: 36px;
  background: #fff1ec;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cp-info {
  flex: 1;
}

.cp-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.cp-dose {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.cp-buy-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  background: var(--reef);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.chat-disclaimer {
  margin-left: 34px;
  font-size: 10px;
  color: var(--muted);
  background: #fffbf0;
  border: 0.5px solid var(--gold);
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.5;
}

/* Chat input */
.chat-input-area {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
  flex-shrink: 0;
}

.chat-textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  background: #f7faf8;
  color: var(--ink);
  resize: none;
  line-height: 1.5;
  max-height: 80px;
  outline: none;
}

.chat-textarea:focus {
  border-color: var(--leaf);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-send-btn:hover { background: var(--leaf); }
.chat-send-btn:disabled { opacity: 0.5; cursor: default; }

/* Case action buttons */
.chat-case-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.case-action-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.case-action-btn:hover {
  border-color: var(--leaf);
  background: #f5fdf8;
}

/* Tool card updates */
.tool-entry-card.featured-card {
  border: 2px solid var(--reef);
  position: relative;
}

.tool-entry-card.soon-card {
  opacity: 0.5;
  cursor: default;
}

.tool-entry-card.soon-card button {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.tool-new-badge {
  display: inline-block;
  background: #fff1ec;
  color: var(--reef);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* Article box */
.article-bridge {
  margin: 0 clamp(18px, 4vw, 56px) 32px;
}

.article-bridge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.article-bridge-card:hover {
  border-color: var(--leaf);
}

.article-bridge-icon {
  font-size: 24px;
  color: var(--muted);
  flex-shrink: 0;
}

.article-bridge-text .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.article-bridge-text .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.article-bridge-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--muted);
}

/* Bottom nav update */
.mobile-action-bar {
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}

.mobile-action-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.mobile-action-bar a.active,
.mobile-action-bar a:hover {
  color: var(--deep);
}

.mobile-action-bar a svg,
.mobile-action-bar a span.nav-icon {
  font-size: 20px;
}

@media (min-width: 768px) {
  .chat-ui {
    height: 560px;
  }
}
