:root {
  --bg: #101416;
  --surface: #181f22;
  --surface-2: #20292d;
  --line: #2d383d;
  --ink: #f5f7f5;
  --muted: #9ba9a6;
  --lime: #c6f24a;
  --lime-deep: #91b82f;
  --coral: #ff765a;
  --violet: #aa8cff;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior-y: auto;
}
body {
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 28px 14px;
  background: #13191b;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 8;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  padding: 4px 10px 36px;
}
.wordmark-icon {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: cover;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px #3c4949,
    0 5px 14px #0007;
}
.wordmark-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 11px 0 0 -5px var(--coral);
}
nav button {
  font: inherit;
}
.rail nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin: 3px 0;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
}
.rail nav button svg {
  width: 18px;
}
.rail nav button:hover {
  background: #20282b;
  color: #fff;
}
.rail nav button.active {
  background: var(--lime);
  color: #172015;
  font-weight: 700;
}
.rail-bottom {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
}
.rail-bottom p {
  color: #6f7d7a;
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0 0;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #e5ece9;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.account-button svg {
  width: 16px;
}
main {
  margin-left: 232px;
  min-height: 100vh;
  padding: 34px clamp(24px, 4vw, 66px) 90px;
  background: radial-gradient(circle at 88% 0%, #263a2d 0, transparent 28%),
    var(--bg);
}
.topbar,
#cloudNotice,
#view {
  width: min(1220px, 100%);
  margin: 0 auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.topbar > div:first-child {
  min-width: 0;
}
.topbar h1 {
  overflow-wrap: anywhere;
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--lime);
  font:
    600 11px/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: 0;
  margin-bottom: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: 0;
}
button {
  font-family: inherit;
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex: none;
}
.accent-button,
.quiet-button,
.text-action,
.icon-button,
.link-button,
.danger-button {
  border: 0;
  cursor: pointer;
}
.accent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  background: var(--lime);
  color: #172015;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}
.accent-button:hover {
  background: #d5ff64;
}
.accent-button svg {
  width: 17px;
}
.quiet-button {
  background: #2a3437;
  color: #fff;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 650;
}
.text-action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  background: #20292d;
  color: #dbe4df;
  border-radius: 9px;
}
.text-action svg {
  width: 17px;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #283235;
  color: #fff;
  border-radius: 9px;
}
.icon-button svg {
  width: 18px;
}
.link-button {
  background: none;
  color: var(--lime);
  font-weight: 700;
  padding: 0;
}
.link-button:hover {
  color: #e0ff84;
}
.pulse-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: linear-gradient(115deg, #234137, #162720 66%, #1d2822);
  border: 1px solid #355a49;
  border-radius: var(--radius);
  padding: 30px 33px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.pulse-banner:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #557762;
  border-radius: 50%;
  right: -72px;
  top: -95px;
  box-shadow:
    0 0 0 23px #38584455,
    0 0 0 47px #38584433;
}
.pulse-banner h2 {
  font-size: 25px;
  margin: 4px 0 7px;
}
.pulse-banner p {
  color: #bed0c3;
  margin: 0;
}
.kicker {
  color: var(--lime);
  font:
    700 11px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
}
.pulse-orbit {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 9px solid #c6f24a;
  border-right-color: #719550;
  display: grid;
  place-content: center;
  text-align: center;
  flex: none;
  background: #1a3027;
}
.pulse-orbit strong {
  font-size: 30px;
  line-height: 1;
}
.pulse-orbit span {
  font-size: 10px;
  color: #bcd1c2;
  margin-top: 4px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}
.dashboard-main {
  display: grid;
  gap: 18px;
}
.dashboard-side {
  display: grid;
  gap: 18px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-block {
  min-height: 132px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  position: relative;
  overflow: hidden;
}
.metric-block:first-child:after {
  background: var(--lime);
}
.metric-block:nth-child(2):after {
  background: var(--violet);
}
.metric-block:nth-child(3):after {
  background: var(--coral);
}
.metric-block:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  bottom: 0;
  left: 19px;
  border-radius: 4px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
}
.metric-value {
  font:
    800 30px/1.1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  margin: 14px 0 6px;
}
.metric-detail {
  font-size: 12px;
  color: #aeb9b6;
}
.workout-spotlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 184px;
  background: linear-gradient(105deg, #22213a, #1b2030);
  border: 1px solid #363654;
  border-radius: 14px;
  padding: 27px 29px;
  overflow: hidden;
  position: relative;
}
.workout-spotlight h2 {
  font-size: 23px;
  margin: 6px 0;
}
.workout-spotlight p {
  color: #bdc2d0;
  max-width: 470px;
}
.spotlight-icon {
  width: 128px;
  height: 128px;
  color: #aa8cff;
  opacity: 0.8;
  transform: rotate(-12deg);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 2px 11px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.rhythm-list,
.note-card,
.paper-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rhythm-list {
  overflow: hidden;
}
.rhythm-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.rhythm-item:last-child {
  border-bottom: 0;
}
.rhythm-item strong,
.rhythm-item span {
  display: block;
}
.rhythm-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.rhythm-item > svg {
  width: 18px;
  color: #75817f;
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #64716e;
  background: #20282b;
  color: transparent;
  cursor: pointer;
}
.check.done {
  border-color: var(--lime);
  background: var(--lime);
  color: #172015;
}
.check svg {
  width: 14px;
}
.note-card {
  padding: 20px;
}
.note-card h2 {
  font-size: 16px;
  margin-bottom: 7px;
}
.note-card p {
  color: #bdc7c3;
  font-size: 13px;
  margin-bottom: 0;
}
.side-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}
.side-title h2 {
  margin: 0;
}
.medicine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.medicine-row:first-of-type {
  border-top: 0;
}
.medicine-info {
  flex: 1;
}
.medicine-info strong,
.medicine-info span {
  display: block;
}
.medicine-info span {
  font-size: 12px;
  color: var(--muted);
}
.training-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}
.training-score strong {
  font:
    800 37px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--lime);
}
.training-score span {
  font-size: 12px;
  color: var(--muted);
}
.mini-progress {
  height: 6px;
  background: #313d38;
  border-radius: 9px;
  overflow: hidden;
  margin: 13px 0;
}
.mini-progress span {
  display: block;
  height: 100%;
  background: var(--lime);
}
.empty {
  color: var(--muted);
  padding: 5px 0;
}
.empty p {
  margin: 0 0 9px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.span4 {
  grid-column: span 4;
}
.span5 {
  grid-column: span 5;
}
.span7 {
  grid-column: span 7;
}
.span8 {
  grid-column: span 8;
}
.paper-card {
  padding: 22px;
}
.paper-card .section-heading {
  margin-bottom: 18px;
}
.display-number {
  font:
    800 38px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--lime);
  margin: 12px 0;
}
.muted {
  color: var(--muted);
}
.progress {
  height: 8px;
  background: #303a3d;
  border-radius: 9px;
  overflow: hidden;
  margin: 17px 0 10px;
}
.progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--lime), #73be78);
}
.goal-meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.principle {
  border-left: 3px solid var(--lime);
  background: #202928;
  padding: 16px;
  color: #dae4de;
}
.habit-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.habit-stat strong {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.move-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  padding: 38px;
  background: linear-gradient(115deg, #c6f24a 0%, #a4d947 53%, #70ae52 100%);
  color: #122015;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.move-hero:after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -135px;
  width: 380px;
  height: 380px;
  border: 27px solid #dffb8f99;
  border-radius: 50%;
}
.move-hero h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0;
}
.move-hero p {
  max-width: 530px;
  font-size: 15px;
}
.move-hero .accent-button {
  background: #16251e;
  color: #fff;
  position: relative;
  z-index: 1;
}
.move-number {
  position: relative;
  z-index: 1;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: #172820;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 0 0 12px #f1ffbb66;
}
.move-number strong {
  font-size: 52px;
  line-height: 1;
}
.move-number span {
  font-size: 12px;
  color: #cde2d3;
}
.move-number small {
  color: #94ae9e;
  font-size: 10px;
  margin-top: 5px;
}
.move-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}
.week-bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 8px 4px 0;
}
.day-bar {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  gap: 8px;
}
.day-bar span {
  display: block;
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, var(--lime), #6ab374);
  border-radius: 7px 7px 1px 1px;
}
.day-bar small {
  color: var(--muted);
  font-size: 11px;
}
.activity-types > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-types strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--lime);
}
.activity-list {
  margin-top: 18px;
}
.activity-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row > div:nth-child(2) {
  flex: 1;
}
.activity-row strong,
.activity-row span,
.activity-row small {
  display: block;
}
.activity-row span,
.activity-row small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.activity-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #273333;
  color: var(--lime);
  border-radius: 10px;
}
.activity-badge svg {
  width: 19px;
}
.medicine-table {
  width: 100%;
  border-collapse: collapse;
}
.medicine-table th,
.medicine-table td {
  text-align: left;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.medicine-table th {
  color: var(--muted);
  font-size: 11px;
}
.medicine-table td:last-child,
.medicine-table th:last-child {
  text-align: right;
}
.status {
  color: var(--lime);
  font-size: 12px;
}
.status.off {
  color: var(--muted);
}
.record {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.record strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.record-values {
  display: flex;
  gap: 7px 14px;
  flex-wrap: wrap;
  font-size: 13px;
}
.food-summary {
  flex-basis: 100%;
  color: #c8efb9;
  overflow-wrap: anywhere;
}
.alert {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 18px;
  background: #482620;
  border: 1px solid #7e4135;
  color: #ffd1c5;
  border-radius: 10px;
}
.alert svg {
  width: 18px;
  flex: none;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #121819;
  border: 1px solid #384447;
  color: #eef3f0;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.field textarea {
  min-height: 76px;
  resize: vertical;
}
.form-section-label {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.form-section-label strong,
.form-section-label span {
  display: block;
}
.form-section-label span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.danger-button {
  background: #432923;
  color: #ffb7a8;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
}
.auth-intro {
  color: var(--muted);
  margin-bottom: 17px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  cursor: pointer;
}
.auth-tab.active {
  border-bottom: 2px solid var(--lime);
  color: var(--lime);
  font-weight: 700;
}
.auth-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}
.health-steps {
  padding-left: 20px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px 21px;
}
.modal-header h2 {
  margin: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 14px 21px;
}
dialog {
  width: min(590px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid #354144;
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 100px #0009;
  padding: 0;
}
dialog::backdrop {
  background: #080d0de0;
}
#modalBody {
  padding: 20px;
  max-height: min(65dvh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--lime);
  color: #172015;
  padding: 11px 14px;
  border-radius: 9px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
  pointer-events: none;
  z-index: 30;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav {
  display: none;
}
@media (max-width: 900px) {
  .rail {
    display: none;
  }
  main {
    margin: 0;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 16px
      calc(118px + env(safe-area-inset-bottom));
    overflow: visible;
    touch-action: pan-y;
  }
  .dashboard,
  .settings-layout,
  .move-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dashboard-side {
    grid-template-columns: 1fr 1fr;
  }
  .span4,
  .span5,
  .span7,
  .span8 {
    grid-column: span 12;
  }
  .mobile-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    inset: auto 0 0;
    z-index: 10;
    padding: 5px 4px max(7px, env(safe-area-inset-bottom));
    background: #161d1f;
    border-top: 1px solid var(--line);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 7px 2px;
    min-height: 53px;
    font: 10px var(--font);
  }
  .mobile-nav button.active {
    color: var(--lime);
    font-weight: 700;
  }
  .mobile-nav button:active,
  .top-actions button:active {
    transform: translateY(1px);
    filter: brightness(1.18);
  }
  .mobile-nav svg {
    width: 18px;
  }
  .account-button {
    display: none;
  }
}
@media (max-width: 580px) {
  h1 {
    font-size: 27px;
  }
  .top-actions .text-action span,
  .top-actions .accent-button span {
    display: none;
  }
  .top-actions .text-action,
  .top-actions .accent-button {
    width: 39px;
    height: 39px;
    padding: 0;
  }
  .pulse-banner {
    padding: 23px;
    align-items: flex-start;
  }
  .pulse-banner h2 {
    font-size: 22px;
  }
  .pulse-orbit {
    width: 86px;
    height: 86px;
    border-width: 7px;
  }
  .pulse-orbit strong {
    font-size: 23px;
  }
  .metric-row {
    grid-template-columns: 1fr;
  }
  .metric-block {
    min-height: auto;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .move-hero {
    padding: 27px;
    align-items: flex-start;
    min-height: 360px;
    flex-direction: column;
  }
  .move-hero h2 {
    font-size: 28px;
  }
  .move-number {
    width: 138px;
    height: 138px;
    align-self: flex-end;
  }
  .move-number strong {
    font-size: 39px;
  }
  .record {
    grid-template-columns: 75px 1fr;
  }
  .record .link-button {
    grid-column: 2;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .paper-card {
    padding: 17px;
  }
  .medicine-table th:nth-child(3),
  .medicine-table td:nth-child(3) {
    display: none;
  }
  .modal-header,
  #modalBody,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.hydration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(115deg, #193f46, #1f2d2b);
  border: 1px solid #35616a;
  border-radius: 12px;
  margin-bottom: 18px;
}
.hydration-hero h2 {
  font-size: 28px;
  margin: 6px 0;
}
.hydration-hero p {
  max-width: 650px;
  color: #c4d8d4;
  margin: 0;
}
.hydration-hero-number {
  width: 128px;
  height: 128px;
  flex: none;
  border: 7px solid var(--lime);
  border-right-color: #4e8282;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #172b2c;
}
.hydration-hero-number strong {
  font:
    800 29px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.hydration-hero-number span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.hydration-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.hydration-summary .paper-card {
  display: grid;
  gap: 7px;
}
.hydration-summary span,
.hydration-summary small {
  color: var(--muted);
  font-size: 12px;
}
.hydration-summary strong {
  font:
    800 26px/1.1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--lime);
}
.hydration-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}
.hydration-split > div {
  padding: 10px;
  background: #202b2c;
  border-left: 3px solid #5bb3ad;
}
.hydration-split span,
.hydration-split strong {
  display: block;
}
.hydration-split span {
  font-size: 11px;
  color: var(--muted);
}
.hydration-split strong {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hydration-quick,
.hydration-library {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hydration-quick .quiet-button {
  min-width: 72px;
}
.hydration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin: 18px 0;
}
.hydration-timeline {
  max-height: 470px;
  overflow-y: auto;
  padding-right: 3px;
}
.hydration-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hydration-entry:last-child {
  border-bottom: 0;
}
.hydration-entry.compact {
  grid-template-columns: 84px minmax(0, 1fr) auto;
}
.hydration-time {
  font:
    500 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #8be0d1;
}
.hydration-entry-main {
  min-width: 0;
}
.hydration-entry-main strong,
.hydration-entry-main span {
  display: block;
}
.hydration-entry-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.drink-chip {
  min-width: 110px;
  flex: 1 1 110px;
  max-width: 180px;
  text-align: left;
  border: 1px solid var(--line);
  background: #1c2527;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.drink-chip:hover {
  border-color: #5b938e;
  background: #223032;
}
.drink-chip.eligible {
  border-color: #61977e;
}
.drink-chip span,
.drink-chip small {
  display: block;
}
.drink-chip small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.reminder-preview {
  margin-top: 18px;
}
.check-row {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dce8e3;
  cursor: pointer;
}
.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--lime);
}
.hydration-entry-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.field.disabled {
  opacity: 0.55;
}
.hydration-settings {
  margin-top: 18px;
}
.history-hydration-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.history-hydration-link strong,
.history-hydration-link span {
  display: block;
}
.history-hydration-link span {
  font-size: 12px;
  color: var(--muted);
}
.reminders-page {
  max-width: 800px;
}
.reminder-status {
  display: grid;
  gap: 4px;
  padding: 17px;
  margin: 17px 0;
  background: #20302c;
  border-left: 3px solid var(--lime);
}
.reminder-status strong {
  color: var(--lime);
}
.reminder-status span {
  font-size: 12px;
  color: #c2d1ca;
}
.reminder-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.reminder-plan > div {
  padding: 14px;
  background: #20292d;
}
.reminder-plan span,
.reminder-plan strong {
  display: block;
}
.reminder-plan span {
  font-size: 12px;
  color: var(--muted);
}
.reminder-plan strong {
  margin-top: 4px;
}
@media (max-width: 900px) {
  .hydration-grid {
    grid-template-columns: 1fr;
  }
  .hydration-summary {
    gap: 12px;
  }
}
@media (max-width: 580px) {
  .hydration-hero {
    padding: 22px;
    align-items: flex-start;
  }
  .hydration-hero h2 {
    font-size: 24px;
  }
  .hydration-hero-number {
    width: 94px;
    height: 94px;
    border-width: 5px;
  }
  .hydration-hero-number strong {
    font-size: 22px;
  }
  .hydration-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hydration-summary .paper-card {
    padding: 14px;
  }
  .hydration-split {
    grid-template-columns: 1fr;
  }
  .hydration-entry,
  .hydration-entry.compact {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .hydration-entry.compact {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .hydration-entry .link-button {
    grid-column: 2;
    justify-self: start;
  }
  .drink-chip {
    max-width: none;
    flex-basis: calc(50% - 5px);
  }
  .reminder-plan {
    grid-template-columns: 1fr;
  }
  .check-row.full {
    grid-column: auto;
  }
  .hydration-entry-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }
  .hydration-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .hydration-card .accent-button {
    width: 100%;
  }
}

/* Today's screen keeps synced data scan-friendly and manual entries intentional. */
.today-hero,
.health-data-hero,
.records-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  margin-bottom: 12px;
  background: linear-gradient(115deg, #203b33, #172824 65%, #20362d);
  border: 1px solid #385f4d;
  border-radius: 12px;
}
.today-hero h2,
.health-data-hero h2,
.records-hero h2 {
  font-size: 26px;
  margin: 5px 0 7px;
}
.today-hero p,
.health-data-hero p,
.records-hero p {
  margin: 0;
  color: #bed0c3;
}
.rhythm-score {
  width: 128px;
  height: 128px;
  flex: none;
  border: 7px solid var(--lime);
  border-right-color: #5c8760;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #182b24;
}
.rhythm-score strong {
  font:
    800 37px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.rhythm-score span {
  margin-top: 5px;
  font-size: 10px;
  color: #c5d5ca;
}
.today-score-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 11px 15px;
  background: #182123;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #b8c5c1;
  font-size: 12px;
}
.today-score-strip span {
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.today-score-strip .link-button {
  margin-left: auto;
}
.sync-source {
  font-size: 12px;
  color: #9ed2bd;
}
.today-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.today-metric {
  position: relative;
  min-height: 154px;
  padding: 17px;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.today-metric:hover {
  border-color: #6b9975;
  background: #1d2829;
  transform: translateY(-1px);
}
.today-metric > svg {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 16px;
  color: #79918a;
}
.today-metric-icon,
.health-detail-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #273534;
  border-radius: 8px;
  color: var(--lime);
  margin-bottom: 14px;
}
.today-metric-icon svg,
.health-detail-icon svg {
  width: 17px;
}
.today-metric strong,
.today-metric small {
  display: block;
}
.today-metric strong {
  font:
    800 27px/1.1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  margin: 7px 0;
}
.today-metric small {
  max-width: 160px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.manual-actions {
  margin-top: 20px;
  padding: 22px;
  background: #20242f;
  border: 1px solid #35394e;
  border-radius: 12px;
}
.manual-actions .section-heading {
  margin-bottom: 15px;
}
.manual-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.manual-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #404655;
  border-radius: 9px;
  background: #191d27;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.manual-action:hover {
  transform: translateY(-1px);
  border-color: #8792ab;
}
.manual-action > svg:first-child {
  width: 22px;
  color: var(--lime);
  flex: none;
}
.manual-action span {
  min-width: 0;
  flex: 1;
}
.manual-action strong,
.manual-action small {
  display: block;
}
.manual-action small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.manual-action > svg:last-child {
  width: 16px;
  color: #8994a9;
}
.manual-action.water {
  border-left: 3px solid #51b3bc;
}
.manual-action.food {
  border-left: 3px solid var(--coral);
}
.manual-action.medication {
  border-left: 3px solid var(--violet);
}
.today-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}
.today-record-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.today-record-list > div > svg {
  width: 18px;
  color: var(--lime);
}
.today-record-list span {
  min-width: 0;
  flex: 1;
}
.today-record-list strong,
.today-record-list small {
  display: block;
}
.today-record-list small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.body-goal-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.body-goal-brief h2 {
  margin: 5px 0;
}
.body-goal-brief p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.health-data-hero .quiet-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.health-data-hero .quiet-button svg {
  width: 16px;
}
.health-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.health-detail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.health-detail-row:hover,
.health-detail-row.focused {
  border-color: #6d9a78;
  background: #1c2929;
}
.health-detail-row .health-detail-icon {
  margin: 0;
}
.health-detail-row strong,
.health-detail-row small {
  display: block;
}
.health-detail-row small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.health-detail-row b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--lime);
}
.health-detail-row > svg {
  width: 15px;
  color: var(--muted);
}
.health-trend {
  margin-top: 18px;
}
.health-trend-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.health-trend-grid > div {
  display: grid;
  gap: 6px;
  padding: 12px 8px;
  background: #20292d;
  text-align: center;
}
.health-trend-grid span {
  font-size: 10px;
  color: var(--muted);
}
.health-trend-grid strong {
  font:
    700 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--lime);
}
.form-stack {
  display: grid;
  gap: 14px;
}
.form-stack .field.full {
  grid-column: auto;
}
.form-helper {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.quick-drink-grid,
.meal-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-drink-choice,
.meal-choice {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d2729;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
  font: inherit;
}
.quick-drink-choice:hover,
.quick-drink-choice.selected,
.meal-choice:hover,
.meal-choice.selected {
  border-color: var(--lime);
  background: #263128;
  color: #efffc0;
}
.meal-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.meal-choice svg {
  width: 14px;
}
.meal-choice svg:last-child {
  color: var(--lime);
}
.meal-feeling-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.meal-food-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172021;
}
.food-choice-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.food-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.food-choice {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #1d2729;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.food-choice:hover,
.food-choice.selected {
  border-color: var(--lime);
  background: #263128;
  color: #efffc0;
}
.food-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.food-actions .link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meal-food-editor {
  display: grid;
  gap: 12px;
}
.food-selected-label {
  border-left: 3px solid var(--lime);
  padding-left: 9px;
  color: var(--muted);
  font-size: 12px;
}
.food-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}
.food-toggle input {
  accent-color: var(--lime);
}
.custom-nutrition-fields {
  display: grid;
  gap: 12px;
}
.hidden {
  display: none;
}
.meal-food-list {
  display: grid;
  gap: 8px;
}
.meal-food-summary {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 7px;
  background: #202b25;
}
.meal-food-summary strong {
  color: var(--lime);
  font-size: 12px;
}
.meal-food-summary span,
.meal-food-row small {
  color: var(--muted);
  font-size: 11px;
}
.meal-food-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.meal-food-row:last-child {
  border-bottom: 0;
}
.meal-food-row strong,
.meal-food-row small {
  display: block;
}
.meal-food-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.meal-food-row > span {
  color: var(--coral);
  font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
.meal-food-row .icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.meal-food-row .icon-button:hover {
  color: var(--coral);
  border-color: var(--coral);
}
.checkin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.checkin-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #192122;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.checkin-item.done {
  border-color: #789a51;
  background: #243022;
}
.checkin-item .check {
  flex: none;
}
.checkin-item strong,
.checkin-item small {
  display: block;
}
.checkin-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.score-detail {
  display: grid;
  gap: 12px;
}
.score-detail > div {
  padding: 12px;
  border-left: 3px solid var(--lime);
  background: #202a29;
}
.score-detail strong,
.score-detail span {
  display: block;
}
.score-detail span,
.score-detail p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}
.records-hero {
  margin-bottom: 18px;
}
.record-quick-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.records-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.daily-history-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172021;
}
.daily-history-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.daily-history-controls .field {
  min-width: min(230px, 100%);
  margin: 0;
}
.day-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.day-switch .icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1d2729;
  color: var(--ink);
  cursor: pointer;
}
.day-switch .icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.daily-history-heading,
.daily-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.daily-history-heading h2 {
  margin: 3px 0;
  font-size: 22px;
}
.daily-history-heading > div > span,
.daily-section-heading span {
  color: var(--muted);
  font-size: 12px;
}
.daily-stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.daily-stat-strip span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #243028;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
}
.daily-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.daily-history-grid > section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d2729;
}
.daily-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.daily-meal-line {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.daily-meal-line strong {
  color: var(--coral);
  font-size: 11px;
}
.daily-meal-line span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.daily-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.daily-vital-value {
  color: var(--lime);
  font: 700 24px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}
.daily-drink-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.daily-drink-line span {
  overflow-wrap: anywhere;
}
.daily-drink-line small,
.daily-drink-line svg {
  color: var(--muted);
  font-size: 11px;
}
.daily-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.daily-detail-stats > div {
  padding: 12px;
  border-radius: 7px;
  background: #202b25;
}
.daily-detail-stats small,
.daily-detail-stats strong {
  display: block;
}
.daily-detail-stats small {
  color: var(--muted);
  font-size: 11px;
}
.daily-detail-stats strong {
  margin-top: 3px;
  color: var(--lime);
  font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.manual-record {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.manual-record:last-child {
  border-bottom: 0;
}
.manual-record time {
  font:
    500 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #8be0d1;
}
.manual-record strong,
.manual-record small {
  display: block;
  overflow-wrap: anywhere;
}
.manual-record strong {
  line-height: 1.65;
}
.manual-record small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .today-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .manual-action-grid {
    grid-template-columns: 1fr;
  }
  .today-bottom-grid,
  .records-layout,
  .daily-history-grid {
    grid-template-columns: 1fr;
  }
  .health-data-grid {
    grid-template-columns: 1fr;
  }
  .health-detail-row {
    min-height: 72px;
  }
}
@media (max-width: 580px) {
  .today-hero,
  .health-data-hero,
  .records-hero {
    padding: 21px;
    align-items: flex-start;
  }
  .today-hero h2,
  .health-data-hero h2,
  .records-hero h2 {
    font-size: 22px;
  }
  .today-hero {
    gap: 10px;
  }
  .rhythm-score {
    width: 86px;
    height: 86px;
    border-width: 5px;
  }
  .rhythm-score strong {
    font-size: 25px;
  }
  .rhythm-score span {
    font-size: 8px;
  }
  .today-score-strip {
    gap: 7px;
  }
  .today-score-strip span {
    padding-right: 7px;
  }
  .today-score-strip .link-button {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
  .today-metric {
    min-height: 142px;
    padding: 14px;
  }
  .today-metric strong {
    font-size: 23px;
  }
  .manual-actions {
    padding: 17px;
  }
  .manual-action {
    min-height: 68px;
  }
  .health-data-hero .quiet-button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .health-trend-grid {
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .health-trend-grid > div {
    min-width: 54px;
    padding: 10px 4px;
  }
  .quick-drink-grid,
  .meal-choice-grid,
  .food-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .meal-food-section {
    padding: 12px;
  }
  .food-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .meal-feeling-row {
    grid-template-columns: 1fr;
  }
  .records-hero {
    flex-direction: column;
  }
  .daily-history-panel {
    padding: 15px;
  }
  .daily-history-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .daily-history-controls .field {
    width: 100%;
  }
  .day-switch {
    justify-content: space-between;
  }
  .daily-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .daily-stat-strip {
    justify-content: flex-start;
  }
  .record-quick-actions {
    width: 100%;
  }
  .record-quick-actions button {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
  }
  .manual-record {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .manual-record .link-button {
    grid-column: 2;
    justify-self: start;
  }
}
