.shot-app {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.shot-app__header {
  margin-bottom: 36px;
}

.shot-app__header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  letter-spacing: -0.02em;
}

.shot-app__header > p {
  margin: 0 0 20px;
  max-width: 50em;
  color: var(--dark);
  line-height: 1.6;
}

.shot-app__spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.shot-app__spec code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--lightest);
  font-size: 11px;
  color: var(--pink);
}

.shot-app__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: var(--border-light);
}

.shot-app__controls--features {
  margin-top: 12px;
  align-items: start;
}

.shot-app__controls-title {
  flex: 0 0 100%;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}

.shot-app__field--wide input[type="text"] {
  width: min(100%, 320px);
}

.shot-app__field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-app__field input[type="text"] {
  width: min(100%, 260px);
  padding: 8px 11px;
  border: var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
}

.shot-app__field input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.shot-app__field select {
  width: min(100%, 160px);
  padding: 8px 11px;
  border: var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  background: var(--white);
}

.shot-app__field--plugin select {
  width: min(100%, 340px);
}

.shot-card__toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(38, 35, 53, 0.08);
  box-shadow: 0 1px 2px rgba(38, 35, 53, 0.03);
}

.shot-card__toggles-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.shot-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
}

.shot-toggle input {
  accent-color: var(--pink);
}

.shot-layout-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}

.shot-filter-btn {
  appearance: none;
  border: 1px solid rgba(38, 35, 53, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shot-filter-btn:hover {
  border-color: color-mix(in srgb, var(--brand-1) 35%, rgba(38, 35, 53, 0.12));
}

.shot-filter-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

.shot-filter-empty {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.shot-filter-empty[hidden] {
  display: none !important;
}

.shot-app__grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.shot-card[hidden] {
  display: none !important;
}

.shot-card {
  --preview-scale: 0.8;
  --shot-slot-bar-h: 56px;
  --shot-panel-h: calc(675px * var(--preview-scale) + 88px + var(--shot-slot-bar-h));
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid rgba(38, 35, 53, 0.1);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(38, 35, 53, 0.04),
    0 12px 40px rgba(38, 35, 53, 0.07);
  overflow: hidden;
}

@media (min-width: 1280px) {
  .shot-card {
    --preview-scale: 0.875;
  }
}

@media (min-width: 960px) {
  .shot-card {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

.shot-card__side {
  padding: 18px 16px 20px;
  background: #fafafb;
  border-bottom: 1px solid rgba(38, 35, 53, 0.08);
}

@media (min-width: 960px) {
  .shot-card__side {
    max-height: var(--shot-panel-h);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: none;
    border-right: 1px solid rgba(38, 35, 53, 0.08);
    scrollbar-gutter: stable;
  }
}

.shot-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(226, 3, 125, 0.1);
  color: var(--pink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shot-card__side h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--black);
  letter-spacing: -0.02em;
}

.shot-card__side > p {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--medium);
  line-height: 1.55;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(38, 35, 53, 0.06);
}

.shot-card__uploads {
  margin-bottom: 14px;
}

.shot-card__uploads label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-card__uploads input[type="file"] {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-bottom: 10px;
  font-size: 11px;
}

.shot-card__text {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot-card__text-title {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.shot-text-group {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(38, 35, 53, 0.08);
  box-shadow: 0 1px 2px rgba(38, 35, 53, 0.03);
}

.shot-text-group[hidden] {
  display: none;
}

.shot-text-group__title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
}

.shot-text-group__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--medium);
  font-weight: 500;
}

.shot-text-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-text-group input[type="text"],
.shot-text-group select,
.shot-text-group textarea,
.shot-text-group input[type="color"] {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12px;
  background: var(--white);
}

.shot-text-group input[type="color"] {
  height: 36px;
  padding: 4px;
  cursor: pointer;
}

.shot-text-group textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.shot-text-group input[type="text"]:last-child,
.shot-text-group select:last-child,
.shot-text-group textarea:last-child {
  margin-bottom: 0;
}

.shot-feat-row {
  padding: 10px 0;
  border-top: var(--border-light);
}

.shot-feat-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.shot-feat-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 8px;
}

.shot-feat-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
}

.shot-feat-show input {
  margin: 0;
}

.shot-feat-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-feat-icon-label select {
  width: auto;
  min-width: 160px;
  margin: 0;
  padding: 5px 8px;
  font-size: 12px;
}

.shot-card__uploads .shot-upload-hint {
  margin: 0 0 10px;
  font-size: 10px;
  color: var(--medium);
  line-height: 1.45;
}

.shot-layer-controls {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: var(--border-light);
}

.shot-layer-controls__title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
}

.shot-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.shot-layer-row:last-child {
  margin-bottom: 0;
}

.shot-layer-row__label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-layer-row select {
  width: 108px;
  padding: 6px 8px;
  border: var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 11px;
  background: var(--white);
}

.shot-size-controls {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: var(--border-light);
}

.shot-size-controls__title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
}

.shot-size-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.shot-size-row:last-child {
  margin-bottom: 0;
}

.shot-size-row__label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
}

.shot-size-row input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--pink);
}

.shot-size-row__value {
  min-width: 44px;
  font-size: 10px;
  font-weight: 700;
  color: var(--medium);
  text-align: right;
}

.shot-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: calc(1080px * var(--preview-scale));
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(38, 35, 53, 0.12);
  box-shadow: 0 2px 10px rgba(38, 35, 53, 0.08);
}

.shot-card__actions .shot-btn {
  flex: 1 1 88px;
  min-height: 38px;
}

.shot-card__actions .shot-btn--primary {
  flex: 1.4 1 120px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(226, 3, 125, 0.25);
}

.shot-card__actions .shot-btn--ghost {
  background: #f3f4f6;
  font-weight: 600;
}

.shot-card__actions .shot-btn--retina {
  flex: 1.2 1 140px;
  background: linear-gradient(135deg, rgba(194, 24, 91, 0.1), rgba(123, 31, 162, 0.14));
  border: 1px solid rgba(123, 31, 162, 0.35);
  color: #6a1b9a;
  font-size: 13px;
  font-weight: 700;
}

.shot-card__actions .shot-btn--retina:hover {
  background: linear-gradient(135deg, rgba(194, 24, 91, 0.16), rgba(123, 31, 162, 0.2));
  border-color: rgba(123, 31, 162, 0.5);
}

body:not(.is-admin) .shot-btn[data-export-video-target],
body:not(.is-admin) .shot-btn[data-copy-embed] {
  display: none !important;
}

.shot-card__slot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: calc(1080px * var(--preview-scale));
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px dashed rgba(226, 3, 125, 0.35);
  box-shadow: 0 2px 10px rgba(38, 35, 53, 0.06);
}

.shot-slot-btn {
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(226, 3, 125, 0.22);
  border-radius: var(--radius-sm);
  background: #fef7fb;
  color: var(--pink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-align: center;
}

.shot-slot-btn::before {
  content: "↑";
  font-size: 11px;
  font-weight: 700;
}

.shot-slot-btn:hover {
  background: rgba(226, 3, 125, 0.1);
  border-color: rgba(226, 3, 125, 0.45);
  transform: translateY(-1px);
}

.shot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.shot-btn--primary {
  background: var(--pink);
  color: var(--white);
}

.shot-btn--primary:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
}

.shot-btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.shot-btn--ghost {
  background: var(--lightest);
  color: var(--dark);
  border: var(--border-light);
}

.shot-btn--ghost:hover {
  border-color: rgba(226, 3, 125, 0.3);
  color: var(--pink);
}

.shot-card__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 20px;
  background: linear-gradient(165deg, #edeef3 0%, #e4e6ec 100%);
}

.shot-preview-wrap {
  width: calc(1080px * var(--preview-scale));
  height: calc(675px * var(--preview-scale));
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(38, 35, 53, 0.12);
  flex-shrink: 0;
}

.shot-preview-wrap .frame {
  transform: scale(var(--preview-scale));
  transform-origin: top left;
}

.shot-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.shot-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Full-size preview modal */
.shot-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shot-preview-modal[hidden] {
  display: none;
}

.shot-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 35, 53, 0.72);
  backdrop-filter: blur(4px);
}

.shot-preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shot-preview-modal__close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.shot-preview-modal__close:hover {
  background: var(--lightest);
  color: var(--pink);
}

.shot-preview-modal__stage {
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: var(--radius);
  background: transparent;
}

.shot-preview-modal__hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* Video embed code modal */
.shot-embed-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shot-embed-modal[hidden] {
  display: none;
}

.shot-embed-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 35, 53, 0.72);
  backdrop-filter: blur(4px);
}

.shot-embed-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100vw - 48px));
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(38, 35, 53, 0.24);
}

.shot-embed-modal__dialog h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.shot-embed-modal__dialog p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.shot-embed-modal__code {
  width: 100%;
  min-height: 180px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 35, 53, 0.12);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--black);
  background: #f8f9fb;
  resize: vertical;
}

.shot-embed-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--lightest);
  color: var(--black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.shot-embed-modal__close:hover {
  color: var(--pink);
}

.shot-embed-modal__usage {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.shot-embed-modal__optional {
  font-weight: 500;
  color: var(--muted);
}

.shot-embed-modal__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(38, 35, 53, 0.12);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--black);
  background: #f8f9fb;
}

.shot-embed-modal__url {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.shot-embed-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.shot-app__field--safe-zones {
  align-self: center;
}

.shot-toggle--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}

.shot-preview-wrap--safe-zones {
  position: relative;
}

.shot-preview-wrap--safe-zones::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border: 2px dashed rgba(226, 3, 125, 0.45);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.shot-preview-wrap--safe-zones::after {
  content: "Safe zone · 1080×675";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(226, 3, 125, 0.9);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

