/* ytuploader panel */
:root {
  --bg: #f6f7f9; --card: #fff; --text: #1c2430; --muted: #6b7684;
  --line: #e3e7ec; --accent: #2563eb; --danger: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12161c; --card: #1a2028; --text: #e5eaf0; --muted: #93a0ae;
          --line: #2a3340; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, "Segoe UI", sans-serif;
       background: var(--bg); color: var(--text); }
.nav { display: flex; gap: 18px; align-items: center; padding: 10px 22px;
       background: var(--card); border-bottom: 1px solid var(--line); }
.nav .brand { font-weight: 700; margin-right: 12px; }
main { max-width: 1080px; margin: 26px auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 22px; } h2 { font-size: 17px; margin-top: 28px; }

table { width: 100%; border-collapse: collapse; background: var(--card);
        border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line);
         vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }

.card { background: var(--card); border: 1px solid var(--line);
        border-radius: 10px; padding: 18px 20px; }
.narrow { max-width: 380px; margin: 12vh auto; }
.centered main { max-width: none; }

label { display: block; margin: 10px 0; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; padding: 8px 10px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  color: var(--text); font: inherit; }
.grid-form button, button { padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--accent); color: #fff;
  cursor: pointer; font: inherit; margin-top: 10px; }
button.linklike { background: none; border: none; color: var(--accent);
  padding: 0; margin: 0 8px 0 0; cursor: pointer; font: inherit; }
button.danger, .error, .lvl-error td:first-child { color: var(--danger); }
.inline { display: inline; }

.badge { display: inline-block; padding: 1px 9px; border-radius: 999px;
         font-size: 12px; background: var(--line); }
.s-active, .s-done { background: #16a34a22; color: #16a34a; }
.s-dead, .s-failed, .s-blocked { background: #dc262622; color: var(--danger); }
.s-uploading, .s-processing, .s-login_pending, .s-creating_session,
.s-finalizing, .s-setting_metadata { background: #2563eb22; color: var(--accent); }
.s-captcha, .s-2fa { background: #d9770622; color: #d97706; }
.s-disabled, .s-canceled { opacity: .75; }

.tiles { display: flex; gap: 14px; flex-wrap: wrap; }
.tile { background: var(--card); border: 1px solid var(--line);
        border-radius: 10px; padding: 14px 22px; min-width: 160px; }
.tile b { display: block; font-size: 26px; }
.tile span { color: var(--muted); font-size: 13px; }

.muted { color: var(--muted); } .small { font-size: 12.5px; }
.warn { background: #d9770622; color: #b45309; border-radius: 6px;
        padding: 8px 12px; }
.events .lvl-warn td:nth-child(3) { color: #b45309; }
.actions form { display: inline; }
.checkbox input { display: inline; width: auto; }
form button { margin-top: 14px; }
