.shot-preset-dialog {
  --shot-preset-accent: #06b6d4; --shot-preset-accent-strong: #0891b2;
  --shot-preset-accent-soft: #ecfeff; --shot-preset-ink: #111827;
  --shot-preset-muted: #64748b; --shot-preset-subtle: #94a3b8;
  --shot-preset-canvas: #f7f8fa; --shot-preset-surface: #ffffff;
  --shot-preset-raised: #f1f5f9; --shot-preset-line: #e2e8f0;
  --shot-preset-line-strong: #cbd5e1; width: min(1180px, calc(100vw - 32px));
  height: min(780px, calc(100dvh - 32px)); max-width: none;
  max-height: none; margin: auto;
  padding: 0; overflow: hidden;
  border: 1px solid var(--shot-preset-line-strong); border-radius: 16px;
  background: var(--shot-preset-canvas); color: var(--shot-preset-ink);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.32); font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shot-preset-background-video,
.shot-preset-background-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.shot-preset-background-video {
  z-index: 0; object-fit: cover; filter: saturate(0.78) contrast(0.9) brightness(1.08);
  opacity: 0; transition: opacity 220ms ease-out;
}
.shot-preset-dialog[data-shot-preset-background="ready"] .shot-preset-background-video {
  opacity: 0.62;
}
.shot-preset-background-overlay {
  z-index: 1; background: rgba(247, 248, 250, 0.36);
}
.shot-preset-dialog > :not(.shot-preset-background-video):not(.shot-preset-background-overlay) {
  position: relative; z-index: 2;
}
.shot-preset-dialog[data-shot-preset-background="ready"] :is(.shot-preset-header, .shot-preset-search, .shot-preset-footer) {
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px);
}
.shot-preset-dialog[data-shot-preset-background="ready"] :is(.shot-preset-categories, .shot-preset-detail) {
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px);
}
.shot-preset-dialog[data-shot-preset-background="ready"] .shot-preset-results {
  background: rgba(247, 248, 250, 0.74); backdrop-filter: blur(8px); }
.shot-preset-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(8px);
}
.shot-preset-dialog[open] {
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  animation: shot-preset-enter 160ms ease-out;
}
.shot-preset-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--shot-preset-line);
  background: var(--shot-preset-surface);
}
.shot-preset-heading {
  display: grid; gap: 3px;
  min-width: 0;
}
.shot-preset-eyebrow {
  color: var(--shot-preset-accent-strong); font-size: 12px;
  font-weight: 700; letter-spacing: 0.05em;
}
.shot-preset-title {
  margin: 0; font-size: 24px;
  font-weight: 650; line-height: 1.2;
  letter-spacing: -0.45px;
}
.shot-preset-description {
  margin: 0; color: var(--shot-preset-muted);
  font-size: 13px; line-height: 1.5;
}
.shot-preset-icon-button {
  display: inline-grid; flex: 0 0 auto;
  width: 44px; height: 44px;
  place-items: center; padding: 0;
  border: 1px solid var(--shot-preset-line); border-radius: 8px;
  background: var(--shot-preset-surface); color: var(--shot-preset-muted);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.shot-preset-icon-button:hover {
  border-color: var(--shot-preset-line-strong); background: var(--shot-preset-raised);
  color: var(--shot-preset-ink);
}
.shot-preset-search {
  position: relative; display: flex;
  align-items: center; min-height: 64px;
  padding: 10px 22px; border-bottom: 1px solid var(--shot-preset-line);
  background: var(--shot-preset-surface);
}
.shot-preset-search-icon {
  position: absolute; left: 36px;
  color: var(--shot-preset-subtle); font-size: 21px;
  pointer-events: none;
}
.shot-preset-search-input {
  width: 100%; min-height: 44px;
  padding: 10px 14px 10px 42px; border: 1px solid var(--shot-preset-line);
  border-radius: 8px; outline: none;
  background: var(--shot-preset-canvas); color: var(--shot-preset-ink);
  font: inherit; font-size: 14px;
}
.shot-preset-search-input::placeholder {
  color: var(--shot-preset-subtle);
}
.shot-preset-search-input:focus {
  border-color: var(--shot-preset-accent); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
  background: var(--shot-preset-surface);
}
.shot-preset-workspace {
  display: grid; grid-template-columns: minmax(156px, 190px) minmax(320px, 1fr) minmax(250px, 310px);
  min-height: 0; overflow: hidden;
}
.shot-preset-categories,
.shot-preset-results,
.shot-preset-detail {
  min-width: 0; min-height: 0;
  overflow: auto;
}
.shot-preset-categories {
  padding: 16px 12px; border-right: 1px solid var(--shot-preset-line);
  background: var(--shot-preset-surface);
}
.shot-preset-pane-title {
  margin: 0; color: var(--shot-preset-ink);
  font-size: 13px; font-weight: 700;
  line-height: 1.3;
}
.shot-preset-category-list {
  display: grid; gap: 3px;
  margin-top: 10px;
}
.shot-preset-category-item,
.shot-preset-card-item {
  min-width: 0;
}
.shot-preset-category-button {
  display: flex; width: 100%;
  min-height: 44px; align-items: center;
  justify-content: space-between; gap: 8px;
  padding: 7px 8px 7px 10px; border: 1px solid transparent;
  border-radius: 8px; background: transparent;
  color: var(--shot-preset-muted); text-align: left;
  cursor: pointer;
}
.shot-preset-category-button:hover:not(:disabled) {
  background: var(--shot-preset-raised); color: var(--shot-preset-ink);
}
.shot-preset-category-button[aria-current="true"] {
  border-color: #bae6fd; background: var(--shot-preset-accent-soft);
  color: #0e7490;
}
.shot-preset-category-button:disabled {
  opacity: 0.42; cursor: not-allowed;
}
.shot-preset-category-labels {
  display: grid; min-width: 0;
}
.shot-preset-category-zh {
  overflow: hidden; font-size: 13px;
  font-weight: 600; text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-preset-category-en {
  overflow: hidden; color: var(--shot-preset-subtle);
  font-size: 10px; text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-preset-category-count,
.shot-preset-count {
  flex: 0 0 auto; color: var(--shot-preset-subtle);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.shot-preset-results {
  padding: 16px; background: var(--shot-preset-canvas);
}
.shot-preset-results-heading {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.shot-preset-card-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.shot-preset-card {
  display: flex; width: 100%;
  min-height: 76px; align-items: center;
  justify-content: space-between; gap: 10px;
  padding: 11px 10px 11px 12px; border: 1px solid var(--shot-preset-line);
  border-radius: 10px; background: var(--shot-preset-surface);
  color: var(--shot-preset-ink); text-align: left;
  cursor: pointer;
}
.shot-preset-card:hover,
.shot-preset-card[data-focused="true"] {
  border-color: var(--shot-preset-line-strong); background: #fbfdff;
}
.shot-preset-card[aria-pressed="true"] {
  border-color: var(--shot-preset-accent); background: var(--shot-preset-accent-soft);
}
.shot-preset-card[data-overridden="true"] {
  opacity: 0.58; text-decoration: line-through;
}
.shot-preset-card-copy,
.shot-preset-card-names {
  display: grid; min-width: 0;
}
.shot-preset-card-copy {
  gap: 5px;
}
.shot-preset-card-name {
  overflow: hidden; font-size: 14px;
  line-height: 1.3; text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-preset-card-en {
  overflow: hidden; color: var(--shot-preset-subtle);
  font-size: 11px; text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-preset-card-summary {
  display: -webkit-box; overflow: hidden;
  color: var(--shot-preset-muted); font-size: 12px;
  line-height: 1.4; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.shot-preset-card-marker {
  display: grid; flex: 0 0 auto;
  width: 28px; height: 28px;
  place-items: center; border: 1px solid var(--shot-preset-line);
  border-radius: 7px; color: var(--shot-preset-muted);
  font-weight: 700;
}
.shot-preset-card[aria-pressed="true"] .shot-preset-card-marker {
  border-color: var(--shot-preset-accent); background: var(--shot-preset-accent);
  color: #ffffff;
}
.shot-preset-empty {
  grid-column: 1 / -1; display: grid;
  min-height: 180px; place-content: center;
  gap: 6px; padding: 24px;
  border: 1px dashed var(--shot-preset-line-strong); border-radius: 10px;
  color: var(--shot-preset-muted); text-align: center;
}
.shot-preset-empty-title {
  color: var(--shot-preset-ink); font-size: 14px;
}
.shot-preset-empty-copy {
  font-size: 12px;
}
.shot-preset-detail {
  padding: 18px; border-left: 1px solid var(--shot-preset-line);
  background: var(--shot-preset-surface);
}
.shot-preset-detail-content,
.shot-preset-detail-head {
  display: grid;
}
.shot-preset-detail-content {
  gap: 14px;
}
.shot-preset-detail-head {
  gap: 2px;
}
.shot-preset-detail-kicker,
.shot-preset-section-label {
  color: var(--shot-preset-accent-strong); font-size: 11px;
  font-weight: 700; letter-spacing: 0.04em;
}
.shot-preset-detail-title {
  margin: 0; font-size: 20px;
  font-weight: 650; line-height: 1.25;
  letter-spacing: -0.25px;
}
.shot-preset-detail-en {
  margin: 0; color: var(--shot-preset-subtle);
  font-size: 12px;
}
.shot-preset-detail-summary {
  margin: 0; color: var(--shot-preset-muted);
  font-size: 13px; line-height: 1.65;
}
.shot-preset-meta,
.shot-preset-alias-list {
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.shot-preset-chip,
.shot-preset-alias {
  padding: 4px 7px; border: 1px solid var(--shot-preset-line);
  border-radius: 6px; background: var(--shot-preset-raised);
  color: var(--shot-preset-muted); font-size: 11px;
  line-height: 1.3;
}
.shot-preset-chip-review {
  border-color: #fcd34d; background: #fffbeb;
  color: #92400e;
}
.shot-preset-preview {
  position: relative; display: grid;
  min-height: 190px; place-content: center;
  justify-items: center; gap: 7px;
  overflow: hidden; padding: 16px;
  border: 1px solid var(--shot-preset-line); border-radius: 10px;
  background: #f1f5f9; text-align: center;
}
.shot-preset-preview-media {
  display: block; width: 100%;
  max-height: 260px; object-fit: contain;
  border-radius: 7px; background: #0f172a;
}
.shot-preset-camera-placeholder {
  position: relative; width: 68px;
  height: 46px; margin-bottom: 5px;
  color: var(--shot-preset-subtle);
}
.shot-preset-camera-body {
  position: absolute; inset: 10px 4px 2px;
  border: 2px solid currentColor; border-radius: 9px;
}
.shot-preset-camera-lens {
  position: absolute; top: 19px;
  left: 27px; width: 18px;
  height: 18px; border: 2px solid currentColor;
  border-radius: 50%;
}
.shot-preset-camera-viewfinder {
  position: absolute; top: 3px;
  left: 15px; width: 20px;
  height: 10px; border: 2px solid currentColor;
  border-bottom: 0; border-radius: 4px 4px 0 0;
}
.shot-preset-preview-title {
  font-size: 13px;
}
.shot-preset-preview-copy {
  max-width: 230px; margin: 0;
  color: var(--shot-preset-muted); font-size: 12px;
  line-height: 1.5;
}
.shot-preset-aliases {
  display: grid; gap: 8px;
}
.shot-preset-section-label {
  margin: 0; color: var(--shot-preset-muted);
}
.shot-preset-inline-issue,
.shot-preset-status-message {
  color: #b45309;
}
.shot-preset-inline-issue {
  margin: 0; padding: 9px 10px;
  border: 1px solid #fde68a; border-radius: 8px;
  background: #fffbeb; font-size: 12px;
  line-height: 1.5;
}
.shot-preset-detail-empty {
  display: grid; min-height: 320px;
  place-content: center; justify-items: center;
  color: var(--shot-preset-subtle); text-align: center;
}
.shot-preset-detail-empty-mark {
  font-size: 30px;
}
.shot-preset-detail-empty-copy {
  margin: 8px 0 0; font-size: 13px;
}
.shot-preset-footer {
  display: flex; min-height: 68px;
  align-items: center; justify-content: space-between;
  gap: 16px; padding: 11px 22px;
  border-top: 1px solid var(--shot-preset-line); background: var(--shot-preset-surface);
}
.shot-preset-status,
.shot-preset-actions {
  display: flex; align-items: center;
  gap: 10px;
}
.shot-preset-status {
  min-width: 0; flex-wrap: wrap;
  color: var(--shot-preset-muted); font-size: 12px;
}
.shot-preset-selection-summary {
  color: var(--shot-preset-ink); font-weight: 700;
}
.shot-preset-length {
  color: var(--shot-preset-subtle);
}
.shot-preset-button {
  min-width: 88px; min-height: 44px;
  padding: 9px 15px; border: 1px solid transparent;
  border-radius: 8px; font: inherit;
  font-size: 14px; font-weight: 650;
  cursor: pointer;
}
.shot-preset-button-secondary {
  border-color: var(--shot-preset-line); background: var(--shot-preset-surface);
  color: var(--shot-preset-ink);
}
.shot-preset-button-secondary:hover {
  background: var(--shot-preset-raised);
}
.shot-preset-button-primary {
  background: var(--shot-preset-accent); color: #ffffff;
}
.shot-preset-button-primary:hover:not(:disabled) {
  background: var(--shot-preset-accent-strong);
}
.shot-preset-button:disabled {
  opacity: 0.48; cursor: not-allowed;
}
.shot-preset-actions-host.seedance-title-actions {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, auto);
  align-items: start; gap: 8px;
}
.shot-preset-actions-host > .seedance-clear-button {
  grid-column: 1; grid-row: 1;
}
.shot-preset-actions-host > .seedance-library-button {
  grid-column: 2; grid-row: 1;
}
.shot-preset-entry-slot {
  display: flex; grid-column: 1; grid-row: 2;
  min-width: 0;
}
.shot-preset-trigger {
  --shot-preset-accent: #06b6d4; --shot-preset-accent-strong: #0891b2;
  display: inline-flex; width: 100%; min-height: 36px;
  align-items: center; justify-content: center; gap: 7px;
  padding: 7px 11px; border: 1px solid #dce2f3;
  border-radius: 8px; background: rgba(255, 255, 255, 0.68);
  color: #475569; font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.shot-preset-trigger:hover:not(:disabled) {
  border-color: var(--shot-preset-accent); color: var(--shot-preset-accent-strong);
  background: #ffffff;
}
.shot-preset-trigger:disabled {
  opacity: 0.48; cursor: wait;
}
.shot-preset-trigger-icon {
  width: 18px; height: 18px; flex: 0 0 18px;
}
.shot-preset-token {
  --shot-preset-accent: #06b6d4;
  display: inline-flex; min-height: 28px; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  align-items: center; gap: 6px; margin: 0 2px;
  padding: 3px 9px; border: 1px solid #67e8f9;
  border-radius: 7px; background: #ecfeff; color: #0e7490;
  box-shadow: 0 1px 2px rgba(8, 145, 178, 0.08);
  font-size: 13px; font-weight: 760; line-height: 1.25;
  vertical-align: middle; cursor: pointer; user-select: none;
}
.shot-preset-token::before {
  width: 13px; height: 13px; border: 1.5px solid currentColor;
  border-radius: 50%; box-shadow: inset 0 0 0 3px #ecfeff;
  background: currentColor; content: "";
}
.shot-preset-token:hover {
  border-color: #22d3ee; background: #cffafe;
}
.shot-preset-icon-button:focus-visible,
.shot-preset-category-button:focus-visible,
.shot-preset-card:focus-visible,
.shot-preset-button:focus-visible,
.shot-preset-trigger:focus-visible,
.shot-preset-token:focus-visible {
  outline: 2px solid var(--shot-preset-accent); outline-offset: 2px;
}
.shot-preset-sr-only {
  position: absolute; width: 1px;
  height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 920px) {
  .shot-preset-workspace {
    grid-template-columns: 150px minmax(300px, 1fr);
  }
  .shot-preset-detail {
    grid-column: 1 / -1; min-height: 260px;
    border-top: 1px solid var(--shot-preset-line); border-left: 0;
  }
  .shot-preset-detail-content {
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr); align-items: start;
  }
  .shot-preset-preview {
    grid-column: 2; grid-row: 1 / span 4;
  }
}
@media (max-width: 680px) {
  .shot-preset-dialog {
    width: calc(100vw - 12px); height: calc(100dvh - 12px);
    border-radius: 12px;
  }
  .shot-preset-header {
    padding: 14px 14px 11px;
  }
  .shot-preset-description {
    display: none;
  }
  .shot-preset-search {
    min-height: 60px; padding: 8px 12px;
  }
  .shot-preset-search-icon {
    left: 26px;
  }
  .shot-preset-workspace {
    display: block; overflow: auto;
  }
  .shot-preset-categories {
    position: sticky; top: 0;
    z-index: 2; overflow: hidden;
    padding: 10px 12px; border-right: 0;
    border-bottom: 1px solid var(--shot-preset-line);
  }
  .shot-preset-categories > .shot-preset-pane-title {
    display: none;
  }
  .shot-preset-category-list {
    display: flex; gap: 6px;
    overflow-x: auto; margin: 0;
    padding-bottom: 2px; scroll-snap-type: x proximity;
  }
  .shot-preset-category-item {
    flex: 0 0 auto; scroll-snap-align: start;
  }
  .shot-preset-category-button {
    width: auto; min-width: 116px;
  }
  .shot-preset-results {
    overflow: visible; padding: 12px;
  }
  .shot-preset-card-list {
    grid-template-columns: 1fr;
  }
  .shot-preset-detail {
    overflow: visible; padding: 16px 14px;
  }
  .shot-preset-detail-content {
    display: grid; grid-template-columns: 1fr;
  }
  .shot-preset-preview {
    grid-column: auto; grid-row: auto;
    min-height: 170px;
  }
  .shot-preset-footer {
    align-items: stretch; padding: 9px 12px;
  }
  .shot-preset-status {
    align-content: center;
  }
  .shot-preset-trigger {
    width: 44px; min-width: 44px; min-height: 44px; padding: 9px;
  }
  .shot-preset-trigger-label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 430px) {
  .shot-preset-heading {
    max-width: calc(100vw - 100px);
  }
  .shot-preset-title {
    font-size: 21px;
  }
  .shot-preset-footer {
    display: grid; grid-template-columns: 1fr;
  }
  .shot-preset-actions {
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .shot-preset-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot-preset-background-video {
    display: none;
  }
  .shot-preset-dialog[open] {
    animation: none;
  }
  .shot-preset-dialog *,
  .shot-preset-dialog *::before,
  .shot-preset-dialog *::after {
    scroll-behavior: auto; transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  }
}
@keyframes shot-preset-enter {
  from {
    opacity: 0; transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1; transform: translateY(0) scale(1);
  }
}
