/* The everyday view: one body, a few measurements, and clear trends. */
body.simple-ui {
  background: #f8f9fb;
  color: #35313e;
}

.simple-ui .icon {
  width: 18px;
  height: 18px;
}

.simple-ui .card {
  border-color: #e9e8ee;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgb(52 39 72 / 2%);
}

.simple-ui .btn {
  min-height: 43px;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 13px;
}

.simple-ui .btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.simple-ui .btn.primary {
  background: #f47851;
  border-color: #f47851;
  box-shadow: none;
}

.simple-ui .btn.primary:hover {
  background: #e56a44;
  border-color: #e56a44;
}

.simple-ui .text-muted {
  color: #938b9c;
}

.simple-shell {
  min-height: 100vh;
}

.simple-header {
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid #eae8ef;
}

.simple-header-inner {
  max-width: 1152px;
  min-height: 83px;
  padding: 0 36px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.simple-header .brand {
  justify-self: start;
  padding: 0;
  margin: 0;
  font-size: 27px;
  letter-spacing: -1.6px;
}

.simple-header .brand-mark {
  width: 27px;
}

.simple-header .brand-mark i {
  width: 5px;
}

.simple-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f6f4f9;
  border-radius: 11px;
  padding: 4px;
}

.simple-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 119px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #92879e;
  transition: color .15s, background .15s;
}

.simple-nav a .icon {
  width: 17px;
  height: 17px;
}

.simple-nav a:hover {
  color: #795996;
  background: #eee8f6;
}

.simple-nav a.active,
.simple-nav a[aria-current='page'] {
  background: white;
  color: #7c5a9b;
  box-shadow: 0 2px 5px rgb(75 48 103 / 5%);
  font-weight: 600;
}

.simple-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  color: #8f7d9d;
  font-size: 12px;
  white-space: nowrap;
}

.simple-account .avatar {
  width: 34px;
  height: 34px;
  background: #eee8f6;
  color: #9471b1;
  font-size: 12px;
}

.simple-main {
  width: 100%;
  max-width: 1152px;
  padding: 25px 36px 30px;
  margin: 0 auto;
  outline: none;
}

.simple-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  margin-bottom: 28px;
  border: 1px solid #eae4f3;
  border-radius: 9px;
  background: #f2eef8;
  color: #a38ab8;
  font-size: 11px;
  line-height: 1.7;
}

.simple-demo > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.simple-demo > span .icon {
  width: 14px;
  height: 14px;
}

.simple-demo button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 0;
  color: #9070a8;
  font-size: 11px;
  font-weight: 600;
}

.simple-demo button .icon {
  width: 13px;
  height: 13px;
}

.simple-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.simple-heading .eyebrow {
  color: #ac8ec4;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  margin: 0 0 9px;
}

.simple-heading h1 {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.1px;
  line-height: 1.35;
  color: #4b3d58;
}

.simple-heading p:not(.eyebrow) {
  color: #a491b1;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}

.simple-heading > .btn {
  flex-shrink: 0;
}

.body-overview.card {
  padding: 26px 29px 0;
  overflow: hidden;
}

.body-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.body-panel-header h2 {
  color: #756081;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.3px;
}

.body-last-update {
  color: #b19cbf;
  font-size: 11px;
  line-height: 1.7;
}

.body-last-update .icon {
  width: 13px;
  height: 13px;
  margin-right: 4px;
}

.body-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 800px;
  min-height: 485px;
  margin: 11px auto 0;
}

.body-labels {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 325px;
  min-width: 0;
}

.body-labels.left {
  align-items: flex-end;
}

.body-labels.right {
  align-items: flex-start;
}

.body-measure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  position: relative;
  width: 155px;
  min-width: 0;
  min-height: 86px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  padding: 12px 16px;
  text-align: left;
  transition: background .18s, border-color .18s;
}

.body-measure:hover {
  border-color: #e9e0f3;
  background: #fbf8fd;
}

.body-measure.is-selected {
  border-color: #e5d7f1;
  background: #f6f0fb;
}

.body-measure-name {
  font-size: 12px;
  font-weight: 500;
  color: #b29cc2;
  line-height: 1.6;
}

.body-measure-value {
  color: #9879ad;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.7px;
}

.body-measure-value small {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #bcabcd;
}

.body-measure-date {
  color: #c2b2ce;
  font-size: 9px;
  line-height: 1.6;
}

.body-measure.is-selected .body-measure-name {
  color: #9a79b4;
}

.body-measure.is-selected .body-measure-value {
  color: #8863a3;
}

.body-visual {
  width: 100%;
  height: 465px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.body-figure {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 360px;
  overflow: visible;
}

.body-caption {
  color: #b5a2c2;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  padding: 0 12px 21px;
  margin: -7px 0 0;
}

.body-caption .icon {
  width: 13px;
  height: 13px;
  margin-right: 3px;
}

.body-vitals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #f0e9f5;
  margin: 0 -29px;
  padding: 21px 29px 23px;
  background: #fefcfe;
}

.body-vital {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  min-width: 0;
  text-align: center;
  border-left: 1px solid #efe6f4;
}

.body-vital:first-child {
  border-left: 0;
}

.body-vital > span:first-child,
.body-vital > label {
  color: #af98c0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.body-vital-value {
  color: #8b6c9f;
  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.6px;
}

.body-vital-value small {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #b29cc1;
  letter-spacing: 0;
}

.body-vital > small {
  color: #b9a7c6;
  font-size: 10px;
  line-height: 1.5;
}

.trends-section {
  margin-top: 34px;
}

.trends-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.trends-heading h2 {
  color: #7e648d;
  font-size: 20px;
  letter-spacing: -.5px;
  font-weight: 650;
}

.trends-heading > div > p {
  color: #b29cc2;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}

.trends-heading .segmented {
  border: 1px solid #e9e2f0;
  background: #f0ebf6;
  border-radius: 8px;
}

.trends-heading .segment {
  padding: 7px 11px;
  font-size: 11px;
  min-width: 51px;
  color: #ae94c1;
}

.trends-heading .segment.active {
  color: #9471af;
}

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

.trend-card.card {
  padding: 23px 23px 19px;
  min-width: 0;
}

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

.trend-card-header h3 {
  font-size: 13px;
  color: #a68ab9;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7;
}

.trend-card-header label {
  font-size: 11px;
  color: #ae94c0;
}

.trend-card-header select {
  width: auto;
  max-width: 145px;
  min-width: 90px;
  color: #a484b9;
  font-size: 11px;
  padding: 7px 10px;
  border-color: #e9dff1;
  border-radius: 7px;
  background: #fdfaff;
}

.trend-card-number {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #8f6ea7;
  letter-spacing: -.9px;
  line-height: 1.35;
}

.trend-card-number small {
  font-family: 'DM Sans', sans-serif;
  color: #b9a4c7;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.trend-card-change {
  font-size: 11px;
  color: #ad95be;
  line-height: 1.8;
  margin-top: 5px;
}

.trend-card-change.positive {
  color: #8aa681;
}

.trend-card .chart-wrap {
  margin-top: 22px;
}

.trend-card .chart-svg {
  width: 100%;
  min-height: 0;
  height: auto;
}

.trend-card .chart-svg text {
  font-size: 11px;
  fill: #ad96be;
}

.trend-card .chart-legend {
  margin-top: 9px;
  font-size: 10px;
  color: #b59ac7;
  justify-content: space-between;
  column-gap: 9px;
  row-gap: 5px;
}

.trend-card .chart-legend b {
  font-weight: 500;
  color: #a58bb9;
}

.trend-card .chart-empty {
  min-height: 214px;
  font-size: 12px;
  gap: 12px;
}

.trend-card .chart-empty p {
  font-size: 12px;
  line-height: 1.8;
}

.simple-history {
  margin-top: 23px;
  border: 1px solid #e9e1f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.simple-history > summary {
  padding: 19px 22px;
  color: #ab8ebf;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.7;
}

.simple-history > summary::marker {
  color: #c7aed8;
  font-size: 10px;
}

.simple-history > .table-wrap,
.simple-history > .history-content {
  padding: 5px 22px 21px;
}

.simple-history .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 22px 22px;
}

.simple-history .measure-table th {
  font-size: 11px;
  color: #ae95be;
}

.simple-history .measure-table td {
  font-size: 12px;
  color: #a68bb7;
}

.simple-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 29px;
  color: #b6a0c6;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.simple-footer .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.simple-footer button {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  color: #a78bbc;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep the training and data forms in the same readable scale. */
.simple-ui .simple-main .page-heading h1 {
  font-size: 30px;
}

.simple-ui .simple-main .page-heading p {
  font-size: 12px;
}

.simple-ui .simple-main .routine-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.simple-ui .simple-main .note {
  font-size: 12px;
}

.simple-ui .simple-main .profile-text,
.simple-ui .simple-main .input-hint {
  font-size: 12px;
}

.simple-ui .modal-intro,
.simple-ui .modal-body .input-hint,
.simple-ui .modal-body .field,
.simple-ui .modal-body .field input,
.simple-ui .modal-body .field select {
  font-size: 13px;
}

@media (max-width: 900px) {
  .simple-header-inner {
    padding: 0 28px;
    gap: 20px;
  }

  .simple-main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .simple-heading h1 {
    font-size: 30px;
  }

  .body-map {
    grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr);
    min-height: 460px;
  }

  .body-visual {
    height: 440px;
  }

  .body-measure {
    width: 142px;
    padding: 12px;
  }

  .body-measure-value {
    font-size: 25px;
  }

  .simple-charts {
    gap: 17px;
  }

  .trend-card.card {
    padding: 21px 18px 17px;
  }
}

@media (max-width: 700px) {
  .simple-header-inner {
    min-height: 78px;
    padding: 0 22px;
    gap: 15px;
  }

  .simple-header .brand {
    font-size: 25px;
  }

  .simple-nav a {
    min-width: 101px;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .simple-account > span:not(.avatar) {
    display: none;
  }

  .simple-main {
    padding: 22px 22px 27px;
  }

  .simple-demo {
    font-size: 10px;
    margin-bottom: 26px;
  }

  .simple-heading {
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 24px;
  }

  .simple-heading h1 {
    font-size: 29px;
  }

  .simple-heading p:not(.eyebrow) {
    font-size: 12px;
  }

  .simple-heading > .btn {
    font-size: 12px;
    padding: 10px 13px;
    min-height: 40px;
  }

  .body-overview.card {
    padding: 23px 20px 0;
  }

  .body-panel-header {
    align-items: flex-start;
    gap: 13px;
  }

  .body-panel-header h2 {
    font-size: 15px;
  }

  .body-last-update {
    font-size: 10px;
    text-align: right;
    max-width: 150px;
  }

  .body-map {
    grid-template-columns: minmax(0, 1fr) 225px minmax(0, 1fr);
    min-height: 425px;
    margin-top: 9px;
  }

  .body-visual {
    height: 415px;
  }

  .body-labels {
    height: 290px;
    gap: 20px;
  }

  .body-measure {
    width: 118px;
    padding: 10px;
    min-height: 78px;
    gap: 5px;
  }

  .body-measure-name {
    font-size: 11px;
  }

  .body-measure-value {
    font-size: 23px;
  }

  .body-measure-value small {
    font-size: 10px;
  }

  .body-measure-date {
    font-size: 8px;
  }

  .body-caption {
    font-size: 10px;
    padding-bottom: 21px;
    margin-top: -4px;
  }

  .body-vitals {
    margin: 0 -20px;
    padding: 19px 20px 21px;
  }

  .body-vital {
    padding: 0 14px;
    gap: 8px;
  }

  .body-vital-value {
    font-size: 21px;
  }

  .body-vital > span:first-child,
  .body-vital > label {
    font-size: 10px;
  }

  .body-vital > small {
    font-size: 9px;
  }

  .trends-section {
    margin-top: 30px;
  }

  .trends-heading h2 {
    font-size: 19px;
  }

  .trends-heading .segment {
    font-size: 10px;
    min-width: 45px;
    padding: 7px 9px;
  }

  .simple-charts {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .trend-card.card {
    padding: 23px 22px 20px;
  }

  .trend-card-header h3 {
    font-size: 13px;
  }

  .trend-card-number {
    font-size: 30px;
  }

  .trend-card .chart-wrap {
    margin-top: 20px;
  }

  .trend-card .chart-legend {
    font-size: 11px;
  }

  .simple-ui .simple-main .page-heading h1 {
    font-size: 28px;
  }
}

@media (max-width: 500px) {
  .simple-header-inner {
    grid-template-columns: 1fr auto;
    min-height: 0;
    row-gap: 0;
    padding: 16px 19px 12px;
  }

  .simple-header .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 25px;
    line-height: 1;
  }

  .simple-header .brand-mark {
    width: 25px;
    height: 28px;
    margin-right: 1px;
  }

  .simple-account {
    grid-column: 2;
    grid-row: 1;
  }

  .simple-account .avatar {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .simple-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin-top: 15px;
    padding: 3px;
    gap: 4px;
    border-radius: 10px;
  }

  .simple-nav a {
    min-width: 126px;
    min-height: 36px;
    padding: 8px 17px;
    font-size: 12px;
    gap: 8px;
  }

  .simple-nav a .icon {
    width: 16px;
    height: 16px;
  }

  .simple-main {
    padding: 18px 16px 24px;
  }

  .simple-demo {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 11px;
    margin-bottom: 25px;
    font-size: 9px;
    line-height: 1.8;
  }

  .simple-demo > span {
    display: block;
  }

  .simple-demo > span .icon {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }

  .simple-demo button {
    font-size: 9px;
    margin-top: 2px;
    gap: 3px;
  }

  .simple-demo button .icon {
    width: 11px;
    height: 11px;
  }

  .simple-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 22px;
  }

  .simple-heading .eyebrow {
    font-size: 9px !important;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
  }

  .simple-heading h1 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.35;
  }

  .simple-heading p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 8px;
    max-width: 310px;
  }

  .simple-heading > .btn {
    align-self: flex-start;
    font-size: 12px;
    min-height: 41px;
    padding: 10px 15px;
  }

  .body-overview.card {
    padding: 21px 14px 0;
    border-radius: 13px;
  }

  .body-panel-header {
    align-items: flex-start;
    gap: 12px;
  }

  .body-panel-header h2 {
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: -.25px;
  }

  .body-last-update {
    font-size: 9px;
    line-height: 1.8;
    max-width: 107px;
  }

  .body-last-update .icon {
    width: 11px;
    height: 11px;
    margin-right: 1px;
  }

  .body-map {
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    width: 100%;
    max-width: 390px;
    min-height: 365px;
    margin-top: 14px;
  }

  .body-visual {
    height: 355px;
    min-width: 0;
  }

  .body-figure {
    width: 100%;
    height: 355px;
    max-width: none;
  }

  .body-labels {
    height: 270px;
    gap: 15px;
  }

  .body-labels.left,
  .body-labels.right {
    align-items: stretch;
  }

  .body-measure {
    width: 78px;
    min-height: 72px;
    padding: 9px 6px;
    gap: 5px;
    border-radius: 8px;
  }

  .body-measure-name {
    font-size: 11px;
    line-height: 1.5;
    color: #ad95be;
  }

  .body-measure-value {
    font-size: 21px;
    letter-spacing: -.7px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .body-measure-value small {
    font-size: 9px;
  }

  .body-measure-date {
    font-size: 8px;
    line-height: 1.5;
  }

  .body-caption {
    padding: 0 2px 19px;
    margin-top: -1px;
    font-size: 10px;
    line-height: 1.8;
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
  }

  .body-caption .icon {
    width: 12px;
    height: 12px;
    margin-right: 1px;
  }

  .body-vitals {
    margin: 0 -14px;
    padding: 19px 8px 21px;
  }

  .body-vital {
    gap: 8px;
    padding: 0 8px;
  }

  .body-vital > span:first-child,
  .body-vital > label {
    font-size: 10px;
    line-height: 1.6;
  }

  .body-vital-value {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -.5px;
  }

  .body-vital-value small {
    font-size: 9px;
  }

  .body-vital > small {
    font-size: 8px;
    line-height: 1.7;
  }

  .trends-section {
    margin-top: 27px;
  }

  .trends-heading {
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .trends-heading h2 {
    font-size: 18px;
    letter-spacing: -.5px;
    line-height: 1.5;
  }

  .trends-heading > div > p {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 4px;
  }

  .trends-heading .segmented {
    flex-shrink: 0;
    padding: 2px;
    gap: 1px;
    border-radius: 7px;
  }

  .trends-heading .segment {
    min-width: 35px;
    padding: 6px 6px;
    font-size: 9px;
    border-radius: 5px;
  }

  .simple-charts {
    gap: 16px;
  }

  .trend-card.card {
    padding: 21px 17px 18px;
    border-radius: 13px;
  }

  .trend-card-header {
    gap: 14px;
    margin-bottom: 12px;
  }

  .trend-card-header h3 {
    font-size: 12px;
  }

  .trend-card-header select {
    font-size: 11px;
    padding: 7px 9px;
    min-width: 90px;
    max-width: 129px;
  }

  .trend-card-number {
    font-size: 30px;
  }

  .trend-card-number small {
    font-size: 11px;
  }

  .trend-card-change {
    font-size: 11px;
  }

  .trend-card .chart-wrap {
    margin-top: 20px;
  }

  .trend-card .chart-legend {
    justify-content: flex-start;
    font-size: 9px;
    column-gap: 10px;
    row-gap: 5px;
  }

  .trend-card .chart-empty {
    min-height: 195px;
    gap: 11px;
    font-size: 11px;
  }

  .trend-card .chart-empty p {
    font-size: 11px;
  }

  .simple-history {
    margin-top: 19px;
    border-radius: 10px;
  }

  .simple-history > summary {
    font-size: 12px;
    padding: 17px;
    line-height: 1.8;
  }

  .simple-history > .table-wrap,
  .simple-history > .history-content {
    padding: 2px 17px 18px;
  }

  .simple-history .card {
    padding: 3px 17px 18px;
  }

  .simple-history .measure-table th {
    font-size: 10px;
  }

  .simple-history .measure-table td {
    font-size: 11px;
  }

  .simple-footer {
    margin-top: 25px;
    font-size: 9px;
    gap: 5px;
    align-items: flex-start;
    line-height: 1.9;
  }

  .simple-footer .icon {
    width: 12px;
    height: 12px;
    margin-top: 2px;
  }

  .simple-ui .simple-main .page-heading h1 {
    font-size: 27px;
  }

  .simple-ui .simple-main .page-heading p {
    font-size: 12px;
    line-height: 1.8;
  }

  .simple-ui .simple-main .routine-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .simple-ui .simple-main .note {
    font-size: 11px;
    line-height: 1.8;
  }

  .simple-ui .simple-main .profile-text,
  .simple-ui .simple-main .input-hint {
    font-size: 12px;
    line-height: 1.9;
  }

  .simple-ui .btn {
    font-size: 12px;
    min-height: 41px;
  }

  .simple-ui .modal-footer .btn {
    font-size: 11px;
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simple-ui * {
    transition: none !important;
  }
}

/* Anchor the labels near their measurement lines while preserving space to read. */
.body-panel-header > div > p {
  color: #9682a4;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}

.body-labels {
  display: block;
  height: 465px;
}

.body-measure {
  position: absolute;
  min-height: 0;
  padding: 9px 14px;
  gap: 3px;
  transform: translateY(-50%);
}

.body-labels.left .body-measure {
  right: 0;
}

.body-labels.right .body-measure {
  left: 0;
}

.body-labels.left .body-measure:nth-child(1) { top: 28%; }
.body-labels.left .body-measure:nth-child(2) { top: 46%; }
.body-labels.left .body-measure:nth-child(3) { top: 70%; }
.body-labels.right .body-measure:nth-child(1) { top: 35.4%; }
.body-labels.right .body-measure:nth-child(2) { top: 55.2%; }
.body-labels.right .body-measure:nth-child(3) { top: 78%; }

.body-figure {
  width: 349px;
  height: 465px;
  flex-shrink: 0;
  max-width: none;
}

.body-vital-value.goal-value {
  font-size: 18px;
  letter-spacing: -.3px;
}

.body-vital > span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.body-vital .icon-btn {
  width: 20px;
  height: 20px;
}

.body-vital .icon-btn .icon {
  width: 12px;
  height: 12px;
}

.simple-history.card {
  padding: 0;
}

.simple-history > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.simple-history > summary::-webkit-details-marker {
  display: none;
}

.simple-history > summary > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aa96b8;
  font-size: 10px;
  white-space: nowrap;
}

.simple-history > summary > span .icon {
  width: 13px;
  height: 13px;
  transition: transform .18s;
}

.simple-history[open] > summary > span .icon {
  transform: rotate(90deg);
}

.simple-history-content {
  padding: 0 22px 22px;
}

.history-export {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 16px;
}

.simple-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.simple-footer > button {
  text-decoration: none;
  margin-left: 10px;
}

.simple-footer > button .icon {
  width: 11px;
  height: 11px;
  margin-left: 3px;
}

.training-history-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 3px;
  color: #8f729f;
  font-size: 13px;
}

.training-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #8c6e9d;
  font-size: 12px;
}

/* Soft colors still need enough contrast for small, everyday labels. */
.body-measure-name,
.body-measure-date,
.body-last-update,
.body-caption,
.body-vital > span:first-child,
.body-vital > label,
.body-vital > small,
.trend-card-header h3,
.trend-card-change,
.simple-heading p:not(.eyebrow),
.trends-heading > div > p,
.simple-footer,
.simple-demo {
  color: #897394;
}

.body-measure-value,
.body-vital-value,
.trend-card-number {
  color: #80618f;
}

.body-measure-value small,
.body-vital-value small,
.trend-card-number small {
  color: #a58ab4;
}

.body-measure.is-selected .body-measure-name {
  color: #8e6ba4;
}

.body-measure.is-selected .body-measure-value {
  color: #79548e;
}

.trend-card .chart-svg text {
  fill: #9982a7;
}

.trend-card .chart-legend {
  color: #9e83ae;
}

.trend-card-header > .icon {
  color: #bea8ce;
}

@media (max-width: 900px) {
  .body-labels { height: 440px; }
  .body-figure { width: 330px; height: 440px; }
}

@media (max-width: 700px) {
  .body-labels { height: 415px; }
  .body-figure { width: 311px; height: 415px; }
  .body-measure { padding: 8px 10px; }
  .body-vital-value.goal-value { font-size: 16px; }
}

@media (max-width: 500px) {
  .body-labels { height: 355px; }
  .body-figure { width: 266px; height: 355px; }
  .body-map { position: relative; }
  .body-visual {
    position: absolute;
    top: 5px;
    right: 0;
    left: 0;
    width: 100%;
    height: 355px;
    z-index: 0;
  }
  .body-labels.left { grid-column: 1; }
  .body-labels.right { grid-column: 3; }
  .body-measure { padding: 7px 6px; gap: 2px; }
  .body-measure:not(.is-selected) { background: rgb(255 255 255 / 92%); }
  .body-measure-date { display: none; }
  .body-vital-value.goal-value { font-size: 14px; }
  .body-panel-header > div > p { font-size: 10px; line-height: 1.8; }
  .body-panel-header h2 { font-size: 14px; }
  .simple-history-content { padding: 0 17px 18px; }
  .simple-history > summary { font-size: 11px; gap: 8px; }
  .simple-history > summary > span { font-size: 9px; gap: 5px; }
  .simple-footer { flex-wrap: wrap; row-gap: 7px; }
  .simple-footer > button { margin-left: 0; }
  .training-history-link { font-size: 12px; }
}
