.activity-fieldset {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 0;
  border: 0;
}

.login-card,
.setup-card { position: relative; }

.auth-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -4px 0 14px -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f2f7;
  color: #1d1d1f;
}

.auth-back svg,
.back-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.activity-fieldset legend {
  margin-bottom: 9px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 650;
}

.activity-fieldset label {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #dedee3;
  border-radius: 14px;
  background: #fff;
}

.activity-fieldset input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #247f58;
}

.activity-fieldset span {
  font-size: 14px;
  font-weight: 600;
}

.activity-fieldset small {
  grid-column: 2;
  margin-top: 1px;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.25;
}

.weight-page[hidden] { display: none; }

.weight-entry-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgb(28 28 30 / 4%);
}

.weight-entry-card h2 { margin: 0 0 3px; font-size: 17px; }
.weight-entry-card p { margin: 0; color: #8e8e93; font-size: 14px; }
.weight-entry-card form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.weight-entry-card label { position: relative; display: block; }
.weight-entry-card input { width: 100%; height: 44px; padding: 0 39px 0 13px; border: 1px solid #dedee3; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; font-size: 16px; }
.weight-entry-card label small { position: absolute; top: 13px; right: 13px; color: #8e8e93; font-size: 14px; }
.weight-entry-card button { min-width: 112px; border: 0; border-radius: 12px; background: #247f58; color: #fff; font: inherit; font-weight: 650; }
.weight-entry-card button:disabled { opacity: .55; }

.weight-chart-panel { margin-top: 26px; }
.weight-summary { min-height: 20px; margin: 0 0 12px; color: #6e6e73; font-size: 14px; }
.weight-chart-wrap { min-height: 220px; }
.weight-empty { margin: 0; padding: 48px 12px; color: #8e8e93; font-size: 15px; text-align: center; }
.weight-chart { display: block; width: 100%; height: auto; overflow: visible; }
.weight-grid { stroke: #e5e5e9; stroke-width: 1; }
.weight-goal { stroke: #d0d0d6; stroke-width: 1; stroke-dasharray: 4 4; }
.weight-axis { fill: #85858b; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; font-size: 10px; }
.weight-line { fill: none; stroke: #247f58; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 370px) { .weight-entry-card button { min-width: 96px; } }
