:root {
  color: #17211f;
  background: #eafbf7;
  font-family:
    Inter,
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:focus {
  outline: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(84, 204, 187, 0.55);
  outline-offset: 2px;
}

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

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(122, 225, 207, 0.38), transparent 28%),
    linear-gradient(180deg, #eafff9 0%, #f8fbf8 48%, #ffffff 100%);
}

#app.member-plan-app {
  display: block;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  background: #f8fbf9;
  box-shadow: 0 0 44px rgba(25, 73, 56, .10);
}

.phone-frame {
  position: relative;
  width: min(100vw, 420px);
  height: min(920px, calc(100vh - 48px));
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(91, 202, 179, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(220, 255, 248, 0.94), rgba(255, 255, 255, 0.96) 28%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(27, 94, 79, 0.18), 0 2px 8px rgba(27, 94, 79, 0.08);
}

.assessment-frame,
.agent-frame {
  background:
    linear-gradient(180deg, rgba(223, 250, 242, 0.88), rgba(255, 255, 255, 0.94) 30%),
    #f8fbf8;
}

.app-screen,
.assessment-screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 104px;
  scrollbar-width: none;
}

.assessment-screen {
  padding-bottom: 118px;
}

.app-screen::-webkit-scrollbar,
.assessment-screen::-webkit-scrollbar {
  display: none;
}

/* Product MVP flow */
.welcome-frame,
.intake-frame,
.product-frame,
.plan-detail-frame,
.membership-frame {
  background: #f6fbf8;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: max(16px, env(safe-area-inset-top)) 18px 22px;
  background: linear-gradient(180deg, #f1fbf7 0%, #ffffff 54%, #f8fcf9 100%);
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #246f5e;
  font-size: 16px;
  font-weight: 800;
}

.welcome-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #d8f4e9;
  color: #42ad88;
}

.welcome-brand-mark svg {
  width: 17px;
  height: 17px;
}

.welcome-visual {
  position: relative;
  overflow: hidden;
  height: 224px;
  margin: 14px -18px 0;
  border-radius: 0 0 24px 24px;
  background: #dff5e9;
}

.welcome-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  padding: 17px 8px 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff 78%);
}

.welcome-kicker {
  color: #4caf8c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.welcome-copy h1 {
  margin: 8px 0 10px;
  color: #183e34;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 850;
}

.welcome-copy p {
  margin-bottom: 12px;
  color: #6b8079;
  font-size: 14px;
  line-height: 1.55;
}

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

.welcome-capability-grid article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e1f0e9;
  border-radius: 15px;
  background: #f8fcfa;
}

.welcome-capability-grid article > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #e4f7ed;
  color: #55bd91;
}

.welcome-capability-grid svg { width: 17px; height: 17px; }
.welcome-capability-grid article > div { min-width: 0; }
.welcome-capability-grid strong,
.welcome-capability-grid small { display: block; }
.welcome-capability-grid strong { color: #315f50; font-size: 13px; line-height: 1.25; }
.welcome-capability-grid small { margin-top: 3px; color: #82968f; font-size: 11px; line-height: 1.35; }

.welcome-primary,
.intake-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, #51bd90, #2d9576);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(55, 153, 119, 0.2);
  font-size: 16px;
  font-weight: 800;
}

.welcome-primary svg,
.intake-submit svg {
  width: 18px;
  height: 18px;
}

.intake-screen,
.membership-screen,
.plan-detail-screen,
.product-home-screen {
  padding: max(12px, env(safe-area-inset-top)) 16px 94px;
  background: #f7faf8;
}

.intake-header,
.membership-header,
.plan-detail-header {
  margin-bottom: 14px;
}

.intake-header > div,
.membership-header > div,
.plan-detail-header > div {
  min-width: 0;
  text-align: center;
}

.intake-header span,
.membership-header span,
.plan-detail-header span {
  display: block;
  color: #7a8b86;
  font-size: 11px;
  line-height: 1.2;
}

.intake-header h1,
.membership-header h1,
.plan-detail-header h1 {
  margin: 3px 0 0;
  color: #1d493c;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.intake-header button,
.membership-header button,
.plan-detail-header button {
  width: 36px;
  height: 36px;
  border: 1px solid #d6ebe3;
  border-radius: 12px;
  background: #ffffff;
  color: #47786a;
  font-size: 25px;
  line-height: 1;
}

.intake-step,
.membership-badge,
.plan-member-mark {
  min-width: 42px;
  padding: 7px 5px;
  border-radius: 10px;
  background: #e5f6ee;
  color: #3c9e7d !important;
  font-size: 10px !important;
  font-weight: 800;
}

.intake-intro {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e6f8ef, #f7fcfa);
}

.intake-intro-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #c9efdc;
  color: #39a57d;
}

.intake-intro-icon svg {
  width: 22px;
  height: 22px;
}

.intake-intro span {
  color: #4e9f84;
  font-size: 11px;
}

.intake-intro h2 {
  margin: 4px 0 0;
  color: #1d493c;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

.intake-intro p {
  grid-column: 1 / -1;
  margin: 0;
  color: #779088;
  font-size: 12px;
  line-height: 1.5;
}

.profile-intake-form {
  display: grid;
  gap: 12px;
}

.intake-card {
  padding: 15px;
  border: 1px solid #e2eee9;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(35, 86, 70, 0.04);
}

.intake-card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.intake-card-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #e3f7ed;
  color: #3da680;
  font-size: 11px;
  font-weight: 800;
}

.intake-card-title strong,
.intake-card-title small {
  display: block;
}

.intake-card-title strong {
  color: #244f42;
  font-size: 15px;
}

.intake-card-title small {
  margin-top: 3px;
  color: #8b9b95;
  font-size: 11px;
}

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

.intake-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.intake-field > span:first-child,
.intake-choice-field legend {
  color: #5e776e;
  font-size: 12px;
  font-weight: 700;
}

.intake-field b {
  color: #e27868;
}

.intake-field input,
.intake-field select,
.membership-purchase input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfece6;
  border-radius: 12px;
  background: #f9fcfa;
  color: #244f42;
  font-size: 14px;
}

.intake-field input::placeholder,
.membership-purchase input::placeholder {
  color: #b0beb9;
}

.unit-input {
  position: relative;
}

.unit-input input {
  padding-right: 35px;
}

.unit-input em {
  position: absolute;
  top: 12px;
  right: 11px;
  color: #94a49e;
  font-size: 11px;
  font-style: normal;
}

.intake-choice-field {
  margin: 15px 0 0;
  padding: 0;
  border: 0;
}

.intake-choice-field legend {
  width: 100%;
  margin-bottom: 9px;
}

.intake-choice-field legend i {
  margin-left: 4px;
  color: #a6b5b0;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.intake-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intake-choice {
  position: relative;
}

.intake-choice input {
  position: absolute;
  opacity: 0;
}

.intake-choice span {
  display: block;
  padding: 8px 10px;
  border: 1px solid #deece6;
  border-radius: 999px;
  background: #fbfdfc;
  color: #668077;
  font-size: 11px;
  line-height: 1.2;
}

.intake-choice.active span {
  border-color: #6bc99f;
  background: #e7f8ee;
  color: #2b916c;
  font-weight: 700;
}

.intake-error,
.membership-error {
  min-height: 18px;
  color: #d76659;
  font-size: 12px;
}

.intake-submit {
  margin-top: 0;
}

.product-home-screen {
  padding-left: 14px;
  padding-right: 14px;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.product-header > div span {
  color: #6b8a7e;
  font-size: 12px;
}

.product-header h1 {
  margin: 3px 0 0;
  color: #1e493c;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 850;
}

.role-pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.role-pill.free { background: #edf5f1; color: #729085; }
.role-pill.member { background: #fff4d9; color: #b58335; }

.product-banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 22px;
  background: #dff2e9;
  box-shadow: 0 10px 24px rgba(37, 91, 73, 0.1);
}

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

.service-section,
.plan-list-section {
  margin-top: 16px;
}

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

.section-heading span {
  color: #77a094;
  font-size: 11px;
}

.section-heading h2 {
  margin: 3px 0 0;
  color: #224b3e;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

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

.service-card {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2b5347;
  text-align: center;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 16px;
  background: #e7f8ef;
  color: #4dbb8b;
}

.service-card:nth-child(2) .service-icon { background: #fff1df; color: #d59a52; }
.service-card:nth-child(3) .service-icon { background: #e7f0fb; color: #618fbf; }
.service-card:nth-child(4) .service-icon { background: #f0ebfa; color: #8a73bc; }
.service-icon svg { width: 23px; height: 23px; }
.service-card strong { max-width: 100%; color: #3d5f53; font-size: 11px; line-height: 1.25; }

.plan-summary-card,
.recommendation-card,
.home-ai-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e3eee8;
  border-radius: 18px;
  background: #ffffff;
  color: #254e41;
  text-align: left;
  box-shadow: 0 7px 17px rgba(37, 91, 73, 0.04);
}

.plan-summary-card { min-height: 94px; padding: 10px; }
.plan-summary-cover { width: 76px; height: 72px; overflow: hidden; flex: 0 0 auto; border-radius: 13px; background: #e3f6e9; }
.plan-summary-cover img { width: 100%; height: 100%; object-fit: cover; }
.plan-summary-copy { min-width: 0; flex: 1; }
.plan-summary-copy small, .plan-summary-copy strong, .plan-summary-copy em { display: block; }
.plan-summary-copy small { color: #51a982; font-size: 10px; }
.plan-summary-copy strong { margin: 5px 0; font-size: 15px; }
.plan-summary-copy em { color: #91a29c; font-size: 10px; font-style: normal; }
.plan-summary-card > svg { width: 17px; color: #abc0b7; }

.recommendation-list { display: grid; gap: 9px; }
.recommendation-card { min-height: 76px; padding: 9px; }
.recommendation-cover { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 13px; }
.recommendation-cover { overflow: hidden; background: #e8f2ec; }
.recommendation-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recommendation-card > span:nth-child(2) { min-width: 0; flex: 1; }
.recommendation-card strong, .recommendation-card small { display: block; }
.recommendation-card strong { font-size: 14px; }
.recommendation-card small { margin-top: 6px; color: #8b9c95; font-size: 11px; }
.recommendation-card > svg { width: 17px; color: #adbbb5; }

.home-ai-link { margin-top: 18px; padding: 10px 12px; background: #effaf4; }
.home-ai-link-icon { display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; border-radius: 14px; background: #d3f3e2; }
.home-ai-link-icon img { width: 44px; height: 44px; object-fit: cover; }
.home-ai-link > span:nth-child(2) { min-width: 0; flex: 1; }
.home-ai-link small, .home-ai-link strong { display: block; }
.home-ai-link small { color: #66a188; font-size: 10px; }
.home-ai-link strong { margin-top: 3px; color: #28644f; font-size: 14px; }
.home-ai-link > svg { width: 17px; color: #7ca998; }

.membership-hero { margin: 4px 0 16px; padding: 20px 18px; border-radius: 23px; background: linear-gradient(145deg, #e5f8ed, #f7fcf9); text-align: center; }
.membership-orbit { display: grid; width: 62px; height: 62px; margin: 0 auto 12px; place-items: center; border: 7px solid #d2f2df; border-radius: 50%; background: #9fe1bc; color: #ffffff; }
.membership-orbit svg { width: 25px; height: 25px; }
.membership-hero h2 { margin: 8px 0; color: #1f503e; font-size: 23px; line-height: 1.35; }
.membership-hero p { margin: 0; color: #769187; font-size: 13px; line-height: 1.6; }
.membership-benefits { display: grid; gap: 9px; }
.membership-benefits article { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e3eee8; border-radius: 16px; background: #ffffff; }
.membership-benefits article > svg { width: 21px; height: 21px; color: #4dbb8b; }
.membership-benefits strong, .membership-benefits span { display: block; }
.membership-benefits strong { color: #2d5749; font-size: 14px; }
.membership-benefits span { margin-top: 4px; color: #96a6a0; font-size: 11px; }
.membership-purchase { margin-top: 17px; padding: 15px; border-radius: 18px; background: #ffffff; }
.membership-purchase label, .membership-purchase label span { display: block; }
.membership-purchase label > span { margin-bottom: 7px; color: #55766a; font-size: 12px; font-weight: 800; }
.membership-purchase p { margin: 8px 0 0; color: #a0afa9; font-size: 10px; }
.membership-purchase .intake-submit { margin-top: 8px; }

.membership-poster-screen {
  padding: max(12px, env(safe-area-inset-top)) 14px 20px;
  background: linear-gradient(180deg, #eef9f4, #f8fcfa 54%, #ffffff);
}

.membership-poster-header {
  min-height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  margin-bottom: 10px;
}

.membership-poster-header > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e9e0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #426f60;
}

.membership-poster-header > button svg {
  width: 19px;
  height: 19px;
}

.membership-poster-header h1 {
  margin: 0;
  color: #294d41;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.membership-poster-art {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(55, 126, 98, 0.12);
  border-radius: 8px;
  background: #e8f4ee;
  box-shadow: 0 14px 32px rgba(38, 87, 69, 0.12);
}

.membership-poster-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.membership-upgrade-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2e8d67, #55b984);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(45, 139, 101, 0.2);
}

.membership-upgrade-button svg {
  width: 17px;
  height: 17px;
}

.membership-code-layer[hidden] {
  display: none;
}

.membership-code-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
}

.membership-code-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 49, 40, 0.38);
  backdrop-filter: blur(3px);
}

.membership-code-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 42px rgba(25, 59, 46, 0.18);
}

.membership-code-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f6f3;
  color: #6f837b;
}

.membership-code-close svg {
  width: 17px;
  height: 17px;
}

.membership-code-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f5eb;
  color: #3a976f;
}

.membership-code-icon svg {
  width: 20px;
  height: 20px;
}

.membership-code-dialog h2 {
  margin: 12px 0 0;
  color: #21483b;
  font-size: 20px;
}

.membership-code-dialog > p {
  margin: 6px 0 15px;
  color: #7d9189;
  font-size: 12px;
}

.membership-code-dialog label > span {
  display: block;
  margin-bottom: 7px;
  color: #526d63;
  font-size: 12px;
  font-weight: 750;
}

.membership-code-dialog input {
  width: 100%;
  height: 46px;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  background: #f8fbf9;
  padding: 0 13px;
  color: #284d40;
  font-size: 16px;
  letter-spacing: 4px;
  outline: 0;
}

.membership-code-dialog input:focus {
  border-color: #69b693;
  box-shadow: 0 0 0 3px rgba(88, 174, 133, 0.12);
}

.membership-code-dialog form > button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  border-radius: 8px;
  background: #3d9d72;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.membership-code-dialog form > button svg {
  width: 17px;
  height: 17px;
}

.plan-detail-banner { position: relative; overflow: hidden; height: 150px; margin-bottom: 12px; border-radius: 21px; background: #dff4e7; }
.plan-detail-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.plan-detail-banner > div { position: absolute; inset: 0 auto 0 0; display: flex; width: 60%; flex-direction: column; justify-content: center; padding: 16px; background: linear-gradient(90deg, rgba(223, 245, 231, 0.95), rgba(223, 245, 231, 0.55), transparent); }
.plan-detail-banner span, .plan-detail-banner strong { display: block; }
.plan-detail-banner span { color: #4e9b76; font-size: 10px; }
.plan-detail-banner strong { margin-top: 7px; color: #22583f; font-size: 20px; line-height: 1.35; }
.plan-profile-card { padding: 14px; border: 1px solid #e2eee8; border-radius: 19px; background: #ffffff; }
.plan-profile-head { display: flex; align-items: center; gap: 9px; }
.plan-profile-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 13px; background: #e4f7ed; color: #47ae83; }
.plan-profile-avatar svg { width: 19px; height: 19px; }
.plan-profile-head > div { min-width: 0; flex: 1; }
.plan-profile-head small, .plan-profile-head strong { display: block; }
.plan-profile-head small { color: #93a49d; font-size: 10px; }
.plan-profile-head strong { margin-top: 3px; color: #2d5749; font-size: 15px; }
.bmi-chip { padding: 6px 8px; border-radius: 9px; background: #f0f8f3; color: #4c9f7b; font-size: 10px; font-weight: 800; }
.plan-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf3f0; }
.plan-profile-stats span { display: flex; align-items: center; justify-content: center; gap: 3px; color: #84968e; font-size: 10px; }
.plan-profile-stats svg { width: 13px; color: #62b68e; }
.plan-profile-stats b { color: #2d5749; font-size: 12px; }
.plan-calendar, .meal-section, .therapy-section { margin-top: 18px; }
.plan-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.plan-calendar-day { display: grid; min-width: 0; gap: 2px; padding: 8px 2px; border: 1px solid #e3eee8; border-radius: 12px; background: #ffffff; color: #8b9c95; }
.plan-calendar-day small, .plan-calendar-day em { font-size: 9px; font-style: normal; }
.plan-calendar-day strong { color: #476a5c; font-size: 16px; }
.plan-calendar-day.active { border-color: #56bb8c; background: #e1f7ea; box-shadow: 0 5px 12px rgba(55, 159, 119, 0.14); }
.plan-calendar-day.active strong, .plan-calendar-day.active em { color: #2f966d; }
.meal-groups { display: grid; gap: 12px; }
.meal-group { padding: 12px; border: 1px solid #e5eee9; border-radius: 18px; background: #ffffff; }
.meal-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.meal-group-title > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 10px; background: #e4f7ed; color: #49ac81; }
.meal-group-title svg { width: 16px; height: 16px; }
.meal-group-title strong { color: #315b4c; font-size: 14px; }
.meal-group-title small { margin-left: auto; color: #a0afa9; font-size: 10px; }
.meal-tile-list { display: grid; gap: 8px; }
.recipe-tile { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px; border-radius: 13px; background: #f8fbf9; }
.recipe-tile > img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover; border-radius: 10px; background: #e4f2e9; }
.recipe-tile > div { min-width: 0; flex: 1; }
.recipe-tile strong, .recipe-tile small, .recipe-tile em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-tile strong { color: #315b4c; font-size: 13px; }
.recipe-tile small { margin-top: 3px; color: #8b9c95; font-size: 10px; }
.recipe-tile em { margin-top: 3px; color: #d08b4b; font-size: 9px; font-style: normal; }
.recipe-tile > svg { width: 14px; color: #b6c7bf; }
.therapy-header { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e5eee9; border-radius: 18px; background: #ffffff; color: #315b4c; text-align: left; }
.therapy-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #fff3dc; color: #ce9854; }
.therapy-icon svg { width: 17px; height: 17px; }
.therapy-header > span:nth-child(2) { flex: 1; }
.therapy-header small, .therapy-header strong { display: block; }
.therapy-header small { color: #b28b58; font-size: 10px; }
.therapy-header strong { margin-top: 3px; font-size: 14px; }
.therapy-status svg { width: 17px; color: #c49a62; }
.therapy-lock { display: grid; justify-items: center; gap: 7px; padding: 18px 12px; border: 1px solid #f0e6d7; border-top: 0; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, rgba(255, 247, 230, 0.94), rgba(255, 252, 245, 0.96)); text-align: center; }
.lock-large { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f5dfb9; color: #b9853f; }
.lock-large svg { width: 19px; height: 19px; }
.therapy-lock strong { color: #7d613d; font-size: 13px; }
.therapy-lock small { color: #b19a7b; font-size: 10px; }
.therapy-lock button { margin-top: 3px; padding: 8px 16px; border-radius: 999px; background: #d89b4c; color: #ffffff; font-size: 11px; font-weight: 800; }
.therapy-list { display: grid; gap: 8px; margin-top: 9px; }
.empty-copy { padding: 15px; color: #9baaa4; font-size: 11px; text-align: center; }
.profile-edit-button { width: 100%; margin-top: 14px; padding: 12px; border: 1px solid #67bd91; border-radius: 14px; background: #effaf3; color: #3d9d72; font-size: 13px; font-weight: 800; }

.profile-service-contact {
  margin-top: 12px;
}

.profile-service-summary {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf3f0;
}

.profile-service-summary div {
  min-width: 0;
}

.profile-service-summary small,
.profile-service-summary strong {
  display: block;
}

.profile-service-summary small {
  color: #879990;
  font-size: 10px;
}

.profile-service-summary strong {
  margin-top: 4px;
  color: #315548;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-service-summary button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cfe3d8;
  border-radius: 10px;
  background: #f1f8f4;
  color: #4d866e;
  font-size: 11px;
  font-weight: 800;
}

.profile-service-summary button svg {
  width: 13px;
  height: 13px;
}

.profile-service-schedule-form {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf3f0;
}

.profile-service-schedule-form > label > span,
.profile-service-schedule-form legend {
  display: block;
  margin-bottom: 6px;
  color: #49675b;
  font-size: 11px;
  font-weight: 750;
}

.profile-service-schedule-form input {
  width: 100%;
  height: 39px;
  border: 1px solid #d8e5df;
  border-radius: 9px;
  outline: 0;
  background: #f8fbf9;
  padding: 0 10px;
  color: #315548;
  font: inherit;
}

.profile-service-schedule-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
}

.profile-service-schedule-form fieldset legend {
  grid-column: 1 / -1;
}

.profile-service-schedule-form fieldset label span {
  display: block;
  margin-bottom: 5px;
  color: #71877d;
  font-size: 10px;
}

.profile-service-schedule-form fieldset input {
  padding: 0 5px;
  font-size: 11px;
}

.profile-service-form-actions {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 8px;
}

.profile-service-form-actions button {
  min-height: 39px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.profile-service-form-actions button:first-child {
  border: 1px solid #d5e3dc;
  background: #f7faf8;
  color: #6f827a;
}

.profile-service-form-actions button:last-child {
  background: #5ab586;
  color: #ffffff;
}

.questionnaire-receipt {
  width: fit-content;
  max-width: calc(100% - 52px);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 4px 48px;
  color: #6f857d;
  font-size: 11px;
  line-height: 1.45;
}

.questionnaire-receipt svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #58ae83;
}

.questionnaire-transition-card {
  width: min(100%, 305px);
  overflow: hidden;
  border: 1px solid #d7e9e0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(35, 78, 65, .05);
}

.questionnaire-transition-card > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 13px;
  color: #315d4e;
}

.questionnaire-transition-card > div:first-child svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #55af80;
}

.questionnaire-transition-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.questionnaire-transition-next {
  padding: 11px 13px 12px;
  border-top: 1px solid #e8f1ed;
  background: #f4faf7;
}

.questionnaire-transition-next small {
  display: block;
  margin-bottom: 4px;
  color: #58a27f;
  font-size: 10px;
  font-weight: 850;
}

.questionnaire-transition-next p { color: #526c63; }

.post-analysis-welcome-card {
  width: min(100%, 305px);
  padding: 14px;
  border: 1px solid #cfe4d9;
  border-radius: 8px;
  background: #f7fcf9;
  box-shadow: 0 7px 20px rgba(35, 83, 68, .06);
}

.post-analysis-welcome-card > small {
  color: #58a27f;
  font-size: 10px;
  font-weight: 850;
}

.post-analysis-welcome-card h3 {
  margin: 4px 0 5px;
  color: #244f41;
  font-size: 16px;
  line-height: 1.35;
}

.post-analysis-welcome-card > p {
  margin: 0;
  color: #657c73;
  font-size: 11px;
  line-height: 1.6;
}

.post-analysis-welcome-card > div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.post-analysis-welcome-card article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 7px;
  background: #ffffff;
}

.post-analysis-welcome-card article span {
  color: #3e9270;
  font-size: 10px;
  font-weight: 850;
}

.post-analysis-welcome-card article p {
  margin: 0;
  color: #445f56;
  font-size: 11px;
  line-height: 1.5;
}

.post-analysis-welcome-card footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #dfeee7;
  color: #557068;
  font-size: 10px;
  line-height: 1.45;
}

.post-analysis-welcome-card footer svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #58a27f;
}
.test-reset-button { width: 100%; margin-top: 10px; padding: 10px; background: transparent; color: #b4bfba; font-size: 10px; }
.app-toast { position: fixed; z-index: 100; left: 50%; bottom: 82px; max-width: min(84vw, 360px); padding: 10px 16px; border-radius: 999px; background: rgba(31, 67, 57, 0.94); color: #ffffff; font-size: 12px; opacity: 0; transform: translate(-50%, 8px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  #app { padding: 0; }
  .phone-frame { width: 100vw; height: 100vh; min-height: 640px; border: 0; border-radius: 0; }
}

.home-screen {
  padding: max(12px, env(safe-area-inset-top)) 14px 94px;
  background: #f7faf8;
}

.home-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.home-brand-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(18, 73, 61, 0.14);
}

.home-brand-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-brand-copy h1 {
  margin: 0;
  color: #173a33;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
}

.home-brand-copy p {
  margin: 0;
  color: #768783;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.home-banners {
  margin-bottom: 15px;
}

.home-banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-banner-track::-webkit-scrollbar {
  display: none;
}

.home-banner-slide {
  flex: 0 0 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f1e9;
  box-shadow: 0 8px 20px rgba(49, 69, 62, 0.08);
  scroll-snap-align: start;
}

.home-banner-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
}

.home-banner-dots {
  height: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.home-banner-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #c7d6d1;
}

.home-banner-dots .active {
  width: 14px;
  background: #57bca8;
}

.home-ai-entry {
  position: relative;
  width: 100%;
  min-height: 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: stretch;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid rgba(57, 148, 129, 0.14);
  border-radius: 8px;
  background: #eaf8f3;
  color: #173a33;
  text-align: left;
  box-shadow: 0 8px 22px rgba(36, 93, 80, 0.09);
}

.home-ai-entry-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 13px 0 13px 15px;
}

.home-ai-entry-copy > span {
  margin-bottom: 4px;
  color: #4d9b8c;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.home-ai-entry-copy strong {
  margin-bottom: 4px;
  color: #163a33;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.home-ai-entry-copy small {
  max-width: 210px;
  color: #718681;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 500;
}

.home-ai-entry-copy b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: #54bea9;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.home-ai-entry img {
  align-self: end;
  width: 112px;
  height: 106px;
  object-fit: cover;
  object-position: 50% 36%;
  transform-origin: 60% 70%;
  animation: companion-breathe 3.2s ease-in-out infinite;
}

@keyframes companion-breathe {
  0%,
  100% {
    transform: translateY(2px) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
  }
}

.home-capabilities {
  padding: 0 2px 10px;
}

.home-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-section-title h2 {
  margin: 0;
  color: #183a33;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.home-section-title p {
  margin: 0;
  color: #899793;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}

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

.home-capability-grid article {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(29, 66, 58, 0.07);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(30, 67, 59, 0.045);
}

.home-capability-grid article > span {
  display: block;
  margin-bottom: 9px;
  color: #51a996;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.home-capability-grid h3 {
  margin: 0 0 5px;
  color: #203d37;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
}

.home-capability-grid p {
  margin: 0;
  color: #82908c;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 500;
}

.home-setup-screen {
  padding-top: 42px;
  background:
    radial-gradient(circle at 92% 17%, rgba(157, 232, 204, 0.34), transparent 28%),
    linear-gradient(180deg, #f4fbf7 0%, #f8fbf9 52%, #ffffff 100%);
}

.home-header-status {
  margin-left: auto;
  color: #6f9689;
  font-size: 10px;
  font-weight: 750;
}

.home-brand-icon-soft {
  display: grid;
  place-items: center;
  background: #dff7ec;
  color: #4dba8e;
}

.home-brand-icon-soft svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.1;
}

.home-setup-hero {
  position: relative;
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  overflow: hidden;
  margin: 10px 0 24px;
  padding: 24px 14px 22px 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, #e1f8ec 0%, #f4fbf4 55%, #f9fdf7 100%);
  box-shadow: 0 18px 40px rgba(61, 150, 114, 0.11);
}

.home-setup-hero.is-ready {
  background: linear-gradient(135deg, #dff7ec 0%, #edf9f4 58%, #f9fdf7 100%);
}

.home-plan-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin: -8px 0 22px;
  padding: 11px 13px;
  border: 1px solid rgba(76, 169, 137, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a4639;
  text-align: left;
  box-shadow: 0 7px 18px rgba(36, 93, 80, 0.06);
}

.home-plan-entry:hover { border-color: rgba(76, 169, 137, 0.42); }

.home-plan-entry-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e1f6eb;
  color: #3f9f78;
}

.home-plan-entry-icon svg { width: 18px; height: 18px; }

.home-plan-entry-copy { min-width: 0; display: grid; gap: 3px; }
.home-plan-entry-copy strong { font-size: 13px; line-height: 1.25; }
.home-plan-entry-copy small { color: #7b938b; font-size: 11px; line-height: 1.3; }
.home-plan-entry > svg { width: 16px; color: #8eaaa0; }

.plan-screen { padding: max(12px, env(safe-area-inset-top)) 14px 94px; background: #f7faf8; }

.plan-header {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.plan-header > div { min-width: 0; }
.plan-header span { display: block; color: #759187; font-size: 10px; line-height: 1.2; }
.plan-header h1 { margin: 3px 0 0; color: #183e33; font-size: 18px; line-height: 1.2; }
.icon-button { width: 32px; height: 32px; border: 1px solid #d6ebe2; border-radius: 8px; background: #fff; color: #4b7165; font-size: 24px; line-height: 1; }
.plan-tier-badge { padding: 5px 8px; border-radius: 8px; background: #e5f6ec; color: #3d946f !important; font-weight: 750; }

.plan-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e2f7eb 0%, #f6fbf7 100%);
}

.plan-kicker, .section-kicker { color: #4a9d7d; font-size: 10px; font-weight: 800; }
.plan-hero h2 { margin: 8px 0 6px; color: #1a4d3a; font-size: 20px; line-height: 1.2; }
.plan-hero p { margin: 0; color: #6f897f; font-size: 11px; line-height: 1.45; }
.plan-hero-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: #4cad80; box-shadow: 0 9px 18px rgba(50, 135, 96, .10); }
.plan-hero-icon svg { width: 27px; height: 27px; }

.plan-day-strip { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
.plan-day-strip::-webkit-scrollbar { display: none; }
.plan-day { flex: 0 0 42px; min-height: 45px; display: grid; place-content: center; gap: 1px; border: 1px solid #dcece5; border-radius: 8px; background: #fff; color: #81968e; font-size: 9px; line-height: 1; }
.plan-day strong { color: #456f60; font-size: 15px; line-height: 1; }
.plan-day.active { border-color: #65c59c; background: #e5f7ed; color: #3a9c71; }
.plan-day.active strong { color: #19845a; }

.recipe-section { margin-top: 8px; }
.recipe-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 2px 9px; }
.recipe-section-head h2 { margin: 4px 0 0; color: #1d4036; font-size: 16px; line-height: 1.2; }
.recipe-section-head > span { color: #8ca19a; font-size: 10px; }
.recipe-list { display: grid; gap: 9px; }
.recipe-card { padding: 12px; border: 1px solid rgba(29, 66, 58, .07); border-radius: 8px; background: #fff; box-shadow: 0 5px 16px rgba(30, 67, 59, .045); }
.recipe-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recipe-card h3 { margin: 0 0 4px; color: #23483c; font-size: 14px; line-height: 1.25; }
.recipe-card-top p { margin: 0; color: #83958e; font-size: 10px; line-height: 1.45; }
.recipe-card-dot { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 8px; background: #edf8f1; color: #5bad87; }
.recipe-card-dot svg { width: 15px; height: 15px; }
.recipe-value { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid #eff5f1; color: #648177; font-size: 11px; line-height: 1.5; }
.recipe-card details { margin-top: 8px; color: #678279; font-size: 11px; }
.recipe-card summary { cursor: pointer; color: #4b9b7a; font-weight: 750; }
.recipe-card ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.special-recipe-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid #dcece5; }
.plan-loading, .plan-error { margin-top: 16px; padding: 14px; border-radius: 8px; background: #fff; color: #718a80; font-size: 12px; text-align: center; }
.plan-error { color: #a65e55; background: #fff5f2; }

.home-setup-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -48px;
  top: -62px;
  border-radius: 50%;
  background: rgba(139, 220, 176, 0.25);
  filter: blur(2px);
}

.home-setup-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-setup-kicker,
.setup-kicker {
  color: #41a77e;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.home-setup-copy h2 {
  max-width: 205px;
  margin: 13px 0 11px;
  color: #174f38;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.home-setup-copy p {
  max-width: 215px;
  margin: 0 0 20px;
  color: #648274;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 600;
}

.home-main-action {
  min-width: 138px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
}

.home-main-action svg {
  width: 16px;
  height: 16px;
}

.home-secondary-action {
  display: block;
  margin-top: 11px;
  padding: 0;
  background: transparent;
  color: #51937a;
  font-size: 11px;
  font-weight: 800;
}

.home-setup-avatar-wrap {
  position: relative;
  width: 126px;
  height: 170px;
  align-self: end;
}

.home-setup-avatar-wrap img {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: -9px;
  width: 150px;
  height: 174px;
  object-fit: cover;
  object-position: 50% 35%;
  filter: drop-shadow(0 16px 14px rgba(48, 118, 89, 0.15));
  animation: companion-breathe 3.2s ease-in-out infinite;
}

.home-setup-orbit {
  position: absolute;
  border: 1px solid rgba(86, 185, 137, 0.25);
  border-radius: 50%;
}

.orbit-one {
  width: 116px;
  height: 116px;
  right: -4px;
  top: 26px;
}

.orbit-two {
  width: 82px;
  height: 82px;
  right: 15px;
  top: 43px;
  background: rgba(255, 255, 255, 0.25);
}

.home-avatar-badge {
  position: absolute;
  z-index: 3;
  right: 3px;
  top: 17px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #effaf4;
  border-radius: 50%;
  background: #74c995;
  color: #ffffff;
  box-shadow: 0 7px 15px rgba(63, 143, 102, 0.18);
}

.home-avatar-badge svg {
  width: 15px;
  height: 15px;
}

.home-values {
  padding: 0 2px 12px;
}

.home-values .home-section-title {
  display: grid;
  justify-content: start;
  gap: 5px;
  margin-bottom: 12px;
}

.home-values .home-section-title span {
  color: #65a58d;
  font-size: 10px;
  font-weight: 800;
}

.home-values .home-section-title h2 {
  font-size: 18px;
}

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

.home-value-grid article {
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(48, 113, 83, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(45, 106, 78, 0.045);
}

.home-value-grid article svg {
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
  color: #5fbd8c;
  stroke-width: 1.9;
}

.home-value-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #24583f;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.home-value-grid p {
  margin: 0;
  color: #81948b;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 550;
}

.home-focus-strip {
  display: grid;
  gap: 9px;
  margin: 4px 2px 0;
  padding: 13px 14px;
  border-radius: 17px;
  background: rgba(229, 248, 238, 0.72);
}

.home-focus-strip > span {
  color: #6b927e;
  font-size: 10px;
  font-weight: 800;
}

.home-focus-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-focus-strip b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #397456;
  font-size: 10px;
  font-weight: 750;
}

.setup-screen {
  padding: max(12px, env(safe-area-inset-top)) 14px 112px;
  background: linear-gradient(180deg, #f2fbf7 0%, #f8fbf9 42%, #ffffff 100%);
}

.setup-header {
  margin-bottom: 11px;
}

.setup-header p {
  margin-bottom: 3px;
  font-size: 10px;
  color: #72a18f;
}

.setup-header h1 {
  font-size: 16px;
}

.setup-progress {
  height: 6px;
  margin-bottom: 18px;
}

.agent-setup-intro {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 20px 32px;
  border-radius: 25px;
  background: linear-gradient(145deg, #e4f8ed, #f9fdf9 72%);
  text-align: center;
  box-shadow: 0 16px 34px rgba(62, 145, 105, 0.09);
}

.agent-setup-intro-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border: 7px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: #82cea0;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(72, 151, 101, 0.17);
}

.agent-setup-intro-icon svg {
  width: 29px;
  height: 29px;
}

.agent-setup-intro h2 {
  max-width: 280px;
  margin: 14px 0 13px;
  color: #21563d;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
}

.agent-setup-intro p {
  max-width: 280px;
  margin: 0;
  color: #6b887b;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
}

.setup-intro-points {
  display: flex;
  gap: 8px;
  margin-top: 27px;
}

.setup-intro-points span {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 70px;
  color: #578a70;
  font-size: 10px;
  font-weight: 750;
}

.setup-intro-points svg {
  width: 20px;
  height: 20px;
}

.setup-intro-compact {
  min-height: 570px;
}

.setup-intro-details {
  min-height: 570px;
  justify-content: flex-start;
  padding-top: 32px;
}

.setup-intro-details h2 {
  margin-top: 12px;
  margin-bottom: 9px;
  font-size: 23px;
}

.setup-intro-details p {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.55;
}

.setup-detail-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  text-align: left;
}

.setup-detail-grid article {
  min-height: 77px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 11px 9px;
  border: 1px solid rgba(87, 164, 113, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.setup-detail-grid article svg {
  width: 21px;
  height: 21px;
  color: #63b682;
  stroke-width: 1.8;
}

.setup-detail-grid strong,
.setup-detail-grid span {
  display: block;
}

.setup-detail-grid strong {
  margin-bottom: 4px;
  color: #2a6044;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
}

.setup-detail-grid span {
  color: #759486;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.setup-preview-avatar {
  width: 134px;
  height: 134px;
  overflow: hidden;
  margin-bottom: 25px;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #d6f2e1;
  box-shadow: 0 16px 28px rgba(64, 143, 101, 0.12);
}

.setup-preview-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 34%;
}

.setup-preview-lines {
  width: 180px;
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.setup-preview-lines span {
  height: 7px;
  border-radius: 999px;
  background: rgba(108, 185, 137, 0.2);
}

.setup-preview-lines span:nth-child(2) { width: 74%; }
.setup-preview-lines span:nth-child(3) { width: 54%; }

.setup-form {
  display: grid;
  gap: 13px;
}

.setup-form-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 2px 3px;
}

.setup-form-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ddf5e8;
  color: #4b9d73;
  font-size: 12px;
  font-weight: 900;
}

.setup-form-heading p {
  margin: 0 0 3px;
  color: #6da086;
  font-size: 12px;
  font-weight: 800;
}

.setup-form-heading h2 {
  margin: 0;
  color: #1d4734;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.setup-input-label,
.setup-choice-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(39, 96, 67, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  color: #527a65;
  font-size: 13px;
  font-weight: 800;
}

.setup-card-label {
  display: block;
  padding: 0;
  color: #527a65;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.setup-basic-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(39, 96, 67, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
}

.setup-basic-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.setup-basic-card-title span {
  color: #527a65;
  font-size: 13px;
  font-weight: 800;
}

.setup-basic-card-title small {
  color: #91a59b;
  font-size: 11px;
  font-weight: 600;
}

.setup-basic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-basic-name {
  min-width: 0;
  grid-column: 1 / -1;
}

.setup-basic-fields label {
  display: grid;
  gap: 6px;
  color: #6f8b7c;
  font-size: 12px;
  font-weight: 750;
}

.setup-basic-fields input,
.setup-basic-fields select {
  width: 100%;
  min-height: 39px;
  border: 1px solid rgba(26, 45, 40, 0.08);
  border-radius: 12px;
  background: #f7fbf8;
  color: #264b39;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.setup-input-label input,
.setup-input-label textarea {
  min-height: 41px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbf8;
  font-size: 14px;
}

.setup-choice-group legend {
  padding: 0;
  color: #527a65;
  font-size: 13px;
  font-weight: 800;
}

.setup-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.setup-choice {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #e0eee7;
  border-radius: 999px;
  background: #f8fbf9;
  color: #647d70;
  font-size: 13px;
  font-weight: 700;
}

.setup-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.setup-choice.active {
  border-color: #79c79a;
  background: #e5f7eb;
  color: #337451;
}

.setup-choice span {
  white-space: nowrap;
}

.setup-textarea-label textarea {
  min-height: 76px;
  resize: vertical;
}

.setup-actions {
  grid-template-columns: 0.72fr 1.28fr;
}

.profile-screen {
  padding: max(12px, env(safe-area-inset-top)) 14px 94px;
  background: #f7faf8;
}

.profile-header {
  min-height: 36px;
  margin-bottom: 14px;
}

.profile-header h1 {
  font-size: 17px;
}

.profile-overview,
.profile-section {
  border: 1px solid rgba(31, 72, 63, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 22px rgba(33, 83, 70, 0.05);
}

.profile-overview {
  margin-bottom: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #ecfbf5, #ffffff 72%);
}

.profile-overview-top,
.profile-section-title,
.profile-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-eyebrow,
.profile-section-title span {
  color: #58a68f;
  font-size: 11px;
  font-weight: 700;
}

.profile-overview h2 {
  margin: 4px 0 0;
  color: #1b3b34;
  font-size: 21px;
  line-height: 1.2;
}

.profile-overview p {
  margin: 10px 0 0;
  color: #718680;
  font-size: 12px;
  line-height: 1.45;
}

.profile-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6e2de;
}

.profile-state-dot.active {
  background: #48b68f;
  box-shadow: 0 0 0 5px rgba(72, 182, 143, 0.14);
}

.profile-section {
  margin-bottom: 12px;
  padding: 14px 16px;
}

.profile-agent-settings {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  border: 1px solid rgba(55, 142, 108, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #edf8f3, #ffffff 76%);
  padding: 12px 14px;
  color: #31574d;
  text-align: left;
  box-shadow: 0 9px 22px rgba(33, 83, 70, 0.05);
}

.profile-health-report-entry {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d8c987;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9e5, #ffffff 78%);
  color: #5f5228;
  text-align: left;
  box-shadow: 0 9px 22px rgba(91, 75, 30, 0.06);
}

.profile-health-report-entry > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4e8b9;
  color: #806a2d;
}

.profile-health-report-entry > span:first-child svg {
  width: 19px;
  height: 19px;
}

.profile-health-report-entry small,
.profile-health-report-entry strong {
  display: block;
}

.profile-health-report-entry small {
  color: #98865a;
  font-size: 11px;
}

.profile-health-report-entry strong {
  margin-top: 4px;
  color: #514827;
  font-size: 14px;
  line-height: 1.3;
}

.profile-health-report-entry > svg {
  width: 17px;
  height: 17px;
  color: #a69355;
}

.profile-agent-settings > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3e9;
  color: #3d9873;
}

.profile-agent-settings > span:first-child svg {
  width: 19px;
  height: 19px;
}

.profile-agent-settings small,
.profile-agent-settings strong {
  display: block;
}

.profile-agent-settings small {
  color: #7b9088;
  font-size: 11px;
}

.profile-agent-settings strong {
  margin-top: 4px;
  overflow: hidden;
  color: #264c40;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-agent-settings > svg {
  width: 17px;
  height: 17px;
  color: #79a493;
}

.profile-section-title {
  margin-bottom: 12px;
}

.profile-section-title h2 {
  margin: 0;
  color: #203f37;
  font-size: 15px;
  line-height: 1.25;
}

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

.profile-basic-grid div {
  border-radius: 12px;
  background: #f5faf8;
  padding: 11px 12px;
}

.profile-basic-grid small,
.profile-module-row small {
  display: block;
  color: #8b9d98;
  font-size: 11px;
}

.profile-basic-grid strong {
  display: block;
  margin-top: 5px;
  color: #25473e;
  font-size: 14px;
}

.profile-module-row {
  min-height: 52px;
  border-top: 1px solid #edf3f0;
}

.profile-module-row:first-of-type {
  border-top: 0;
}

.profile-module-row strong {
  display: block;
  color: #31574d;
  font-size: 13px;
}

.profile-module-row small {
  margin-top: 3px;
}

.profile-module-row > span {
  flex: 0 0 auto;
  color: #8b9d98;
  font-size: 11px;
}

.app-tabbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 12;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(31, 72, 63, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(32, 77, 66, 0.07);
  backdrop-filter: blur(18px);
}

.tab-item {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 6px 0 5px;
  background: transparent;
  color: #8a9894;
}

.tab-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.tab-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  padding: 0 3px;
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-item.active {
  color: #43aa94;
}

.tab-item.xiaoqing {
  padding-top: 28px;
  color: #347d6f;
}

.tab-item.xiaoqing.active .xiaoqing-icon {
  box-shadow:
    0 0 0 2px rgba(84, 190, 169, 0.2),
    0 7px 18px rgba(47, 136, 118, 0.22);
}

.xiaoqing-icon {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #eaf8f3;
  box-shadow: 0 7px 18px rgba(47, 136, 118, 0.2);
  transform: translateX(-50%);
}

.xiaoqing-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.17);
}

/* Learning center */
.study-frame,
.study-screen {
  background: #f6f8f4;
}

.study-screen {
  padding: max(14px, env(safe-area-inset-top)) 14px 92px;
  color: #26332d;
}

.study-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.study-header span,
.study-header h1 {
  display: block;
}

.study-header > div > span {
  margin-bottom: 4px;
  color: #718078;
  font-size: 11px;
  font-weight: 750;
}

.study-header h1 {
  margin: 0;
  color: #263b31;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.study-header-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #e4f1e7;
  box-shadow: 0 4px 12px rgba(61, 111, 78, 0.1);
}

.study-header-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.study-live-board {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e0e5df;
  border-radius: 8px;
  background: #f0f3ef;
}

.study-live-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 14px;
  border: 1px solid #dfe5df;
  border-radius: 8px;
  background: #ffffff;
  color: #26332d;
  text-align: left;
}

.study-live-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.study-live-card.is-live {
  border-color: #ef9a63;
  background: #fffaf5;
}

.study-live-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
}

.study-live-label > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #579f32;
}

.is-live .study-live-label > i {
  background: #f36c2d;
  box-shadow: 0 0 0 4px rgba(243, 108, 45, 0.1);
}

.study-live-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
}

.study-live-copy {
  min-width: 0;
  max-width: 64%;
}

.study-live-copy strong,
.study-live-copy small {
  display: block;
}

.study-live-copy strong {
  color: #26332d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.study-live-copy small {
  margin-top: 6px;
  color: #7e8983;
  font-size: 11px;
  line-height: 1.35;
}

.study-live-status {
  display: inline-flex;
  min-width: 92px;
  min-height: 35px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  border-radius: 18px;
  background: #579f32;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.is-live .study-live-status { background: #f36c2d; }
.study-live-status svg { width: 15px; height: 15px; }

.study-replay-section {
  margin-top: 20px;
}

.study-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  padding: 0 2px;
}

.study-section-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.study-section-heading > div > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #579f32;
}

.study-section-heading svg { width: 18px; height: 18px; }
.study-section-heading h2 { margin: 0; font-size: 17px; font-weight: 900; }
.study-section-heading small { color: #939e98; font-size: 10px; }

.study-replay-list {
  border-top: 1px solid #e6eae6;
}

.study-replay-row {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid #e6eae6;
  background: transparent;
  color: #26332d;
  text-align: left;
}

.study-replay-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #eaf3e8;
  color: #579f32;
}

.study-replay-icon svg { width: 18px; height: 18px; }
.study-replay-copy { min-width: 0; flex: 1; }
.study-replay-copy strong, .study-replay-copy small { display: block; }
.study-replay-copy strong { font-size: 14px; line-height: 1.35; font-weight: 850; }
.study-replay-copy small { margin-top: 5px; color: #929d97; font-size: 10.5px; }

.study-replay-action {
  display: inline-flex;
  min-width: 58px;
  min-height: 31px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dfe7dd;
  border-radius: 7px;
  background: #ffffff;
  color: #579f32;
  font-size: 11px;
  font-weight: 850;
}

.study-replay-action svg { width: 12px; height: 12px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .home-ai-entry img {
    animation: none;
  }
}

.top-header,
.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.logo-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e5faf4;
  color: #24776d;
  box-shadow: 0 8px 18px rgba(54, 188, 160, 0.18);
  font-weight: 950;
}

.muted-label,
.flow-header p,
.section-heading p {
  margin: 0 0 3px;
  color: #6b7f7a;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
}

.top-header h1,
.flow-header h1 {
  margin: 0;
  color: #17211f;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.top-header h1 {
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-button,
.flow-header button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 204, 187, 0.32);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  color: #246c63;
  box-shadow: 0 8px 18px rgba(32, 77, 66, 0.07);
  font-size: 13px;
  font-weight: 850;
}

.mini-button {
  padding: 0 12px;
}

.flow-header button,
.flow-header-spacer {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 14px;
}

.flow-header button {
  color: #4d625d;
  box-shadow: none;
  font-size: 25px;
  line-height: 1;
}

.flow-header div {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.hero-card,
.assessment-hero {
  position: relative;
  overflow: hidden;
  padding: 17px 16px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 16%, rgba(114, 220, 205, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(189, 255, 240, 0.98) 0%, rgba(243, 255, 250, 0.98) 68%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 18px 40px rgba(54, 179, 152, 0.13);
}

.secretary-hero {
  min-height: 284px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.62);
  color: #24776d;
  box-shadow: 0 10px 24px rgba(54, 188, 160, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.hero-orbit span:nth-child(1) {
  right: 18px;
  top: 16px;
}

.hero-orbit span:nth-child(2) {
  right: 84px;
  bottom: 20px;
}

.hero-orbit span:nth-child(3) {
  right: 20px;
  bottom: 84px;
}

.brand-chip,
.assessment-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #24776d;
  font-size: 12px;
  font-weight: 850;
}

.hero-card h2,
.assessment-hero h2 {
  max-width: 302px;
  margin: 22px 0 12px;
  color: #14241f;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 950;
}

.assessment-hero h2 {
  font-size: 20px;
}

.hero-card p,
.assessment-hero p {
  max-width: 310px;
  margin: 0 0 16px;
  color: rgba(64, 90, 84, 0.78);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 650;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
}

.primary-action {
  background: #72dccd;
  color: #173c36;
  box-shadow: 0 10px 22px rgba(61, 197, 168, 0.16);
}

.secondary-action {
  border: 1px solid rgba(84, 204, 187, 0.42);
  background: rgba(255, 255, 255, 0.78);
  color: #24776d;
}

.section-card,
.assessment-card,
.profile-panel,
.chat-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(26, 45, 40, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 26px rgba(33, 72, 62, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.compact-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  color: #17211f;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.capability-list {
  display: grid;
  gap: 9px;
}

.capability-list div {
  min-height: 62px;
  display: grid;
  gap: 5px;
  padding: 12px 12px 12px 14px;
  border-radius: 17px;
  background: #f6fbf8;
}

.capability-list strong {
  color: #17211f;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.capability-list span {
  color: #7f918c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.quiet-card {
  background: rgba(255, 255, 255, 0.72);
}

.home-promise p {
  margin: 0;
  color: #637772;
  font-size: 13px;
  line-height: 1.62;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0ec;
  margin-bottom: 14px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #72dccd;
  transition: width 0.22s ease;
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-card {
  display: grid;
  gap: 14px;
}

.question-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.question-no {
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e6faf4;
  color: #24776d;
  font-size: 14px;
  font-weight: 900;
}

.question-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #24776d;
  font-size: 12px;
  font-weight: 850;
}

.question-head h2 {
  margin: 0;
  color: #17211f;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 45, 40, 0.08);
  border-radius: 16px;
  background: #f8faf8;
  color: #17211f;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 750;
}

.input-field {
  position: relative;
  display: block;
}

.input-field input {
  padding-right: 54px;
}

.input-field span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f918c;
  font-size: 12px;
  font-weight: 850;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(26, 45, 40, 0.06);
  border-radius: 16px;
  background: #f8faf8;
  color: #17211f;
  text-align: left;
}

.option-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #173c36;
  box-shadow: inset 0 0 0 1px rgba(26, 45, 40, 0.08);
  font-size: 13px;
  font-weight: 950;
}

.option-button.active {
  border-color: rgba(84, 204, 187, 0.45);
  background: #effbf8;
}

.option-button.active span {
  background: #72dccd;
  box-shadow: none;
}

.option-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
}

.form-error {
  display: none;
  margin-top: 12px;
  color: #9f1d1d;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 15px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
}

.form-error.show {
  display: block;
}

.bottom-actions {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 10px;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(26, 45, 40, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 26px rgba(32, 77, 66, 0.08);
}

.bottom-actions .primary-action,
.bottom-actions .secondary-action {
  min-height: 46px;
}

.agent-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top)) 14px 14px;
}

.agent-screen.has-service-context {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.agent-service-context {
  position: relative;
  z-index: 6;
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid #cfe4da;
  border-radius: 8px;
  background: rgba(247, 252, 249, 0.98);
  box-shadow: 0 6px 16px rgba(37, 95, 76, 0.08);
}

.agent-service-context summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.agent-service-context summary::-webkit-details-marker { display: none; }

.agent-service-context-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #e1f2e9;
  color: #3f8f70;
}

.agent-service-context-icon svg { width: 18px; height: 18px; }

.agent-service-context-summary {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.agent-service-context-summary small {
  color: #5f8f7d;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.agent-service-context-summary strong {
  overflow: hidden;
  color: #244f40;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-service-context-summary em {
  overflow: hidden;
  color: #758a82;
  font-size: 10.5px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-service-context-chevron {
  width: 17px;
  height: 17px;
  color: #789187;
  transition: transform 180ms ease;
}

.agent-service-context[open] .agent-service-context-chevron { transform: rotate(180deg); }

.agent-service-context-body {
  max-height: min(48vh, 390px);
  overflow-y: auto;
  padding: 2px 12px 12px;
  border-top: 1px solid #e1ece6;
}

.agent-service-context-body section { padding: 11px 0 9px; }
.agent-service-context-body section + section { border-top: 1px solid #e5eee9; }

.agent-service-context-body h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #2f6955;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
}

.agent-service-context-body h2 svg { width: 14px; height: 14px; }
.agent-service-context-body dl { display: grid; gap: 7px; margin: 0; }

.agent-service-context-body dl > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.agent-service-context-body dt {
  color: #82938c;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 700;
}

.agent-service-context-body dd {
  margin: 0;
  color: #385a4d;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.agent-service-context-body dl > div.is-stacked { grid-template-columns: 1fr; gap: 3px; }

.agent-service-context-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.agent-service-context-actions button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cfe4da;
  border-radius: 8px;
  background: #ffffff;
  color: #34775e;
  font-size: 11px;
  font-weight: 800;
}

.agent-service-context-actions button svg { width: 14px; height: 14px; }

.agent-screen .flow-header {
  min-height: 36px;
  margin-bottom: 8px;
}

.agent-screen .flow-header button,
.agent-screen .flow-header-spacer {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.agent-screen .flow-header h1 {
  font-size: 17px;
}

.profile-panel {
  margin-top: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(114, 220, 205, 0.24), transparent 32%),
    rgba(255, 255, 255, 0.93);
}

.compact-profile {
  padding: 12px;
}

.profile-empty {
  background:
    radial-gradient(circle at 88% 12%, rgba(114, 220, 205, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.72);
}

.profile-panel span {
  color: #24776d;
  font-size: 12px;
  font-weight: 850;
}

.profile-panel h2 {
  margin: 6px 0 0;
  color: #17211f;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-tags span {
  border-radius: 999px;
  background: #effbf8;
  color: #24776d;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.chat-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.messages {
  overflow: auto;
  padding: 14px;
}

.profile-activation {
  margin: 4px 42px 16px 43px;
  border: 1px solid rgba(54, 155, 136, 0.18);
  border-radius: 18px;
  background: #f4fbf8;
  padding: 14px;
  color: #1a3b34;
}

.profile-activation-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 13px;
}

.profile-activation-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #c9f1e2;
  color: #258a71;
  font-size: 14px;
}

.profile-activation-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.profile-activation-head p {
  margin: 3px 0 0;
  color: #6c8780;
  font-size: 12px;
  line-height: 1.35;
}

.profile-age-field,
.profile-gender-field {
  display: block;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  color: #4d6962;
  font-size: 12px;
}

.profile-age-input {
  display: flex;
  align-items: center;
  height: 38px;
  margin-top: 6px;
  border: 1px solid #dcece6;
  border-radius: 11px;
  background: #ffffff;
  overflow: hidden;
}

.profile-age-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 11px;
  color: #1a3b34;
  font: inherit;
  font-size: 14px;
}

.profile-age-input em {
  padding-right: 11px;
  color: #88a099;
  font-style: normal;
}

.profile-gender-field legend {
  margin-bottom: 6px;
}

.profile-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.profile-choice {
  position: relative;
  cursor: pointer;
}

.profile-choice input {
  position: absolute;
  opacity: 0;
}

.profile-choice span {
  display: block;
  border: 1px solid #dcece6;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 4px;
  color: #55726b;
  font-size: 12px;
  text-align: center;
}

.profile-choice input:checked + span {
  border-color: #55b999;
  background: #e5f8ef;
  color: #18765e;
}

.profile-activation-error {
  min-height: 15px;
  margin: -3px 0 5px;
  color: #c44e57;
  font-size: 11px;
}

.profile-activation > button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #46b58e;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}

.message-row.user {
  flex-direction: row-reverse;
}

.message-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #eaf8f3;
  box-shadow: 0 4px 12px rgba(36, 93, 80, 0.12);
}

.assistant-avatar {
  object-position: 50% 26%;
  transform: scale(1.04);
}

.user-avatar {
  object-position: center;
}

.message-bubble {
  max-width: calc(100% - 78px);
  border: 1px solid rgba(26, 45, 40, 0.06);
  border-radius: 18px 18px 18px 6px;
  background: #f8faf8;
  padding: 12px 13px;
  color: #17211f;
}

.message-row.user .message-bubble {
  border-radius: 18px 18px 6px 18px;
  background: #72dccd;
  color: #173c36;
}

.message-row.urgent .message-bubble {
  border-color: #fecdd3;
  background: #fff1f2;
}

.profile-candidate {
  margin-top: 12px;
  border-top: 1px solid rgba(36, 119, 109, 0.12);
  padding-top: 10px;
}

.profile-candidate-title {
  color: #24776d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.profile-candidate-value {
  margin-top: 4px;
  color: #31574d;
  font-size: 12px;
  line-height: 1.4;
}

.profile-candidate-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.profile-candidate-actions button {
  min-height: 30px;
  border: 1px solid #7ac8ae;
  border-radius: 9px;
  background: #ffffff;
  padding: 0 10px;
  color: #24776d;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.profile-candidate-actions button:first-child {
  border-color: #52b794;
  background: #e4f8ef;
}

.profile-candidate.handled {
  opacity: 0.72;
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.setup-memory-card {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(69, 158, 126, 0.18);
}

.setup-memory-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2f8b69;
  font-size: 12px;
  font-weight: 850;
}

.setup-memory-head svg {
  width: 16px;
  height: 16px;
}

.setup-memory-card p {
  margin-top: 6px;
  color: #426a5b;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.setup-memory-card small {
  display: block;
  margin-top: 6px;
  color: #6c8d80;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
}

.setup-memory-preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.setup-memory-preferences span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f8f0;
  color: #4d8e73;
  font-size: 10px;
  font-weight: 750;
}

.chat-tools {
  min-width: 0;
  overflow: hidden;
  padding: 5px 14px 2px;
  border-top: 0;
  background: transparent;
}

.chat-tool-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.chat-tool-grid::-webkit-scrollbar {
  display: none;
}

.chat-tool-grid button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(62, 157, 137, 0.1);
  border-radius: 8px;
  background: #f5fbf8;
  color: #327b6d;
  box-shadow: 0 4px 12px rgba(39, 102, 88, 0.08);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.chat-tool-grid button svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.composer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 68px;
  gap: 8px;
  padding: 5px 14px 10px;
  background: #ffffff;
  border-top: 0;
}

.composer-field {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(26, 45, 40, 0.08);
  border-radius: 14px;
  background: #f8faf8;
}

.composer-field input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.report-upload-state {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 14px 0;
  color: #5b9083;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 700;
}

.report-upload-state svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.composer-attach {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dcece6;
  border-radius: 14px;
  background: #f8faf8;
  color: #4f9e8c;
}

.composer-attach svg {
  width: 17px;
  height: 17px;
}

.pending-images {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  overflow-x: auto;
  padding: 7px 14px 3px;
  scrollbar-width: none;
  background: #ffffff;
}

.pending-images::-webkit-scrollbar {
  display: none;
}

.pending-image {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: visible;
}

.pending-image img {
  width: 54px;
  height: 54px;
  display: block;
  border: 1px solid #dcece6;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f8f5;
}

.pending-image button {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #5ba997;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.pending-image-count {
  flex: 0 0 auto;
  color: #78928a;
  font-size: 11px;
  font-weight: 700;
}

.composer-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.composer input {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
}

.composer-send {
  min-height: 42px;
  border-radius: 14px;
  background: #72dccd;
  color: #173c36;
  font-weight: 900;
}

.message-attachment {
  display: block;
  width: min(100%, 230px);
  max-height: 280px;
  margin-bottom: 9px;
  border-radius: 11px;
  object-fit: contain;
  background: #ffffff;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.message-attachments .message-attachment {
  margin-bottom: 0;
}

.message-attachment-placeholder {
  margin-bottom: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
  color: #397c6d;
  font-size: 11px;
  line-height: 1.35;
}

.thinking-live,
.thinking-panel {
  border-radius: 0;
  background: transparent;
  color: #438276;
  font-size: 13px;
  line-height: 1.6;
}

.thinking-live {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 5px 0 7px;
  font-weight: 750;
}

.thinking-row {
  align-items: flex-start;
}

.thinking-content {
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 44px);
  padding-top: 4px;
}

.thinking-steps {
  max-height: 104px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding: 3px 0 5px;
  color: #71948a;
  font-size: 12px;
  line-height: 1.65;
  scrollbar-width: thin;
}

.thinking-steps div::before {
  content: "·";
  margin-right: 5px;
  color: #55aa98;
  font-weight: 900;
}

.thinking-dots {
  display: inline-flex;
  gap: 3px;
}

.thinking-dots b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5bb29f;
  animation: thinking-pulse 1.1s ease-in-out infinite;
}

.thinking-dots b:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dots b:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinking-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.thinking-panel {
  max-height: 126px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 11px 12px;
  scrollbar-width: thin;
}

.thinking-complete {
  margin: 2px 0 10px;
  color: #6f9389;
  font-size: 12px;
  line-height: 1.55;
}

.thinking-complete summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
  color: #6a9186;
}

.thinking-complete summary::-webkit-details-marker {
  display: none;
}

.thinking-complete summary::before {
  content: "⌄";
  display: inline-block;
  margin-right: 4px;
  color: #4d9d89;
  transition: transform 0.16s ease;
}

.thinking-complete[open] summary::before {
  transform: rotate(180deg);
}

.thinking-complete .thinking-panel {
  max-width: 100%;
  margin-top: 9px;
  margin-bottom: 0;
  border-radius: 10px;
  background: #f0faf6;
  padding: 10px 11px;
}

.assistant-message-stack {
  min-width: 0;
  max-width: calc(100% - 44px);
}

.assistant-message-stack .message-bubble {
  max-width: 100%;
}

.service-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e0ebe6;
}

.service-quick-replies button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c9e3d7;
  border-radius: 7px;
  background: #eef8f3;
  color: #376957;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 800;
}

.service-quick-replies button:active {
  background: #dcefe6;
  transform: translateY(1px);
}

.service-quick-reply-selected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #6f8a7e;
  font-size: 10.5px;
  font-weight: 750;
}

.service-quick-reply-selected svg {
  width: 13px;
  height: 13px;
  color: #58a17d;
}

.replying-row {
  align-items: center;
}

.replying-indicator {
  min-width: 48px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e1ebe6;
  border-radius: 8px;
  background: #f7faf8;
}

.replying-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70a38d;
  animation: thinking-pulse 1.1s ease-in-out infinite;
}

.replying-indicator i:nth-child(2) { animation-delay: 0.15s; }
.replying-indicator i:nth-child(3) { animation-delay: 0.3s; }

.thinking-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #2f7569;
  font-size: 13px;
  font-weight: 800;
}

.thinking-panel-title small {
  color: #85a69d;
  font-size: 11px;
  font-weight: 600;
}

.thinking-panel-body {
  display: grid;
  gap: 6px;
  color: #5d8178;
  font-size: 12px;
  line-height: 1.6;
}

.thinking-panel-body div::before {
  content: "·";
  margin-right: 5px;
  color: #55aa98;
  font-weight: 900;
}

.report-data {
  margin-top: 10px;
  border-top: 1px solid rgba(36, 119, 109, 0.12);
  padding-top: 9px;
}

.report-data-title {
  margin-bottom: 6px;
  color: #2f7569;
  font-size: 12px;
  font-weight: 800;
}

.report-data-group {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.report-data-label {
  color: #bd6a4f;
  font-size: 10px;
  font-weight: 800;
}

.report-data-label.normal {
  color: #4f9b7b;
}

.report-data-item {
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.report-data-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.report-data-item strong {
  color: #2f4f48;
  font-size: 11px;
}

.report-data-item span,
.report-data-item small,
.report-data-item p {
  color: #6d8880;
  font-size: 10px;
  line-height: 1.4;
}

.report-data-item small {
  display: block;
  margin-top: 2px;
}

.report-data-item p {
  margin: 3px 0 0;
}

.report-data-limitations {
  margin-top: 8px;
  color: #8a8271;
  font-size: 10px;
  line-height: 1.4;
}

.chat-shortcuts {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(26, 45, 40, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(33, 72, 62, 0.05);
}

.shortcut-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shortcut-head span {
  color: #17211f;
  font-size: 15px;
  font-weight: 900;
}

.shortcut-head small {
  color: #7f918c;
  font-size: 11px;
  font-weight: 750;
}

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

.shortcut-grid button {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 17px;
  background: #f6fbf8;
  color: #17211f;
  text-align: left;
}

.shortcut-grid strong {
  color: #24776d;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.shortcut-grid span {
  color: #7f918c;
  font-size: 11px;
  line-height: 1.24;
  font-weight: 700;
}

@media (max-width: 460px) {
  #app {
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .setup-basic-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-basic-name {
    grid-column: 1 / -1;
  }

  .setup-detail-grid article {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
  }
}

/* Execution reports */
.execution-report-frame {
  overflow: hidden;
  background: #eef8f4;
}

.execution-report-screen {
  height: 100%;
  min-height: 0;
  background: #f4f8f6;
}

.execution-report-header {
  height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid #dce9e3;
  background: rgba(255, 255, 255, 0.94);
}

.execution-report-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d0e5dc;
  border-radius: 8px;
  background: #f8fcfa;
  color: #315f50;
}

.execution-report-header button svg {
  width: 18px;
  height: 18px;
}

.execution-report-header h1 {
  margin: 0;
  color: #213e35;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
  font-weight: 900;
}

.execution-report-scroll {
  height: calc(100% - 54px);
  overflow-y: auto;
  padding: 12px 12px 28px;
  scrollbar-width: thin;
}

.execution-report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid #d9e7e1;
  border-radius: 8px;
  background: #e9f1ed;
}

.execution-report-tabs button {
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  color: #6d837a;
  font-size: 11px;
  font-weight: 850;
}

.execution-report-tabs button.active {
  background: #ffffff;
  color: #2c6d59;
  box-shadow: 0 3px 9px rgba(42, 89, 73, 0.08);
}

.execution-report-hero {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 16px;
  border-radius: 8px;
  background: #286b58;
  color: #ffffff;
}

.execution-report-hero::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.execution-report-hero > * {
  position: relative;
  z-index: 1;
}

.execution-report-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #c9e8dd;
  font-size: 10px;
  font-weight: 800;
}

.execution-report-hero-top small {
  color: #b8d8cd;
  font-size: 9px;
}

.execution-report-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.execution-report-score > strong {
  font-size: 45px;
  line-height: 0.95;
  font-weight: 950;
}

.execution-report-score > span {
  display: grid;
  gap: 3px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.execution-report-score small {
  color: #bcd9cf;
  font-size: 8.5px;
  font-weight: 650;
}

.execution-report-hero h2 {
  margin: 14px 0 5px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.execution-report-hero > p {
  margin: 0;
  color: #dcefe8;
  font-size: 10.5px;
  line-height: 1.65;
}

.execution-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #ffffff;
}

.execution-report-metrics > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 5px;
  text-align: center;
}

.execution-report-metrics > div + div {
  border-left: 1px solid #e3ece8;
}

.execution-report-metrics strong {
  color: #286b58;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
}

.execution-report-metrics small {
  color: #82948d;
  font-size: 8.5px;
  line-height: 1.25;
  font-weight: 700;
}

.execution-report-section {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #ffffff;
}

.execution-report-section > header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5eeea;
}

.execution-report-section > header > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e4f3ed;
  color: #439982;
  font-size: 9.5px;
  font-weight: 900;
}

.execution-report-section h2 {
  margin: 0;
  color: #27473d;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.execution-report-section header p {
  margin: 3px 0 0;
  color: #879790;
  font-size: 9px;
  line-height: 1.3;
}

.execution-meal-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
}

.execution-meal-list article + article {
  border-top: 1px solid #edf2ef;
}

.execution-meal-list article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.execution-meal-list article > span.good { background: #e5f4ed; color: #439982; }
.execution-meal-list article > span.watch { background: #fff2d9; color: #b37a21; }
.execution-meal-list article > span.muted { background: #eef2f0; color: #8a9993; }
.execution-meal-list svg { width: 16px; height: 16px; }
.execution-meal-list article > div { min-width: 0; }
.execution-meal-list small { color: #82958d; font-size: 9px; }
.execution-meal-list strong { display: block; margin-top: 2px; color: #2b4b40; font-size: 11.5px; }
.execution-meal-list p { margin: 4px 0 0; color: #71837c; font-size: 9.5px; line-height: 1.55; }

.execution-context-list article {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0;
}

.execution-context-list article + article { border-top: 1px solid #edf2ef; }
.execution-context-list article > span { color: #55a58c; font-size: 9px; font-weight: 900; }
.execution-context-list strong { color: #2d4d42; font-size: 11px; }
.execution-context-list p { margin: 4px 0 0; color: #6f827a; font-size: 9.5px; line-height: 1.6; }

.execution-observation-grid {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.execution-observation-grid article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 3px 8px;
  padding: 10px;
  border-radius: 7px;
  background: #f4f8f6;
}

.execution-observation-grid svg { grid-row: 1 / 3; width: 17px; height: 17px; color: #439982; }
.execution-observation-grid strong { color: #315146; font-size: 10.5px; }
.execution-observation-grid p { margin: 0; color: #74867f; font-size: 9.5px; line-height: 1.55; }

.execution-next-actions {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.execution-next-actions li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.execution-next-actions span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #439982;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.execution-next-actions p { margin: 2px 0 0; color: #3d5a50; font-size: 10px; line-height: 1.55; }

.execution-report-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  margin-top: 11px;
  padding: 11px;
  border-radius: 8px;
  background: #e9f1ed;
  color: #71827b;
}

.execution-report-note svg { width: 15px; height: 15px; }
.execution-report-note p { margin: 0; font-size: 8.5px; line-height: 1.55; }

@media (max-width: 360px) {
  .execution-report-scroll { padding-inline: 9px; }
  .execution-report-hero { padding: 14px; }
  .execution-report-metrics small { font-size: 8px; }
  .execution-report-options { width: 232px; }
}

/* Execution report v2: one continuous document, not nested cards. */
.execution-report-frame {
  background: #ffffff;
}

.execution-report-screen {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.execution-report-header {
  flex: 0 0 54px;
  position: relative;
  z-index: 3;
}

.execution-report-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  background: #ffffff;
}

.execution-report-hero {
  margin-top: 10px;
  padding: 18px 16px 16px;
  background: #2e6f5b;
}

.execution-report-hero h2 {
  max-width: 310px;
  margin: 18px 0 7px;
  font-size: 20px;
  line-height: 1.32;
}

.execution-report-hero > p {
  max-width: 330px;
  font-size: 10.5px;
  line-height: 1.72;
}

.execution-report-status {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #effaf6;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 800;
}

.execution-report-status svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #f2d88d;
}

.execution-report-metrics {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #dfe9e4;
  border-radius: 0;
}

.execution-report-metrics > div {
  padding: 14px 4px 13px;
}

.execution-report-metrics > div + div {
  border-left-color: #e8efec;
}

.execution-report-section {
  margin: 0;
  padding: 20px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.execution-report-section + .execution-report-section {
  margin-top: 10px;
  border-top: 1px solid #dfe9e4;
}

.execution-report-section > header {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 13px;
  border: 0;
}

.execution-report-section > header > span {
  width: auto;
  height: auto;
  display: block;
  padding-top: 2px;
  border-radius: 0;
  background: transparent;
  color: #58a88e;
  font-size: 9px;
  letter-spacing: 0;
}

.execution-report-section h2 {
  font-size: 15px;
}

.execution-report-section header p {
  margin-top: 4px;
  font-size: 9px;
}

.execution-timeline {
  position: relative;
  padding: 2px 0 0;
}

.execution-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 64px;
  width: 1px;
  background: #d9e9e2;
}

.execution-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 45px 28px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0 10px;
}

.execution-timeline time {
  padding-top: 5px;
  color: #81938c;
  font-size: 9px;
  font-weight: 750;
}

.execution-timeline article > span {
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #e4f3ed;
  color: #439982;
}

.execution-timeline article > span.watch { background: #fff0d5; color: #b77a1f; }
.execution-timeline article > span.muted { background: #edf1ef; color: #82918b; }
.execution-timeline svg { width: 12px; height: 12px; }
.execution-timeline strong { color: #2d4c41; font-size: 11px; }
.execution-timeline p { margin: 4px 0 0; color: #6f817a; font-size: 9.5px; line-height: 1.55; }

.execution-insight-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0;
}

.execution-insight-list article + article {
  border-top: 1px dashed #dbe7e2;
}

.execution-insight-list svg {
  width: 18px;
  height: 18px;
  color: #439982;
}

.execution-insight-list strong { color: #29493e; font-size: 11.5px; line-height: 1.45; }
.execution-insight-list p { margin: 5px 0 0; color: #62776f; font-size: 9.8px; line-height: 1.65; }
.execution-insight-list small { display: block; margin-top: 7px; color: #9a7b43; font-size: 8.5px; }

.execution-service-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.execution-service-list article + article { border-top: 1px solid #e7eeeb; }
.execution-service-list span { color: #439982; font-size: 9px; font-weight: 900; }
.execution-service-list p { margin: 0; color: #465f56; font-size: 10px; line-height: 1.6; }

.execution-week-chart {
  height: 142px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  padding: 9px 5px 0;
  border-bottom: 1px solid #dbe7e2;
}

.execution-week-chart > div {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px 20px;
  align-items: end;
  justify-items: center;
}

.execution-week-chart > div > span {
  width: 18px;
  height: 100%;
  display: flex;
  align-items: end;
  border-radius: 5px 5px 0 0;
  background: #edf4f1;
  overflow: hidden;
}

.execution-week-chart i {
  width: 100%;
  height: var(--bar);
  display: block;
  border-radius: 5px 5px 0 0;
  background: #65b69b;
}

.execution-week-chart strong { color: #35564b; font-size: 9px; }
.execution-week-chart small { color: #879891; font-size: 8.5px; }
.execution-chart-caption { margin: 10px 0 0; color: #73867e; font-size: 9px; line-height: 1.55; }

.execution-topic-chart {
  display: grid;
  gap: 12px;
  padding: 5px 0 3px;
}

.execution-topic-chart article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.execution-topic-chart strong { color: #345248; font-size: 10px; }
.execution-topic-chart small { color: #82948d; font-size: 8.5px; }
.execution-topic-chart article > span { height: 7px; display: block; overflow: hidden; border-radius: 2px; background: #edf3f0; }
.execution-topic-chart article > span i { width: var(--progress); height: 100%; display: block; border-radius: 2px; background: #62b097; }
.execution-topic-chart article:nth-child(2) > span i { background: #e0b35f; }
.execution-topic-chart article:nth-child(3) > span i { background: #7aa3c4; }
.execution-topic-chart article:nth-child(4) > span i { background: #9b8cbd; }

.execution-moment-line,
.execution-stage-path {
  position: relative;
  padding-left: 1px;
}

.execution-moment-line article,
.execution-stage-path article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.execution-moment-line article + article,
.execution-stage-path article + article { border-top: 1px solid #e7eeeb; }
.execution-moment-line time,
.execution-stage-path time { color: #54a187; font-size: 9px; font-weight: 900; }
.execution-moment-line strong,
.execution-stage-path strong { color: #304f44; font-size: 10.5px; }
.execution-moment-line p,
.execution-stage-path p { margin: 4px 0 0; color: #71837c; font-size: 9.3px; line-height: 1.55; }

.execution-service-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e2ebe7;
  border-left: 1px solid #e2ebe7;
}

.execution-service-summary article {
  min-height: 68px;
  padding: 12px;
  border-right: 1px solid #e2ebe7;
  border-bottom: 1px solid #e2ebe7;
}

.execution-service-summary strong { color: #2d785f; font-size: 17px; }
.execution-service-summary p { margin: 5px 0 0; color: #71827b; font-size: 9px; line-height: 1.45; }

.execution-portrait-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.execution-portrait-list article + article { border-top: 1px solid #e6eeea; }
.execution-portrait-list > article > span { color: #68ad96; font-size: 9px; font-weight: 900; }
.execution-portrait-list strong { color: #2e4f43; font-size: 10.5px; }
.execution-portrait-list p { margin: 4px 0 0; color: #6d8078; font-size: 9.5px; line-height: 1.6; }

.execution-stage-conclusion {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid #e3bd66;
  background: #f8f6ed;
}

.execution-stage-conclusion span { color: #9a7121; font-size: 9px; font-weight: 900; }
.execution-stage-conclusion p { margin: 7px 0 0; color: #455a52; font-size: 10.5px; line-height: 1.7; }

.execution-report-note {
  grid-template-columns: 18px minmax(0, 1fr);
  margin: 18px -12px 0;
  padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: #edf4f1;
}

.execution-report-note p { color: #526960; font-size: 9.5px; }
.execution-report-note small { grid-column: 2; color: #889991; font-size: 8px; line-height: 1.5; }

@media (max-width: 360px) {
  .execution-report-scroll { padding-inline: 10px; }
  .execution-report-note { margin-inline: -10px; }
  .execution-report-hero h2 { font-size: 18px; }
  .execution-week-chart { gap: 5px; }
}

/* Report readability and full-height scroll fixes. */
.execution-report-screen {
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
}

.execution-report-hero > p { font-size: 12px; line-height: 1.75; }
.execution-report-status { font-size: 10.5px; }
.execution-report-metrics strong { font-size: 16px; }
.execution-report-metrics small { font-size: 10px; line-height: 1.35; }
.execution-report-section header p { font-size: 10.5px; line-height: 1.45; }
.execution-timeline time { font-size: 10px; }
.execution-timeline strong { font-size: 13px; }
.execution-timeline p { font-size: 12px; line-height: 1.75; }
.execution-insight-list strong { font-size: 13px; line-height: 1.45; }
.execution-insight-list p { font-size: 12px; line-height: 1.75; }
.execution-insight-list small { font-size: 10px; line-height: 1.5; }
.execution-service-list span { font-size: 10.5px; }
.execution-service-list p { font-size: 12px; line-height: 1.75; }
.execution-week-chart strong { font-size: 10.5px; }
.execution-week-chart small { font-size: 10px; }
.execution-chart-caption { font-size: 11px; line-height: 1.65; }
.execution-topic-chart strong { font-size: 12px; }
.execution-topic-chart small { font-size: 10.5px; }
.execution-moment-line time,
.execution-stage-path time { font-size: 10.5px; }
.execution-moment-line strong,
.execution-stage-path strong { font-size: 13px; }
.execution-moment-line p,
.execution-stage-path p { font-size: 12px; line-height: 1.75; }
.execution-service-summary p { font-size: 11px; line-height: 1.55; }
.execution-portrait-list > article > span { font-size: 10px; }
.execution-portrait-list strong { font-size: 13px; }
.execution-portrait-list p { font-size: 12px; line-height: 1.75; }
.execution-stage-conclusion p { font-size: 12px; line-height: 1.75; }
.execution-report-note p { font-size: 11px; line-height: 1.65; }
.execution-report-note small { font-size: 9.5px; line-height: 1.55; }

/* Member intake: basic profile, health questionnaire and service schedule */
.creation-profile-measure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.creation-profile-measure-row > label {
  min-width: 0;
  border: 1px solid #dce9e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.creation-profile-measure-row > label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #587166;
  font-size: 12px;
  font-weight: 700;
}

.creation-measure-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  overflow: hidden;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  background: #f8faf8;
}

.creation-measure-input input {
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 9px;
  color: #294f42;
  font-size: 13px;
}

.creation-measure-input em {
  display: grid;
  place-items: center;
  border-left: 1px solid #dce7e2;
  background: #eef5f1;
  color: #678077;
  font-size: 11px;
  font-style: normal;
}

.guided-section-note {
  display: block;
  margin: 11px 0 3px;
  color: #6c847a;
  font-size: 11px;
  line-height: 1.5;
}

.service-schedule-row {
  align-items: flex-start;
}

.service-schedule-card {
  width: min(100%, 330px);
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(48, 103, 81, .08);
}

.service-schedule-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4c8c70;
  font-size: 11px;
  font-weight: 700;
}

.service-schedule-kicker svg {
  width: 15px;
  height: 15px;
}

.service-schedule-card h2 {
  margin: 8px 0 0;
  color: #294f42;
  font-size: 17px;
  line-height: 1.45;
}

.service-schedule-card > p {
  margin: 7px 0 13px;
  color: #61786f;
  font-size: 12px;
  line-height: 1.65;
}

.service-phone-field > span,
.service-meal-times legend {
  display: block;
  margin-bottom: 7px;
  color: #385c4f;
  font-size: 12px;
  font-weight: 700;
}

.service-phone-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7e5de;
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  padding: 0 11px;
  color: #294f42;
  font-size: 13px;
}

.service-phone-field input:focus {
  border-color: #6eaf91;
  box-shadow: 0 0 0 3px rgba(94, 151, 123, .1);
}

.service-meal-times {
  margin: 13px 0 0;
  border: 0;
  padding: 0;
}

.service-meal-times label {
  display: grid;
  grid-template-columns: 1fr 104px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-top: 1px solid #e4ece8;
}

.service-meal-times label > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3b5d50;
  font-size: 12.5px;
  font-weight: 700;
}

.service-meal-times label svg {
  width: 16px;
  height: 16px;
  color: #65a285;
}

.service-meal-times input {
  height: 34px;
  border: 1px solid #d9e6df;
  border-radius: 7px;
  background: #f6faf7;
  padding: 0 7px;
  color: #315448;
  font: inherit;
}

.service-schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  border-radius: 8px;
  background: #eef6f1;
  padding: 9px;
  color: #688077;
  font-size: 10px;
  line-height: 1.5;
}

.service-schedule-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Yesterday service review */
.yesterday-review-card {
  border-color: #d8e6df;
}

.yesterday-review-card.is-none {
  border-left: 3px solid #c89a55;
}

.yesterday-review-card.is-first_day {
  border-left: 3px solid #67b682;
  background: #f7fcf8;
}

.yesterday-review-card.is-partial {
  border-left: 3px solid #78a38d;
}

.yesterday-review-card.is-complete {
  border-left: 3px solid #4a9876;
}

.yesterday-review-card .member-care-message {
  align-items: flex-start;
}

.yesterday-review-card .member-care-message p {
  margin-top: 1px;
  color: #435f54;
  font-weight: 600;
}

.yesterday-review-list {
  display: grid;
  gap: 0;
  margin: 10px 0 0 39px;
  border-top: 1px solid #e3ebe7;
}

.yesterday-review-list article {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e8efeb;
}

.yesterday-review-list article > svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #5d9b7e;
}

.yesterday-review-card.is-none .yesterday-review-list article > svg {
  color: #b9843e;
}

.yesterday-review-list strong {
  display: block;
  color: #2f5144;
  font-size: 12.5px;
  line-height: 1.45;
}

.yesterday-review-list p {
  margin: 3px 0 0;
  color: #71847c;
  font-size: 10.5px;
  line-height: 1.55;
}

.yesterday-review-closing {
  margin: 9px 0 0 39px;
  color: #4b6a5e;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 360px) {
  .creation-profile-measure-row {
    grid-template-columns: 1fr;
  }

  .service-schedule-card {
    padding: 13px;
  }
}

/* V1 member delivery entry */
.welcome-service-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(25, 91, 70, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.welcome-service-chip svg { width: 14px; height: 14px; }
.welcome-capability-grid article.is-wide { grid-column: 1 / -1; }
.welcome-copy h1 { font-size: 21px; }
.welcome-copy p { margin-top: 0; }

.activation-screen {
  padding: max(12px, env(safe-area-inset-top)) 16px 24px;
  background: linear-gradient(180deg, #eef9f4 0%, #f8fcfa 56%, #ffffff 100%);
}

.activation-hero {
  margin-top: 6px;
  padding: 18px 17px;
  border: 1px solid #dbece4;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(34, 88, 68, 0.08);
}

.activation-character {
  width: 112px;
  height: 112px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 7px solid #e5f5ed;
  border-radius: 50%;
  background: #dff2e8;
}

.activation-character img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 12%;
}

.activation-hero > span {
  color: #318469;
  font-size: 12px;
  font-weight: 850;
}

.activation-hero h2 {
  margin: 7px 0 8px;
  color: #1d493b;
  font-size: 19px;
  line-height: 1.4;
}

.activation-hero p {
  margin: 0;
  color: #6c8178;
  font-size: 13px;
  line-height: 1.65;
}

.activation-path {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.activation-path article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid #e0ece6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.activation-path article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e2f4eb;
  color: #318469;
  font-size: 12px;
  font-weight: 900;
}

.activation-path strong,
.activation-path small { display: block; }
.activation-path strong { color: #2b5245; font-size: 13px; }
.activation-path small { margin-top: 3px; color: #84958f; font-size: 11px; }

.activation-form {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d9e9e1;
  border-radius: 8px;
  background: #ffffff;
}

.activation-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #4f6c61;
  font-size: 12px;
  font-weight: 800;
}

.activation-form label > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  background: #f8fbf9;
}

.activation-form label svg { width: 18px; height: 18px; margin-left: 11px; color: #4b9f7d; }
.activation-form input { width: 100%; min-width: 0; height: 44px; border: 0; background: transparent; color: #244c3e; font-size: 17px; letter-spacing: 4px; outline: 0; }
.activation-form > button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 8px;
  background: #318e6b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(49, 142, 107, 0.19);
}
.activation-form > button svg { width: 18px; height: 18px; }

/* First service before detailed profiling */
.member-first-service-card,
.detailed-profile-invite-card {
  width: 100%;
  padding: 15px;
  border: 1px solid #dbe9e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(34, 78, 63, 0.07);
}

.member-first-service-row,
.detailed-profile-invite-row { align-items: flex-start; }
.member-first-service-card > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34866b;
  font-size: 11px;
  font-weight: 850;
}
.member-first-service-card > span svg { width: 15px; height: 15px; }
.member-first-service-card h2,
.detailed-profile-invite-card h2 { margin: 7px 0; color: #214a3d; font-size: 17px; line-height: 1.45; }
.member-first-service-card > p,
.detailed-profile-invite-card > p { margin: 0; color: #687e75; font-size: 12.5px; line-height: 1.65; }
.member-first-service-card > div { display: grid; gap: 7px; margin-top: 12px; }
.member-first-service-card > div button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid #e1ece6;
  border-radius: 8px;
  background: #f7fbf9;
  color: #31584b;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}
.member-first-service-card > div button svg:first-child { width: 17px; color: #4da182; }
.member-first-service-card > div button svg:last-child { width: 14px; color: #91a59d; }

.detailed-profile-invite-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e5f5ed;
  color: #35876c;
}
.detailed-profile-invite-card > span svg { width: 19px; height: 19px; }
.detailed-profile-invite-card small { display: block; margin-top: 10px; color: #448a71; font-size: 11px; font-weight: 850; }
.detailed-profile-invite-card button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  border-radius: 8px;
  background: #318e6b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}
.detailed-profile-invite-card button svg { width: 16px; height: 16px; }

/* Member delivery dashboard */
.member-feedback-section,
.member-reminder-section,
.member-cycle-summary { margin-top: 18px; }
.member-action-list > button { border: 1px solid #cfe5db; background: #f7fcf9; }
.member-feedback-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.member-feedback-actions button {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 5px;
  border: 1px solid #d7e7df;
  border-radius: 8px;
  background: #ffffff;
  color: #31594c;
  font-size: 11px;
  font-weight: 800;
}
.member-feedback-actions button svg { width: 20px; height: 20px; color: #3c9875; }
.member-feedback-actions button:nth-child(2) svg { color: #c59442; }
.member-feedback-actions button:nth-child(3) svg { color: #c96f58; }
.member-weekly-report-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}
.member-weekly-report-card > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; background: #e5f5ed; color: #368b6d; }
.member-weekly-report-card > span svg { width: 20px; height: 20px; }
.member-weekly-report-card strong,
.member-weekly-report-card p { display: block; margin: 0; }
.member-weekly-report-card strong { color: #294f42; font-size: 13px; }
.member-weekly-report-card p { margin-top: 4px; color: #7b8e87; font-size: 10.5px; line-height: 1.45; }
.member-weekly-report-card div > i { display: block; height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e6eeea; }
.member-weekly-report-card div > i b { display: block; height: 100%; border-radius: inherit; background: #4bb48b; }
.member-weekly-report-card > svg { width: 17px; height: 17px; color: #91a59d; }

/* AI nutritionist service hub */
.nutrition-hub-frame {
  background: #f5f7f2;
}

.nutrition-hub-screen {
  padding: max(12px, env(safe-area-inset-top)) 14px 96px;
  overflow-y: auto;
  background: #f5f7f2;
  color: #26332d;
}

.hub-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hub-header > div {
  min-width: 0;
}

.hub-header span,
.hub-header strong {
  display: block;
}

.hub-header > div span {
  color: #6e7f76;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
}

.hub-header > div strong {
  margin-top: 4px;
  color: #27372f;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.hub-member-mark {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #dbe4dd;
  border-radius: 7px;
  background: #ffffff;
  color: #728179;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.hub-member-mark.member {
  border-color: #ead8a8;
  background: #fff8e7;
  color: #9a742a;
}

.nutritionist-hero {
  position: relative;
  min-height: 246px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  overflow: hidden;
  padding: 20px 12px 15px 18px;
  border-radius: 8px;
  background: #e7f1e7;
  box-shadow: 0 10px 28px rgba(48, 70, 56, 0.08);
}

.nutritionist-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(52, 95, 69, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.nutritionist-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.nutritionist-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #557065;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.nutritionist-online > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42a875;
  box-shadow: 0 0 0 4px rgba(66, 168, 117, 0.12);
}

.nutritionist-hero h1 {
  margin: 12px 0 8px;
  color: #213a2d;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.nutritionist-hero h1 small {
  display: block;
  margin-top: 7px;
  color: #5b7467;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
}

.nutritionist-hero-copy > p {
  max-width: 196px;
  min-height: 52px;
  margin: 0 0 13px;
  color: #556960;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 620;
}

.nutritionist-chat-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 7px;
  background: #34795a;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(40, 101, 73, 0.18);
}

.nutritionist-chat-cta svg,
.nutritionist-tune svg {
  width: 15px;
  height: 15px;
}

.nutritionist-tune {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 0;
  background: transparent;
  color: #688074;
  font-size: 10px;
  font-weight: 750;
}

.nutritionist-character-stage {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.character-halo {
  position: absolute;
  width: 145px;
  height: 145px;
  right: -8px;
  bottom: 16px;
  border: 1px solid rgba(65, 121, 83, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.nutritionist-character-stage .nutritionist-character {
  position: absolute;
  z-index: 1;
  width: 166px;
  height: 190px;
  right: -16px;
  bottom: -14px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 48% 48% 10px 10px;
  filter: drop-shadow(0 12px 13px rgba(50, 74, 60, 0.13));
}

.nutritionist-character.is-idle {
  animation: nutritionist-idle 3.6s ease-in-out infinite;
  transform-origin: 50% 92%;
}

.character-status {
  position: absolute;
  z-index: 3;
  right: 2px;
  top: 25px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #e7f1e7;
  border-radius: 50%;
  background: #f19a76;
  color: #ffffff;
  animation: character-status-pulse 2.4s ease-in-out infinite;
}

.character-status svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@keyframes nutritionist-idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  46% { transform: translateY(-4px) rotate(-0.6deg); }
  54% { transform: translateY(-4px) rotate(0.5deg); }
}

@keyframes character-status-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 154, 118, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(241, 154, 118, 0); }
}

.hub-section {
  margin-top: 19px;
}

.hub-section-heading {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.hub-section-heading h2 {
  display: block;
}

.hub-section-heading h2 {
  margin: 0;
  color: #27382f;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.hub-section-heading > span {
  padding-bottom: 2px;
  color: #4f8268;
  font-size: 11px;
  font-weight: 850;
}

.today-plan-card {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  background: #ffffff;
  color: #293a32;
  text-align: left;
  box-shadow: 0 5px 18px rgba(53, 69, 59, 0.045);
}

.today-plan-day {
  width: 54px;
  height: 62px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 7px;
  background: #edf2e9;
  color: #47715b;
}

.today-plan-day b {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.today-plan-day small {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 850;
}

.today-plan-copy {
  min-width: 0;
}

.today-plan-copy > strong,
.today-plan-copy > small {
  display: block;
}

.today-plan-copy > strong {
  overflow: hidden;
  color: #2d4237;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-plan-copy > small {
  margin-top: 6px;
  color: #7d8d85;
  font-size: 10.5px;
  line-height: 1.3;
}

.today-plan-copy > i {
  height: 4px;
  display: block;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 2px;
  background: #e9eeeb;
}

.today-plan-copy > i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #67a680;
}

.today-plan-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f5f2;
  color: #648071;
}

.today-plan-arrow svg {
  width: 15px;
  height: 15px;
}

.nutritionist-note {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 10px 10px 8px;
  border-left: 3px solid #e6906d;
  border-radius: 0 8px 8px 0;
  background: #fff8f3;
}

.nutritionist-note > img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 26%;
}

.nutritionist-note > div {
  min-width: 0;
}

.nutritionist-note span {
  color: #a46249;
  font-size: 10px;
  font-weight: 850;
}

.nutritionist-note p {
  margin: 4px 0 0;
  color: #665b55;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 620;
}

.nutritionist-note button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #bd7659;
}

.nutritionist-note button svg {
  width: 15px;
  height: 15px;
}

.nutrition-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nutrition-service-list button {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid #e0e7e2;
  border-radius: 8px;
  background: #ffffff;
  color: #37483f;
  text-align: left;
  box-shadow: 0 4px 14px rgba(42, 70, 53, 0.035);
}

.nutrition-service-list button:nth-child(1) { background: #f4f8f4; }
.nutrition-service-list button:nth-child(2) { background: #fff8f1; }
.nutrition-service-list button:nth-child(3) { background: #f3f6fa; }
.nutrition-service-list button:nth-child(4) { background: #fbf7ee; }

.nutrition-service-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.nutrition-service-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e2eee5;
  color: #4d8065;
}

.nutrition-service-list button:nth-child(2) .nutrition-service-head > span { background: #fbe8d9; color: #bd7049; }
.nutrition-service-list button:nth-child(3) .nutrition-service-head > span { background: #e3eaf3; color: #607b9d; }
.nutrition-service-list button:nth-child(4) .nutrition-service-head > span { background: #eee4d0; color: #95743c; }

.nutrition-service-head > span svg {
  width: 17px;
  height: 17px;
}

.nutrition-service-head > svg {
  width: 13px;
  height: 13px;
  color: #a1ada7;
}

.nutrition-service-list strong,
.nutrition-service-list small {
  display: block;
}

.nutrition-service-list strong {
  color: #34463c;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.nutrition-service-list small {
  margin-top: 5px;
  color: #8a9690;
  font-size: 10.5px;
  line-height: 1.3;
}

.next-plan-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.next-plan-rail::-webkit-scrollbar { display: none; }

.next-plan-rail button {
  min-width: 260px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e0e5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #35463d;
  text-align: left;
}

.next-plan-rail img {
  width: 66px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.next-plan-rail strong,
.next-plan-rail small {
  display: block;
}

.next-plan-rail strong {
  font-size: 13px;
  font-weight: 900;
}

.next-plan-rail small {
  margin-top: 5px;
  color: #87938d;
  font-size: 10px;
  line-height: 1.35;
}

.next-plan-rail button > svg {
  width: 14px;
  color: #9ba7a1;
}

/* Personalized nutritionist creation */
.setup-screen {
  background: #f5f7f2;
}

.setup-header h1 {
  color: #29392f;
}

.setup-progress {
  height: 4px;
  border-radius: 2px;
  background: #e2e7e3;
}

.setup-progress span {
  background: #4f8d6d;
}

.agent-setup-intro {
  min-height: 560px;
  padding: 22px 18px 28px;
  border: 1px solid #e0e6e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(43, 59, 49, 0.06);
}

.setup-character-stage {
  position: relative;
  width: 220px;
  height: 210px;
  margin-bottom: 10px;
}

.setup-character-stage > span {
  position: absolute;
  width: 188px;
  height: 188px;
  left: 16px;
  bottom: 2px;
  border-radius: 50%;
  background: #e6f0e6;
}

.setup-character-stage img {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 46% 46% 8px 8px;
  filter: drop-shadow(0 12px 14px rgba(53, 77, 61, 0.12));
}

.agent-setup-intro h2 {
  max-width: 310px;
  margin: 12px 0 10px;
  color: #283d31;
  font-size: 23px;
  line-height: 1.32;
}

.agent-setup-intro p {
  max-width: 304px;
  color: #6e7e75;
  font-size: 13px;
  line-height: 1.65;
}

.setup-kicker {
  color: #4d8768;
  font-size: 11px;
}

.setup-intro-points {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e7ebe8;
}

.setup-intro-points span {
  min-width: 82px;
  color: #5e7869;
  font-size: 11px;
}

.setup-capability-head {
  width: 100%;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  text-align: left;
}

.setup-capability-head .setup-preview-avatar {
  width: 94px;
  height: 94px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #e4eee4;
}

.setup-capability-head h2 {
  margin: 7px 0 0;
  font-size: 20px;
}

.setup-detail-list {
  width: 100%;
  display: grid;
  gap: 0;
  margin-top: 23px;
  text-align: left;
}

.setup-detail-list article {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #e6ebe7;
}

.setup-detail-list article:last-child { border-bottom: 0; }

.setup-detail-list article > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6efe8;
  color: #50765f;
  font-size: 9px;
  font-weight: 900;
}

.setup-detail-list strong {
  display: block;
  color: #31463a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.setup-detail-list p {
  margin: 4px 0 0;
  color: #7a8981;
  font-size: 12px;
  line-height: 1.45;
}

.setup-form {
  gap: 11px;
}

.setup-form-heading {
  margin: 3px 1px 6px;
}

.setup-form-heading > span {
  border-radius: 7px;
  background: #e4eee6;
  color: #52745f;
}

.setup-form-heading p {
  color: #74877c;
  font-size: 12px;
}

.setup-form-heading h2 {
  color: #263b30;
  font-size: 20px;
}

.setup-live-preview,
.setup-scenario-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 8px 13px 8px 7px;
  border: 1px solid #dce5de;
  border-radius: 8px;
  background: #eaf1e8;
}

.setup-live-preview img,
.setup-scenario-card img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 27%;
}

.setup-live-preview small,
.setup-live-preview strong,
.setup-live-preview p,
.setup-scenario-card span,
.setup-scenario-card p {
  display: block;
}

.setup-live-preview small,
.setup-scenario-card span {
  color: #6b7f73;
  font-size: 10px;
  font-weight: 800;
}

.setup-live-preview strong {
  margin-top: 4px;
  color: #2f4b3b;
  font-size: 18px;
  font-weight: 900;
}

.setup-live-preview p,
.setup-scenario-card p {
  margin: 5px 0 0;
  color: #607168;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.setup-input-label,
.setup-choice-group {
  gap: 10px;
  padding: 13px;
  border-color: #e0e6e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(52, 68, 58, 0.035);
}

.setup-card-label {
  color: #3f594a;
  font-size: 14px;
}

.setup-input-label input,
.setup-input-label textarea {
  min-height: 44px;
  border-radius: 7px;
  background: #f5f7f5;
  color: #283a31;
  font-size: 15px;
}

.setup-choice {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  background: #f7f8f7;
  color: #596b61;
  font-size: 13px;
}

.setup-choice.active {
  border-color: #5f9b78;
  background: #e7f0e8;
  color: #315e46;
  box-shadow: inset 0 0 0 1px rgba(95, 155, 120, 0.1);
}

.setup-result-preview {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border-left: 3px solid #e38d6c;
  border-radius: 0 8px 8px 0;
  background: #fff7f2;
}

.setup-result-preview > svg {
  width: 22px;
  height: 22px;
  color: #c97859;
}

.setup-result-preview strong {
  color: #634a40;
  font-size: 13px;
}

.setup-result-preview p {
  margin: 5px 0 0;
  color: #8b756b;
  font-size: 11px;
  line-height: 1.45;
}

.setup-actions {
  background: rgba(247, 248, 245, 0.94);
}

.setup-actions .primary-action,
.setup-actions .secondary-action {
  border-radius: 8px;
}

.setup-actions .primary-action {
  background: #34795a;
  color: #ffffff;
}

.setup-actions .secondary-action {
  border-color: #cfdcd4;
  background: #ffffff;
  color: #486858;
}

.assistant-avatar,
.xiaoqing-icon img {
  object-position: 50% 26%;
}

.assistant-avatar.expression-thinking {
  animation: thinking-avatar 1.9s ease-in-out infinite;
}

.agent-screen .flow-header > div h1 {
  margin: 0;
  line-height: 1.1;
}

@keyframes thinking-avatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .nutritionist-character.is-idle,
  .character-status,
  .assistant-avatar.expression-thinking {
    animation: none;
  }
}

@media (max-width: 360px) {
  .nutritionist-hero {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .nutritionist-character-stage .nutritionist-character {
    width: 150px;
    right: -18px;
  }

  .nutrition-service-list strong { font-size: 13px; }
  .nutrition-service-list small { font-size: 10px; }
}

/* AI plan companion and guided health questionnaire */
.agent-screen .chat-card {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.agent-screen .messages {
  padding: 12px 10px 18px;
}

.agent-welcome-bubble {
  max-width: calc(100% - 62px);
  padding: 12px 14px;
  background: #f5faf7;
}

.agent-card-row {
  width: auto;
  margin-right: 35px;
  margin-left: 43px;
}

.agent-memory-row {
  margin-top: -4px;
  margin-bottom: 10px;
}

.agent-context-row {
  margin-bottom: 16px;
}

.agent-memory-card,
.agent-plan-context {
  width: 100%;
  padding: 13px;
  border: 1px solid #dcece4;
  border-radius: 15px;
  background: linear-gradient(145deg, #eef9f2, #ffffff 76%);
  box-shadow: 0 5px 14px rgba(41, 91, 70, 0.05);
}

.agent-memory-card {
  background: #ffffff;
}

.agent-memory-head,
.agent-memory-list article {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agent-memory-head > span,
.agent-memory-list article > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
}

.agent-memory-head > span {
  width: 34px;
  height: 34px;
  background: #e3f4e9;
  color: #4d9a71;
}

.agent-memory-head svg {
  width: 18px;
  height: 18px;
}

.agent-memory-head small,
.agent-memory-head strong,
.agent-memory-list small,
.agent-memory-list p {
  display: block;
}

.agent-memory-head small {
  color: #739085;
  font-size: 10px;
  font-weight: 750;
}

.agent-memory-head strong {
  margin-top: 3px;
  color: #2d5545;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.agent-memory-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.agent-memory-list article {
  min-width: 0;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6f9f7;
}

.agent-memory-list article > span {
  width: 27px;
  height: 27px;
  background: #e8f3eb;
  color: #579377;
}

.agent-memory-list article > span svg {
  width: 14px;
  height: 14px;
}

.agent-memory-list article > div {
  min-width: 0;
  flex: 1;
}

.agent-memory-list small {
  color: #739085;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.agent-memory-list p {
  margin: 3px 0 0;
  color: #365849;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.agent-plan-context-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agent-plan-context-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #d9f2e3;
  color: #45986f;
}

.agent-plan-context-head svg {
  width: 18px;
  height: 18px;
}

.agent-plan-context-head small,
.agent-plan-context-head strong {
  display: block;
}

.agent-plan-context-head small {
  color: #739085;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.agent-plan-context-head strong {
  margin-top: 3px;
  color: #24513f;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}

.agent-plan-progress,
.guided-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eee9;
}

.agent-plan-progress {
  margin: 11px 0 9px;
}

.agent-plan-progress span,
.guided-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #59b886;
}

.agent-plan-context p {
  margin: 0;
  color: #5e766c;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.guided-intro-bubble {
  max-width: calc(100% - 52px);
  padding: 13px 14px;
  background: #f7faf8;
}

.guided-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.guided-intro-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e8f6ee;
  color: #4a8269;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.guided-intro-meta svg {
  width: 12px;
  height: 12px;
}

.guided-question-row {
  margin-top: 3px;
}

.guided-question-card {
  width: calc(100% - 43px);
  min-width: 0;
  padding: 14px;
  border: 1px solid #dcebe4;
  border-radius: 17px 17px 17px 6px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(35, 86, 67, 0.07);
}

.guided-question-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4d9673;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.guided-question-progress em {
  color: #8a9c95;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.guided-progress-track {
  margin-top: 8px;
}

.guided-question-card h2 {
  margin: 13px 0 11px;
  color: #213e34;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

.guided-option-list {
  display: grid;
  gap: 7px;
}

.guided-option {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 12px;
  border: 1px solid #e2ece7;
  border-radius: 11px;
  background: #f8faf9;
  color: #486259;
  cursor: pointer;
}

.guided-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guided-option span {
  min-width: 0;
  display: block;
  color: inherit;
  opacity: 1;
  visibility: visible;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.guided-option svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1px solid #d7e5de;
  border-radius: 50%;
  color: transparent;
}

.guided-option.active {
  border-color: #62b98b;
  background: #eaf7ef;
  color: #286447;
}

.guided-option.active svg {
  border-color: #57ad80;
  background: #57ad80;
  color: #ffffff;
}

.guided-question-error {
  min-height: 16px;
  margin-top: 6px;
  color: #c35b61;
  font-size: 11px;
  line-height: 1.3;
}

.guided-next-button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background: #55b987;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.guided-next-button svg {
  width: 16px;
  height: 16px;
}

.guided-question-actions {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 8px;
}

.guided-question-actions.single {
  grid-template-columns: 1fr;
}

.guided-question-actions .guided-next-button {
  min-width: 0;
}

.guided-previous-button {
  min-width: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #cfe2d8;
  border-radius: 12px;
  background: #f5faf7;
  color: #47705f;
  font-size: 13px;
  font-weight: 850;
}

.guided-previous-button svg {
  width: 15px;
  height: 15px;
}

.questionnaire-goal-option .guided-option-label {
  display: block !important;
  color: #486259 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.questionnaire-goal-option.active .guided-option-label {
  color: #286447 !important;
}

.guided-resume-row {
  margin-top: 3px;
}

.guided-resume-card {
  width: calc(100% - 43px);
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid #cfe4ce;
  border-radius: 8px 8px 8px 4px;
  background: #f1f8f2;
  color: #2f4a3a;
}

.guided-resume-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e0efe3;
  color: #5e8b6e;
}

.guided-resume-icon svg {
  width: 17px;
  height: 17px;
}

.guided-resume-card > div small,
.guided-resume-card > div strong,
.guided-resume-card > div p {
  display: block;
}

.guided-resume-card > div small {
  color: #6f8d79;
  font-size: 9.5px;
  font-weight: 800;
}

.guided-resume-card > div strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.guided-resume-card > div p {
  margin: 5px 0 0;
  color: #71857a;
  font-size: 10.5px;
  line-height: 1.5;
}

.guided-resume-card details {
  grid-column: 1 / -1;
  border-top: 1px solid #dbe9dd;
  padding-top: 9px;
}

.guided-resume-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4e7960;
  font-size: 10.5px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.guided-resume-card summary::-webkit-details-marker {
  display: none;
}

.guided-resume-card summary svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.guided-resume-card details[open] summary svg {
  transform: rotate(180deg);
}

.guided-resume-card details > div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.guided-resume-card details p {
  margin: 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: #ffffff;
}

.guided-resume-card details p small,
.guided-resume-card details p strong {
  display: block;
}

.guided-resume-card details p small {
  color: #81958a;
  font-size: 9px;
  line-height: 1.35;
}

.guided-resume-card details p strong {
  margin-top: 3px;
  color: #345540;
  font-size: 10.5px;
  line-height: 1.45;
}

.guided-complete-card {
  width: calc(100% - 43px);
  display: grid;
  justify-items: center;
  padding: 19px 14px 14px;
  border: 1px solid #d8eade;
  border-radius: 17px 17px 17px 6px;
  background: linear-gradient(145deg, #edf9f1, #ffffff 78%);
  text-align: center;
}

.guided-analysis-stack {
  width: calc(100% - 78px);
  display: grid;
  gap: 10px;
}

.guided-analysis-stack .guided-complete-card {
  width: 100%;
}

.guided-profile-highlights {
  overflow: hidden;
  border: 1px solid #d5e8df;
  border-radius: 8px;
  background: #ffffff;
}

.guided-profile-highlights > header {
  padding: 11px 12px 9px;
  border-bottom: 1px solid #e7efeb;
}

.guided-profile-highlights > header small,
.guided-profile-highlights > header strong { display: block; }
.guided-profile-highlights > header small { color: #4b9879; font-size: 10px; font-weight: 850; }
.guided-profile-highlights > header strong { margin-top: 3px; color: #294f42; font-size: 12.5px; line-height: 1.4; }
.guided-profile-highlights > div { padding: 3px 12px; }

.guided-profile-highlights article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
}

.guided-profile-highlights article + article { border-top: 1px solid #edf2ef; }
.guided-profile-highlights article > svg { width: 28px; height: 28px; padding: 6px; border-radius: 7px; background: #e7f4ee; color: #439982; }
.guided-profile-highlights article strong { color: #31574a; font-size: 11px; }
.guided-profile-highlights article p { margin: 3px 0 0; color: #71847c; font-size: 10px; line-height: 1.5; }

.guided-profile-highlights-note {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 9px 12px;
  background: #f0f7f3;
  color: #5f766d;
  font-size: 9.5px;
  line-height: 1.5;
}

.guided-profile-highlights-note svg { width: 15px; height: 15px; margin-top: 1px; color: #4b9879; }

.guided-analysis-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dcebe4;
  border-radius: 17px 17px 17px 6px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(35, 86, 67, 0.07);
}

.guided-analysis-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e8f0ec;
}

.guided-analysis-head > span {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #dff3e7;
  color: #4da77a;
}

.guided-analysis-head svg {
  width: 18px;
  height: 18px;
}

.guided-analysis-head small,
.guided-analysis-head strong {
  display: block;
}

.guided-analysis-head small {
  color: #80958c;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.guided-analysis-head strong {
  margin-top: 3px;
  color: #26513f;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}

.ai-response-content {
  display: grid;
  gap: 7px;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

.ai-section-title {
  display: block;
  margin-top: 6px;
  color: #26634c;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
}

.ai-response-content .ai-section-title:first-child {
  margin-top: 0;
}

.ai-numbered-line,
.ai-text-line {
  display: block;
  overflow-wrap: anywhere;
}

.ai-numbered-line {
  padding-left: 1px;
}

.ai-response-space {
  display: block;
  height: 2px;
}

.guided-analysis-content {
  gap: 8px;
  color: #485f56;
  font-size: 13px;
  line-height: 1.7;
}

.guided-analysis-loading {
  padding-bottom: 5px;
}

.guided-analysis-ready-card {
  width: calc(100% - 43px);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dcebe4;
  border-radius: 16px 16px 16px 6px;
  background: #f6faf7;
  padding: 13px;
}

.guided-analysis-ready-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dff3e7;
  color: #3d956d;
}

.guided-analysis-ready-card > span svg {
  width: 18px;
  height: 18px;
}

.guided-analysis-ready-card strong {
  display: block;
  color: #285541;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.guided-analysis-ready-card p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 0;
  color: #73887f;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 650;
}

.guided-analysis-ready-card .thinking-dots {
  color: #4b9c7b;
}

.guided-preparation-card {
  width: calc(100% - 43px);
  overflow: hidden;
  border: 1px solid #d6e9df;
  border-radius: 17px 17px 17px 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(35, 86, 67, 0.07);
}

.guided-preparation-head {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #e9f7f0, #f8fbf9);
}

.guided-preparation-head > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #3f9874;
  color: #ffffff;
}

.guided-preparation-head svg {
  width: 19px;
  height: 19px;
}

.guided-preparation-head small,
.guided-preparation-head strong,
.guided-preparation-head p {
  display: block;
}

.guided-preparation-head small {
  color: #699080;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.guided-preparation-head strong {
  margin-top: 3px;
  color: #285440;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
}

.guided-preparation-head p {
  margin: 4px 0 0;
  color: #81958c;
  font-size: 10.5px;
  line-height: 1.3;
}

.guided-preparation-steps {
  display: grid;
  margin: 0;
  padding: 5px 14px 8px;
  list-style: none;
}

.guided-preparation-steps li {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #e8f0ec;
}

.guided-preparation-steps li:last-child {
  border-bottom: 0;
}

.guided-preparation-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5df;
  border-radius: 50%;
  background: #f5f8f6;
  color: #8a9b94;
  font-size: 11px;
  font-weight: 900;
}

.guided-preparation-steps li > span svg {
  width: 15px;
  height: 15px;
}

.guided-preparation-steps li.complete > span {
  border-color: #4da77d;
  background: #4da77d;
  color: #ffffff;
}

.guided-preparation-steps li.active > span {
  border-color: #76b99a;
  background: #e7f5ed;
  color: #3f8d6b;
  box-shadow: 0 0 0 4px rgba(89, 180, 134, 0.1);
}

.guided-preparation-steps li > div {
  min-width: 0;
}

.guided-preparation-steps strong,
.guided-preparation-steps p {
  display: block;
}

.guided-preparation-steps strong {
  color: #34574b;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 900;
}

.guided-preparation-steps p {
  margin: 4px 0 0;
  color: #899a94;
  font-size: 9.5px;
  line-height: 1.4;
}

.guided-preparation-steps li.pending strong,
.guided-preparation-steps li.pending p {
  color: #a1ada8;
}

.guided-preparation-steps li > em {
  min-width: 33px;
  color: #7e9189;
  font-size: 9px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.guided-preparation-steps li.complete > em {
  color: #3f946d;
}

.guided-preparation-steps .thinking-dots {
  color: #4b9c7b;
}

.guided-results-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 2px 1px 3px;
}

.guided-results-heading > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3e7;
  color: #3f9872;
}

.guided-results-heading svg {
  width: 18px;
  height: 18px;
}

.guided-results-heading strong {
  display: block;
  color: #284f41;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.guided-results-heading p {
  margin: 3px 0 0;
  color: #82958d;
  font-size: 10.5px;
  line-height: 1.4;
}

.guided-report-card {
  overflow: hidden;
  border: 1px solid #cfe3d9;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(35, 86, 67, 0.06);
}

.guided-report-card summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.guided-report-card summary::-webkit-details-marker {
  display: none;
}

.guided-result-card-icon {
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e7f5ed;
  color: #438e6d;
}

.guided-result-card-icon svg {
  width: 20px;
  height: 20px;
}

.guided-result-card-copy {
  min-width: 0;
}

.guided-result-card-copy small,
.guided-result-card-copy strong,
.guided-result-card-copy p {
  display: block;
}

.guided-result-card-copy small {
  color: #6e9284;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
}

.guided-result-card-copy strong {
  margin-top: 4px;
  color: #284f41;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 900;
}

.guided-result-card-copy p {
  margin: 5px 0 0;
  color: #879891;
  font-size: 9.5px;
  line-height: 1.35;
}

.guided-report-toggle {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #4b9174;
}

.guided-report-toggle em {
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}

.guided-report-toggle .open-label {
  display: none;
}

.guided-report-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.guided-report-card[open] .closed-label {
  display: none;
}

.guided-report-card[open] .open-label {
  display: block;
}

.guided-report-card[open] .guided-report-toggle svg {
  transform: rotate(180deg);
}

.guided-report-entry {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #cfe3d9;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  box-shadow: 0 7px 18px rgba(35, 86, 67, 0.06);
}

.guided-report-entry .guided-report-toggle {
  min-width: 34px;
}

.guided-report-entry:active {
  transform: translateY(1px);
}

.guided-report-page {
  max-height: 410px;
  overflow-y: auto;
  padding: 14px;
  border-top: 1px solid #e4eee9;
  background: #fbfdfc;
  overscroll-behavior: contain;
}

.guided-report-page-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5eee9;
}

.guided-report-page-head small,
.guided-report-page-head strong {
  display: block;
}

.guided-report-page-head small {
  color: #789087;
  font-size: 10px;
  font-weight: 750;
}

.guided-report-page-head strong {
  margin-top: 4px;
  color: #2b5444;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.guided-analysis-card.is-streaming {
  min-height: 180px;
}

.streaming-cursor {
  width: 2px;
  height: 15px;
  display: inline-block;
  align-self: end;
  margin-left: 2px;
  background: #4aa07a;
  animation: streaming-cursor-blink 800ms steps(1) infinite;
}

@keyframes streaming-cursor-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.guided-analysis-error {
  width: calc(100% - 43px);
  padding: 14px;
  border: 1px solid #f0ded3;
  border-radius: 16px 16px 16px 6px;
  background: #fff9f4;
}

.guided-analysis-error strong {
  color: #82563f;
  font-size: 15px;
}

.guided-analysis-error p {
  margin: 6px 0 11px;
  color: #896f62;
  font-size: 12px;
  line-height: 1.5;
}

.guided-analysis-error button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #59b486;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.guided-complete-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #d6f1e1;
  color: #48a275;
}

.guided-complete-icon svg {
  width: 22px;
  height: 22px;
}

.guided-complete-card > strong {
  margin-top: 10px;
  color: #24513f;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.guided-complete-card p {
  margin: 7px 0 13px;
  color: #6c8178;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.guided-complete-card button {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: #4eaf7f;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.agent-screen .composer {
  grid-template-columns: minmax(0, 1fr) 68px;
  padding-top: 7px;
  border-top: 1px solid #edf2ef;
}

.agent-screen .composer.has-attachment {
  grid-template-columns: 36px minmax(0, 1fr) 68px;
}

.agent-screen .chat-card > .pending-images {
  border-top: 1px solid #edf2ef;
}

@media (max-width: 360px) {
  .guided-question-card h2 {
    font-size: 16px;
  }

  .guided-option span {
    font-size: 12px;
  }
}

/* Current MVP home spacing overrides */
.product-home-screen .section-heading {
  display: block;
  margin-bottom: 7px;
}

.product-home-screen .section-heading h2 {
  margin: 0;
  color: #224b3e;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

.product-home-screen .service-section,
.product-home-screen .plan-list-section {
  margin-top: 16px;
}

.product-home-screen .plan-list-section .section-heading,
.product-home-screen .recommendation-section .section-heading {
  margin-bottom: 7px;
}

/* AI health briefing home */
.health-home-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 8px;
}

.health-home-header > div {
  min-width: 0;
}

.health-home-header > div span,
.health-home-header > div strong {
  display: block;
}

.health-home-header > div span {
  color: #6f7e77;
  font-size: 11px;
  font-weight: 750;
}

.health-home-header > div strong {
  margin-top: 3px;
  color: #26372f;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.home-context-strip {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 2px 10px;
  padding: 8px 0 9px;
  border-top: 1px solid #dfe5df;
  border-bottom: 1px solid #dfe5df;
  color: #607169;
}

.home-context-strip > span,
.home-context-strip p {
  display: flex;
  align-items: center;
}

.home-context-strip > span {
  gap: 5px;
  font-size: 10.5px;
  font-weight: 750;
}

.home-context-strip > span svg {
  width: 15px;
  height: 15px;
  color: #527b66;
}

.home-context-strip p {
  grid-column: 1 / -1;
  gap: 6px;
  margin: 0;
  color: #6d756f;
  font-size: 10.5px;
  line-height: 1.35;
}

.home-context-strip p svg {
  width: 14px;
  height: 14px;
  color: #dc845d;
}

.home-context-strip p b {
  flex: 0 0 auto;
  color: #aa654a;
  font-weight: 850;
}

.seasonal-hero {
  position: relative;
  min-height: 194px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  overflow: hidden;
  border: 1px solid #dce5dc;
  border-radius: 8px;
  background: #eaf1e9;
  box-shadow: 0 9px 25px rgba(55, 75, 62, 0.07);
}

.seasonal-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 18px 0 16px 16px;
}

.seasonal-hero-copy > span {
  color: #9a6f42;
  font-size: 10px;
  font-weight: 900;
}

.seasonal-hero-copy h1 {
  margin: 8px 0 7px;
  color: #243b2f;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 950;
}

.seasonal-hero-copy p {
  max-width: 204px;
  min-height: 50px;
  margin: 0;
  color: #607168;
  font-size: 11.5px;
  line-height: 1.52;
  font-weight: 650;
}

.seasonal-hero-copy button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: #3c7659;
  font-size: 11px;
  font-weight: 900;
}

.seasonal-hero-copy button svg {
  width: 14px;
  height: 14px;
}

.seasonal-character {
  position: relative;
  align-self: stretch;
}

.seasonal-character > span {
  position: absolute;
  width: 126px;
  height: 126px;
  right: -4px;
  bottom: 16px;
  border-radius: 50%;
  background: #f6f3df;
}

.seasonal-character img {
  position: absolute;
  z-index: 1;
  width: 148px;
  height: 180px;
  right: -9px;
  bottom: -6px;
  object-fit: cover;
  object-position: 50% 27%;
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 10px 12px rgba(59, 83, 67, 0.12));
}

.home-ai-focus {
  position: relative;
  margin-top: 12px;
}

.home-ai-focus-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.home-ai-focus-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #43564c;
  font-size: 11px;
  font-weight: 900;
}

.home-ai-focus-head svg {
  width: 15px;
  height: 15px;
  color: #d47f59;
}

.home-ai-focus-head small {
  color: #a67861;
  font-size: 10px;
  font-weight: 800;
}

.home-ai-focus-stack {
  position: absolute;
  z-index: 0;
  inset: 40px 9px -7px;
  border: 1px solid #e4e0d7;
  border-radius: 8px;
  background: #f1eee6;
}

.home-ai-focus > article {
  position: relative;
  z-index: 1;
  min-height: 148px;
  padding: 14px 14px 12px;
  border: 1px solid #e4e6df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(55, 66, 59, 0.055);
}

.home-ai-focus > article > span {
  color: #9a6d4e;
  font-size: 10px;
  font-weight: 850;
}

.home-ai-focus h2 {
  margin: 7px 0 5px;
  color: #293a31;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.home-ai-focus p {
  margin: 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.5;
}

.home-ai-focus article button {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 0;
  background: transparent;
  color: #a26446;
  font-size: 10.5px;
  font-weight: 900;
}

.home-ai-focus article button svg {
  width: 14px;
  height: 14px;
}

.compact-plan-section {
  margin-top: 22px;
}

.weekly-observation-section {
  margin-top: 18px;
}

.weekly-observation-section .hub-section-heading button {
  padding: 4px 0;
  background: transparent;
  color: #8d6c55;
  font-size: 10px;
  font-weight: 850;
}

.weekly-observation-list {
  border-top: 1px solid #dfe5e0;
}

.weekly-observation-list article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 11px 1px;
  border-bottom: 1px solid #e2e7e3;
}

.weekly-observation-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e5f1e9;
  color: #4b8664;
}

.weekly-observation-icon.coral { background: #fae9e1; color: #b66a4e; }
.weekly-observation-icon.amber { background: #f7efd9; color: #9c7939; }
.weekly-observation-icon.blue { background: #e5edf4; color: #597994; }
.weekly-observation-icon svg { width: 17px; height: 17px; }

.weekly-observation-list article > div {
  min-width: 0;
}

.weekly-observation-list strong {
  display: block;
  color: #33453b;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 850;
}

.weekly-observation-list p {
  margin: 5px 0 0;
  color: #7b8982;
  font-size: 10.5px;
  line-height: 1.45;
}

.home-service-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.home-service-rail::-webkit-scrollbar {
  display: none;
}

.home-service-rail button {
  min-width: 132px;
  min-height: 98px;
}

/* Mobile home typography */
.nutrition-hub-screen {
  padding-top: max(8px, env(safe-area-inset-top));
}

.health-home-header {
  min-height: 46px;
  padding: 0 2px 5px;
}

.health-home-header > strong {
  color: #26372f;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.home-context-strip {
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 5px;
  margin: 0 2px 10px;
  padding: 7px 0 9px;
}

.home-context-strip > span {
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.home-context-strip > span svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.seasonal-hero {
  min-height: 160px;
  grid-template-columns: minmax(0, 1fr) 116px;
}

.seasonal-hero-copy {
  padding: 13px 0 10px 14px;
}

.seasonal-hero-copy > span {
  font-size: 11px;
  line-height: 1.3;
}

.seasonal-hero-copy h1 {
  margin: 7px 0 5px;
  font-size: 20px;
  line-height: 1.28;
}

.seasonal-hero-copy p {
  max-width: 205px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.seasonal-hero-copy button {
  min-height: 30px;
  gap: 7px;
  margin-top: 5px;
  font-size: 11px;
}

.seasonal-hero-copy button svg {
  width: 14px;
  height: 14px;
}

.seasonal-character > span {
  width: 96px;
  height: 96px;
  right: -8px;
  bottom: 22px;
}

.seasonal-character img {
  width: 126px;
  height: 152px;
  right: -13px;
  bottom: -5px;
}

.home-ai-focus {
  margin-top: 16px;
}

.home-ai-focus-head {
  min-height: 36px;
  padding: 0 2px 5px;
}

.home-ai-focus-head > span {
  gap: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.home-ai-focus-head svg {
  width: 18px;
  height: 18px;
}

.home-ai-focus-head > small {
  font-size: 13px;
  line-height: 1.3;
}

.home-ai-focus-head > .home-advice-pager {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #9b6c52;
  font-size: 11px;
}

.home-advice-pager em {
  margin-right: 2px;
  color: #779086;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.home-advice-pager button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #dedfd7;
  border-radius: 50%;
  background: #ffffff;
  color: #8f6a55;
}

.home-advice-pager button svg {
  width: 14px;
  height: 14px;
}

.home-advice-pager small {
  min-width: 32px;
  font-size: 11px;
  text-align: center;
}

.home-advice-pager b {
  font-size: 12px;
}

.home-advice-card-stack {
  position: relative;
  isolation: isolate;
  min-height: 0;
  transition: height 220ms ease;
}

.home-advice-card-stack:not(.is-loading)::before,
.home-advice-card-stack:not(.is-loading)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% - 14px);
  border: 1px solid #dcece4;
  border-radius: 8px;
  pointer-events: none;
}

.home-advice-card-stack:not(.is-loading)::before {
  z-index: 1;
  background: #eef8f3;
  transform: translateY(7px) scaleX(0.975);
}

.home-advice-card-stack:not(.is-loading)::after {
  z-index: 0;
  background: #e3f2eb;
  transform: translateY(13px) scaleX(0.945);
}

.home-advice-card {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  min-height: 0;
  border: 1px solid #e2e6df;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 14px 11px;
  box-shadow: 0 8px 22px rgba(50, 67, 57, 0.07);
  opacity: 0;
  transform: translate3d(10px, 15px, 0) scale(0.97);
  transform-origin: 50% 100%;
  transition: opacity 260ms ease, transform 260ms ease, background-color 260ms ease;
  pointer-events: none;
}

.home-advice-card.is-active {
  z-index: 3;
  background: #ffffff;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.home-advice-card.is-next {
  z-index: 2;
  opacity: 0;
  transform: translate3d(10px, 0, 0) scale(0.985);
}

.home-advice-card.is-back {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-10px, 0, 0) scale(0.97);
}

.home-advice-card.is-next > *,
.home-advice-card.is-back > * {
  visibility: hidden;
}

.home-advice-card > span {
  display: block;
  color: #986a4e;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
}

.home-ai-focus .home-advice-card h2 {
  margin: 5px 0;
  color: #293a31;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
}

.home-ai-focus .home-advice-card p {
  margin: 0;
  color: #65756d;
  font-size: 12px;
  line-height: 1.5;
}

.home-ai-focus .home-advice-card button {
  min-height: 29px;
  gap: 7px;
  margin-top: 5px;
  font-size: 11px;
}

.home-ai-focus .home-advice-card button svg {
  width: 14px;
  height: 14px;
}

.home-advice-card-stack.is-loading .home-advice-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-advice-card-stack.is-loading {
  height: 136px;
}

.home-advice-preparing {
  min-height: 124px;
}

.home-preparing-dots {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.home-preparing-dots b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #83a091;
  animation: home-preparing-dot 1.2s ease-in-out infinite;
}

.home-preparing-dots b:nth-child(2) { animation-delay: 140ms; }
.home-preparing-dots b:nth-child(3) { animation-delay: 280ms; }

@keyframes home-preparing-dot {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

.home-loading-line {
  width: 100%;
  height: 14px;
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, #edf1ed 20%, #f7f9f7 48%, #edf1ed 76%);
  background-size: 220% 100%;
  animation: home-loading 1.4s linear infinite;
}

.home-loading-line.short { width: 36%; }
.home-loading-line.title { width: 72%; height: 20px; margin-top: 4px; }
.home-loading-line.medium { width: 82%; }

@keyframes home-loading {
  to { background-position: -220% 0; }
}

.home-briefing-error {
  min-height: 170px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  border: 1px solid #e5e2d9;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.home-briefing-error > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4ef;
  color: #4c8166;
}

.home-briefing-error svg { width: 19px; height: 19px; }
.home-briefing-error strong { font-size: 16px; line-height: 1.35; }
.home-briefing-error p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.home-briefing-error button {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  color: #397659;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.nutrition-hub-screen .hub-section-heading {
  min-height: 34px;
  margin-bottom: 5px;
}

.nutrition-hub-screen .hub-section-heading h2 {
  font-size: 17px;
  line-height: 1.3;
}

.nutrition-hub-screen .hub-section-heading > span,
.weekly-observation-section .hub-section-heading button {
  font-size: 13px;
  line-height: 1.3;
}

.compact-plan-section {
  margin-top: 8px;
}

.today-plan-card {
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr) 32px;
  gap: 11px;
  padding: 11px;
}

.today-plan-day {
  width: 54px;
  height: 62px;
}

.today-plan-day b { font-size: 20px; }
.today-plan-day small { font-size: 8px; line-height: 1; }

.today-plan-copy > strong {
  overflow: visible;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.today-plan-copy > small {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.45;
}

.today-plan-arrow {
  width: 30px;
  height: 30px;
}

.today-plan-arrow svg { width: 15px; height: 15px; }

.weekly-observation-section {
  margin-top: 18px;
}

.weekly-observation-list article {
  min-height: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 1px;
}

.weekly-observation-icon {
  width: 31px;
  height: 31px;
}

.weekly-observation-icon svg { width: 17px; height: 17px; }

.weekly-observation-list strong {
  font-size: 14px;
  line-height: 1.35;
}

.weekly-observation-list p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
}

.weekly-observation-skeleton > div {
  display: grid;
  gap: 12px;
}

.weekly-observation-skeleton > div i {
  height: 14px;
  border-radius: 5px;
  background: #e9eeea;
}

.weekly-observation-skeleton > div i:last-child { width: 78%; }

.weekly-observation-placeholder {
  padding: 20px 0;
  color: #77857e;
  font-size: 14px;
  line-height: 1.5;
}

.home-service-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.home-service-rail button {
  min-width: 0;
  min-height: 128px;
  padding: 11px 9px;
}

.home-service-rail .nutrition-service-head {
  margin-bottom: 8px;
}

.home-service-rail .nutrition-service-head > span {
  width: 34px;
  height: 34px;
}

.home-service-rail .nutrition-service-head > span svg {
  width: 18px;
  height: 18px;
}

.home-service-rail .nutrition-service-head > svg {
  width: 14px;
  height: 14px;
}

.home-service-rail strong {
  font-size: 14px;
  line-height: 1.3;
}

.home-service-rail small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

/* Home palette aligned with plan, profile and agent screens */
.nutrition-hub-frame {
  background: #f6fbf8;
}

.nutrition-hub-screen {
  background: #f7faf8;
  color: #1f4037;
}

.health-home-header > strong {
  color: #1b3b34;
}

.home-context-strip {
  display: block;
  border-color: #e4efea;
}

.home-context-strip > span {
  width: 100%;
  gap: 5px;
  color: #718680;
  font-size: 11px;
  white-space: nowrap;
}

.home-context-strip > span svg {
  width: 14px;
  height: 14px;
  color: #58a68f;
}

.home-context-strip > span b {
  color: #b5c4be;
  font-weight: 500;
}

.seasonal-hero {
  border-color: #dcece4;
  background: linear-gradient(135deg, #ecfbf5 0%, #f8fdfb 74%);
  box-shadow: 0 8px 22px rgba(33, 83, 70, 0.05);
}

.seasonal-hero-copy > span { color: #58a68f; }
.seasonal-hero-copy h1 { color: #1b493c; }
.seasonal-hero-copy p { color: #718680; }
.seasonal-hero-copy button { color: #3d9d72; }
.seasonal-character > span { background: #dff5ea; }

.home-ai-focus-head > span { color: #244f40; }
.home-ai-focus-head svg { color: #4eaf7f; }
.home-ai-focus-head > .home-advice-pager { color: #4f9275; }
.home-advice-pager button {
  border-color: #dcece4;
  color: #4a9874;
}

.home-advice-card {
  border-color: #dcece4;
  box-shadow: 0 8px 22px rgba(33, 83, 70, 0.05);
}

.home-advice-card.is-next { background: #eef8f3; }
.home-advice-card.is-back { background: #e3f2eb; }
.home-advice-card > span { color: #58a68f; }
.home-ai-focus .home-advice-card h2 { color: #244f40; }
.home-ai-focus .home-advice-card p { color: #718680; }
.home-ai-focus .home-advice-card button { color: #3d9d72; }
.home-preparing-dots b { background: #58a68f; }

.home-briefing-error {
  border-color: #dcece4;
}

.home-briefing-error > span {
  background: #e8f7f0;
  color: #4a9874;
}

.home-briefing-error button { color: #3d9d72; }
.nutrition-hub-screen .hub-section-heading h2 { color: #224b3e; }
.nutrition-hub-screen .hub-section-heading > span,
.weekly-observation-section .hub-section-heading button { color: #58a68f; }

.today-plan-card {
  border-color: #dcece4;
  box-shadow: 0 6px 18px rgba(44, 91, 71, 0.04);
}

.today-plan-day {
  background: #eef8f2;
  color: #4a9874;
}

.today-plan-copy > strong { color: #244f40; }
.today-plan-copy > small { color: #82968e; }
.today-plan-copy > i b { background: #58b58c; }
.today-plan-arrow {
  background: #eef8f2;
  color: #4a9874;
}

.weekly-observation-list { border-top-color: #e4efea; }
.weekly-observation-list article { border-bottom-color: #e4efea; }
.weekly-observation-icon {
  background: #e7f6ee;
  color: #4a9874;
}
.weekly-observation-icon.coral { background: #fceee8; color: #c97758; }
.weekly-observation-icon.amber { background: #fff6df; color: #aa8137; }
.weekly-observation-icon.blue { background: #eaf4f6; color: #4d8892; }
.weekly-observation-list strong { color: #31574d; }
.weekly-observation-list p { color: #7b8f87; }

.home-service-rail button,
.home-service-rail button:nth-child(1),
.home-service-rail button:nth-child(2),
.home-service-rail button:nth-child(3) {
  border-color: #dcece4;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(33, 83, 70, 0.04);
}

.home-service-rail .nutrition-service-head > span,
.home-service-rail button:nth-child(2) .nutrition-service-head > span,
.home-service-rail button:nth-child(3) .nutrition-service-head > span {
  background: #e8f7f0;
  color: #4a9874;
}

.home-service-rail button.is-unlocked {
  border-color: #cfe7dc;
  background: linear-gradient(145deg, #ffffff, #f5fbf8);
}

.home-service-rail button.is-unlocked .nutrition-service-head > svg {
  color: #42a67d;
}

.home-service-rail button.is-unlocked small {
  color: #58a68f;
  font-weight: 700;
}

.home-service-rail strong { color: #31574d; }
.home-service-rail small { color: #8b9d98; }

/* Member home: a daily service workspace, distinct from the free discovery home. */
.member-home-screen {
  padding-bottom: 174px;
  background: #f6faf8;
}

.member-home-frame.has-home-pending-images .member-home-screen {
  padding-bottom: 244px;
}

.member-home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 1px 10px;
}

.member-home-header > div {
  min-width: 0;
}

.member-home-header strong {
  display: block;
  color: #1d4036;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.member-home-header > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #758a83;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.member-home-header > div > span svg {
  width: 14px;
  height: 14px;
  color: #58a68f;
}

.member-home-header > div > span b {
  color: #bdc9c4;
  font-weight: 500;
}

.member-service-badge {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid #bfe0d3;
  border-radius: 8px;
  background: #e8f7f0;
  color: #358361;
  font-size: 10px;
  font-weight: 900;
}

.member-service-badge svg {
  width: 14px;
  height: 14px;
}

.member-header-report {
  flex: 0 0 auto;
}

.member-header-report.execution-report-menu > button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #d9c47c;
  border-radius: 8px;
  background: #f7e5a8;
  color: #685525;
  font-size: 10.5px;
  font-weight: 900;
}

.member-header-report > button svg {
  width: 14px;
  height: 14px;
}

.member-header-report .execution-report-options {
  right: 0;
  left: auto;
}

.member-home-banner-carousel {
  margin-top: 1px;
}

.member-home-banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.member-home-banner-track::-webkit-scrollbar {
  display: none;
}

.member-home-banner {
  position: relative;
  min-width: 100%;
  height: 152px;
  flex: 0 0 100%;
  overflow: hidden;
  padding: 9px 14px;
  border-radius: 8px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.member-home-banner-kicker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-home-banner-kicker span,
.member-home-banner-kicker small {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 850;
}

.member-home-banner h1 {
  position: relative;
  z-index: 2;
  margin: 6px 0 3px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.member-home-banner > p {
  position: relative;
  z-index: 2;
  width: min(92%, 320px);
  min-height: 30px;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 11px;
  line-height: 1.42;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-home-banner > button {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 3;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 900;
}

.member-home-banner > button svg {
  width: 14px;
  height: 14px;
}

.member-plan-banner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #d7e0c9;
  background: #f2f6e9;
  color: #294b3e;
  box-shadow: 0 8px 18px rgba(70, 93, 57, 0.08);
}

.member-plan-banner .member-home-banner-kicker {
  width: 100%;
}

.member-plan-banner .member-home-banner-kicker span { color: #7b7538; }
.member-plan-banner .member-home-banner-kicker small { color: #5e846f; }
.member-plan-banner h1 { color: #294b3e; }
.member-plan-banner > p {
  color: #62766b;
  -webkit-line-clamp: 2;
}
.member-plan-banner > button {
  margin-top: auto;
  margin-bottom: 3px;
  color: #35775e;
}

.member-plan-banner > b {
  position: absolute;
  right: 9px;
  top: 23px;
  color: rgba(79, 126, 94, 0.08);
  font-size: 88px;
  line-height: 1;
  font-weight: 950;
}

.member-seasonal-banner {
  border: 1px solid #d7e0c9;
  background: #f2f6e9;
  color: #294b3e;
  box-shadow: 0 8px 18px rgba(70, 93, 57, 0.08);
}

.member-seasonal-banner::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -36px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #dce9cf;
}

.member-seasonal-banner .member-home-banner-kicker span { color: #7b7538; }
.member-seasonal-banner .member-home-banner-kicker small { color: #5e846f; }
.member-seasonal-banner h1 { color: #294b3e; }
.member-seasonal-banner > p { color: #62766b; }
.member-seasonal-banner > button { color: #35775e; }

.member-seasonal-banner > button {
  margin-top: 4px;
}

.member-seasonal-banner > svg {
  position: absolute;
  right: 15px;
  bottom: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #78a17a;
  opacity: 0.85;
}

.member-seasonal-actions {
  position: relative;
  z-index: 2;
  width: min(91%, 320px);
  display: flex;
  gap: 6px;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.member-seasonal-actions::-webkit-scrollbar {
  display: none;
}

.member-seasonal-actions span {
  min-width: 0;
  min-height: 29px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 20px max-content;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 5px;
  border: 1px solid #cdddc3;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #58705e;
  box-shadow: 0 3px 8px rgba(67, 104, 77, 0.05);
}

.member-seasonal-actions svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 5px;
  background: #e1eed9;
  color: #5d8d68;
}

.member-seasonal-actions b {
  display: block;
  color: #4f6857;
  font-size: 8.8px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
}

.member-home-banner-dots {
  min-height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-home-banner-carousel + .member-today-menu {
  margin-top: 8px;
}

.member-home-banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: #c8d6d0;
  transition: width 160ms ease, border-radius 160ms ease, background 160ms ease;
}

.member-home-banner-dots button.active {
  width: 19px;
  border-radius: 5px;
  background: #439982;
}

.member-service-hero {
  position: relative;
  z-index: 4;
  overflow: visible;
  padding: 17px;
  border: 1px solid #b8d8cb;
  border-radius: 8px;
  background: #225d4d;
  box-shadow: 0 10px 24px rgba(35, 91, 76, 0.13);
  color: #ffffff;
}

.member-service-hero::after {
  content: "12";
  position: absolute;
  right: 10px;
  top: 12px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 92px;
  line-height: 0.9;
  font-weight: 950;
}

.member-service-hero-head,
.member-service-hero h1,
.member-service-hero > p,
.member-service-basis,
.member-service-hero > button {
  position: relative;
  z-index: 1;
}

.member-service-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-service-hero-head span {
  color: #bfe8d8;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
}

.member-service-hero-head small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: #f2d992;
  color: #624f22;
  font-size: 10px;
  font-weight: 900;
}

.member-service-hero h1 {
  margin: 12px 0 7px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}

.member-service-hero > p {
  max-width: 305px;
  margin: 0;
  color: #dbece5;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 650;
}

.member-service-basis {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.member-service-basis > small {
  display: block;
  color: #b7d7cb;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 750;
}

.member-service-basis > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.member-service-basis span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4fbf8;
  font-size: 10px;
  font-weight: 800;
}

.member-service-hero > button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  color: #ffe5a3;
  font-size: 11px;
  font-weight: 900;
}

.member-service-hero > button svg {
  width: 15px;
  height: 15px;
}

.member-service-hero.is-compact {
  min-height: 0;
  padding: 13px 15px 12px;
}

.member-service-hero.is-compact h1 {
  margin: 8px 0 5px;
  font-size: 21px;
}

.member-service-hero.is-compact > p {
  max-width: 100%;
  display: block;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-service-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.member-service-hero-actions > button,
.execution-report-menu > button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4fbf8;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.member-service-hero-actions > button:last-child {
  border-color: #f0d68e;
  background: #f0d68e;
  color: #624f22;
}

.member-service-hero-actions svg {
  width: 15px;
  height: 15px;
}

.execution-report-menu {
  position: relative;
}

.execution-report-menu > button > svg:last-child {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.execution-report-menu.open > button > svg:last-child {
  transform: rotate(180deg);
}

.execution-report-options {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  width: 252px;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid #d4e5de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(25, 66, 54, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.execution-report-menu:hover .execution-report-options,
.execution-report-menu:focus-within .execution-report-options,
.execution-report-menu.open .execution-report-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.execution-report-options > button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: transparent;
  color: #294c40;
  text-align: left;
}

.execution-report-options > button:hover,
.execution-report-options > button:focus-visible {
  background: #edf7f3;
}

.execution-report-options > button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e4f3ed;
  color: #439982;
}

.execution-report-options > button svg {
  width: 16px;
  height: 16px;
}

.execution-report-options > button div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.execution-report-options strong {
  color: #294c40;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 900;
}

.execution-report-options small {
  color: #7c9189;
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 650;
}

.member-daily-service,
.member-agent-actions,
.member-stage-progress,
.member-attention-section,
.member-next-service,
.member-today-menu {
  margin-top: 20px;
}

.member-section-heading {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 1px;
}

.member-section-heading > div {
  min-width: 0;
}

.member-section-heading > div > span {
  display: block;
  margin-bottom: 3px;
  color: #5ea68d;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 850;
}

.member-section-heading h2 {
  margin: 0;
  color: #23473d;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.member-section-heading > small {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: #879a93;
  font-size: 10px;
  font-weight: 750;
}

.member-daily-service-list {
  overflow: hidden;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 7px 19px rgba(40, 91, 74, 0.05);
}

.member-daily-service-list > button {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid #e5efeb;
  background: #ffffff;
  text-align: left;
}

.member-daily-service-list > button:last-child {
  border-bottom: 0;
}

.member-daily-service-list.is-preparing > button {
  cursor: default;
}

.member-daily-service-list.is-preparing .member-daily-service-copy strong,
.member-attention-list.is-preparing strong {
  color: #526d64;
}

.member-daily-service-list.is-preparing .member-daily-service-copy p,
.member-attention-list.is-preparing p {
  color: #8a9b95;
}

.member-briefing-retry {
  flex: 0 0 auto;
  padding: 4px 0 2px;
  background: transparent;
  color: #4b9879;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 900;
}

.member-daily-service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f0;
  color: #489677;
}

.member-daily-service-list > button:nth-child(2) .member-daily-service-icon {
  background: #fff4df;
  color: #ae7f36;
}

.member-daily-service-list > button:nth-child(3) .member-daily-service-icon {
  background: #fbece6;
  color: #c16e52;
}

.member-daily-service-icon svg {
  width: 19px;
  height: 19px;
}

.member-daily-service-copy {
  min-width: 0;
}

.member-daily-service-copy small,
.member-daily-service-copy strong,
.member-daily-service-copy p {
  display: block;
}

.member-daily-service-copy small {
  color: #67a68f;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.member-daily-service-copy strong {
  margin-top: 4px;
  color: #2e5046;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.member-daily-service-copy p {
  margin: 4px 0 0;
  color: #81928c;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 650;
}

.member-home-meal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.member-home-menu-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 9px;
  padding: 4px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #edf4f0;
}

.member-home-menu-days button {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #71857d;
}

.member-home-menu-days button.active {
  background: #ffffff;
  color: #2d7058;
  box-shadow: 0 3px 10px rgba(41, 88, 72, .08);
}

.member-home-menu-days span {
  font-size: 11px;
  font-weight: 900;
}

.member-home-menu-days small {
  font-size: 8.5px;
  font-weight: 700;
}

.member-next-day-prep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
  padding: 10px 11px;
  border: 1px solid #eadfbe;
  border-radius: 8px;
  background: #fff9e9;
}

.member-next-day-prep > svg {
  width: 18px;
  height: 18px;
  justify-self: center;
  color: #a77d35;
}

.member-next-day-prep small,
.member-next-day-prep strong,
.member-next-day-prep p { display: block; }

.member-next-day-prep small {
  color: #b28c4a;
  font-size: 9px;
  font-weight: 850;
}

.member-next-day-prep strong {
  margin-top: 2px;
  color: #5d5138;
  font-size: 12px;
}

.member-next-day-prep p {
  margin: 3px 0 0;
  color: #88785b;
  font-size: 10px;
  line-height: 1.45;
}

.member-home-meal-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.member-home-meal-tabs[hidden] {
  display: none;
}

.member-menu-context-strip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid #d8e5cd;
  border-radius: 8px;
  background: #f4f8ed;
}

.member-menu-context-strip > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  background: #e3efd8;
  color: #5d8b65;
}

.member-menu-context-strip span,
.member-menu-context-strip p {
  display: block;
}

.member-menu-context-strip span {
  color: #42604e;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 900;
}

.member-menu-context-strip p {
  margin: 3px 0 0;
  color: #748278;
  font-size: 9px;
  line-height: 1.4;
}

.member-home-meal-tabs button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 18px auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 5px;
  padding: 8px 4px;
  border: 1px solid #d9e8e1;
  border-radius: 8px;
  background: #ffffff;
  color: #718b81;
}

.member-home-meal-tabs button.active {
  border-color: #4ba281;
  background: #e9f7f1;
  color: #2f7e61;
  box-shadow: inset 0 0 0 1px rgba(75, 162, 129, 0.1);
}

.member-home-meal-tabs svg {
  width: 17px;
  height: 17px;
  align-self: center;
  grid-row: 1 / 3;
}

.member-home-meal-tabs span {
  color: #31574d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.member-home-meal-tabs small {
  margin-top: 3px;
  color: #879a93;
  font-size: 9px;
  line-height: 1;
  font-weight: 750;
}

.member-home-dish-list {
  overflow: hidden;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(40, 91, 74, 0.045);
}

.member-home-dish-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border-bottom: 1px solid #e5efeb;
}

.member-home-dish-card:last-child {
  border-bottom: 0;
}

.member-home-dish-placeholder {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f0;
  color: #4a9876;
}

.member-home-dish-placeholder svg {
  width: 22px;
  height: 22px;
}

.member-home-dish-card > div {
  min-width: 0;
}

.member-home-dish-card h3 {
  margin: 0 0 5px;
  color: #284c41;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.member-home-dish-card p {
  margin: 3px 0 0;
  color: #7a8e86;
  font-size: 10px;
  line-height: 1.4;
}

.member-home-dish-card p b {
  color: #445f56;
  font-weight: 900;
}

.member-dish-ai-entry {
  width: 42px;
  min-height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 5px 2px;
  border: 1px solid #cae2d7;
  border-radius: 8px;
  background: #edf8f3;
  color: #358364;
}

.member-dish-ai-entry svg {
  width: 19px;
  height: 19px;
}

.member-dish-ai-entry small {
  color: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

.member-home-dish-empty {
  padding: 24px 12px;
  color: #84978f;
  font-size: 11px;
  text-align: center;
}

.member-meal-ai-entry {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 31px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid #c5dfd3;
  border-radius: 8px;
  background: #edf8f3;
  color: #31574d;
  text-align: left;
  box-shadow: 0 5px 14px rgba(40, 91, 74, 0.045);
}

.member-ai-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #dff2e9;
  box-shadow: 0 3px 9px rgba(48, 113, 88, 0.13);
}

.member-ai-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.member-meal-ai-entry > span:nth-child(2) {
  min-width: 0;
}

.member-meal-ai-entry small,
.member-meal-ai-entry strong {
  display: block;
}

.member-meal-ai-entry small {
  color: #6c9a88;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
}

.member-meal-ai-entry strong {
  margin-top: 3px;
  color: #2f6955;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
}

.member-meal-ai-entry p {
  margin: 3px 0 0;
  color: #789087;
  font-size: 9.5px;
  line-height: 1.35;
  font-weight: 650;
}

.member-meal-ai-entry > svg {
  width: 31px;
  height: 31px;
  padding: 7px;
  border-radius: 50%;
  background: #3f9874;
  color: #ffffff;
}

.member-menu-rationale,
.member-care-checkin,
.member-home-chat {
  margin-top: 20px;
}

.member-menu-rationale-card {
  overflow: hidden;
  border: 1px solid #d5e6de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 7px 19px rgba(40, 91, 74, 0.05);
}

.member-menu-rationale-card.is-inline-tab {
  box-shadow: 0 6px 18px rgba(40, 91, 74, 0.045);
}

.member-rationale-context {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.member-rationale-context::-webkit-scrollbar { display: none; }

.member-rationale-context span {
  min-width: max-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  background: #edf5e7;
  color: #557461;
  font-size: 9px;
  font-weight: 800;
}

.member-seasonal-menu-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 10px;
  border-left: 3px solid #79a96f;
  border-radius: 0 7px 7px 0;
  background: #f3f7eb;
}

.member-seasonal-menu-note > svg {
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 50%;
  background: #dfecd5;
  color: #5d8d65;
}

.member-seasonal-menu-note small,
.member-seasonal-menu-note strong {
  display: block;
}

.member-seasonal-menu-note small {
  color: #82917e;
  font-size: 8.5px;
  font-weight: 800;
}

.member-seasonal-menu-note strong {
  margin-top: 3px;
  color: #465f4d;
  font-size: 10px;
  line-height: 1.4;
}

.member-menu-rationale-card > .member-briefing-retry {
  width: calc(100% - 28px);
  min-height: 32px;
  margin: 0 14px 10px;
  border: 1px solid #d2e5dc;
  border-radius: 7px;
  background: #f7fbf9;
  color: #3d8066;
  font-size: 10px;
  font-weight: 850;
}

.member-menu-rationale-copy {
  padding: 14px 14px 12px;
}

.member-menu-rationale-copy > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #2d7058;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.member-menu-rationale-copy > span svg {
  width: 17px;
  height: 17px;
  color: #55a888;
}

.member-menu-rationale-copy > p {
  margin: 8px 0 0;
  color: #60776e;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 650;
}

.member-menu-rationale-copy ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.member-menu-rationale-copy li {
  position: relative;
  padding-left: 15px;
  color: #48645a;
  font-size: 10.5px;
  line-height: 1.45;
}

.member-menu-rationale-copy li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68b194;
}

.member-menu-rationale-card > button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #e2eee8;
  background: #f1f9f5;
  color: #31574d;
  text-align: left;
}

.member-menu-rationale-card > button > span:nth-child(2) {
  min-width: 0;
}

.member-menu-rationale-card > button small,
.member-menu-rationale-card > button strong {
  display: block;
}

.member-menu-rationale-card > button small {
  color: #77958a;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 750;
}

.member-menu-rationale-card > button strong {
  margin-top: 0;
  color: #2f6955;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
}

.member-menu-rationale-card > button > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: #3f9874;
  color: #ffffff;
}

.member-care-card {
  padding: 13px;
  border: 1px solid #d7e7e0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 7px 19px rgba(40, 91, 74, 0.045);
}

.member-care-message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.member-care-message strong {
  display: block;
  color: #294f43;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
}

.member-care-message p {
  margin: 5px 0 0;
  color: #72877f;
  font-size: 10.5px;
  line-height: 1.55;
}

.member-care-choices {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 0 0 2px 50px;
  scrollbar-width: none;
}

.member-care-choices::-webkit-scrollbar {
  display: none;
}

.member-care-choices button {
  min-width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #cde2d8;
  border-radius: 8px;
  background: #f6fbf8;
  color: #3b745f;
  font-size: 10.5px;
  font-weight: 850;
}

.member-care-choices button svg {
  width: 13px;
  height: 13px;
}

.member-home-chat {
  padding: 13px;
  border: 1px solid #cbe1d7;
  border-radius: 8px;
  background: #edf8f3;
  box-shadow: 0 7px 19px rgba(40, 91, 74, 0.045);
}

.member-home-chat.member-home-chat-dock {
  position: absolute;
  right: 10px;
  bottom: 72px;
  left: 10px;
  z-index: 11;
  display: block;
  margin: 0;
  padding: 6px 7px;
  border-color: #439982;
  background: #439982;
  box-shadow: 0 -8px 24px rgba(47, 105, 85, 0.1);
  backdrop-filter: blur(16px);
}

.member-home-chat-dock-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.member-home-chat-dock-head .member-ai-avatar {
  width: 30px;
  height: 30px;
  border-color: rgba(255, 255, 255, 0.78);
}

.member-home-chat-dock-head > span:last-child {
  min-width: 0;
}

.member-home-chat-dock-head strong {
  display: block;
}

.member-home-chat-dock-head strong {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 900;
}

.member-home-chat-dock .pending-images {
  min-height: 62px;
  margin-top: 7px;
  padding: 4px 5px 1px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
}

.member-home-chat-dock .member-home-chat-form {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  margin: 5px 0 0;
  padding: 3px;
  border-color: #cfe4ce;
}

.member-home-chat-field {
  min-width: 0;
  display: block;
  padding: 3px 7px 2px;
}

.member-home-chat-dock .member-home-chat-field input {
  width: 100%;
  height: 34px;
  padding: 0;
  font-size: 11px;
  color: #2f4a3a;
}

.member-home-chat-dock .member-home-chat-field input::placeholder {
  color: rgba(47, 74, 58, 0.54);
}

.member-home-chat-attach {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #43a58e;
  color: #ffffff;
  cursor: pointer;
}

.member-home-chat-attach svg {
  width: 16px;
  height: 16px;
}

.member-home-chat-dock .member-home-chat-form button {
  width: 34px;
  height: 34px;
  background: #43a58e;
}

.member-home-chat-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.member-home-chat-head small {
  display: block;
  color: #63907f;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
}

.member-home-chat-head h2 {
  margin: 3px 0 0;
  color: #285343;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.health-report-frame {
  background: #f3f8f5;
}

.health-report-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #f3f8f5;
}

.health-report-header {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #dfeae4;
  background: rgba(255, 255, 255, 0.94);
}

.health-report-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d2e3db;
  border-radius: 8px;
  background: #ffffff;
  color: #315e4d;
}

.health-report-header button svg {
  width: 18px;
  height: 18px;
}

.health-report-header h1 {
  margin: 0;
  color: #203f34;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
}

.health-report-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.health-report-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 17px 14px;
  border-radius: 8px;
  background: #245f4d;
  color: #f6fbf8;
  box-shadow: 0 10px 25px rgba(36, 95, 77, 0.16);
}

.health-report-hero::after {
  content: "档案";
  position: absolute;
  right: -7px;
  bottom: -13px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
}

.health-report-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f0d68e;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
}

.health-report-kicker svg {
  width: 14px;
  height: 14px;
}

.health-report-hero h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 950;
}

.health-report-hero > p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 8px 0 0;
  color: #d7e9e1;
  font-size: 11.5px;
  line-height: 1.65;
}

.health-report-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #bad6ca;
  font-size: 9.5px;
  line-height: 1.3;
}

.health-report-summary,
.health-report-analysis {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8e7e0;
  border-radius: 8px;
  background: #ffffff;
}

.health-report-section-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7efeb;
}

.health-report-section-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5ef;
  color: #3b8668;
  font-size: 11px;
  font-weight: 900;
}

.health-report-section-title small {
  display: block;
  color: #8aa097;
  font-size: 8.5px;
  line-height: 1.1;
  font-weight: 800;
}

.health-report-section-title h2 {
  margin: 3px 0 0;
  color: #294e40;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.health-report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e2ece7;
  border-radius: 8px;
  background: #e2ece7;
}

.health-report-stat-grid > div {
  min-height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  background: #f8fbf9;
}

.health-report-stat-grid small {
  color: #84978f;
  font-size: 9px;
  line-height: 1.2;
}

.health-report-stat-grid strong {
  margin-top: 4px;
  color: #294e40;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.health-report-focus-row {
  margin-top: 11px;
}

.health-report-focus-row > small {
  display: block;
  color: #698276;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
}

.health-report-focus-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.health-report-focus-row span,
.health-report-focus-row em {
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf7f2;
  color: #3c735d;
  font-size: 9.5px;
  line-height: 1.25;
  font-style: normal;
}

.health-report-content {
  display: block;
  margin-top: 3px;
  padding: 0 2px;
}

.health-report-content .ai-section-title {
  margin: 16px 0 7px;
  color: #245f4d;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 950;
}

.health-report-content .ai-section-title:first-child {
  margin-top: 10px;
}

.health-report-content .ai-numbered-line,
.health-report-content .ai-text-line {
  display: block;
  margin-top: 6px;
  color: #4c6158;
  font-size: 11.5px;
  line-height: 1.72;
}

.health-report-content .ai-numbered-line {
  padding-left: 2px;
}

.health-report-content .ai-response-space {
  height: 3px;
}

.health-report-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #799088;
  text-align: center;
}

.health-report-empty svg {
  width: 28px;
  height: 28px;
  color: #6aa78f;
}

.health-report-empty strong {
  margin-top: 9px;
  color: #365b4d;
  font-size: 13px;
}

.health-report-empty p {
  max-width: 260px;
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
}

.health-report-plan-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #e6cb7a;
  border-radius: 8px;
  background: #fff8e5;
}

.health-report-plan-match small {
  color: #95752c;
  font-size: 9.5px;
  font-weight: 850;
}

.health-report-plan-match h2 {
  margin: 4px 0 0;
  color: #4f421f;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.health-report-plan-match p {
  margin: 6px 0 0;
  color: #7b6c45;
  font-size: 10px;
  line-height: 1.55;
}

.health-report-plan-match button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #245f4d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.health-report-plan-match button svg {
  width: 14px;
  height: 14px;
}

.health-report-disclaimer {
  margin: 14px 8px 0;
  color: #8b9a94;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.member-home-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid #c7ded4;
  border-radius: 8px;
  background: #ffffff;
}

.member-home-chat-form input {
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #294f43;
  font: inherit;
  font-size: 11px;
}

.member-home-chat-form input::placeholder {
  color: #93a49e;
}

.member-home-chat-form button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #3e9874;
  color: #ffffff;
}

.member-home-chat-form button svg {
  width: 18px;
  height: 18px;
}

.member-home-chat-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 9px;
  scrollbar-width: none;
}

.member-home-chat-chips::-webkit-scrollbar {
  display: none;
}

.member-home-chat-chips button {
  min-width: max-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #cfe2da;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #3c705e;
  font-size: 10px;
  font-weight: 850;
}

.member-home-chat-chips svg {
  width: 14px;
  height: 14px;
  color: #4b9d7d;
}

.member-home-meal-grid > button {
  min-width: 0;
  min-height: 100px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 10px 5px 8px;
  border: 1px solid #d9e8e1;
  border-radius: 8px;
  background: #ffffff;
  color: #31574d;
  text-align: center;
  box-shadow: 0 5px 14px rgba(40, 91, 74, 0.035);
}

.member-home-meal-grid > button > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f0;
  color: #479573;
}

.member-home-meal-grid > button:nth-child(2) > span {
  background: #fff3dc;
  color: #a97a35;
}

.member-home-meal-grid > button:nth-child(3) > span {
  background: #e9f1f6;
  color: #587f93;
}

.member-home-meal-grid > button:nth-child(4) > span {
  background: #faebe6;
  color: #bc7058;
}

.member-home-meal-grid svg {
  width: 17px;
  height: 17px;
}

.member-home-meal-grid small {
  color: #7d9189;
  font-size: 9px;
  font-weight: 750;
}

.member-home-meal-grid strong {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  color: #31574d;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-recipe-agent-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #cde3d9;
  border-radius: 8px;
  background: #eef8f3;
}

.member-recipe-agent-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #3f9874;
  color: #ffffff;
}

.member-recipe-agent-card > span svg {
  width: 20px;
  height: 20px;
}

.member-recipe-agent-card > div:nth-child(2) {
  min-width: 0;
}

.member-recipe-agent-card strong {
  display: block;
  color: #285344;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.member-recipe-agent-card p {
  margin: 4px 0 0;
  color: #718b81;
  font-size: 10.5px;
  line-height: 1.5;
}

.member-recipe-agent-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 1px;
}

.member-recipe-agent-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #bcdaca;
  border-radius: 8px;
  background: #ffffff;
  color: #3a8063;
  font-size: 11px;
  font-weight: 900;
}

.member-recipe-agent-actions button:last-child {
  border-color: #438f70;
  background: #438f70;
  color: #ffffff;
}

.member-recipe-agent-actions svg {
  width: 15px;
  height: 15px;
}

.member-agent-action-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 1px 4px;
  scrollbar-width: none;
}

.member-agent-action-rail::-webkit-scrollbar {
  display: none;
}

.member-agent-action-rail button {
  min-width: max-content;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d2e5dc;
  border-radius: 8px;
  background: #ffffff;
  color: #3f6e5e;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(44, 91, 73, 0.035);
}

.member-agent-action-rail button svg {
  width: 15px;
  height: 15px;
  color: #58a68f;
}

.member-stage-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(44, 91, 71, 0.04);
}

.member-stage-month {
  width: 54px;
  height: 56px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 8px;
  background: #e8f7f0;
  color: #449370;
}

.member-stage-month b {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.member-stage-month small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
}

.member-stage-card > span:nth-child(2) {
  min-width: 0;
}

.member-stage-card > span:nth-child(2) > strong,
.member-stage-card > span:nth-child(2) > small,
.member-stage-card > span:nth-child(2) > i {
  display: block;
}

.member-stage-card > span:nth-child(2) > strong {
  color: #294c41;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.member-stage-card > span:nth-child(2) > small {
  margin-top: 5px;
  color: #84968f;
  font-size: 10px;
  line-height: 1.3;
}

.member-stage-card > span:nth-child(2) > i {
  height: 4px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 3px;
  background: #e8efec;
}

.member-stage-card > span:nth-child(2) > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #59b58b;
}

.member-stage-card > svg {
  width: 17px;
  height: 17px;
  color: #4a9874;
}

.member-attention-section .member-section-heading button {
  padding-bottom: 2px;
  background: transparent;
  color: #58a68f;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 850;
}

.member-attention-list {
  overflow: hidden;
  border-top: 1px solid #dfeae5;
}

.member-attention-list > button,
.member-attention-placeholder-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px;
  align-items: start;
  gap: 9px;
  padding: 11px 1px;
  border-bottom: 1px solid #e2ece7;
  background: transparent;
  text-align: left;
}

.member-attention-list > button > div,
.member-attention-placeholder-row > div {
  min-width: 0;
}

.member-preparing-mark {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  align-self: center;
  border-radius: 50%;
  background: #edf5f1;
}

.member-preparing-mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #73a18f;
  animation: member-preparing-pulse 1.2s ease-in-out infinite;
}

.member-preparing-mark i:nth-child(2) {
  animation-delay: 0.16s;
}

.member-preparing-mark i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes member-preparing-pulse {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

.member-attention-list strong {
  display: block;
  color: #31574d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 850;
}

.member-attention-list p {
  margin: 5px 0 0;
  color: #7b8f87;
  font-size: 10.5px;
  line-height: 1.45;
}

.member-ai-entry-mark {
  display: grid;
  justify-items: center;
  align-self: center;
  gap: 3px;
  color: #418c6e;
}

.member-ai-entry-mark > span {
  position: relative;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #dff2e9;
  box-shadow: 0 2px 8px rgba(48, 113, 88, 0.14);
}

.member-ai-entry-mark > span::after {
  content: "AI";
  position: absolute;
  right: -1px;
  bottom: -1px;
  min-width: 13px;
  height: 10px;
  padding: 0 2px;
  border-radius: 5px;
  background: #3d9873;
  color: #ffffff;
  font-size: 6px;
  line-height: 10px;
  font-weight: 950;
  text-align: center;
}

.member-ai-entry-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.member-ai-entry-mark small {
  max-width: 52px;
  overflow: hidden;
  font-size: 8.5px;
  line-height: 1.1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-attention-chat {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #286b56;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 7px 18px rgba(37, 104, 83, 0.14);
}

.member-attention-chat > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.member-attention-chat svg {
  width: 17px;
  height: 17px;
}

.member-attention-chat strong {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
}

.member-next-service > div:last-child {
  overflow: hidden;
  border: 1px solid #e0e9e5;
  border-radius: 8px;
  background: #fdfbf5;
}

.member-next-service article {
  min-height: 51px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid #ebe7da;
}

.member-next-service article:last-child {
  border-bottom: 0;
}

.member-next-service article span {
  color: #a17b3d;
  font-size: 10px;
  font-weight: 900;
}

.member-next-service article strong {
  color: #4b554f;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}

@media (max-width: 360px) {
  .member-home-header strong { font-size: 18px; }
  .member-service-badge { padding: 0 7px; }
  .member-service-hero { padding: 15px; }
  .member-service-hero h1 { font-size: 22px; }
  .member-daily-service-copy strong { font-size: 13px; }
}

/* Plan as a primary tab */
.plan-tab-frame .plan-detail-screen {
  overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) 14px 92px;
}

.plan-tab-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 9px;
}

.plan-tab-header span,
.plan-tab-header h1 {
  display: block;
}

.plan-tab-header span {
  color: #728078;
  font-size: 11px;
  font-weight: 750;
}

.plan-tab-header h1 {
  margin: 4px 0 0;
  color: #263a30;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 900;
}

.plan-tab-header > small {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d7e3da;
  border-radius: 7px;
  background: #f4f8f5;
  color: #557662;
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 360px) {
  .seasonal-hero {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .seasonal-hero-copy p {
    max-width: 218px;
  }

  .seasonal-character img {
    width: 126px;
  }
}

/* Seven-day plan detail */
.plan-detail-screen {
  padding-inline: 14px;
}

.plan-detail-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
}

.plan-detail-header .flow-header-spacer {
  width: 36px;
}

.plan-detail-header h1 {
  margin: 0;
  font-size: 18px;
}

.plan-detail-banner {
  height: 164px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #eaf7ee;
  box-shadow: 0 8px 22px rgba(40, 99, 72, 0.08);
}

.plan-detail-banner > div {
  width: 56%;
  padding: 18px;
  background: linear-gradient(90deg, rgba(239, 250, 242, 0.98) 0%, rgba(239, 250, 242, 0.88) 58%, rgba(239, 250, 242, 0) 100%);
}

.plan-detail-banner span {
  color: #418866;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.plan-detail-banner strong {
  margin-top: 8px;
  color: #174d36;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 900;
}

.plan-profile-card {
  padding: 13px;
  border-radius: 17px;
  box-shadow: 0 6px 18px rgba(44, 91, 71, 0.04);
}

.plan-profile-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-profile-identity small,
.plan-profile-identity strong {
  display: block;
}

.plan-profile-identity small {
  color: #91a29b;
  font-size: 11px;
  font-weight: 700;
}

.plan-profile-identity strong {
  margin-top: 3px;
  color: #244f40;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.gender-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #eef8f2;
  color: #4a9874;
  font-size: 11px;
  font-weight: 800;
}

.gender-chip svg {
  width: 13px;
  height: 13px;
}

.plan-profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

.plan-profile-stats > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 2px;
  border-radius: 10px;
  background: #f7faf8;
}

.plan-profile-stats small {
  color: #8da099;
  font-size: 10px;
  line-height: 1.2;
}

.plan-profile-stats b {
  color: #2d5749;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.plan-profile-stats em {
  margin-left: 2px;
  color: #82968e;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.plan-profile-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.plan-profile-insights article {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #fff8ed;
}

.plan-profile-insights article:last-child {
  background: #eff8f2;
}

.plan-profile-insights article > div {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #bb763d;
}

.plan-profile-insights article:last-child > div {
  color: #4b9470;
}

.plan-profile-insights svg {
  width: 15px;
  height: 15px;
}

.plan-profile-insights strong {
  font-size: 12px;
  line-height: 1.2;
}

.plan-profile-insights p {
  margin: 6px 0 0;
  color: #536a61;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.plan-detail-screen .section-heading {
  display: block;
  margin-bottom: 7px;
}

.plan-detail-screen .section-heading h2 {
  margin: 0;
  color: #224b3e;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

.plan-detail-screen .plan-calendar,
.plan-detail-screen .meal-section,
.plan-detail-screen .therapy-section {
  margin-top: 16px;
}

.plan-calendar-grid {
  gap: 5px;
}

.plan-calendar-day {
  min-height: 53px;
  display: grid;
  place-items: center;
  padding: 0 2px;
  border-radius: 11px;
  text-align: center;
}

.plan-calendar-day strong {
  color: #547066;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
}

.plan-calendar-day.active {
  border-color: #71bc43;
  background: #edf8df;
  box-shadow: 0 4px 10px rgba(89, 150, 52, 0.12);
}

.plan-calendar-day.active strong {
  color: #4f8527;
}

.meal-groups {
  gap: 10px;
}

.meal-group {
  padding: 11px;
  border-radius: 16px;
}

.meal-group-title {
  margin-bottom: 8px;
}

.meal-group-title > span {
  width: 30px;
  height: 30px;
}

.meal-group-title strong {
  font-size: 15px;
}

.recipe-tile {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #edf2ef;
  border-radius: 13px;
  background: #f9fbfa;
}

.recipe-tile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  list-style: none;
  cursor: pointer;
}

.recipe-tile summary::-webkit-details-marker {
  display: none;
}

.recipe-tile summary > img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: #e5f1e9;
}

.recipe-tile summary > div {
  min-width: 0;
  flex: 1;
}

.recipe-tile summary strong,
.recipe-tile summary small,
.recipe-tile summary em {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-tile summary strong {
  color: #284f41;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.recipe-tile summary small,
.recipe-tile summary em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 12px;
  line-height: 1.45;
}

.recipe-tile summary small {
  margin-top: 6px;
  color: #687c74;
}

.recipe-tile summary em {
  margin-top: 3px;
  color: #c57c42;
  font-style: normal;
}

.recipe-tile summary b {
  margin-right: 0;
  color: #263c34;
  font-size: inherit;
  font-weight: 800;
}

.recipe-tile summary > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #9cafA6;
  transition: transform 180ms ease;
}

.recipe-tile[open] summary > svg {
  transform: rotate(180deg);
}

.recipe-method {
  padding: 12px 13px 14px;
  border-top: 1px solid #e9f0ec;
  background: #ffffff;
}

.recipe-method > strong {
  color: #315b4c;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.recipe-method ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 19px;
}

.recipe-method li {
  padding-left: 2px;
  color: #5f746b;
  font-size: 13px;
  line-height: 1.62;
  font-weight: 600;
}

.therapy-list {
  gap: 8px;
}

@media (max-width: 360px) {
  .plan-detail-banner > div {
    width: 60%;
    padding: 14px;
  }

  .plan-detail-banner strong {
    font-size: 19px;
  }

  .plan-profile-insights {
    grid-template-columns: 1fr;
  }

  .recipe-tile summary > img {
    width: 70px;
    height: 70px;
  }
}

/* Conversational AI nutritionist creation */
.agent-creation-intro {
  margin: 0 0 18px 43px;
}

.creation-welcome-row .message-bubble {
  max-width: calc(100% - 62px);
}

.agent-creation-story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 18px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 10px 8px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.agent-creation-story-rail::-webkit-scrollbar {
  display: none;
}

.agent-creation-story {
  min-width: 0;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(50, 111, 89, 0.1);
  border-radius: 8px;
  background: #f7faf7;
  padding: 15px;
  scroll-snap-align: start;
}

.agent-creation-story.is-intro > img {
  width: calc(100% + 30px);
  height: 162px;
  display: block;
  margin: -15px -15px 15px;
  object-fit: cover;
  object-position: 50% 22%;
}

.agent-creation-story > span,
.agent-creation-story-head span {
  color: #31846c;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
}

.agent-creation-story h2 {
  margin: 6px 0 0;
  color: #1f493d;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
}

.agent-creation-story > p {
  margin: 9px 0 0;
  color: #667d74;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 600;
}

.agent-creation-story.is-intro > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.agent-creation-story.is-intro small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #e8f5ef;
  padding: 6px 8px;
  color: #417765;
  font-size: 10px;
  font-weight: 750;
}

.agent-creation-story.is-intro small svg {
  width: 13px;
  height: 13px;
}

.agent-creation-story-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.agent-creation-story-head img {
  width: 78px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 24%;
}

.agent-creation-story-head h2 {
  font-size: 17px;
}

.agent-creation-story ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.agent-creation-story li {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 47px;
}

.agent-creation-story li > svg {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #edf6f1;
  padding: 7px;
  color: #418f73;
}

.agent-creation-story li strong,
.agent-creation-story li small {
  display: block;
}

.agent-creation-story li strong {
  color: #294f43;
  font-size: 12.5px;
  line-height: 1.35;
}

.agent-creation-story li small {
  margin-top: 2px;
  color: #7b8d86;
  font-size: 10.5px;
  line-height: 1.4;
}

.agent-creation-story-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 10px;
}

.agent-creation-story-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9cbc4;
}

.agent-creation-story-dots i:first-child {
  width: 18px;
  border-radius: 99px;
  background: #55ad8d;
}

.agent-creation-intro > button {
  position: relative;
  width: calc(100% - 10px);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #338d70;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(40, 116, 91, 0.18);
}

.agent-creation-intro > button svg {
  position: absolute;
  right: 14px;
  width: 17px;
  height: 17px;
}

.agent-creation-intro > button span {
  width: 100%;
  text-align: center;
}

.creation-question-row {
  margin-top: 3px;
}

.creation-question-card {
  width: calc(100% - 43px);
  border: 1px solid rgba(44, 112, 88, 0.11);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(41, 81, 67, 0.07);
}

.creation-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creation-question-meta span {
  color: #38856d;
  font-size: 11px;
  font-weight: 850;
}

.creation-question-meta small {
  color: #92a29c;
  font-size: 10px;
  font-weight: 750;
}

.creation-question-progress {
  height: 4px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 99px;
  background: #edf3ef;
}

.creation-question-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #57b494;
}

.creation-question-card h2 {
  margin: 13px 0 0;
  color: #213f36;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
}

.creation-question-hint {
  margin: 9px 0 0;
  color: #81918b;
  font-size: 11px;
}

.creation-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.creation-choice {
  position: relative;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #e1ebe6;
  border-radius: 8px;
  background: #f8faf8;
  padding: 8px 9px;
  color: #4f665e;
  cursor: pointer;
}

.creation-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creation-choice span {
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 700;
}

.creation-choice > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0;
  color: #2b8f6d;
}

.creation-choice.active {
  border-color: #5cb594;
  background: #eaf7f1;
  color: #246f57;
}

.creation-choice.active > svg {
  opacity: 1;
}

.creation-question-error {
  min-height: 15px;
  margin-top: 6px;
  color: #bf4f54;
  font-size: 10.5px;
}

.creation-question-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.creation-question-actions button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 800;
}

.creation-skip {
  border: 1px solid #dfe9e4;
  background: #ffffff;
  color: #71847c;
}

.creation-confirm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #3d9b78;
  color: #ffffff;
}

.creation-confirm svg {
  width: 14px;
  height: 14px;
}

.agent-screen .composer.creation-composer {
  grid-template-columns: minmax(0, 1fr) 68px;
}

.creation-composer-unit {
  flex: 0 0 auto;
  padding-right: 12px;
  color: #6e837b;
  font-size: 12px;
  font-weight: 750;
}

.creation-saving-row {
  margin-top: 8px;
}

@media (max-width: 360px) {
  .agent-creation-story {
    min-height: 365px;
  }

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

/* Stacked creation story and completion flow */
.agent-creation-intro {
  margin: 0 0 18px;
}

.creation-story-row .agent-creation-story {
  width: calc(100% - 43px);
  min-height: 0;
  padding: 14px;
}

.creation-story-row .agent-creation-story-head {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.creation-story-row .agent-creation-story-head img {
  width: 92px;
  height: 118px;
  border-radius: 8px;
  background: #edf5f0;
  object-fit: contain;
  object-position: center bottom;
}

.creation-story-row .agent-creation-story-head h2 {
  font-size: 17px;
  line-height: 1.38;
}

.creation-story-row .agent-creation-story ul {
  margin-top: 12px;
}

.creation-story-row .agent-creation-story li {
  min-height: 43px;
}

.creation-story-row .agent-creation-story.is-intro small {
  display: block;
  margin-top: 2px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #7b8d86;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 600;
}

.agent-creation-intro > button {
  width: calc(100% - 78px);
  margin: 3px 35px 0 43px;
  padding: 0 40px;
  white-space: nowrap;
}

.creation-transition-card {
  width: calc(100% - 43px);
  border: 1px solid rgba(52, 131, 101, 0.13);
  border-radius: 8px;
  background: #f5faf7;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 22px rgba(41, 81, 67, 0.07);
}

.creation-transition-card h2 {
  margin: 0;
  color: #20483b;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 900;
}

.creation-transition-card p {
  margin: 9px 0 0;
  color: #687e75;
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 600;
}

.creation-transition-card button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  border-radius: 8px;
  background: #3c9674;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.creation-transition-card button svg {
  width: 15px;
  height: 15px;
}

.creation-style-choice-card {
  width: calc(100% - 43px);
  border: 1px solid #dcece4;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef9f3, #ffffff 78%);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(41, 91, 70, 0.06);
}

.creation-style-choice-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #def3e8;
  color: #489571;
}

.creation-style-choice-icon svg {
  width: 18px;
  height: 18px;
}

.creation-style-choice-card > small {
  color: #58a68f;
  font-size: 10.5px;
  font-weight: 800;
}

.creation-style-choice-card h2 {
  margin: 5px 0 0;
  color: #244f40;
  font-size: 17px;
  line-height: 1.4;
}

.creation-style-choice-card > p {
  margin: 7px 0 0;
  color: #718680;
  font-size: 11.5px;
  line-height: 1.6;
}

.creation-style-choice-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.creation-style-choice-actions button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.creation-style-choice-actions button svg {
  width: 15px;
  height: 15px;
}

.creation-style-choice-actions .primary {
  background: #3d9d72;
  color: #ffffff;
}

.creation-style-choice-actions .secondary {
  border: 1px solid #cfe6dc;
  background: #ffffff;
  color: #43866a;
}

.creation-basic-fields {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.creation-basic-fields > label,
.creation-basic-fields fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.creation-basic-fields > label > span:first-child,
.creation-basic-fields legend {
  display: block;
  margin-bottom: 6px;
  color: #6f867c;
  font-size: 11px;
  font-weight: 750;
}

.creation-basic-age {
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #ffffff;
}

.creation-basic-age input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: #f8faf9;
  padding: 0 10px;
  color: #31574d;
  font-size: 13px;
}

.creation-basic-age em {
  display: grid;
  place-items: center;
  border-left: 1px solid #dce9e3;
  background: #eef6f2;
  color: #718680;
  font-size: 11px;
  font-style: normal;
}

.creation-basic-fields fieldset > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.creation-basic-fields .creation-choice {
  min-height: 40px;
}

.creation-member-profile-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.creation-member-profile-fields > label,
.creation-member-profile-fields fieldset,
.creation-profile-basic-row > label,
.creation-profile-basic-row fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.creation-member-profile-fields label > span:first-child,
.creation-member-profile-fields legend {
  display: block;
  margin-bottom: 6px;
  color: #647d70;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 800;
}

.creation-profile-name input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  outline: 0;
  background: #f8faf9;
  color: #31574d;
  font-size: 12.5px;
}

.creation-profile-basic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.creation-profile-basic-row fieldset > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.creation-profile-basic-row .creation-choice {
  min-height: 40px;
  justify-content: center;
}

.creation-profile-goals legend em {
  margin-left: 5px;
  color: #8da097;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
}

.creation-profile-goals > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.creation-profile-goals .creation-choice:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.creation-member-profile-fields + .creation-question-error + .creation-question-actions .creation-confirm {
  width: 100%;
  justify-content: center;
  min-height: 40px;
}

.creation-summary-row {
  margin-top: 0;
  margin-bottom: 12px;
}

.creation-summary-card {
  overflow: hidden;
  border: 1px solid rgba(45, 116, 89, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 77, 62, 0.07);
}

.creation-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edf7f1;
  padding: 14px;
}

.creation-summary-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffffff;
  color: #39886b;
}

.creation-summary-head svg {
  width: 18px;
  height: 18px;
}

.creation-summary-head small,
.creation-summary-head h2 {
  display: block;
  margin: 0;
}

.creation-summary-head small {
  color: #6d887c;
  font-size: 10.5px;
  font-weight: 700;
}

.creation-summary-head h2 {
  margin-top: 2px;
  color: #245141;
  font-size: 15px;
  line-height: 1.35;
}

.creation-summary-section {
  padding: 12px 14px 0;
}

.creation-summary-section strong,
.creation-summary-grid small {
  color: #3e725f;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 850;
}

.creation-summary-section p,
.creation-summary-grid p {
  margin: 5px 0 0;
  color: #536b62;
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 600;
}

.creation-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
}

.creation-summary-grid > div {
  min-width: 0;
  border-radius: 8px;
  background: #f7f9f7;
  padding: 10px;
}

.creation-plan-row {
  margin-bottom: 18px;
}

.created-plan-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  border: 1px solid #dce9e2;
  border-radius: 8px;
  background: #f8faf7;
  padding: 11px;
  color: #264f41;
  text-align: left;
}

.created-plan-day {
  width: 48px;
  height: 55px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 8px;
  background: #deefe4;
  color: #378060;
}

.created-plan-day strong {
  font-size: 20px;
  line-height: 1;
}

.created-plan-day small {
  margin-top: 3px;
  font-size: 10px;
}

.created-plan-card > span:nth-child(2) {
  min-width: 0;
}

.created-plan-card > span:nth-child(2) small,
.created-plan-card > span:nth-child(2) strong,
.created-plan-card > span:nth-child(2) em {
  display: block;
}

.created-plan-card > span:nth-child(2) small {
  color: #799087;
  font-size: 10px;
}

.created-plan-card > span:nth-child(2) strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.created-plan-card > span:nth-child(2) em {
  margin-top: 5px;
  color: #638176;
  font-size: 10.5px;
  font-style: normal;
}

.created-plan-card > svg {
  width: 17px;
  height: 17px;
  justify-self: end;
  color: #4d9378;
}

.guided-plan-ready-message {
  width: 100%;
  margin-top: 2px;
  padding: 12px 13px;
  border: 1px solid #d8ebe2;
  border-radius: 18px 18px 18px 6px;
  background: #f2f9f5;
}

.guided-plan-ready-message p {
  margin: 0;
  color: #49665b;
  font-size: 13px;
  line-height: 1.7;
}

.member-generated-plan-card {
  margin-top: 2px;
  border-color: #a9d4c0;
  background: linear-gradient(135deg, #e6f5ed, #f8fbf6);
  box-shadow: 0 8px 18px rgba(46, 126, 91, .09);
}

.member-generated-plan-card .created-plan-day {
  background: #3f9874;
  color: #ffffff;
}

.agent-screen .composer.creation-composer.has-unit .composer-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 0;
  background: #ffffff;
}

.agent-screen .composer.creation-composer.has-unit .composer-field input {
  width: 100%;
  padding: 0 12px;
  background: #f8faf8;
}

.agent-screen .composer.creation-composer.has-unit .creation-composer-unit {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid #dce7e2;
  background: #eef4f1;
  padding: 0;
  color: #526d63;
}

@media (max-width: 360px) {
  .creation-story-row .agent-creation-story-head {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .creation-story-row .agent-creation-story-head img {
    width: 78px;
    height: 105px;
  }

  .creation-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact first-screen introduction */
.creation-story-row .agent-creation-story.is-combined {
  padding: 12px;
}

.creation-story-row .is-combined .agent-creation-story-head {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 11px;
}

.creation-story-row .is-combined .agent-creation-story-head img {
  width: 86px;
  height: 104px;
}

.creation-story-row .is-combined .agent-creation-story-head h2 {
  font-size: 16.5px;
  line-height: 1.35;
}

.creation-story-row .is-combined ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.creation-story-row .is-combined li {
  min-height: 48px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  border-radius: 8px;
  background: #f2f7f4;
  padding: 7px;
}

.creation-story-row .is-combined li > svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  background: #ffffff;
}

.creation-story-row .is-combined li strong {
  font-size: 11.5px;
}

.creation-story-row .is-combined li small {
  font-size: 9.5px;
  line-height: 1.3;
}

.agent-screen .composer.creation-composer input:focus,
.agent-screen .composer.creation-composer input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.agent-screen .composer.creation-composer.has-unit .composer-field:focus-within {
  border-color: rgba(26, 45, 40, 0.08);
  box-shadow: none;
}

@media (max-width: 360px) {
  .creation-story-row .is-combined .agent-creation-story-head {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .creation-story-row .is-combined .agent-creation-story-head img {
    width: 74px;
    height: 94px;
  }
}

/* Execution report v3: clear service-report cards and readable mobile rhythm. */
.execution-report-frame {
  background: #edf7f2;
}

.execution-report-screen {
  background: #f4f8f6;
}

.execution-report-header {
  height: 56px;
  flex-basis: 56px;
  border-bottom-color: #dce8e2;
}

.execution-report-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #175a47;
  font-size: 18px;
}

.execution-report-header h1 svg {
  width: 14px;
  height: 14px;
  color: #79b99a;
}

.execution-report-header h1 svg:last-child {
  transform: scaleX(-1);
}

.execution-report-scroll {
  padding: 10px 12px max(22px, env(safe-area-inset-bottom));
  background: #f4f8f6;
}

.execution-report-tabs {
  gap: 3px;
  padding: 3px;
  border-color: #dbe5e0;
  border-radius: 22px;
  background: #eef2f0;
}

.execution-report-tabs button {
  min-height: 38px;
  border-radius: 19px;
  color: #7d8984;
  font-size: 12px;
}

.execution-report-tabs button.active {
  background: #439982;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(67, 153, 130, 0.2);
}

.execution-report-hero {
  min-height: 190px;
  margin-top: 11px;
  padding: 16px;
  border: 1px solid #2f806a;
  border-radius: 8px;
  background: linear-gradient(140deg, #226b57 0%, #318b70 100%);
  box-shadow: 0 8px 20px rgba(31, 105, 83, 0.12);
}

.execution-report-hero::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -25px;
  width: 118px;
  height: 118px;
  border: 22px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.execution-report-hero-top > span {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #e4f5ee;
}

.execution-report-hero-top small {
  color: #e0eee9;
  font-size: 10px;
}

.execution-report-hero h2 {
  max-width: 320px;
  margin: 16px 0 7px;
  font-size: 20px;
  line-height: 1.34;
}

.execution-report-hero > p {
  max-width: 325px;
  color: #e1f0eb;
  font-size: 12px;
  line-height: 1.68;
}

.execution-report-status {
  margin-top: 13px;
  padding: 6px 9px;
  border-color: rgba(255, 237, 178, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff5ce;
  font-size: 10.5px;
}

.execution-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
  border: 0;
  background: transparent;
}

.execution-report-metrics > div {
  min-height: 82px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 5px;
  padding: 9px 7px;
  border: 1px solid #e0e9e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 13px rgba(48, 82, 69, 0.06);
  text-align: left;
}

.execution-report-metrics > div + div {
  border-left: 1px solid #e0e9e4;
}

.execution-report-metrics > div > span {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #e5f3ed;
  color: #439982;
}

.execution-report-metrics > div:nth-child(2) > span { background: #f0f5df; color: #7ea75e; }
.execution-report-metrics > div:nth-child(3) > span { background: #e5eff8; color: #5790bc; }
.execution-report-metrics > div:nth-child(4) > span { background: #e7f5ea; color: #4ba56b; }
.execution-report-metrics svg { width: 14px; height: 14px; }
.execution-report-metrics strong { font-size: 15px; line-height: 1.1; }
.execution-report-metrics small { color: #73867d; font-size: 9px; line-height: 1.3; }

.execution-report-section,
.execution-report-section + .execution-report-section {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(48, 82, 69, 0.05);
}

.execution-report-section > header {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 11px;
  border-bottom: 1px solid #e7eeea;
}

.execution-report-section > header > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  background: #e5f3ed;
  color: #439982;
  font-size: 10px;
}

.execution-report-section h2 {
  color: #214d40;
  font-size: 15px;
  line-height: 1.3;
}

.execution-report-section header p {
  margin-top: 3px;
  color: #84958e;
  font-size: 10.5px;
  line-height: 1.4;
}

.execution-timeline {
  padding-top: 6px;
}

.execution-timeline::before {
  left: 68px;
}

.execution-timeline article {
  grid-template-columns: 48px 31px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.execution-timeline article > span {
  width: 31px;
  height: 31px;
}

.execution-timeline time { padding-top: 6px; font-size: 10.5px; }
.execution-timeline strong { color: #235244; font-size: 13px; }
.execution-timeline p { margin-top: 4px; color: #64776f; font-size: 11.5px; line-height: 1.65; }

.execution-insight-list article {
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 9px;
  margin-top: 9px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: #f1f7f4;
}

.execution-insight-list article + article {
  border-top: 0;
}

.execution-insight-list svg {
  width: 35px;
  height: 35px;
  padding: 8px;
  border-radius: 50%;
  background: #ffffff;
  color: #439982;
}

.execution-insight-list strong { color: #245244; font-size: 13px; }
.execution-insight-list p { margin-top: 4px; color: #61766d; font-size: 11.5px; line-height: 1.65; }
.execution-insight-list small { margin-top: 5px; color: #ba7631; font-size: 9.5px; line-height: 1.45; }

.execution-service-list article {
  grid-template-columns: 26px 50px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 0;
}

.execution-service-list article > svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #e6f4ee;
  color: #439982;
}

.execution-service-list span {
  padding: 3px 5px;
  border: 1px solid #b9dfd1;
  border-radius: 5px;
  color: #39836c;
  font-size: 9.5px;
  text-align: center;
}

.execution-service-list p { color: #50675e; font-size: 11.5px; line-height: 1.65; }

.execution-week-chart {
  margin-top: 5px;
}

.execution-chart-caption { color: #667a72; font-size: 11px; line-height: 1.6; }

.execution-topic-chart {
  gap: 13px;
  padding-top: 9px;
}

.execution-topic-chart article > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.execution-topic-chart article > div svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 5px;
  background: #e7f3ee;
  color: #439982;
}

.execution-topic-chart strong { color: #2b5043; font-size: 12px; }
.execution-topic-chart small { font-size: 10px; }
.execution-topic-chart article > span { height: 7px; }

.execution-moment-line article,
.execution-stage-path article {
  grid-template-columns: 43px 29px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 11px 0;
}

.execution-moment-line article > span,
.execution-stage-path article > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f3ed;
  color: #439982;
}

.execution-moment-line svg,
.execution-stage-path svg { width: 14px; height: 14px; }
.execution-moment-line time,
.execution-stage-path time { padding-top: 6px; font-size: 10px; }
.execution-moment-line strong,
.execution-stage-path strong { color: #285044; font-size: 12.5px; }
.execution-moment-line p,
.execution-stage-path p { margin-top: 4px; color: #667a72; font-size: 11.5px; line-height: 1.65; }

.execution-service-summary {
  gap: 7px;
  padding-top: 9px;
  border: 0;
}

.execution-service-summary article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2ebe7;
  border-radius: 7px;
  background: #f8fbf9;
}

.execution-service-summary article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f3ed;
  color: #439982;
}

.execution-service-summary svg { width: 17px; height: 17px; }
.execution-service-summary strong { color: #2d785f; font-size: 16px; }
.execution-service-summary p { margin-top: 3px; color: #667a72; font-size: 10.5px; line-height: 1.45; }

.execution-portrait-list article {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
}

.execution-portrait-list > article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f4ee;
  color: #439982;
}

.execution-portrait-list svg { width: 18px; height: 18px; }
.execution-portrait-list strong { color: #285044; font-size: 13px; }
.execution-portrait-list p { margin-top: 4px; color: #667a72; font-size: 11.5px; line-height: 1.65; }

.execution-stage-conclusion {
  margin: 12px 0 0;
  padding: 15px;
  border: 1px solid #ead9ad;
  border-left: 4px solid #d9b65e;
  border-radius: 8px;
  background: #fffaf0;
}

.execution-stage-conclusion span { font-size: 10px; }
.execution-stage-conclusion p { color: #53665f; font-size: 11.5px; line-height: 1.7; }

.execution-report-note {
  margin: 12px 0 0;
  padding: 13px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #e9f2ee;
}

.execution-report-note svg { margin-top: 2px; color: #367b65; }
.execution-report-note p { color: #345f51; font-size: 11px; line-height: 1.55; font-weight: 750; }
.execution-report-note small { color: #7b8e86; font-size: 9.5px; line-height: 1.5; }

@media (max-width: 360px) {
  .execution-report-metrics { gap: 5px; }
  .execution-report-metrics > div {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 4px;
    padding-inline: 5px;
  }
  .execution-report-metrics > div > span { width: 24px; height: 24px; }
  .execution-report-metrics strong { font-size: 13px; }
  .execution-report-metrics small { font-size: 8.2px; }
}
