:root {
  color-scheme: light;
  --ink: #17212b;
  --ink-soft: #4d5c69;
  --ink-faint: #74818d;
  --surface: #ffffff;
  --surface-subtle: #f5f7f8;
  --surface-muted: #edf1f3;
  --line: #d9e0e4;
  --line-strong: #bcc7cd;
  --blue: #176b87;
  --blue-dark: #0c526c;
  --blue-soft: #e5f2f6;
  --green: #25754c;
  --green-soft: #e8f4ec;
  --amber: #9b5d06;
  --amber-soft: #fff5dd;
  --red: #ad3434;
  --red-soft: #fbeaea;
  --shadow: 0 10px 32px rgb(23 33 43 / 0.12);
  --focus: 0 0 0 3px rgb(23 107 135 / 0.2);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--surface);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 64px;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
}

.brand-mark svg,
.brand-mark i {
  width: 18px;
  height: 18px;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-count {
  color: #bfc9cf;
  font-size: 13px;
  white-space: nowrap;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button svg,
.button i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.button-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-secondary:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: var(--ink-faint);
}

.download-button {
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.24);
  font-size: 14px;
}

.download-button:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.42);
}

.download-button.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.icon-button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.icon-button svg,
.icon-button i {
  width: 18px;
  height: 18px;
}

.icon-button.is-spinning svg,
.icon-button.is-spinning i,
.is-spinning > svg,
.is-spinning > i {
  animation: spin 800ms linear infinite;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.submit-section {
  padding: 38px 0 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.submit-heading {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  font-size: 34px;
  font-weight: 750;
}

h2 {
  font-size: 20px;
  font-weight: 750;
}

.provider-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.provider-list > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.provider-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.provider-dot-google {
  background: #e14938;
  box-shadow: 5px 0 0 #f7bd21, 10px 0 0 #3b82d0;
  margin-right: 10px;
}

.provider-dot-icloud {
  background: #369fe7;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.65fr) minmax(190px, 0.75fr) auto;
  align-items: start;
  gap: 14px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.optional {
  margin-left: 4px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 500;
}

.field input,
.search-control input,
.select-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field > input {
  padding: 9px 12px;
}

.field input:hover,
.search-control:hover,
.select-control:hover {
  border-color: var(--ink-faint);
}

.field input:focus,
.search-control:focus-within,
.select-control:focus-within {
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.field input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(173 52 52 / 0.12);
}

.input-wrap {
  position: relative;
}

.input-wrap > svg,
.input-wrap > i {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}

.input-wrap input {
  padding: 9px 12px 9px 39px;
}

.field-error {
  min-height: 18px;
  margin: 3px 0 -21px;
  color: var(--red);
  font-size: 12px;
}

.submit-button {
  min-width: 136px;
  min-height: 44px;
  margin-top: 25px;
}

.form-notes {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: 17px;
}

.consent-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 13px;
}

.consent-control input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.consent-control:has(input:focus-visible) {
  border-radius: 4px;
  box-shadow: var(--focus);
}

.import-warning {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--amber);
  font-size: 13px;
}

.import-warning svg,
.import-warning i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 -10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-success {
  color: var(--green);
}

.overview {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(180px, auto);
  margin: 0;
}

.overview-list > div {
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.overview-list > div:first-child {
  padding-left: 0;
}

.overview-list > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.overview-list dt {
  margin-bottom: 2px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.overview-list dd {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.overview-list .overview-update {
  text-align: right;
}

.overview-list .overview-update dd {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.content-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: 0;
}

.compact-heading {
  align-items: center;
  margin-bottom: 16px;
}

.heading-with-count {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.count-badge {
  min-width: 25px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.status-list {
  border-top: 1px solid var(--line);
}

.status-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.status-main,
.status-progress-wrap {
  min-width: 0;
}

.status-provider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.provider-icon.is-google {
  color: #a54432;
  background: #fbede8;
}

.provider-icon svg,
.provider-icon i {
  width: 17px;
  height: 17px;
}

.status-label {
  min-width: 0;
}

.status-name,
.status-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-name {
  font-weight: 700;
}

.status-url {
  color: var(--ink-faint);
  font-size: 12px;
}

.status-timing {
  color: var(--ink-soft);
  font-size: 13px;
}

.status-timing strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: capitalize;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.status-pill.is-processing,
.status-pill.is-pending {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.status-pill.is-processing::before {
  background: var(--blue);
  animation: pulse 1.3s ease-in-out infinite;
}

.status-pill.is-pending::before {
  background: var(--blue);
}

.status-pill.is-completed {
  color: var(--green);
  background: var(--green-soft);
}

.status-pill.is-completed::before {
  background: var(--green);
}

.status-pill.is-failed {
  color: var(--red);
  background: var(--red-soft);
}

.status-pill.is-failed::before {
  background: var(--red);
}

.status-pill.is-partial {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-pill.is-partial::before {
  background: var(--amber);
}

.status-progress-wrap {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.status-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-muted);
}

.status-progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 300ms ease;
}

.status-progress.is-indeterminate > span {
  width: 34%;
  animation: indeterminate 1.35s ease-in-out infinite;
}

.status-progress-label {
  min-width: 54px;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.status-remove {
  width: 34px;
  height: 34px;
}

.status-skeleton {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0, rgb(237 241 243 / 0.9) 50%, transparent 100%);
  background-size: 220px 100%;
  animation: shimmer 1.3s linear infinite;
}

.inline-state,
.gallery-state {
  color: var(--ink-soft);
}

.state-message {
  padding: 28px 16px;
  text-align: center;
}

.state-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface-muted);
}

.state-icon.is-error {
  color: var(--red);
  background: var(--red-soft);
}

.state-icon svg,
.state-icon i {
  width: 20px;
  height: 20px;
}

.state-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.state-detail {
  margin: 3px 0 0;
  font-size: 13px;
}

.state-message .button {
  min-height: 36px;
  margin-top: 14px;
  padding: 7px 12px;
  font-size: 13px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-control,
.select-control {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-control {
  width: min(260px, 32vw);
}

.search-control > svg,
.search-control > i,
.select-control > svg,
.select-control > i {
  position: absolute;
  z-index: 1;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search-control input,
.select-control select {
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-control input {
  padding: 7px 35px 7px 34px;
}

.select-control select {
  width: auto;
  min-width: 150px;
  padding: 7px 30px 7px 34px;
  appearance: auto;
}

.clear-search {
  position: absolute;
  z-index: 2;
  right: 4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
}

.clear-search:hover {
  background: var(--surface-muted);
}

.clear-search svg,
.clear-search i {
  width: 15px;
  height: 15px;
}

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

.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.media-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 7px 20px rgb(23 33 43 / 0.1);
  transform: translateY(-1px);
}

.media-open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-card:hover .media-thumb img {
  transform: scale(1.025);
}

.media-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
}

.media-thumb-placeholder svg,
.media-thumb-placeholder i {
  width: 28px;
  height: 28px;
}

.media-kind {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: rgb(23 33 43 / 0.7);
  backdrop-filter: blur(5px);
}

.media-kind svg,
.media-kind i {
  width: 15px;
  height: 15px;
}

.media-caption {
  min-width: 0;
  padding: 10px 11px 11px;
}

.media-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-subtitle {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.media-subtitle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-state:empty {
  display: none;
}

.gallery-state:has(.gallery-skeleton) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-skeleton {
  aspect-ratio: 4 / 3.65;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--surface-muted) 15%, #f8fafb 35%, var(--surface-muted) 55%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.lightbox {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  height: min(850px, calc(100vh - 40px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #11171c;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}

.lightbox::backdrop {
  background: rgb(7 11 14 / 0.84);
  backdrop-filter: blur(3px);
}

.lightbox-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 11px 9px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.lightbox-title-wrap {
  min-width: 0;
}

.lightbox-title-wrap h2 {
  max-width: min(62vw, 700px);
  overflow: hidden;
  color: #f6f8f9;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-position {
  margin: 0 0 1px;
  color: #98a6af;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.lightbox-actions {
  display: flex;
  gap: 7px;
}

.icon-button-dark {
  color: #e9eef1;
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.16);
}

.icon-button-dark:hover:not(:disabled) {
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
}

.lightbox-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  background: #0a0e12;
}

.lightbox-media {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lightbox-media img,
.lightbox-media video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-media video {
  width: 100%;
  height: 100%;
}

.lightbox-loading,
.lightbox-error {
  display: grid;
  place-items: center;
  gap: 9px;
  color: #c7d0d5;
  font-size: 13px;
  text-align: center;
}

.lightbox-error a {
  color: #a9def0;
}

.lightbox-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgb(255 255 255 / 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.lightbox-nav {
  width: 44px;
  height: 58px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}

.lightbox-nav:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.13);
}

.lightbox-nav svg,
.lightbox-nav i {
  width: 26px;
  height: 26px;
}

.media-meta {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 12px 18px;
  overflow-x: auto;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.media-meta > div {
  min-width: 130px;
  padding: 0 18px;
  border-right: 1px solid rgb(255 255 255 / 0.12);
}

.media-meta > div:first-child {
  padding-left: 0;
}

.media-meta > div:last-child {
  border-right: 0;
}

.media-meta dt {
  color: #8e9ba4;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.media-meta dd {
  max-width: 220px;
  margin: 2px 0 0;
  overflow: hidden;
  color: #e7ecef;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-region {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #34434f;
  border-radius: 6px;
  color: #fff;
  background: #202c35;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in 180ms ease-out;
}

.toast.is-error {
  border-color: #814242;
  background: #562c2c;
}

.toast svg,
.toast i {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
}

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

@keyframes pulse {
  50% { opacity: 0.35; }
}

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

@keyframes indeterminate {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  }

  .submit-button {
    grid-column: 1 / -1;
    width: fit-content;
    margin-top: -2px;
  }

  .status-item {
    grid-template-columns: minmax(210px, 1.2fr) minmax(150px, 0.8fr) minmax(150px, 1fr) auto;
    gap: 12px;
  }

  .gallery,
  .gallery-state:has(.gallery-skeleton) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .header-count {
    display: none;
  }

  .submit-section {
    padding-top: 28px;
  }

  .submit-heading,
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-list {
    justify-content: flex-start;
  }

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

  .submit-button {
    grid-column: auto;
    width: 100%;
    margin-top: 0;
  }

  .field-error {
    margin-bottom: 0;
  }

  .form-notes {
    flex-direction: column;
  }

  .overview-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .overview-list > div,
  .overview-list > div:first-child,
  .overview-list > div:last-child {
    padding: 0 14px;
  }

  .overview-list > div:nth-child(odd) {
    padding-left: 0;
  }

  .overview-list > div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .overview-list .overview-update {
    text-align: left;
  }

  .status-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 14px 0;
  }

  .status-timing {
    grid-column: 1;
  }

  .status-progress-wrap {
    grid-column: 1 / -1;
  }

  .status-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-toolbar {
    gap: 14px;
  }

  .gallery-controls {
    width: 100%;
  }

  .search-control {
    width: auto;
    flex: 1 1 180px;
  }

  .select-control {
    flex: 0 1 auto;
  }

  .select-control select {
    min-width: 132px;
  }

  .gallery,
  .gallery-state:has(.gallery-skeleton) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .lightbox-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .lightbox-nav {
    width: 36px;
    height: 52px;
  }
}

@media (max-width: 520px) {
  .app-header,
  .header-inner {
    min-height: 58px;
  }

  .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .download-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .download-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  h1 {
    font-size: 26px;
  }

  .provider-list {
    display: grid;
    gap: 5px;
  }

  .overview-list dd {
    font-size: 18px;
  }

  .gallery-controls {
    flex-wrap: wrap;
  }

  .search-control {
    flex-basis: calc(100% - 47px);
  }

  .select-control {
    order: 3;
    width: 100%;
  }

  .select-control select {
    width: 100%;
  }

  .media-caption {
    padding: 8px 9px 9px;
  }

  .media-subtitle span:last-child {
    display: none;
  }

  .lightbox-toolbar {
    padding-left: 12px;
  }

  .lightbox-stage {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .lightbox-nav {
    width: 30px;
    height: 46px;
  }

  .media-meta {
    padding-inline: 12px;
  }
}

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