:root {
  --ink: #24342f;
  --muted: #77817d;
  --paper: #f3f0e9;
  --surface: rgba(255, 255, 255, 0.68);
  --line: rgba(36, 52, 47, 0.12);
  --accent: #d96547;
  --shadow: 0 18px 50px rgba(54, 61, 57, 0.09);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
}

body {
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(217, 101, 71, 0.25);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  padding: 0 34px;
  background:
    radial-gradient(circle at 4% 8%, rgba(223, 144, 83, 0.12), transparent 26%),
    radial-gradient(circle at 94% 86%, rgba(67, 125, 105, 0.1), transparent 29%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 50%);
}

.topbar {
  height: 96px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 1.5fr) minmax(210px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 11px 9px;
  transform: rotate(-2deg);
}

.brand-mark span {
  width: 6px;
  border-radius: 8px 8px 2px 2px;
  background: #f2c276;
}

.brand-mark span:nth-child(1) {
  height: 11px;
  transform: rotate(-14deg);
}

.brand-mark span:nth-child(2) {
  height: 22px;
}

.brand-mark span:nth-child(3) {
  height: 16px;
  transform: rotate(12deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb-button {
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
}

.breadcrumb-button.current {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumb-separator {
  opacity: 0.35;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-button svg,
.search-input-wrap svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.date-chip {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  line-height: 1.05;
}

.date-chip span,
.date-chip small {
  display: block;
}

.date-chip span {
  font-weight: 600;
  font-size: 13px;
}

.date-chip small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

.main-content {
  width: min(1320px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 148px);
  padding: 42px 0 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.hero h1,
.section-heading h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero h1 span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  max-width: 370px;
  margin: 0 0 5px auto;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.data-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.data-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.42);
}

.data-summary b {
  color: var(--ink);
  font-size: 13px;
  margin-right: 3px;
}

.entry-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.entry-legend.five {
  grid-template-columns: repeat(5, 1fr);
}

.entry-pill {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.entry-pill b {
  font-size: 15px;
}

.entry-pill span {
  color: var(--muted);
  font-size: 10px;
}

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

.category-card {
  min-height: 184px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 52, 47, 0.08);
  border-radius: 24px;
  padding: 22px;
  background: var(--card-bg);
  box-shadow: 0 6px 22px rgba(46, 56, 51, 0.035);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card.featured {
  grid-column: span 2;
}

.category-number {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 10px;
  color: rgba(36, 52, 47, 0.45);
}

.category-icon {
  width: 49px;
  height: 49px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: var(--card-color);
  font-size: 25px;
  margin-bottom: 22px;
}

.category-card h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.category-status {
  position: absolute;
  top: 67px;
  right: 21px;
  max-width: 125px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  color: rgba(36, 52, 47, 0.62);
  background: rgba(255, 255, 255, 0.48);
}

.category-status.ready {
  color: #397056;
}

.category-status.partial,
.category-status.logic {
  color: #8b6746;
}

.category-card p {
  font-size: 12px;
  color: rgba(36, 52, 47, 0.62);
  margin: 8px 0 0;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 19px;
  font-size: 20px;
  transform: translateX(-4px);
  opacity: 0;
  transition: 180ms ease;
}

.category-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h1 {
  font-size: clamp(36px, 4vw, 54px);
}

.section-description {
  color: var(--muted);
  line-height: 1.75;
  max-width: 410px;
  font-size: 14px;
}

.category-heading {
  margin-bottom: 24px;
}

.category-readiness {
  display: inline-flex;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 10px;
}

.lens-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
}

.lens-tab {
  border: 0;
  border-radius: 15px;
  background: transparent;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
}

.lens-tab.active {
  color: white;
  background: var(--ink);
  box-shadow: 0 9px 22px rgba(36, 52, 47, 0.16);
}

.lens-tab b,
.lens-tab small {
  display: block;
}

.lens-tab b {
  font-size: 15px;
}

.lens-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.lens-tab.active small {
  color: rgba(255, 255, 255, 0.68);
}

.filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--category-color);
  border-color: var(--category-color);
  color: white;
}

.result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 11px 0 14px;
}

.result-heading span {
  font-size: 13px;
  font-weight: 700;
}

.result-heading small {
  color: var(--muted);
}

.logic-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logic-path-card {
  min-height: 272px;
  border: 1px solid rgba(36, 52, 47, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, var(--option-soft), transparent 37%),
    rgba(255, 255, 255, 0.76);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.logic-path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.path-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.path-index {
  color: var(--option-accent);
  font-size: 10px;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 600;
}

.status-badge.ready {
  color: #397056;
  background: #e3f0e8;
}

.status-badge.pending {
  color: #8d6742;
  background: #f4eadb;
}

.logic-path-card h2 {
  margin: 22px 0 8px;
  font-size: 22px;
}

.logic-path-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.55);
}

.path-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px;
  text-align: center;
  color: var(--muted);
}

.path-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 54px;
  align-items: start;
}

.detail-primary {
  padding: 25px 0;
}

.detail-primary > h1 {
  margin: 15px 0 18px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.four-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-info-block {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
}

.detail-info-block:nth-child(2),
.detail-info-block:nth-child(3) {
  padding-left: 18px;
}

.detail-info-block:last-child {
  border-right: 0;
}

.detail-info-block h3 {
  margin: 0 0 12px;
  color: var(--product-color);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.detail-chip-list {
  display: grid;
  gap: 8px;
}

.detail-chip-list span {
  font-size: 12px;
  line-height: 1.45;
}

.science-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  margin-bottom: 25px;
}

.science-panel summary {
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.science-panel summary::-webkit-details-marker {
  display: none;
}

.science-panel summary small,
.science-panel summary b {
  display: block;
}

.science-panel summary small {
  color: var(--product-color);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.science-panel summary b {
  margin-top: 4px;
  font-size: 14px;
}

.details-plus {
  font-size: 23px;
  transition: transform 180ms ease;
}

.science-panel[open] .details-plus {
  transform: rotate(45deg);
}

.science-content {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.science-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 13px;
}

.science-content > small {
  display: block;
  margin-top: 16px;
  color: #a07955;
  line-height: 1.55;
}

.science-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.science-flow span {
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--product-soft);
  font-size: 10px;
}

.science-flow i {
  color: var(--muted);
  font-style: normal;
}

.detail-side {
  position: sticky;
  top: 116px;
}

.detail-visual.compact {
  min-height: 360px;
}

.detail-visual.compact::before {
  width: 250px;
  height: 250px;
}

.detail-visual.compact .detail-package {
  transform: scale(0.75);
}

.product-facts,
.pending-product-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.62);
  padding: 22px;
}

.product-facts h2,
.pending-product-panel h2 {
  margin: 14px 0;
  font-size: 20px;
}

.product-facts dl {
  margin: 0;
}

.product-facts dl > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.product-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.product-facts dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ingredient-list small {
  width: 100%;
  color: var(--muted);
  margin-bottom: 2px;
}

.ingredient-list span,
.pending-checklist span {
  border-radius: 999px;
  background: var(--product-soft);
  padding: 5px 8px;
  font-size: 9px;
}

.pending-product-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.pending-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.option-card {
  min-height: 310px;
  border: 0;
  border-radius: var(--radius);
  padding: 28px;
  background: white;
  box-shadow: 0 8px 30px rgba(52, 62, 57, 0.06);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease;
}

.option-card:hover {
  transform: translateY(-5px);
}

.option-visual {
  height: 142px;
  border-radius: 20px;
  margin-bottom: 25px;
  background:
    radial-gradient(circle at 65% 40%, var(--option-accent) 0 9%, transparent 10%),
    radial-gradient(circle at 45% 62%, rgba(255, 255, 255, 0.65) 0 13%, transparent 14%),
    linear-gradient(135deg, var(--option-soft), #f8f6f0);
  position: relative;
}

.option-visual::before,
.option-visual::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--option-accent) 48%, transparent);
  border-radius: 50%;
}

.option-visual::before {
  width: 84px;
  height: 84px;
  left: 22%;
  top: 26px;
}

.option-visual::after {
  width: 42px;
  height: 42px;
  right: 17%;
  bottom: 19px;
}

.option-card h2 {
  margin: 0;
  font-size: 22px;
}

.option-card p {
  margin: 9px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 86%;
}

.option-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  font-size: 11px;
  color: var(--muted);
}

.round-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.products-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: start;
}

.products-intro {
  position: sticky;
  top: 120px;
}

.products-intro h1 {
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.06;
  margin: 15px 0 20px;
}

.products-intro p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 360px;
}

.logic-card {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 360px;
}

.logic-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.logic-card strong {
  font-size: 15px;
  line-height: 1.7;
}

.product-list {
  display: grid;
  gap: 17px;
}

.product-row {
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.product-row:hover {
  transform: translateX(5px);
  background: white;
}

.product-thumb {
  height: 118px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--product-soft), #f7f3eb);
  overflow: hidden;
}

.product-package {
  width: 60px;
  height: 82px;
  background: white;
  border-radius: 8px 8px 14px 14px;
  box-shadow: 0 11px 24px rgba(53, 62, 57, 0.16);
  position: relative;
}

.product-package::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 10px;
  background: var(--product-color);
  border-radius: 4px 4px 1px 1px;
  top: -7px;
  left: 13px;
}

.product-package::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 27px;
  height: 23px;
  border-top: 2px solid var(--product-color);
  border-bottom: 1px solid var(--product-color);
  opacity: 0.8;
}

.product-info small {
  color: var(--product-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.product-info h2 {
  font-size: 21px;
  margin: 7px 0;
}

.product-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.product-row .round-arrow {
  margin-right: 8px;
}

.detail-layout {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.detail-visual {
  min-height: 560px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    radial-gradient(circle at 25% 77%, rgba(255, 255, 255, 0.42) 0 17%, transparent 18%),
    linear-gradient(145deg, var(--product-soft), #f6f2e9);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.detail-visual::before {
  content: "";
  width: 330px;
  height: 330px;
  border: 1px solid color-mix(in srgb, var(--product-color) 42%, transparent);
  border-radius: 50%;
  position: absolute;
}

.detail-package {
  width: 188px;
  height: 278px;
  border-radius: 18px 18px 32px 32px;
  background: linear-gradient(100deg, #f3f2ee, white 52%, #e9e8e2);
  box-shadow: 0 38px 60px rgba(47, 59, 53, 0.2);
  position: relative;
  z-index: 1;
}

.detail-package::before {
  content: "";
  width: 108px;
  height: 30px;
  border-radius: 9px 9px 3px 3px;
  background: var(--product-color);
  position: absolute;
  top: -21px;
  left: 40px;
}

.package-label {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 84px;
  padding: 17px 8px;
  border-top: 3px solid var(--product-color);
  border-bottom: 1px solid var(--product-color);
  text-align: center;
}

.package-label small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--product-color);
}

.package-label strong {
  display: block;
  font-size: 17px;
  margin-top: 8px;
}

.visual-note {
  position: absolute;
  bottom: 22px;
  right: 25px;
  font-size: 9px;
  color: rgba(36, 52, 47, 0.42);
  letter-spacing: 0.15em;
}

.detail-content {
  max-width: 600px;
}

.detail-content h1 {
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 16px 0 20px;
}

.detail-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 520px;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit-item {
  padding: 22px 16px 22px 0;
  border-right: 1px solid var(--line);
}

.benefit-item:last-child {
  border-right: 0;
  padding-left: 20px;
}

.benefit-item:nth-child(2) {
  padding-left: 20px;
}

.benefit-item span {
  display: block;
  color: var(--product-color);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-item strong {
  font-size: 14px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 13px;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
}

.app-footer {
  width: min(1320px, 100%);
  margin: 0 auto;
  height: 52px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-count b {
  color: var(--ink);
  font-size: 13px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 42, 38, 0.58);
  backdrop-filter: blur(14px);
  padding: 8vh 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-panel {
  width: min(760px, 100%);
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 27px;
  background: #f7f4ed;
  box-shadow: 0 34px 100px rgba(20, 29, 25, 0.35);
  overflow: hidden;
}

.search-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
}

.search-input-wrap button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-results {
  padding: 13px;
  overflow-y: auto;
  max-height: calc(82vh - 70px);
}

.search-result {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.search-result:hover {
  background: white;
}

.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--result-bg);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  color: var(--muted);
  margin-top: 4px;
}

.search-empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}

.fade-in {
  animation: fade-in 360ms ease both;
}

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

.directory-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.directory-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.directory-category-card,
.directory-product-card {
  border: 1px solid rgba(36, 52, 47, 0.08);
  border-radius: 22px;
  padding: 20px;
  min-height: 190px;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.directory-category-card {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.directory-category-card > span {
  color: var(--card-color);
  font-size: 10px;
  font-weight: 700;
}

.directory-category-card b {
  margin-top: 35px;
  font-size: 21px;
}

.directory-category-card small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.directory-category-card em {
  margin-top: auto;
  padding-top: 18px;
  color: var(--card-color);
  font-size: 10px;
  font-style: normal;
}

.directory-product-card {
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-direction: column;
}

.directory-product-image {
  height: 260px;
  background: var(--option-soft);
  overflow: hidden;
}

.directory-product-image img,
.product-facts-image img,
.detail-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.directory-product-content {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.directory-product-content > small {
  color: var(--option-accent);
  margin-top: 7px;
  font-size: 9px;
}

.directory-product-card h3 {
  margin: 9px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.directory-product-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.sales-card-axis {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.55;
}

.sales-card-axis b {
  color: var(--option-accent);
}

.sales-card-axis span {
  color: var(--muted);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.75), transparent 25%),
    linear-gradient(145deg, var(--option-soft, var(--product-soft)), #f8f6f0);
}

.product-image-placeholder span {
  color: var(--option-accent, var(--product-color));
  font-size: 9px;
  letter-spacing: 0.18em;
}

.product-image-placeholder b {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.directory-arrow {
  margin-top: auto;
  padding-top: 18px;
  color: var(--option-accent);
  font-size: 10px;
}

.directory-category-card:hover,
.directory-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.group-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.group-card {
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  padding: 17px;
  text-align: left;
  cursor: pointer;
}

.group-card b,
.group-card span {
  display: block;
}

.group-card b {
  font-size: 16px;
}

.group-card span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.group-card.active {
  color: white;
  background: var(--ink);
}

.group-card.active span {
  color: rgba(255, 255, 255, 0.68);
}

.directory-prompt {
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.product-stack {
  display: grid;
  gap: 14px;
}

.product-facts {
  overflow: hidden;
}

.product-facts-image {
  height: 250px;
  margin: -22px -22px 18px;
  background: var(--product-soft);
  overflow: hidden;
}

.product-sales-summary {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.product-sales-summary > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  font-size: 10px;
  line-height: 1.55;
}

.product-sales-summary b {
  color: var(--product-color);
}

.product-sales-summary span {
  color: var(--muted);
}

.detail-visual.compact.has-product-image {
  background: var(--product-soft);
}

.detail-visual.compact.has-product-image::before {
  display: none;
}

.detail-hero-image {
  position: absolute;
  inset: 0;
}

.detail-visual.compact.has-product-image .visual-note {
  z-index: 2;
  color: white;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(20, 28, 25, 0.55);
  backdrop-filter: blur(10px);
}

.product-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5eadc;
  color: #865f3c;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .entry-legend.five,
  .directory-category-grid,
  .directory-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shell {
    padding: 0 22px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .breadcrumbs {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .logic-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-detail {
    grid-template-columns: 1fr 0.82fr;
    gap: 28px;
  }

  .products-layout,
  .detail-layout {
    gap: 28px;
  }

  .detail-visual {
    min-height: 470px;
  }

  .entry-legend.five .entry-pill:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .directory-product-grid {
    grid-template-columns: 1fr;
  }

  .directory-product-card {
    min-height: 0;
  }

  .app-shell {
    padding: 0 16px;
  }

  .topbar {
    height: 78px;
  }

  .date-chip {
    display: none;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .main-content {
    padding-top: 28px;
  }

  .hero,
  .section-heading,
  .products-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin: 0;
  }

  .data-summary {
    justify-content: flex-start;
  }

  .entry-legend,
  .lens-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-legend.five,
  .directory-category-grid,
  .directory-product-grid,
  .group-selector {
    grid-template-columns: 1fr;
  }

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

  .category-card,
  .category-card.featured {
    grid-column: span 1;
    min-height: 166px;
  }

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

  .logic-path-grid,
  .path-detail {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .four-axis-grid {
    grid-template-columns: 1fr;
  }

  .detail-info-block,
  .detail-info-block:nth-child(2),
  .detail-info-block:nth-child(3) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-info-block:last-child {
    border-bottom: 0;
  }

  .products-intro {
    position: static;
  }

  .product-row {
    grid-template-columns: 110px 1fr;
  }

  .product-row > .round-arrow {
    display: none;
  }

  .detail-visual {
    min-height: 380px;
  }

  .detail-package {
    transform: scale(0.76);
  }

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

  .benefit-item,
  .benefit-item:nth-child(2),
  .benefit-item:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

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

@media (max-width: 430px) {
  .brand strong {
    font-size: 15px;
  }

  .category-grid {
    gap: 10px;
  }

  .category-card {
    padding: 17px;
    min-height: 154px;
  }

  .category-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
  }

  .category-card h2 {
    font-size: 17px;
  }

  .category-status {
    top: 61px;
    right: 15px;
    max-width: 98px;
  }

  .entry-pill {
    display: grid;
    gap: 2px;
  }

  .lens-tab {
    padding: 11px;
  }

  .category-card p {
    display: none;
  }

  .product-row {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .product-thumb {
    height: 90px;
  }
}

/* Technology presentation theme */
:root {
  --ink: #e9f7f2;
  --muted: #8fa7a0;
  --paper: #07110f;
  --surface: rgba(13, 31, 27, 0.78);
  --line: rgba(134, 243, 204, 0.14);
  --accent: #70f0c1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html,
body {
  background: var(--paper);
}

.app-shell {
  background:
    linear-gradient(rgba(112, 240, 193, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 240, 193, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 7% 9%, rgba(44, 183, 208, 0.16), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(63, 225, 159, 0.12), transparent 28%),
    #07110f;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.topbar {
  background: rgba(7, 17, 15, 0.72);
  backdrop-filter: blur(18px);
}

.brand-mark {
  background: linear-gradient(145deg, #153c34, #0a201c);
  border: 1px solid rgba(112, 240, 193, 0.28);
  box-shadow: inset 0 0 22px rgba(112, 240, 193, 0.08), 0 0 25px rgba(112, 240, 193, 0.1);
}

.brand-mark span {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(112, 240, 193, 0.5);
}

.icon-button,
.data-summary span,
.entry-pill,
.lens-tabs,
.category-readiness,
.group-card,
.filter-chip {
  background: rgba(13, 31, 27, 0.72);
  border-color: var(--line);
}

.icon-button:hover,
.entry-pill:hover {
  border-color: rgba(112, 240, 193, 0.45);
  box-shadow: 0 0 25px rgba(112, 240, 193, 0.08);
}

.hero h1 span {
  color: var(--accent);
  font-family: inherit;
  font-style: normal;
  text-shadow: 0 0 28px rgba(112, 240, 193, 0.24);
}

.data-summary b,
.footer-count b {
  color: var(--ink);
}

.category-card,
.directory-category-card,
.logic-path-card {
  position: relative;
  overflow: hidden;
  border-color: var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--option-accent)) 10%, transparent), transparent 45%),
    rgba(12, 29, 25, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.category-card::after,
.directory-category-card::after,
.logic-path-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-color, var(--option-accent)), transparent);
  opacity: 0.5;
}

.category-card:hover,
.directory-category-card:hover,
.logic-path-card:hover,
.directory-product-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--option-accent)) 55%, transparent);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28), 0 0 25px rgba(112, 240, 193, 0.06);
}

.category-icon {
  color: var(--card-color);
  background: color-mix(in srgb, var(--card-color) 12%, #0b1d19);
  border: 1px solid color-mix(in srgb, var(--card-color) 32%, transparent);
}

.category-number,
.category-card p,
.category-status {
  color: var(--muted);
}

.category-status {
  background: rgba(7, 17, 15, 0.55);
  border: 1px solid var(--line);
}

.lens-tab.active,
.group-card.active,
.primary-button {
  color: #052019;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(112, 240, 193, 0.18);
}

.lens-tab.active small,
.group-card.active span {
  color: rgba(5, 32, 25, 0.68);
}

.filter-chip.active {
  color: #071a15;
  box-shadow: 0 0 18px color-mix(in srgb, var(--category-color) 24%, transparent);
}

.tag-list span,
.ingredient-list span,
.pending-checklist span {
  color: #bad0c9;
  border-color: var(--line);
  background: rgba(112, 240, 193, 0.07);
}

.science-panel,
.product-facts,
.pending-product-panel,
.directory-product-card {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(12, 29, 25, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.directory-product-card {
  position: relative;
}

.directory-product-image,
.product-facts-image {
  background: #0c1d19;
}

.directory-product-image img,
.product-facts-image img,
.detail-hero-image {
  filter: saturate(0.94) contrast(1.03);
}

.sales-card-axis,
.product-facts dl > div,
.science-content {
  border-color: var(--line);
}

.product-image-placeholder {
  background:
    radial-gradient(circle at 70% 18%, rgba(112, 240, 193, 0.16), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--option-soft, var(--product-soft)) 18%, #0b211c), #091713);
}

.product-image-placeholder::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: 22px;
  top: 22px;
  border: 1px solid rgba(112, 240, 193, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 35px rgba(112, 240, 193, 0.05);
}

.product-image-placeholder {
  position: relative;
  overflow: hidden;
}

.status-badge.ready {
  color: #83f2c9;
  background: rgba(61, 199, 147, 0.12);
  border: 1px solid rgba(112, 240, 193, 0.16);
}

.status-badge.pending,
.product-note {
  color: #efbd7e;
  background: rgba(217, 139, 62, 0.1);
  border: 1px solid rgba(239, 189, 126, 0.14);
}

.status-badge.related {
  color: #7fd9f5;
  background: rgba(65, 171, 211, 0.11);
  border: 1px solid rgba(127, 217, 245, 0.18);
}

.detail-visual {
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--product-color) 24%, transparent), transparent 38%),
    linear-gradient(145deg, #102721, #081511);
  border: 1px solid var(--line);
}

.detail-visual::before {
  border-color: color-mix(in srgb, var(--product-color) 45%, transparent);
  box-shadow: 0 0 55px color-mix(in srgb, var(--product-color) 12%, transparent);
}

.detail-package {
  color: #14211d;
}

.secondary-button {
  color: var(--ink);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: rgba(112, 240, 193, 0.4);
}

.search-overlay {
  background: rgba(2, 8, 7, 0.82);
}

.search-panel {
  background: #0b1d19;
  border: 1px solid var(--line);
}

.search-result:hover {
  background: rgba(112, 240, 193, 0.07);
}

.directory-prompt {
  border-color: rgba(112, 240, 193, 0.2);
  background: rgba(13, 31, 27, 0.44);
}

.install-button {
  min-height: 38px;
  border: 1px solid rgba(112, 240, 193, 0.24);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--accent);
  background: rgba(112, 240, 193, 0.07);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.install-button:hover {
  background: rgba(112, 240, 193, 0.13);
}

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: rgba(2, 8, 7, 0.78);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.install-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.install-sheet {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 14px 24px 24px;
  color: var(--ink);
  background: #0c1f1a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  transform: translateY(24px);
  transition: transform 180ms ease;
}

.install-overlay.open .install-sheet {
  transform: translateY(0);
}

.install-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(233, 247, 242, 0.18);
}

.install-app-icon {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 17px;
  background: linear-gradient(145deg, #173f36, #07110f);
  border: 1px solid rgba(112, 240, 193, 0.24);
}

.install-app-icon span {
  width: 9px;
  border-radius: 9px 9px 3px 3px;
  background: var(--accent);
}

.install-app-icon span:nth-child(1) {
  height: 23px;
  transform: rotate(-10deg);
}

.install-app-icon span:nth-child(2) {
  height: 40px;
}

.install-app-icon span:nth-child(3) {
  height: 31px;
  transform: rotate(8deg);
}

.install-sheet small {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.install-sheet h2 {
  margin: 7px 0 8px;
  font-size: 25px;
}

.install-sheet p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.install-sheet .primary-button,
.install-sheet .secondary-button {
  width: 100%;
}

.install-sheet .secondary-button {
  margin-top: 9px;
}

@media (max-width: 900px) and (orientation: portrait) {
  .path-detail {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: env(safe-area-inset-top);
  }

  .app-shell {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 68px;
  }

  .brand {
    gap: 9px;
  }

  .brand small {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .install-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .main-content {
    min-height: calc(100dvh - 116px);
    padding-top: 22px;
  }

  .hero {
    gap: 18px;
    margin-bottom: 20px;
  }

  .hero h1,
  .section-heading h1,
  .detail-primary > h1 {
    font-size: clamp(31px, 10vw, 42px);
    letter-spacing: -0.04em;
  }

  .hero-copy {
    font-size: 12px;
    line-height: 1.7;
  }

  .data-summary {
    gap: 6px;
  }

  .data-summary span {
    padding: 7px 9px;
  }

  .entry-legend.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .entry-legend.five .entry-pill:last-child {
    grid-column: 1 / -1;
  }

  .entry-pill {
    min-height: 68px;
    padding: 11px 13px;
  }

  .entry-pill b {
    font-size: 14px;
  }

  .entry-pill span {
    line-height: 1.4;
  }

  .category-grid {
    gap: 9px;
  }

  .category-card {
    border-radius: 20px;
    padding: 15px;
    min-height: 148px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    border-radius: 13px;
    font-size: 20px;
  }

  .category-status {
    top: 60px;
    right: 12px;
    max-width: 92px;
  }

  .category-card h2 {
    font-size: 16px;
  }

  .category-card p,
  .section-description {
    display: none;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .lens-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
  }

  .lens-tab {
    flex: 0 0 118px;
  }

  .group-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .group-card {
    min-height: 94px;
    padding: 14px;
  }

  .directory-product-image {
    height: min(72vw, 330px);
  }

  .directory-product-content {
    padding: 17px;
  }

  .directory-product-card {
    border-radius: 22px;
  }

  .path-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .detail-side {
    order: -1;
  }

  .detail-visual.compact {
    min-height: min(76vw, 350px);
  }

  .detail-primary {
    padding-top: 8px;
  }

  .four-axis-grid {
    margin: 22px 0;
  }

  .detail-actions {
    display: grid;
  }

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

  .app-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Xiuzheng 2026 brand palette: glacier blue, medical blue and deep navy */
:root {
  --ink: #07182f;
  --muted: #60758d;
  --paper: #dce9f7;
  --surface: rgba(247, 250, 254, 0.86);
  --line: rgba(20, 69, 116, 0.14);
  --accent: #0b5daa;
  --brand-bright: #00a2ef;
  --brand-navy: #07182f;
  --brand-ice: #dce9f7;
  --brand-white: #f7fafe;
  --shadow: 0 20px 55px rgba(23, 66, 106, 0.13);
}

html,
body {
  background: var(--brand-ice);
}

.app-shell {
  background:
    radial-gradient(ellipse at -8% -5%, rgba(0, 162, 239, 0.26), transparent 34%),
    radial-gradient(ellipse at 108% 18%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 42%),
    var(--brand-ice);
}

.topbar {
  color: var(--brand-navy);
  background: rgba(220, 233, 247, 0.82);
  border-bottom-color: rgba(20, 69, 116, 0.14);
}

.brand-mark {
  background: linear-gradient(145deg, #1476c7, #07386f);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.12), 0 7px 20px rgba(11, 93, 170, 0.2);
}

.brand-mark span {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.icon-button,
.data-summary span,
.entry-pill,
.lens-tabs,
.category-readiness,
.group-card,
.filter-chip {
  color: var(--brand-navy);
  background: rgba(247, 250, 254, 0.72);
  border-color: var(--line);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.68);
}

.icon-button:hover,
.entry-pill:hover {
  border-color: rgba(11, 93, 170, 0.36);
  box-shadow: 0 12px 30px rgba(11, 93, 170, 0.12);
}

.hero h1 span {
  color: var(--accent);
  text-shadow: none;
}

.category-card,
.directory-category-card,
.logic-path-card {
  color: var(--brand-navy);
  border-color: rgba(20, 69, 116, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(233, 242, 251, 0.86)),
    var(--brand-white);
  box-shadow: inset 0 1px white, 0 9px 28px rgba(40, 83, 124, 0.08);
}

.category-card::before,
.directory-category-card::before,
.logic-path-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -50px;
  top: -55px;
  border: 1px solid rgba(0, 162, 239, 0.13);
  border-radius: 50%;
}

.category-card::after,
.directory-category-card::after,
.logic-path-card::after {
  background: linear-gradient(90deg, transparent, #00a2ef, transparent);
  opacity: 0.42;
}

.category-card:hover,
.directory-category-card:hover,
.logic-path-card:hover,
.directory-product-card:hover {
  border-color: rgba(11, 93, 170, 0.32);
  box-shadow: 0 22px 52px rgba(11, 67, 119, 0.15);
}

.category-icon {
  color: #0b5daa;
  background: linear-gradient(145deg, #edf6ff, #d2e8fb);
  border-color: rgba(11, 93, 170, 0.18);
}

.category-number,
.category-card p,
.category-status {
  color: var(--muted);
}

.category-status {
  background: rgba(247, 250, 254, 0.78);
  border-color: rgba(20, 69, 116, 0.12);
}

.lens-tab.active,
.group-card.active,
.primary-button {
  color: white;
  background: linear-gradient(135deg, #0b5daa, #007fc8);
  border-color: #0b5daa;
  box-shadow: 0 10px 25px rgba(11, 93, 170, 0.22);
}

.lens-tab.active small,
.group-card.active span {
  color: rgba(255, 255, 255, 0.72);
}

.filter-chip.active {
  color: white;
}

.tag-list span,
.ingredient-list span,
.pending-checklist span {
  color: #365d7d;
  border-color: rgba(11, 93, 170, 0.12);
  background: rgba(205, 228, 248, 0.55);
}

.science-panel,
.product-facts,
.pending-product-panel,
.directory-product-card {
  color: var(--brand-navy);
  border-color: rgba(20, 69, 116, 0.13);
  background: rgba(247, 250, 254, 0.92);
  box-shadow: 0 12px 36px rgba(27, 72, 113, 0.1);
}

.directory-product-image,
.product-facts-image {
  background: #dbeaf8;
}

.product-image-placeholder {
  color: white;
  background:
    radial-gradient(circle at 76% 17%, rgba(105, 203, 255, 0.55), transparent 25%),
    linear-gradient(145deg, #0b5daa, #07182f);
}

.product-image-placeholder::before {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.06);
}

.product-image-placeholder span {
  color: #87d7ff;
}

.status-badge.ready {
  color: #075b94;
  background: rgba(0, 162, 239, 0.1);
  border-color: rgba(0, 127, 200, 0.16);
}

.detail-visual {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.94), transparent 23%),
    radial-gradient(circle at 35% 64%, rgba(0, 162, 239, 0.22), transparent 36%),
    linear-gradient(145deg, #cfe3f6, #eef5fc);
  border-color: rgba(20, 69, 116, 0.14);
}

.detail-visual::before {
  border-color: rgba(11, 93, 170, 0.28);
  box-shadow: 0 0 55px rgba(0, 162, 239, 0.13);
}

.secondary-button {
  color: var(--brand-navy);
  border-color: rgba(20, 69, 116, 0.2);
  background: rgba(247, 250, 254, 0.56);
}

.search-overlay,
.install-overlay {
  background: rgba(4, 20, 39, 0.66);
}

.search-panel,
.install-sheet {
  color: var(--brand-navy);
  background: #f7fafe;
  border-color: rgba(20, 69, 116, 0.14);
}

.search-result:hover {
  background: #e7f2fc;
}

.directory-prompt {
  border-color: rgba(11, 93, 170, 0.2);
  background: rgba(247, 250, 254, 0.5);
}

.install-button {
  color: #0b5daa;
  border-color: rgba(11, 93, 170, 0.22);
  background: rgba(247, 250, 254, 0.66);
}

.install-button:hover {
  background: white;
}

.install-app-icon {
  background: linear-gradient(145deg, #1476c7, #07182f);
  border-color: rgba(11, 93, 170, 0.18);
}

.install-app-icon span {
  background: white;
}

.app-footer {
  border-color: rgba(20, 69, 116, 0.14);
}

/* Xiuzheng cobalt VI: derived from the blue product subdivision pages */
:root {
  --ink: #ffffff;
  --muted: #a9c6f4;
  --paper: #04133d;
  --surface: rgba(8, 39, 105, 0.72);
  --line: rgba(179, 215, 255, 0.2);
  --accent: #58b9ff;
  --brand-cobalt: #1557e6;
  --brand-electric: #2e8fff;
  --brand-navy: #030c2d;
  --brand-midnight: #061d54;
  --brand-white: #ffffff;
  --shadow: 0 26px 70px rgba(0, 5, 30, 0.38);
}

html,
body {
  background: var(--brand-navy);
  color: var(--ink);
}

.app-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 100% 7%, rgba(50, 139, 255, 0.72), transparent 35%),
    radial-gradient(ellipse at -8% 30%, rgba(68, 168, 255, 0.55), transparent 33%),
    radial-gradient(ellipse at 58% 92%, rgba(15, 82, 213, 0.45), transparent 44%),
    linear-gradient(145deg, #061d54 0%, #0b45b2 48%, #04133d 100%);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.app-shell::before {
  width: 74vw;
  height: 30vw;
  left: -25vw;
  top: 30vh;
  border: 1px solid rgba(157, 213, 255, 0.18);
  box-shadow:
    0 0 80px rgba(70, 165, 255, 0.12),
    inset 0 0 90px rgba(26, 103, 231, 0.12);
  transform: rotate(-18deg);
}

.app-shell::after {
  width: 56vw;
  height: 18vw;
  right: -20vw;
  bottom: 4vh;
  border: 1px solid rgba(157, 213, 255, 0.16);
  box-shadow: inset 0 0 75px rgba(39, 121, 255, 0.12);
  transform: rotate(15deg);
}

.topbar {
  color: white;
  background: rgba(3, 18, 59, 0.62);
  border-bottom-color: rgba(196, 224, 255, 0.18);
  box-shadow: 0 12px 45px rgba(0, 10, 52, 0.16);
}

.brand-mark {
  background: linear-gradient(145deg, #3f9fff, #0d39a4 68%, #061a59);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 0 26px rgba(52, 151, 255, 0.3);
}

.brand small,
.breadcrumbs,
.date-chip small {
  color: #9fc4f5;
}

.icon-button,
.data-summary span,
.entry-pill,
.lens-tabs,
.category-readiness,
.group-card,
.filter-chip {
  color: white;
  background: rgba(4, 29, 88, 0.54);
  border-color: rgba(184, 216, 255, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.data-summary b,
.footer-count b {
  color: white;
}

.icon-button:hover,
.entry-pill:hover {
  border-color: rgba(110, 191, 255, 0.7);
  background: rgba(17, 71, 165, 0.66);
  box-shadow: 0 0 32px rgba(54, 150, 255, 0.24);
}

.hero h1,
.section-heading h1,
.detail-primary > h1 {
  color: white;
  text-shadow: 0 8px 38px rgba(0, 12, 58, 0.32);
}

.hero h1 span,
.eyebrow {
  color: #73c9ff;
  text-shadow: 0 0 28px rgba(66, 174, 255, 0.38);
}

.hero-copy,
.section-description,
.detail-lead {
  color: #c1d9f7;
}

.category-card,
.directory-category-card,
.logic-path-card {
  color: white;
  border-color: rgba(169, 211, 255, 0.22);
  background:
    radial-gradient(circle at 85% 10%, rgba(79, 170, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(20, 78, 175, 0.82), rgba(3, 25, 80, 0.86));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 17px 45px rgba(0, 10, 52, 0.24);
  backdrop-filter: blur(18px);
}

.category-card::before,
.directory-category-card::before,
.logic-path-card::before {
  border-color: rgba(125, 199, 255, 0.2);
}

.category-card::after,
.directory-category-card::after,
.logic-path-card::after {
  background: linear-gradient(90deg, transparent, #7dccff, transparent);
  opacity: 0.72;
}

.category-card:hover,
.directory-category-card:hover,
.logic-path-card:hover,
.directory-product-card:hover {
  border-color: rgba(121, 199, 255, 0.62);
  box-shadow: 0 26px 65px rgba(0, 10, 52, 0.38), 0 0 32px rgba(41, 139, 255, 0.17);
}

.category-icon {
  color: white;
  background: linear-gradient(145deg, rgba(91, 184, 255, 0.45), rgba(14, 61, 153, 0.68));
  border-color: rgba(190, 225, 255, 0.3);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 0 24px rgba(52, 158, 255, 0.13);
}

.category-number,
.category-card p,
.category-status {
  color: #b7d2f3;
}

.category-status {
  color: #d9ecff;
  background: rgba(1, 19, 64, 0.42);
  border-color: rgba(178, 216, 255, 0.16);
}

.category-status.ready,
.category-status.partial,
.category-status.logic {
  color: #d9ecff;
}

.lens-tab.active,
.group-card.active,
.primary-button {
  color: white;
  background: linear-gradient(135deg, #278cff, #0c48c7 62%, #082f91);
  border-color: rgba(135, 202, 255, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 0 30px rgba(47, 148, 255, 0.3);
}

.lens-tab.active small,
.group-card.active span {
  color: #cce5ff;
}

.filter-chip.active {
  color: white;
  background: #237ee9;
  border-color: #73c9ff;
}

.tag-list span,
.ingredient-list span,
.pending-checklist span {
  color: #d5e9ff;
  border-color: rgba(159, 210, 255, 0.18);
  background: rgba(40, 112, 215, 0.22);
}

.science-panel,
.product-facts,
.pending-product-panel,
.directory-product-card {
  color: white;
  border-color: rgba(171, 215, 255, 0.22);
  background:
    radial-gradient(circle at 88% 2%, rgba(64, 157, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(11, 58, 145, 0.92), rgba(3, 24, 76, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 18px 52px rgba(0, 8, 48, 0.3);
}

.directory-product-image,
.product-facts-image {
  background: #061b57;
  border-bottom: 1px solid rgba(183, 220, 255, 0.18);
}

.directory-product-image img,
.product-facts-image img,
.detail-hero-image {
  filter: saturate(0.88) contrast(1.06) brightness(0.94);
}

.directory-product-image {
  position: relative;
}

.directory-product-image::after,
.product-facts-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 22, 70, 0.28));
}

.sales-card-axis,
.product-facts dl > div,
.science-content {
  border-color: rgba(176, 216, 255, 0.18);
}

.directory-product-content > p,
.sales-card-axis span,
.product-sales-summary span,
.product-facts dt,
.product-facts dd,
.science-content p {
  color: #bed6f5;
}

.sales-card-axis b,
.product-sales-summary b,
.detail-info-block h3 {
  color: #78ccff;
}

.product-image-placeholder {
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(106, 202, 255, 0.64), transparent 22%),
    radial-gradient(circle at 22% 76%, rgba(40, 120, 255, 0.36), transparent 34%),
    linear-gradient(145deg, #155de1, #071c5b 60%, #020a29);
}

.product-image-placeholder::before {
  border-color: rgba(164, 220, 255, 0.34);
  box-shadow: 0 0 50px rgba(74, 177, 255, 0.16), inset 0 0 45px rgba(87, 183, 255, 0.08);
}

.product-image-placeholder span {
  color: #8ed9ff;
}

.status-badge.ready {
  color: #bfe8ff;
  background: rgba(44, 152, 255, 0.18);
  border-color: rgba(122, 204, 255, 0.28);
}

.status-badge.related {
  color: #bfe8ff;
  background: rgba(44, 152, 255, 0.18);
  border-color: rgba(122, 204, 255, 0.28);
}

.status-badge.pending,
.product-note {
  color: #ffe0a6;
  background: rgba(222, 153, 48, 0.13);
  border-color: rgba(255, 210, 133, 0.2);
}

.detail-visual {
  background:
    radial-gradient(circle at 28% 22%, rgba(99, 196, 255, 0.76), transparent 25%),
    radial-gradient(circle at 72% 66%, rgba(26, 107, 255, 0.52), transparent 38%),
    linear-gradient(145deg, #175bdc, #071b5b 64%, #020a28);
  border-color: rgba(177, 219, 255, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 20px 55px rgba(0, 8, 47, 0.32);
}

.detail-visual::before {
  border-color: rgba(147, 216, 255, 0.35);
  box-shadow: 0 0 70px rgba(58, 166, 255, 0.25), inset 0 0 60px rgba(39, 132, 255, 0.12);
}

.detail-visual.compact.has-product-image {
  background: #05184f;
}

.secondary-button {
  color: white;
  border-color: rgba(177, 219, 255, 0.25);
  background: rgba(8, 45, 121, 0.46);
}

.secondary-button:hover {
  border-color: #74caff;
  background: rgba(18, 75, 169, 0.58);
}

.search-overlay,
.install-overlay {
  background: rgba(1, 7, 28, 0.82);
}

.search-panel,
.install-sheet {
  color: white;
  background: linear-gradient(145deg, #0c3b9a, #031a58);
  border-color: rgba(181, 219, 255, 0.24);
}

.search-input-wrap input {
  color: white;
}

.search-result:hover {
  background: rgba(76, 159, 255, 0.18);
}

.directory-prompt {
  color: #bad7f7;
  border-color: rgba(145, 207, 255, 0.28);
  background: rgba(6, 35, 103, 0.48);
}

.install-button {
  color: white;
  border-color: rgba(176, 218, 255, 0.3);
  background: rgba(20, 78, 170, 0.48);
}

.install-button:hover {
  background: rgba(40, 119, 226, 0.65);
}

.install-app-icon {
  background: linear-gradient(145deg, #2d91ff, #0d48c5 60%, #04164e);
  border-color: rgba(187, 224, 255, 0.34);
}

.app-footer {
  color: #a9c8ee;
  border-color: rgba(182, 220, 255, 0.18);
}

/* Official Xiuzheng calligraphy mark */
.brand-mark {
  align-items: center;
  padding: 7px 10px;
  transform: none;
}

.brand-mark img {
  width: auto;
  height: 31px;
  display: block;
  object-fit: contain;
}

.install-app-icon {
  align-items: center;
  padding: 12px;
}

.install-app-icon img {
  width: auto;
  height: 52px;
  display: block;
  object-fit: contain;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 108px;
  height: 172px;
  right: 3%;
  top: -12px;
  background: url("./assets/xiuzheng-logo-white.png") center / contain no-repeat;
  opacity: 0.055;
  filter: drop-shadow(0 0 35px rgba(90, 185, 255, 0.32));
  pointer-events: none;
}

@media (max-width: 700px) {
  .brand-mark {
    padding: 6px 9px;
  }

  .brand-mark img {
    height: 28px;
  }

  .hero::after {
    width: 72px;
    height: 114px;
    right: 1%;
    top: 5px;
    opacity: 0.05;
  }
}

/* Pain-point scene cards for health modules */
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  align-items: stretch;
}

.category-card,
.category-card.featured {
  min-height: 308px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 84% 8%, rgba(90, 184, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(18, 82, 188, 0.88), rgba(3, 24, 78, 0.94));
}

@media (min-width: 1120px) {
  .category-card.featured {
    grid-column: span 2;
  }
}

.category-scene {
  position: relative;
  height: 142px;
  overflow: hidden;
  border: 1px solid rgba(177, 221, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20, 101, 226, 0.92), rgba(5, 29, 91, 0.96));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px rgba(80, 165, 255, 0.12),
    0 14px 32px rgba(0, 14, 65, 0.22);
}

.category-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 18, 62, 0.26), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.14), transparent 20%);
  mix-blend-mode: screen;
}

.category-scene-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

.category-scene-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05) brightness(0.94);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
}

.category-card:hover .category-scene-photo {
  filter: saturate(1) contrast(1.08) brightness(0.98);
  transform: scale(1.045);
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.category-number {
  position: static;
  top: auto;
  right: auto;
  color: #9ecaf7;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.category-icon {
  width: 43px;
  height: 43px;
  margin: 0;
  border-radius: 15px;
}

.category-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-status {
  position: static;
  top: auto;
  right: auto;
  display: inline-flex;
  align-self: flex-start;
  max-width: none;
  margin-top: 2px;
  padding: 5px 9px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.category-card h2 {
  margin-top: 2px;
}

.category-card p {
  min-height: 38px;
  color: #bed9f8;
}

.scene-bg {
  fill: #08286f;
}

.scene-glow {
  opacity: 0.6;
}

.scene-glow-a {
  fill: #37a5ff;
}

.scene-glow-b {
  fill: #1a58d8;
}

.scene-prop,
.scene-prop-muted,
.scene-body,
.scene-skin,
.scene-hair,
.scene-organ {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-prop {
  fill: rgba(76, 171, 255, 0.3);
  stroke: rgba(213, 239, 255, 0.66);
  stroke-width: 2.4;
}

.scene-prop-muted {
  fill: rgba(7, 24, 78, 0.45);
  stroke: rgba(166, 218, 255, 0.3);
  stroke-width: 2;
}

.scene-body {
  fill: rgba(2, 15, 57, 0.72);
  stroke: rgba(176, 221, 255, 0.28);
  stroke-width: 2;
}

.scene-skin {
  fill: rgba(191, 226, 255, 0.86);
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 2;
}

.scene-hair {
  fill: rgba(0, 12, 45, 0.9);
  stroke: rgba(98, 178, 255, 0.42);
  stroke-width: 2;
}

.scene-organ {
  fill: rgba(114, 205, 255, 0.22);
  stroke: rgba(126, 211, 255, 0.76);
  stroke-width: 2.4;
}

.scene-line,
.scene-stroke,
.scene-pain {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-line {
  stroke: rgba(222, 243, 255, 0.72);
  stroke-width: 2.2;
}

.scene-stroke {
  stroke: rgba(222, 243, 255, 0.58);
  stroke-width: 5.4;
}

.scene-pain {
  stroke: #ffd27a;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 8px rgba(255, 206, 111, 0.3));
}

.scene-dot {
  fill: #ffd27a;
  filter: drop-shadow(0 0 8px rgba(255, 206, 111, 0.34));
}

.scene-kind-eye .scene-bg {
  fill: #082d7e;
}

.scene-kind-liver .scene-bg,
.scene-kind-weight .scene-bg {
  fill: #09266b;
}

.scene-kind-hair .scene-bg,
.scene-kind-women .scene-bg {
  fill: #0a2c78;
}

.scene-kind-nutrients .scene-bg,
.scene-kind-gut .scene-bg,
.scene-kind-immune .scene-bg {
  fill: #073173;
}

.scene-kind-sleep .scene-bg {
  fill: #081e63;
}

@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-card,
  .category-card.featured {
    min-height: 292px;
  }

  .category-scene {
    height: 154px;
  }

  .category-card p {
    display: block;
    min-height: 0;
  }
}

/* Mobile release layout: WeChat, iPhone and Android */
@media (max-width: 700px) {
  html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-padding-top: 72px;
  }

  body {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

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

  .category-card,
  .directory-category-card,
  .directory-product-card,
  .group-card,
  .path-card,
  .product-card,
  .science-tree-node,
  .search-result {
    touch-action: pan-y;
  }

  .app-shell {
    width: 100%;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
    touch-action: pan-y;
  }

  .topbar {
    height: 62px;
    margin: 0 -12px;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    border-bottom-color: rgba(174, 216, 255, 0.18);
    background: rgba(3, 20, 66, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  .brand-mark img {
    height: 24px;
  }

  .brand strong {
    max-width: 185px;
    overflow: hidden;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .install-button,
  .date-chip {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .main-content {
    min-height: calc(100dvh - 110px);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero {
    gap: 12px;
    margin-bottom: 16px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(29px, 9.4vw, 38px);
    line-height: 1.12;
  }

  .hero h1 br {
    display: none;
  }

  .hero-copy {
    max-width: 34em;
    font-size: 12px;
    line-height: 1.65;
  }

  .data-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .data-summary span {
    justify-content: center;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
  }

  .data-summary b {
    font-size: 16px;
  }

  .entry-legend.five {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    overflow: visible;
    touch-action: pan-y;
  }

  .entry-legend.five::-webkit-scrollbar,
  .lens-tabs::-webkit-scrollbar,
  .filter-strip::-webkit-scrollbar {
    display: none;
  }

  .entry-legend.five .entry-pill,
  .entry-legend.five .entry-pill:last-child {
    grid-column: auto;
    min-height: 58px;
    padding: 10px 12px;
  }

  .entry-legend.five .entry-pill:last-child {
    grid-column: 1 / -1;
  }

  .entry-pill {
    display: grid;
    gap: 2px;
  }

  .entry-pill b {
    font-size: 14px;
  }

  .entry-pill span {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-grid {
    gap: 13px;
  }

  .category-card,
  .category-card.featured {
    min-height: 0;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
  }

  .category-scene {
    height: clamp(150px, 45vw, 182px);
    border-radius: 17px;
  }

  .category-card-head {
    padding: 1px 2px 0;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .category-icon svg {
    width: 21px;
    height: 21px;
  }

  .category-status {
    margin-left: 2px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .category-card h2 {
    margin-left: 2px;
    font-size: 19px;
  }

  .category-card p {
    display: block;
    min-height: 0;
    margin: 0 2px 4px;
    font-size: 11px;
    line-height: 1.55;
  }

  .card-arrow {
    display: none;
  }

  .section-heading {
    display: block;
    margin-bottom: 17px;
  }

  .section-heading h1,
  .detail-primary > h1 {
    margin-top: 8px;
    font-size: clamp(29px, 9vw, 38px);
    line-height: 1.12;
  }

  .category-readiness {
    margin-top: 10px;
  }

  .lens-tabs {
    margin-right: -12px;
    padding-right: 12px;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
  }

  .lens-tab {
    flex: 0 0 108px;
    min-height: 62px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .lens-tab small {
    display: none;
  }

  .filter-strip {
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 38px;
  }

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

  .group-card {
    min-height: 88px;
    padding: 13px;
  }

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

  .directory-category-card {
    min-height: 154px;
    padding: 14px;
    border-radius: 18px;
  }

  .directory-category-card b {
    margin-top: 24px;
    font-size: 17px;
  }

  .directory-category-card small {
    display: none;
  }

  .directory-product-grid,
  .logic-path-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .logic-path-card {
    min-height: 0;
    padding: 17px;
    border-radius: 20px;
  }

  .logic-path-card h2 {
    font-size: 19px;
  }

  .directory-product-card {
    min-height: 0;
    border-radius: 22px;
  }

  .directory-product-image {
    height: min(82vw, 350px);
    padding: 10px;
  }

  .directory-product-image img,
  .product-facts-image img,
  .detail-hero-image {
    object-fit: contain;
  }

  .directory-product-content {
    padding: 16px;
  }

  .directory-product-card h3 {
    font-size: 18px;
  }

  .sales-card-axis {
    grid-template-columns: 62px 1fr;
  }

  .path-detail {
    gap: 14px;
  }

  .detail-side {
    width: 100%;
  }

  .detail-visual.compact {
    min-height: min(78vw, 330px);
    border-radius: 24px;
  }

  .detail-hero-image {
    padding: 8px;
  }

  .product-facts,
  .pending-product-panel {
    padding: 15px;
    border-radius: 20px;
  }

  .product-facts-image {
    height: min(76vw, 320px);
    margin: -15px -15px 14px;
    padding: 8px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }

  .product-facts h2,
  .pending-product-panel h2 {
    font-size: 18px;
    line-height: 1.38;
  }

  .product-sales-summary {
    gap: 10px;
  }

  .product-facts dl > div {
    grid-template-columns: 72px 1fr;
  }

  .four-axis-grid {
    margin: 20px 0;
  }

  .detail-info-block,
  .detail-info-block:nth-child(2),
  .detail-info-block:nth-child(3) {
    padding: 15px 0;
  }

  .science-panel {
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .science-panel summary {
    min-height: 60px;
    padding: 14px 16px;
  }

  .science-content {
    padding: 16px;
  }

  .detail-actions {
    gap: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .detail-actions button,
  .primary-button,
  .secondary-button {
    min-height: 46px;
  }

  .search-panel {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-top: max(12px, env(safe-area-inset-top));
    padding: 14px;
    border-radius: 22px;
  }

  .search-input-wrap input {
    min-width: 0;
  }

  .app-footer {
    display: grid;
    gap: 5px;
    padding-top: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (max-width: 370px) {
  .brand strong {
    max-width: 150px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .directory-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .category-card:hover,
  .directory-category-card:hover,
  .directory-product-card:hover,
  .logic-path-card:hover {
    transform: none;
  }
}
