:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: #172033; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: #111827; color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.brand span { display: block; color: #7dd3fc; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.brand strong { display: block; font-size: 22px; margin-top: 4px; }
.nav { display: grid; gap: 8px; }
.nav button, .logout { border: 0; border-radius: 8px; padding: 11px 12px; text-align: left; color: #cbd5e1; background: transparent; cursor: pointer; font-size: 15px; }
.nav button.active, .nav button:hover, .logout:hover { background: #1f2937; color: #fff; }
.logout { margin-top: auto; }
.content { padding: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 4px; color: #64748b; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; }
h2 { font-size: 18px; }
.badge { background: #e0f2fe; color: #075985; border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel, .metric { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.compact-form { margin-bottom: 20px; }
label { display: grid; gap: 6px; margin-bottom: 12px; color: #475569; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 10px 11px; font: inherit; color: #172033; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
button { border: 0; border-radius: 7px; padding: 11px 14px; background: #2563eb; color: #fff; font: inherit; cursor: pointer; }
button.secondary { background: #e2e8f0; color: #172033; }
button.danger { background: #dc2626; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric span { display: block; color: #64748b; font-size: 13px; }
.metric strong { display: block; font-size: 28px; margin-top: 8px; }
.list { display: grid; gap: 10px; }
.item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; display: grid; gap: 8px; }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-title { font-weight: 700; }
.item-meta { color: #64748b; font-size: 13px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.checks label { display: flex; align-items: center; gap: 6px; margin: 0; }
.checks input { width: auto; }
.message { margin-top: 20px; background: #0f172a; color: #dbeafe; border-radius: 8px; padding: 14px; white-space: pre-wrap; }
.hidden { display: none !important; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { position: static; } .grid-two, .cards { grid-template-columns: 1fr; } }
.security-options { border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-bottom: 14px; background: #f8fafc; }
.inline-check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #172033; }
.inline-check input { width: auto; }
.upload-button-row { margin: 14px 0 20px; }
.drop-zone { border: 2px dashed #93c5fd; border-radius: 8px; background: #eff6ff; padding: 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone.dragging { border-color: #2563eb; background: #dbeafe; }
.drop-zone.disabled { opacity: .6; cursor: not-allowed; }
.upload-preview { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; margin-top: 16px; }
.upload-preview img { width: 180px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #0f172a; }
.progress-wrap { margin-top: 16px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: 14px; margin-bottom: 8px; }
.progress-track { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #2563eb; transition: width .15s; }
.upload-log { max-height: 220px; overflow: auto; background: #0f172a; color: #dbeafe; border-radius: 8px; padding: 12px; font-size: 12px; white-space: pre-wrap; }
@media (max-width: 700px) { .upload-preview { grid-template-columns: 1fr; } .upload-preview img { width: 100%; } }
.video-item { width: 100%; text-align: left; color: inherit; background: #fff; cursor: pointer; }
.video-item:hover { border-color: #93c5fd; background: #f8fbff; }
.status-pill { border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.status-ready { background: #dcfce7; color: #166534; }
.status-progress { background: #dbeafe; color: #1d4ed8; }
.status-error { background: #fee2e2; color: #991b1b; }
.status-muted { background: #e2e8f0; color: #475569; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.summary-grid div { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; background: #f8fafc; }
.summary-grid span { display: block; color: #64748b; font-size: 12px; margin-bottom: 5px; }
.summary-grid strong { display: block; font-size: 15px; }
.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.output-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; background: #fff; display: grid; gap: 10px; }
.output-links { display: flex; flex-wrap: wrap; gap: 8px; }
.output-links a { border-radius: 7px; padding: 7px 9px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .summary-grid, .output-grid { grid-template-columns: 1fr; } }
.integration-key-box { border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; padding: 12px; margin: 12px 0; }
.integration-key-box input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
