.canvas-cinema-kit {
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px;
  border-radius:18px;
  background:#191919;
  color:#d9d9d9;
}
.canvas-cinema-tool,
.canvas-cinema-collapse {
  height:44px;
  border:0;
  background:#212121;
  color:inherit;
  border-radius:14px;
  cursor:pointer;
}
.canvas-cinema-tool {
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 10px;
  flex:1 1 0;
  min-width:0;
  text-align:left;
  font:inherit;
  font-size:12px;
}
.canvas-cinema-tool-slot {position:relative;flex:1 1 0;min-width:0}
.canvas-cinema-tool-slot .canvas-cinema-tool {width:100%}
.canvas-cinema-tool-slot[data-selected=true] .canvas-cinema-tool {padding-right:27px;color:#fafafa}
.canvas-cinema-tool:hover,
.canvas-cinema-collapse:hover {background:#303030}
.canvas-cinema-tool > img {width:28px;height:28px;object-fit:contain;flex:none}
.canvas-cinema-tool > span:first-of-type {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.canvas-cinema-tool-remove {
  position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;
  color:#a2a2a2;background:transparent;border-radius:7px;padding:1px 6px;cursor:pointer
}
.canvas-cinema-tool-remove:hover {color:#fff;background:#444}
.canvas-cinema-collapse {width:27px;flex:none;padding:0}
.canvas-cinema-dialog {
  color:#f6f6f6;
  padding:0;
  max-width:calc(100vw - 28px);
  max-height:calc(100dvh - 26px);
  border:0;
  border-radius:20px;
  background:transparent;
  overflow:auto;
  overscroll-behavior:contain;
  font-family:Inter,system-ui,sans-serif;
}
.canvas-cinema-dialog::backdrop {background:#000c}
.canvas-cinema-modal {
  box-sizing:border-box;
  width:min(800px,calc(100vw - 28px));
  padding:24px;
  background:#191919;
  color:#f9f9f9;
  border-radius:20px;
}
.canvas-cinema-modal-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:0 8px;margin-bottom:28px;min-height:32px;
}
.canvas-cinema-modal-header h2 {margin:0;font-size:13px;font-weight:600}
.canvas-cinema-dismiss {
  border:0;border-radius:8px;background:transparent;color:inherit;
  width:28px;height:28px;font-size:22px;cursor:pointer;line-height:1;
}
.canvas-cinema-dismiss:hover {background:#323232}
.canvas-cinema-modal-footer {display:flex;justify-content:flex-end;margin-top:16px}
.canvas-cinema-confirm {
  border:0;border-radius:8px;background:#f8f8f8;color:#181818;cursor:pointer;
  font-size:13px;width:80px;height:36px;
}
.canvas-cinema-confirm:disabled {background:#424242;color:#8c8c8c;cursor:default}
.canvas-cinema-camera {min-height:596px}
.canvas-cinema-camera-preview {
  margin:0 auto 34px; width:min(320px,100%); aspect-ratio:16/9;
  background:#252525;border-radius:16px;overflow:hidden;
}
.canvas-cinema-camera-preview img {display:block;width:100%;height:100%;object-fit:cover}
.canvas-cinema-camera-wheels {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:42px;}
.canvas-cinema-camera-wheel {height:196px;position:relative;min-width:0;text-align:center;font-size:13px;touch-action:pan-x}
.canvas-cinema-camera-wheel-label {color:#8c8c8c;margin-bottom:10px}
.canvas-cinema-camera-track {
  position:relative;height:172px;overflow:hidden;transform:translateY(2px);
  mask-image:linear-gradient(180deg,transparent,#000 34%,#000 67%,transparent);
}
.canvas-cinema-camera-card {
  position:absolute;left:0;top:calc(50% - 44px);width:100%;height:88px;
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;
  border:0;border-radius:16px;background:radial-gradient(ellipse at center,#323232,#101010 76%);
  color:#aaa;font-size:12px;cursor:pointer;white-space:nowrap;
}
.canvas-cinema-camera-card img {width:60px;height:47px;object-fit:contain}
.canvas-cinema-camera-card[data-position="-1"] {transform:translateY(-92px)}
.canvas-cinema-camera-card[data-position="1"] {transform:translateY(92px)}
.canvas-cinema-camera-card[aria-pressed=true] {color:#ddd}
.canvas-cinema-wheel-arrow {
  position:absolute;left:50%;transform:translateX(-50%);border:0;border-radius:6px;
  background:#282828;color:#ddd;width:44px;height:20px;cursor:pointer;opacity:0;
}
.canvas-cinema-camera-wheel:hover .canvas-cinema-wheel-arrow,
.canvas-cinema-camera-wheel:focus-within .canvas-cinema-wheel-arrow {opacity:1}
.canvas-cinema-wheel-arrow.previous {top:36px}
.canvas-cinema-wheel-arrow.next {bottom:2px}
@media (max-width:620px){
  .canvas-cinema-modal {padding:16px}
  .canvas-cinema-camera-wheels {gap:8px}
  .canvas-cinema-camera-card {font-size:10px}
  .canvas-cinema-camera-card img {max-width:80%}
}

.asset-canvas-draft-node > .canvas-cinema-kit {margin-bottom:5px}
.asset-canvas-cinema-asset {
  z-index:6;position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);
  width:clamp(284px,100%,560px);max-width:75vw;
}

.canvas-cinema-focal-volume {display:flex;align-items:baseline;gap:3px}
.canvas-cinema-focal-volume strong {font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}
.canvas-cinema-focal-volume small {font-size:11px}

.canvas-cinema-modal.cinema-preset-modal {
  box-sizing: border-box;
  position: relative;
  width: min(800px, calc(100vw - 28px));
  height: min(604px, calc(100dvh - 28px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  color: #f7f7f7;
  background: #1a1a1a;
  font-size: 13px;
  line-height: 1.4;
}
.cinema-preset-modal button { font: inherit; cursor: pointer; }
.cinema-preset-modal button:disabled { cursor: default; }
.cinema-preset-modal button:focus-visible,
.cinema-preset-modal input:focus-visible {
  outline: 2px solid #dfdfdf;
  outline-offset: -2px;
}
.cinema-preset-head {
  min-height: 48px;
  margin: -4px 0 16px;
  padding-inline: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cinema-preset-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: inherit; }
.cinema-preset-dismiss {
  border: 0;
  background: transparent;
  color: #f7f7f7;
  border-radius: 8px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.cinema-preset-modal .cinema-preset-dismiss { font-size: 20px; line-height: 1; }
.cinema-preset-dismiss:hover { background: #292929; }
.cinema-preset-foot {
  flex: none;
  min-height: 36px;
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}
.cinema-preset-confirm,
.cinema-preset-cancel {
  min-width: 80px;
  height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  border: 0;
  font-weight: 600;
  background: #f8f8f8;
  color: #1a1a1a;
}
.cinema-preset-cancel { background: #303030; color: #f8f8f8; }
.cinema-preset-confirm:disabled { background: #454545; color: #888; }
.cinema-preset-confirm:not(:disabled):hover { background: #e2e2e2; }
.cinema-preset-error { margin: 0 0 8px; color: #ffacac; }
.cinema-palette-grid {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  padding: 0 0 14px;
  mask-image: linear-gradient(#000 0%, #000 calc(100% - 16px), transparent 100%);
}
.cinema-palette-grid::-webkit-scrollbar { display: none; }
.cinema-palette-card { position: relative; min-width: 0; }
.cinema-palette-choice {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: #c7c7c7;
  text-align: center;
}
.cinema-palette-chip {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: #272727;
  position: relative;
  margin: 0;
}
.cinema-palette-choice.selected .cinema-palette-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #f8f8f8;
  border-radius: inherit;
  pointer-events: none;
}
.cinema-palette-chip img,
.cinema-palette-colour-preview {
  display: block;
  border-radius: 9px;
  width: 100%;
  aspect-ratio: 179 / 102;
  object-fit: cover;
  background: #303030;
}
.cinema-palette-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 3px 4px;
  box-sizing: border-box;
}
.cinema-palette-swatches i { height: 16px; flex: 1 1 0; border-radius: 9px; }
.cinema-palette-swatches i:first-child { flex: 2 1 0; }
.cinema-palette-name {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cinema-palette-choice.selected .cinema-palette-name { color: #f8f8f8; }
.cinema-palette-create-icon {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 179 / 126;
  border-radius: 9px;
  background: #252525;
  color: #7c7c7c;
  position: relative;
}
.cinema-palette-create-icon i {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border: 1.5px solid #818181;
  border-radius: 3px;
  transform-origin: 0 100%;
  transform: translate(-7px,-7px) rotate(var(--angle,0deg));
}
.cinema-palette-create-icon i:nth-child(2) { --angle: 27deg; }
.cinema-palette-create-icon i:nth-child(3) { --angle: 53deg; }
.cinema-palette-create-card .cinema-palette-choice:hover .cinema-palette-create-icon { background: #2d2d2d; }
.cinema-palette-actions {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 28px;
  height: 27px;
  border: 0;
  border-radius: 7px;
  background: #111a;
  color: #fff;
  opacity: 0;
}
.cinema-palette-card:hover .cinema-palette-actions,
.cinema-palette-card:focus-within .cinema-palette-actions,
.cinema-palette-actions[aria-expanded=true] { opacity: 1; }
.cinema-preset-menu {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 150px;
  gap: 2px;
  background: #252525;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 20px #0005;
}
.cinema-palette-edit-menu { right: 6px; top: 35px; }
.cinema-palette-create-menu { left: 50%; top: 70%; transform: translateX(-50%); }
.cinema-preset-menu button {
  color: #e8e8e8;
  text-align: start;
  padding: 8px 10px;
  background: transparent;
  border-radius: 7px;
  border: 0;
}
.cinema-preset-menu button:disabled { color: #666; }
.cinema-preset-menu button:not(:disabled):hover { background: #363636; }
.cinema-palette-main {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.cinema-palette-editor-dim { position: absolute; inset: 0; z-index: 5; background: #0005; }
.cinema-palette-editor-panel {
  position: absolute;
  z-index: 6;
  inset: 8px 8px 8px auto;
  box-sizing: border-box;
  width: min(480px, calc(100% - 16px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 24px;
  border-radius: 12px;
  background: #262626;
}
.cinema-palette-editor-header {
  flex: none;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cinema-palette-editor-header button[aria-label="配色名称"] { border: 0; color: white; background: transparent; padding: 0; text-align: start; }
.cinema-palette-editor-header button[aria-label="配色名称"] span { color: #bdbdbd; }
.cinema-palette-editor-header input,
.cinema-palette-hex-editor input {
  border: 1px solid #636363;
  border-radius: 5px;
  color: white;
  background: #303030;
  height: 28px;
  font: inherit;
  padding: 2px 6px;
}
.cinema-palette-editor-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.cinema-palette-wheel-header { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 9px; color: #bfbfbf; }
.cinema-palette-wheel-modes { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #343434; border-radius: 9px; }
.cinema-palette-wheel-modes button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #888; background: transparent; font-size: 19px; line-height: 1; }
.cinema-palette-wheel-modes button[aria-pressed=true] { color: #ddd; background: #3a3a3a; }
.cinema-palette-wheel {
  position: relative;
  margin-inline: auto;
  width: min(226px, 56vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #808080 2%, #808080d9 13%, #80808066 65%, transparent 100%),
    conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  touch-action: none;
}
.cinema-palette-wheel-surface { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; background: transparent; touch-action: none; }
.cinema-palette-wheel-handle {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid white;
  transform: translate(-50%,-50%);
  touch-action: none;
}
.cinema-palette-wheel-handle.active { width: 24px; height: 24px; z-index: 3; }
.cinema-palette-color-count { margin: 13px 0 16px; color: #bdbdbd; }
.cinema-palette-color-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); grid-auto-rows: auto; gap: 8px; }
.cinema-palette-editor-swatch,
.cinema-palette-empty-color,
.cinema-palette-color-grid .cinema-palette-add-color {
  box-sizing: border-box;
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  position: relative;
  background: #313131;
}
.cinema-palette-editor-swatch { background: var(--swatch); }
.cinema-palette-editor-swatch.primary { grid-column: span 2; grid-row: span 2; }
.cinema-palette-editor-swatch.active { box-shadow: inset 0 0 0 2px white, inset 0 0 0 3px #121212; }
.cinema-palette-swatch-select {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  padding: 7px;
  text-align: start;
  background: transparent;
  color: #222;
  cursor: grab;
}
.cinema-palette-main-color,
.cinema-palette-color-code { position: absolute; left: 8px; }
.cinema-palette-main-color { top: 9px; }
.cinema-palette-color-code { bottom: 8px; font-size: 12px; }
.cinema-palette-editor-swatch:not(.primary) .cinema-palette-color-code { display: none; }
.cinema-palette-swatch-actions { position: absolute; display: flex; flex-direction: column; gap: 2px; right: 2px; top: 2px; opacity: 0; }
.cinema-palette-editor-swatch:hover .cinema-palette-swatch-actions,
.cinema-palette-editor-swatch:focus-within .cinema-palette-swatch-actions { opacity: 1; }
.cinema-palette-swatch-actions button,
.cinema-palette-hex-editor button {
  border: 0;
  border-radius: 5px;
  background: #111c;
  color: white;
  padding: 2px 4px;
}
.cinema-palette-color-grid .cinema-palette-add-color { color: #898989; font-size: 22px; }
.cinema-palette-hex-editor { display: flex; justify-content: end; gap: 6px; margin-top: 4px; }
.cinema-palette-hex-editor input { width: 90px; }
.cinema-palette-delete { flex: 1; display: grid; place-items: center; }

.cinema-style-stage {
  position: relative;
  container-type: inline-size;
  flex: 0 1 320px;
  min-height: 0;
  width: 100%;
  max-height: 320px;
  margin: 28px auto 0;
  overflow: hidden;
  touch-action: pan-y;
  --cinema-slide-step: min(46px, 6.12cqw);
}
.cinema-style-slide {
  box-sizing: border-box;
  display: block;
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: min(568px, 76cqw);
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #292929;
  transform: translateX(-50%);
  transition: transform 220ms ease-out, filter 220ms ease-out;
}
.cinema-style-pick-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.cinema-style-slide > img,
.cinema-style-slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema-style-offset-0 { z-index: 3; }
.cinema-style-offset--1,
.cinema-style-offset-1 { z-index: 2; filter: brightness(.62); }
.cinema-style-offset--2,
.cinema-style-offset-2 { z-index: 1; filter: brightness(.36); }
.cinema-style-offset--1,.cinema-style-offset--2 {
  clip-path: polygon(0 2.6%, .35% 1.1%, 1.1% .7%, 100% 49.5%, 100% 50.5%, 1.1% 99.3%, .35% 98.9%, 0 97.4%);
}
.cinema-style-offset-1,.cinema-style-offset-2 {
  clip-path: polygon(0 49.5%, 98.9% .7%, 99.65% 1.1%, 100% 2.6%, 100% 97.4%, 99.65% 98.9%, 98.9% 99.3%, 0 50.5%);
}
.cinema-style-offset--1 { transform: translateX(calc(-50% - var(--cinema-slide-step))); }
.cinema-style-offset--2 { transform: translateX(calc(-50% - 2 * var(--cinema-slide-step))); }
.cinema-style-offset-1 { transform: translateX(calc(-50% + var(--cinema-slide-step))); }
.cinema-style-offset-2 { transform: translateX(calc(-50% + 2 * var(--cinema-slide-step))); }
@media (prefers-reduced-motion: reduce) {
  .cinema-style-slide { transition: none; }
}
.cinema-style-name { min-height: 20px; margin: 8px 0 0; text-align: center; font-weight: 600; color: inherit; }
.cinema-style-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 15px;
}
.cinema-style-pages { display: flex; align-items: center; gap: 4px; }
.cinema-style-pages button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 26px;
  border: 0;
  padding: 0;
  border-radius: 5px;
  background: transparent;
}
.cinema-style-pages button[aria-pressed=true] { width: 27px; }
.cinema-style-pages button i { background: #797979; border-radius: 5px; width: 5px; height: 5px; }
.cinema-style-pages button[aria-pressed=true] i { background: #f8f8f8; width: 20px; }
.cinema-style-arrow { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #262626; color: #fff; }
.cinema-preset-modal .cinema-style-arrow { font-size: 20px; line-height: 1; }
.cinema-style-arrow:hover { background: #343434; }
@media (max-width: 600px) {
  .canvas-cinema-modal.cinema-preset-modal { padding: 16px; border-radius: 16px; }
  .cinema-palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinema-style-stage { margin-top: 10px; flex-basis: 42vw; }
  .cinema-style-pages { gap: 0; }
}
@media (pointer: coarse) {
  .cinema-palette-actions { opacity: 1; }
}

.generation-grid-placeholder {
    --generation-grid-dot: rgba(100, 72, 184, .30);
    --generation-grid-surface: #f3effa;
    --generation-grid-ink: #59447e;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

html[data-theme="dark"] .generation-grid-placeholder {
    --generation-grid-dot: rgba(187, 156, 251, .36);
    --generation-grid-surface: #201a2b;
    --generation-grid-ink: #decdfc;
}

.generation-grid-placeholder::before,
html[data-theme] .asset-canvas-generation-placeholder.generation-grid-placeholder::before,
html[data-theme] .theme-dark .asset-canvas-generation-placeholder.generation-grid-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transform: none;
    background: radial-gradient(circle, var(--generation-grid-dot) 1.1px, transparent 1.6px) 0 0 / 14px 14px;
    animation: generation-grid-drift 2.8s linear infinite;
}

@keyframes generation-grid-drift {
    from { background-position: 0 0; opacity: .55; }
    50% { opacity: 1; }
    to { background-position: 14px 14px; opacity: .55; }
}

html[data-theme] .workspace-asset-thumb.workspace-generation-preview,
.workspace-asset-thumb.workspace-generation-preview {
    width: 100%;
    display: grid;
    place-items: center;
    color: var(--generation-grid-ink);
    background: var(--generation-grid-surface);
}

.workspace-generation-preview > span {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: inherit;
    background: var(--generation-grid-surface);
    border-radius: 8px;
    font-size: 11px;
}

.workspace-generation-card .workspace-asset-name > b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .generation-grid-placeholder::before,
    html[data-theme] .asset-canvas-generation-placeholder.generation-grid-placeholder::before,
    html[data-theme] .theme-dark .asset-canvas-generation-placeholder.generation-grid-placeholder::before,
    .asset-canvas-generation-placeholder.generation-grid-placeholder > div > svg:last-child {
        animation: none;
    }
}

.canvas-cinema-camera-track .canvas-cinema-camera-card[data-position] {
  transform: translateY(calc(var(--camera-card-offset, 0px) - var(--camera-wheel-offset, 0px)));
}
@media (prefers-reduced-motion: no-preference) {
  .canvas-cinema-camera-track:not([data-scrolling="true"]) .canvas-cinema-camera-card {
    transition: transform 180ms ease-out;
  }
}

.canvas-cinema-kit {
  box-sizing:border-box;
  width:100%;
  max-width:680px;
  padding:8px 10px 8px 8px;
  background:none;
  color:rgba(255,255,255,.6);
}
.canvas-cinema-tool,
.canvas-cinema-collapse {
  border-radius:12px;
  background:rgba(34,34,34,.72);
}
.canvas-cinema-tool {gap:8px;padding:8px 12px 8px 8px}
.canvas-cinema-collapse {width:24px}
.canvas-cinema-tool-slot[data-selected=true] .canvas-cinema-tool {
  padding-right:12px;
  color:#009efa;
}
.canvas-cinema-tool-remove {
  right:-2px;
  top:-2px;
  transform:none;
  display:grid;
  place-items:center;
  width:13px;
  height:13px;
  padding:0;
  border-radius:50%;
  color:#fff;
  background:#121212;
  font:12px/1 system-ui,sans-serif;
  opacity:0;
}
.canvas-cinema-tool-slot:hover .canvas-cinema-tool-remove,
.canvas-cinema-tool-slot:focus-within .canvas-cinema-tool-remove {opacity:1}
.canvas-cinema-tool > .cinema-motion-icon {width:33px;height:28px}
.cinema-motion-modal {padding-inline:0}
.cinema-motion-modal .canvas-cinema-modal-header {margin-inline:24px}
.cinema-motion-header-actions {display:flex;align-items:center;gap:16px}
.cinema-motion-clear {
  border:0;
  border-radius:6px;
  padding:6px 8px;
  background:none;
  color:#bfbfbf;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
.cinema-motion-clear:hover {background:#303030;color:#fff}
.cinema-motion-modal .canvas-cinema-modal-footer {padding:16px 24px 0}
.cinema-motion-scroll {
  height:min(468px,calc(100dvh - 166px));
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#404040 transparent;
  padding-inline:24px;
  mask-image:linear-gradient(#000 92%,transparent);
}
.cinema-motion-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px 12px;
  padding-bottom:24px;
}
.cinema-motion-card {
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  min-width:0;
  padding:0;
  border:0;
  background:none;
  color:#ccc;
  font-family:inherit;
  font-size:12px;
  line-height:18px;
  cursor:pointer;
}
.cinema-motion-thumbnail {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:8px;
  background:#242424;
}
.cinema-motion-thumbnail img,
.cinema-motion-thumbnail video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.cinema-motion-card:is([aria-pressed="true"],:hover,:focus-visible) .cinema-motion-thumbnail::after {
  content:'';
  position:absolute;
  inset:0;
  border:2px solid #fff;
  border-radius:inherit;
  pointer-events:none;
}
.cinema-motion-modal .canvas-cinema-confirm:disabled {background:#444;color:#aaa;cursor:default}
@media(max-width:560px) {
  .cinema-motion-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}

.asset-canvas-cinema-asset {
  min-width: calc(min(240px, 75vw) / var(--canvas-cinema-zoom, 1));
}
.asset-canvas-cinema-asset .canvas-cinema-kit {
  max-width: none;
}
.asset-canvas-cinema-asset .canvas-cinema-tool > span {
  font-size: calc(11px / var(--canvas-cinema-zoom, 1));
  font-weight: 650;
  line-height: 1;
}

.canvas-cinema-kit {
  padding-inline: 8px;
}

.cinema-palette-sample {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 8px;
  background: #313131;
}
.cinema-palette-sample > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinema-palette-sample + .cinema-palette-color-count {
  margin-top: 28px;
}
.cinema-palette-sample-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px;
  color: #ddd;
  background: #363636;
}
.cinema-palette-sample-action:not(:disabled):hover {
  color: #fff;
  background: #494949;
}
.cinema-palette-sample-action:disabled {
  cursor: progress;
  opacity: .75;
}
.cinema-palette-sample > .cinema-palette-sample-action {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  background: #0008;
  opacity: 0;
}
.cinema-palette-sample:hover > .cinema-palette-sample-action,
.cinema-palette-sample:focus-within > .cinema-palette-sample-action,
.cinema-palette-sample[aria-busy="true"] > .cinema-palette-sample-action {
  opacity: 1;
}
@media (hover: none) {
  .cinema-palette-sample > .cinema-palette-sample-action {
    opacity: 1;
  }
}

.asset-canvas-composer .asset-canvas-generate > .ai-color-star > path {
  fill: currentColor;
}

.asset-canvas-draft-node.generating .asset-canvas-generation-placeholder {
  box-sizing: border-box;
  width: 100%;
}

.project-person-picker .character-picker-list > [role="option"] {
  min-width: 0;
}
.project-person-picker .character-picker-list > [role="option"] > span > small,
.project-person-picker .character-picker-list > [role="option"] > .character-status {
  display: none !important;
}
.project-prompt-box .project-cinema-control[aria-pressed="true"] {
  border-color: var(--oa-accent, #7895cc);
}

