/* =========================================================
   KI-Schätzung (AE1) — the few things the photo estimation adds
   --------------------------------------------------------
   Everything else on its pages is an existing Klar component: page heading,
   panel, fields grid, toggle check, portion pill, target row, meal picker,
   energy overview, goal bands, folds, segmented control. This file holds
   only what has no component yet: a photo in
   the hero, the photo sheet, the photo preview of the start page, the
   sentence under the toggle (AE2), what the device test of AE2 added (the
   hints before the photo, the revealed settings, the start button in the
   flow, the amounts question, the note to an answer), and the waiting motion.
   Loaded after klar-diary.css, so equal selectors here win.
   ========================================================= */

/* ---------------------------------------------------------- photo in the hero
   Same place and size as the symbol it replaces (``.food-hero .thumb``,
   72 × 82). The photo fills it, cropped -- the whole picture is one tap away
   in the photo sheet. A link, so it stays reachable without JavaScript. */
.app-main .thumb--photo {
  padding: 0;
  display: block;
}

.app-main .thumb--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--tint);
}

.app-main .thumb--photo:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ---------------------------------------------------------- photo sheet */
.photo-sheet__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--tint);
}

/* ---------------------------------------------------------- start page */
.app-main .estimation-photo-preview img {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--tint);
}

/* The sentence under the toggle "Schnell" / "Präzise" (AE2): the one of the
   position that is checked. Chosen by the stylesheet alone, so the page needs
   no script for it; a browser without ``:has`` keeps both sentences, which
   says the same, only longer. */
@supports selector(:has(*)) {
  .app-main .estimation-mode__note {
    display: none;
  }

  .app-main .estimation-mode:has(input[value="quick"]:checked) [data-estimation-mode-note="quick"],
  .app-main .estimation-mode:has(input[value="guided"]:checked) [data-estimation-mode-note="guided"] {
    display: block;
  }
}

/* ---------------------------------------------------------- start page after the device test (27.09.2026)
   Two hints before the photo, set apart so they are read (E9): the portion
   rule and an object for scale. The icons carry no meaning of their own
   (``aria-hidden`` from the icon tag). */
.app-main .estimation-tips {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  background: var(--tint);
  border-radius: var(--radius-md);
}

.app-main .estimation-tips > li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink);
}

.app-main .estimation-tips > li > svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

/* Description, toggle and start button: shown by the script once a photo is
   chosen, then scrolled to (E4). The short rise says "this is new" without
   making anyone wait; without motion it simply appears. The margin clears the
   sticky header, as the diary's scroll target does (``klar-diary.css``). */
.app-main [data-estimation-after-photo] {
  scroll-margin-top: calc(var(--app-header-h) + var(--safe-top) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  .app-main [data-estimation-after-photo].is-revealed {
    animation: estimation-reveal 240ms ease-out both;
  }
}

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

/* The start button stays in the flow (E3): the layout of ``.bottom-action``
   without the docking, so the way to it leads past the settings. */
.app-main .estimation-start-action {
  display: grid;
  margin-top: 8px;
}

/* "Kannst du Mengen und Gewichte ungefähr schätzen?" (E8): a question of mode
   "Präzise" only, and the sentence under "Nein" only when it is chosen. A
   browser without ``:has`` shows both, which asks nothing wrong. Since E27 it
   reads like a single choice of the round: its label shares the rule of the
   round's question below, then the note "Eine Antwort" and the answer cards. */

@supports selector(:has(*)) {
  .app-main .estimation-mode:has(input[value="quick"]:checked) [data-estimation-amounts] {
    display: none;
  }

  .app-main [data-estimation-amounts-note] {
    display: none;
  }

  .app-main .estimation-amounts:has(input[value="no"]:checked) [data-estimation-amounts-note] {
    display: block;
  }
}

/* Arriving at the questions, the page scrolls to where they begin (E23). The
   margin clears the sticky header -- with 16 px the line "Alle Fragen sind
   freiwillig" and the top of the first question ended up under it (measured in
   Chromium, 30.09.2026). */
.app-main [data-estimation-questions-start],
.app-main [data-estimation-question] {
  scroll-margin-top: calc(var(--app-header-h) + var(--safe-top) + 12px);
}

/* ---------------------------------------------------------- page of questions: the widgets (AE3)
   What the page adds to the app's fields and pills: the question as a small
   heading with a note under it, the answer cards of the choice questions, the
   unit at a number field, the two fields of a range, text boxes that grow.

   ``[hidden]`` (the "add another" button, the free field of "Andere …") is
   answered centrally in ``base.css`` with ``!important``, so a ``display``
   here cannot undo it. */
.app-main .estimation-question {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.app-main .estimation-question:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

/* The question: a small heading, the same for every type -- above a group of
   cards as above a number field. One size above the answers and heavier, so
   question and answers are two levels at a glance. Under it, for a choice,
   the note "Eine Antwort" / "Mehrere möglich": the cards of both look alike,
   and the note is what tells them apart, as quietly as a hint line. The
   amounts question of the start page is set the same way (E27). */
.app-main .estimation-question__head {
  display: grid;
  gap: 3px;
}

.app-main .estimation-amounts__label,
.app-main .estimation-question .estimation-question__label,
.app-main .estimation-question .field > span.estimation-question__label {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 750;
  line-height: 1.4;
  color: var(--ink);
}

.app-main .estimation-question__mode {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

/* The AI's explanation of a measure ("Eine Prise ist so viel, wie …", E25):
   the size and colour of a hint line, set a little tighter because it sits in
   the question's head, between the note and the answers. */
.app-main .estimation-question__help {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.app-main .estimation-question__sublabel {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- answer cards (single and multiple choice, 29.09.2026)
   One card per answer: the answer on the left in normal weight, a small box on
   the right. The card has a thin frame and fills with the tint when chosen,
   the frame turning accent -- the way the app marks a choice everywhere
   (portion pills, meal picker). The box is nearly square (5 px) and the same
   for one answer and for several; the note under the question says which.
   Underneath they stay radios and checkboxes, for the keyboard and a screen
   reader. A long answer wraps; the box stays centred beside it. */
.app-main .estimation-choices {
  display: grid;
  gap: 8px;
}

.app-main .estimation-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color var(--t-fast),
    border-color var(--t-fast);
}

.app-main .estimation-choice__text {
  min-width: 0;
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.app-main .estimation-choice:has(> input:checked) {
  background: var(--tint);
  border-color: var(--accent);
}

.app-main .estimation-choice:has(> input:checked) span {
  color: var(--ink);
}

@media (hover: hover) {
  .app-main .estimation-choice:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  }
}

/* The box: 20 px, 1.5 px frame at 3:1 against white (WCAG 1.4.11 for a
   control) -- visible, not heavy. Chosen: accent fill with a white tick. */
.app-main .estimation-choice > input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--muted) 72%, var(--surface));
  border-radius: 5px;
  background: var(--surface) center / 14px no-repeat;
  transition:
    background-color var(--t-fast),
    border-color var(--t-fast);
}

.app-main .estimation-choice > input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* The focus ring sits on the card: the box alone is too small to carry it. */
.app-main .estimation-choice:has(> input:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-main .estimation-choice > input:focus-visible {
  outline: none;
}

@media (forced-colors: active) {
  .app-main .estimation-choice > input:checked {
    background-color: Highlight;
    border-color: Highlight;
    forced-color-adjust: none;
  }
}

/* ---- Ja / Nein: two pills side by side (the app's portion pills), the text
   in the weight of the answer cards and wide enough to be an easy target. */
.app-main .estimation-pills label {
  min-width: 96px;
  color: var(--muted);
}

.app-main .estimation-pills label > span {
  font-size: var(--text-15);
  font-weight: 500;
}

/* The own additions follow the cards above them, under their own small label.
   The free field of "Andere …" has no visible label, and at full width it read
   as one more answer card (same frame, same corners) -- set in to where the
   text of the cards starts, it reads as what it is: the rest of "Andere …". */
.app-main .estimation-other,
.app-main .estimation-custom {
  margin-top: 2px;
  display: grid;
  gap: 8px;
}

.app-main .estimation-custom__add {
  justify-self: start;
  min-height: 44px;
  padding-left: 0;
  gap: 6px;
}

.app-main .estimation-custom__add svg {
  width: 18px;
  height: 18px;
}

/* A number with its unit at the field: the unit is not a second field, it sits
   inside the frame the field draws. The input keeps the app's field styling
   (``.field input``), so only the unit and the room for it are new. */
.app-main .estimation-number {
  position: relative;
  display: block;
}

.app-main .estimation-number > input {
  width: 100%;
  padding-right: 52px;
}

.app-main .estimation-number__unit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: var(--text-sm);
  pointer-events: none;
}

/* Minimum and maximum of a range, side by side -- one scale, two grips, the
   line under them ("50 bis 500 g") is the scale. At 320 px they still fit:
   (320 − 2 × 15 − 10) / 2 = 140 px each. */
.app-main .estimation-range-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------------------------------------------------------- page of questions: the note to an answer (E6)
   A plain ``details``: open without a script, closed until someone wants to
   add something, open again when it holds text or an error. */
.app-main .estimation-note > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
}

.app-main .estimation-note > summary::-webkit-details-marker {
  display: none;
}

.app-main .estimation-note > summary > svg {
  width: 18px;
  height: 18px;
  transition: transform var(--t-med);
}

.app-main .estimation-note[open] > summary > svg {
  transform: rotate(45deg);
}

.app-main .estimation-note > summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Every box that grows (the note, the text answer, "Andere …", an own
   addition) starts at one line and grows line by line with its text (E15; at
   first the note started at two lines and only grew from the third). At a line
   height of 1.4 one line is exactly the 48 px of the app's other fields. */
.app-main .estimation-question textarea[data-estimation-autogrow] {
  min-height: 48px;
  line-height: 1.4;
}

/* ---------------------------------------------------------- waiting page */
.app-main .estimation-status__photo {
  display: block;
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--tint);
}

.app-main .estimation-status__phase {
  font-weight: 700;
}

/* The track of a meter, with a segment travelling along it: "it works", not
   "it is 60 % done" -- nobody knows how long the AI takes. */
.app-main .estimation-progress {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--line);
}

.app-main .estimation-progress > i {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  border-radius: 9px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .app-main .estimation-progress > i {
    animation: estimation-progress 1.4s ease-in-out infinite;
  }
}

/* Without motion a resting segment would read as "a third done". The whole
   track is tinted instead: a state, not an amount. */
@media (prefers-reduced-motion: reduce) {
  .app-main .estimation-progress > i {
    width: 100%;
    opacity: 0.35;
  }
}

@keyframes estimation-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(290%);
  }
}

/* -------------------------------------------------------- open estimates */
/* The start page's list of estimates that wait for review: the search's
   result row, with the discard as its trailing 44 px button -- red, the one
   colour Klar keeps for destructive actions (UIUX.md). */
.app-main .estimation-open h2 {
  font-size: var(--text-16);
}

.app-main .estimation-open .food-result form {
  margin: 0;
  flex-shrink: 0;
}

.app-main .food-result .quick-add--discard {
  color: var(--danger);
}

/* =========================================================
   KI-Fotoanalyse der Verpackung (LS1, 20.10.2026)
   --------------------------------------------------------
   The label scan borrows the estimation's waiting page (track, phase line)
   and adds what it has of its own: the two photo cards of the start page,
   two photos side by side, and the panel on the food form. Kept here rather
   than in a new stylesheet: it is the same family of pages, and this file is
   already in the service worker's shell.
   ========================================================= */

/* ---------------------------------------------------------- photo cards */
.app-main .labelscan-slot__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-main .labelscan-slot__head h2 {
  font-size: var(--text-16);
}

.app-main .labelscan-slot__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--tint);
  color: var(--accent);
}

.app-main .labelscan-slot__icon svg {
  width: 20px;
  height: 20px;
}

.app-main .labelscan-slot__preview img {
  display: block;
  width: 100%;
  max-height: 36vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--tint);
}

/* The start button stays in the flow, after both cards (as on the estimation's start page). */
.app-main .labelscan-start-action {
  display: grid;
  margin-top: 4px;
}

/* ---------------------------------------------------------- two photos side by side */
.app-main .labelscan-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-main .labelscan-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 30vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--tint);
}

.app-main .labelscan-thumbs--small {
  grid-template-columns: repeat(2, 56px);
  gap: 6px;
  align-content: start;
}

.app-main .labelscan-thumbs--small a {
  display: block;
  border-radius: var(--radius-sm);
}

.app-main .labelscan-thumbs--small a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-main .labelscan-thumbs--small img {
  width: 56px;
  height: 74px;
  aspect-ratio: auto;
  max-height: none;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------- panel on the food form */
.app-main .labelscan-panel {
  display: grid;
  gap: 12px;
  background: var(--tint);
  border-color: transparent;
}

.app-main .labelscan-panel__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-main .labelscan-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-16);
}

.app-main .labelscan-panel h2 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* Photos left, the sentences beside them; title and action take the full
   width above and below (device test 20.10.2026: in one row with the photos
   the title and the action button wrapped). */
.app-main .labelscan-panel__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-main .labelscan-panel__warning {
  color: var(--warning-600);
  font-weight: 650;
}


/* ==========================================================================
   Verpackungen prüfen (LS2) -- staff review of label scans
   Built for the desktop (decision L13), stacked on a phone. The body class
   widens the whole frame -- header, navigation, messages and content stay
   flush with each other -- instead of the content alone.
   ========================================================================== */
body.labelscan-review-page {
  --container-max: 1280px;
  --content-max: 1280px;
}

.app-main .labelscan-review {
  display: grid;
  gap: 20px;
  align-items: start;
}

/* -- photos: a gallery with the script, two photos side by side without it -- */
.app-main .labelscan-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.app-main .labelscan-gallery.is-gallery {
  grid-template-columns: minmax(0, 1fr);
}

.app-main .labelscan-gallery__slide {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.app-main .labelscan-gallery__slide figcaption {
  color: var(--muted);
  font-size: var(--text-xs);
}

.app-main .labelscan-gallery__slide figcaption a {
  color: var(--accent);
}

.app-main .labelscan-gallery__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 65vh;
  border-radius: var(--radius-md);
  background: var(--tint);
}

.app-main .labelscan-gallery.is-gallery .labelscan-gallery__viewport {
  cursor: zoom-in;
  touch-action: pan-y;
}

.app-main .labelscan-gallery__viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.app-main .labelscan-gallery__viewport.is-dragging {
  cursor: grabbing;
}

.app-main .labelscan-gallery__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

.app-main .labelscan-gallery:not(.is-gallery) .labelscan-gallery__toolbar {
  display: none;
}

.app-main .labelscan-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.app-main .labelscan-gallery__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-main .labelscan-gallery__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.app-main .labelscan-gallery__tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent);
}

.app-main .labelscan-gallery__tab:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-main .labelscan-gallery__key {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--line);
  color: var(--text);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.app-main .labelscan-gallery__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-main .labelscan-gallery__level {
  min-width: 4.5ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.app-main .labelscan-gallery__hint {
  color: var(--muted);
  font-size: var(--text-xs);
}

.app-main .labelscan-review__head .page-heading {
  margin: 0;
}

.app-main .labelscan-review__main {
  min-width: 0;
}

.app-main .labelscan-review__target,
.app-main .labelscan-review__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-weight: 650;
}

.app-main .labelscan-review__target svg,
.app-main .labelscan-review__note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.app-main .labelscan-review__target--overwrite svg {
  color: var(--warning-600);
}

.app-main .labelscan-review__note--muted {
  font-weight: 400;
  color: var(--muted);
}

.app-main .labelscan-review__actions {
  display: grid;
  gap: 10px;
}

.app-main .labelscan-review__values {
  display: grid;
  gap: 0;
  margin: 0;
}

.app-main .labelscan-review__values > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.app-main .labelscan-review__values > div:last-child {
  border-bottom: 0;
}

.app-main .labelscan-review__values dt {
  color: var(--muted);
}

.app-main .labelscan-review__values dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.app-main .labelscan-review-row .food-result-body {
  flex: 1;
}

.app-main .labelscan-review-row .thumb--photo {
  width: 56px;
  height: 72px;
}

.app-main .labelscan-review-row__target {
  margin-top: 6px;
  max-width: 100%;
  white-space: normal;
}

@media (min-width: 560px) {
  .app-main .labelscan-review__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  /* Wide photos, a narrow form (feedback 20.10.2026): the form needs no more
     than one comfortable column of fields. */
  /* Photos about 60 %, form about 40 % (feedback 20.10.2026). The gallery
     starts right under the header and spans both rows; name, account and
     date head the form column instead of pushing the photos down. */
  .app-main .labelscan-review {
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    grid-template-areas:
      "photos head"
      "photos main";
    grid-template-rows: auto 1fr;
    gap: 16px 28px;
  }

  .app-main .labelscan-review__head {
    grid-area: head;
  }

  .app-main .labelscan-review__photos {
    grid-area: photos;
    position: sticky;
    top: calc(var(--app-header-h) + var(--safe-top) + 12px);
    align-self: start;
  }

  .app-main .labelscan-review__main {
    grid-area: main;
  }

  /* Toolbar, photo, caption and hint fit between header and navigation. */
  .app-main .labelscan-gallery.is-gallery .labelscan-gallery__viewport {
    aspect-ratio: auto;
    height: calc(100vh - var(--app-header-h) - var(--bottom-nav-h) - var(--safe-bottom) - 150px);
    min-height: 360px;
    max-height: none;
  }

  .app-main .labelscan-review__main .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-main .labelscan-review__actions {
    grid-template-columns: 1fr;
  }
}
