:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #14213d; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 32px auto; }
.hero { display: block; margin-bottom: 24px; }
.eyebrow { color: #4f46e5; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: .96; margin: 0; letter-spacing: -0.06em; }
.lead { color: #556070; font-size: 18px; line-height: 1.7; max-width: 760px; }
.panel { background: rgba(255,255,255,.86); border: 1px solid #e5e9f2; box-shadow: 0 16px 40px rgba(15, 23, 42, .08); border-radius: 24px; padding: 24px; margin-bottom: 20px; }
.warning { background: #fff8e6; border-color: #ffe4a6; color: #624400; }
label { display: block; margin: 18px 0 8px; font-weight: 800; }
textarea { width: 100%; min-height: 110px; border-radius: 18px; border: 1px solid #d8deea; padding: 16px; font-size: 16px; resize: vertical; }
button { border: 0; border-radius: 16px; padding: 14px 18px; font-size: 16px; font-weight: 800; cursor: pointer; background: #111827; color: white; margin-top: 16px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost { background: #eef2ff; color: #3730a3; margin-top: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform { border: 1px solid #d8deea; border-radius: 999px; padding: 10px 14px; background: white; color: #263244; cursor: pointer; }
.platform.active { background: #4f46e5; color: white; border-color: #4f46e5; }
.message { color: #4f46e5; min-height: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; }
#queueHint { color: #6b7280; }
.jobs { display: grid; gap: 14px; margin-top: 16px; }
.job { border: 1px solid #e5e9f2; border-radius: 20px; padding: 18px; background: #fbfcff; }
.job-top { display: flex; justify-content: space-between; gap: 16px; }
.job-title { margin: 0 0 6px; }
.job-meta { margin: 0; color: #6b7280; word-break: break-all; }
.badge { align-self: start; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 800; }
.progress { height: 10px; background: #e8edf6; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; }
.progress div { height: 100%; width: 0%; background: #4f46e5; transition: width .25s ease; }
.job-message { color: #334155; margin: 8px 0; }
.job-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.job-primary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.job-actions a, .job-actions button { display: inline-block; margin: 0; text-decoration: none; border-radius: 14px; padding: 12px 14px; background: #16a34a; color: white; font-weight: 800; }
.job-actions > .danger-action { margin-left: auto; padding: 9px 11px; font-size: 13px; opacity: .82; white-space: nowrap; }
.hidden { display: none !important; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .shell { margin: 16px auto; } .job-actions { flex-wrap: nowrap; } .job-primary-actions { flex-wrap: nowrap; } .job-actions a, .job-actions button { padding: 10px 11px; font-size: 14px; } .job-actions > .danger-action { padding: 8px 9px; font-size: 12px; } }
button.small { padding: 10px 12px; font-size: 14px; margin-top: 0; }
.job.highlight { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.badge[data-status="ready"] { background: #dcfce7; color: #166534; }
.badge[data-status="failed"] { background: #fee2e2; color: #991b1b; }
.badge[data-status="cancelled"], .badge[data-status="deleted"] { background: #f1f5f9; color: #475569; }
.job-actions .secondary-action { background: #eef2ff; color: #3730a3; }
.job-actions .danger-action { background: #f1f5f9; color: #475569; }
.section-head > div { display: grid; gap: 6px; }
.preview-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.preview-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.812); }
.preview-panel { position: relative; width: min(960px, 100%); max-height: min(760px, calc(100vh - 40px)); display: grid; grid-template-rows: auto minmax(220px, 1fr) auto; background: #ffffff; border: 1px solid #e5e9f2; border-radius: 20px; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); overflow: hidden; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e5e9f2; }
.preview-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.preview-close { margin: 0; padding: 9px 12px; border-radius: 12px; background: #eef2ff; color: #3730a3; font-size: 14px; }
.preview-frame { min-height: 220px; background: #000; display: grid; place-items: center; }
.preview-frame video, .preview-frame iframe { width: 100%; height: min(62vh, 560px); border: 0; background: #000; }
.preview-frame video { object-fit: contain; }
.preview-fallback { margin: 0; padding: 24px; color: #e5e7eb; text-align: center; }
.preview-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid #e5e9f2; }
.preview-actions a { margin: 0; text-decoration: none; border-radius: 14px; padding: 11px 14px; background: #16a34a; color: white; font-weight: 800; }
.preview-actions .secondary-action { background: #eef2ff; color: #3730a3; }
@media (max-width: 560px) { .preview-modal { padding: 12px; } .preview-panel { max-height: calc(100vh - 24px); border-radius: 16px; } .preview-frame video, .preview-frame iframe { height: 52vh; } .preview-actions { justify-content: stretch; } .preview-actions a { flex: 1; text-align: center; } }
