/* ==============================================
   The app-link tool (sections/tool-store-link.liquid, assets/tool-store-link.js): one page, four screens
   (start, with its two tabs, live progress, result, stop). The tokens are base.css's; ink and white, the pink accent only as a fill
   behind black, 44px hit targets, the ink ring with the pink halo on focus.
   ============================================== */

.tool { --tool-danger: #c62828; --tool-danger-soft: #f8e5e5; --tool-line: rgba(0, 0, 0, 0.08); --tool-line-strong: rgba(0, 0, 0, 0.16); }

.tool__screen[hidden] { display: none; }

.tool__screen--narrow { max-width: 640px; margin-inline: auto; }

.tool__screen.is-entering { animation: tool-enter 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes tool-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tool__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-block-end: 32px;
  text-align: center;
}

.tool__title {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.tool__title--md { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }

/* A screen's heading takes the focus when the screen changes, for screen readers; it is not a control, so no ring. */
.tool__title[tabindex="-1"]:focus,
.tool__title[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

.tool__lead {
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.tool__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.tool__meta[hidden],
.tool__reconnecting[hidden] { display: none; }

/* ── Start: the two tabs, a segmented switch like the result's Phone / Desktop ── */

.tool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-block-end: 28px;
  padding: 4px;
  border-radius: 9999px;
  background: var(--color-card-background);
}

.tool-tabs__tab {
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tool-tabs__tab:hover { color: var(--color-text); }

.tool-tabs__tab[aria-selected="true"] {
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tool-tabs__tab[aria-disabled="true"] { cursor: not-allowed; }
.tool-tabs__tab[aria-disabled="true"]:not([aria-selected="true"]) { opacity: 0.5; }

/* ── Start: the form ── */

.tool__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool__panel[hidden],
.tool__lead[hidden],
.tool__consent [hidden] { display: none; }

.tool__field { display: flex; flex-direction: column; gap: 6px; }

.tool__label {
  font-weight: 600;
  font-size: 1rem;
}

.tool__hint {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.tool__input {
  width: 100%;
  min-height: 96px;
  margin-block-start: 4px;
  padding: 14px 16px;
  border: 1px solid var(--tool-line-strong);
  border-radius: var(--radius-field, 14px);
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool__input::placeholder { color: var(--color-text-secondary); opacity: 0.8; }

.tool__input:hover { border-color: var(--color-text-secondary); }

.tool__input:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 1px var(--color-text); }

.tool__input[aria-invalid="true"] { border-color: var(--tool-danger); box-shadow: 0 0 0 1px var(--tool-danger); }

.tool__input--line { min-height: 52px; resize: none; }

.tool__count {
  align-self: flex-end;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.tool__count.is-over { color: var(--tool-danger); font-weight: 600; }

/* ── Start: an image field, a drop zone that is the file input's label, and the images added ── */

.tool-drop { display: flex; flex-direction: column; gap: 10px; margin-block-start: 4px; }

.tool-drop__zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  min-height: 96px;
  padding: 18px 16px;
  border: 1.5px dashed var(--tool-line-strong);
  border-radius: var(--radius-field, 14px);
  background: var(--color-background);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tool-drop__zone:hover,
.tool-drop.is-dragging .tool-drop__zone { border-color: var(--color-text); }

.tool-drop.is-dragging .tool-drop__zone { background: var(--color-card-background); border-style: solid; }

.tool-drop:has(.tool-drop__input:focus) .tool-drop__zone { border-color: var(--color-text); border-style: solid; }

.tool-drop:has(.tool-drop__input:focus-visible) .tool-drop__zone {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-accent);
}

.tool-drop:has(.tool-drop__input[aria-invalid="true"]) .tool-drop__zone { border-color: var(--tool-danger); }

.tool-drop.is-full .tool-drop__zone { display: none; }

/* The input stays in the page for the keyboard and screen readers; the zone is what is seen. */
.tool-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tool-drop__icon { flex-shrink: 0; }

.tool-drop__choose {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--color-primary-button);
  color: var(--color-primary-button-text);
  font-weight: 500;
}

.tool-drop__or { color: var(--color-text-secondary); font-size: 0.9375rem; }

@media (hover: none), (pointer: coarse) {
  .tool-drop__or { display: none; }
}

.tool-files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-files[hidden] { display: none; }

.tool-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tool-file__thumb {
  flex-shrink: 0;
  border: 1px solid var(--tool-line);
  border-radius: 14px;
  background: var(--color-card-background);
  object-fit: cover;
}

.tool-file__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }

.tool-file__name {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-file__size { font-size: 0.875rem; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }

.tool-file__remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-border, var(--tool-line-strong));
  border-radius: 9999px;
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.tool-file__remove:hover { border-color: var(--color-text); }

.tool-file__x {
  position: relative;
  width: 12px;
  height: 12px;
}

.tool-file__x::before,
.tool-file__x::after {
  content: "";
  position: absolute;
  inset-block-start: 5px;
  inset-inline-start: -1px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.tool-file__x::after { transform: rotate(-45deg); }

/* The logo: one row, the picture, its name and size, and Remove. */
.tool-files--logo .tool-file {
  padding: 10px;
  border: 1px solid var(--tool-line-strong);
  border-radius: var(--radius-field, 14px);
}

.tool-files--logo .tool-file__thumb { width: 64px; height: 64px; }

.tool-drop:has(.tool-drop__input[aria-invalid="true"]) .tool-files--logo .tool-file { border-color: var(--tool-danger); box-shadow: 0 0 0 1px var(--tool-danger); }

/* Screenshots: a grid of pictures in their own shape, each with a round remove button on its corner. */
.tool-files--screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}

.tool-files--screenshots .tool-file { flex-direction: column; align-items: stretch; gap: 6px; }

.tool-files--screenshots .tool-file__thumb { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.tool-files--screenshots .tool-file__name { font-size: 0.8125rem; font-weight: 400; color: var(--color-text-secondary); }

.tool-files--screenshots .tool-file__size { display: none; }

.tool-files--screenshots .tool-file__remove {
  position: absolute;
  inset-block-start: -8px;
  inset-inline-end: -8px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tool-files--screenshots .tool-file__remove::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tool-files--screenshots .tool-file__x { color: var(--color-background); }

.tool-files--screenshots .tool-file__remove-text { display: none; }

.tool-files--screenshots .tool-file__remove:focus-visible { border-radius: 50%; }

/* The upload of the images, before the build starts: a thin ink bar and the share sent. */
.tool-upload { display: flex; flex-direction: column; gap: 8px; }

.tool-upload[hidden] { display: none; }

/* A native <progress>: the element is the track, the browser's own part is the fill (one rule per engine, since a
   rule naming both engines' parts is dropped by each). */
.tool-upload__track {
  display: block;
  inline-size: 100%;
  block-size: 8px;
  appearance: none;
  border: 0 solid;
  overflow: clip;
  border-radius: 9999px;
  background: var(--tool-line);
}

.tool-upload__track::-webkit-progress-bar { background: transparent; }

.tool-upload__track::-webkit-progress-value {
  border-radius: 9999px;
  background: var(--color-text);
  transition: inline-size 0.2s ease;
}

.tool-upload__track::-moz-progress-bar {
  border-radius: 9999px;
  background: var(--color-text);
}

.tool-upload__text {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.tool__features {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tool__features legend { padding: 0; margin-block-end: 10px; }

.tool__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* A feature is a pill with its own box: ink when ticked (black box, white check), outline when not. */
.tool-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 12px;
  border: 1px solid var(--tool-line-strong);
  border-radius: 9999px;
  background: var(--color-background);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tool-chip:hover { border-color: var(--color-text); }

.tool-chip__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
}

.tool-chip__box {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-text-secondary);
  border-radius: 6px;
  background: var(--color-background);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tool-chip__box::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--color-background);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.tool-chip:has(.tool-chip__input:checked) {
  border-color: var(--color-text);
  background: var(--color-card-background);
}

.tool-chip__input:checked + .tool-chip__box {
  border-color: var(--color-text);
  background: var(--color-text);
}

.tool-chip__input:checked + .tool-chip__box::after { transform: rotate(45deg) scale(1); }

.tool-chip:has(.tool-chip__input:focus-visible) {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-accent);
}

.tool__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card, 20px);
  background: var(--color-card-background);
}

.tool__consent label { padding-block-start: 1px; cursor: pointer; }

.tool__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: #000;
  cursor: pointer;
}

.tool__bot { min-height: 65px; }
.tool__bot:empty { min-height: 0; }

/* The alert stays rendered while empty, so a screen reader announces the words it receives; it takes no room then. */
.tool__message:not(:has(.tool__message-text:not(:empty))) {
  height: 0;
  margin-block-start: -24px;
  padding: 0;
  overflow: hidden;
}

.tool__message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-field, 14px);
  background: var(--tool-danger-soft);
  color: #000;
}

.tool__message-text { color: var(--tool-danger); font-weight: 500; }
.tool__message-text:empty,
.tool__message-meta:empty { display: none; }
.tool__message-meta { font-variant-numeric: tabular-nums; }

.tool__message-text::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--tool-danger);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: 1px;
}

.tool__build { width: 100%; }

.tool__build[aria-disabled="true"] { cursor: not-allowed; }
.tool__build[aria-disabled="true"]:not(.is-busy) { opacity: 0.5; }
.tool__build.is-busy { cursor: progress; }

.tool__spinner { display: none; }

.tool__build.is-busy .tool__spinner,
.tool-step.is-running .tool-step__mark::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: tool-spin 0.8s linear infinite;
}

@keyframes tool-spin { to { transform: rotate(360deg); } }

/* An orb (thinking-orbs.js) in place of the spinner, on the busy button and the running step; without it the spinner stays. */
.tool-orb { display: block; width: 20px; height: 20px; }

.tool__build.is-busy .tool__spinner.has-orb {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  animation: none;
}

.tool-step.is-running .tool-step__mark.has-orb::before { display: none; }

.tool__wait {
  margin-block-start: -12px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.tool__wait:empty { display: none; }

/* The way to the page that explains every step: quiet, under the build button and under the checklist. */
.tool__how { margin-block-start: 16px; text-align: center; }

.tool__how-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool__how-link svg { flex: none; width: 16px; height: 16px; }
[dir="rtl"] .tool__how-link svg { transform: scaleX(-1); }

/* ── The app, as soon as the tools service names it ── */

.tool-app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 6px 18px 6px 6px;
  border-radius: 9999px;
  background: var(--color-card-background);
  font-weight: 600;
  animation: tool-enter 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tool-app[hidden] { display: none; }

.tool-app__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-background);
  object-fit: cover;
}

.tool-app__icon[hidden] { display: none; }

.tool-app:not(:has(.tool-app__icon:not([hidden]))) { padding-inline-start: 18px; min-height: 44px; }

.tool-app__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Live progress: the checklist ── */

.tool-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px;
  padding: 8px;
  border-radius: var(--radius-card, 20px);
  background: var(--color-card-background);
  list-style: none;
}

.tool-step {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--color-text-secondary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tool-step.is-running {
  background: var(--color-background);
  color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tool-step.is-done { color: var(--color-text); }

.tool-step.is-failed { color: var(--tool-danger); background: var(--tool-danger-soft); }

.tool-step__mark {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--tool-line-strong);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tool-step.is-running .tool-step__mark { border-color: transparent; }

.tool-step.is-done .tool-step__mark {
  border-color: #000;
  background: #000;
  animation: tool-pop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.4);
}

.tool-step.is-done .tool-step__mark::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-block-start: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tool-step.is-failed .tool-step__mark {
  border-color: var(--tool-danger);
  background: var(--tool-danger);
}

.tool-step.is-failed .tool-step__mark::after {
  content: "\00d7";
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

@keyframes tool-pop {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}

.tool-step--skeleton .tool-step__bar {
  flex: 0 1 var(--w, 60%);
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--tool-line) 0%, var(--tool-line-strong) 50%, var(--tool-line) 100%);
  background-size: 200% 100%;
  animation: tool-shimmer 1.4s ease-in-out infinite;
}

@keyframes tool-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.tool__reconnecting::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: #9a5106;
  vertical-align: 1px;
}

/* A quiet way out of the progress screen: the build runs on, the address forgets it. */
.tool__leave { margin-block-start: 8px; text-align: center; }

.tool__quiet {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tool__quiet:hover { color: var(--color-text); }

/* ── Result: the Keep bar and the frame ── */

.tool__head--result { margin-block-end: 24px; }

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 16px;
}

.tool-bar__toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 9999px;
  background: var(--color-card-background);
}

.tool-bar__view {
  min-width: 96px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tool-bar__view[aria-pressed="true"] {
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tool-bar__view:focus-visible { box-shadow: 0 0 0 6px var(--color-accent); }

.tool-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

/* Keep, with a small muted line under it that says what keeping costs and what follows. */
.tool-bar__keep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-bar__note {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--color-text-secondary);
  text-align: center;
}

.tool-frame {
  position: relative;
  height: clamp(480px, 72vh, 860px);
  overflow: hidden;
  border: 1px solid var(--tool-line-strong);
  border-radius: var(--radius-card, 20px);
  background: var(--color-card-background);
}

.tool-frame__iframe {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
}

.tool-frame[data-view="phone"] { background: var(--color-card-background); }

.tool-frame[data-view="phone"] .tool-frame__iframe {
  inset-block-start: 16px;
  inset-inline-start: 50%;
  width: min(390px, calc(100% - 24px));
  height: calc(100% - 32px);
  border: 1px solid var(--tool-line-strong);
  border-radius: 28px;
  transform: translateX(-50%);
}

[dir="rtl"] .tool-frame[data-view="phone"] .tool-frame__iframe { transform: translateX(50%); }

/* ── Stop: the message, the two apps to choose from, and the way on ── */

.tool-picks {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tool-picks[hidden] { display: none; }

.tool-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px;
  border-radius: var(--radius-card, 20px);
  background: var(--color-card-background);
}

.tool-pick__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-background);
  object-fit: cover;
}

.tool-pick__text {
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  min-width: 0;
}

.tool-pick__name { font-weight: 600; }

.tool-pick__meta { font-size: 0.9375rem; color: var(--color-text-secondary); }

.tool__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tool__actions [hidden] { display: none; }

/* ── Phones ── */

@media (max-width: 599px) {
  .tool__head { margin-block-end: 24px; }
  .tool__lead { font-size: 1rem; }
  .tool-bar { flex-direction: column; align-items: stretch; }
  .tool-bar__toggle { align-self: center; }
  .tool-bar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-bar__keep { grid-column: 1 / -1; grid-row: 1; margin-block-end: 4px; }
  .tool-bar__keep .btn { width: 100%; }
  .tool-frame { height: 70vh; min-height: 440px; }
  .tool__actions .btn { width: 100%; }
  .tool-pick .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tool__screen.is-entering,
  .tool-app,
  .tool-step.is-done .tool-step__mark { animation: none; }

  .tool__build.is-busy .tool__spinner,
  .tool-step.is-running .tool-step__mark::before { animation: none; border-inline-end-color: currentColor; border-block-start-color: transparent; }

  .tool-step--skeleton .tool-step__bar { animation: none; background: var(--tool-line-strong); }

  .tool-tabs__tab,
  .tool-drop__zone { transition: none; }

  .tool-upload__track::-webkit-progress-value { transition: none; }
}
