*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body,
button,
input,
select,
textarea {
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
}
body {
  background: var(--my-bg-page);
  color: var(--my-ink);
  font-size: 16px;
  line-height: 1.5;
}
.my-app {
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.my-app :is(h1, h2, h3) {
  text-wrap: balance;
}
#app {
  min-height: 100dvh;
}
main {
  max-width: 512px;
  margin: auto;
  padding: calc(1.25rem + env(safe-area-inset-top)) 20px
    calc(110px + env(safe-area-inset-bottom));
}
button {
  cursor: pointer;
  color: inherit;
}
button,
input,
select,
textarea {
  font-size: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:not(:disabled):active {
  opacity: 0.68;
}
:focus-visible {
  outline: 2px solid var(--care-brand);
  outline-offset: 3px;
}
p,
h1,
h2,
h3,
ul,
dl,
dd,
fieldset {
  padding: 0;
  margin: 0;
}
h1 {
  color: var(--my-ink-strong);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.4;
  margin-bottom: 20px;
}
h2,
legend {
  color: var(--my-ink-strong);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin-bottom: 10px;
}
h3 {
  font-size: 15px;
}
p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.eyebrow,
.meta,
time {
  color: var(--my-ink-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.eyebrow {
  margin-bottom: 4px;
}
.card {
  margin: 0 0 12px;
  border: 1px solid var(--my-card-line);
  border-radius: var(--my-radius-card);
  background: #fff;
}
.card-body {
  padding: 18px 16px;
}
.card-body > :last-child {
  margin-bottom: 0;
}
.card-body > p + button,
.card-body > p + .meta,
.card-body > .summary-list + button {
  margin-top: 12px;
}
.card-body > .meta {
  margin-top: 10px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  background: var(--care-brand);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.08px;
}
.primary:not(:disabled):hover {
  background: var(--care-brand-hover);
}
.sub,
.choice,
.textbtn {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.sub {
  border-radius: 999px;
  background: var(--my-fill-soft);
  padding: 8px 16px;
  color: var(--my-ink);
}
.sub[aria-pressed="true"] {
  color: var(--my-brand-deep);
  background: var(--my-brand-assistive);
}
.textbtn {
  color: var(--care-brand);
  padding: 5px 4px;
}
.danger {
  color: #303030;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.glyph {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  mask: var(--glyph) center/contain no-repeat;
  -webkit-mask: var(--glyph) center/contain no-repeat;
}
.glyph-home {
  --glyph: url("maeumi/home.svg");
}
.glyph-record {
  --glyph: url("maeumi/record.svg");
}
.glyph-goal {
  --glyph: url("maeumi/goal.svg");
}
.glyph-settings {
  --glyph: url("maeumi/settings.svg");
}
.glyph-scan {
  --glyph: url("maeumi/scan.svg");
}
.glyph-walk {
  --glyph: url("maeumi/walk.svg");
}
.glyph-sleep {
  --glyph: url("maeumi/sleep.svg");
}
.glyph-check {
  --glyph: url("maeumi/check.svg");
}
.maumi {
  display: block;
  width: 100%;
  object-fit: contain;
}

#app[data-screen="intake"] main {
  min-height: 100svh;
  max-width: 424px;
  display: flex;
  flex-direction: column;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
#app[data-screen="intake"] h1 {
  font-size: 24px;
  margin-bottom: 24px;
}
#app[data-screen="intake"] .eyebrow {
  color: var(--my-brand-deep);
}
#app[data-screen="intake"] > main > progress {
  height: 5px;
  margin: 8px 0 32px;
}
#app[data-screen="intake"] .card {
  background: var(--my-brand-tint);
}
.choices {
  display: grid;
  gap: 8px;
}
.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 12px 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--my-option-line);
  border-radius: 16px;
  background: #fff;
}
.choice::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid var(--my-option-line);
  border-radius: 50%;
  flex: none;
}
.choice[aria-pressed="true"] {
  border-color: var(--care-brand);
  color: var(--my-brand-deep);
  background: var(--my-brand-assistive);
}
.choice[aria-pressed="true"]::after {
  border: 5px solid var(--care-brand);
  background: white;
}
.intake-actions {
  flex-wrap: nowrap;
  padding-top: 26px;
  margin: auto 0 0;
}
.intake-actions .primary {
  flex: 1;
  min-height: 54px;
}
.intake-actions .sub {
  min-height: 54px;
  padding-inline: 24px;
}
fieldset {
  border: 0;
  min-width: 0;
  margin-bottom: 22px;
}
.mood-options {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 10px 0;
}
.mood-option {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  font-size: 12px;
  color: var(--my-slate);
}
.mood-option img {
  width: clamp(38px, 11vw, 55px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.mood-option[aria-pressed="true"] {
  color: var(--my-brand-deep);
  font-weight: 600;
}
.mood-option[aria-pressed="true"] img {
  outline: 2px solid var(--care-brand);
  outline-offset: 2px;
}
.textbtn[aria-pressed="true"] {
  color: var(--my-brand-deep);
  text-decoration: underline;
}

.week-record {
  border-top: 1px solid var(--my-row-line);
  margin-top: 13px;
  padding-top: 10px;
}
.week-record p {
  font-size: 12px;
  font-weight: 600;
}
.week-record ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 6px;
}
.week-record li {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--my-slate);
}
.week-record b {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  background: var(--my-fill-soft);
}
.week-record [aria-current="date"] b {
  outline: 1px solid var(--care-brand);
  color: var(--my-brand-deep);
}
.week-record .logged {
  background: var(--my-brand-assistive);
  color: var(--care-brand);
}
.week-record .glyph {
  width: 15px;
  height: 15px;
}
.coach .maumi {
  float: right;
  width: 48px;
  margin: -4px 0 0 8px;
}
.coach p {
  color: var(--my-ink-muted);
}
.coach .sub {
  color: var(--care-brand);
  border: 1px solid var(--my-brand-line);
  background: var(--my-brand-tint);
}

/* Record tabs, measurement guide, goals and settings use the same paper, rules and controls. */
.segments {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: var(--my-record-tabs-bg);
}
.segments .sub {
  flex: 1;
  padding: 8px 4px;
  min-height: 38px;
  background: transparent;
  border-radius: 11px;
  font-weight: 500;
}
.segments .sub[aria-pressed="true"] {
  background: white;
  color: var(--my-ink-strong);
  font-weight: 600;
  box-shadow: 0 1px 4px rgb(0 0 0 / 8%);
}
#app[data-screen="journal"] .actions .primary {
  width: 100%;
}
#app[data-screen="goals"] main {
  position: relative;
}
#app[data-screen="goals"] main > .primary {
  width: 100%;
  margin-bottom: 14px;
}
#app[data-screen="scan"] .sub {
  background: var(--care-brand);
  color: white;
  width: 100%;
}
#app[data-screen="settings"] .card-body > .sub {
  display: block;
  text-align: left;
  width: 100%;
  background: white;
  border-top: 1px solid var(--my-row-line);
  border-radius: 0;
  padding: 11px 0;
}
.profile-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--my-row-line);
}
.profile-guides .sub { padding-inline: 0; text-align: left; background: white; }
.license-link {
  display: block;
  color: var(--care-brand);
  padding: 6px 0;
}
.field {
  margin: 0 0 14px;
}
.field:last-child {
  margin-bottom: 0;
}
label {
  display: block;
  color: var(--my-ink);
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid var(--my-line);
  border-radius: 12px;
  color: var(--my-ink-strong);
  background: white;
}
input[type="checkbox"] {
  accent-color: var(--care-brand);
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.card label:has(input[type="checkbox"]) {
  margin-top: 15px;
}
progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 8px 0;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: var(--my-option-line);
  color: var(--care-brand);
  accent-color: var(--care-brand);
}
progress::-webkit-progress-bar {
  background: var(--my-option-line);
  border-radius: 99px;
}
progress::-webkit-progress-value {
  background: var(--care-brand);
  border-radius: 99px;
}
progress::-moz-progress-bar {
  background: var(--care-brand);
  border-radius: 99px;
}
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--my-row-line);
}
.summary-row:last-child {
  border: 0;
}
.summary-key {
  color: var(--my-ink-muted);
  font-size: 14px;
}
.summary-value {
  text-align: right;
  font-weight: 600;
  font-size: 15px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: var(--my-ink);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
}
form > .primary {
  width: 100%;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 55;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  width: max-content;
  max-width: 90vw;
  border-radius: 16px;
  background: var(--my-ink);
  color: white;
  font-size: 14px;
}

fieldset .choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 350px) {
  fieldset .choice {
    padding-inline: 10px;
    font-size: 14px;
  }
}

/* The scan is the sole main action on the opening screen. */
#app[data-screen="today"] main { max-width: 460px; padding: max(28px, env(safe-area-inset-top)) 24px calc(90px + env(safe-area-inset-bottom)); }
.scan-home { max-width: 410px; margin-inline: auto; }
.home-brand { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; font-size:21px; font-weight:800; letter-spacing:-.055em; }
.home-brand .maumi { width:40px; height:34px; }
.scan-home time { font-size:14px; }
.scan-home h1 { margin:4px 0 0; font-size:clamp(29px,7.6vw,36px); font-weight:800; letter-spacing:-.055em; line-height:1.26; }
.scan-orb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:clamp(176px,min(61vw,31svh),254px); aspect-ratio:1; border-radius:50%; background:#0a0a0a; color:white; margin:36px auto 42px; outline:1.5px solid #d8d8d5; outline-offset:11px; }
.scan-orb:focus-visible { outline:3px solid #333; }
.scan-orb .scan-mark { width:36px; height:36px; margin:0 0 4px; filter:invert(1); }
.scan-orb strong { font-size:23px; font-weight:750; letter-spacing:-.045em; }
.scan-orb small { color:#d2d2d2; font-size:13px; font-weight:500; }
.home-glance { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.home-glance > div { background:var(--my-fill-soft); border-radius:20px; padding:14px 16px; }
.home-glance dt,.pulse-label { font-size:13px; color:var(--my-ink-muted); }
.home-glance dd { margin-top:3px; line-height:1.35; font-size:clamp(20px,5.8vw,28px); letter-spacing:-.055em; font-weight:760; }
.pulse-number { color:#0a0a0a; font-size:clamp(64px,18vw,112px); font-weight:800; letter-spacing:-.065em; line-height:1.1; }
.pulse-number small { font-size:20px; color:var(--my-ink-muted); letter-spacing:0; }
.mood-option { padding:12px 4px; border:1px solid var(--my-option-line); border-radius:12px; }
.mood-option[aria-pressed="true"] { color:white; background:#111; }
.primary { border-radius:17px; }
.bar .side { font-size:13px; }
@media(min-width:700px) { #app[data-screen="today"] main { padding-top:56px; } }
@media(max-height:640px) { .scan-orb { margin-block:23px 30px; } }
