/* ===========================================================================
 * diagnostic-blueprint.css
 * ======================================================================== */

:root {
  /* Design tokens, shared with SkinIDBlueprint */
  --dx-teal: #447d84;
  --dx-teal-soft: rgba(68, 125, 132, 0.35);
  --dx-teal-faint: rgba(68, 125, 132, 0.12);
  --dx-mint: #75c6bf;
  --dx-mint-pale: #d5eeeb;
  --dx-pink: #f3bfd4;
  --dx-indigo: #23419a;
  --dx-good: #3aa757;
  --dx-warn: #e5b02e;
  --dx-bad: #d0342c;
  --dx-rail: #e9e9e9;
  --dx-hairline: rgba(194, 194, 194, 0.59);

  --dx-head: "Archivo Expanded", Helvetica, Arial, sans-serif;
  --dx-body: "Archivo Expanded", Helvetica, Arial, sans-serif;

  --dx-pad-page: 36px;
  --dx-pad-tabs: 50px;
  --dx-pad-subtabs: 107px;
}

/* ---------------------------------------------------------------------------
 * 0. Branding — one lockup for the whole result screen
 * ------------------------------------------------------------------------ */
.status-container .dx-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 28px var(--dx-pad-tabs) 22px;
  position: static;
}

.dx-brand-mark {
  height: 84px;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  object-position: left center;
}

.dx-brand-wardah {
  height: 34px;
  width: 131px;
  flex: 0 0 auto;
  background-color: var(--dx-teal);
  mask-image: url("../design/images/logo-wardah.webp");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: 100% 50%;
  -webkit-mask-image: url("../design/images/logo-wardah.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: 100% 50%;
}

/* ---------------------------------------------------------------------------
 * 0b. Tab rows — main tabs full width, sub-tabs inset beneath them
 * ------------------------------------------------------------------------ */
.status-container .status-tab {
  gap: 0.9rem;
  padding: 0 var(--dx-pad-tabs) 0.9rem;
}

.status-container .status-tab .status-tab-item {
  flex: 1 1 0;
  min-height: 50px;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--dx-hairline);
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: var(--dx-teal);
  font-family: var(--dx-head);
  font-size: 17px;
  font-weight: 500;
}

.status-container .status-tab .status-tab-item.status-tab-item--active {
  background-color: var(--dx-teal);
  border-color: var(--dx-teal);
  color: #ffffff;
}

.status-container .status-subtab-items {
  gap: 0.9rem;
  padding: 0 var(--dx-pad-subtabs) 2rem;
}

.status-container .status-subtab-items .status-subtab-item {
  flex: 1 1 calc(50% - 0.9rem);
  max-width: calc(50% - 0.45rem);
  min-height: 54px;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--dx-hairline);
  border-radius: 0.5rem;
  background-color: #ffffff;
}

.status-container .status-subtab-items .status-subtab-item p {
  color: var(--dx-teal);
  font-family: var(--dx-head);
  font-size: 16px;
  font-weight: 500;
}

.status-container .status-subtab-items .status-subtab-item.status-subtab-item--active {
  background-color: var(--dx-teal);
  border-color: var(--dx-teal);
}

.status-container .status-subtab-items .status-subtab-item.status-subtab-item--active p {
  color: #ffffff;
}

/* ---------------------------------------------------------------------------
 * Pane scope + type scale
 * ------------------------------------------------------------------------ */
#data_statusDiagnostic {
  --dx-w-narrow: 70%;
  --dx-w-mid: 84%;
  --dx-w-wide: 86%;
  --dx-w-action: 38%;

  /* Type scale — iPad Air baseline */
  --dx-fs-section: 25px;
  --dx-fs-subtitle: 22px;
  --dx-fs-name: 34px;
  --dx-fs-code: 58px;
  --dx-fs-score: 74px;
  --dx-fs-body: 19px;
  --dx-fs-meta: 18px;
  --dx-fs-small: 16px;
  --dx-fs-tiny: 13px;
  --dx-fs-micro: 12px;
  --dx-fs-chip: 17px;
  --dx-fs-chip-long: 14px;

  /* Component metrics */
  --dx-track-h: 17px;
  --dx-marker-h: 25px;
  --dx-knob: 24px;
  --dx-w-signal: 94%;
  --dx-signal-end: 20%;
  --dx-signal-end-right: 20%;
  --dx-knob-inset: 20%;

  color: var(--dx-teal);
  font-family: var(--dx-body);
}

#data_statusDiagnostic .dx-pane {
  padding: 0 var(--dx-pad-page) 2rem;
}

#data_statusDiagnostic b,
#data_statusDiagnostic strong {
  font-family: inherit;
  font-weight: 600;
}

#data_statusDiagnostic button {
  flex: 0 0 auto;
  font-family: var(--dx-body);
}

/* ---------------------------------------------------------------------------
 * Image loading
 * ------------------------------------------------------------------------ */
.dx-skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--dx-teal-faint);
}

.dx-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: dx-skeleton-sweep 1.25s ease-in-out infinite;
}

@keyframes dx-skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-skeleton::after {
    animation: none;
  }
}

.dx-photo img,
.dx-stage-layer,
.dx-future-layer {
  position: relative;
  z-index: 1;
}

.dx-stage-layer,
.dx-future-layer {
  position: absolute;
}

.dx-stage-caption,
.dx-future-fill {
  z-index: 2;
}

.dx-pane {
  display: none;
}

.dx-pane.dx-pane--active {
  display: block;
}

/* Centred measures */
.dx-w-narrow,
.dx-w-mid,
.dx-w-wide {
  margin-left: auto;
  margin-right: auto;
}

.dx-w-narrow {
  max-width: var(--dx-w-narrow);
}

.dx-w-mid {
  max-width: var(--dx-w-mid);
}

.dx-w-wide {
  max-width: var(--dx-w-wide);
}

.dx-w-signal {
  max-width: var(--dx-w-signal);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------------
 * Shared primitives
 * ------------------------------------------------------------------------ */
.dx-card {
  border: 1px solid var(--dx-teal);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
  background-color: #ffffff;
}

.dx-box {
  border: 2px solid var(--dx-teal);
  /* border-radius: 0.5rem; */
  padding: 0.5rem 0.5rem;
  background-color: #ffffff;
}

.dx-section {
  margin-bottom: 2.5rem;
}

.dx-section-title {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-section);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--dx-teal);
  margin: 0 0 1.5rem;
}

.dx-subtitle {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-subtitle);
  font-weight: 700;
  text-align: center;
  color: var(--dx-teal);
  margin: 0 0 1.1rem;
}

.dx-rule {
  height: 1px;
  border: 0;
  margin: 2.5rem 0;
  background-image: linear-gradient(to right,
      rgba(68, 125, 132, 0) 0%,
      var(--dx-teal) 50%,
      rgba(68, 125, 132, 0) 100%);
}

.dx-row-2 {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

.dx-row-2>* {
  flex: 1 1 0;
  min-width: 0;
}

/* ---------------------------------------------------------------------------
 * 1a. Header profile — thumbnails, metadata, blueprint selector
 * ------------------------------------------------------------------------ */
.dx-photos {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  max-width: 88%;
  margin: 0 auto 1.5rem;
}

.dx-photo {
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  aspect-ratio: 5 / 6;
  border-radius: 0.6rem;
  overflow: hidden;
  background-color: #eef3f3;
}

.dx-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-name {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-name);
  font-weight: 700;
  text-align: center;
  color: var(--dx-teal);
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}

.dx-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: var(--dx-fs-meta);
  font-weight: 400;
  color: var(--dx-teal);
  margin-bottom: 1.4rem;
}

.dx-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.dx-meta-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: var(--dx-teal);
  stroke: none;
}

.dx-meta-sep {
  width: 2px;
  height: 1.7em;
  border-radius: 1px;
  background-color: var(--dx-teal);
}

.dx-card-inset {
  max-width: 79%;
  margin: 0 auto;
}

.dx-remarks {
  border: 1px solid var(--dx-hairline);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.9rem;
  font-size: var(--dx-fs-body);
  font-weight: 400;
  text-align: center;
  line-height: 1.7;
}

.dx-remarks b {
  margin-left: 0.4rem;
  font-weight: 700;
}

#data_statusDiagnostic .dx-blueprint-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  appearance: none;
  border: 1px solid var(--dx-hairline);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  background-color: #ffffff;
  color: var(--dx-teal);
  font-family: var(--dx-head);
  font-size: var(--dx-fs-body);
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.dx-blueprint-toggle .button--arrow {
  border-bottom-color: var(--dx-teal);
  border-left-width: 6px;
  border-right-width: 6px;
  border-bottom-width: 7px;
  margin-left: 0;
}

#data_statusDiagnostic .dx-blueprint-list {
  position: static;
  top: auto;
  padding: 0;
  margin-bottom: 0;
}

#data_statusDiagnostic .status-data-user-download-diary {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 1px solid var(--dx-hairline);
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  color: var(--dx-teal);
  font-size: var(--dx-fs-small);
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#data_statusDiagnostic .status-data-user-download-diary a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: var(--dx-teal);
  font-size: var(--dx-fs-small);
  font-weight: 600;
  text-decoration: none;
}

#data_statusDiagnostic .status-data-user-download-diary a+a {
  border-top: 1px solid var(--dx-teal-faint);
}

#data_statusDiagnostic .dx-blueprint-toggle[aria-expanded="true"] {
  border-radius: 0.5rem 0.5rem 0 0;
}

.dx-types {
  display: flex;
  gap: 1.8rem;
  margin-top: 3.4rem;
}

.dx-type {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dx-hairline);
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff;
  text-align: center;
}

.dx-type-label {
  flex: 0 0 auto;
  padding: 0.7rem 0.6rem;
  font-size: var(--dx-fs-chip);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dx-teal);
}

.dx-type-value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px;
  padding: 0.8rem 0.5rem;
  border-radius: 5px;
  background-color: var(--dx-teal);
  color: #ffffff;
  font-size: var(--dx-fs-chip);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.dx-type-value--long {
  font-size: var(--dx-fs-chip-long);
}

/* ---------------------------------------------------------------------------
 * 1b. Skin Signal — bipolar scales
 * ------------------------------------------------------------------------ */
.dx-signal-axis {
  display: flex;
  align-items: center;
  column-gap: 0.9rem;
  min-height: 2.1rem;
  margin-bottom: 0.9rem;
}

.dx-signal-end {
  flex: 0 0 var(--dx-signal-end);
  font-size: var(--dx-fs-small);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dx-teal);
  text-align: right;
}

.dx-signal-end--right {
  flex-basis: var(--dx-signal-end-right);
  text-align: left;
}

.dx-signal-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--dx-track-h);
  border-radius: 5px;
  background-color: var(--dx-mint);
}

.dx-signal-marker {
  position: absolute;
  top: 50%;
  width: 8px;
  height: var(--dx-marker-h);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.dx-signal-marker--calm {
  background-color: var(--dx-teal);
}

.dx-signal-marker--alert {
  background-color: var(--dx-pink);
}

/* ---------------------------------------------------------------------------
 * 1b. Skin Signal — severity tracks (acne, pore)
 * ------------------------------------------------------------------------ */
.dx-knobs {
  margin-top: 2rem;
}

.dx-knob-row {
  display: flex;
  align-items: flex-end;
  column-gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.dx-knob-row::after {
  content: "";
  flex: 0 0 var(--dx-knob-inset);
}

.dx-knob-name {
  flex: 0 0 var(--dx-knob-inset);
  font-size: var(--dx-fs-body);
  font-weight: 600;
  line-height: var(--dx-track-h);
  text-align: right;
  color: var(--dx-teal);
}

.dx-knob-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.dx-knob-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: var(--dx-fs-small);
  font-weight: 600;
  color: var(--dx-teal);
}

.dx-knob-track {
  position: relative;
  height: var(--dx-track-h);
  border-radius: calc(var(--dx-track-h) / 2);
  background-image: linear-gradient(to right,
      var(--dx-mint) 0%,
      var(--dx-indigo) 100%);
}

.dx-knob {
  position: absolute;
  top: 50%;
  width: var(--dx-knob);
  height: var(--dx-knob);
  border-radius: 50%;
  background-color: #ffffff;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--dx-teal-soft);
}

.dx-knob::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--dx-knob) - 5px);
  height: calc(var(--dx-knob) - 5px);
  border-radius: 50%;
  background-color: var(--dx-pink);
  transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------------------------
 * 1c. Skin Character
 * ------------------------------------------------------------------------ */
.dx-char-code {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-code);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--dx-teal);
  margin: -0.4rem 0 1.4rem;
}

.dx-char-desc {
  font-size: var(--dx-fs-body);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
  color: var(--dx-teal);
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
 * 1c-bis. Skin Grade — ANIMA_Verse before/after
 * ------------------------------------------------------------------------ */
.dx-grade-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
  margin-bottom: 1.2rem;
}

.dx-grade-frame {
  flex: 0 0 34%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid var(--dx-teal);
  border-radius: 1rem;
}

.dx-grade-layer {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.7rem;
  background-color: #eef3f3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dx-grade-arrow {
  flex: 0 0 auto;
  width: 2.6rem;
  aspect-ratio: 86 / 78;
  background: url("../design/images/skinGrade_arrow.png") center / contain no-repeat;
}


/* "Skin Grade <n>", small, over the big level word. */
.dx-grade-num {
  font-family: var(--dx-head);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--dx-teal);
  margin: 0 0 0.3rem;
}

.dx-grade-code {
  font-family: var(--dx-head);
  font-size: 47px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--dx-teal);
  margin: 0 0 1rem;
}

.dx-grade-desc {
  font-size: var(--dx-fs-body);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
  color: var(--dx-teal);
  margin: 0;
}

/* ---------------------------------------------------------------------------
 * 1c-ter. Acne Severity
 * ------------------------------------------------------------------------ */
.dx-acne-ref-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.dx-acne-ref-row .dx-grade-frame {
  flex: 0 0 40%;
}

.dx-acne-ref--clear { background-image: url("../design/images/AcneSeverity/Clear.png"); }
.dx-acne-ref--mild { background-image: url("../design/images/AcneSeverity/Mild.png"); }
.dx-acne-ref--moderate { background-image: url("../design/images/AcneSeverity/Moderate.png"); }
.dx-acne-ref--severe { background-image: url("../design/images/AcneSeverity/Severe.png"); }

.dx-acne-squares {
  display: flex;
  justify-content: center;
  gap: 3%;
  margin-bottom: 1.2rem;
}

.dx-acne-squares:empty {
  display: none;
}

.dx-acne-squares .dx-grade-frame {
  flex: 0 0 30%;
}

/* ---------------------------------------------------------------------------
 * 1d. Current Skin Stage — capture cards with overlay markers
 * ------------------------------------------------------------------------ */
.dx-stage-photos {
  display: flex;
  gap: 0.9rem;
}

.dx-stage-photo {
  flex: 1 1 0;
  min-width: 0;
}

.dx-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #eef3f3;
}

.dx-stage-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.dx-stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0;
  background-color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
}

.dx-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: 1.1rem;
  font-size: var(--dx-fs-small);
  font-weight: 500;
  color: var(--dx-teal);
}

.dx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
}

.dx-legend span::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background-color: var(--dx-dot, currentColor);
}

.dx-legend .dx-dot-redness {
  --dx-dot: #4b3fd4;
}

.dx-legend .dx-dot-darkspot {
  --dx-dot: #f4501e;
}

.dx-legend .dx-dot-wrinkles {
  --dx-dot: #f5e17a;
}

.dx-legend .dx-dot-pores {
  --dx-dot: #f5e17a;
}

/* ---------------------------------------------------------------------------
 * 1e. Future Skin Stage — status cards with severity badges
 * ------------------------------------------------------------------------ */
.dx-future-row {
  display: flex;
  gap: 0.9rem;
}

.dx-future-item {
  flex: 1 1 0;
  min-width: 0;
}

.dx-future-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #e6e6e6;
}

.dx-future-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.dx-future-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.1rem;
  background-color: var(--dx-mint-pale);
}

.dx-future-bar {
  height: 100%;
  background-color: var(--dx-mint);
}

.dx-future-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #1c5054;
}

.dx-future-caption {
  margin-top: 0.8rem;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--dx-teal);
}

.dx-detail-table {
  border: 1px solid var(--dx-teal);
  background-color: #ffffff;
}

.dx-detail-row {
  padding: 1.15rem 1.5rem;
}

.dx-detail-row+.dx-detail-row {
  border-top: 1px solid var(--dx-teal);
}

.dx-detail-row--split {
  padding: 0;
  display: flex;
}

.dx-detail-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.15rem 1.5rem;
}

.dx-detail-cell+.dx-detail-cell {
  border-left: 1px solid var(--dx-teal);
}

.dx-detail-split {
  display: flex;
  margin-top: 0.9rem;
}

.dx-detail-split>.dx-detail-cell {
  padding: 0 1.25rem;
}

.dx-detail-split>.dx-detail-cell+.dx-detail-cell {
  border-left: 0;
}

.dx-detail-split>.dx-detail-cell:first-child {
  padding-left: 0;
}

.dx-detail-split>.dx-detail-cell:last-child {
  padding-right: 0;
}

.dx-trigger-position b {
  margin-left: 0.6rem;
  font-weight: 700;
}

.dx-trigger-position {
  margin: 0;
  font-size: var(--dx-fs-body);
  font-weight: 600;
  color: var(--dx-teal);
}

.dx-trigger-heading {
  margin: 0;
  font-size: var(--dx-fs-body);
  font-weight: 600;
  color: var(--dx-teal);
}

.dx-trigger-label {
  margin: 0 0 0.5rem;
  font-size: var(--dx-fs-body);
  font-weight: 700;
  color: var(--dx-teal);
}

.dx-trigger-line {
  margin: 0;
  font-size: var(--dx-fs-small);
  font-weight: 500;
  line-height: 1.7;
  color: var(--dx-teal);
}

.dx-ingredient-label {
  margin: 0 0 0.5rem;
  font-size: var(--dx-fs-body);
  font-weight: 600;
  color: var(--dx-teal);
}

.dx-ingredient-head {
  margin: 0 0 0.5rem;
  font-size: var(--dx-fs-micro);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--dx-teal);
}

.dx-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--dx-fs-small);
  font-weight: 400;
  line-height: 1.5;
  color: var(--dx-teal);
}

.dx-list li {
  margin: 0;
}

.dx-empty {
  margin: 0;
  font-size: var(--dx-fs-small);
  font-weight: 500;
  color: var(--dx-teal);
}

/* ---------------------------------------------------------------------------
 * 2a. Score header
 * ------------------------------------------------------------------------ */
.dx-score-label {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-section);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--dx-teal);
  margin: 0 0 0.7rem;
}

.dx-score-value {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-score);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--dx-teal);
  margin: 0;
}

.dx-score-slash {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 26px;
  margin: 0 4px;
  vertical-align: middle;
  color: transparent;
}

.dx-score-slash::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 8px;
  width: 2px;
  height: 2.1rem;
  background-color: var(--dx-teal);
  transform: translateX(-50%) rotate(28deg);
}

.dx-score-max {
  font-size: 0.4em;
  font-weight: 400;
}

.dx-score-band {
  margin: 0.6rem 0 0;
  font-size: var(--dx-fs-subtitle);
  font-weight: 500;
  text-align: center;
  color: var(--dx-teal);
}

/* ---------------------------------------------------------------------------
 * 2b. Life Domain — traffic-light progress bars
 * ------------------------------------------------------------------------ */
.dx-domain {
  margin-bottom: 1.3rem;
}

.dx-domain-name {
  margin: 0 0 0.45rem;
  font-size: var(--dx-fs-body);
  font-weight: 500;
  color: var(--dx-teal);
}

.dx-domain-track {
  height: 0.4rem;
  border-radius: 0.3rem;
  background-color: var(--dx-rail);
  overflow: hidden;
}

.dx-domain-bar {
  height: 100%;
  border-radius: 0.3rem;
  background-color: var(--dx-warn);
}

.dx-domain-bar--good {
  background-color: var(--dx-good);
}

.dx-domain-bar--warn {
  background-color: var(--dx-warn);
}

.dx-domain-bar--bad {
  background-color: var(--dx-bad);
}

/* ---------------------------------------------------------------------------
 * 2c. Aging drivers, strongest area / needs attention
 * ------------------------------------------------------------------------ */
.dx-drivers-title {
  margin: 0 0 0.9rem;
  font-size: var(--dx-fs-subtitle);
  font-weight: 600;
  text-align: center;
  color: var(--dx-teal);
}

.dx-drivers-list {
  list-style: decimal;
  margin: 0 auto;
  padding-left: 1.6rem;
  width: fit-content;
  max-width: 100%;
  font-size: var(--dx-fs-body);
  font-weight: 500;
  line-height: 2;
  color: var(--dx-teal);
}

.dx-pair-label {
  margin: 0 0 0.45rem;
  font-family: var(--dx-head);
  font-size: var(--dx-fs-body);
  font-weight: 700;
  color: var(--dx-teal);
}

.dx-pair-value {
  margin: 0;
  font-size: var(--dx-fs-small);
  font-weight: 500;
  color: var(--dx-teal);
}

/* ---------------------------------------------------------------------------
 * 2d. Daily Routine Guide — product cards
 * ------------------------------------------------------------------------ */
.dx-care-block {
  border: 1px solid var(--dx-teal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dx-routine .dx-care-block,
.dx-routine .dx-box {
  border-radius: 0;
}

.dx-care-header {
  padding: 0.7rem 0.85rem;
  background-color: var(--dx-teal);
  color: #ffffff;
  font-size: var(--dx-fs-small);
  font-weight: 600;
  text-align: left;
}

.dx-care-products {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dx-care-product {
  position: relative;
  min-width: 0;
  padding: 0.7rem 0.5rem;
  text-align: center;
  border-top: 1px solid var(--dx-teal);
}

.dx-care-products>.dx-care-product:nth-child(odd) {
  border-right: 1px solid var(--dx-teal);
}

.dx-care-products>.dx-care-product:nth-child(-n + 2) {
  border-top: 0;
}

.dx-care-index {
  position: absolute;
  top: 0.4rem;
  left: 0.55rem;
  font-size: var(--dx-fs-tiny);
  font-weight: 600;
  color: var(--dx-teal);
}

.dx-care-shot {
  width: 100%;
  height: 96px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dx-care-products--tall .dx-care-shot {
  height: 236px;
}

.dx-care-caption {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.4rem;
  font-size: var(--dx-fs-micro);
  font-weight: 500;
  line-height: 1.4;
  color: var(--dx-teal);
  overflow-wrap: anywhere;
}

.dx-care-caption--sm {
  font-size: calc(var(--dx-fs-micro) - 1px);
}

.dx-care-caption--xs {
  font-size: calc(var(--dx-fs-micro) - 2px);
}

/* ---------------------------------------------------------------------------
 * 2e. Clinical note
 * ------------------------------------------------------------------------ */
.dx-clinical-title {
  font-family: var(--dx-head);
  font-size: var(--dx-fs-subtitle);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dx-teal);
  margin: 0 0 0.9rem;
}

.dx-clinical-body {
  margin: 0;
  font-size: var(--dx-fs-small);
  font-weight: 400;
  line-height: 1.8;
  color: var(--dx-teal);
}

/* ---------------------------------------------------------------------------
 * Surface / Deep Level
 * ------------------------------------------------------------------------ */
.status-container .status-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem var(--dx-pad-page) 1.5rem;
}

.status-container .status-breakdown-item {
  flex: 1 1 calc(33.333% - 0.75rem);
  max-width: calc(33.333% - 0.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  background-color: var(--dx-mint);
}

.status-container .status-breakdown-item p {
  margin: 0;
  padding: 0.5rem 0.5rem;
  font-family: var(--dx-head);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #ffffff;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.status-container .status-breakdown-item img {
  display: block;
  width: 100%;
  border-radius: 0;
  margin-bottom: 0;
}

.status-container .status-breakdown-item img[src^="data:"] {
  display: none;
}

.status-container .item-product a {
  background: transparent;
}

.status-container .status-cta-container {
  margin: 0 0 3rem;
}

.status-container .status-cta-container .bottom-button-container {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: var(--dx-w-action, 38%);
  margin: 0 auto;
  padding: 0;
}

.status-container .status-cta-container .bottom-button {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--dx-teal);
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: var(--dx-teal);
  font-family: var(--dx-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-container .status-cta-container .bottom-button.status-cta {
  background-color: var(--dx-teal) !important;
  color: #ffffff;
}

.status-container .status-cta-container .qrcode:empty,
.status-container .status-cta-container .qrcode:has(> :empty) {
  display: none;
}

.status-container.show-status {
  padding-bottom: 2rem;
}

@media (max-width: 767px) {
  :root {
    --dx-pad-page: 16px;
    --dx-pad-tabs: 16px;
    --dx-pad-subtabs: 16px;
  }

  #data_statusDiagnostic {
    --dx-w-narrow: 100%;
    --dx-w-mid: 100%;
    --dx-w-wide: 100%;
    --dx-w-action: 80%;

    --dx-fs-section: 17px;
    --dx-fs-subtitle: 15px;
    --dx-fs-name: 22px;
    --dx-fs-code: 42px;
    --dx-fs-score: 56px;
    --dx-fs-body: 13px;
    --dx-fs-meta: 11px;
    --dx-fs-small: 11px;
    --dx-fs-tiny: 10px;
    --dx-fs-micro: 9px;

    --dx-track-h: 11px;
    --dx-marker-h: 15px;
    --dx-knob: 15px;
    --dx-signal-end: 30%;
    --dx-signal-end-right: 24%;
  }

  .dx-card-inset {
    max-width: 100%;
  }

  .status-container .dx-brand {
    padding: 18px 16px 14px;
  }

  .dx-brand-mark {
    height: 56px;
  }

  .dx-brand-wardah {
    height: 26px;
    width: 105px;
  }

  .status-container .status-tab .status-tab-item {
    min-height: 44px;
    font-size: 13px;
  }

  .status-container .status-subtab-items .status-subtab-item {
    min-height: 44px;
  }

  .status-container .status-subtab-items .status-subtab-item p {
    font-size: 13px;
  }

  .dx-knob-name {
    flex-basis: 3rem;
  }
}

@media (max-width: 340px) {

  .dx-row-2,
  .dx-detail-split,
  .dx-detail-row--split {
    flex-direction: column;
  }

  .dx-detail-cell+.dx-detail-cell {
    border-left: 0;
    border-top: 1px solid var(--dx-teal);
  }
}