@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
:root {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: #193830;
  background: #f7f6f0;
  --ink: #193830;
  --muted: #68756d;
  --green: #276b50;
  --line: #dfe4da;
  --paper: #fffefa;
  --tint: #edf0e3;
  --warn: #8d581e;
  --serif: Newsreader, Georgia, serif;
}
[hidden] {
  display: none !important;
}
body {
  font-size: 1rem;
  line-height: 1.55;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  transition:
    background-color 0.15s,
    border-color 0.15s;
  color: var(--ink);
}
button:hover:not(:disabled) {
  background: #e9eddf;
  border-color: #c9d4c6;
}
button.primary:hover:not(:disabled) {
  background: #205b44;
  border-color: #205b44;
}
button:active:not(:disabled) {
  background: #e1e7d8;
}
button.primary:active:not(:disabled) {
  background: #1c513d;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button .ph,
a .ph {
  flex: 0 0 auto;
  font-size: 22px;
}
.ph {
  display: inline-block;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  transform: translateY(-180%);
  z-index: 50;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  transform: none;
}
.workspace:focus,
#view:focus {
  outline: none;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 12px 0 14px;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h3 {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.65;
}
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: #687970;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.note,
.section-note {
  font-size: 0.8125rem;
  line-height: 1.65;
}
.note:empty {
  display: none;
}
.badge {
  font-size: 0.6875rem;
  padding: 4px 7px;
  white-space: normal;
  letter-spacing: 0;
  font-weight: 600;
}
.badge.estimate {
  color: #81501b;
  background: #fcf0dc;
}
.error {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.shell {
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  padding: 34px 22px 22px;
  background: #eff1e8;
  border-color: #e2e6dc;
  height: 100dvh;
  gap: 0;
  overflow: auto;
}
.brand {
  font-size: 22px;
  letter-spacing: -0.055em;
  margin: 0 0 46px;
  gap: 11px;
  white-space: nowrap;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 50% 50% 50% 12%;
  font-size: 28px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar .nav-button {
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 13px;
  min-height: 64px;
  text-align: left;
  border-radius: 13px;
  font-size: 15px;
}
.nav-button .ph {
  font-size: 25px;
}
.nav-button span {
  min-width: 0;
}
.nav-button small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.nav-button.active {
  background: #dfe8d5;
  color: var(--ink);
}
.desktop-shortcuts {
  display: grid;
  gap: 4px;
  margin-top: 42px;
}
.desktop-shortcuts .eyebrow {
  margin: 0 12px 8px;
}
.desktop-shortcuts button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  padding: 10px 12px;
  color: var(--muted);
}
.desktop-shortcuts button .ph {
  font-size: 20px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
  border: none;
  font-size: 12px;
}
.sidebar-foot p {
  margin-bottom: 8px;
}
.sidebar-foot .ph {
  margin-right: 6px;
}
.sidebar-foot button {
  padding-left: 0;
  font-size: 12px;
}
.workspace {
  padding: 28px clamp(24px, 3.4vw, 58px) 64px;
  max-width: 1520px;
}
.topbar {
  border: 0;
  padding: 0;
  margin: 0 0 42px;
  min-height: 42px;
  font-size: 12px;
}
.desktop-greeting {
  color: var(--muted);
  font-weight: 500;
}
.mobile-brand {
  display: none;
}
.account-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #e6ebdd;
}
.account-button .ph {
  font-size: 22px;
}
.heading {
  margin-bottom: 30px;
  gap: 20px;
  align-items: center;
}
.heading > div {
  min-width: 0;
}
.heading p {
  font-size: 14px;
  max-width: 630px;
  margin: 0;
}
.heading p:empty {
  display: none;
}
.heading > .primary {
  flex-shrink: 0;
}
.loading {
  padding: 60px 16px;
  color: var(--muted);
  font-size: 14px;
}
.loading-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  margin: 0 auto 20px;
  background: var(--green);
  animation: breathe 1.3s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.3;
  }
}
.section-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 26px;
  scrollbar-width: thin;
}
.section-nav button {
  flex: 0 0 auto;
  background: transparent;
  border-color: transparent;
  padding: 10px 18px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 14px;
  min-height: 44px;
}
.section-nav .selected {
  color: var(--green);
  background: #e5ecdb;
}
.back-link {
  margin-bottom: 24px;
  padding-left: 0;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr);
  gap: clamp(24px, 3vw, 52px);
}
.home-main,
.home-side {
  min-width: 0;
}
.quick-log {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-tile {
  height: 100px;
  border: 0;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #e9eddf;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 650;
}
.quick-tile .ph {
  font-size: 35px;
}
.quick-meal {
  color: #fff;
  background: var(--green);
}
.quick-meal:hover:not(:disabled) {
  background: #205b44;
}
.quick-check_in {
  background: #fae7d2;
}
.quick-check_in:hover:not(:disabled) {
  background: #f5ddc0;
}
.daily-summary {
  border-bottom: 1px solid var(--line);
  margin: 8px 0 28px !important;
}
.daily-summary > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  padding: 24px 0 !important;
  list-style: none;
}
.daily-summary > summary::-webkit-details-marker {
  display: none;
}
.daily-summary > summary small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.summary-link {
  white-space: nowrap;
  color: var(--green);
  font-size: 13px;
}
.daily-summary .disclosure-body {
  padding: 0 0 18px;
}
.daily-summary .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 18px;
  border: 0;
  background: #edf0e4 !important;
  border-radius: 13px;
}
.metric-value {
  font-size: 30px;
  font-weight: 650;
  margin: 10px 0 4px;
}
.metric-label {
  font-size: 12px;
}
.metric-note {
  font-size: 11px;
  margin: 6px 0;
}
.journal-section {
  margin-bottom: 12px;
}
.journal-section > .panel-head h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.text-link {
  font-size: 13px;
  color: var(--green);
  padding: 8px 0;
}
.text-link .ph {
  font-size: 18px;
}
.journal-section .panel-head {
  margin-bottom: 4px;
}
.entry {
  gap: 14px;
  padding: 22px 0;
  align-items: flex-start;
  flex-wrap: wrap;
  border-color: var(--line);
}
.entry-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 100%;
  background: #e8eddf;
}
.entry-icon .ph {
  font-size: 24px;
}
.entry-body {
  flex: 1;
  min-width: 0;
}
.entry-title {
  gap: 8px;
  flex-wrap: wrap;
}
.entry-title > .note {
  font-size: 11px;
  white-space: nowrap;
}
.entry h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}
.entry p {
  font-size: 13px;
  line-height: 1.65;
}
.entry-meta {
  font-size: 11px;
  gap: 6px;
  margin-top: 6px;
}
.entry-edit {
  padding: 8px 13px;
  font-size: 12px;
  min-height: 44px;
  border-radius: 10px;
  margin: 0;
}
.entry-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.entry-details {
  margin: 4px 0 0;
  font-size: 12px;
}
.entry-details > summary {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  padding: 5px 0;
  min-height: 32px;
}
.entry-details > p {
  font-size: 13px;
}
.home-plan {
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  margin: 8px 0 18px;
}
.home-side .panel {
  padding: 24px;
  background: #eef1e6;
  border: 0;
  margin-bottom: 20px;
}
.water-panel h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.water-panel .panel-head {
  margin-bottom: 12px;
}
.water-reading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.water-reading strong {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.water-reading span {
  font-size: 13px;
  color: var(--muted);
}
.water-panel [data-water] {
  font-size: 12px;
  flex: 1;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid #d8dfd0;
}
.water-panel > .note {
  font-size: 12px;
}
.home-side .disclosure > summary {
  font-size: 13px;
}
.day-status {
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
}
.day-status .panel {
  padding: 12px 0;
  background: none;
}
.home-side .follow-ups {
  margin-top: 24px;
  background: transparent;
  padding: 0;
}
.follow-ups h2 {
  font-size: 18px;
}
.question {
  border-left: 2px solid #bacda2;
  padding-left: 16px;
  margin: 18px 0;
}
.question p {
  font-size: 14px;
}
.question .note {
  font-size: 12px;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  margin-bottom: 24px;
}
.panel-head {
  gap: 14px;
}
.columns {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
}
.columns > div {
  min-width: 0;
}
.empty {
  padding: 42px 18px;
  font-size: 14px;
}
.empty strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.empty-mark .ph {
  font-size: 34px;
}
.empty-mark {
  margin-bottom: 14px;
}
.disclosure {
  margin: 16px 0;
}
.disclosure > summary {
  padding: 15px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow-wrap: anywhere;
  min-height: 44px;
}
.disclosure-body {
  padding: 6px 0 16px;
  min-width: 0;
}
.disclosure-body > :last-child {
  margin-bottom: 0;
}
.disclosure-body .panel {
  background: none;
  border: 0;
  padding: 0;
}
.filter-disclosure {
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
}
.filter-disclosure > summary {
  color: var(--muted);
  font-size: 13px;
}
.filter-disclosure .filters {
  padding-top: 12px;
}
.filters {
  gap: 14px;
}
.filters label {
  min-width: 130px;
}
.filters button {
  min-height: 46px;
}
.inline-actions {
  gap: 10px;
}
.form-actions {
  gap: 10px;
}
.planner-days {
  display: block;
  margin-top: 22px;
}
.planner-day {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: transparent;
}
.planner-day h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
.planner-day .day-empty {
  font-size: 14px;
  margin: 6px 0;
}
.planner-day .disclosure {
  margin: 12px 0 0;
}
.planner-day .disclosure > summary {
  font-size: 12px;
  padding: 7px 0;
  color: var(--muted);
}
.planner-day .entry {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0;
}
.planner-day .entry h3 {
  font-size: 17px;
}
.planner-day .inline-actions button {
  font-size: 12px;
}
.planner-day [data-plan-eat] {
  color: var(--green);
  background: #eaf0e1;
}
.view-shopping > .panel,
.view-batches > .panel {
  max-width: 900px;
}
.view-shopping > .panel > p:has([data-list]),
.view-batches > .panel > p:has([data-batch]) {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.shopping-item {
  padding: 22px 0;
}
.shopping-item h3 {
  font-size: 18px;
}
.shopping-item button {
  min-height: 44px;
}
.planner-check {
  font-size: 15px;
  font-weight: 550;
}
.planner-check input {
  flex: none;
  accent-color: var(--green);
}
.more-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}
.menu-group {
  min-width: 0;
}
.menu-group > h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 10px 0 12px;
}
.menu-row {
  display: flex;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  gap: 16px;
  text-align: left;
  background: transparent;
  justify-content: flex-start;
}
.menu-row > span:not(.menu-icon) {
  flex: 1;
  min-width: 0;
}
.menu-row strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.menu-row small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.menu-row > .ph:last-child {
  margin-left: auto;
  font-size: 20px;
}
.menu-icon {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e8edde;
  border-radius: 12px;
}
.menu-row .menu-icon .ph {
  font-size: 23px;
}
.menu-row:hover:not(:disabled) {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.more-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 50px;
}
.more-footer .ph {
  font-size: 16px;
}
.settings-layout {
  display: block;
  max-width: 860px;
}
.profile-main {
  border: 0;
  background: transparent;
  padding: 0;
}
.profile-main > h2 {
  display: none;
}
.profile-main form > .form-grid {
  display: block;
}
.profile-main form > .form-grid > label {
  max-width: 430px;
  margin-bottom: 28px;
}
.profile-main .disclosure {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.profile-main .disclosure > summary {
  font-size: 16px;
}
.profile-main .disclosure .form-grid {
  padding-top: 12px;
}
.profile-main .form-actions {
  justify-content: flex-start;
}
.profile-main form > .form-actions {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 15px 0;
}
.view-settings .export-link {
  display: inline-flex;
  padding: 15px 20px;
  background: var(--green);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  min-height: 48px;
}
.view-settings .form-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.view-settings .panel h2 {
  font-family: var(--serif);
  font-size: 30px;
}
.trend-reading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.trend-reading strong {
  font-size: 40px;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-weight: 650;
}
.trend-reading small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.progress-table {
  max-height: 360px;
}
.progress-table table {
  font-size: 13px;
}
.view-progress .columns {
  grid-template-columns: 1fr;
}
.view-progress .columns > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.view-progress .columns > div:first-child > section:last-child {
  grid-column: 1/-1;
}
.view-progress .columns .panel {
  margin: 0;
}
.view-progress .columns > div:last-child {
  min-width: 0;
}
.view-reviews > .panel,
.view-sources > .panel {
  max-width: 960px;
}
.view-progress > .panel:first-of-type,
.view-reviews > .panel:first-of-type,
.view-sources > .panel:first-of-type {
  background: transparent;
  border: 0;
  padding: 0;
}
.view-progress > .panel:first-of-type > .form-actions,
.view-reviews > .panel:first-of-type > .form-actions,
.view-sources > .panel:first-of-type > .form-actions {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 12px;
}
.view-integrations .panel {
  max-width: 850px;
}
.view-integrations .panel > h2 {
  text-transform: capitalize;
  color: var(--green);
  font-size: 24px;
}
.view-integrations .panel > p {
  font-size: 14px;
}
.view-integrations .panel > .form-actions {
  justify-content: flex-start;
}
.connection-options .disclosure-body {
  padding-bottom: 0;
}
label,
.field {
  font-size: 0.8125rem;
  color: #405d4e;
  font-weight: 600;
}
input,
textarea,
select {
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #cdd7c9;
  background: var(--paper);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 48px;
  max-width: 100%;
  scroll-margin-block: 100px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
  min-height: 20px;
  min-width: 20px;
  width: 20px;
  height: 20px;
}
textarea {
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #858f85;
  font-weight: 400;
}
label small {
  font-size: 12px;
}
.form-grid {
  gap: 18px;
}
.form-grid > * {
  min-width: 0;
}
.form-grid .disclosure {
  margin: 0;
}
.form-section {
  margin-top: 24px;
  padding-top: 24px;
}
.form-section h3 {
  font-size: 16px;
}
.small-button {
  min-height: 44px;
  font-size: 12px;
  padding: 9px 13px;
}
.list-row {
  background: #f0f2e8;
  padding: 18px;
  margin: 14px 0;
  border-radius: 12px;
}
.exercise-card {
  border: 1px solid var(--line);
  background: #f0f2e9;
  border-radius: 15px;
  padding: 20px;
}
.set-card {
  background: var(--paper);
  border: 0;
  padding: 16px;
  border-radius: 12px;
}
.set-grid {
  gap: 12px;
}
.set-grid > label {
  min-width: 0;
}
.set-card > .disclosure {
  border-top: 1px solid var(--line);
  margin: 16px 0 0;
}
.set-card > .disclosure > summary {
  font-size: 12px;
  color: var(--muted);
}
.metadata-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0 !important;
}
.metadata-details > summary {
  font-size: 12px !important;
  color: var(--muted);
}
dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100dvh - 64px);
  padding: 28px;
  border-radius: 22px;
  background: var(--paper);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 80px;
  box-shadow: 0 24px 90px #1d322933;
  border: 1px solid var(--line);
}
dialog::backdrop {
  background: #14291f69;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-head {
  position: sticky;
  top: -28px;
  z-index: 3;
  background: var(--paper);
  padding: 20px 0 16px;
  margin-top: -20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.dialog-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.12;
}
.dialog-head button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 23px;
  flex-shrink: 0;
  min-height: 42px;
}
dialog form > .form-actions {
  position: sticky;
  bottom: -28px;
  padding: 16px 0;
  background: var(--paper);
  z-index: 2;
  border-top: 1px solid var(--line);
}
.dialog-details {
  font-size: 12px;
}
.policy-text {
  font-size: 13px;
  line-height: 1.7;
}
.check-label {
  line-height: 1.5;
  font-size: 14px;
  min-height: 44px;
}
.check-label input {
  flex-shrink: 0;
}
.table-wrap {
  max-width: 100%;
}
th,
td {
  font-size: 13px;
  padding: 13px 12px;
}
.chart {
  height: 220px;
}
.chart-legend {
  font-size: 12px;
  flex-wrap: wrap;
}
.login-art {
  padding: 54px;
  background: #e5ecd9;
}
.login-art h1 {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.05;
  font-weight: 500;
}
.login-art .orb {
  display: none;
}
.login-main {
  padding: 40px;
}
.login-box {
  width: min(100%, 390px);
}
.login-box h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
}
.login-box .brand {
  margin-bottom: 40px;
}
.login-box .muted {
  font-size: 14px;
}
.login-footer {
  font-size: 12px;
}
.login-box button {
  min-height: 52px;
}
#toast {
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 20px;
  border-radius: 14px;
  max-width: min(90vw, 550px);
  bottom: 24px;
  background: #214f3c;
  box-shadow: 0 8px 26px #19383022;
  z-index: 30;
  pointer-events: none;
}
@media (min-width: 1500px) {
  .home-main {
    max-width: 750px;
  }
  .home-side {
    max-width: 410px;
  }
}
@media (max-width: 1150px) and (min-width: 761px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .nav-button small {
    display: none;
  }
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .workspace {
    padding-inline: 28px;
  }
  .more-layout {
    gap: 24px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .quick-tile {
    height: 86px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 76px;
    width: 100%;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: #f9f9f2f5;
    border: 0;
    border-top: 1px solid #dce1d5;
    z-index: 5;
    backdrop-filter: blur(14px);
    overflow: visible;
  }
  .sidebar .brand,
  .sidebar-foot,
  .desktop-shortcuts {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    min-height: 0;
    overflow: visible;
  }
  .sidebar .nav-button {
    flex: auto;
    min-width: 0;
    width: 100%;
    min-height: 58px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
  }
  .nav-button .ph {
    font-size: 24px;
  }
  .nav-button small {
    display: none;
  }
  .sidebar .nav-button.active {
    color: var(--green);
    background: #eaf0e1;
  }
  .nav-button.active .ph {
    font-weight: 600;
  }
  .workspace {
    padding: 24px 22px calc(112px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
  }
  .topbar {
    margin: 0 0 26px;
    min-height: 36px;
    padding: 0;
  }
  .mobile-brand {
    display: block;
  }
  .mobile-brand .brand {
    margin: 0;
    gap: 10px;
    font-size: 22px;
  }
  .mobile-brand .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 26px;
  }
  .desktop-greeting {
    display: none;
  }
  .account-button {
    width: 37px;
    height: 37px;
    min-height: 37px;
  }
  .account-button .ph {
    font-size: 22px;
  }
  .heading {
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .heading h1 {
    font-size: 37px;
    line-height: 1.08;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
  }
  .heading p {
    font-size: 13px;
    line-height: 1.6;
  }
  .heading .eyebrow {
    font-size: 10px;
    letter-spacing: 0.11em;
  }
  .heading > button {
    font-size: 13px;
    min-height: 44px;
    white-space: normal;
    padding: 10px 16px;
  }
  .view-today .heading {
    margin-bottom: 10px;
  }
  .view-today h1 {
    font-size: 42px;
    font-weight: 600;
  }
  .home-layout {
    display: block;
  }
  .quick-log {
    gap: 10px;
  }
  .quick-tile {
    height: 84px;
    min-height: 84px;
    border-radius: 16px;
    padding: 16px;
    gap: 14px;
    font-size: 16px;
  }
  .quick-tile .ph {
    font-size: 34px;
  }
  .daily-summary {
    margin: 2px 0 16px !important;
  }
  .daily-summary > summary {
    padding: 16px 0 !important;
    font-size: 13px;
    gap: 10px;
  }
  .daily-summary > summary small {
    font-size: 11px;
  }
  .summary-link {
    font-size: 12px;
  }
  .daily-summary .cards {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-value small {
    font-size: 12px;
  }
  .journal-section > .panel-head h2 {
    font-size: 28px;
  }
  .journal-section .panel-head {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .text-link {
    font-size: 12px;
  }
  .entry {
    gap: 10px;
    padding: 19px 0;
  }
  .entry-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .entry-icon .ph {
    font-size: 22px;
  }
  .entry-body {
    flex-basis: calc(100% - 46px);
  }
  .entry h3 {
    font-size: 15px;
  }
  .entry-title > .note {
    font-size: 10px;
    white-space: normal;
  }
  .entry p {
    font-size: 12px;
  }
  .entry-meta {
    font-size: 10px;
  }
  .entry-actions {
    margin-left: 46px;
    gap: 7px;
  }
  .entry-edit {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 44px;
  }
  .entry-details > summary {
    font-size: 12px;
  }
  .home-plan {
    margin-top: 12px;
    padding: 20px 0;
  }
  .home-plan small {
    display: none;
  }
  .home-plan strong {
    font-size: 14px;
  }
  .home-side {
    margin-top: 28px;
  }
  .home-side .panel {
    padding: 22px;
  }
  .follow-ups {
    padding: 0 !important;
  }
  .home-side .follow-ups h2 {
    font-size: 21px;
  }
  .panel {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  h2 {
    font-size: 21px;
  }
  .columns {
    display: block;
  }
  .section-nav {
    gap: 3px;
    margin: 0 -3px 20px;
    padding: 0 0 12px;
  }
  .section-nav button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .inline-actions {
    gap: 8px;
  }
  .inline-actions button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .filter-disclosure > summary {
    font-size: 12px;
  }
  .filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
  }
  .filters label {
    min-width: min(130px, 100%);
  }
  .filters button {
    font-size: 13px;
  }
  .planner-day {
    padding: 23px 0;
    border-radius: 0;
  }
  .planner-day h2 {
    font-size: 18px;
  }
  .planner-day .entry {
    padding: 16px;
  }
  .planner-day .inline-actions {
    gap: 8px;
  }
  .planner-day .inline-actions button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .planner-days {
    margin-top: 18px;
  }
  .day-empty {
    max-width: 260px;
  }
  .more-layout {
    display: block;
  }
  .menu-group {
    margin-bottom: 32px;
  }
  .menu-group > h2 {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .menu-row {
    padding: 19px 0;
    gap: 13px;
  }
  .menu-row strong {
    font-size: 14px;
  }
  .menu-row small {
    font-size: 12px;
    line-height: 1.5;
  }
  .menu-icon {
    width: 36px;
    height: 36px;
  }
  .more-footer {
    display: block;
    margin-top: 30px;
    font-size: 11px;
  }
  .more-footer > button {
    display: block;
    margin-top: 16px;
    padding-left: 0;
  }
  .profile-main {
    padding: 0;
  }
  .profile-main .disclosure > summary {
    font-size: 15px;
  }
  .profile-main .form-actions {
    bottom: 75px;
    padding: 14px 0;
  }
  .view-progress .columns > div:first-child {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .view-progress .columns .panel {
    margin-bottom: 0;
  }
  .view-progress .columns > div:last-child {
    margin-top: 20px;
  }
  .view-progress > .panel:first-of-type > .form-actions button,
  .view-reviews > .panel:first-of-type > .form-actions button,
  .view-sources > .panel:first-of-type > .form-actions button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .trend-reading strong {
    font-size: 36px;
  }
  .note,
  .section-note {
    font-size: 12px;
  }
  .form-grid {
    gap: 16px;
  }
  .list-row .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .list-row {
    padding: 16px;
  }
  .set-grid {
    gap: 12px;
  }
  .exercise-card {
    padding: 16px;
  }
  .set-card {
    padding: 14px;
  }
  .form-actions button {
    min-height: 46px;
    font-size: 13px;
  }
  .dialog-head h2 {
    font-size: 29px;
  }
  .dialog-head {
    top: -22px;
    padding-top: 18px;
    margin-top: -14px;
  }
  .dialog-head button {
    min-height: 44px;
    width: 44px;
  }
  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 28px);
    padding: 22px 18px;
    border-radius: 20px;
    scroll-padding-block: 90px;
  }
  dialog form > .form-actions {
    bottom: -22px;
    padding: 14px 0;
    margin-top: 24px;
  }
  .metadata-details > summary {
    font-size: 12px !important;
  }
  .login-main {
    padding: 28px;
    min-height: 100dvh;
  }
  .login-box h1 {
    font-size: 42px;
  }
  .login-box .brand {
    margin-bottom: 36px;
  }
  .login-box .eyebrow {
    font-size: 11px;
  }
  .chart {
    height: 180px;
  }
  #toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    font-size: 13px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 360px) {
  .workspace {
    padding-inline: 17px;
  }
  .quick-tile {
    padding: 14px;
    gap: 11px;
    font-size: 15px;
  }
  .quick-tile .ph {
    font-size: 26px;
  }
  .view-today h1 {
    font-size: 34px;
  }
  .heading h1 {
    font-size: 33px;
  }
  .section-nav button {
    padding: 8px;
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > * {
    grid-column: 1/-1;
  }
  .menu-row small {
    font-size: 11px;
  }
  .daily-summary > summary {
    font-size: 12px;
  }
  .daily-summary .summary-link {
    font-size: 11px;
  }
  .mobile-brand .brand {
    font-size: 20px;
  }
  .sidebar .nav-button {
    font-size: 11px;
  }
}
@media (max-height: 500px) and (any-pointer: coarse) {
  .topbar {
    margin-bottom: 18px;
  }
  dialog {
    max-height: calc(100dvh - 16px);
  }
  .dialog-head {
    position: static;
  }
  .sidebar {
    padding-block: 4px;
    min-height: 62px;
  }
  .sidebar .nav-button {
    min-height: 52px;
  }
  .workspace {
    padding-bottom: 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .section-nav,
  .skip-link {
    display: none !important;
  }
  .shell,
  .workspace {
    display: block;
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  dialog {
    box-shadow: none;
  }
  body:has(#shopping-print) dialog {
    max-height: none;
  }
}
.form-grid > label:has(> input[name="title"]) {
  grid-column: 1/-1;
}
.oauth-page {
  width: min(100% - 40px, 480px);
  margin: clamp(36px, 12vh, 130px) auto;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.oauth-page h1 {
  font-size: 44px;
}
.oauth-page > p {
  font-size: 14px;
  color: var(--muted);
}
.oauth-page form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.oauth-page form label {
  width: 100%;
  margin-bottom: 8px;
}
.oauth-page form button[value="allow"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
  flex: 1;
}
.oauth-page form button {
  min-height: 48px;
  font-size: 16px;
}
.oauth-page input {
  width: 100%;
  font-size: max(16px, 1rem, 1em);
}
.week-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 26px 0 0;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.week-strip button {
  flex: 0 0 64px;
  min-height: 68px;
  flex-direction: column;
  gap: 3px;
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 10px 8px;
}
.week-strip button span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.week-strip button strong {
  font-size: 19px;
  font-weight: 650;
}
.week-strip button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.week-strip button[aria-pressed="true"] span {
  color: #f0f5e9;
}
.plan-options {
  margin: 0 0 0 auto;
}
.plan-options > summary {
  font-size: 13px;
  padding: 12px;
}
.plan-options .disclosure-body {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.journal-chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 0 12px;
  margin-bottom: 16px;
}
.journal-chips button {
  border: 0;
  background: #ecefe4;
  flex: 0 0 auto;
  font-size: 13px;
}
.journal-chips button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
@media (max-width: 760px) {
  .week-strip {
    gap: 3px;
    margin-top: 20px;
  }
  .week-strip button {
    flex-basis: 42px;
    min-height: 61px;
    border-radius: 12px;
    padding: 9px 5px;
  }
  .week-strip button strong {
    font-size: 16px;
  }
  .week-strip button span {
    font-size: 10px;
  }
  .plan-options > summary {
    font-size: 12px;
  }
  .journal-chips {
    margin-bottom: 8px;
  }
  .journal-chips button {
    font-size: 12px;
    padding: 9px 12px;
  }
}
@media (max-width: 760px) {
  .sidebar .nav-button:not(.active):hover {
    background: transparent;
  }
  .compact-entry {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .compact-entry .entry-body {
    grid-column: 2;
  }
  .compact-entry .entry-actions {
    grid-column: 3;
    margin-left: 0;
    flex-direction: column;
    gap: 6px;
  }
  .compact-entry .entry-title {
    display: block;
  }
  .compact-entry .entry-title > .note {
    display: block;
    margin-bottom: 4px;
  }
  .compact-entry .entry-meta {
    gap: 4px;
  }
  .compact-entry .entry-meta > span:first-child {
    display: none;
  }
  .compact-entry .badge {
    font-size: 10px;
  }
  .compact-entry .entry-edit {
    padding: 7px 10px;
    font-size: 11px;
    min-height: 44px;
  }
  .compact-entry h3 {
    font-size: 15px;
  }
  .compact-entry .entry-details {
    font-size: 11px;
  }
}

.compact-entry .entry-title { display: block; }
.compact-entry .entry-title > .note { display: block; margin-bottom: 4px; }

.checkin-grid { grid-template-columns: 1fr; }
.measurement-card { margin: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.measurement-card > summary { min-height: 48px; padding-block: 14px; }
.measurement-card > .form-grid { padding-bottom: 12px; }
.measurement-card .wide > .form-grid { grid-template-columns: 1fr; }
