:root {
  color-scheme: light;
  --ink: #171916;
  --muted: #6d716b;
  --line: #dedfd9;
  --soft: #f4f5f0;
  --paper: #ffffff;
  --signal: #f4ff54;
  --signal-deep: #dbe82b;
  --danger: #c33c32;
  --shadow: 0 24px 70px rgba(29, 32, 25, .10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button, .drop-zone, select { cursor: pointer; }

.top-signal { position: fixed; inset: 0 0 auto; height: 8px; background: var(--signal); z-index: 30; }
.app-header { height: 78px; padding: 8px 4vw 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eceee8; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 1.05rem; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; min-width: 42px; height: 32px; padding: 0 8px; border-radius: 9px; color: var(--signal); background: var(--ink); letter-spacing: -.07em; }
.system-pill { display: flex; align-items: center; gap: 9px; max-width: 58vw; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.account-button { height: 37px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .76rem; }
.account-button:hover { color: var(--ink); border-color: #a9ada5; }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #a8aca4; box-shadow: 0 0 0 4px #eef0eb; }
.system-pill.ready .status-dot { background: #3ba95c; box-shadow: 0 0 0 4px #e1f4e5; }
.system-pill.error .status-dot { background: var(--danger); box-shadow: 0 0 0 4px #fae9e6; }

.workspace { min-height: calc(100vh - 78px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 430px); }
.stage-panel { position: relative; min-width: 0; padding: clamp(28px, 4vw, 64px); background: #fafbf8; border-right: 1px solid var(--line); }
.stage-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1060px; margin: 0 auto 30px; }
.eyebrow { margin: 0 0 8px; color: #767b72; font-size: .74rem; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(1.75rem, 3vw, 3.3rem); line-height: 1.05; font-weight: 680; }
.duration-chip { flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .82rem; }

.frame-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.drop-zone { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; min-height: 190px; border: 1.5px dashed #b9bdb4; border-radius: 22px; background: #f0f2ec; transition: border-color .2s, transform .2s, box-shadow .2s; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus-within { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(29,32,25,.09); }
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.drop-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.drop-zone.has-image img { opacity: 1; }
.drop-content { display: grid; justify-items: center; gap: 7px; color: #777c74; }
.drop-content strong { color: var(--ink); font-size: 1rem; }
.drop-content small { font-size: .8rem; }
.drop-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: .75rem; font-weight: 800; }
.frame-label { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; color: white; background: rgba(18,20,17,.78); backdrop-filter: blur(10px); font-size: .75rem; opacity: 0; }
.clear-image { display: none; position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: white; background: rgba(18,20,17,.78); font-size: 1.25rem; line-height: 1; }
.drop-zone.has-image .drop-content { opacity: 0; }
.drop-zone.has-image .frame-label { opacity: 1; }
.drop-zone.has-image .clear-image { display: block; }
.motion-rail { display: flex; align-items: center; gap: 5px; padding: 0 8px; color: #9da198; }
.motion-rail span { height: 1px; flex: 1; background: #cdd0c8; }
.motion-rail i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--ink); background: var(--signal); font-size: .65rem; font-style: normal; font-weight: 850; }

.composer-panel { padding: 34px 30px 40px; background: var(--paper); overflow-y: auto; }
.composer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.composer-head h2 { font-size: 1.65rem; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--muted); font-size: 1.15rem; }
.icon-button:hover { color: var(--ink); border-color: #a9ada5; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > span, .field legend { color: #353832; font-size: .9rem; font-weight: 680; }
.field em { margin-left: 4px; color: #969b91; font-size: .72rem; font-style: normal; font-weight: 500; }
.field small { color: #8a8f85; font-size: .75rem; line-height: 1.45; }
.field code { color: #555b50; background: #f1f2ed; border-radius: 4px; }
textarea, input[type="text"], input[type="number"], select { width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fbfcf9; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { padding: 13px 14px; resize: vertical; min-height: 82px; line-height: 1.62; font-size: .9rem; }
input[type="text"], input[type="number"], select { height: 44px; padding: 0 12px; font-size: .88rem; }
textarea:focus, input:focus, select:focus { border-color: #9ca82a; box-shadow: 0 0 0 3px rgba(224,236,48,.22); }
.choice-field { padding: 0; border: 0; margin-inline: 0; }
.choice-field legend { margin-bottom: 9px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcf9; font-size: .86rem; font-weight: 700; }
.segmented span small { font-size: .7rem; font-weight: 500; }
.segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: white; }
.segmented input:checked + span small { color: #c6cabf; }
.compact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.native-note { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; padding: 12px 13px; border-radius: 12px; background: #f6f8e4; }
.native-note .wave-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--signal); font-size: 1.35rem; font-weight: 800; }
.native-note div { display: grid; gap: 2px; }
.native-note strong { font-size: .8rem; }
.native-note small { color: #74796e; font-size: .7rem; }
.create-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; color: white; background: var(--ink); font-weight: 730; box-shadow: 0 12px 28px rgba(22,24,21,.18); transition: transform .2s, background .2s; }
.create-button:hover { transform: translateY(-2px); background: #2b2e29; }
.create-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.create-button .spark { color: var(--signal); font-size: 1.15rem; }
.create-button kbd { margin-left: auto; margin-right: 13px; padding: 4px 7px; border-radius: 6px; color: #b8bdb1; background: #2b2e29; font-family: inherit; font-size: .68rem; font-weight: 500; }
.stop-button { width: 100%; height: 44px; margin-top: 10px; border: 1px solid #edc9c4; border-radius: 12px; color: var(--danger); background: #fff7f5; }
.form-error { min-height: 20px; margin: 9px 0 0; color: var(--danger); font-size: .8rem; line-height: 1.45; }

.queue-panel { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf9; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.queue-head .eyebrow { margin-bottom: 4px; }
.queue-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.025em; }
.queue-head > span { display: grid; place-items: center; min-width: 31px; height: 27px; padding: 0 8px; border-radius: 999px; color: var(--ink); background: var(--signal); font-size: .75rem; font-weight: 800; }
.queue-head-actions { display: flex; align-items: center; gap: 7px; }
.queue-head-actions > span { display: grid; place-items: center; min-width: 31px; height: 27px; padding: 0 8px; border-radius: 999px; color: var(--ink); background: var(--signal); font-size: .75rem; font-weight: 800; }
#notificationButton { height: 29px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: .68rem; }
#notificationButton[aria-pressed="true"] { color: #276839; border-color: #b9d9bf; background: #eff8f1; }
.queue-help { margin: 7px 0 13px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.queue-list { display: grid; gap: 7px; }
.queue-empty { margin: 3px 0; color: #979c93; font-size: .78rem; }
.queue-item { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 11px; color: inherit; background: white; text-align: left; }
.queue-item:hover, .queue-item.active { border-color: #c8ccc3; }
.queue-item.active { box-shadow: inset 3px 0 0 var(--signal-deep); }
.queue-media { position: relative; width: 48px; height: 42px; overflow: hidden; border-radius: 8px; background: #e9ebe5; }
.queue-thumb { width: 100%; height: 100%; object-fit: cover; }
.queue-status { position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; background: #a9aea5; }
.queue-item[data-status="running"] .queue-status { background: #3ba95c; box-shadow: 0 0 0 3px #e1f4e5; }
.queue-item[data-status="queued"] .queue-status { background: #d5a929; box-shadow: 0 0 0 3px #fbf1cf; }
.queue-item[data-status="completed"] .queue-status { background: #74806d; }
.queue-item[data-status="failed"] .queue-status, .queue-item[data-status="interrupted"] .queue-status { background: var(--danger); }
.queue-copy { min-width: 0; display: grid; gap: 3px; }
.queue-copy strong { overflow: hidden; font-size: .78rem; font-weight: 720; white-space: nowrap; text-overflow: ellipsis; }
.queue-copy small { color: var(--muted); font-size: .68rem; }
.queue-select { min-width: 0; display: block; padding: 2px 0; border: 0; color: inherit; background: transparent; text-align: left; }
.queue-item-side { display: grid; justify-items: end; gap: 5px; }
.queue-item-side > em { color: #777c74; font-size: .7rem; font-style: normal; white-space: nowrap; }
.queue-mini-actions { display: flex; gap: 4px; }
.queue-mini-actions button { width: 27px; height: 25px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fbfcf9; font-size: .7rem; }
.queue-mini-actions button:hover { color: var(--ink); border-color: #a9ada5; }
.queue-mini-actions .queue-delete { width: auto; padding: 0 7px; color: var(--danger); }
.queue-mini-actions .queue-delete:hover { color: #a12222; border-color: #dfaaaa; background: #fff0f0; }
.queue-mini-actions button:disabled { opacity: .5; cursor: wait; }
.queue-item.dragging { opacity: .48; }
.queue-item.drag-over { border-color: #aeb925; background: #fbfde9; }
.selected-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.selected-actions span { margin-right: auto; color: var(--muted); font-size: .7rem; }
.selected-actions button { height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: .7rem; }
.selected-actions .delete-selected { color: var(--danger); border-color: #dfaaaa; background: #fff7f5; }
.selected-actions .delete-selected:hover { color: #971d1d; background: #fff0f0; }

.progress-card, .result-view { max-width: 850px; margin: 70px auto 0; }
.progress-card { display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.progress-orbit { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--signal) 0 25%, #e7e9e2 25% 100%); animation: spin 1.8s linear infinite; }
.progress-orbit::before { content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: white; }
.progress-orbit span { position: relative; font-size: .75rem; font-weight: 850; animation: spin 1.8s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-copy h2 { font-size: 1.3rem; }
.progress-copy > p:not(.eyebrow) { margin: 7px 0 12px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.elapsed { display: flex; align-items: center; gap: 8px; color: #747970; font-size: .75rem; }
.elapsed i { width: 4px; height: 4px; border-radius: 50%; background: #a5aaa0; }
.progress-copy { min-width: 0; flex: 1; }
.progress-track { position: relative; width: 100%; height: 9px; overflow: hidden; border-radius: 999px; background: #e8eae4; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--signal-deep), var(--signal)); transition: width .5s ease; }
.progress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.progress-stats div { display: grid; gap: 3px; }
.progress-stats span { color: #8a8f85; font-size: .68rem; }
.progress-stats strong { font-size: .82rem; font-weight: 720; }
.video-shell { min-height: 300px; display: grid; place-items: center; overflow: hidden; border-radius: 20px 20px 0 0; background: #151714; box-shadow: var(--shadow); }
.result-view video { display: block; width: 100%; max-height: 62vh; background: #0e100d; }
.preview-button { display: grid; justify-items: center; gap: 8px; padding: 30px; border: 0; color: white; background: transparent; text-align: center; }
.preview-button > span { display: grid; place-items: center; width: 58px; height: 58px; padding-left: 4px; border-radius: 50%; color: var(--ink); background: var(--signal); font-size: 1.15rem; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.preview-button strong { font-size: .95rem; }
.preview-button small { color: #9fa59a; font-size: .75rem; font-weight: 400; }
.preview-button:hover > span { transform: scale(1.05); }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; background: white; }
.result-actions div { display: grid; gap: 3px; }
.result-actions strong { font-size: .9rem; }
.result-actions span { color: var(--muted); font-size: .75rem; }
.outline-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 650; }

.log-panel { margin-top: 8px; border-top: 1px solid var(--line); }
.log-panel summary { padding: 16px 0; color: var(--muted); cursor: pointer; font-size: .8rem; }
.log-panel summary span { float: right; display: grid; place-items: center; min-width: 23px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); font-size: .68rem; }
.log-panel pre { max-height: 260px; overflow: auto; margin: 0; padding: 12px; border-radius: 10px; color: #cfd4c8; background: #1a1c19; white-space: pre-wrap; word-break: break-word; font: .7rem/1.55 Consolas, monospace; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100vw - 30px); padding: 11px 16px; border-radius: 11px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .82rem; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.login-page { min-height: 100vh; background: #f7f8f3; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.login-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 8vw, 120px); background: var(--ink); color: white; }
.login-brand .brand-mark { width: 52px; height: 40px; margin-bottom: 70px; background: var(--signal); color: var(--ink); }
.login-brand .eyebrow { color: #afb4a9; }
.login-brand h1 { max-width: 720px; font-size: clamp(2.6rem, 6vw, 6.4rem); line-height: .98; }
.login-brand > p:last-child { max-width: 560px; margin: 28px 0 0; color: #bfc4b8; font-size: 1rem; line-height: 1.7; }
.login-card { width: min(430px, calc(100% - 40px)); margin: auto; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.login-card h2 { margin-bottom: 30px; font-size: 2rem; }
.login-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf9; outline: none; }
.login-card input:focus { border-color: #9ca82a; box-shadow: 0 0 0 3px rgba(224,236,48,.22); }
.login-button { position: static !important; width: 100% !important; margin-top: 6px; }
.login-note { margin: 8px 0 0; color: #959a91; text-align: center; font-size: .72rem; }

@media (min-width: 1181px) {
  .composer-panel { padding-bottom: 220px; }
  .creation-actions {
    position: fixed;
    right: 30px;
    bottom: 22px;
    z-index: 20;
    width: 370px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 28px rgba(22,24,21,.12);
  }
  .creation-actions .create-button, .creation-actions .stop-button { position: static; width: 100%; margin: 0; box-shadow: none; }
}

.creation-actions { display: flex; flex-direction: column; gap: 10px; }
.creation-actions .stop-button { margin-top: 0; flex-shrink: 0; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
  .stage-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .composer-panel { max-width: 760px; width: 100%; margin: 0 auto; }
}

@media (max-width: 620px) {
  .app-header { height: 70px; padding-inline: 18px; }
  .brand > span:last-child { display: none; }
  .system-pill { max-width: 72vw; font-size: .72rem; }
  .account-button { width: 38px; padding: 0; font-size: 0; }
  .account-button::after { content: "退出"; font-size: .7rem; }
  .stage-panel { padding: 28px 18px 34px; }
  .stage-head { align-items: start; }
  .duration-chip { display: none; }
  .frame-grid { grid-template-columns: 1fr; gap: 10px; }
  .motion-rail { min-height: 34px; transform: rotate(90deg); justify-self: center; width: 65px; }
  .drop-zone { min-height: 170px; border-radius: 17px; }
  .composer-panel { padding: 28px 18px 40px; }
  .compact-row { grid-template-columns: 1fr; gap: 0; }
  .progress-card { margin-top: 32px; align-items: flex-start; }
  .progress-orbit { width: 56px; height: 56px; }
  .progress-orbit::before { width: 44px; height: 44px; }
  .progress-stats { grid-template-columns: 1fr 1fr; }
  .video-shell { min-height: 220px; }
  .queue-panel { padding: 15px; }
  .login-shell { display: block; padding: 72px 0 40px; }
  .login-brand { min-height: auto; padding: 34px 24px 56px; background: transparent; color: var(--ink); }
  .login-brand .brand-mark { margin-bottom: 34px; }
  .login-brand h1 { font-size: 2.5rem; }
  .login-brand > p:last-child { color: var(--muted); }
  .login-card { margin-top: -24px; padding: 26px 22px; }
}
:root { --mode-accent: #f4ff54; }
.mode-picker { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.mode-picker legend { font-size: 13px; margin-bottom: 10px; }
.mode-picker p { color: #727680; font-size: 13px; line-height: 1.6; }
.mode-picker .segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.frame-grid.single-frame { grid-template-columns: minmax(0, 1fr); }
.frame-grid.single-frame .drop-zone { width: 100%; max-width: 540px; justify-self: center; }
.text-mode-empty { padding: 65px 24px; text-align: center; background: #f7f8fa; border: 1px dashed #d8dbe0; border-radius: 18px; font-size: 22px; line-height: 2; }
.text-mode-empty small { font-size: 13px; color: #727680; }
[hidden] { display: none !important; }
:root { color-scheme: light; }
.page-nav { display:flex; gap:8px; padding: 12px 4%; border-bottom:1px solid #e6e7eb; }
.page-nav a { padding:10px 22px; border-radius:12px; color:#5e626d; text-decoration:none; }
.page-nav a[aria-current="page"] { background:#181a22; color:white; }
.completed-page { max-width:1450px; margin:0 auto; padding:32px 4%; }
.completed-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
.completed-head h1, .completed-head h2 { margin:0 0 8px; }
.completed-head p { color:#767b85; font-size:14px; }
.completed-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.completed-card { border:1px solid #e5e6eb; border-radius:18px; overflow:hidden; padding-bottom:18px; background:white; }
.completed-cover { display:flex; width:100%; height:190px; align-items:center; justify-content:center; background:#f2f3f6; border:0; cursor:pointer; position:relative; }
.completed-cover img { width:100%; height:100%; object-fit:contain; }
.completed-cover span { position:absolute; padding:8px 16px; border-radius:20px; background:#181a22d9; color:white; }
.completed-card h3, .completed-card p { margin:14px 18px; overflow-wrap:anywhere; }
.completed-card p { color:#777; font-size:12px; }
.completed-card-actions { display:flex; gap:10px; margin:0 18px; flex-wrap:wrap; }
.completed-card-actions button, .completed-card-actions a, .gallery-pagination button, #closePreview { padding:8px 14px; border:1px solid #dadde3; background:white; color:#20232c; border-radius:9px; cursor:pointer; text-decoration:none; }
.gallery-pagination { display:flex; align-items:center; justify-content:center; gap:20px; margin:28px 0; }
.gallery-pagination button:disabled { opacity:.35; cursor:default; }
.preview-dialog { width:min(850px,92vw); max-height:90vh; overflow:auto; border:0; padding:24px; border-radius:20px; }
.preview-dialog::backdrop { background:#1119; }
.preview-dialog video { max-height:65vh; }
@media(max-width:900px) { .completed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .completed-grid { grid-template-columns:minmax(0,1fr); } .completed-head { align-items:flex-start; flex-wrap:wrap; } }
.create-button { flex-wrap: wrap; padding: 12px; }
.create-button kbd { flex-basis: 100%; margin: 0; text-align: center; white-space: normal; }
.queue-copy small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.6; }
.completed-card-actions .delete-job { color: #ba3030; margin-left: auto; }
.completed-card-actions .delete-job:hover { background: #fff0f0; border-color: #dfaaaa; }
.completed-card-actions .delete-job:disabled { opacity: .5; cursor: wait; }
