:root {
  color-scheme: light;
  --paper: #fff8e7;
  --ink: #242424;
  --muted: #706c62;
  --line: #ddd4c4;
  --yellow: #ffd83d;
  --pink: #ff7396;
  --blue: #78cfff;
  --mint: #bfe7b7;
  --white: #fffefa;
  --shadow: 4px 4px 0 var(--ink);
  --soft-shadow: 3px 3px 0 var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background-color: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#e7dcbf 1px, transparent 1px);
  background-position: calc(50% + 310px) 5px;
  background-size: 15px 15px;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #087eb3;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 18px calc(104px + env(safe-area-inset-bottom));
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(36 36 36 / 5%);
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
}

.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-sun { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; }
.brand-sun svg { display: block; width: 100%; height: 100%; }
.brand-copy { min-width: 0; }
.brand-overline { margin: 0 0 1px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.brand-copy h1 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.15; letter-spacing: -.045em; }
.brand-sparkle { display: inline-block; margin-left: 5px; color: #ef4774; font-size: 14px; vertical-align: 4px; }
.date-stamp {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.page-content { padding-top: 16px; }
.page { animation: page-in .22s ease both; }
.today-intro { display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin: 0 1px 11px; }
.page-eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .035em; }
.today-intro h2, .page-title-row h2 { margin: 0; font-size: clamp(21px, 6vw, 25px); font-weight: 900; line-height: 1.2; letter-spacing: -.055em; }
.today-intro h2 span { color: #d34d70; }
.intro-sticker {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 47% 53%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 19px;
  line-height: .78;
  transform: rotate(8deg);
}
.intro-sticker small { font-size: 7px; font-weight: 950; letter-spacing: .12em; }

.progress-panel {
  margin-bottom: 13px;
  padding: 11px 13px 12px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.progress-heading strong { font-size: 13px; }
.progress-track { height: 11px; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 999px; background: #f2eddf; }
.progress-fill { display: block; width: 0; height: 100%; border-right: 1.5px solid var(--ink); border-radius: inherit; background: var(--pink); transition: width .3s ease; }
.progress-fill.is-complete { background: var(--yellow); }

.task-list { display: grid; gap: 10px; }
.task-group {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.task-group__heading {
  display: flex;
  align-items: center;
  min-height: 39px;
  gap: 8px;
  padding: 5px 11px;
  border-bottom: 1.5px solid var(--ink);
  background-color: var(--group-color, var(--blue));
  background-image: radial-gradient(rgb(36 36 36 / 10%) 1px, transparent 1px);
  background-position: right 3px top 2px;
  background-size: 10px 10px;
}
.task-group__icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; font-size: 18px; font-weight: 900; }
.task-group__heading h3 { margin: 0; font-size: 14px; font-weight: 900; letter-spacing: .01em; }
.task-group__hint { margin-left: auto; color: rgb(36 36 36 / 72%); font-size: 10px; font-weight: 700; }
.task-group__rows { padding: 0 10px; }
.task-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.task-row + .task-row { border-top: 1px dashed #ded8cc; }
.task-row:active { transform: scale(.99); }
.task-check {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.task-check svg { width: 17px; height: 17px; opacity: 0; transform: scale(.5); transition: .15s ease; }
.task-row.is-done .task-check { background: var(--yellow); transform: rotate(-4deg); }
.task-row.is-done .task-check svg { opacity: 1; transform: scale(1); }
.task-row__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.task-row__title { overflow-wrap: anywhere; font-size: 16px; font-weight: 750; line-height: 1.3; }
.task-row__detail { color: var(--muted); font-size: 11px; line-height: 1.25; }
.task-row.is-done .task-row__title { color: #69665d; }
.task-row__done-label { color: #5d5a50; font-size: 10px; font-weight: 750; }
.empty-tasks {
  padding: 21px 16px;
  border: 2px dashed #bcb3a4;
  border-radius: 16px;
  color: var(--muted);
  background: rgb(255 254 250 / 70%);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.note-panel {
  position: relative;
  margin-top: 14px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: #fffefa;
  box-shadow: var(--soft-shadow);
}
.note-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.note-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--blue); font-size: 19px; font-weight: 900; }
.note-heading h3 { margin: 0 0 2px; font-size: 14px; font-weight: 900; }
.note-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.note-heading p span, .field-label span { color: var(--muted); font-size: 10px; font-weight: 600; }
.note-star { margin-left: auto; color: #dc6581; font-size: 20px; transform: rotate(9deg); }
.note-panel textarea { display: block; width: 100%; min-height: 57px; resize: vertical; padding: 10px; border: 1.5px solid #cfc7b8; border-radius: 11px; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
.note-panel textarea::placeholder { color: #908a80; }
.save-status { min-height: 14px; margin: 5px 2px 0; color: var(--muted); font-size: 10px; }

.page-title-row { display: flex; align-items: center; justify-content: space-between; min-height: 65px; margin: 0 1px 12px; }
.page-title-row h2 { font-size: 24px; }
.heading-star { margin-left: 6px; color: #e95279; font-size: 16px; vertical-align: 5px; }
.title-doodle { display: grid; width: 42px; height: 42px; place-items: center; font-size: 32px; line-height: 1; }
.title-doodle--flower { color: #e95279; text-shadow: 2px 2px 0 var(--ink); transform: rotate(-7deg); }

.weekly-panel, .learning-panel, .height-panel, .settings-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}
.weekly-panel { background: #ffe3ec; }
.learning-panel { background: #e4f5ff; }
.height-panel { background: #fff2a8; }
.section-heading { display: flex; align-items: center; gap: 9px; min-height: 38px; margin-bottom: 10px; }
.section-heading-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); font-size: 20px; font-weight: 900; line-height: 1; }
.section-heading-icon--pink { background: var(--pink); }
.section-heading-icon--blue { background: var(--blue); }
.section-heading-icon--yellow { background: var(--yellow); }
.section-heading h3 { margin: 0; font-size: 14px; font-weight: 900; }
.section-heading p { margin: 2px 0 0; color: #5f5a53; font-size: 10px; }
.section-heading--height { margin-bottom: 6px; }
.section-heading--height .button, .section-heading--manager .button { margin-left: auto; }

.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day {
  display: grid;
  min-width: 0;
  min-height: 69px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 5px 1px;
  border: 1.5px solid rgb(36 36 36 / 20%);
  border-radius: 11px;
  background: rgb(255 255 255 / 67%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.week-day.is-selected { border: 2px solid var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.week-day__label { color: var(--muted); font-size: 9px; font-weight: 750; }
.week-day__date { font-size: 11px; font-weight: 800; }
.week-day__status { display: grid; width: 21px; height: 21px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; font-size: 12px; font-weight: 900; }
.week-day__status--done { color: var(--ink); background: var(--pink); }
.week-day__status--some { color: var(--ink); background: var(--blue); }
.week-day__status--empty { color: transparent; background: #fffefa; }
.week-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 9px 1px 0; color: #5f5a53; font-size: 9px; }
.week-legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.legend-dot--done { background: var(--pink); }
.legend-dot--some { background: var(--blue); }
.legend-dot--empty { background: #fff; }
.selected-day { margin-top: 11px; padding-top: 10px; border-top: 1px dashed rgb(36 36 36 / 28%); }
.selected-day__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.selected-day__heading strong { font-size: 12px; }
.selected-day__heading span { color: var(--muted); font-size: 10px; }
.history-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
.history-task { display: flex; min-width: 0; align-items: center; gap: 5px; font-size: 10px; line-height: 1.3; }
.history-task__mark { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 5px; background: #fff; font-size: 10px; font-weight: 900; }
.history-task.is-done .history-task__mark { background: var(--yellow); }
.history-note { margin: 8px 0 0; padding: 7px 9px; border-radius: 9px; background: rgb(255 255 255 / 75%); font-size: 10px; line-height: 1.5; }
.history-empty { margin: 0; color: #625d54; font-size: 11px; line-height: 1.5; }

.learning-panel { background: #e4f5ff; }
.learning-list { display: grid; gap: 0; }
.learning-entry { position: relative; display: grid; grid-template-columns: 53px 13px minmax(0, 1fr); align-items: start; gap: 5px; min-height: 37px; }
.learning-entry__date { padding-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.learning-entry__track { position: relative; display: flex; height: 100%; justify-content: center; }
.learning-entry__track::before { position: absolute; top: 0; bottom: -1px; width: 2px; background: #86cbe8; content: ""; }
.learning-entry:last-child .learning-entry__track::before { bottom: auto; height: 10px; }
.learning-entry__dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.learning-entry:nth-child(even) .learning-entry__dot { background: var(--yellow); }
.learning-entry__text { padding: 0 0 10px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.learning-empty { margin: 0; padding: 11px; border: 1.5px dashed #86cbe8; border-radius: 10px; color: #555c5d; background: rgb(255 255 255 / 64%); font-size: 11px; line-height: 1.5; }

.height-panel { background: #fff2a8; }
.height-chart-wrap { min-height: 101px; overflow: hidden; border-radius: 11px; background: rgb(255 255 255 / 76%); }
.height-chart { display: block; width: 100%; height: auto; min-height: 101px; }
.chart-grid-line { stroke: #ddd6c5; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-axis-label { fill: #6d685f; font-size: 9px; font-family: inherit; }
.chart-line { fill: none; stroke: #ef527b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.chart-single-point { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.chart-empty { display: grid; min-height: 101px; place-items: center; padding: 18px 10px; color: #625d54; font-size: 11px; text-align: center; }
.chart-caption { margin: 6px 1px 0; color: #625d54; font-size: 9px; line-height: 1.4; }
.height-records { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.height-record { display: flex; align-items: center; gap: 5px; }
.height-record__edit { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border: 1px solid var(--ink); border-radius: 9px; background: #fffefa; text-align: left; cursor: pointer; }
.height-record__date { font-size: 10px; font-weight: 700; }
.height-record__value { color: #a33453; font-size: 12px; font-weight: 900; white-space: nowrap; }
.height-record__delete { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 9px; background: #fff; font-size: 20px; cursor: pointer; }

.settings-panel { background: #fffefa; }
.settings-panel:nth-of-type(3n) { background: #e4f5ff; }
.nickname-form { display: flex; gap: 8px; }
.nickname-form input { min-width: 0; height: 48px; flex: 1; padding: 0 11px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font-size: 16px; font-weight: 750; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: translate(1px, 1px); box-shadow: none; }
.button--yellow { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.button--blue { background: var(--blue); box-shadow: 2px 2px 0 var(--ink); }
.button--light { background: var(--white); }
.button--ink { color: #fff; background: var(--ink); }
.button--small { min-height: 48px; padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.button--danger-outline { min-height: 42px; padding: 7px 10px; color: #9f3552; background: #fff8f6; font-size: 11px; }
.task-manager-list { display: grid; gap: 7px; }
.manager-group-label { margin: 8px 0 1px; padding: 4px 3px 0; color: var(--muted); font-size: 10px; font-weight: 900; }
.manager-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px; min-height: 49px; padding: 4px; border: 1px solid #ded8cd; border-radius: 11px; background: #fff; }
.manager-row.is-inactive { opacity: .57; }
.manager-row__edit { display: grid; min-width: 0; min-height: 48px; justify-items: start; align-content: center; gap: 2px; padding: 4px 6px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.manager-row__title { width: 100%; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.manager-row__detail { width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.manager-row__controls { display: flex; gap: 3px; }
.manager-row__move, .manager-row__toggle { display: grid; min-width: 48px; height: 48px; place-items: center; border: 1px solid var(--ink); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.manager-row__move:disabled { opacity: .33; cursor: default; }
.manager-row__toggle { min-width: 62px; }
.manager-row__toggle.is-on { background: var(--mint); }
.settings-hint { margin: 9px 2px 0; color: #5e5a52; font-size: 10px; line-height: 1.5; }
.backup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.backup-actions .button { min-height: 48px; }
.backup-actions .button span { font-size: 17px; line-height: 1; }
.privacy-copy { margin: 10px 1px 0; color: #625d54; font-size: 10px; line-height: 1.6; }
.clear-records-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 3px 0 14px; padding: 12px 2px; border-top: 1px dashed #c9bfad; border-bottom: 1px dashed #c9bfad; }
.clear-records-row h3 { margin: 0 0 3px; font-size: 12px; font-weight: 850; }
.clear-records-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.footer-note { margin: 16px 0 0; color: #716b60; font-size: 10px; text-align: center; }

.storage-warning { margin: 0 0 11px; padding: 9px 11px; border: 1.5px solid var(--ink); border-radius: 10px; color: #71324a; background: #ffe3ec; font-size: 11px; line-height: 1.45; }
.toast { position: fixed; z-index: 20; top: calc(82px + env(safe-area-inset-top)); left: 50%; width: max-content; max-width: min(90vw, 430px); padding: 10px 15px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 12px; font-weight: 850; text-align: center; transform: translateX(-50%); animation: toast-in .2s ease both; }

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 14px max(10px, env(safe-area-inset-bottom));
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: var(--white);
  box-shadow: 0 -3px 0 rgb(36 36 36 / 5%);
  transform: translateX(-50%);
}
.nav-button { display: flex; min-height: 55px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; border-radius: 13px; background: transparent; color: #555149; font-size: 10px; font-weight: 750; cursor: pointer; }
.nav-button.is-active { color: var(--ink); background: var(--yellow); }
.nav-icon { display: grid; width: 27px; height: 27px; place-items: center; }
.nav-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-dialog { width: min(460px, calc(100% - 28px)); max-height: min(90vh, 700px); margin: auto; padding: 20px; overflow: auto; border: 2px solid var(--ink); border-radius: 21px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.form-dialog::backdrop { background: rgb(36 36 36 / 38%); backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
.dialog-heading h2 { margin: 0; font-size: 21px; font-weight: 900; }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1.5px solid var(--ink); border-radius: 11px; background: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.field-label { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 6px; font-size: 12px; font-weight: 850; }
.field-input { display: block; width: 100%; min-height: 48px; padding: 10px 11px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font-size: 16px; }
.height-input-wrap { position: relative; }
.height-input-wrap input { padding-right: 43px; }
.height-input-wrap span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: 12px; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.form-footnote { margin: 7px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dialog-actions { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.dialog-spacer { flex: 1; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; border: 0 !important; }
.confetti-layer { position: fixed; z-index: 15; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: 45%; left: 50%; width: 9px; height: 13px; border: 1.3px solid var(--ink); border-radius: 2px; background: var(--pink); animation: confetti-pop .75s cubic-bezier(.18,.75,.32,1) both; }
.confetti-piece:nth-child(3n) { background: var(--yellow); }
.confetti-piece:nth-child(3n + 1) { background: var(--blue); }

@keyframes page-in { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -5px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes confetti-pop {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rotation)); }
}

@media (min-width: 640px) {
  .app-shell { border-right: 1px solid rgb(36 36 36 / 6%); border-left: 1px solid rgb(36 36 36 / 6%); }
  .page-content { padding-top: 20px; }
  .today-intro { margin-bottom: 14px; }
  .task-row { min-height: 52px; }
  .task-row__title { font-size: 15px; }
  .weekly-panel, .learning-panel, .height-panel, .settings-panel { padding: 15px; }
}

@media (max-width: 360px) {
  .app-shell { padding-right: 13px; padding-left: 13px; }
  .topbar { min-height: 69px; }
  .brand-sun { width: 37px; height: 37px; }
  .brand-copy h1 { font-size: 18px; }
  .date-stamp { padding: 6px 8px; font-size: 10px; }
  .today-intro h2 { font-size: 20px; }
  .task-group__hint { font-size: 9px; }
  .week-strip { gap: 3px; }
  .week-day { min-height: 65px; }
  .week-day__label { font-size: 8px; }
  .form-dialog { padding: 16px; }
  .dialog-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Today page: bright pop-art layout tuned to the selected mobile reference. */
.app-shell[data-page="today"] {
  padding: 0 0 calc(84px + env(safe-area-inset-bottom));
  background: #f6f8fb;
}
.app-shell[data-page="today"] .topbar { display: none; }
.app-shell[data-page="today"] .page-content { padding-top: 0; }
.app-shell[data-page="today"] .page--today { margin: 0; }
.today-hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  color: #fff;
  background: #086de8;
}
.today-hero__art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-date {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .045em;
  text-shadow: 0 1px 3px rgb(3 43 135 / 32%);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  top: 53px;
  left: 22px;
  width: 56%;
}
.hero-greeting {
  display: none;
}
.hero-copy h1 {
  display: grid;
  justify-items: start;
  margin: 0;
  font-size: clamp(36px, 10vw, 44px);
  font-weight: 950;
  letter-spacing: -.075em;
  line-height: .98;
  text-shadow: 0 2px 5px rgb(4 48 142 / 24%);
}
.hero-title--shine { color: #fff04a; }
.hero-caption {
  margin: 8px 0 0;
  color: #123c86;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-shadow: none;
}
.progress-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 98px;
  justify-items: center;
  align-content: center;
  gap: 0;
  margin: -66px 13px 8px;
  padding: 6px 12px 7px;
  border: 1px solid #edf0f4;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 7px 20px rgb(19 49 91 / 10%);
  text-align: center;
}
.progress-title { margin: 0 0 -1px; color: #20396c; font-size: 12px; font-weight: 800; }
.progress-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #173b82;
  font-size: 46px;
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: .98;
}
.progress-count__done { color: #fa695e; }
.progress-count__divider { font-size: 38px; font-weight: 650; }
.progress-count__total { font-size: 45px; }
.progress-message { margin: 3px 0 0; color: #718099; font-size: 11px; font-weight: 700; }
.app-shell[data-page="today"] .task-list {
  display: grid;
  gap: 6px;
  padding: 0 14px;
}
.app-shell[data-page="today"] .task-group {
  overflow: hidden;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(23 53 92 / 5%);
}
.app-shell[data-page="today"] .task-group__heading {
  min-height: 36px;
  gap: 9px;
  padding: 6px 13px;
  border: 0;
  background: var(--group-color, #a9dcff);
}
.app-shell[data-page="today"] .task-group__icon {
  width: 28px;
  height: 28px;
}
.task-group__icon img { display: block; width: 27px; height: 27px; object-fit: contain; }
.app-shell[data-page="today"] .task-group__heading h3 {
  color: #133675;
  font-size: 16px;
  letter-spacing: .01em;
}
.app-shell[data-page="today"] .task-group__hint {
  color: #16407e;
  font-size: 11px;
  font-weight: 700;
}
.app-shell[data-page="today"] .task-group__rows { padding: 0 13px; }
.app-shell[data-page="today"] .task-row {
  min-height: 48px;
  gap: 9px;
  padding: 3px 2px;
}
.app-shell[data-page="today"] .task-row + .task-row { border-top: 1px solid #edf0f2; }
.app-shell[data-page="today"] .task-check {
  width: 30px;
  height: 30px;
  border: 2px solid #929eae;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.task-check img { display: block; width: 19px; height: 19px; opacity: 0; transition: opacity .15s ease; }
.app-shell[data-page="today"] .task-row.is-done .task-check { border-color: #1a78e9; background: #d9edff; transform: none; }
.app-shell[data-page="today"] .task-row.is-done .task-check img { opacity: 1; }
.app-shell[data-page="today"] .task-row__copy { gap: 2px; }
.app-shell[data-page="today"] .task-row__title { color: #182b52; font-size: 16px; font-weight: 700; line-height: 1.35; }
.app-shell[data-page="today"] .task-row__detail { color: #65738a; font-size: 11px; }
.task-row__art {
  display: block;
  width: 72px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
}
.task-row[data-toggle-task="outdoor"] .task-row__art { width: 86px; height: 56px; }
.app-shell[data-page="today"] .task-row.is-done .task-row__title { color: #69758a; }
.app-shell[data-page="today"] .task-row__done-label { color: #1a63c8; font-size: 10px; font-weight: 800; }
.app-shell[data-page="today"] .empty-tasks { border-color: #ced9e6; color: #536784; background: #fff; box-shadow: none; }
.app-shell[data-page="today"] .note-panel {
  margin: 12px 14px 0;
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(23 53 92 / 5%);
}
.app-shell[data-page="today"] .note-icon { border: 0; color: #173b82; background: #d6eaff; }
.app-shell[data-page="today"] .note-panel textarea { border-color: #dce4ec; background: #fbfcfe; }
.app-shell[data-page="today"] .bottom-nav {
  gap: 6px;
  padding: 6px 14px max(7px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid #e6ebf1;
  border-radius: 0;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -5px 18px rgb(19 49 91 / 7%);
}
.app-shell[data-page="today"] .nav-button { min-height: 56px; gap: 1px; color: #69758a; font-size: 11px; }
.app-shell[data-page="today"] .nav-button.is-active { color: #086bdd; background: #e5f1ff; }
.app-shell[data-page="today"] .nav-icon { width: 27px; height: 27px; }
.nav-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }

@media (max-width: 360px) {
  .today-hero { height: 190px; }
  .hero-copy { top: 51px; left: 18px; }
  .hero-date { left: 18px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-caption { font-size: 14px; }
  .app-shell[data-page="today"] .task-list { padding-right: 10px; padding-left: 10px; }
  .app-shell[data-page="today"] .task-group__hint { max-width: 45%; font-size: 9px; text-align: right; }
  .task-row__art { width: 68px; height: 40px; }
}

/* Height-first redesign: keep the selected pop-art warmth and simplify daily entry. */
.app-shell[data-page="height"] {
  padding: 0 0 calc(82px + env(safe-area-inset-bottom));
  background: #f4f8fc;
}
.app-shell[data-page="daily"] { background: #f4f8fc; }
.app-shell[data-page="height"] .topbar,
.app-shell[data-page="daily"] .topbar { display: none; }
.app-shell[data-page="height"] .page-content { padding-top: 0; }
.app-shell[data-page="daily"] .page-content { padding: 14px 14px 0; }
.app-shell[data-page="height"] .bottom-nav,
.app-shell[data-page="daily"] .bottom-nav {
  gap: 6px;
  padding: 6px 14px max(7px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid #e6ebf1;
  border-radius: 0;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 -5px 18px rgb(19 49 91 / 7%);
}
.app-shell[data-page="height"] .nav-button,
.app-shell[data-page="daily"] .nav-button { min-height: 56px; gap: 1px; color: #69758a; font-size: 11px; }
.app-shell[data-page="height"] .nav-button.is-active,
.app-shell[data-page="daily"] .nav-button.is-active { color: #086bdd; background: #e5f1ff; }
.app-shell[data-page="height"] .nav-icon,
.app-shell[data-page="daily"] .nav-icon { width: 27px; height: 27px; }
.app-shell[data-page="height"] .nav-icon img,
.app-shell[data-page="daily"] .nav-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }

.height-hero { height: 214px; }
.height-hero .hero-date { top: 16px; left: 20px; }
.height-hero .hero-copy { top: 60px; left: 20px; width: 61%; }
.height-hero .hero-greeting {
  display: block;
  margin: 0 0 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.height-hero .hero-copy h1 { gap: 3px; font-size: clamp(32px, 9vw, 42px); }
.height-hero .hero-copy h1 .hero-title--shine { font-size: clamp(28px, 7.8vw, 36px); white-space: nowrap; }
.height-hero .hero-caption { margin-top: 8px; color: #133c83; font-size: 13px; }
.height-page-body { position: relative; z-index: 1; margin-top: -37px; padding: 0 12px 18px; }
.height-primary-panel,
.height-history-panel {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e5ebf2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(24 58 103 / 8%);
}
.height-primary-panel { padding: 17px 15px 13px; }
.height-primary-panel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.height-overline { margin: 0 0 3px; color: #63738d; font-size: 11px; font-weight: 750; }
.height-primary-panel h2 { display: flex; align-items: baseline; gap: 4px; min-height: 48px; margin: 0; color: #112f6d; font-size: 45px; font-weight: 950; letter-spacing: -.07em; line-height: 1.05; }
.height-primary-panel h2 small { color: #65758d; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.height-primary-panel.is-empty h2 { color: #233a65; font-size: 25px; letter-spacing: -.04em; }
.height-record-date { margin: 4px 0 0; color: #718099; font-size: 10px; line-height: 1.4; }
.height-record-button { min-height: 42px; flex: 0 0 auto; padding: 7px 10px; border-color: #0f3476; border-radius: 12px; color: #123a81; font-size: 11px; box-shadow: 2px 2px 0 #0f3476; }
.height-progress-copy { display: flex; justify-content: space-between; gap: 7px; margin: 14px 1px 6px; color: #415879; font-size: 10px; font-weight: 650; }
.height-progress-copy strong { color: #146bd7; font-size: 11px; font-weight: 900; }
.height-progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e8eef5; }
.height-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #1682e8; transition: width .28s ease; }
.comparison-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 0; color: #183568; }
.comparison-heading strong { font-size: 13px; font-weight: 900; }
.comparison-heading span { color: #738199; font-size: 9px; }
.height-scale { position: relative; height: 144px; margin: 7px 0 1px; border-radius: 15px; background: #f5f9fd; }
.height-scale__rail { position: absolute; top: 7px; bottom: 7px; left: 50%; width: 4px; border-radius: 9px; background: #d8e5f3; transform: translateX(-50%); }
.height-scale__tick { position: absolute; left: calc(50% + 9px); color: #8190a4; font-size: 8px; font-weight: 700; }
.height-scale__tick--high { top: 2px; }
.height-scale__tick--low { bottom: 2px; }
.height-marker { position: absolute; top: var(--position, 50%); display: flex; width: calc(50% - 4px); min-height: 27px; align-items: center; gap: 4px; white-space: nowrap; transform: translateY(-50%); }
.height-marker { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.12; }
.height-marker i { position: absolute; top: 50%; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px currentColor; transform: translateY(-50%); }
.height-marker b { display: block; font-size: 9px; font-weight: 850; }
.height-marker small { display: block; color: #56677f; font-size: 9px; font-weight: 750; }
.height-marker--wang { left: 50%; justify-content: flex-start; padding-left: 12px; color: #e06456; }
.height-marker--wang i { left: -5px; background: #ff7162; }
.height-marker--wang b, .height-marker--wang small { transform: translateY(-10px); }
.height-marker--goal { right: 50%; justify-content: flex-end; padding-right: 12px; color: #126ed8; text-align: right; }
.height-marker--goal { align-items: flex-end; }
.height-marker--goal i { right: -5px; background: #1b80e8; }
.height-marker--goal b, .height-marker--goal small { transform: translateY(10px); }
.height-marker--current { left: 50%; justify-content: flex-start; padding-left: 12px; color: #138464; }
.height-marker--current i { left: -5px; background: #30b28b; }
.height-marker--current b, .height-marker--current small { transform: translateY(-9px); }
.height-marker--current.is-left { left: auto; right: 50%; justify-content: flex-end; align-items: flex-end; padding-right: 12px; padding-left: 0; text-align: right; }
.height-marker--current.is-left i { right: -5px; left: auto; }
.athlete-reference { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 7px 9px; border-radius: 14px; background: #fff0e8; }
.athlete-reference__ball { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #ffd4b6; }
.athlete-reference__ball svg { width: 22px; height: 22px; object-fit: contain; }
.athlete-reference > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.athlete-reference strong { color: #6b302b; font-size: 10px; font-weight: 900; }
.athlete-reference small { color: #7b5b51; font-size: 8px; }
.athlete-reference__delta { margin-left: auto; color: #b34c3b; font-size: 9px; font-weight: 850; white-space: nowrap; }
.height-source-note { margin: 8px 1px 0; color: #7a8494; font-size: 8px; line-height: 1.45; }
.height-source-note a { color: #156bd0; font-weight: 750; }
.height-history-panel { margin-bottom: 0; padding: 13px; border: 1px solid #e5ebf2; border-radius: 22px; background: #eaf5ff; box-shadow: 0 4px 14px rgb(24 58 103 / 6%); }
.height-history-panel .section-heading { margin-bottom: 8px; }
.height-history-panel .section-heading-icon { border: 0; border-radius: 11px; color: #123a81; background: #ffdf63; }
.height-history-panel .section-heading h3 { color: #173970; font-size: 13px; }
.height-history-panel .section-heading p { color: #65758e; font-size: 9px; }
.height-history-panel .height-chart-wrap { min-height: 99px; background: rgb(255 255 255 / 85%); }
.height-history-panel .chart-empty { min-height: 94px; }
.height-history-panel .height-chart { min-height: 98px; }
.height-history-panel .height-record__edit { min-height: 40px; border-color: #dce5ed; }
.height-history-panel .height-record__delete { width: 40px; height: 40px; border-color: #dce5ed; }
.height-history-panel .chart-caption { color: #60738d; }
.height-history-panel .height-record__value { color: #146bd7; }

.page--daily { padding-bottom: 8px; }
.daily-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 1px 1px 12px; }
.daily-page-heading h2 { margin: 0; color: #15366e; font-size: 22px; font-weight: 950; letter-spacing: -.05em; }
.daily-page-heading .page-eyebrow { margin-bottom: 4px; color: #738199; font-size: 10px; }
.daily-date { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dbe4ed; border-radius: 999px; color: #31517c; background: #fff; font-size: 10px; font-weight: 800; }
.daily-weekly-panel,
.daily-progress-panel,
.daily-card,
.daily-note-panel,
.learning-history-panel {
  margin-bottom: 11px;
  padding: 12px;
  border: 1px solid #e2eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(19 49 91 / 5%);
}
.daily-weekly-panel { background: #fff3f6; }
.daily-weekly-panel .section-heading { min-height: 32px; margin-bottom: 8px; }
.daily-weekly-panel .section-heading-icon { width: 28px; height: 28px; border: 0; background: #ffc9d8; font-size: 17px; }
.daily-weekly-panel .section-heading h3 { color: #253b69; font-size: 12px; }
.daily-weekly-panel .section-heading p { color: #778197; font-size: 9px; }
.daily-weekly-panel .week-day { min-height: 57px; border-color: #e4e9ef; border-radius: 10px; background: #fff; box-shadow: none; }
.daily-weekly-panel .week-day.is-selected { border: 2px solid #1b77df; background: #e7f2ff; box-shadow: none; }
.daily-weekly-panel .week-day__status { width: 16px; height: 16px; border: 0; background: #eef2f6; font-size: 10px; }
.daily-weekly-panel .week-day__status--done { color: #fff; background: #1887d8; }
.daily-weekly-panel .week-day__status--some { color: #805f10; background: #ffe27a; }
.daily-weekly-panel .week-legend { margin-top: 7px; color: #7a8598; font-size: 8px; }
.daily-weekly-panel .legend-dot { width: 7px; height: 7px; border: 0; }
.daily-weekly-panel .legend-dot--done { background: #1887d8; }
.daily-weekly-panel .legend-dot--some { background: #ffe27a; }
.daily-weekly-panel .legend-dot--empty { background: #d8e0e9; }
.daily-weekly-panel .selected-day { margin-top: 8px; padding-top: 8px; border-color: #e5dce0; }
.daily-weekly-panel .selected-day__heading strong { color: #304c74; font-size: 10px; }
.daily-weekly-panel .selected-day__heading span,
.daily-weekly-panel .history-task,
.daily-weekly-panel .history-note { font-size: 9px; }
.daily-weekly-panel .history-note { padding: 6px 7px; background: #fff; }
.daily-progress-panel { display: grid; min-height: 83px; justify-items: center; align-content: center; gap: 0; margin-top: 0; padding: 6px 10px; border-radius: 18px; text-align: center; }
.daily-progress-panel .progress-title { color: #536a8a; font-size: 10px; }
.daily-progress-panel .progress-count { color: #15386e; font-size: 35px; }
.daily-progress-panel .progress-count__done { color: #f26b61; }
.daily-progress-panel .progress-count__divider { font-size: 29px; }
.daily-progress-panel .progress-count__total { font-size: 34px; }
.daily-progress-panel .progress-message { margin-top: 1px; color: #718099; font-size: 9px; }
.daily-card { padding: 13px; }
.sleep-card { background: #fff8d8; }
.meals-card { background: #fff0f4; }
.basketball-card { background: #edf6ff; }
.daily-card-heading { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 10px; }
.daily-card-heading > div { min-width: 0; flex: 1; }
.daily-card-heading h3 { margin: 0; color: #18386f; font-size: 13px; font-weight: 900; }
.daily-card-heading p { margin: 2px 0 0; color: #718099; font-size: 9px; }
.daily-card-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.daily-card-icon img { width: 22px; height: 22px; object-fit: contain; }
.daily-card-icon--sleep { background: #ffe28b; }
.daily-card-icon--meals { background: #ffc8d8; }
.daily-card-icon--basketball { background: #c9e4ff; }
.daily-done-button,
.meal-done-button { min-height: 34px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid #cad8e6; border-radius: 10px; color: #526984; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.daily-done-button.is-done,
.meal-done-button.is-done { border-color: #198268; color: #126951; background: #d7f4e9; }
.sleep-fields { display: grid; grid-template-columns: 1fr 1fr .86fr; gap: 7px; }
.sleep-fields label,
.basketball-fields label { display: grid; min-width: 0; gap: 5px; color: #5a6e88; font-size: 9px; font-weight: 750; }
.sleep-fields input,
.basketball-fields input { width: 100%; min-width: 0; height: 39px; padding: 0 8px; border: 1px solid #d8e1eb; border-radius: 10px; color: #18386f; background: #fff; font-size: 13px; font-weight: 750; }
.nap-input { position: relative; display: flex; align-items: center; }
.nap-input input { padding-right: 36px; }
.nap-input b { position: absolute; right: 7px; color: #778399; font-size: 8px; pointer-events: none; }
.sleep-duration { min-height: 14px; margin: 8px 1px 0; color: #5d7090; font-size: 9px; line-height: 1.4; }
.nutrition-hint { margin: -4px 1px 8px; color: #7d7380; font-size: 8px; }
.meal-list { display: grid; gap: 8px; }
.meal-row { padding: 9px 9px 8px; border: 1px solid #f0dce3; border-radius: 13px; background: rgb(255 255 255 / 84%); }
.meal-row__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.meal-row__heading h4 { margin: 0; color: #803a55; font-size: 11px; font-weight: 900; }
.meal-done-button { min-height: 30px; padding: 4px 8px; border-color: #eedce3; font-size: 8px; }
.food-options { display: flex; flex-wrap: wrap; gap: 5px; }
.food-chip,
.skill-chip { min-height: 32px; padding: 5px 9px; border: 1px solid #e3d7dc; border-radius: 999px; color: #665d66; background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.food-chip.is-selected { border-color: #e57793; color: #913b57; background: #ffe1e9; }
.meal-note-input { width: 100%; height: 33px; margin-top: 7px; padding: 0 9px; border: 1px solid #eadde2; border-radius: 9px; color: #583c4a; background: #fff; font-size: 10px; }
.daily-task-list { display: grid; gap: 8px; }
.app-shell[data-page="daily"] .task-group { border: 1px solid #e2eaf2; border-radius: 16px; box-shadow: 0 3px 12px rgb(19 49 91 / 5%); }
.app-shell[data-page="daily"] .task-group__heading { min-height: 35px; border: 0; }
.app-shell[data-page="daily"] .task-group__heading h3 { color: #173970; font-size: 13px; }
.app-shell[data-page="daily"] .task-group__hint { font-size: 9px; }
.app-shell[data-page="daily"] .task-row { min-height: 46px; }
.app-shell[data-page="daily"] .task-row__title { color: #18325e; font-size: 13px; }
.app-shell[data-page="daily"] .task-check { width: 27px; height: 27px; border: 1.5px solid #9aa8ba; box-shadow: none; }
.app-shell[data-page="daily"] .task-row.is-done .task-check { border-color: #177bdb; background: #d9edff; }
.app-shell[data-page="daily"] .task-row__art { width: 54px; height: 39px; }
.daily-note-panel { background: #eef8f1; }
.daily-note-panel .note-heading { margin-bottom: 7px; }
.daily-note-panel .note-icon { border: 0; color: #155942; background: #c9ecd6; }
.daily-note-panel .note-heading h3 { color: #155942; }
.daily-note-panel .note-heading p { color: #62786c; }
.daily-note-panel textarea { min-height: 62px; border-color: #d6e8dc; background: #fff; font-size: 14px; }
.basketball-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skill-chip { border-color: #d5e2ef; color: #375878; }
.skill-chip.is-selected { border-color: #2380d9; color: #155aa3; background: #dceeff; }
.basketball-fields { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8px; }
.learning-history-panel { background: #f0f8ff; }
.learning-history-panel .section-heading { min-height: 32px; margin-bottom: 7px; }
.learning-history-panel .section-heading-icon { width: 28px; height: 28px; border: 0; background: #cfeaff; font-size: 15px; }
.learning-history-panel .section-heading h3 { color: #173970; font-size: 12px; }
.learning-history-panel .learning-entry__text { color: #294565; font-size: 10px; }
.learning-history-panel .learning-empty { border-color: #c4dcec; background: #fff; }

.goal-form { display: flex; align-items: center; gap: 7px; }
.goal-form input { width: 104px; height: 46px; padding: 0 9px; border: 1.5px solid #cfd8e3; border-radius: 10px; color: #173970; background: #fff; font-size: 17px; font-weight: 850; }
.goal-form > span { margin-right: auto; color: #687991; font-size: 11px; font-weight: 800; }
.goal-settings-panel { background: #fff8d8; }

@media (max-width: 360px) {
  .height-hero { height: 198px; }
  .height-hero .hero-copy { top: 55px; left: 17px; width: 62%; }
  .height-hero .hero-copy h1 { font-size: 34px; }
  .height-hero .hero-copy h1 .hero-title--shine { font-size: 27px; }
  .height-hero .hero-caption { font-size: 11px; }
  .height-page-body { padding-right: 9px; padding-left: 9px; }
  .height-primary-panel { padding: 14px 12px 11px; }
  .height-primary-panel h2 { font-size: 40px; }
  .athlete-reference { gap: 6px; }
  .athlete-reference__delta { font-size: 8px; }
  .app-shell[data-page="daily"] .page-content { padding-right: 10px; padding-left: 10px; }
  .sleep-fields { grid-template-columns: 1fr 1fr .78fr; gap: 5px; }
  .daily-done-button { padding-right: 7px; padding-left: 7px; }
  .daily-card { padding: 10px; }
}
