.cup-video-workspace{--video-soft:color-mix(in srgb,var(--accent) 9%,var(--panel));padding-top:0}
.cup-video-root>.page-head{padding:34px var(--studio-gutter) 28px;align-items:flex-start;gap:24px}.cup-video-root>.page-head h1{font-size:32px;line-height:1.25;font-weight:650;letter-spacing:-.8px;margin:9px 0 12px;color:var(--text)}.cup-video-root>.page-head p{font-size:14px;line-height:1.75;color:var(--muted);margin:0}.cup-video-root>.page-head .eyebrow{font-size:10px;line-height:1.5;letter-spacing:1.7px;color:var(--accent)}
.cup-video-access{margin:0 32px 22px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;align-items:center;justify-content:space-between;gap:20px}
.cup-video-access strong{display:block;font-size:14px;font-weight:600;margin-bottom:6px}.cup-video-access p{color:var(--muted);line-height:1.7;margin:0;font-size:12px;max-width:680px}.cup-video-access form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cup-video-access input{width:210px;max-width:100%;background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:10px 12px;color:var(--text)}
.cup-video-pending{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.cup-video-pending small{display:block;font:10px/1.5 monospace;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.cup-video-pending button{flex-shrink:0}
.cup-video-access .cup-video-error{width:100%;color:#e89f99;font-size:12px}.cup-video-workspace .settings-body{padding:22px}.cup-video-workspace .field{margin-bottom:22px}.cup-video-workspace .field-label{font-size:12px;color:var(--text)}
.cup-video-workspace .settings-foot p{line-height:1.7}.cup-video-workspace .settings-foot .cup-video-cost{color:var(--accent);margin:0 0 12px;font-size:12px}
.cup-video-workspace .cup-video-help{color:var(--muted);font-size:11px;line-height:1.7;margin:9px 0 0}.cup-video-workspace select{min-height:42px}.cup-video-workspace .cup-video-model-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:10px}
.cup-video-health{display:inline-flex;gap:6px;align-items:center}.cup-video-health::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--muted)}.cup-video-health[data-health=green]::before{background:#70c6a3}.cup-video-health[data-health=yellow]::before{background:#d9b575}.cup-video-health[data-health=red]::before{background:#e48c8c}
.cup-video-workspace .cup-video-inline{border:0;background:none;padding:0;color:var(--accent);font-size:11px;text-decoration:underline;text-underline-offset:3px}.cup-video-workspace .cup-video-inline:disabled{opacity:.5;text-decoration:none}
.cup-video-workspace .preview-board{min-height:370px;padding:28px;aspect-ratio:16/10}.cup-video-workspace .preview-board.has-video{display:flex;align-items:center;padding:0;background:#05070b;position:relative}.cup-video-workspace video{width:100%;height:100%;max-height:580px;object-fit:contain;border-radius:12px}.cup-video-workspace .preview-board h2{font-size:22px;margin:18px 0 9px}.cup-video-workspace .preview-board p{max-width:510px;line-height:1.8}
.cup-video-empty-mark{width:64px;height:64px;border:1px solid var(--line);border-radius:20px;display:grid;place-items:center;font-size:27px;color:var(--accent);background:var(--video-soft)}.cup-video-waiting .cup-video-empty-mark{animation:cup-video-breathe 2.5s ease-in-out infinite}.cup-video-preview-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 2px;color:var(--muted);font-size:11px}.cup-video-preview-actions button,.cup-video-preview-actions a{border:1px solid var(--line);border-radius:7px;padding:8px 12px;background:var(--panel);color:var(--text)}
.cup-video-note{padding:14px 17px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px;line-height:1.8;background:var(--panel);margin:14px 0}.cup-video-note strong{color:var(--text);font-weight:500}.cup-video-list{display:grid;gap:0}.cup-video-task{width:100%;background:transparent;border:0;border-top:1px solid var(--line);display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;text-align:left;color:var(--text)}.cup-video-task:hover,.cup-video-task[aria-pressed=true]{background:var(--video-soft)}.cup-video-task:first-child{border-top:0}.cup-video-task strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500}.cup-video-task small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.cup-video-task .status-tag{font-size:10px}.cup-video-task-icon{color:var(--accent);font-size:21px}.cup-video-history-wrap{margin-bottom:25px}.cup-video-task-error{color:#e89f99!important}.cup-video-ref-limit{min-height:18px}.cup-video-alert{color:#e89f99;font-size:12px;line-height:1.7;margin:8px 0 0}.cup-video-workspace .ratio-choice{min-width:50px}.cup-video-workspace #prompt{min-height:150px}.cup-video-history-only{margin:0 32px 25px}.cup-video-history-only h2{font-size:18px;font-weight:600;margin:0 0 7px}.cup-video-history-only>p{font-size:12px;color:var(--muted);margin:0 0 18px}.cup-video-history-only .history-panel{overflow:hidden}
@keyframes cup-video-breathe{0%,100%{opacity:.55}50%{opacity:1}}
.cup-reduced-motion .cup-video-empty-mark{animation:none}
@media(max-width:900px){.cup-video-access{align-items:flex-start;flex-direction:column}.cup-video-access form{width:100%}.cup-video-access input{flex:1}.cup-video-workspace .preview-board{min-height:300px}}
@media(max-width:760px){.cup-video-access{margin:0 16px 18px;padding:16px}.cup-video-history-only{margin:0 16px 20px}.cup-video-workspace .settings-body{padding:18px}.cup-video-workspace .preview-board{aspect-ratio:auto;min-height:290px}.cup-video-workspace .preview-board.has-video{min-height:200px}.cup-video-task{padding:14px 12px;gap:8px}.cup-video-task .status-tag{max-width:90px;white-space:normal;text-align:right}}

.cup-video-workspace .cup-video-alert:empty{display:none}
.cup-video-record-card .cup-video-record-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;min-width:0;max-width:100%;margin-inline-start:auto}
body .studio-main #page .cup-video-record-card .cup-record-card-footer{flex-wrap:wrap;gap:5px 7px}
.cup-video-record-card .cup-record-open{padding:0}
body .studio-main #page .cup-video-record-card[data-status=deleted]{cursor:default}
.cup-video-record-card .cup-video-record-action{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 7px;border:1px solid var(--line);border-radius:7px;background:var(--studio-field);color:var(--text);font-size:11px;line-height:1.3;white-space:nowrap;text-decoration:none}
.cup-video-record-card .cup-video-record-action:hover:not(:disabled){background:var(--raised);border-color:var(--accent)}
.cup-video-record-card :is(.cup-video-record-action,.cup-record-open):focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cup-video-record-feedback{padding:0 10px 10px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.cup-video-record-feedback p{margin:0 0 6px}
.cup-video-record-feedback [hidden]{display:none}

.cup-record-thumb .cup-video-record-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cup-record-thumb :is(.cup-video-record-cover, .cup-video-cover-unavailable)[hidden] {
  display: none;
}
.cup-record-thumb:has(.cup-video-record-cover:not([hidden])) .cup-record-play {
  color: #fff;
  background: #11141680;
  border-color: #ffffff90;
}
body .studio-main #page .cup-record-thumb .cup-video-cover-unavailable {
  position: absolute;
  top: calc(50% + 30px);
  inset-inline: 0;
  text-align: center;
  font-size: 12px;
  color: #c6ced7;
}
