@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --red: #e0282e;
  --red-top: #e8352f;
  --red-deep: #b91f25;
  --ink: #000;
  --paper: #fff;
  --silver: #ececec;
  --graphite: #5f5f5f;
  --green: #1f8a4c;

  --bg: var(--paper);
  --surface: var(--silver);
  --surface-hover: #e0e0e0;
  --text: var(--ink);
  --text-2: var(--graphite);
  --line: #d9d9d9;
  --tray-bg: var(--ink);
  --tray-text: var(--paper);

  --display: "Oswald", "Arial Narrow", sans-serif-condensed, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.875rem;
  --step-1: 1rem;
  --step-2: 1.25rem;
  --step-3: 1.5625rem;
  --step-4: 1.9375rem;
  --step-5: 2.4375rem;

  --radius-thumb: 12px;
  --radius-tile: 12px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 64px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: #1f1f1f;
    --surface-hover: #2b2b2b;
    --text: var(--paper);
    --text-2: #a8a8a8;
    --line: #333;
    --tray-bg: var(--paper);
    --tray-text: var(--ink);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.brand {
  display: block;
  border-radius: 8px;
}
.brand img {
  height: 30px;
  width: auto;
}

.search {
  justify-self: center;
  width: 100%;
  max-width: 640px;
  display: flex;
  height: 42px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 21px 0 0 21px;
  background: var(--bg);
  padding: 0 18px;
  font-size: var(--step-1);
}
.search input::placeholder {
  color: var(--text-2);
}
.search input:focus-visible {
  outline: none;
  border-color: var(--text);
}
.search button {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: 0 21px 21px 0;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.search button:hover {
  background: var(--surface-hover);
}

.nav-library {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px 0 12px;
  border-radius: 21px;
  text-decoration: none;
  font-weight: 600;
}
.nav-library:hover,
.nav-library[aria-current="page"] {
  background: var(--surface);
}
.nav-library .count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.nav-library .count:empty {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 6px 0 3px;
  border: 0;
  border-radius: 21px;
  background: transparent;
}
.nav-account:hover {
  background: var(--surface);
}
.nav-avatar,
.account-avatar {
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
}
.nav-avatar {
  width: 36px;
  height: 36px;
}
.nav-account:hover .nav-avatar {
  background: var(--surface-hover);
}
.nav-avatar img,
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-avatar .icon {
  width: 22px;
  height: 22px;
}
.nav-credits,
.account-tile {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, var(--red-top), var(--red-deep));
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav-credits {
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 1.0625rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.nav-credits:empty {
  display: none;
}
.nav-account.is-empty .nav-credits,
.account-tile.is-empty {
  background: var(--surface);
  color: var(--text-2);
  box-shadow: none;
}
.nav-account.is-empty:hover .nav-credits {
  background: var(--surface-hover);
}
.nav-credits.is-changed {
  animation: credit-tick 0.35s ease-out;
}
@keyframes credit-tick {
  from {
    transform: translateY(-5px);
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-credits.is-changed {
    animation: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto auto;
    grid-template-areas: "brand nav" "search search";
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
    justify-content: space-between;
  }
  .brand {
    grid-area: brand;
  }
  .nav {
    grid-area: nav;
  }
  .search {
    grid-area: search;
    max-width: none;
  }
}

/* Buttons */

.tile,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-tile);
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The primary action borrows the red "Mova" tile from the logo. */
.tile {
  background: linear-gradient(180deg, var(--red-top), var(--red-deep));
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.tile:hover {
  background: linear-gradient(180deg, var(--red), #a51b20);
}
.tile:active {
  transform: translateY(1px);
}

.btn {
  background: var(--surface);
  color: var(--text);
}
.btn:hover {
  background: var(--surface-hover);
}

.tile:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.link-btn {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-btn:hover {
  background: var(--surface);
}

/* Layout */

main {
  flex: 1;
  width: 100%;
  padding: 8px var(--gutter) 140px;
}

.page-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-5);
  line-height: 1.1;
  margin: 24px 0 8px;
}

.lead {
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 28px;
}

/* Chips */

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  background: var(--bg);
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  font-size: var(--step-0);
  font-weight: 600;
}
.chip:hover {
  background: var(--surface-hover);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
@media (max-width: 680px) {
  .chips {
    top: 0;
    position: relative;
  }
}

.results-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-3);
  margin: 8px 0 20px;
}

/* Video grid */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 18px;
}
@media (max-width: 1280px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.card {
  position: relative;
  min-width: 0;
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--red);
  transition: box-shadow 0.15s;
  pointer-events: none;
}
.card.is-picked .thumb::after {
  box-shadow: inset 0 0 0 4px var(--red);
}

.badge {
  position: absolute;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
}
.badge-duration {
  right: 8px;
  bottom: 8px;
}
.badge-quality {
  left: 8px;
  top: 8px;
  background: var(--red);
}

.pick {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.pick .icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
  opacity: 0;
}
.pick:hover .icon {
  opacity: 0.6;
}
.pick[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}
.pick[aria-pressed="true"] .icon {
  opacity: 1;
}
@media (hover: hover) {
  .pick {
    opacity: 0;
    transition: opacity 0.12s;
  }
  .card:hover .pick,
  .card:focus-within .pick,
  .pick[aria-pressed="true"],
  body.is-selecting .pick {
    opacity: 1;
  }
}

.card-body {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}
.card-text {
  flex: 1;
  min-width: 0;
}
.card-title {
  margin: 0 0 4px;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title button {
  all: unset;
  cursor: pointer;
}
.card-title button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}
.card-meta {
  margin: 0;
  color: var(--text-2);
  font-size: var(--step-0);
  line-height: 1.45;
}
.card-meta span + span {
  margin-left: 10px;
}
.card-meta .saved {
  color: var(--green);
  font-weight: 600;
}

.skeleton .thumb {
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton .bar {
  height: 14px;
  border-radius: 7px;
  background: var(--surface);
  margin-top: 12px;
  width: 90%;
}
.skeleton .bar + .bar {
  width: 55%;
  margin-top: 8px;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.sentinel {
  height: 1px;
}

/* States: offline, empty, error */

.state {
  max-width: 560px;
  padding: 10vh 0 6vh;
}
.state h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-5);
  line-height: 1.1;
  margin: 0 0 12px;
}
.state p {
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: var(--step-2);
  line-height: 1.45;
}
.state > .tile,
.state > .btn {
  margin: 0 10px 10px 0;
}

/* Selection tray: the one animated element. */

.tray {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  border-radius: 18px;
  background: var(--tray-bg);
  color: var(--tray-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.32s;
}
.tray.is-open {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.tray-stack {
  position: relative;
  width: 136px;
  height: 46px;
}
.tray-stack img {
  position: absolute;
  top: 5px;
  width: 64px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--tray-bg);
  transform-origin: 50% 100%;
}
.tray-stack img:nth-child(1) {
  left: 0;
  transform: rotate(-7deg);
}
.tray-stack img:nth-child(2) {
  left: 24px;
  transform: rotate(-2deg);
}
.tray-stack img:nth-child(3) {
  left: 48px;
  transform: rotate(3deg);
}
.tray-stack img:nth-child(4) {
  left: 72px;
  transform: rotate(8deg);
}

.tray-text {
  min-width: 0;
}
.tray-count {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.tray-sub {
  margin: 0;
  font-size: var(--step-0);
  opacity: 0.72;
}
.tray-sub .link-btn {
  color: inherit;
  padding: 0;
  margin-left: 10px;
  font-size: inherit;
}

.fly {
  position: fixed;
  z-index: 40;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 560px) {
  .tray {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }
  .tray-stack {
    width: 90px;
  }
  .tray-stack img:nth-child(n + 3) {
    display: none;
  }
  .tray .tile {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Dialogs */

dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.dialog-media {
  aspect-ratio: 16 / 9;
  background: #000;
}
.dialog-media iframe,
.dialog-media video {
  width: 100%;
  height: 100%;
  border: 0;
}
.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: start;
  padding: 18px 22px 22px;
}
.dialog-title {
  margin: 0 0 4px;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.3;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dialog-actions .dialog-close {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-tile);
  background: var(--surface);
}
.dialog-actions .dialog-close:hover {
  background: var(--surface-hover);
}
@media (max-width: 640px) {
  .dialog-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .dialog-actions {
    justify-content: stretch;
  }
  .dialog-actions > * {
    flex: 1;
  }
}

/* Account */

dialog.account {
  width: min(440px, calc(100% - 24px));
  border: 1px solid var(--line);
}
.account-body {
  padding: 18px 20px 20px;
}
.account-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  width: 44px;
  height: 44px;
  font-size: var(--step-2);
}
.account-avatar .icon {
  width: 26px;
  height: 26px;
}
.account-title {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.account-sub {
  margin: 0;
  color: var(--text-2);
  font-size: var(--step-0);
  overflow-wrap: anywhere;
}
.account-balance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  margin-top: 22px;
}
.account-tile {
  grid-row: span 2;
  min-width: 96px;
  height: 72px;
  margin: 0;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 2.75rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.account-left {
  align-self: end;
  margin: 0;
  font-weight: 700;
}
.account-reset {
  align-self: start;
  margin: 0;
  color: var(--text-2);
  font-size: var(--step-0);
}
.account-costs {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: var(--step-0);
}
.account-pixr {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.account-pixr-title {
  margin: 0 0 2px;
  font-size: var(--step-1);
  font-weight: 700;
}
.account-pixr-text {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: var(--step-0);
}
.account-frame {
  width: 100%;
  height: 340px;
  border: 0;
  background: transparent;
  transition: opacity 0.15s;
}
.account-frame.is-loading {
  opacity: 0;
}

/* Download page */

.dl-quality {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 20px;
}
.dl-quality-label {
  font-weight: 600;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
}
.segmented button {
  border: 0;
  background: transparent;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: var(--step-0);
}
.segmented button:hover {
  background: var(--surface-hover);
}
.segmented button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
@media (max-width: 560px) {
  .segmented {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }
  .segmented button {
    flex: 1;
    padding: 0 4px;
    font-size: var(--step--1);
  }
}

.dl-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 1040px;
}
.dl-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.dl-row:last-child {
  border-bottom: 1px solid var(--line);
}
.dl-row .thumb {
  cursor: default;
}
.dl-row .card-title {
  font-size: var(--step-1);
}
.dl-pick select {
  height: 40px;
  min-width: 132px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
}
.dl-pick .size {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: var(--step--1);
  text-align: right;
}

.dl-status {
  margin-top: 10px;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--text-2);
  min-height: 1.45em;
}
.dl-status.is-error {
  color: var(--red);
}
.dl-status.is-done {
  color: var(--green);
}
.dl-status a,
.dl-status .link-btn {
  margin-left: 10px;
}
.dl-status .link-btn {
  padding: 0;
  color: var(--text);
}
.dl-cost {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: var(--step-0);
}
.dl-cost .link-btn {
  padding: 0;
  color: var(--text);
}
.progress {
  height: 6px;
  border-radius: 3px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 8px;
  max-width: 420px;
}
.progress[hidden] {
  display: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  border-radius: inherit;
  transition: width 0.4s;
}
.progress.is-done span {
  background: var(--green);
}

@media (max-width: 760px) {
  .dl-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    grid-template-areas: "thumb text remove" "pick pick pick";
    gap: 12px 14px;
  }
  .dl-row .thumb {
    grid-area: thumb;
  }
  .dl-row .dl-text {
    grid-area: text;
  }
  .dl-row .dl-pick {
    grid-area: pick;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .dl-row .dl-pick .size {
    margin: 0;
  }
  .dl-row .dl-remove {
    grid-area: remove;
    align-self: start;
  }
}

.dl-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 18px 24px;
  max-width: 1040px;
}
.dl-action p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: var(--step-0);
}
.dl-action .tile,
.dl-action .btn {
  width: 100%;
}
@media (max-width: 640px) {
  .dl-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Library */

.lib-usage {
  color: var(--text-2);
  margin: 0 0 28px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  margin: 0 0 24px;
  font-weight: 600;
}

.confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: var(--step-0);
  font-weight: 600;
}
.confirm > span {
  flex-basis: 100%;
}
.confirm .btn,
.confirm .tile {
  min-height: 34px;
  padding: 0 14px;
  font-size: var(--step-1);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 60;
  transform: translate(-50%, -150%);
  max-width: calc(100% - 24px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: transform 0.25s;
}
.toast.is-on {
  transform: translate(-50%, 0);
}

/* Footer */

.foot {
  padding: 28px var(--gutter) 120px;
  color: var(--text-2);
  font-size: var(--step-0);
  border-top: 1px solid var(--line);
}
.foot p {
  margin: 0 0 6px;
  max-width: 72ch;
}
.foot a {
  margin-right: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
