.ly-la-result-page,
.ly-la-latest-page {
  padding: 16px 0 28px;
}

.ly-la-result-page,
.ly-la-latest-page,
.ly-la-records-page {
  position: relative;
}

.ly-page-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
}

.ly-la-result-page.is-loading .ly-page-loading-overlay,
.ly-la-latest-page.is-loading .ly-page-loading-overlay,
.ly-la-records-page.is-loading .ly-page-loading-overlay,
.ly-la-prescription-page.is-loading .ly-page-loading-overlay {
  display: flex;
}

.ly-page-loading-overlay .el-loading-spinner {
  position: static;
  margin: 0;
  transform: none;
  text-align: center;
}

#block-bokss-content:has(.ly-la-result-page),
#block-bokss-content:has(.ly-la-latest-page),
#block-bokss-content:has(.ly-la-records-page),
#block-bokss-content:has(.ly-la-prescription-page) {
  min-height: 450px;
  max-width: unset;
  padding: 0;
  margin: 0;
}


/* Break out from theme .container wrapper for full-width page sections. */
.ly-la-result-page,
.ly-la-latest-page,
.ly-la-records-page,
.ly-la-prescription-page {
  width: 100%;
}

.ly-la-page-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ly-latest-top {
  background: #fff;
  padding: 24px 0;
}

.ly-latest-bottom {
  background: #f9f9f9;
  padding: 69px 0 28px;
}

.ly-latest-auth-cta {
  margin: 0 auto;
  max-width: 760px;
  border-radius: 16px;
  background: #fff;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ly-latest-auth-cta__title {
  margin: 0 0 16px;
  color: #2f3640;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.ly-latest-auth-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ly-latest-auth-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.ly-latest-auth-cta__btn--auth {
  background: #6fbe52;
  color: #fff;
}

.ly-latest-intro {
  margin: 8px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.ly-latest-actions-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  transform: none;
  position: relative;
  z-index: 2;
  margin-top: 24px;
  margin-bottom: -69px;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
}

.ly-latest-action-btn {
  min-width: 150px;
  padding: 9px 22px;
  border-radius: 999px;
  background: #f4c318;
  color: #666;
  text-decoration: none !important;
  text-align: center;
  line-height: 1;
  font-weight: 600;
}

.ly-latest-action-btn--start {
  background: #7ec240;
  color: #fff;
  min-width: 0;
  width: 90px;
  height: 90px;
  padding: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

.ly-latest-main-title {
  margin-top: 0;
  margin-bottom: 14px;
}

.ly-latest-profile-card {
  position: relative;
  border: 2px solid #8fd05e;
  border-radius: 14px;
  background: #fff;
  padding: 20px 16px 14px;
  margin-bottom: 14px;
}

.ly-latest-profile-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #7ec240;
  color: #fff;
  font-size: 16px;
  padding: 4px 14px;
}

.ly-latest-profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.ly-latest-profile-avatar-wrap {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #7ec240;
  margin: 0 auto;
}

.ly-latest-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-latest-profile-meta p {
  margin: 3px 0;
  font-size: 17px;
  line-height: 1.4;
  color: #212121;
}

.ly-latest-profile-meta {
  width: 100%;
  padding-left: 8px;
  margin: 16px 0;
}

.ly-latest-risk-chip {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  background: #f5c82f;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 4px 9px;
  vertical-align: middle;
}

.ly-latest-body-type-chip {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  border: 2px solid #5cae2e;
  color: #4c9626;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 4px 9px;
  vertical-align: middle;
}

.ly-latest-radar-card {
  margin-bottom: 18px;
}

.ly-latest-bottom-cta {
  margin-top: 32px;
  text-align: center;
}

.ly-latest-bottom-cta-title {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ly-latest-bottom-cta-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #f4c318;
  color: #666;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1;
}

.ly-result-top {
  background: #fff;
  padding: 24px 0;
}

.ly-result-bottom {
  background: #f9f9f9;
  padding: 24px 0;
}

.ly-result-overview-row {
  position: relative;
  display: grid;
  /* grid-template-columns: 1.05fr 0.95fr; */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px;
  align-items: stretch;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 58px 20px 14px;
}

.ly-result-overview-row > .ly-radar-card {
  box-shadow: none;
}

.ly-result-profile-card {
  position: static;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 8px 0 0;
}

.ly-result-profile-badge {
  position: static;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  border-radius: 999px;
  background: #7ec240;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.ly-result-profile-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.ly-result-profile-avatar-wrap {
  position: absolute;
  top: -56px;
  left: 50%;
  width: 136px;
  height: 136px;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #7ec240;
  margin: 0;
  background: #fff;
  z-index: 2;
}

.ly-result-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-result-profile-meta {
  margin: 16px;
}

.ly-result-profile-meta p {
  font-size: 22px;
  line-height: 1.25;
  color: #131313;
  font-weight: 500;
  margin-bottom: .5rem;
}

.ly-result-profile-meta strong {
  font-weight: 600;
  color: #111;
}

.ly-result-risk-chip {
  display: inline-block;
  margin-left: 10px;
  border-radius: 999px;
  background: #f5c82f;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  padding: 6px 16px;
  vertical-align: middle;
}

.ly-latest-risk-chip.ly-risk-chip--low,
.ly-result-risk-chip.ly-risk-chip--low {
  background: #E8F5E9;
  color: #348500;
}

.ly-latest-risk-chip.ly-risk-chip--medium,
.ly-result-risk-chip.ly-risk-chip--medium {
  background: #FFF3E0;
  color: #ffdc59;
}

.ly-latest-risk-chip.ly-risk-chip--high,
.ly-result-risk-chip.ly-risk-chip--high {
  background: #FFEBEE;
  color: #C62828;
}

.ly-latest-risk-chip.ly-risk-chip--very_high,
.ly-result-risk-chip.ly-risk-chip--very_high {
  background: #8b0000;
  color: #FFFFFF;
}

.ly-result-body-type-chip {
  display: inline-block;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid #5cae2e;
  color: #4c9626;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  padding: 6px 16px;
  vertical-align: middle;
}

.ly-result-radar-card {
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 4px 0 0 8px;
}

.ly-result-radar-card .ly-radar-title {
  display: none;
}

.ly-result-radar-card .ly-radar-canvas {
  max-width: 720px;
}

.ly-header-banner {
  background: #fff;
  border-radius: 12px;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.ly-header-banner-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  grid-column: 2;
  justify-self: center;
}

.ly-header-banner-pot {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
}

.ly-header-banner-texts {
  min-width: 0;
}

.ly-header-banner-title {
  margin: 0;
  font-size: 44px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.ly-header-banner-subtitle {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.1;
  color: #2c2c2c;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ly-header-banner-c1,
.ly-header-banner-c2 {
  display: inline-block;
}

.ly-header-banner-c1 {
  color: #f1544f;
}

.ly-header-banner-c2 {
  color: #3bae40;
}

.ly-header-banner-hospital {
  width: 108px;
  max-width: none;
  height: auto;
  grid-column: 3;
  justify-self: end;
  align-self: start;
}

.ly-brand {
  text-align: center;
  color: #d48f74;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ly-result-title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0.4px;
  color: #222;
}

.ly-radar-card,
.ly-summary-card,
.ly-empty-card,
.ly-latest-card,
.ly-result-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ly-radar-card {
  padding: 16px 10px 10px;
}

.ly-radar-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 18px;
  color: #333;
}

.ly-radar-canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 8 / 5;
  height: auto;
  margin: 0 auto;
}

.ly-member-la-overall {
  margin-top: 6px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

.ly-radar-date {
  margin-top: 4px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.ly-result-card {
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
  width: 100%;
  display: inline-block;
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.ly-result-card-grid {
  column-count: 2;
  column-gap: 32px;
}

.ly-card-header {
  padding: 14px 14px 10px;
  text-align: center;
  color: #fff;
}

.ly-card-header h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.ly-card-icon {
  position: absolute;
  top: 2px;
  left: 10px;
  z-index: 2;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.ly-card-icon img,
.ly-card-icon svg {
  width: 35px;
  height: 35px;
  display: block;
}

.ly-card-icon svg {
  fill: currentColor;
}

/* Fallback for legacy/normalized icons missing fill/stroke attrs. */
.ly-card-icon .ly-section-icon-svg path:not([fill]):not([stroke]) {
  fill: currentColor;
}

@media (max-width: 768px) {
  .ly-header-banner {
    padding: 10px 10px 8px;
    border-radius: 10px;
    gap: 8px;
  }

  .ly-header-banner-main {
    gap: 8px;
  }
  
  .ly-header-banner-title {
    font-size: clamp(26px, 8.4vw, 45px);
    letter-spacing: 0.5px;
  }

  .ly-header-banner-subtitle {
    font-size: clamp(14px, 4.2vw, 18px);
    margin-top: 4px;
    letter-spacing: 0;
  }

  .ly-header-banner-hospital {
    width: clamp(85px, 17vw, 100px);
    transform: translateY(-25px);
  }

  .ly-latest-bottom {
    padding-top: 69px;
  }

  .ly-latest-intro {
    font-size: 13px;
    line-height: 1.55;
  }

  .ly-latest-profile-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .ly-latest-profile-meta p {
    font-size: clamp(13px, 3.7vw, 16px);
  }

  .ly-latest-profile-meta {
    padding-left: 4px;
  }

  .ly-latest-risk-chip {
    font-size: 12px;
    padding: 3px 7px;
  }

  .ly-latest-body-type-chip {
    font-size: 12px;
    padding: 3px 7px;
  }

  .ly-latest-bottom-cta-title {
    font-size: 15px;
  }

  .ly-latest-bottom-cta-btn {
    font-size: clamp(17px, 5vw, 22px);
  }

  .ly-result-overview-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 80px 12px 12px;
  }

  .ly-result-title {
    font-size: clamp(26px, 8vw, 32px);
    letter-spacing: 0;
  }

  .ly-result-profile-card {
    padding: 12px 10px 10px;
    justify-items: center;
  }

  .ly-result-profile-badge {
    font-size: 14px;  
    display: grid;
    align-items: center;
  }

  .ly-result-profile-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .ly-result-profile-avatar-wrap {
    top: -56px;
    width: 136px;
    height: 136px;
    border-width: 3px;
  }

  .ly-result-profile-meta p {
    font-size: clamp(17px, 4.4vw, 20px);
  }

  .ly-result-risk-chip {
    font-size: clamp(14px, 4vw, 17px);
    padding: 5px 12px;
  }

  .ly-result-body-type-chip {
    font-size: clamp(14px, 4vw, 17px);
    padding: 5px 12px;
  }

  .ly-result-actions {
    grid-template-columns: 1fr;
    row-gap: 8px;
    margin-bottom: 86px;
  }

  .ly-result-actions-side {
    justify-content: center;
  }

  .ly-result-actions-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .ly-result-radar-card {
    padding: 12px 10px 10px;
  }

  .ly-result-radar-card .ly-radar-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
}

.ly-card-body {
  padding: 12px 14px 14px;
}

.ly-row-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
}

.ly-risk-scale {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.ly-risk-tag {
  min-width: 88px;
  padding: 5px 16px;
  border: 2px solid #169ea0;
  border-radius: 999px;
  color: #169ea0;
  background: #fff;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.ly-risk-tag-theme--bmi {
  border-color: #27C8D1;
  color: #27C8D1;
}

.ly-risk-tag-theme--exercise {
  border-color: #7CB342;
  color: #7CB342;
}

.ly-risk-tag-theme--wellbeing {
  border-color: #FF6F61;
  color: #FF6F61;
}

.ly-risk-tag-theme--nutrition {
  border-color: #F3C94B;
  color: #F3C94B;
}

.ly-risk-tag-theme--harmful {
  border-color: #A86ACD;
  color: #A86ACD;
}

.ly-risk-tag-theme--sleep {
  border-color: #5C6BC0;
  color: #5C6BC0;
}

.ly-risk-tag-theme--stress {
  border-color: #26A69A;
  color: #26A69A;
}

.ly-risk-levels {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ly-risk-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.ly-risk-dot--low {
  background: #dbe6ce;
  color: #ffffff;
  /* border-color: #a6b99a; */
  opacity: 0.6;
}

.ly-risk-dot--medium {
  background: #e6e0cb;
  color: #ffffff;
  /* border-color: #bdb79f; */
  opacity: 0.6;
}

.ly-risk-dot--high {
  background: #e8d7d7;
  color: #ffffff;
  /* border-color: #b49595; */
  opacity: 0.6;
}

.ly-risk-dot--very-high {
  background: #e6cdcd;
  color: #ffffff;
  /* border-color: #9f7676; */
  font-size: 14px;
  opacity: 0.6;
}

.ly-risk-dot--low.is-active {
  background: #348500;
  /* border-color: #348500; */
  /* color: #348500; */
  opacity: 1;
}

.ly-risk-dot--medium.is-active {
  background: #ffdc59;
  /* border-color: #ffdc59; */
  /* color: #ffdc59; */
  opacity: 1;
}

.ly-risk-dot--high.is-active {
  background: #C62828;
  /* border-color: #C62828; */
  /* color: #C62828; */
  opacity: 1;
}

.ly-risk-dot--very-high.is-active {
  background: #8b0000;
  /* border-color: #8b0000; */
  /* color: #ffffff; */
  opacity: 1;
}

.ly-detail-toggle,
.ly-primary-btn {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: #edf6ef;
  color: #247a3f;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none !important;
  display: inline-block;
}

.ly-detail-toggle.ly-detail-toggle-icon {
  width: 24px;
  height: 24px;
  margin-top: 0;
  margin-left: 8px;
  border: 1px solid #247a3f;
  border-radius: 999px;
  background: #fff;
  color: #247a3f;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.ly-detail-panel {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.ly-detail-item {
  margin-bottom: 10px;
}

.ly-detail-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #333;
  white-space: pre-line;
}

.ly-detail-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.ly-summary-card {
  padding: 14px;
}

.ly-summary-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ly-summary-card p {
  margin: 0;
  line-height: 1.6;
  color: #3e3e3e;
}

.ly-latest-card,
.ly-empty-card {
  padding: 16px;
}

.ly-latest-risk-list {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
}

.ly-latest-risk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 8px;
}

.ly-latest-risk-title {
  font-weight: 600;
}

.ly-latest-risk-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
}

.ly-theme-bmi { border-color: #27C8D1; }
.ly-theme-bmi .ly-card-header,
.ly-theme-bmi.ly-latest-risk-item { background: #27C8D1; }
.ly-theme-bmi .ly-card-icon { color: #27C8D1; }

.ly-theme-exercise { border-color: #7CB342; }
.ly-theme-exercise .ly-card-header,
.ly-theme-exercise.ly-latest-risk-item { background: #7CB342; }
.ly-theme-exercise .ly-card-icon { color: #7CB342; }

.ly-theme-wellbeing { border-color: #FF6F61; }
.ly-theme-wellbeing .ly-card-header,
.ly-theme-wellbeing.ly-latest-risk-item { background: #FF6F61; }
.ly-theme-wellbeing .ly-card-icon { color: #FF6F61; }

.ly-theme-nutrition { border-color: #F3C94B; }
.ly-theme-nutrition .ly-card-header,
.ly-theme-nutrition.ly-latest-risk-item { background: #F3C94B; }
.ly-theme-nutrition .ly-card-icon { color: #F3C94B; }

.ly-theme-harmful { border-color: #A86ACD; }
.ly-theme-harmful .ly-card-header,
.ly-theme-harmful.ly-latest-risk-item { background: #A86ACD; }
.ly-theme-harmful .ly-card-icon { color: #A86ACD; }

.ly-theme-sleep { border-color: #5C6BC0; }
.ly-theme-sleep .ly-card-header,
.ly-theme-sleep.ly-latest-risk-item { background: #5C6BC0; }
.ly-theme-sleep .ly-card-icon { color: #5C6BC0; }

.ly-theme-stress { border-color: #26A69A; }
.ly-theme-stress .ly-card-header,
.ly-theme-stress.ly-latest-risk-item { background: #26A69A; }
.ly-theme-stress .ly-card-icon { color: #26A69A; }

@media (max-width: 480px) {
  .ly-result-title { font-size: 28px; }
  .ly-card-header h2 { font-size: 22px; }
  /* h2 line box 22px × 1.2 ≈ 26px */
  .ly-card-icon {
    top: 2px;
    left: 10px;
    width: 45px;
    height: 45px;
    font-size: 14px;
  }
  .ly-card-icon img,
  .ly-card-icon svg {
    width: 26px;
    height: 26px;
  }
  .ly-row-list { font-size: 15px; }

  .ly-risk-scale {
    gap: 8px;
  }

  .ly-risk-tag {
    min-width: 58px;
    padding: 4px 10px;
  }

  .ly-risk-levels {
    gap: 6px;
  }

  .ly-risk-dot {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .ly-risk-dot--very-high {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .ly-result-card-grid {
    column-count: 1;
  }

  .ly-result-card { 
    max-width: 100% !important; 
  }
}

.ly-protein-accordion-wrap {
  margin-top: 14px;
  border-top: 1px solid #ececec;
  padding-top: 10px;
}

.ly-protein-knowledge {
  margin-bottom: 8px;
}

.ly-protein-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: #2f2f2f;
}

.ly-accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  margin: 8px 0;
  overflow: hidden;
}

.ly-protein-risk-summary {
  margin-bottom: 14px;
}

.ly-protein-risk-summary h4 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  font-weight: 600;
}

.ly-protein-risk-summary p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.ly-protein-risk-summary p:last-child {
  margin-bottom: 0;
}

.ly-accordion-toggle {
  width: 100%;
  background: #fff;
  border: 0;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  text-align: left;
}

.ly-accordion-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #5aa03c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.ly-accordion-text {
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 600;
}

.ly-accordion-arrow {
  color: #6f6f6f;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.ly-accordion-toggle[aria-expanded="true"] .ly-accordion-arrow {
  transform: rotate(180deg);
}

.ly-accordion-panel {
  border-top: 1px solid #efefef;
  padding: 10px;
}

.ly-accordion-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
}

/* Higher specificity than `.ly-accordion-panel p` so appendix III meal blocks keep their typography. */
.ly-accordion-panel .ly-protein-meal-card-items {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #2f2f2f;
}

.ly-accordion-panel .ly-protein-meal-card-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #7a7a7a;
}

.ly-accordion-panel .ly-protein-meal-card-note small {
  font-size: inherit;
  color: inherit;
}

.ly-accordion-panel .ly-protein-meal-option-total {
  margin: 4px 0 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: #333;
}

.ly-accordion-panel .ly-protein-meal-option-caution {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

.ly-accordion-panel .ly-protein-meal-option-caution small {
  font-size: inherit;
  color: inherit;
}

.ly-accordion-rich {
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
}

/* Appendix I §2 — text after regional coefficient table */
.ly-protein-intake-tip {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #454545;
}

.ly-protein-intake-elder-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #f9f9f9;
  font-size: 13px;
  line-height: 1.5;
  color: #5c5c5c;
}

.ly-protein-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.ly-protein-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: #fff;
}

.ly-protein-table th,
.ly-protein-table td {
  border: 1px solid #e3e3e3;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.ly-protein-table thead th {
  background: #f7f7f7;
  font-weight: 600;
}

.ly-protein-table tbody th {
  background: #fafafa;
  font-weight: 600;
}

.ly-protein-table-note,
.ly-protein-table-summary {
  margin: 6px 0 0;
}

.ly-protein-guide-card {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
}

.ly-protein-guide-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2e2e2e;
}

.ly-protein-guide-card ul {
  margin: 0;
  padding-left: 18px;
}

.ly-protein-guide-card li {
  margin: 4px 0;
}

.ly-protein-food-title {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #2d2d2d;
}

.ly-protein-food-table-wrap {
  overflow-x: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
}

.ly-protein-food-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.ly-protein-food-table th,
.ly-protein-food-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  font-size: 15px;
  color: #2f2f2f;
  text-align: left;
  vertical-align: middle;
}

.ly-protein-food-table thead th {
  background: #f3f3f3;
  font-size: 17px;
  font-weight: 600;
}

/* Appendix III — meal option cards (stacked, matches design mockup). */
.ly-protein-meal-option {
  margin-bottom: 22px;
}

.ly-protein-meal-option:last-of-type {
  margin-bottom: 14px;
}

.ly-protein-meal-option-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  color: #5fa241;
}

.ly-protein-meal-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.ly-protein-meal-card-side {
  flex: 0 0 22%;
  max-width: 118px;
  min-width: 76px;
  border-right: 1px solid #ededed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  gap: 6px;
  box-sizing: border-box;
}

.ly-protein-meal-card-meal {
  font-weight: 600;
  color: #2e2e2e;
  font-size: 15px;
  text-align: center;
  line-height: 1.25;
}

.ly-protein-meal-card-protein {
  color: #5fa241;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  line-height: 1.25;
}

.ly-protein-meal-card-main {
  flex: 1;
  padding: 15px;
  min-width: 0;
}

.ly-protein-meal-card-items {
  margin: 0;
  color: #2f2f2f;
  font-size: 15px;
  line-height: 1.45;
}

.ly-protein-meal-card-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #7a7a7a;
  line-height: 1.4;
}

.ly-protein-meal-card-note small {
  font-size: inherit;
  color: inherit;
}

.ly-protein-meal-option-total {
  margin: 4px 0 8px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.ly-protein-meal-option-caution {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

.ly-protein-meal-option-caution small {
  font-size: inherit;
  color: inherit;
}

@media (max-width: 440px) {
  .ly-protein-meal-card {
    flex-direction: column;
  }

  .ly-protein-meal-card-side {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid #ededed;
    padding: 12px 14px;
  }

  .ly-protein-meal-card-meal,
  .ly-protein-meal-card-protein {
    text-align: left;
  }
}

.ly-result-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  margin: 0 0 86px;
}

.ly-result-actions-side {
  display: flex;
  align-items: center;
}

.ly-result-actions-side--left {
  justify-content: flex-start;
}

.ly-result-actions-side--right {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.ly-result-actions-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  line-height: 1.15;
}

.ly-result-actions-spacer {
  display: inline-block;
  width: 88px;
  height: 1px;
}

.ly-back-link {
  display: inline-block;
  margin: 0;
  color: #2f7dbf;
  text-decoration: none !important;
  font-weight: 600;
}

a.ly-result-pdf-btn,
button.ly-result-pdf-btn {
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #34a853;
  background: #fff;
  color: #1b5e20;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease;
}

a.ly-result-pdf-btn {
  display: inline-block;
  text-decoration: none !important;
  box-sizing: border-box;
}

a.ly-result-pdf-btn:hover,
a.ly-result-pdf-btn:focus,
button.ly-result-pdf-btn:hover,
button.ly-result-pdf-btn:focus {
  background: #e8f5e9;
  color: #0d3d12;
}

button.ly-result-pdf-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* While fetching PDF: disabled but visibly “busy”, not “broken”. */
button.ly-result-pdf-btn.ly-result-pdf-btn--loading:disabled {
  opacity: 1;
  cursor: wait;
  border-style: solid;
  color: #2e7d32;
  background: #f1f8f4;
}

.ly-result-pdf-error {
  margin: 8px 0 0;
  padding: 0;
  max-width: 220px;
  font-size: 13px;
  line-height: 1.45;
  color: #c62828;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ly-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "left right";
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
    margin: 0 0 32px;
  }

  .ly-result-actions-title {
    grid-area: title;
    margin: 0;
    text-align: center;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .ly-result-actions-side--left {
    grid-area: left;
    justify-content: flex-start;
    min-width: 0;
  }

  .ly-result-actions-side--right {
    grid-area: right;
    align-items: flex-end;
    justify-content: flex-start;
    min-width: 0;
  }

  .ly-back-link,
  button.ly-result-pdf-btn,
  a.ly-result-pdf-btn {
    white-space: nowrap;
    font-size: 14px;
  }

  button.ly-result-pdf-btn,
  a.ly-result-pdf-btn {
    padding: 7px 12px;
  }

  .ly-result-actions-spacer {
    width: 0;
    height: 0;
  }
}

@media (max-width: 480px) {
  .ly-latest-actions-row {
    margin-bottom: -59px;
    font-size: 16px;
  }

  .ly-latest-bottom {
    padding-top: 59px;
  }

  .ly-latest-action-btn {
    padding: 8px 16px;
    min-width: 0;
  }

  .ly-latest-action-btn--start {
    width: 70px;
    height: 70px;
    padding: 18px;
  }

  .ly-back-link,
  button.ly-result-pdf-btn,
  a.ly-result-pdf-btn {
    font-size: 13px;
  }

  button.ly-result-pdf-btn,
  a.ly-result-pdf-btn {
    padding: 6px 10px;
  }
}

@media (max-width: 360px) {
  .ly-back-link {
    font-size: 0;
  }

  .ly-back-link::before {
    content: "← 返回";
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  button.ly-result-pdf-btn {
    font-size: 0;
    padding: 6px 9px;
  }

  button.ly-result-pdf-btn::before {
    content: "下載";
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  button.ly-result-pdf-btn.ly-result-pdf-btn--loading {
    font-size: 13px;
  }

  button.ly-result-pdf-btn.ly-result-pdf-btn--loading::before {
    content: none;
  }
}

