.my-bodyindex-page {
  background: #f5f8f6;
}

.my-bodyindex-page .site-nav {
  gap: 20px;
  font-size: 14px;
}

.my-bodyindex-page .site-nav a[aria-current="page"] {
  color: var(--green-700);
  font-weight: 700;
}

.my-hero {
  padding: 72px 0 58px;
  background: linear-gradient(135deg, #f4f8f5 0%, #eef8f3 100%);
  border-bottom: 1px solid var(--line);
}

.my-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 54px;
}

.my-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(39px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.my-hero .hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
}

.my-hero-actions,
.my-save-row,
.my-data-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.my-privacy-card,
.my-panel,
.my-data-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(22, 58, 43, 0.055);
}

.my-privacy-card {
  padding: 30px;
}

.my-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid #cfe8dc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.my-privacy-card h2 {
  margin: 18px 0 15px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.my-privacy-card p {
  margin: 9px 0;
  color: var(--muted);
}

.my-privacy-card strong {
  color: var(--ink);
}

.my-small-note {
  color: #6b7874 !important;
  font-size: 13px;
}

.my-page-status {
  margin-top: 22px;
  padding: 13px 18px;
  color: #315348;
  background: #eef7f2;
  border: 1px solid #d8e9df;
  border-radius: 13px;
  font-size: 14px;
}

.my-page-status[data-kind="success"] {
  color: #036146;
  background: #e9f8f1;
  border-color: #bfe5d3;
}

.my-page-status[data-kind="warning"] {
  color: #7a5200;
  background: #fff8e6;
  border-color: #ecd99e;
}

.my-management-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.my-management-map a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.my-management-map a:hover {
  border-color: #a9d2bf;
  transform: translateY(-2px);
}

.my-management-map span {
  grid-row: 1 / 3;
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.my-management-map strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  white-space: nowrap;
}

.my-management-map small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  font-size: 11px;
  white-space: nowrap;
}

.my-section {
  padding: 68px 0;
}

.my-section-muted {
  background: #eef4f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.my-section-heading .eyebrow,
.my-panel-heading .my-panel-kicker {
  margin-bottom: 7px;
}

.my-section-heading h2 {
  margin: 0;
  font-size: clamp(29px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.my-section-heading > p {
  max-width: 520px;
  margin: 0 0 3px;
  color: var(--muted);
  text-align: right;
}

.my-data-tools strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.my-data-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.my-todo-add input,
.my-diary-panel textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbdcd4;
  border-radius: 12px;
  font: inherit;
  outline: none;
}

.my-todo-add input {
  min-height: 50px;
  padding: 11px 14px;
}

.my-todo-add input:focus,
.my-diary-panel textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.11);
}

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

.my-panel {
  padding: 26px;
}

.my-diary-panel {
  grid-column: 1 / -1;
}

.my-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.my-panel-kicker {
  display: block;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.my-panel-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.my-panel-value {
  color: var(--green-700);
  font-size: 18px;
  font-weight: 700;
}

.my-panel-value b {
  margin-right: 3px;
  font-size: 34px;
}

.my-counter {
  color: var(--muted);
  font-size: 13px;
}

.my-water-progress {
  height: 12px;
  overflow: hidden;
  background: #e4eee9;
  border-radius: 999px;
}

.my-water-progress span {
  display: block;
  width: var(--water-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #2a9d78, #64c9a4);
  border-radius: inherit;
  transition: width 180ms ease;
}

.my-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 18px;
}

.my-stepper button {
  width: 48px;
  height: 48px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid #c4dfd2;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
}

.my-stepper button:disabled {
  opacity: 0.45;
  cursor: default;
}

.my-stepper span {
  color: var(--muted);
  font-size: 13px;
}

.my-todo-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.my-todo-add button {
  padding: 0 18px;
  color: #fff;
  background: var(--green-700);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.my-empty {
  margin: 20px 0 0;
  padding: 18px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px dashed #cbdcd4;
  border-radius: 13px;
  text-align: center;
  font-size: 14px;
}

.my-todo-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.my-todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 9px 10px 9px 13px;
  background: #f7faf8;
  border: 1px solid #e0ebe5;
  border-radius: 11px;
}

.my-todo-row label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  cursor: pointer;
}

.my-todo-row label span {
  overflow-wrap: anywhere;
}

.my-todo-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-700);
}

.my-todo-row.is-done label span {
  color: #84918d;
  text-decoration: line-through;
}

.my-icon-button {
  padding: 6px 8px;
  color: #786c68;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.my-diary-panel textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
  line-height: 1.65;
}

.my-save-row {
  justify-content: space-between;
  margin-top: 20px;
  padding: 19px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.my-save-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.my-save-row .button,
.my-data-tools .button {
  border: 0;
  cursor: pointer;
}

.my-history-heading {
  align-items: center;
}

.my-period-toggle {
  display: inline-flex;
  padding: 4px;
  background: #e8f0ec;
  border-radius: 12px;
}

.my-period-toggle button {
  min-width: 70px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.my-period-toggle button.is-active {
  color: var(--green-700);
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 64, 50, 0.08);
}

.my-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.my-summary-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.my-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.my-summary-grid strong {
  color: var(--green-700);
  font-size: 25px;
}

.my-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 20px;
}

.my-chart-legend {
  color: var(--muted);
  font-size: 12px;
}

.my-chart-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 5px;
  background: #48b48d;
  border-radius: 3px;
}

.my-history-chart {
  height: 230px;
  display: flex;
  align-items: end;
  gap: clamp(2px, 0.6vw, 8px);
  padding: 18px 8px 0;
  border-bottom: 1px solid #dbe8e1;
}

.my-chart-item {
  height: 100%;
  min-width: 0;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 7px;
}

.my-chart-bar {
  width: min(22px, 70%);
  min-height: 2px;
  background: linear-gradient(180deg, #4ab68f, #7cd3b3);
  border-radius: 6px 6px 2px 2px;
}

.my-chart-item small {
  min-height: 19px;
  color: #7a8883;
  font-size: 9px;
  white-space: nowrap;
}

.my-history-list {
  max-height: 285px;
  display: grid;
  gap: 9px;
  overflow-y: auto;
  padding-right: 4px;
}

.my-history-row {
  padding: 13px 14px;
  background: #f7faf8;
  border: 1px solid #e0ebe5;
  border-radius: 12px;
}

.my-history-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-history-row strong {
  font-size: 14px;
}

.my-history-row span {
  color: var(--green-700);
  font-size: 12px;
  white-space: nowrap;
}

.my-history-row p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.my-data-tools {
  justify-content: space-between;
  margin-top: 20px;
  padding: 22px 24px;
  box-shadow: none;
}

.my-data-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.my-import-button {
  cursor: pointer;
}

.my-import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.my-danger-button {
  min-height: 45px;
  padding: 10px 13px;
  color: #8e3b33;
  background: transparent;
  border: 1px solid #d9b8b3;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.my-safety-section {
  padding-top: 20px;
}

.my-safety-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 48px;
  padding: 35px 38px;
  background: #e9f2ed;
  border-radius: 22px;
}

.my-safety-grid h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.my-safety-grid p {
  margin: 0 0 12px;
  color: var(--muted);
}

.my-safety-grid p:last-child {
  margin-bottom: 0;
}

.my-safety-grid strong {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .my-hero-grid,
  .my-history-layout,
  .my-safety-grid {
    grid-template-columns: 1fr;
  }

  .my-hero-grid {
    gap: 30px;
  }

  .my-safety-grid {
    gap: 22px;
  }

  .my-management-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .my-hero {
    padding: 48px 0 38px;
  }

  .my-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .my-section {
    padding: 48px 0;
  }

  .my-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .my-section-heading > p {
    text-align: left;
  }

  .my-today-grid,
  .my-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .my-diary-panel {
    grid-column: 1 / -1;
  }

  .my-panel {
    padding: 21px;
  }

  .my-water-panel,
  .my-todo-panel {
    grid-column: 1 / -1;
  }

  .my-save-row,
  .my-data-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .my-save-row .button,
  .my-data-tools .button {
    width: 100%;
  }

  .my-data-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .my-danger-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .my-bodyindex-page .container {
    width: min(100% - 28px, 1140px);
  }

  .my-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .my-hero-actions .button {
    width: 100%;
  }

  .my-management-map {
    grid-template-columns: 1fr;
  }

  .my-privacy-card {
    padding: 23px 20px;
  }

  .my-summary-grid {
    gap: 8px;
  }

  .my-summary-grid article {
    padding: 16px 14px;
  }

  .my-summary-grid strong {
    font-size: 21px;
  }

  .my-history-chart {
    height: 190px;
    padding-inline: 0;
  }

  .my-history-row > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .my-safety-grid {
    padding: 28px 23px;
  }
}
