:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #13171c;
  --panel-2: #191f26;
  --line: #29313a;
  --text: #edf1f4;
  --muted: #8d9aa7;
  --accent: #d5b47a;
  --accent-2: #f0d6a6;
  --good: #7fc6a1;
  --bad: #e28d8d;
  --blue: #9bb8d4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 12% 0%, #1b232b 0, var(--bg) 44rem); color: var(--text); min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .38; cursor: not-allowed; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .19em; margin: 0 0 .55rem; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 390px); padding: 38px; background: rgba(19,23,28,.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px #0008; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #9d8152; border-radius: 13px; color: var(--accent-2); font-weight: 800; letter-spacing: -.06em; background: #2a241b; margin-bottom: 25px; }
.login-card h1 { margin: 0; font-size: 2.7rem; letter-spacing: -.06em; }
.login-card > .muted { margin: 7px 0 28px; }
label { display: block; font-size: .8rem; color: #c5cdd4; margin: 16px 0 7px; }
input, select { width: 100%; color: var(--text); background: #0d1115; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; outline: none; }
input:focus, select:focus { border-color: var(--accent); }
.primary { background: var(--accent); color: #17130d; border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 800; margin-top: 23px; }
.primary:hover { background: var(--accent-2); }
.full { width: 100%; }
.error { color: var(--bad); font-size: .8rem; min-height: 1.2em; }
.login-foot { border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 18px; color: #71808d; font-size: .72rem; }
.app-shell { max-width: 1500px; margin: auto; padding: 0 34px 28px; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark.small { width: 35px; height: 35px; border-radius: 9px; font-size: .8rem; margin: 0; }
.brand strong { display: block; font-size: .92rem; letter-spacing: -.02em; }
.brand span { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.role-pill, .count-pill { border: 1px solid #5c4c33; color: var(--accent-2); background: #292319; border-radius: 999px; padding: 6px 10px; font-size: .65rem; letter-spacing: .09em; font-weight: 800; }
.quiet { background: transparent; color: #aeb8c1; border: 1px solid var(--line); padding: 8px 12px; border-radius: 7px; font-size: .76rem; }
.quiet:hover { border-color: #667482; color: var(--text); }
.welcome { padding: 43px 0 34px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.welcome h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.06em; margin: 0 0 8px; }
.welcome p.muted { margin: 0; max-width: 650px; line-height: 1.6; font-size: .9rem; }
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; padding-bottom: 5px; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px #7fc6a177; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 27px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 15px; }
.section-heading h2 { font-size: 1.28rem; letter-spacing: -.04em; margin: 0; }
.count-pill { color: #aeb8c1; background: #151b21; border-color: var(--line); letter-spacing: 0; font-weight: 600; }
.project-list { display: grid; gap: 16px; }
.project-card { background: linear-gradient(145deg, #171d23, #11161b); border: 1px solid var(--line); border-radius: 13px; padding: 20px; min-width: 0; }
.project-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.project-title h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.project-id { color: var(--muted); margin: 5px 0 0; font-size: .72rem; }
.status-pill { color: #b9c4ce; border: 1px solid var(--line); background: #10151a; border-radius: 999px; padding: 6px 9px; font-size: .65rem; white-space: nowrap; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-panel { min-width: 0; background: #0c1014; border: 1px solid #222a32; border-radius: 9px; padding: 10px; }
.media-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.media-label { color: #9eabb6; font-size: .62rem; letter-spacing: .13em; font-weight: 800; }
.approved-pill { color: var(--good); font-size: .58rem; letter-spacing: .08em; font-weight: 800; }
.video-player { display: block; width: 100%; max-height: 245px; aspect-ratio: 16/9; background: #050708; border-radius: 5px; }
.media-meta { display: flex; justify-content: space-between; gap: 8px; color: #b5c0c9; font-size: .68rem; margin-top: 9px; }
.media-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-date { color: #697783; font-size: .65rem; margin: 5px 0 0; }
.media-empty { display: grid; place-items: center; min-height: 105px; color: #65727e; font-size: .75rem; border: 1px dashed #303942; border-radius: 5px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 15px; }
.action-button { border: 1px solid #35404a; color: #c9d2da; background: #1b232b; border-radius: 7px; padding: 8px 10px; font-size: .7rem; font-weight: 650; }
.action-button:hover:not(:disabled) { border-color: #8a744f; color: var(--accent-2); }
.owner-action { border-color: #6c5837; background: #2a241a; color: var(--accent-2); }
.permission-note { width: 100%; color: #788692; font-size: .68rem; margin: 4px 0 0; }
.queue-column { position: sticky; top: 18px; }
.job-list { display: grid; gap: 9px; }
.job-card { background: #13191f; border: 1px solid var(--line); border-radius: 9px; padding: 13px; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; text-transform: capitalize; }
.job-status { font-size: .62rem; border-radius: 999px; padding: 4px 7px; background: #252d35; color: #c0cbd4; }
.status-running { color: var(--accent-2); background: #30291d; }
.status-succeeded { color: var(--good); background: #192c24; }
.status-failed, .status-interrupted { color: var(--bad); background: #301e20; }
.job-project, .job-date { color: var(--muted); font-size: .67rem; margin: 7px 0 0; }
.text-button { border: 0; background: none; color: var(--blue); padding: 8px 0 0; font-size: .68rem; }
.empty-state { padding: 28px 18px; border: 1px dashed #303942; border-radius: 10px; text-align: center; color: #75828e; font-size: .78rem; }
.footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 17px; color: #677580; font-size: .66rem; }
.log-dialog { width: min(900px, calc(100vw - 30px)); max-height: 80vh; background: #10151a; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.log-dialog::backdrop { background: #000b; }
.log-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.log-content { white-space: pre-wrap; overflow: auto; max-height: 65vh; background: #080b0e; border: 1px solid var(--line); border-radius: 7px; padding: 14px; color: #b9c5ce; font: .72rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #202a32; border: 1px solid #45515b; color: var(--text); border-radius: 8px; padding: 11px 15px; font-size: .78rem; transition: .2s; max-width: calc(100vw - 30px); z-index: 10; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast-error { border-color: #8e4d4d; color: #ffd0d0; }
@media (max-width: 1050px) { .workspace-grid { grid-template-columns: minmax(0, 1fr) 280px; } .app-shell { padding: 0 22px 25px; } }
@media (max-width: 800px) { .workspace-grid { grid-template-columns: 1fr; } .queue-column { position: static; } .welcome { align-items: start; flex-direction: column; } }
@media (max-width: 560px) { .app-shell { padding: 0 13px 20px; } .topbar { height: 65px; } .top-actions { gap: 7px; } .top-actions .muted { display: none; } .welcome { padding: 30px 0 25px; } .project-card { padding: 13px; } .media-grid { grid-template-columns: 1fr; } .project-header { flex-direction: column; } .footer { flex-direction: column; } }
