:root {
  --page: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4eb;
  --ink: #101513;
  --muted: #626b66;
  --line: #dbe2d8;
  --line-strong: #b9c5b4;
  --lime: #c7f05b;
  --lime-soft: #e8fb93;
  --green: #1d7f57;
  --blue: #3c7df0;
  --coral: #ff6b57;
  --amber: #f0b84f;
  --shadow: 0 22px 60px rgba(16, 21, 19, 0.14);
  --soft-shadow: 0 12px 30px rgba(16, 21, 19, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(199, 240, 91, 0.12), rgba(60, 125, 240, 0.08) 44%, transparent 66%),
    var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  appearance: none;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 0 max(22px, calc((100vw - 1160px) / 2));
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid rgba(219, 226, 216, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.top-tabs,
.header-actions,
.language-switch,
.metric-row,
.card-head,
.source-actions,
.section-head,
.card-title,
.settings-row,
.row-button,
.modal-actions,
.history-row-main,
.history-row-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 860;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(16, 21, 19, 0.12);
  border-radius: var(--radius);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.top-tabs {
  justify-content: center;
  gap: 6px;
}

.tab-button,
.lang-button,
.icon-button,
.segment,
.source-button,
.price-card,
.row-button,
.close-button {
  border: 0;
  cursor: pointer;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 820;
}

.tab-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tab-button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

#open-paywall-top {
  display: none;
}

.language-switch {
  gap: 3px;
  padding: 3px;
  background: #e9efe5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-switch.standalone {
  flex: 0 0 auto;
}

.lang-button {
  display: grid;
  min-width: 38px;
  height: 32px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 880;
}

.lang-button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 21, 19, 0.08);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.icon-button svg,
.secondary-button svg,
.primary-button svg,
.source-button svg,
.row-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.app-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.screen-stack,
.settings-layout {
  display: grid;
  gap: 16px;
}

.hero-card,
.app-card,
.notice-card,
.score-card,
.report-card,
.history-row,
.empty-state,
.modal-panel,
.included-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 28px;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.hero-card h1,
.section-head h1,
.settings-layout h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-card p,
.section-head p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.6;
}

.hero-copy p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.hero-action.primary-source {
  background: var(--lime);
  border-color: rgba(16, 21, 19, 0.1);
}

.hero-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.hero-trust {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-row {
  gap: 10px;
  align-self: stretch;
}

.metric-pill {
  min-width: 112px;
  padding: 14px;
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-pill strong,
.metric-pill span {
  display: block;
}

.metric-pill strong {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.metric-pill span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.notice-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.notice-card svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 16px;
}

.app-card {
  min-width: 0;
  padding: 20px;
}

.app-card h2,
.report-stack h2,
.settings-layout h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.card-head {
  justify-content: space-between;
  gap: 14px;
}

.card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.state-dot {
  width: 24px;
  height: 24px;
  background: var(--muted);
  border-radius: 50%;
}

.state-dot.ready {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(29, 127, 87, 0.12);
}

.meal-preview {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background: #e7ece3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meal-preview img {
  display: block;
  width: 100%;
  height: 272px;
  object-fit: cover;
}

.macro-strip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.macro-strip span {
  min-width: 0;
  padding: 10px;
  color: #ffffff;
  background: rgba(16, 21, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.macro-strip strong {
  display: block;
  font-size: 17px;
}

.macro-strip em {
  font-style: normal;
}

.source-actions {
  gap: 10px;
  margin-top: 12px;
}

.source-button {
  position: relative;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 840;
}

.source-button:first-child {
  background: var(--lime);
  border-color: rgba(16, 21, 19, 0.1);
}

.source-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-line {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  background: #f7faf4;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.file-line strong {
  font-size: 14px;
  font-weight: 840;
}

.file-line span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 880;
  cursor: pointer;
}

.primary-button {
  color: var(--ink);
  background: var(--lime);
  border: 0;
  box-shadow: var(--soft-shadow);
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.primary-button.full-width {
  width: 100%;
  margin-top: 12px;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.analysis-progress {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.progress-head strong {
  font-weight: 900;
}

.progress-head span {
  color: var(--green);
  font-weight: 820;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.progress-step span {
  display: block;
  height: 5px;
  background: #e1e7dd;
  border-radius: 999px;
}

.progress-step.active,
.progress-step.done {
  color: var(--ink);
}

.progress-step.active span,
.progress-step.done span {
  background: var(--lime);
}

.progress-step.active span {
  box-shadow: 0 0 0 4px rgba(199, 240, 91, 0.24);
}

.control-group {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.control-group label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.segment {
  min-height: 44px;
  padding: 0 11px;
  color: var(--muted);
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 820;
}

.segment.active {
  color: var(--ink);
  background: var(--lime);
  border-color: rgba(16, 21, 19, 0.1);
}

textarea {
  width: 100%;
  min-height: 106px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  font-size: 14px;
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(60, 125, 240, 0.28);
  outline-offset: 2px;
}

.report-stack {
  display: grid;
  gap: 14px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.section-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.source-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #ffffff;
  background: var(--green);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 880;
}

.score-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.score-ring {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(var(--lime) 0 82%, #e1e7dd 82% 100%);
  border-radius: 50%;
  font-size: 29px;
  font-weight: 900;
}

.score-card h3,
.report-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 900;
}

.score-card p,
.report-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.report-card {
  min-width: 0;
  padding: 20px;
}

.report-card ul,
.included-card ul,
.modal-list,
.detail-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card-title {
  gap: 10px;
}

.card-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
}

.estimate-icon {
  background: linear-gradient(135deg, var(--lime), #ffffff 140%);
}

.advice-icon {
  background: linear-gradient(135deg, var(--blue), #b6cbff);
}

.next-icon {
  background: linear-gradient(135deg, var(--coral), #ffd2c9);
}

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.access-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px;
  text-align: left;
  color: var(--ink);
}

.history-thumb {
  overflow: hidden;
  width: 64px;
  height: 64px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row-meta {
  gap: 7px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.history-score {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 44px;
  text-align: center;
}

.empty-state svg {
  width: 58px;
  height: 58px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.empty-state h2 {
  margin: 14px 0 0;
  font-size: 22px;
}

.empty-state p {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.settings-row {
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.settings-row:first-of-type {
  margin-top: 14px;
}

.settings-row strong,
.settings-row span,
.payment-status,
.settings-message {
  display: block;
}

.settings-row strong {
  font-size: 15px;
  font-weight: 900;
}

.settings-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.button-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.row-button {
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  font-size: 14px;
  font-weight: 820;
}

.row-button.destructive {
  color: #b43224;
}

.settings-message,
.payment-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.result-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.result-panel {
  display: grid;
  width: min(100%, 560px);
  gap: 20px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.result-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  font-weight: 900;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.6;
}

.result-panel .primary-button {
  width: fit-content;
}

.modal {
  width: min(92vw, 620px);
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(16, 21, 19, 0.38);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.modal-panel.large {
  width: min(92vw, 760px);
}

.modal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green);
  background: rgba(29, 127, 87, 0.1);
  border-radius: var(--radius);
}

.modal-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.modal p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  background: #f2f6ef;
  border-radius: var(--radius);
}

.close-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.included-card {
  padding: 16px;
  box-shadow: none;
}

.included-card strong {
  font-size: 17px;
  font-weight: 900;
}

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

.price-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.active {
  border-color: rgba(29, 127, 87, 0.68);
  box-shadow: 0 0 0 4px rgba(199, 240, 91, 0.28);
}

.price-card span {
  font-size: 14px;
  font-weight: 860;
}

.price-card strong {
  font-size: 32px;
  line-height: 1;
}

.price-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.price-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.detail-hero {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
}

.detail-thumb {
  overflow: hidden;
  width: 116px;
  height: 116px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-section {
  padding: 16px;
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-section h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.detail-section p {
  margin-top: 10px;
}

.delete-report {
  color: #ffffff;
  background: var(--coral);
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .top-tabs {
    position: fixed;
    right: 14px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transform: translateZ(0);
  }

  .tab-button {
    justify-content: center;
    padding: 0 8px;
  }

  .app-main {
    width: min(100% - 28px, 760px);
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .hero-card,
  .app-grid,
  .access-card {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-header {
    min-height: 68px;
  }

  .brand {
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-card,
  .app-card,
  .score-card,
  .report-card,
  .modal-panel {
    padding: 17px;
  }

  .hero-card h1,
  .section-head h1,
  .settings-layout h1 {
    font-size: 32px;
  }

  .hero-card p,
  .section-head p {
    font-size: 15px;
  }

  .metric-row,
  .source-actions,
  .macro-strip,
  .segmented,
  .hero-actions,
  .report-actions {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .source-actions,
  .hero-actions,
  .report-actions {
    display: grid;
  }

  .hero-action,
  .source-button,
  .primary-button,
  .secondary-button {
    min-height: 52px;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meal-preview img {
    height: 230px;
  }

  .section-head,
  .settings-row,
  .modal-actions {
    display: grid;
    align-items: stretch;
  }

  .section-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .score-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 58px 1fr;
  }

  .history-score {
    grid-column: 2;
    font-size: 16px;
  }

  .history-thumb {
    width: 58px;
    height: 58px;
  }

  .top-tabs {
    right: 10px;
    left: 10px;
  }

  .top-tabs span {
    display: inline;
    font-size: 12px;
  }

  .tab-button svg {
    width: 18px;
    height: 18px;
  }
}
