/* Quiet app chrome and controls for the work itself. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.app-footer { display: flex; gap: 20px; padding: 24px; margin: 32px auto 0; max-width: 1180px; border-top: 1px solid #242424; font: 13px Inter,sans-serif; color: #999; }
.app-header { position: sticky; top: 0; z-index: 40; height: 56px; padding: 0 24px; display: flex; gap: 28px; align-items: center; background: #000; border-bottom: 1px solid #242424; font: 14px Inter,sans-serif; }
.app-brand { display: flex; gap: 9px; align-items: center; font-weight: 700; font-size: 18px; color: #eee; }
.app-header nav { display: flex; gap: 24px; }
.app-header nav a { color: #999; }
.app-account-link { margin-left: auto; color: #eee; }
.project-tools { display: flex; gap: 12px; margin: 0 0 22px; }
.project-tools[hidden] { display: none; }
.project-tools input { flex: 1; max-width: 360px; }
.project-tools input, .project-tools select, .density-setting select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.project-row { display: flex; gap: 12px; padding: 16px 8px; border-radius: 0; }
.project-open { flex: 1; display: grid; grid-template-columns: 144px minmax(0,1fr) 160px 140px; gap: 20px; align-items: center; min-width: 0; }
.project-cover { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.project-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-cover span { font-size: 11px; color: var(--text-faint); text-align: center; padding: 8px; }
.project-menu { position: relative; align-self: center; }
.project-menu summary { list-style: none; cursor: pointer; padding: 10px; color: var(--text-dim); border-radius: 5px; }
.project-menu summary::-webkit-details-marker { display: none; }
.project-menu summary:hover { background: var(--surface-2); }
.project-menu > div { position: absolute; right: 0; z-index: 30; width: 160px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px; }
.project-menu button, .option-action { display: block; width: 100%; text-align: left; padding: 10px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; background: transparent; border: 0; border-radius: 4px; }
.project-menu button:hover, .option-action:hover { background: var(--surface-2); }
.project-menu .option-danger { color: var(--danger); }
.ux-dialog { width: min(460px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); }
.ux-dialog::backdrop { background: rgba(0,0,0,.65); }
.ux-dialog h2 { margin: 0 0 16px; font-size: 20px; }
.ux-dialog p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.ux-dialog label { display: block; margin: 16px 0 8px; font-size: 13px; }
.ux-dialog input { width: 100%; }
.ux-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.ux-help { font-size: 12px !important; }
.draft-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--text-dim); font-size: 13px; }
.draft-notice { margin-bottom: 10px; }
.draft-notice #draft-status { flex: 1 1 220px; overflow-wrap: anywhere; }
.retrieval-return { margin: 8px 0; color: var(--text-dim); font-size: 12px; }
.draft-notice[hidden], .retrieval-return[hidden] { display: none; }
#resume-review { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-error { color: var(--danger) !important; }
.replacement-thumb { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #000; }
.clip-alternative { display: inline-block; align-self: flex-start; margin: 0; }
.workspace-page .alt-queue .clip-alternative { display: none; }
.export-backups { display: flex !important; gap: 10px; align-items: center; }
.export-backups input { width: auto; }
.ux-dialog select { width: 100%; }
.ux-dialog-actions { flex-wrap: wrap; }
.scene-review { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.scene-action { border: 0; min-height: 28px; padding: 6px 2px; background: none; color: var(--text-dim); font: inherit; font-size: 12px; cursor: pointer; }
.scene-action:hover, .scene-action[aria-pressed="true"] { color: var(--text); }
.scene-action:disabled { opacity: .45; cursor: wait; }
.scene-action-status { font-size: 12px; color: var(--text-dim); }
.scene-menu { position: relative; display: inline-block; }
.scene-menu summary { list-style: none; }
.scene-menu summary::-webkit-details-marker { display: none; }
.scene-menu[open] { z-index: 25; }
.scene-menu > div { position: absolute; z-index: 25; left: 0; width: 200px; max-width: calc(100vw - 48px); padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.scene-menu button { display: block; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.scene-menu button:hover { background: var(--surface-2); }
.scene-menu button:disabled { color: var(--text-faint); cursor: default; }
.editorial-source { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0; padding: 0; background: transparent; border: 0; min-width: 0; }
.editorial-source a { color: var(--text); text-decoration: underline; overflow-wrap: anywhere; }
.editorial-source span { color: var(--text-dim); font-size: 12px; }
.workspace-page .editorial-source.clip-card { width: auto; border: 0; box-shadow: none; border-radius: 0; }
.clip-preview { display: block; padding: 0; border: 0; width: 100%; color: inherit; cursor: pointer; text-align: inherit; background: transparent; }
.clip-preview:focus-visible, .project-open:focus-visible, .scene-action:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.clip-score { font-size: 10px; }
.export-format { font-size: 10px; opacity: .7; }
.retrieval-freshness { display: block; margin-top: 4px; color: var(--text-dim); font-size: 12px; }
.account-sync:disabled { color: var(--text-dim); cursor: default; }
.toast-error { border-color: var(--danger); }
@media (max-width: 800px) { .scene-action { min-height: 44px; padding: 10px 2px; } .account-sync[data-state="idle"] { display: none; } .account-sync { max-width: 86px; font-size: 11px; } }
.new-project-container .composer { row-gap: 0; }
.new-project-container #script-input { min-height: 180px; }
.new-project-container .field { margin-bottom: 18px; }
.new-project-container .choice-card { padding: 10px 12px; }
.new-project-container .sample-prompt { margin-top: 8px; }
.density-setting { display: flex; align-items: center; gap: 14px; }
.density-setting label { margin: 0; }
.density-setting select { flex: 1; }
.workspace-page #selected-only-toggle[hidden], .workspace-page #clear-selections[hidden] { display: none; }
.mobile-only { display: none; }
.mobile-only[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .project-open { grid-template-columns: 120px minmax(0,1fr) 140px; }
  .project-open .project-when { display: none; }
}
@media (max-width: 800px) {
  .mobile-only { display: block; }
  .workspace-page .workspace-shell { padding-top: 16px; }
  .workspace-page .workspace-head { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .workspace-page .workspace-actions { gap: 6px; }
  .workspace-page .stat-secondary, .workspace-page #stat-edited, .workspace-page #stat-scenes, .workspace-page #density-toggle, .workspace-page #next-attention, .workspace-page #resume-review { display: none; }
  .workspace-page .ws-crumbs h1 { max-width: calc(100vw - 105px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-page #resume-review { font-size: 11px; padding: 6px; }
  .workspace-page .workspace-actions .btn { font-size: 12px; padding: 7px 9px; }
  .workspace-page .scene { padding: 20px 0; }
}
@media (max-width: 760px) {
  .project-open { grid-template-columns: 104px minmax(0,1fr); gap: 10px 14px; }
  .project-cover { grid-row: 1 / span 2; }
  .project-open .project-status { grid-column: 2; }
  .project-open .meta { font-size: 12px; }
  .project-tools { gap: 8px; }
  .project-tools input { min-width: 0; width: 100%; }
  .project-tools select { max-width: 145px; }
  .app-header { padding: 0 16px; gap: 18px; }
  .app-header nav { gap: 14px; font-size: 12px; }
  .app-brand { font-size: 16px; }
  .app-account-link { font-size: 12px; }
  .density-setting { display: block; }
  .density-setting label { margin-bottom: 8px; }
  .density-setting select { width: 100%; }
}
/* Free-to-use pack offer inside the shot-list export dialog. */
.export-free-pack { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border, #e5e5e5); }
.export-free-pack .btn { margin-top: 8px; }
.export-taken { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border, #e5e5e5); }
.export-taken summary { cursor: pointer; font-weight: 600; }
.export-taken ol { margin: 8px 0 0; padding-left: 20px; max-height: 220px; overflow-y: auto; }
.export-taken li { margin: 4px 0; overflow-wrap: anywhere; }
.export-taken-tag { font-size: 11px; color: var(--text-dim, #777); }
