#scr-plan {
  background: #fdfbf7;
  display: block !important;
  height: 100%;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

#scr-plan.active {
  transform: none !important;
}

#scr-plan > .scr-hdr-v2 {
  position: sticky !important;
  top: 0;
  z-index: 120;
}

.my-plan-scroll {
  display: block;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    linear-gradient(180deg, rgba(217, 182, 113, 0.18), rgba(253, 251, 247, 0) 210px),
    #fdfbf7;
  padding: 12px 12px 190px;
  box-sizing: border-box;
  touch-action: pan-y;
}

.my-plan-native {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.mp-card {
  background: #fffefa;
  border: 1px solid rgba(96, 37, 55, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(26, 40, 48, 0.08);
  color: #1a2830;
  padding: 15px;
}

.mp-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(233, 186, 97, 0.16), transparent 30%),
    linear-gradient(145deg, #213441 0%, #1a2830 52%, #101d25 100%);
  border: 1.5px solid rgba(233, 186, 97, 0.74);
  box-shadow:
    0 22px 46px rgba(26, 40, 48, 0.22),
    0 0 0 1px rgba(255, 243, 198, 0.12),
    inset 0 1px 0 rgba(255, 243, 198, 0.24),
    inset 0 -36px 72px rgba(26, 40, 48, 0.18);
  color: #fdfbf7;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.mp-hero::before {
  animation: mpHeroGlint 6.2s ease-in-out infinite;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 243, 198, 0) 36%,
    rgba(255, 243, 198, 0.44) 48%,
    rgba(233, 186, 97, 0.2) 56%,
    transparent 70%
  );
  content: "";
  inset: -2px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
  z-index: 1;
}

.mp-hero::after {
  animation: mpHeroBorderShimmer 4.8s ease-in-out infinite;
  background: linear-gradient(
    120deg,
    rgba(217, 182, 113, 0.42),
    rgba(255, 243, 198, 0.96),
    rgba(233, 186, 97, 0.56),
    rgba(217, 182, 113, 0.28)
  );
  background-size: 240% 240%;
  border-radius: inherit;
  content: "";
  inset: 0;
  padding: 1.5px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes mpHeroGlint {
  0%,
  70% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes mpHeroBorderShimmer {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.72;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

.mp-hero-head {
  align-items: baseline;
  display: flex;
  gap: 9px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.mp-kicker {
  color: #d9b671;
  font: 800 10.5px/1 "DM Sans", sans-serif;
  letter-spacing: 1.2px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.mp-hero h2,
.mp-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}

.mp-hero h2 {
  color: #e9ba61 !important;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.mp-snapshot-date {
  background: rgba(26, 40, 48, 0.18);
  border: 1px solid rgba(233, 186, 97, 0.34);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 243, 198, 0.12);
  color: rgba(255, 243, 198, 0.88);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
  padding: 4px 9px 5px;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.mp-snapshot-date::after {
  content: " ›";
  color: #e9ba61;
}

.mp-snapshot-date:focus-visible {
  border-color: #fff3c6;
  color: #fff3c6;
  outline: 2px solid rgba(233, 186, 97, 0.26);
  outline-offset: 2px;
}

.mp-date-picker {
  border: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
}

.mp-hero p,
.mp-card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.mp-hero p {
  color: #e9ba61 !important;
  max-width: 320px;
}

.mp-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.mp-primary-link {
  align-items: center;
  background: #d9b671;
  border-radius: 999px;
  color: #1a2830;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.mp-plan-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  overflow: visible;
}

.mp-header-title {
  align-items: baseline;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.mp-plan-header .mp-snapshot-date {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mp-header-title h1 {
  color: #e9ba61 !important;
  font: 900 23px/1 "Playfair Display", serif;
  margin: 0;
  min-width: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.mp-add-kind-row button {
  border: none;
  cursor: pointer;
  font: 900 10px/1 "DM Sans", sans-serif;
}

.mp-add-open {
  align-items: center;
  background: #d9b671;
  border: none;
  border-radius: 50%;
  color: #1a2830;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  line-height: 1;
  width: 46px;
}

.mp-view-section[hidden] {
  display: none !important;
}

.mp-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.mp-stats article,
.mp-stat-tile {
  background: rgba(255, 250, 244, 0.075);
  border: 1px solid rgba(233, 186, 97, 0.32);
  border-radius: 14px;
  box-shadow:
    0 12px 24px rgba(26, 40, 48, 0.18),
    inset 0 1px 0 rgba(255, 243, 198, 0.14);
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.mp-stats article::before,
.mp-stat-tile::before {
  background: linear-gradient(90deg, transparent, rgba(233, 186, 97, 0.82), transparent);
  content: "";
  height: 1px;
  left: 10px;
  opacity: 0.58;
  position: absolute;
  right: 10px;
  top: 0;
}

.mp-stat-tile {
  cursor: pointer;
  display: block;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.mp-stat-tile.is-active {
  background: rgba(233, 186, 97, 0.16);
  border-color: rgba(233, 186, 97, 0.72);
}

.mp-stat-tile:active {
  transform: translateY(1px);
}

.mp-stat-tile:focus-visible {
  outline: 2px solid rgba(255, 243, 198, 0.9);
  outline-offset: 2px;
}

.mp-stats span {
  color: #e9ba61 !important;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mp-stats strong {
  color: #fff8d7 !important;
  display: block;
  font-size: 16px;
  margin-top: 3px;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-stats small {
  color: rgba(253, 251, 247, 0.66);
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
  min-height: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-fitness-plan-tile {
  align-items: center;
  background: rgba(26, 40, 48, 0.96);
  border: 1px solid rgba(233, 186, 97, 0.38);
  border-radius: 14px;
  box-shadow:
    0 12px 24px rgba(26, 40, 48, 0.16),
    inset 0 1px 0 rgba(255, 243, 198, 0.14);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.mp-fitness-plan-tile::before {
  background: linear-gradient(90deg, transparent, rgba(233, 186, 97, 0.82), transparent);
  content: "";
  height: 1px;
  left: 10px;
  opacity: 0.58;
  position: absolute;
  right: 10px;
  top: 0;
}

.mp-fitness-plan-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mp-fitness-plan-copy span {
  color: #e9ba61;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.mp-fitness-plan-copy strong {
  color: #fff8d7;
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.mp-fitness-plan-copy small {
  color: rgba(253, 251, 247, 0.66);
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
  min-height: 12px;
}

.mp-fitness-plan-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, auto));
  position: relative;
  z-index: 1;
}

.mp-fitness-action {
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(233, 186, 97, 0.36);
  border-radius: 12px;
  color: #fff8d7;
  cursor: pointer;
  font: 900 10px/1 "DM Sans", sans-serif;
  min-height: 38px;
  padding: 0 10px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.mp-fitness-action.is-primary {
  background: linear-gradient(135deg, rgba(217, 182, 113, 0.95), rgba(255, 240, 184, 0.92));
  border-color: rgba(255, 243, 198, 0.76);
  color: #1a2830;
  box-shadow: 0 8px 18px rgba(217, 182, 113, 0.14);
}

.mp-fitness-action:active {
  transform: translateY(1px);
}

.mp-fitness-action:focus-visible {
  outline: 2px solid rgba(255, 243, 198, 0.9);
  outline-offset: 2px;
}

.mp-fitness-action[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

@media (max-width: 420px) {
  .mp-fitness-plan-tile {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .mp-fitness-plan-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-fitness-action {
    width: 100%;
  }
}

.mp-section-title {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mp-section-title > span {
  color: rgba(26, 40, 48, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.mp-btn {
  background: #1a2830;
  border: none;
  border-radius: 999px;
  color: #fdfbf7;
  cursor: pointer;
  font: 900 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0.7px;
  min-height: 42px;
  padding: 0 15px;
  text-transform: uppercase;
}

.mp-btn[disabled] {
  cursor: progress;
  opacity: 0.62;
}

.mp-btn-gold {
  background: #d9b671;
  color: #1a2830;
}

.mp-btn-light {
  background: rgba(96, 37, 55, 0.08);
  color: #602537;
}

.mp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.mp-view-section[data-plan-section="today"]:not([data-plan-optional]) {
  padding: 8px;
}

.mp-view-section[data-plan-section="today"]:not([data-plan-optional]) > .mp-list {
  margin-top: 0;
}

.mp-grocery-view {
  display: grid;
  gap: 10px;
}

.mp-empty {
  border: 1px dashed rgba(96, 37, 55, 0.25);
  border-radius: 14px;
  color: rgba(26, 40, 48, 0.62);
  font-size: 13px;
  line-height: 1.4;
  padding: 14px;
  text-align: center;
}

.mp-rest-card {
  background:
    linear-gradient(135deg, rgba(26, 40, 48, 0.96), rgba(34, 57, 66, 0.94)),
    #1a2830;
  border: 1px solid rgba(217, 182, 113, 0.46);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(26, 40, 48, 0.12);
  color: #fffefa;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mp-rest-card h4 {
  color: #fff3c6 !important;
  font: 900 17px/1.12 "DM Sans", sans-serif;
  margin: 0;
}

.mp-rest-card p {
  color: rgba(253, 251, 247, 0.74) !important;
  font-size: 12.5px;
  line-height: 1.42;
  margin: 6px 0 0;
}

.mp-rest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-rest-actions span {
  background: rgba(217, 182, 113, 0.18);
  border: 1px solid rgba(217, 182, 113, 0.24);
  border-radius: 999px;
  color: #fff3c6;
  font-size: 10.5px;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.mp-session,
.mp-workout-row {
  background: #fdfbf7;
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 14px;
}

.mp-item-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mp-item-top h4,
.mp-session h4 {
  color: #1a2830;
  font: 900 17px/1.12 "DM Sans", sans-serif;
  margin: 0;
}

.mp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mp-pill {
  background: rgba(217, 182, 113, 0.26);
  border-radius: 999px;
  color: #602537;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}

.mp-mini-exercises {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.mp-mini-exercises span {
  background: rgba(26, 40, 48, 0.06);
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.72);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 9px;
}

.mp-workout-row {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.mp-workout-row.active {
  border-color: rgba(217, 182, 113, 0.78);
  box-shadow: 0 0 0 2px rgba(217, 182, 113, 0.18);
}

.mp-workout-row strong,
.mp-workout-row small {
  display: block;
}

.mp-workout-row strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
}

.mp-workout-row small,
.mp-workout-row em {
  color: rgba(26, 40, 48, 0.62);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mp-log-row {
  align-items: center;
  background: #fffefa;
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr auto;
  padding: 10px;
}

.mp-log-badge {
  align-items: center;
  background: rgba(217, 182, 113, 0.24);
  border-radius: 12px;
  color: #602537;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  text-transform: uppercase;
  width: 54px;
}

.mp-log-row.is-complete .mp-log-badge {
  background: #d9b671;
  color: #1a2830;
}

.mp-log-row strong,
.mp-log-row span {
  display: block;
}

.mp-log-row strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
}

.mp-log-row span,
.mp-log-row em {
  color: rgba(26, 40, 48, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mp-added-row {
  align-items: center;
  background: #fffefa;
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px 1fr;
  padding: 10px;
}

.mp-added-row.mp-habit-row {
  grid-template-columns: 44px 1fr auto;
}

.mp-added-row.mp-habit-row.is-complete {
  border-color: rgba(86, 183, 170, 0.44);
  box-shadow: 0 8px 20px rgba(86, 183, 170, 0.1);
}

.mp-daily-habits {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(253, 251, 247, 0.98)),
    radial-gradient(circle at 8% 0%, rgba(217, 182, 113, 0.18), transparent 42%);
  border: 1px solid rgba(217, 182, 113, 0.32);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(26, 40, 48, 0.08);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mp-section-title-compact {
  margin-bottom: 0;
  padding: 0 2px 2px;
}

.mp-section-title-compact h3 {
  font-size: 15px;
}

.mp-section-title-compact span {
  font-size: 10px;
  white-space: nowrap;
}

.mp-habit-plan-tile {
  background:
    linear-gradient(135deg, rgba(26, 40, 48, 0.98), rgba(15, 26, 34, 0.98)),
    radial-gradient(circle at 8% 0%, rgba(217, 182, 113, 0.2), transparent 42%);
  border: 1px solid rgba(217, 182, 113, 0.72);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(26, 40, 48, 0.18), inset 0 0 0 1px rgba(255, 250, 244, 0.08);
  gap: 9px;
  padding: 10px;
}

.mp-habit-plan-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 2px 2px 4px;
}

.mp-habit-plan-head div {
  min-width: 0;
}

.mp-habit-plan-head span {
  color: #d9b671;
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.8px;
  line-height: 1.1;
  text-transform: uppercase;
}

.mp-habit-plan-head strong {
  color: #fffefa;
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 3px;
}

.mp-habit-plan-head small {
  color: rgba(244, 235, 224, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.mp-habit-plan-head em {
  align-items: center;
  background: linear-gradient(135deg, #f7df9d, #c89432);
  border-radius: 12px;
  color: #1a2830;
  display: flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.mp-habit-plan-list {
  display: grid;
  gap: 8px;
}

.mp-habit-plan-tile .mp-empty {
  background: rgba(255, 250, 244, 0.08);
  border-color: rgba(217, 182, 113, 0.2);
  color: rgba(244, 235, 224, 0.78);
}

.mp-habit-plan-tile .mp-added-row.mp-habit-row {
  background: rgba(255, 250, 244, 0.96);
  border-color: rgba(217, 182, 113, 0.34);
  box-shadow: none;
}

.mp-habit-plan-tile .mp-added-row.mp-habit-row.is-complete {
  border-color: rgba(86, 183, 170, 0.58);
  box-shadow: 0 10px 24px rgba(86, 183, 170, 0.12);
}

.mp-added-row > div:nth-child(2) {
  min-width: 0;
}

.mp-added-section-label {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin: 4px 2px -2px;
  text-transform: uppercase;
}

.mp-added-mark {
  align-items: center;
  background: rgba(217, 182, 113, 0.24);
  border-radius: 12px;
  color: #602537;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  text-transform: uppercase;
  width: 44px;
}

.mp-added-row span,
.mp-added-row strong,
.mp-added-row small {
  display: block;
}

.mp-added-row span {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mp-added-row strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
}

.mp-added-row small {
  color: rgba(26, 40, 48, 0.62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 3px;
}

.mp-habit-toggle {
  background: rgba(26, 40, 48, 0.06);
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.68);
  font-size: 10px;
  font-weight: 950;
  min-height: 34px;
  min-width: 58px;
  padding: 0 10px;
  text-transform: uppercase;
}

.mp-habit-toggle.is-complete {
  background: linear-gradient(135deg, #56b7aa, #d9fff8);
  border-color: rgba(86, 183, 170, 0.56);
  color: #1a2830;
}

.mp-nutrition-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mp-macro-card {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.34);
  border-radius: 14px;
  padding: 12px;
}

.mp-meal-plan-card {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.34);
  border-radius: 14px;
  padding: 12px;
}

.mp-macro-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mp-macro-head span,
.mp-macro-targets > span {
  color: #d29a35;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-macro-head strong {
  color: #1a2830;
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-top: 2px;
}

.mp-macro-head em {
  background: rgba(217, 182, 113, 0.2);
  border-radius: 999px;
  color: #602537;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 7px 9px;
  text-transform: uppercase;
}

.mp-macro-rows {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.mp-macro-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
}

.mp-macro-row span,
.mp-macro-row strong {
  display: block;
}

.mp-macro-row span {
  color: rgba(26, 40, 48, 0.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mp-macro-row strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  margin-top: 2px;
}

.mp-macro-row em {
  color: rgba(26, 40, 48, 0.52);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.mp-macro-row i {
  background: rgba(26, 40, 48, 0.08);
  border-radius: 999px;
  display: block;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
}

.mp-macro-row b {
  background: linear-gradient(90deg, #d9b671, #602537);
  display: block;
  height: 100%;
}

.mp-macro-empty {
  background: rgba(26, 40, 48, 0.04);
  border-radius: 12px;
  color: rgba(26, 40, 48, 0.58);
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
}

.mp-meal-options {
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
}

.mp-meal-plan-card .mp-meal-options {
  border-top: 0;
  margin-top: 12px;
  padding-top: 0;
}

.mp-meal-week-days {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mp-meal-week-days button {
  background: #fffefa;
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 10px;
  color: rgba(26, 40, 48, 0.7);
  display: grid;
  gap: 1px;
  min-height: 40px;
  padding: 4px 2px;
  place-items: center;
}

.mp-meal-week-days button.active {
  background: linear-gradient(135deg, #d9b671, #fff0b8);
  border-color: rgba(217, 182, 113, 0.72);
  color: #1a2830;
  box-shadow: 0 8px 18px rgba(217, 182, 113, 0.2);
}

.mp-meal-week-days span {
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mp-meal-week-days strong {
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
}

.mp-meal-grocery {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.35);
  border-radius: 12px;
  overflow: hidden;
}

.mp-meal-grocery summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 42px;
  padding: 0 11px;
}

.mp-meal-grocery summary::-webkit-details-marker {
  display: none;
}

.mp-meal-grocery summary span {
  color: #1a2830;
  font-size: 12px;
  font-weight: 950;
}

.mp-meal-grocery summary strong {
  color: #d29a35;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.mp-meal-grocery-note {
  background: linear-gradient(135deg, rgba(217, 182, 113, 0.13), rgba(86, 183, 170, 0.08));
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  display: grid;
  gap: 4px;
  padding: 10px 11px;
}

.mp-meal-grocery-note strong,
.mp-meal-grocery-note span {
  display: block;
}

.mp-meal-grocery-note strong {
  color: #602537;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mp-meal-grocery-note span {
  color: rgba(26, 40, 48, 0.66);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.38;
}

.mp-meal-grocery-list {
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  display: grid;
  gap: 7px;
  padding: 10px;
}

.mp-grocery-line {
  align-items: center;
  background: rgba(26, 40, 48, 0.035);
  border: 1px solid rgba(26, 40, 48, 0.07);
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px 1fr auto;
  min-height: 58px;
  padding: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.mp-grocery-line input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.mp-grocery-line i {
  align-items: center;
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.58);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  display: flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.mp-grocery-line i::after {
  border: solid #1a2830;
  border-width: 0 2px 2px 0;
  content: '';
  height: 9px;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
  width: 5px;
}

.mp-grocery-line input:focus + i {
  box-shadow: 0 0 0 3px rgba(217, 182, 113, 0.24);
}

.mp-grocery-line span,
.mp-grocery-line strong,
.mp-grocery-line em,
.mp-grocery-line small {
  display: block;
  min-width: 0;
}

.mp-grocery-line strong {
  color: #1a2830;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.16;
}

.mp-grocery-line em,
.mp-grocery-line small {
  color: rgba(26, 40, 48, 0.62);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2px;
}

.mp-grocery-line b {
  background: linear-gradient(135deg, rgba(217, 182, 113, 0.28), rgba(255, 240, 184, 0.72));
  border-radius: 999px;
  color: #602537;
  font-size: 10px;
  font-weight: 950;
  justify-self: end;
  padding: 5px 7px;
  white-space: nowrap;
}

.mp-grocery-line.is-checked {
  background: rgba(86, 183, 170, 0.08);
  border-color: rgba(86, 183, 170, 0.24);
  opacity: 0.78;
}

.mp-grocery-line.is-checked i {
  background: linear-gradient(135deg, #d9b671, #fff0b8);
  border-color: rgba(217, 182, 113, 0.72);
}

.mp-grocery-line.is-checked i::after {
  opacity: 1;
}

.mp-grocery-line.is-checked strong,
.mp-grocery-line.is-checked em,
.mp-grocery-line.is-checked small {
  text-decoration: line-through;
}

.mp-meal-option-card {
  align-items: stretch;
  background: linear-gradient(135deg, #fffefa, #f7efe3);
  border: 1px solid rgba(217, 182, 113, 0.42);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mp-meal-option-card.is-logged {
  border-color: rgba(86, 183, 170, 0.52);
  box-shadow: 0 10px 24px rgba(86, 183, 170, 0.12);
}

.mp-meal-option-main {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 58px 1fr;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.mp-meal-option-main img {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(217, 182, 113, 0.35);
  border-radius: 10px;
  display: block;
  object-fit: cover;
  width: 58px;
}

.mp-meal-option-main span,
.mp-meal-option-main em,
.mp-meal-option-main strong,
.mp-meal-option-main small {
  display: block;
  min-width: 0;
}

.mp-meal-option-main em {
  color: #d29a35;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-meal-option-main strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
  margin-top: 2px;
}

.mp-meal-option-main small {
  color: rgba(26, 40, 48, 0.58);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
}

.mp-meal-option-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto 1fr;
  min-width: 0;
}

.mp-meal-log-btn {
  align-items: center;
  background: linear-gradient(135deg, #d9b671, #fff0b8 48%, #d29a35);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(217, 182, 113, 0.28);
  color: #1a2830;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0.6px;
  min-height: 38px;
  min-width: 82px;
  overflow: hidden;
  padding: 0 14px;
  position: relative;
  text-transform: uppercase;
}

.mp-meal-log-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: '';
  inset: -20% auto -20% -80%;
  position: absolute;
  transform: skewX(-18deg);
  width: 46%;
}

.mp-meal-log-btn:not(:disabled):hover::before,
.mp-meal-log-btn.is-logging::before {
  animation: mpMealButtonFlare 0.9s ease forwards;
}

.mp-meal-log-btn span {
  position: relative;
  z-index: 1;
}

.mp-meal-log-btn.is-compact {
  min-height: 32px;
  min-width: 66px;
  padding: 0 10px;
}

.mp-meal-log-btn.is-logging {
  cursor: wait;
}

.mp-meal-log-btn.is-complete {
  animation: mpMealLoggedPop 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #56b7aa, #d9fff8);
  box-shadow: 0 10px 24px rgba(86, 183, 170, 0.24);
}

.mp-meal-log-btn:disabled {
  cursor: default;
}

.mp-meal-adjust-btn {
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 40, 48, 0.96), #602537);
  border: 1px solid rgba(217, 182, 113, 0.44);
  border-radius: 999px;
  color: #fff8df;
  cursor: pointer;
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0.45px;
  min-height: 32px;
  min-width: 72px;
  padding: 0 11px;
  text-transform: uppercase;
}

.mp-meal-adjust-btn:hover {
  box-shadow: 0 10px 22px rgba(96, 37, 55, 0.2);
  transform: translateY(-1px);
}

.mp-meal-feedback {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.mp-meal-option-actions .mp-meal-feedback {
  grid-column: auto;
  justify-self: end;
}

.mp-meal-option-actions .mp-meal-feedback.is-open {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.mp-meal-feedback-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.mp-meal-feedback-actions button {
  align-items: center;
  background: rgba(26, 40, 48, 0.05);
  border: 1px solid rgba(26, 40, 48, 0.1);
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.62);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.mp-meal-feedback-actions button.active {
  background: rgba(217, 182, 113, 0.24);
  border-color: rgba(217, 182, 113, 0.58);
  color: #602537;
}

.mp-meal-feedback-actions svg {
  display: block;
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.mp-meal-feedback-reason {
  background: rgba(26, 40, 48, 0.04);
  border: 1px solid rgba(26, 40, 48, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 9px;
}

.mp-meal-feedback-reason label,
.mp-meal-feedback-reason span {
  display: block;
}

.mp-meal-feedback-reason span {
  color: #d29a35;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mp-meal-feedback-reason textarea {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.34);
  border-radius: 10px;
  color: #1a2830;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  min-height: 58px;
  padding: 9px;
  resize: vertical;
  width: 100%;
}

.mp-meal-feedback-reason div {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.mp-meal-feedback-reason button {
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  min-height: 32px;
  padding: 0 12px;
  text-transform: uppercase;
}

.mp-meal-feedback-reason button:first-child {
  background: linear-gradient(135deg, #d9b671, #fff0b8);
  color: #1a2830;
}

.mp-meal-feedback-reason button:last-child {
  background: rgba(26, 40, 48, 0.08);
  color: rgba(26, 40, 48, 0.68);
}

.mp-meal-modal {
  align-items: end;
  display: grid;
  inset: 0;
  padding: 14px;
  position: fixed;
  z-index: 100004;
}

.mp-meal-modal[hidden] {
  display: none;
}

.mp-meal-modal-backdrop {
  background: rgba(7, 15, 20, 0.72);
  inset: 0;
  position: absolute;
}

.mp-meal-modal-panel {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.42);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  margin: 0 auto;
  max-height: min(92vh, 780px);
  max-width: 520px;
  overflow: auto;
  position: relative;
  width: min(100%, 520px);
}

.mp-meal-modal-close {
  align-items: center;
  background: rgba(26, 40, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fffefa;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  z-index: 2;
}

.mp-meal-modal-img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.mp-meal-modal-body {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.mp-meal-modal-kicker {
  color: #d29a35;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.mp-meal-modal-body h3 {
  color: #1a2830;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  margin: -8px 0 0;
}

.mp-meal-modal-body p {
  color: rgba(26, 40, 48, 0.68);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.mp-meal-modal-macros {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.mp-meal-modal-macros span {
  background: rgba(217, 182, 113, 0.16);
  border: 1px solid rgba(217, 182, 113, 0.32);
  border-radius: 12px;
  display: block;
  padding: 9px 6px;
  text-align: center;
}

.mp-meal-modal-macros strong,
.mp-meal-modal-macros em {
  display: block;
}

.mp-meal-modal-macros strong {
  color: #1a2830;
  font-size: 15px;
  font-weight: 950;
}

.mp-meal-modal-macros em {
  color: rgba(26, 40, 48, 0.56);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  margin-top: 2px;
  text-transform: uppercase;
}

.mp-meal-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mp-meal-modal-meta span {
  background: rgba(26, 40, 48, 0.06);
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.66);
  font-size: 10px;
  font-weight: 900;
  padding: 7px 9px;
  text-transform: uppercase;
}

.mp-meal-modal-section {
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  padding-top: 12px;
}

.mp-meal-modal-section h4 {
  color: #1a2830;
  font-size: 13px;
  font-weight: 950;
  margin: 0 0 8px;
}

.mp-meal-modal-section ul,
.mp-meal-modal-section ol {
  color: rgba(26, 40, 48, 0.72);
  display: grid;
  font-size: 12.5px;
  font-weight: 800;
  gap: 6px;
  line-height: 1.42;
  margin: 0;
  padding-left: 19px;
}

.mp-meal-modal-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr auto auto;
}

@keyframes mpMealButtonFlare {
  from { left: -80%; }
  to { left: 130%; }
}

@keyframes mpMealLoggedPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.mp-memory-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mp-memory-controls {
  margin-bottom: 4px;
}

.mp-category-control {
  display: grid;
  gap: 5px;
  min-width: min(100%, 178px);
}

.mp-category-control span {
  color: rgba(26, 40, 48, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-category-control select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #1a2830 50%) calc(100% - 15px) 55% / 7px 7px no-repeat,
    linear-gradient(135deg, #fffefa, #f7efe3);
  border: 1px solid rgba(217, 182, 113, 0.62);
  border-radius: 999px;
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 34px 0 15px;
}

.mp-category-control select:focus {
  border-color: #d9b671;
  box-shadow: 0 0 0 3px rgba(217, 182, 113, 0.22);
  outline: 0;
}

.mp-memory-chip {
  background: rgba(217, 182, 113, 0.16);
  border: 1px solid rgba(217, 182, 113, 0.38);
  border-radius: 999px;
  color: #602537;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 7px 9px;
  text-transform: uppercase;
}

.mp-goal-group {
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.mp-goal-group-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mp-goal-group-head span {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-goal-group-head strong {
  color: rgba(26, 40, 48, 0.56);
  font-size: 11px;
  font-weight: 900;
}

.mp-goal-row {
  align-items: center;
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.48);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px 1fr;
  padding: 11px;
}

.mp-goal-mark {
  align-items: center;
  background: linear-gradient(135deg, #d9b671, #fff3c6);
  border-radius: 50%;
  color: #1a2830;
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  text-transform: uppercase;
  width: 46px;
}

.mp-goal-row span,
.mp-goal-row strong {
  display: block;
}

.mp-goal-row span {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-goal-row strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  margin-top: 3px;
}

.mp-session {
  background: #fffefa;
  border-color: rgba(217, 182, 113, 0.34);
  border-radius: 12px;
  overflow: hidden;
}

.mp-saved-strip {
  align-items: center;
  background: rgba(86, 183, 170, 0.12);
  border-bottom: 1px solid rgba(86, 183, 170, 0.22);
  color: #1a2830;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px 1fr auto;
  padding: 8px 10px;
}

.mp-saved-check {
  align-items: center;
  background: #56b7aa;
  border-radius: 50%;
  color: #fffefa;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.mp-saved-strip strong,
.mp-saved-strip small {
  display: block;
}

.mp-saved-strip strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.mp-saved-strip small {
  color: rgba(26, 40, 48, 0.62);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.mp-saved-strip em {
  background: rgba(217, 182, 113, 0.18);
  border-radius: 999px;
  color: #602537;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.mp-session-head {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 58px;
  padding: 10px 10px 8px;
}

.mp-session-head h4 {
  color: #1a2830 !important;
  font-size: 17px;
  line-height: 1.16;
}

.mp-session-head p {
  color: rgba(26, 40, 48, 0.68) !important;
  display: -webkit-box;
  font-size: 12.5px;
  line-height: 1.38;
  margin-top: 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-session-score {
  align-items: center;
  background: #1a2830;
  border-radius: 14px;
  color: #d9b671;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
}

.mp-session-score strong {
  color: #e9ba61;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.mp-session-score span {
  color: rgba(253, 251, 247, 0.68);
  font-size: 10px;
  font-weight: 900;
  margin-top: 5px;
  text-transform: uppercase;
}

.mp-session-pills {
  padding: 0 10px 8px;
}

.mp-progress-line {
  background: rgba(26, 40, 48, 0.08);
  height: 7px;
  margin: 0 10px 10px;
  overflow: hidden;
  border-radius: 999px;
}

.mp-progress-line i {
  background: linear-gradient(90deg, #d9b671, #602537);
  display: block;
  height: 100%;
}

.mp-start-actions,
.mp-session-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 10px 10px;
}

.mp-session-actions {
  padding-top: 0;
}

.mp-session .mp-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
}

.mp-exercise-toolbar,
.mp-feedback-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mp-exercise-toolbar {
  padding: 0 10px 9px;
}

.mp-exercise-toolbar span,
.mp-feedback-head h5 {
  color: #1a2830 !important;
  font-size: 13px;
  font-weight: 900;
}

.mp-exercise-toolbar em,
.mp-feedback-head span {
  color: rgba(26, 40, 48, 0.5);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mp-exercise-list {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.mp-exercise-card {
  background: #fffefa;
  border: 1px solid rgba(26, 40, 48, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.mp-exercise-card.is-preview {
  box-shadow: 0 8px 22px rgba(26, 40, 48, 0.04);
}

.mp-exercise-summary {
  align-items: center;
  background: #fdfbf7;
  display: block;
  padding: 10px;
}

.mp-exercise-body {
  min-width: 0;
}

.mp-exercise-order {
  color: rgba(96, 37, 55, 0.55);
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mp-exercise-body h5,
.mp-feedback h5 {
  color: #1a2830 !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.mp-exercise-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.mp-exercise-name-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #1a2830;
  cursor: pointer;
  flex: 0 1 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(217, 182, 113, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.mp-exercise-video-btn {
  align-items: center;
  background: linear-gradient(135deg, #f4df9a 0%, #d9b671 48%, #b89550 100%);
  border: 1px solid rgba(96, 37, 55, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(217, 182, 113, 0.22);
  color: #1a2830;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 28px;
}

.mp-exercise-video-btn::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, transparent 72%);
  border-radius: inherit;
  content: "";
  inset: 1px;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
}

.mp-exercise-video-btn svg {
  fill: none;
  height: 15px;
  position: relative;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 15px;
  z-index: 1;
}

.mp-exercise-name-link:focus-visible,
.mp-exercise-video-btn:focus-visible {
  outline: 2px solid rgba(96, 37, 55, 0.72);
  outline-offset: 3px;
}

.mp-exercise-body p {
  color: rgba(26, 40, 48, 0.62) !important;
  display: -webkit-box;
  font-size: 11.5px;
  line-height: 1.32;
  margin: 4px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mp-exercise-meta span {
  background: rgba(217, 182, 113, 0.2);
  border-radius: 999px;
  color: #602537;
  font-size: 10.5px;
  font-weight: 900;
  padding: 5px 7px;
}

.mp-exercise-video-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 10020;
}

.mp-exercise-video-modal.is-vertical-video {
  padding: 0;
}

.mp-exercise-video-modal[hidden] {
  display: none;
}

.mp-exercise-video-backdrop {
  background: rgba(11, 19, 23, 0.78);
  inset: 0;
  position: absolute;
}

.mp-exercise-video-panel {
  background: #fdfbf7;
  border: 1px solid rgba(217, 182, 113, 0.42);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color: #1a2830;
  max-height: min(86vh, 760px);
  max-width: 760px;
  overflow: hidden;
  position: relative;
  width: min(100%, 760px);
  z-index: 1;
}

.mp-exercise-video-panel.is-vertical-video {
  aspect-ratio: 9 / 16;
  background: #050b0f;
  border-color: rgba(217, 182, 113, 0.58);
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 240, 184, 0.08);
  height: min(100dvh, calc(100vw * 1.7778), 960px);
  max-height: none;
  max-width: none;
  width: min(100vw, calc(100dvh * 0.5625), 540px);
}

.mp-exercise-video-panel::before {
  background: linear-gradient(90deg, #d9b671, #f4df9a, #602537, #4a7a8a);
  content: "";
  display: block;
  height: 5px;
  width: 100%;
}

.mp-exercise-video-panel.is-vertical-video::before {
  display: none;
}

.mp-exercise-video-close {
  align-items: center;
  background: rgba(26, 40, 48, 0.92);
  border: 1px solid rgba(217, 182, 113, 0.42);
  border-radius: 999px;
  color: #fdfbf7;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

.mp-exercise-video-panel.is-vertical-video .mp-exercise-video-close {
  background: rgba(5, 11, 15, 0.74);
  border-color: rgba(255, 240, 184, 0.4);
  right: 10px;
  top: 10px;
  z-index: 5;
}

.mp-exercise-video-panel.is-vertical-video .mp-exercise-video-head,
.mp-exercise-video-panel.is-vertical-video .mp-exercise-video-actions {
  display: none;
}

.mp-exercise-video-head {
  padding: 22px 56px 14px 18px;
}

.mp-exercise-video-head span {
  color: #b89550;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.mp-exercise-video-head h3 {
  color: #1a2830 !important;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  line-height: 1.1;
  margin: 4px 0 0;
}

.mp-exercise-video-head p {
  color: rgba(26, 40, 48, 0.62) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 7px 0 0;
}

.mp-exercise-video-frame {
  background: #10191f;
  position: relative;
  width: 100%;
}

.mp-exercise-video-panel.is-vertical-video .mp-exercise-video-frame {
  height: 100%;
  inset: 0;
  position: absolute;
}

.mp-exercise-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.mp-exercise-video-panel.is-vertical-video .mp-exercise-video-frame::before {
  display: none;
}

.mp-exercise-video-frame iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.mp-exercise-video-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 18px 18px;
}

.mp-exercise-video-actions a,
.mp-exercise-video-actions button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  text-decoration: none;
}

.mp-exercise-video-actions a {
  background: linear-gradient(135deg, #f4df9a, #d9b671);
  color: #1a2830;
}

.mp-exercise-video-actions button {
  background: rgba(26, 40, 48, 0.08);
  border: 1px solid rgba(26, 40, 48, 0.12);
  color: #1a2830;
  cursor: pointer;
}

@media (max-width: 520px) {
  .mp-exercise-video-panel.is-vertical-video {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }
}

.mp-set-grid {
  display: grid;
  gap: 0;
  padding: 0 10px 10px;
}

.mp-set-labels,
.mp-set-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 45px 1fr 58px 58px 48px;
}

.mp-set-labels {
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  color: rgba(26, 40, 48, 0.48);
  font-size: 10px;
  font-weight: 900;
  padding: 10px 0 7px;
  text-transform: uppercase;
}

.mp-set-num {
  color: rgba(26, 40, 48, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.mp-set-target {
  color: rgba(26, 40, 48, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.mp-set-row label {
  display: grid;
  gap: 2px;
}

.mp-set-row label span {
  display: none;
}

.mp-set-row input {
  background: #ffffff;
  border: 1px solid rgba(26, 40, 48, 0.14);
  border-radius: 8px;
  box-sizing: border-box;
  color: #1a2830;
  font-size: 12px;
  font-weight: 800;
  height: 32px;
  padding: 0 7px;
  width: 100%;
}

.mp-set-check {
  background: rgba(26, 40, 48, 0.08);
  border: none;
  border-radius: 8px;
  color: #1a2830;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  height: 32px;
}

.mp-set-check.is-done {
  background: #d9b671;
  color: #1a2830;
}

.mp-feedback {
  border-top: 1px solid rgba(26, 40, 48, 0.1);
  padding: 12px;
}

.mp-feedback-locked {
  background: #fffaf4;
  border: 1px dashed rgba(96, 37, 55, 0.22);
  border-radius: 13px;
  color: rgba(26, 40, 48, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 12px 12px;
  text-align: center;
}

.mp-effort-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.mp-effort-row button {
  background: rgba(26, 40, 48, 0.06);
  border: 1px solid rgba(26, 40, 48, 0.08);
  border-radius: 999px;
  color: #1a2830;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 34px;
}

.mp-effort-row button.active {
  background: #602537;
  color: #fdfbf7;
}

.mp-feedback-notes {
  background: #f7f0e8;
  border: 1px solid rgba(96, 37, 55, 0.16);
  border-radius: 12px;
  box-sizing: border-box;
  color: #1a2830;
  font: 600 13px/1.35 "DM Sans", sans-serif;
  margin-top: 10px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.mp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mp-actions.mp-start-actions,
.mp-actions.mp-session-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding: 0 12px 12px;
}

.mp-add-sheet {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2400;
}

.mp-add-sheet.is-open {
  pointer-events: auto;
}

.mp-add-backdrop {
  background: rgba(26, 40, 48, 0.34);
  border: none;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 160ms ease;
}

.mp-add-sheet.is-open .mp-add-backdrop {
  opacity: 1;
}

.mp-add-panel {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.34);
  border-radius: 22px 22px 0 0;
  bottom: 0;
  box-shadow: 0 -20px 44px rgba(26, 40, 48, 0.22);
  left: 50%;
  max-width: 430px;
  padding: 14px;
  position: absolute;
  transform: translate(-50%, 100%);
  transition: transform 180ms ease;
  width: min(100%, 430px);
}

.mp-add-sheet.is-open .mp-add-panel {
  transform: translate(-50%, 0);
}

.mp-add-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mp-add-head span,
.mp-add-horizon span {
  color: #d29a35;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-add-head strong {
  color: #1a2830;
  display: block;
  font: 900 20px/1.1 "Playfair Display", serif;
  margin-top: 3px;
}

.mp-add-close {
  align-items: center;
  background: #1a2830;
  border: none;
  border-radius: 50%;
  color: #e9ba61;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.mp-add-kind-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.mp-add-kind-row button {
  background: rgba(26, 40, 48, 0.06);
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.72);
  min-height: 36px;
}

.mp-add-kind-row button.active {
  background: #d9b671;
  color: #1a2830;
}

.mp-add-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.mp-macro-fields {
  display: grid;
  gap: 10px;
}

.mp-macro-fields[hidden] {
  display: none !important;
}

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

.mp-macro-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mp-macro-grid label span {
  color: rgba(26, 40, 48, 0.56);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.mp-macro-targets {
  background: rgba(217, 182, 113, 0.12);
  border: 1px solid rgba(217, 182, 113, 0.22);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mp-food-tools {
  background:
    linear-gradient(145deg, rgba(26, 40, 48, 0.04), rgba(217, 182, 113, 0.12));
  border: 1px solid rgba(217, 182, 113, 0.3);
  border-radius: 16px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.mp-food-tool-head,
.mp-food-result {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mp-food-tool-head span {
  color: #602537;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mp-food-tool-head em {
  color: rgba(26, 40, 48, 0.56);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mp-food-tool-tabs {
  background: rgba(253, 251, 247, 0.7);
  border: 1px solid rgba(217, 182, 113, 0.2);
  border-radius: 999px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 3px;
}

.mp-food-tool-tabs button,
.mp-food-line button,
.mp-food-secondary,
.mp-food-photo-btn,
.mp-food-result button {
  border: none;
  cursor: pointer;
  font: 900 11px/1 "DM Sans", sans-serif;
}

.mp-food-tool-tabs button {
  background: transparent;
  border-radius: 999px;
  color: rgba(26, 40, 48, 0.62);
  min-height: 32px;
}

.mp-food-tool-tabs button.active {
  background: #d9b671;
  color: #1a2830;
}

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

.mp-food-line {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr auto;
}

.mp-add-form .mp-food-line input {
  min-height: 42px;
  padding: 10px 11px;
}

.mp-food-textarea {
  background: #fffefa;
  border: 1px solid rgba(96, 37, 55, 0.16);
  border-radius: 12px;
  box-sizing: border-box;
  color: #1a2830;
  font: 700 13px/1.35 "DM Sans", sans-serif;
  min-height: 84px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.mp-food-line button,
.mp-food-photo-btn,
.mp-food-result button {
  background: #1a2830;
  border-radius: 13px;
  color: #fdfbf7;
  min-height: 42px;
  padding: 0 13px;
}

.mp-food-secondary {
  background: transparent;
  border: 1px solid rgba(96, 37, 55, 0.18);
  border-radius: 13px;
  color: #602537;
  min-height: 38px;
  width: 100%;
}

.mp-food-photo-btn {
  width: 100%;
}

.mp-food-panel small {
  color: rgba(26, 40, 48, 0.55);
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 6px;
  text-align: center;
}

.mp-food-status,
.mp-food-loading {
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  padding: 9px 10px;
  text-align: center;
}

.mp-food-status {
  background: rgba(26, 40, 48, 0.06);
  color: rgba(26, 40, 48, 0.72);
}

.mp-food-status[data-tone="success"] {
  background: rgba(86, 183, 170, 0.14);
  color: #1a2830;
}

.mp-food-status[data-tone="warn"] {
  background: rgba(96, 37, 55, 0.1);
  color: #602537;
}

.mp-food-results {
  display: grid;
  gap: 8px;
}

.mp-food-loading,
.mp-food-result {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.28);
}

.mp-food-result {
  border-radius: 14px;
  gap: 10px;
  padding: 10px;
}

.mp-food-result.is-selected {
  border-color: rgba(217, 182, 113, 0.72);
  box-shadow: 0 10px 22px rgba(26, 40, 48, 0.09);
}

.mp-food-result div {
  min-width: 0;
}

.mp-food-result span,
.mp-food-result small,
.mp-food-result em,
.mp-food-result strong {
  display: block;
}

.mp-food-result span {
  color: #d29a35;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mp-food-result strong {
  color: #1a2830;
  font-size: 13px;
  font-weight: 900;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-food-result small,
.mp-food-result em {
  color: rgba(26, 40, 48, 0.58);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 3px;
}

.mp-add-form input,
.mp-add-form textarea,
.mp-add-horizon select {
  background: #fdfbf7;
  border: 1px solid rgba(26, 40, 48, 0.16);
  border-radius: 13px;
  box-sizing: border-box;
  color: #1a2830;
  font: 800 13px/1.35 "DM Sans", sans-serif;
  outline: none;
  padding: 12px;
  width: 100%;
}

.mp-macro-grid input {
  padding: 10px 7px;
  text-align: center;
}

.mp-add-form textarea {
  resize: none;
}

.mp-add-horizon {
  display: grid;
  gap: 6px;
}

.mp-karamo-chat {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  position: fixed !important;
  right: max(14px, calc((100vw - 760px) / 2 + 14px));
  z-index: 900;
}

#scr-plan:not(.active) .mp-karamo-chat {
  display: none;
}

.mp-karamo-bubble {
  align-items: center;
  background: #1a2830;
  border: none;
  border-radius: 50%;
  box-shadow:
    0 18px 34px rgba(26, 40, 48, 0.28),
    0 0 0 1px rgba(253, 251, 247, 0.56);
  cursor: pointer;
  display: flex;
  height: 66px;
  justify-content: center;
  isolation: isolate;
  overflow: visible;
  padding: 0;
  pointer-events: auto;
  position: relative;
  width: 66px;
}

.mp-karamo-tap-hint {
  align-items: center;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  position: absolute;
  right: 1px;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 2;
}

.mp-karamo-tap-hint span {
  background: #1a2830;
  border: 1px solid rgba(217, 182, 113, 0.58);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(26, 40, 48, 0.2);
  color: #d9b671;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.mp-karamo-tap-hint i {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #d9b671;
  display: block;
  filter: drop-shadow(0 4px 5px rgba(26, 40, 48, 0.18));
  height: 0;
  width: 0;
}

.mp-karamo-bubble::before,
.mp-karamo-bubble::after {
  border-radius: inherit;
  content: "";
  position: absolute;
}

.mp-karamo-bubble::before {
  animation: mp-bubble-gold-spin 4s linear infinite;
  background: conic-gradient(from 0deg, #d9b671, #f8e7ad, #7b5b24, #d9b671, #fff4c8, #d9b671);
  inset: -4px;
  z-index: -2;
}

.mp-karamo-bubble::after {
  background: #1a2830;
  inset: 1px;
  z-index: -1;
}

.mp-karamo-bubble:focus-visible {
  box-shadow:
    0 0 0 3px rgba(253, 251, 247, 0.96),
    0 0 0 6px rgba(217, 182, 113, 0.64),
    0 14px 30px rgba(26, 40, 48, 0.24);
  outline: none;
}

.mp-karamo-bubble img {
  border: 2px solid rgba(253, 251, 247, 0.78);
  border-radius: 50%;
  box-sizing: border-box;
  height: 100%;
  object-fit: cover;
  width: 100%;
  z-index: 1;
}

.mp-karamo-chat.is-coaching .mp-karamo-bubble {
  animation: mp-bubble-coach-pulse 1.8s ease-in-out infinite;
}

@keyframes mp-bubble-gold-spin {
  to { transform: rotate(360deg); }
}

@keyframes mp-bubble-coach-pulse {
  0%, 100% {
    box-shadow:
      0 18px 34px rgba(26, 40, 48, 0.28),
      0 0 0 1px rgba(253, 251, 247, 0.56),
      0 0 0 0 rgba(217, 182, 113, 0.48);
  }
  50% {
    box-shadow:
      0 18px 34px rgba(26, 40, 48, 0.28),
      0 0 0 1px rgba(253, 251, 247, 0.56),
      0 0 0 12px rgba(217, 182, 113, 0);
  }
}

.mp-bubble-coachmark {
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.54);
  border-radius: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 20px 46px rgba(26, 40, 48, 0.24);
  color: #1a2830;
  max-width: min(286px, calc(100vw - 116px));
  padding: 13px;
  pointer-events: auto;
  position: fixed;
  right: max(92px, calc((100vw - 760px) / 2 + 92px));
  z-index: 902;
}

.mp-bubble-coachmark::before {
  background: linear-gradient(135deg, rgba(217, 182, 113, 0.72), rgba(253, 251, 247, 0.2), rgba(217, 182, 113, 0.52));
  border-radius: inherit;
  content: "";
  inset: -1px;
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.mp-bubble-coachmark::after {
  border-bottom: 10px solid transparent;
  border-left: 13px solid #fffefa;
  border-top: 10px solid transparent;
  bottom: 24px;
  content: "";
  position: absolute;
  right: -12px;
}

.mp-bubble-coachmark span,
.mp-bubble-coachmark strong,
.mp-bubble-coachmark p {
  display: block;
}

.mp-bubble-coachmark span {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.mp-bubble-coachmark strong {
  color: #1a2830;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  line-height: 1.08;
  margin-top: 4px;
}

.mp-bubble-coachmark p {
  color: rgba(26, 40, 48, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.36;
  margin: 7px 0 11px;
}

.mp-bubble-coachmark div {
  display: flex;
  gap: 8px;
}

.mp-bubble-coachmark button {
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.mp-bubble-coachmark [data-bubble-coach-open] {
  background: #d9b671;
  border: 1px solid rgba(217, 182, 113, 0.64);
  color: #1a2830;
}

.mp-bubble-coachmark [data-bubble-coach-dismiss] {
  background: rgba(26, 40, 48, 0.06);
  border: 1px solid rgba(26, 40, 48, 0.1);
  color: rgba(26, 40, 48, 0.72);
}

.mp-karamo-panel {
  background: #fffefa;
  border: 1px solid rgba(96, 37, 55, 0.15);
  border-radius: 18px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 22px 60px rgba(26, 40, 48, 0.26);
  display: flex;
  flex-direction: column;
  height: auto;
  left: max(10px, calc((100vw - 760px) / 2 + 10px));
  max-height: none;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: max(10px, calc((100vw - 760px) / 2 + 10px));
  top: calc(10px + env(safe-area-inset-top, 0px));
  transform: translateY(10px);
  transform-origin: bottom right;
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
  width: auto;
  z-index: 901;
}

.mp-karamo-chat.is-open .mp-karamo-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.mp-karamo-chat.is-open .mp-karamo-bubble {
  opacity: 0;
  pointer-events: none;
}

.mp-karamo-chat.is-open .mp-karamo-tap-hint {
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
}

.mp-karamo-panel-head {
  align-items: center;
  background: #1a2830;
  border-bottom: 1px solid rgba(217, 182, 113, 0.24);
  color: #fdfbf7;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px 10px 14px;
}

.mp-karamo-panel-head span,
.mp-karamo-panel-head strong {
  display: block;
}

.mp-karamo-panel-head span {
  color: #d9b671;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp-karamo-panel-head strong {
  color: #fdfbf7;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 3px;
}

.mp-karamo-close {
  align-items: center;
  background: rgba(253, 251, 247, 0.1);
  border: none;
  border-radius: 50%;
  color: #fdfbf7;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  width: 36px;
}

.mp-karamo-context {
  background: #f7f0e8;
  border-bottom: 1px solid rgba(96, 37, 55, 0.12);
  color: #1a2830;
  padding: 10px 14px;
}

.mp-karamo-context[hidden] {
  display: none;
}

.mp-karamo-context strong,
.mp-karamo-context span {
  display: block;
}

.mp-karamo-context strong {
  color: #602537;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.mp-karamo-context span {
  color: rgba(26, 40, 48, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
}

.mp-chat-body {
  background: #fffefa;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.mp-chat-empty,
.mp-chat-msg {
  color: #1a2830;
  font-size: 13px;
  line-height: 1.42;
}

.mp-chat-empty {
  align-self: center;
  background: rgba(217, 182, 113, 0.14);
  border: 1px dashed rgba(96, 37, 55, 0.2);
  border-radius: 14px;
  margin-top: 18px;
  max-width: 280px;
  padding: 12px;
  text-align: center;
}

.mp-chat-msg {
  border-radius: 15px;
  max-width: 88%;
  padding: 11px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.mp-chat-msg.is-user {
  align-self: flex-end;
  background: #1a2830;
  color: #fdfbf7;
}

.mp-chat-msg.is-karamo {
  align-self: flex-start;
  background: #f3eee7;
  color: #1a2830;
}

.mp-chat-msg.is-system {
  align-self: center;
  background: rgba(86, 183, 170, 0.13);
  color: #1a2830;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mp-chat-meal-card {
  align-self: stretch;
  background: #fffefa;
  border: 1px solid rgba(217, 182, 113, 0.36);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(26, 40, 48, 0.08);
  padding: 11px;
}

.mp-chat-meal-card strong {
  color: #1a2830;
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 9px;
}

.mp-chat-meal-card span,
.mp-chat-meal-card em,
.mp-chat-meal-card small,
.mp-chat-meal-card p {
  display: block;
}

.mp-chat-meal-card span {
  color: #d29a35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mp-chat-meal-card em {
  color: #602537;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  margin-bottom: 5px;
}

.mp-chat-meal-card small,
.mp-chat-meal-card p {
  color: rgba(26, 40, 48, 0.68);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.mp-chat-meal-card div {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mp-chat-meal-estimate div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-chat-meal-card button {
  background: rgba(217, 182, 113, 0.24);
  border: 1px solid rgba(217, 182, 113, 0.4);
  border-radius: 999px;
  color: #602537;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 34px;
}

.mp-chat-actions {
  background: #fffefa;
  border-top: 1px solid rgba(26, 40, 48, 0.08);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
}

.mp-chat-chip {
  background: rgba(217, 182, 113, 0.22);
  border: 1px solid rgba(217, 182, 113, 0.36);
  border-radius: 999px;
  color: #602537;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.mp-chat-chip[disabled] {
  cursor: progress;
  opacity: 0.62;
}

.mp-chat-form {
  align-items: flex-end;
  background: #fffefa;
  border-top: 1px solid rgba(26, 40, 48, 0.1);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}

.mp-chat-form textarea {
  background: #f7f0e8;
  border: 1px solid rgba(96, 37, 55, 0.16);
  border-radius: 14px;
  box-sizing: border-box;
  color: #1a2830;
  font: 700 14px/1.35 "DM Sans", sans-serif;
  max-height: 92px;
  min-height: 42px;
  padding: 11px 12px;
  resize: none;
  width: 100%;
}

.mp-chat-form button {
  background: #d9b671;
  border: none;
  border-radius: 14px;
  color: #1a2830;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  height: 42px;
  padding: 0 14px;
  text-transform: uppercase;
}

.mp-chat-form button[disabled] {
  cursor: progress;
  opacity: 0.62;
}

@media (max-width: 560px) {
  .my-plan-scroll {
    padding: 10px 10px 190px;
  }

  .mp-card {
    border-radius: 14px;
    padding: 13px;
  }

  .mp-actions {
    flex-direction: column;
  }

  .mp-session-head {
    grid-template-columns: 1fr 60px;
  }

  .mp-session-score {
    min-height: 60px;
  }

  .mp-set-labels,
  .mp-set-row {
    grid-template-columns: 45px 1fr 52px 52px 42px;
  }

  .mp-karamo-chat {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }

  .mp-bubble-coachmark {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 120px);
    right: 92px;
  }

  .mp-karamo-panel {
    border-radius: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    right: 8px;
    top: calc(8px + env(safe-area-inset-top, 0px));
    width: auto;
  }
}
