.animation-page { padding-bottom: 18px; }
.animation-rules-panel .confirm-buttons { justify-content: flex-end; }
.animation-rules-panel .photo-rules-form label { line-height: 1.5; }
body:has(> #app > .animation-page) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#app:has(> .animation-page) { flex: 1 0 auto; }
#app:has(> .animation-page) + .site-footer .footer-inner {
  flex-flow: row wrap;
  align-items: center;
  gap: 6px 14px;
  padding-block: 8px;
}
.animation-admin-job header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.animation-admin-pair video, .animation-admin-pair img,
.animation-example-grid video, .animation-example-grid img {
  display: block;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: var(--editor-well, #141419);
}
.animation-examples { text-align: center; }
.animation-example-grid, .animation-admin-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.animation-example-grid figure, .animation-admin-pair figure { margin: 0; min-width: 0; }
.animation-example-grid video, .animation-example-grid img { max-height: 410px; }
.animation-example-grid figcaption { margin-top: 8px; }
.animation-admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.animation-preset-list { grid-template-columns: minmax(0, 1fr); }
.animation-preset-list [data-preset-drag] { cursor: grab; }
.animation-preset-list .is-dragging { opacity: .55; }
.animation-preset-list .drop-before { border-top-color: var(--pink); }
.animation-preset-list .drop-after { box-shadow: 0 2px var(--pink); }
.animation-admin-form, .animation-admin-job { padding: 14px; min-width: 0; }
.animation-admin-form { display: grid; gap: 10px; }
.animation-admin-form label { display: grid; gap: 6px; }
.animation-admin-form input, .animation-admin-form textarea { width: 100%; min-width: 0; }
.animation-admin-form div { display: flex; flex-wrap: wrap; gap: 8px; }
.animation-admin-job time { font-size: 12px; color: var(--muted); }
.animation-admin-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.animation-admin-pair figcaption { margin-bottom: 6px; font-weight: 600; }
.animation-admin-pair img, .animation-admin-pair video { height: clamp(120px, 20vw, 250px); }
.animation-admin-pair a { display: inline-block; color: var(--pink2); margin-top: 6px; }
.animation-admin [data-animation-more], .animation-admin [data-animation-delete-example] { margin-top: 12px; }
.animation-admin [hidden] { display: none !important; }
@media (max-width: 760px) {
  .animation-admin-jobs { grid-template-columns: minmax(0,1fr); }
  .header-inner > .nav { gap: 6px; }
  .header-inner > .nav a { gap: 4px; }
  .header-inner > .nav a[href="/photo-animation"] { line-height: 1.15; text-align: center; }
}
@media (max-width: 680px) {
  body:has(.animation-page .photo-editor-mobile-action) > #footer {
    padding-bottom: 0;
    margin-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  body:has(.animation-page .photo-editor-mobile-action .photo-editor-status:not(:empty)) > #footer {
    margin-bottom: calc(94px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 400px) {
  .header-inner > .nav a .icon { display: none; }
  .animation-example-grid { grid-template-columns: minmax(0,1fr); }
}
