:root {
  --aqua: #ffde59;
  --lime: #0cc0df;
  --brand-gradient: linear-gradient(90deg, #0cc0df 0%, #68cfb3 48%, #ffde59 100%);
}

body {
  background: radial-gradient(circle at 85% -10%, rgba(255, 222, 89, .12), transparent 32%), var(--bg);
}

.focus,
.quick button.selected,
.user,
.chip.on,
.analysis,
.meal-score,
.workout-levels button.on {
  background-color: rgba(255, 222, 89, .09);
  border-color: rgba(255, 222, 89, .3);
}

.mark,
.primary,
.habit.done .check,
.exercise-card.done .exercise-check,
.daybox.good,
.ai-fab {
  background: var(--brand-gradient);
  box-shadow: 0 10px 28px rgba(12, 192, 223, .14);
}

.fast-card {
  background: linear-gradient(145deg, rgba(255, 222, 89, .14), rgba(12, 192, 223, .06));
  border-color: rgba(255, 222, 89, .3);
}

.cloud-admin-link {
  background: var(--brand-gradient) !important;
  color: #07100e !important;
  border-color: transparent !important;
}

.ai-fab {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.ai-fab {
  width: auto;
  min-width: 82px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 18px;
}

.ai-fab b {
  font-size: 13px;
  letter-spacing: .2px;
}

.today-experience {
  --morning: #35c9ed;
  --daytime: #b7e85b;
  --evening: #9b82ff;
}

.today-hero {
  position: relative;
  overflow: hidden;
  margin: 8px -5px 15px;
  padding: 24px 22px 20px;
  border: 1px solid rgba(104, 207, 179, .25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 222, 89, .18), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(12, 192, 223, .17), transparent 42%),
    linear-gradient(145deg, #13211e, #0b1211 72%);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .32);
}

.today-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -82px;
  bottom: -94px;
  border: 1px solid rgba(255, 222, 89, .24);
  border-radius: 50%;
}

.today-hero h1 {
  margin-top: 12px;
  font-size: clamp(31px, 9vw, 40px);
}

.today-hero > p {
  max-width: 36ch;
  margin: 8px 0 18px !important;
  font-size: 15px;
}

.today-hero .focus {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(12, 192, 223, .14), rgba(255, 222, 89, .1));
  box-shadow: none;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  padding: 4px 2px 13px;
}

.week-day {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #6f7d78;
  font-size: 10px;
  font-weight: 800;
}

.week-day i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #2a3835;
  border-radius: 50%;
  background: #0d1413;
  color: #899690;
  font-style: normal;
  font-size: 12px;
}

.week-day.partial i {
  border-color: rgba(12, 192, 223, .65);
  color: var(--text);
  background: rgba(12, 192, 223, .11);
}

.week-day.done i {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #07100e;
}

.week-day.today {
  color: #fff;
}

.week-day.today i {
  box-shadow: 0 0 0 3px rgba(255, 222, 89, .16);
}

.day-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.day-glance button {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #182420, #0e1514);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.day-glance button:nth-child(1) { border-color: rgba(183, 232, 91, .28); }
.day-glance button:nth-child(2) { border-color: rgba(53, 201, 237, .3); }
.day-glance button:nth-child(3) { border-color: rgba(155, 130, 255, .3); }
.day-glance small { color: var(--muted); font-size: 11px; }
.day-glance strong { max-width: 100%; overflow: hidden; font-size: 17px; text-overflow: ellipsis; }
.glance-icon { font-size: 18px; color: var(--aqua); }

.daypart-nav {
  position: sticky;
  top: 69px;
  z-index: 4;
  display: grid;
  grid-template-columns: .85fr 1.25fr 1.2fr;
  gap: 5px;
  margin: 0 -4px 18px;
  padding: 5px;
  border: 1px solid rgba(57, 72, 67, .8);
  border-radius: 17px;
  background: rgba(7, 11, 11, .88);
  backdrop-filter: blur(16px);
}

.daypart-nav button {
  min-width: 0;
  min-height: 43px;
  padding: 7px 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #7f8d88;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.daypart-nav button span {
  margin-right: 4px;
}

.daypart-nav button.current {
  background: #17221f;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.daypart {
  --part-color: var(--aqua);
  scroll-margin-top: 132px;
  position: relative;
  margin: 16px -5px 24px;
  padding: 18px 13px 13px;
  border: 1px solid color-mix(in srgb, var(--part-color) 28%, #25332f);
  border-radius: 28px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--part-color) 8%, #101817), #0b1110 52%);
}

.daypart.morning { --part-color: var(--morning); }
.daypart.daytime { --part-color: var(--daytime); }
.daypart.evening { --part-color: var(--evening); }

.daypart.current {
  box-shadow: 0 18px 55px color-mix(in srgb, var(--part-color) 9%, transparent);
}

.daypart-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 2px 6px 10px;
}

.daypart-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--part-color) 55%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--part-color) 13%, transparent);
  color: var(--part-color);
  font-size: 23px;
}

.daypart-kicker {
  color: var(--part-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.25px;
}

.daypart-heading h2 {
  margin: 3px 0 2px;
  font-size: 22px;
}

.daypart-heading p {
  margin: 0;
  font-size: 12px;
}

.daypart-content > .card {
  margin: 9px 0;
  border-radius: 20px;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .2);
}

.daypart-content > .camera {
  margin: 10px 0;
}

.morning .card { border-color: rgba(53, 201, 237, .24); }
.daytime .card { border-color: rgba(183, 232, 91, .2); }
.evening .card { border-color: rgba(155, 130, 255, .24); }

.mini-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mini-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(53, 201, 237, .11);
  color: var(--morning);
  font-size: 21px;
}

.wake-card p {
  margin: 9px 0 13px;
  font-size: 13px;
}

.wake-card button {
  width: 100%;
}

.energy-checkin-card {
  background: linear-gradient(145deg, rgba(53, 201, 237, .13), rgba(14, 20, 19, .97));
}

.cravings-checkin-card {
  background: linear-gradient(145deg, rgba(155, 130, 255, .12), rgba(14, 20, 19, .97));
}

.cravings-checkin-card .cravings-head {
  margin-top: 0;
}

.checkin-save {
  margin-top: 12px;
}

.day-habits-card {
  background: linear-gradient(145deg, rgba(183, 232, 91, .11), rgba(14, 20, 19, .97));
}

.moment-card {
  padding: 7px 17px !important;
  background: color-mix(in srgb, var(--part-color) 8%, #111817) !important;
}

.moment-habit {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.moment-habit.done .check {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #07100e;
}

.moment-habit.done .label {
  color: var(--muted);
}

.strength-visual-card {
  background: radial-gradient(circle at 100% 0, rgba(255, 222, 89, .13), transparent 35%), var(--panel);
}

.movement-visual-card {
  background: radial-gradient(circle at 100% 0, rgba(12, 192, 223, .12), transparent 34%), var(--panel);
}

.evening-fast-card {
  background: radial-gradient(circle at 100% 0, rgba(155, 130, 255, .18), transparent 42%), linear-gradient(145deg, #171625, #101817);
}

.evening-sleep-card {
  background: linear-gradient(145deg, rgba(155, 130, 255, .12), rgba(14, 20, 19, .97));
}

#meals > h1,
#progressPage > div:first-child h1,
#profile > h1 {
  font-size: 34px;
}

#meals > .camera {
  margin-bottom: 18px;
}

#progressPage .card,
#meals .card,
#profile .card {
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

@media (max-width: 380px) {
  .today-hero { padding: 21px 17px 17px; }
  .week-strip { gap: 4px; }
  .week-day i { width: 30px; height: 30px; }
  .day-glance { gap: 6px; }
  .day-glance button { min-height: 86px; padding: 10px; }
  .day-glance strong { font-size: 15px; }
  .daypart-nav button { font-size: 10px; }
  .daypart { padding: 15px 9px 10px; }
}

@media (min-width: 700px) {
  .today-hero { padding: 29px 28px 24px; }
  .daypart { padding: 22px 18px 17px; }
}

/* Visual dashboard and quick register */
.day-glance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.day-glance button {
  min-height: 88px;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 10px;
  padding: 13px;
}
.day-glance button:nth-child(4) { border-color: rgba(12, 192, 223, .28); }
.day-glance small { align-self: end; }
.day-glance strong { align-self: start; }
.glance-icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
}
.glance-icon svg { width: 23px; height: 23px; }
.daypart-nav button span {
  display: inline-flex;
  margin-right: 4px;
  vertical-align: -3px;
}
.daypart-nav svg { width: 16px; height: 16px; }
.daypart-heading {
  grid-template-columns: 48px 1fr 28px;
  cursor: pointer;
}
.daypart-heading:focus-visible {
  outline: 2px solid var(--part-color);
  outline-offset: 5px;
  border-radius: 16px;
}
.daypart-chevron {
  color: var(--part-color);
  font-size: 25px;
  transform: rotate(0);
  transition: transform .2s ease;
}
.daypart.collapsed .daypart-chevron { transform: rotate(-90deg); }
.daypart.collapsed .daypart-heading { padding-bottom: 2px; }
.daypart.collapsed .daypart-content { display: none; }
.daypart.collapsed .daypart-heading p { display: none; }

.nav { align-items: center; }
.nav .quick-register-nav {
  position: relative;
  color: var(--text);
  transform: translateY(-9px);
}
.nav .quick-register-nav span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 2px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #07100e;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(12, 192, 223, .24);
}
.nav .quick-register-nav.active { color: var(--text); }
.quick-register-sheet { border-radius: 28px 28px 0 0; }
.quick-register-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.quick-register-head .secondary {
  width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 22px;
}
.quick-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.quick-register-grid button {
  min-height: 124px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #182420, #0e1514);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.quick-register-grid button:active { transform: scale(.98); }
.quick-register-grid button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 13px;
  background: rgba(12, 192, 223, .1);
  color: var(--aqua);
}
.quick-register-grid svg { width: 23px; height: 23px; }
.quick-register-grid b { font-size: 14px; }
.quick-register-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .day-glance button {
    min-height: 82px;
    padding: 10px;
    grid-template-columns: 32px 1fr;
  }
  .glance-icon { width: 32px; height: 32px; }
  .daypart-heading {
    grid-template-columns: 43px 1fr 20px;
    gap: 9px;
  }
  .daypart-icon { width: 43px; height: 43px; }
  .quick-register-grid { grid-template-columns: 1fr; }
  .quick-register-grid button {
    min-height: 88px;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
  }
  .quick-register-grid button > span { grid-row: 1 / 3; }
}
