:root {
  color-scheme: dark;
  --page: #08090a;
  --page-soft: #0d0f10;
  --surface: #151718;
  --surface-raised: #1c1e20;
  --surface-soft: #111314;
  --line: #292c2e;
  --line-soft: #1d2022;
  --ink: #f7f7f5;
  --muted: #96989c;
  --muted-dark: #686b70;
  --red: #ff3035;
  --red-strong: #ff2027;
  --red-soft: #361719;
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
  --nav-height: calc(78px + var(--safe-bottom));
  font-family: "Onest", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--page); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 2px solid rgba(255, 48, 53, .82);
  outline-offset: 2px;
}

.material-symbols-rounded {
  font-size: 24px;
  font-variation-settings: "opsz" 24, "wght" 430, "FILL" 0, "GRAD" 0;
}
.ambient-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .84;
  pointer-events: none;
  will-change: contents;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
}
#product { min-height: 100vh; }
.view {
  min-height: 100vh;
  padding: 24px 22px calc(var(--nav-height) + 26px);
}
.view.detail-view { padding-top: 18px; }

.center-state {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}
.center-state h1 { margin: 20px 0 7px; font-size: 25px; }
.center-state p { max-width: 290px; margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.state-icon { font-size: 48px; color: var(--muted); }
.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .82s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.screen-header, .detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-header { min-height: 80px; padding-bottom: 12px; }
.screen-header h1, .detail-header h1 {
  margin: 0;
  font-size: clamp(36px, 9.5vw, 44px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}
.detail-header h1 {
  min-width: 0;
  overflow: hidden;
  font-size: 25px;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eyebrow {
  display: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-actions { display: flex; gap: 10px; }
.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(28, 30, 32, .88);
}
.icon-button.bare { border-color: transparent; background: transparent; }
.icon-button.accent-button { border-color: var(--red); background: var(--red); color: #fff; }
.create-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(28, 30, 32, .88);
  color: var(--red);
  font-weight: 600;
}
.text-button, .quiet-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 600;
}

.search-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(22, 24, 25, .92);
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.search-field input::placeholder { color: #777a7e; }
.compact-search { margin-top: 24px; }

.active-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 40px;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  margin-top: 16px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(22, 24, 25, .95);
}
.active-thumb {
  width: 44px;
  height: 44px;
  border: 3px solid var(--red);
  border-radius: 50%;
  object-fit: cover;
}
.active-copy { min-width: 0; }
.active-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.active-progress { grid-column: 2 / 4; height: 5px; overflow: hidden; border-radius: 10px; background: #303234; }
.active-progress span { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.progress-value { color: var(--red); font-size: 18px; font-weight: 700; }
.active-pause {
  display: grid;
  grid-column: 4;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #26282a;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 0;
  border-block: 1px solid var(--line-soft);
  background: transparent;
}
.filter-row {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip, .layout-button, .sort-button {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.filter-chip { flex: 0 0 auto; padding: 0 18px; color: var(--muted); }
.filter-chip.active { border-color: var(--red); background: var(--red); color: #fff; font-weight: 600; }
.layout-button { display: grid; flex: 0 0 43px; width: 43px; padding: 0; place-items: center; }

.media-list { padding-top: 3px; }
.media-row {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}
.media-row.selecting { grid-template-columns: 30px 124px minmax(0, 1fr); }
.media-row.selected {
  margin-inline: -12px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 48, 53, .45);
  border-radius: 18px;
  background: rgba(77, 23, 25, .32);
}
.media-thumb-wrap { position: relative; min-width: 0; }
.media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-raised);
}
.duration-chip, .kind-chip {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(7, 9, 10, .86);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.kind-chip { font-size: 17px; }
.media-copy { min-width: 0; }
.media-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.media-copy p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.media-copy .status-error { color: var(--red); }
.row-action {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}
.select-circle {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 2px solid #f4f4f5;
  border-radius: 50%;
  background: rgba(7, 9, 10, .62);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.selected .select-circle { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 3px rgba(255, 48, 53, .2); }
.select-circle .material-symbols-rounded { font-size: 18px; color: #fff; }

.media-list.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}
.media-list.grid .media-row {
  display: block;
  min-height: 0;
  padding: 0 0 10px;
  border: 0;
}
.media-list.grid .media-row.selected { margin: 0; padding: 8px; }
.media-list.grid .media-thumb { aspect-ratio: 1; border-radius: 15px; }
.media-list.grid .media-copy { padding-top: 10px; }
.media-list.grid .media-copy h3 { font-size: 15px; }
.media-list.grid .row-action { position: absolute; right: 4px; bottom: 5px; }
.media-list.grid .media-row.selecting .select-circle { position: absolute; z-index: 3; top: 10px; left: 10px; }

.empty-state {
  display: grid;
  min-height: 48vh;
  place-content: center;
  justify-items: center;
  padding: 38px;
  text-align: center;
}
.empty-state > .material-symbols-rounded { font-size: 48px; color: var(--muted-dark); }
.empty-state h2 { margin: 18px 0 8px; font-size: 21px; }
.empty-state p { max-width: 300px; margin: 0 0 22px; color: var(--muted); line-height: 1.55; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.collections-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.collection-view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.collection-view-toggle button {
  display: grid;
  width: 48px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.collection-view-toggle button.active { background: var(--red); color: #fff; }
.collection-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  text-align: left;
}
.collection-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 1.24;
  gap: 2px;
  overflow: hidden;
  background: var(--surface-raised);
}
.collection-preview img { width: 100%; height: 100%; object-fit: cover; }
.collection-preview.preview-1 img { grid-area: 1 / 1 / 3 / 3; }
.collection-preview.preview-2 img:first-child { grid-area: 1 / 1 / 3 / 2; }
.collection-preview.preview-2 img:last-child { grid-area: 1 / 2 / 3 / 3; }
.collection-preview.preview-3 img:first-child { grid-area: 1 / 1 / 3 / 2; }
.collection-card-copy { padding: 14px; }
.collection-card h3 { overflow: hidden; margin: 0; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.collection-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.collections-grid.list { display: block; }
.collections-grid.list .collection-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 34px;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}
.collections-grid.list .collection-preview { aspect-ratio: 1.45; border-radius: 12px; }
.collection-more { display: none; color: var(--muted); }
.collections-grid.list .collection-more { display: block; }

.detail-header { min-height: 66px; gap: 10px; }
.collection-hero { padding: 28px 0 0; }
.collection-cover {
  position: relative;
  width: min(100%, 420px);
  height: 188px;
  margin: 0 auto;
  background: transparent;
}
.collection-cover img {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 74%;
  height: 158px;
  border: 1px solid #45484a;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .38);
}
.collection-cover img:nth-child(1) { transform: translateX(-70%) rotate(-5deg); }
.collection-cover img:nth-child(2) { z-index: 3; top: 0; transform: translateX(-50%); border-color: #d9d9d9; }
.collection-cover img:nth-child(3) { z-index: 2; transform: translateX(-30%) rotate(5deg); }
.collection-cover img:only-child { z-index: 3; top: 0; transform: translateX(-50%); }
.collection-cover.empty { display: grid; place-content: center; border-radius: 23px; background: var(--surface); }
.collection-hero > p { margin: 18px 2px; color: var(--muted); }
.hero-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.primary-button, .secondary-button, .cancel-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 600;
}
.primary-button { border: 1px solid var(--red); background: var(--red); color: #fff; }
.secondary-button { border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); }
.primary-button.wide { width: 100%; }
.primary-button:disabled, .secondary-button:disabled { opacity: .45; }
.helper-copy { margin: 8px 5px 0 !important; font-size: 12px; line-height: 1.45; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 4px; }
.sort-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; }
.sort-button .chevron { color: var(--muted); }
.collection-items { padding-top: 4px; }
.collection-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  border-bottom: 1px solid var(--line-soft);
}
.collection-item img { width: 70px; height: 70px; border-radius: 11px; object-fit: cover; }
.collection-item h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.collection-item p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.reorder-actions { display: flex; gap: 1px; }
.reorder-actions button { display: grid; width: 36px; height: 42px; padding: 0; place-items: center; border: 0; background: transparent; color: var(--muted); }

.clips-header { min-height: 80px; }
.clips-hero {
  padding: 22px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(19, 21, 22, .94);
  text-align: center;
}
.clip-fan { position: relative; width: 100%; height: 190px; margin-bottom: 13px; }
.clip-fan img {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 63%;
  height: 150px;
  border: 1px solid #4a4d50;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 15px 28px rgba(0, 0, 0, .35);
}
.clip-fan img:nth-child(1) { transform: translateX(-69%) rotate(-5deg); }
.clip-fan img:nth-child(2) { z-index: 2; top: 3px; transform: translateX(-50%); border-color: #e8e8e8; }
.clip-fan img:nth-child(3) { transform: translateX(-31%) rotate(5deg); }
.clips-hero h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.clips-hero p { margin: 7px 0 18px; color: var(--muted); }
.recent-clips { padding-top: 30px; }
.recent-clips > h2 { margin: 0 0 12px; font-size: 20px; }
.clips-list { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(19, 21, 22, .9); }
.clip-job {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.clip-job:last-child { border-bottom: 0; }
.clip-job img { width: 132px; aspect-ratio: 16/10; border-radius: 12px; object-fit: cover; }
.clip-job h3 { margin: 0; font-size: 16px; }
.clip-job p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.clip-job .processing { color: var(--red); }
.empty-inline { padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: var(--nav-height);
  padding: 9px max(12px, calc((100vw - 560px) / 2 + 12px)) var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(14, 16, 17, .96);
  backdrop-filter: blur(18px);
}
.nav-item {
  display: grid;
  min-width: 0;
  place-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #73767a;
  font-size: 11px;
}
.nav-item .material-symbols-rounded { font-size: 29px; }
.nav-item.active { color: var(--red); }
.nav-item:focus-visible {
  outline: 0;
  box-shadow: none;
}
.nav-item:focus-visible .material-symbols-rounded {
  filter: drop-shadow(0 0 7px rgba(255, 48, 53, .62));
}

.bottom-sheet {
  position: fixed;
  z-index: 40;
  right: max(0px, calc((100vw - 560px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 560px) / 2));
  padding: 8px 20px calc(18px + var(--safe-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #202224;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
}
.sheet-grabber { width: 44px; height: 4px; margin: 0 auto 11px; border-radius: 5px; background: #5d6064; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; }
.sheet-heading h2, .action-dialog h2 { margin: 4px 0 15px; font-size: 20px; }
.action-dialog h2:focus { outline: 0; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.bottom-sheet > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
body.batch-open .bottom-nav { opacity: 0; pointer-events: none; }
body.batch-open .view { padding-bottom: 260px; }

.action-dialog {
  width: min(calc(100% - 18px), 540px);
  max-height: 86vh;
  margin: auto auto 0;
  padding: 10px 20px calc(18px + var(--safe-bottom));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: #202224;
  color: var(--ink);
}
.action-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.dialog-actions { display: grid; gap: 7px; }
.dialog-action {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
}
.dialog-action.danger { color: #ff6b6f; }
.cancel-button { width: 100%; margin-top: 9px; border: 0; background: transparent; color: var(--muted); }
.dialog-field { display: grid; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.dialog-field input {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.collection-picker { display: grid; gap: 8px; }
.quick-create {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  width: 100%;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 48, 53, .52);
  border-radius: 14px;
  background: rgba(255, 48, 53, .1);
  color: var(--ink);
  text-align: left;
}
.quick-create > .material-symbols-rounded:first-child { color: var(--red); font-size: 27px; }
.quick-create strong, .quick-create small { display: block; }
.quick-create strong { font-size: 15px; }
.quick-create small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.quick-create-arrow { color: var(--muted); }
.picker-row { display: flex; width: 100%; min-height: 60px; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.picker-row .material-symbols-rounded { color: var(--red); }
.picker-row span:last-child { color: var(--muted); font-size: 12px; }
.dialog-helper { margin: -8px 0 14px; color: var(--muted); font-size: 13px; }
.dialog-search {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.dialog-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.clip-picker-list { display: grid; max-height: min(54vh, 500px); gap: 8px; overflow-y: auto; }
.clip-picker-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.clip-picker-row.selected { border-color: rgba(255, 48, 53, .72); background: rgba(77, 23, 25, .42); }
.clip-picker-row:focus-visible { outline-color: rgba(255, 255, 255, .72); }
.clip-picker-row img { width: 76px; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; }
.clip-picker-copy { min-width: 0; }
.clip-picker-copy strong, .clip-picker-copy small { display: block; }
.clip-picker-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.clip-picker-copy small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.clip-picker-choice {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #f4f4f5;
  border-radius: 50%;
  background: rgba(7, 9, 10, .62);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.clip-picker-choice .material-symbols-rounded { visibility: hidden; font-size: 18px; color: #fff; }
.clip-picker-row.selected .clip-picker-choice { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 3px rgba(255, 48, 53, .2); }
.clip-picker-row.selected .clip-picker-choice .material-symbols-rounded { visibility: visible; }
.clip-picker-dialog .primary-button, .collection-file-picker-dialog .primary-button { margin-top: 14px; }
.clip-picker-dialog .primary-button:disabled, .collection-file-picker-dialog .primary-button:disabled { opacity: .38; }

.toast {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: calc(var(--nav-height) + 18px);
  left: 20px;
  max-width: 520px;
  margin: auto;
  padding: 13px 16px;
  border: 1px solid #3a3d40;
  border-radius: 14px;
  background: #26282a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  text-align: center;
}

@media (max-width: 390px) {
  .view { padding-inline: 16px; }
  .toolbar { margin-inline: 0; padding-inline: 0; }
  .screen-header h1 { font-size: 42px; }
  .media-row { grid-template-columns: 126px minmax(0, 1fr) 38px; gap: 12px; }
  .media-row.selecting { grid-template-columns: 28px 104px minmax(0, 1fr); }
  .hero-actions { grid-template-columns: 1fr; }
  .clip-job { grid-template-columns: 112px minmax(0, 1fr) 26px; gap: 10px; }
  .clip-job img { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
