/* Cinema Studio — directed shot workspace */

:root {
  --cs-primary: #5eead4;
  --cs-primary-ink: #042f2e;
  --cs-bg: #0c0c0e;
  --cs-panel: #121214;
  --cs-bar: rgba(18, 18, 22, 0.78);
  --cs-border: rgba(255, 255, 255, 0.08);
  --cs-muted: rgba(255, 255, 255, 0.46);
  --cs-text: #f4f4f5;
  --cs-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --cs-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --cs-shadow: 0 18px 48px rgba(8, 8, 12, 0.55);
  --cs-z-shots: 2;
  --cs-z-prompt: 4;
  --cs-z-overlay: 1060;
  --cs-z-full: 1070;
  --cs-ar: 16 / 9;
  --cs-radius: 14px;
  --cs-radius-sm: 8px;
  --cs-font: "Satoshi", Inter, system-ui, -apple-system, sans-serif;
}

.cs-root {
  position: relative;
  height: calc(100dvh - 72px);
  min-height: calc(100dvh - 72px);
  background: var(--cs-bg);
  color: var(--cs-text);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  font-family: var(--cs-font);
}

.cs-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cs-gallery-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  padding: 1.1rem 1.25rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.cs-stagebar {
  font-size: 12px;
  font-weight: 500;
  color: var(--cs-muted);
  letter-spacing: 0.01em;
  margin: 0 0 0.85rem;
}

.cs-gallery {
  display: none;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.cs-gallery.has-items {
  display: grid;
}

@media (min-width: 768px) {
  .cs-gallery.has-items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .cs-gallery.has-items { grid-template-columns: repeat(3, 1fr); }
}

.cs-card {
  position: relative;
  border-radius: var(--cs-radius);
  overflow: hidden;
  border: 1px solid var(--cs-border);
  background: var(--cs-panel);
  box-shadow: var(--cs-shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition:
    border-color 180ms ease,
    transform 160ms var(--cs-ease-out);
}

.cs-card.is-enter {
  animation: csCardIn 220ms var(--cs-ease-out) both;
}

.cs-card:nth-child(2) { animation-delay: 40ms; }
.cs-card:nth-child(3) { animation-delay: 80ms; }

@keyframes csCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .cs-card:hover {
    border-color: rgba(94, 234, 212, 0.38);
  }
}

.cs-card:active {
  transform: scale(0.985);
}

.cs-card img.cs-card-img,
.cs-card .cs-card-img,
.cs-skel-frame {
  width: 100%;
  aspect-ratio: var(--cs-ar);
  object-fit: cover;
  background: #0a0a0c;
  display: block;
}

.cs-card-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .cs-card:hover .cs-card-actions { opacity: 1; }
}

.cs-card-meta {
  padding: 0.7rem 0.8rem;
  background: rgba(8, 8, 10, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.cs-card-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.cs-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--cs-primary);
  padding: 2px 8px;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 4px;
}

.cs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46vh;
  padding: 1.5rem 1rem 2rem;
}

.cs-hero.hidden { display: none; }

.cs-hero-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  user-select: none;
  transform: scale(0.92);
}

@media (min-width: 640px) {
  .cs-hero-cards { transform: none; gap: 0.7rem; }
}

.cs-float-card {
  width: 72px;
  height: 88px;
  border-radius: 1rem;
  border: 1px solid var(--cs-border);
  box-shadow: var(--cs-shadow);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
  margin-left: -12px;
  transition: transform 220ms var(--cs-ease-out);
}

.cs-float-card:first-child { margin-left: 0; }
.cs-float-card.cs-round { border-radius: 999px; width: 72px; height: 72px; }
.cs-float-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-rot-12 { transform: rotate(-12deg); }
.cs-rot-4 { transform: rotate(-4deg); }
.cs-rot6 { transform: rotate(6deg); }
.cs-rot12 { transform: rotate(12deg); }

@media (hover: hover) and (pointer: fine) {
  .cs-float-card:hover { transform: rotate(0) scale(1.06); z-index: 5; }
}

@media (min-width: 640px) {
  .cs-float-card { width: 96px; height: 112px; margin-left: -16px; }
  .cs-float-card.cs-round { width: 96px; height: 96px; }
}

.cs-hero-title {
  margin: 0 0 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cs-hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.cs-hero-main {
  color: var(--cs-primary);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

@media (min-width: 640px) {
  .cs-hero-sub { font-size: 1.45rem; }
  .cs-hero-main { font-size: 2.35rem; }
}

.cs-hero-tagline {
  color: var(--cs-muted);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 28rem;
  line-height: 1.55;
  margin: 0;
  padding: 0 1rem;
  text-wrap: pretty;
}

.cs-prompt-bar {
  position: relative;
  z-index: var(--cs-z-prompt);
  flex-shrink: 0;
  padding: 0.55rem 1rem 1rem;
  overflow: visible;
}

.cs-prompt-inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  background: var(--cs-bar);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: 22px;
  border: 1px solid var(--cs-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.45);
  padding: 0.85rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (prefers-reduced-transparency: reduce) {
  .cs-prompt-inner {
    background: #16161a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.cs-prompt-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0 0.15rem;
}

.cs-upload-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 140ms var(--cs-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cs-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(94, 234, 212, 0.4);
    color: var(--cs-primary);
  }
}

.cs-upload-btn:active { transform: scale(0.97); }

.cs-upload-btn.has-image {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.cs-upload-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--cs-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 150px;
  padding-top: 0.35rem;
  font-family: inherit;
  font-weight: 500;
}

.cs-textarea::placeholder { color: rgba(255, 255, 255, 0.28); }

.cs-prompt-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 720px) {
  .cs-prompt-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.cs-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: visible;
}

.cs-dd-wrap { position: relative; flex-shrink: 0; }

.cs-chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--cs-radius-sm);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 200px;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 140ms var(--cs-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cs-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}

.cs-chip:active { transform: scale(0.97); }

.cs-camera-chip .cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cs-primary);
  flex-shrink: 0;
}

.cs-camera-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 148px;
}

.cs-dd {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 8;
  background: rgba(16, 16, 20, 0.96);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: var(--cs-shadow);
  border: 1px solid var(--cs-border);
  backdrop-filter: blur(16px);
  min-width: 112px;
  display: flex;
  flex-direction: column;
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 160ms var(--cs-ease-out),
    transform 160ms var(--cs-ease-out),
    visibility 160ms;
}

.cs-dd.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.cs-dd button {
  padding: 0.45rem 0.7rem;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cs-dd button:hover { background: rgba(255, 255, 255, 0.08); }
}

.cs-dd button.active { color: var(--cs-primary); }

.cs-shoot,
.cs-animate,
.cs-overlay-done {
  transition:
    opacity 160ms ease,
    transform 140ms var(--cs-ease-out),
    background 160ms ease;
}

.cs-shoot {
  background: var(--cs-primary);
  color: var(--cs-primary-ink);
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(94, 234, 212, 0.18);
  width: 100%;
}

@media (min-width: 720px) {
  .cs-shoot { width: auto; }
}

@media (hover: hover) and (pointer: fine) {
  .cs-shoot:hover:not(:disabled) { filter: brightness(1.05); }
}

.cs-shoot:active:not(:disabled),
.cs-animate:active:not(:disabled),
.cs-overlay-done:active,
.cs-next-shot:active:not(:disabled),
.cs-combine:active:not(:disabled),
.cs-new-film:active {
  transform: scale(0.97);
}

.cs-shoot:disabled,
.cs-animate:disabled,
.cs-next-shot:disabled,
.cs-combine:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.cs-credits {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.16);
  padding: 2px 6px;
  border-radius: 999px;
}

.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--cs-z-overlay);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--cs-ease-out), visibility 220ms;
}

.cs-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cs-overlay-panel {
  width: 100%;
  max-width: 64rem;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.35rem;
  padding: 1.35rem;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  max-height: min(90vh, calc(100dvh - 96px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  opacity: 0;
  transform-origin: center;
  transition: transform 220ms var(--cs-ease-out), opacity 220ms var(--cs-ease-out);
}

.cs-overlay.is-open .cs-overlay-panel {
  transform: none;
  opacity: 1;
}

@media (min-width: 768px) {
  .cs-overlay-panel { padding: 2rem; }
}

.cs-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cs-overlay-head h2,
.cs-confirm-sheet h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-overlay-close,
.cs-fs-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-overlay-close:active,
.cs-fs-close:active { transform: scale(0.97); }

.cs-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cs-columns { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.cs-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cs-col-title {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.7rem;
}

.cs-col-list {
  height: 280px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  position: relative;
}

.cs-col-list::-webkit-scrollbar { display: none; }
.cs-col-list.grabbing { cursor: grabbing; scroll-snap-type: none; }

.cs-col-item {
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  scroll-snap-align: center;
  cursor: pointer;
  opacity: 0.22;
  transform: scale(0.92);
  padding: 0.5rem;
  user-select: none;
  color: #fff;
  transition: opacity 180ms ease, transform 180ms var(--cs-ease-out);
}

.cs-col-item.active {
  opacity: 1;
  transform: none;
  z-index: 3;
}

.cs-col-imgbox {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--cs-ease-out);
}

.cs-col-item.active .cs-col-imgbox {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.06);
  transform: scale(1.08);
}

.cs-col-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.cs-col-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.55);
}

.cs-col-item.active .cs-col-label { color: var(--cs-primary); }

.cs-col-desc {
  margin-top: 0.85rem;
  min-height: 2rem;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(94, 234, 212, 0.7);
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding: 0 0.5rem;
}

.cs-overlay-done {
  margin-top: 1.25rem;
  align-self: center;
  background: var(--cs-primary);
  color: var(--cs-primary-ink);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 2.2rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.cs-confirm-sheet {
  max-width: 400px;
  gap: 0.75rem;
}

.cs-confirm-sheet p {
  margin: 0.35rem 0 0;
  color: var(--cs-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cs-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.cs-confirm-ghost {
  background: transparent;
  border: 1px solid var(--cs-border);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-confirm-ghost:active { transform: scale(0.97); }

.cs-fullscreen {
  position: fixed;
  inset: 0;
  z-index: var(--cs-z-full);
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--cs-ease-out), visibility 220ms;
}

.cs-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cs-fullscreen img,
.cs-fullscreen video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.cs-fs-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.cs-plan-banner {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.cs-plan-banner a { color: #fff; font-weight: 700; margin-left: 0.35rem; }

body:has(.cs-root) .global-footer {
  display: none;
}

body:has(.cs-root) {
  background: var(--cs-bg);
  padding-top: 72px;
}

body:has(.cs-root) .bashvision-nav {
  z-index: 1040;
}

body:has(.cs-root) .bashvision-nav .nav-link,
body:has(.cs-root) .bashvision-nav .dropdown-item,
body:has(.cs-root) .bashvision-nav .token-badge,
body:has(.cs-root) .bashvision-nav .user-dropdown-name,
body:has(.cs-root) .bashvision-nav .user-dropdown-email {
  font-family: "Satoshi", Inter, system-ui, -apple-system, sans-serif;
}

.cs-shots {
  width: 188px;
  flex-shrink: 0;
  border-right: 1px solid var(--cs-border);
  padding: 1rem 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #0a0a0c;
  z-index: var(--cs-z-shots);
  overflow-y: auto;
}

.cs-shots-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.cs-shots-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cs-flow-hint {
  margin: 0 0 0.35rem;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.34);
}

.cs-shot-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.cs-shot-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.cs-new-film {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 140ms var(--cs-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cs-new-film:hover { color: #fff; border-color: var(--cs-primary); }
}

.cs-combine,
.cs-next-shot {
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 140ms var(--cs-ease-out);
}

.cs-combine {
  border: 1px solid rgba(94, 234, 212, 0.32);
  background: rgba(94, 234, 212, 0.08);
  color: #fff;
}

.cs-sequence-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-primary);
  text-align: center;
  text-decoration: none;
  padding: 0.25rem 0;
}

@media (hover: hover) and (pointer: fine) {
  .cs-sequence-link:hover { text-decoration: underline; }
}

.cs-shot-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 0.45rem 0.45rem;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 160ms ease, background 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-shot-item:active { transform: scale(0.98); }

.cs-shot-item.active {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.08);
  color: #fff;
}

.cs-shot-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #1a1a1e center / cover no-repeat;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-shot-copy {
  min-width: 0;
  flex: 1;
}

.cs-shot-item strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cs-shot-item small {
  display: block;
  color: var(--cs-muted);
  font-size: 10px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-shot-stage {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: rgba(94, 234, 212, 0.75);
  margin-top: 2px;
}

.cs-next-shot {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .cs-next-shot:hover:not(:disabled) {
    border-color: var(--cs-primary);
    color: #fff;
  }
}

.cs-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cs-ref-role {
  display: flex;
  gap: 2px;
}

.cs-ref-role button {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--cs-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-ref-role button:active { transform: scale(0.97); }

.cs-ref-role button.active {
  color: var(--cs-primary-ink);
  background: var(--cs-primary);
  border-color: var(--cs-primary);
}

.cs-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cs-animate {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.cs-take-card.is-hero {
  border-color: rgba(94, 234, 212, 0.62);
}

.cs-hero-star {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-hero-star:active { transform: scale(0.97); }

.cs-take-card.is-hero .cs-hero-star {
  background: var(--cs-primary);
  color: var(--cs-primary-ink);
  border-color: transparent;
}

.cs-motion-card video {
  width: 100%;
  aspect-ratio: var(--cs-ar);
  object-fit: cover;
  display: block;
  background: #000;
}

.cs-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-chip-grid button,
.cs-choice {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 140ms var(--cs-ease-out);
}

.cs-chip-grid button:active,
.cs-choice:active { transform: scale(0.97); }

.cs-chip-grid button.active,
.cs-choice.active {
  background: var(--cs-primary);
  color: var(--cs-primary-ink);
  border-color: var(--cs-primary);
}

.cs-panel-sheet {
  max-width: 720px;
  width: calc(100% - 2rem);
}

.cs-panel-body {
  padding: 0 0.15rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: min(60vh, 28rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.cs-panel-body::-webkit-scrollbar {
  width: 8px;
}

.cs-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

.cs-panel-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cs-compass {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  max-width: 220px;
  margin: 0 auto;
}

.cs-compass button { min-height: 40px; }

.cs-slider {
  width: 100%;
  accent-color: var(--cs-primary);
}

.cs-card-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.42);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 2;
}

.cs-skel-frame {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: csShimmer 1.1s linear infinite;
}

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

@media (max-width: 800px) {
  .cs-root {
    flex-direction: column;
    height: calc(100dvh - 72px);
    min-height: calc(100dvh - 72px);
  }
  .cs-shots {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.65rem 0.75rem 0.55rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--cs-border);
    gap: 0.4rem;
  }
  .cs-shots-head-row { width: 100%; }
  .cs-flow-hint { display: none; }
  .cs-shot-list {
    display: flex;
    flex-direction: row;
    flex: 1 1 100%;
    min-width: 0;
    overflow-x: auto;
    gap: 0.35rem;
  }
  .cs-shot-item { min-width: 148px; }
  .cs-shot-actions {
    flex-direction: row;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }
  .cs-next-shot,
  .cs-combine { flex: 1; }
  .cs-main { min-height: 0; flex: 1; }
  .cs-hero {
    min-height: 0;
    justify-content: center;
    padding: 1rem 1rem 0.5rem;
  }
  .cs-hero-cards { margin-bottom: 1.1rem; }
  .cs-hero-tagline { font-size: 0.82rem; }
  .cs-prompt-bar { padding: 0.4rem 0.7rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card,
  .cs-chip,
  .cs-shoot,
  .cs-animate,
  .cs-overlay,
  .cs-overlay-panel,
  .cs-dd,
  .cs-fullscreen,
  .cs-float-card,
  .cs-col-item,
  .cs-hero-star,
  .cs-shot-item {
    animation: none !important;
    transition: opacity 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease !important;
    transform: none !important;
  }
  .cs-skel-frame { animation: none; }
}
