:root {
  --navy: #1b365d;
  --ink: #12243f;
  --bg: #f4f6f8;
  --card: #fff;
  --danger: #b42318;
  --ok: #027a48;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--navy); color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 700; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px 48px; }
.card { background: var(--card); padding: 16px 20px; border-radius: 10px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.muted { color: #52606d; }
.error { color: var(--danger); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 8px 0; flex: 1; }
input, select, textarea, button { font: inherit; }
input, select, textarea { padding: 8px; border: 1px solid #cbd2d9; border-radius: 6px; }
button { background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
button.ghost { background: transparent; color: #fff; border: 1px solid #fff; }
a.ghost { color: #fff; margin-right: 8px; }
button.danger { background: var(--danger); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e4e7eb; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.status { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.status-ready { background: #e1f5ee; color: var(--ok); }
.status-failed { background: #fce8e6; color: var(--danger); }
.status-encoding, .status-probing, .status-packaging, .status-uploading, .status-uploaded { background: #fff3d6; }
progress { width: 100%; }
.pick { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
