:root {
  --bg: #eff4fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: #f6f9fe;
  --text: #13253f;
  --muted: #617086;
  --line: rgba(19, 37, 63, 0.08);
  --navy: #133b67;
  --navy-deep: #0a2441;
  --navy-soft: #dfeaf9;
  --red: #c62839;
  --red-soft: #f8dde1;
  --success: #1f7a55;
  --ios-highlight: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 36px rgba(14, 31, 53, 0.1);
  --shadow-soft: 0 10px 24px rgba(14, 31, 53, 0.08);
  --shadow-press: 0 6px 14px rgba(14, 31, 53, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(19, 59, 103, 0.08), transparent 24%),
    linear-gradient(340deg, rgba(198, 40, 57, 0.08), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

body.splash-visible {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  min-height: 100dvh;
  padding:
    max(14px, env(safe-area-inset-top))
    14px
    calc(98px + env(safe-area-inset-bottom));
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 4px 2px;
}

.install-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  animation: slideDownFade 280ms ease;
}

.install-banner-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(19, 59, 103, 0.12);
  background: linear-gradient(135deg, rgba(19, 59, 103, 0.1), rgba(255, 255, 255, 0.92));
}

.install-banner-copy {
  display: grid;
  gap: 4px;
}

.install-banner-copy strong {
  font-size: 0.96rem;
}

.install-banner-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.install-banner-close {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  background: rgba(19, 59, 103, 0.08);
  color: var(--navy);
  box-shadow: none;
}

.header-copy {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19, 59, 103, 0.9), rgba(15, 48, 85, 0.82));
  box-shadow: 0 14px 28px rgba(12, 34, 58, 0.12);
}

.brand-wordmark {
  width: min(100%, 290px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(10, 36, 65, 0.14));
}

.header-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-main {
  min-height: 0;
}

.screen {
  display: none;
  animation: screenFade 220ms ease;
}

.screen.active {
  display: block;
}

.screen-scroll {
  overflow: visible;
  padding: 6px 2px 10px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #0b2340 0%, #133b67 100%);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.splash-logo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 18px 34px rgba(5, 17, 33, 0.26);
}

.splash-wordmark {
  width: min(86vw, 320px);
  height: auto;
}

.splash-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel,
.hero-card,
.summary-card,
.quick-action,
.plan-card,
.meal-card,
.history-card,
.saved-workout-card,
.stat-pill,
.current-exercise-card,
.summary-card,
.inset-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 254, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel,
.hero-card,
.inset-panel {
  padding: 18px;
}

.panel-heading,
.hero-actions,
.stats-row,
.builder-toolbar,
.builder-footer,
.date-row,
.quick-calorie-buttons,
.session-actions,
.next-exercise-row,
.session-progress-row,
.inline-grid,
.builder-item-actions,
.meal-header,
.saved-workout-actions {
  display: flex;
  gap: 12px;
}

.panel-heading,
.date-row,
.meal-header,
.saved-workout-actions {
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

h1,
h2,
h3,
h4,
strong {
  font-family: "Space Grotesk", sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.02;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(19, 59, 103, 0.97), rgba(15, 48, 85, 0.94)),
    linear-gradient(180deg, rgba(198, 40, 57, 0.12), transparent 55%);
  color: white;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(12, 34, 58, 0.2);
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
  right: -40px;
  top: -30px;
}

.hero-card .eyebrow,
.hero-card .muted-copy,
.hero-card .hero-summary {
  color: rgba(255, 255, 255, 0.82);
}

.hero-summary {
  margin-top: 10px;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-panel {
  display: grid;
  gap: 10px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-action {
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quick-action span {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.quick-action small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.stats-row {
  flex-wrap: wrap;
}

.stat-pill {
  padding: 14px 16px;
  min-width: 100px;
  display: grid;
  gap: 3px;
  background: var(--surface-soft);
}

.stat-pill strong {
  font-size: 1.1rem;
}

.stat-pill span {
  color: var(--muted);
  font-size: 0.85rem;
}

.plan-stack,
.saved-workouts-list,
.history-stack,
.meal-groups {
  display: grid;
  gap: 12px;
}

.plan-card,
.saved-workout-card,
.history-card,
.meal-card {
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plan-card.selected {
  border-color: rgba(19, 59, 103, 0.28);
  background: linear-gradient(180deg, #ffffff, #f4f8fe);
}

.plan-meta,
.builder-item-meta,
.meal-macros,
.history-meta,
.summary-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan-actions,
.builder-item-actions,
.saved-workout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 59, 103, 0.1);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge.subtle {
  background: rgba(19, 59, 103, 0.06);
  color: var(--muted);
}

.live-session-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 252, 0.92));
  scroll-margin-top: 18px;
}

.timer-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}

.timer-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.97) 0 58%, transparent 59%),
    conic-gradient(var(--red) calc(var(--timer-progress, 1) * 1turn), rgba(19, 59, 103, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(19, 59, 103, 0.08);
}

.timer-ring span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.timer-ring small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.session-summary {
  display: grid;
  gap: 10px;
}

.session-progress-row {
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 59, 103, 0.08);
  overflow: hidden;
}

.progress-value {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--red), #f04d5f);
}

.current-exercise-card {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.next-exercise-row {
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.session-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.exercise-list,
.builder-list,
.library-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.exercise-list li,
.builder-list li,
.library-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
}

.exercise-list li.active {
  border-color: rgba(198, 40, 57, 0.26);
  background: #fff8f8;
}

.builder-toolbar {
  flex-wrap: wrap;
}

.builder-toolbar input {
  flex: 1 1 180px;
}

.builder-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.inset-panel {
  background: linear-gradient(180deg, #f9fbff, #f3f7fd);
}

.library-item-top,
.builder-item-top,
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.builder-footer {
  margin-top: 16px;
  flex-wrap: wrap;
}

.builder-empty,
.empty-state {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(19, 59, 103, 0.05);
  color: var(--muted);
}

.date-row {
  margin-top: 8px;
  flex-wrap: wrap;
}

.stacked-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(19, 37, 63, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(19, 59, 103, 0.24);
  box-shadow: 0 0 0 4px rgba(19, 59, 103, 0.08);
  background: #fff;
}

.quick-calorie-buttons {
  flex-wrap: wrap;
}

.macro-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.summary-card {
  padding: 14px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.summary-card strong {
  font-size: 1.25rem;
}

.food-form,
.settings-form {
  display: grid;
  gap: 14px;
}

.inline-grid {
  flex-wrap: wrap;
}

.inline-grid > * {
  flex: 1 1 120px;
}

.macros-grid > * {
  min-width: 90px;
}

.meal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.meal-card {
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.meal-header h4 {
  font-size: 1.05rem;
}

.meal-total {
  color: var(--muted);
  font-size: 0.92rem;
}

.meal-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.meal-entry:first-of-type {
  margin-top: 10px;
}

.meal-entry-name {
  font-weight: 700;
}

.meal-entry-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.history-card {
  background: linear-gradient(180deg, #ffffff, #f6faff);
}

.history-summary {
  display: grid;
  gap: 4px;
}

.history-meta {
  margin-top: 0;
}

.history-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.history-card.expanded .history-details {
  display: grid;
}

.history-block {
  display: grid;
  gap: 8px;
}

.history-block h4 {
  font-size: 0.98rem;
}

.history-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.status-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(19, 59, 103, 0.06);
  color: var(--muted);
}

.install-help-panel {
  scroll-margin-top: 16px;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.install-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.92));
  border: 1px solid var(--line);
}

.install-step p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.install-step-visual {
  position: relative;
  min-height: 108px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  border: 1px solid rgba(19, 59, 103, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mock-browser-bar,
.mock-screen-line,
.mock-menu-row {
  border-radius: 999px;
}

.mock-browser-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 12px;
  background: rgba(19, 59, 103, 0.08);
}

.mock-screen-line {
  width: 68px;
  height: 10px;
  background: rgba(19, 59, 103, 0.12);
}

.mock-screen-line.short {
  width: 48px;
}

.mock-screen-line.tiny {
  width: 34px;
}

.mock-share-icon {
  position: absolute;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(19, 59, 103, 0.1);
  color: var(--navy);
}

.mock-share-icon svg {
  width: 18px;
  height: 18px;
}

.mock-menu {
  width: 78px;
  display: grid;
  gap: 10px;
}

.mock-menu-row {
  height: 12px;
  background: rgba(19, 59, 103, 0.1);
}

.mock-menu-row.highlight {
  background: rgba(198, 40, 57, 0.22);
}

.mock-home-grid {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mock-home-grid img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(14, 31, 53, 0.12);
}

.mock-home-lines {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.danger-panel {
  border-color: rgba(198, 40, 57, 0.14);
}

.primary-button,
.secondary-button,
.tertiary-button,
.ghost-button,
.chip-button,
.danger-button,
.icon-button {
  border: none;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--shadow-soft);
}

.primary-button:active,
.secondary-button:active,
.tertiary-button:active,
.ghost-button:active,
.chip-button:active,
.danger-button:active,
.icon-button:active,
.quick-action:active,
.nav-item:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-press);
}

button.is-pressed,
.quick-action.is-pressed,
.nav-item.is-pressed {
  transform: scale(0.975);
  box-shadow: var(--shadow-press);
}

.primary-button {
  background: linear-gradient(135deg, var(--navy), #22538d);
  color: #fff;
  box-shadow: 0 12px 24px rgba(19, 59, 103, 0.22);
}

.secondary-button {
  background: rgba(19, 59, 103, 0.08);
  color: var(--text);
}

.tertiary-button,
.chip-button,
.icon-button {
  background: rgba(19, 59, 103, 0.06);
  color: var(--navy);
}

.ghost-button {
  background: rgba(19, 59, 103, 0.08);
  color: var(--navy);
}

.danger-button {
  background: rgba(198, 40, 57, 0.12);
  color: var(--red);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 532px);
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid rgba(19, 37, 63, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.78));
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 20px 40px rgba(10, 28, 50, 0.14);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(19, 59, 103, 0.14), rgba(198, 40, 57, 0.08));
  color: var(--navy);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(19, 59, 103, 0.08);
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.nav-icon svg,
.button-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, var(--navy), #22538d);
  color: #fff;
  transform: translateY(-1px);
}

.nav-item span:last-child {
  font-size: 0.73rem;
  font-weight: 700;
}

@media (display-mode: browser) {
  .app-shell {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 110px;
  }

  .bottom-nav {
    bottom: 12px;
  }
}

body.browser-mode {
  overflow-y: auto;
}

body.browser-mode .app-shell {
  min-height: auto;
  padding-top: 14px;
  padding-bottom: 118px;
}

body.browser-mode .app-main {
  min-height: auto;
}

body.browser-mode .bottom-nav {
  bottom: 12px;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(19, 59, 103, 0.1);
}

.panel,
.plan-card,
.saved-workout-card,
.history-card,
.meal-card,
.quick-action {
  position: relative;
  overflow: hidden;
}

.panel::before,
.plan-card::before,
.saved-workout-card::before,
.history-card::before,
.meal-card::before,
.quick-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 36%);
  pointer-events: none;
}

.plan-card:hover,
.saved-workout-card:hover,
.history-card:hover,
.meal-card:hover,
.quick-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .app-shell {
    width: min(100%, 980px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .builder-layout {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid,
  .macro-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .macro-summary-grid .summary-card:first-child,
  .macro-summary-grid .summary-card:nth-child(2) {
    grid-column: span 2;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    gap: 10px;
  }

  .header-subtitle {
    font-size: 0.9rem;
  }

  .card-grid,
  .quick-actions-grid,
  .macro-summary-grid {
    grid-template-columns: 1fr;
  }

  .timer-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .session-actions,
  .hero-actions,
  .builder-footer,
  .plan-actions,
  .saved-workout-actions,
  .builder-item-actions,
  .date-row {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-grid {
    flex-direction: column;
  }

  .meal-entry,
  .history-row,
  .next-exercise-row,
  .meal-header,
  .install-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-step {
    grid-template-columns: 1fr;
  }
}
