:root {
  --bg: #0f1724;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #d9e0ea;
  --accent: #1f6feb;
  --ok: #1a7f46;
  --err: #b42318;
  --warn: #8a6d00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eef3fb, #e4ecf7);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
}
.card {
  background: var(--card);
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 32px;
  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
}
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
code { background: #f1f4f9; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.badge {
  display: inline-block; background: #eaf1ff; color: var(--accent);
  border: 1px solid #cfe0ff; border-radius: 999px; padding: 2px 12px;
  font-size: 13px; font-weight: 600;
}
.slot {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  margin: 10px 0; display: flex; align-items: center; gap: 12px;
}
.slot .meta { flex: 1; }
.slot .meta .t { font-weight: 600; }
.slot .meta .d { color: var(--muted); font-size: 13px; }
.slot input[type="file"] { max-width: 240px; }
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: #e9eef6; color: var(--ink); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.status { margin-top: 16px; font-size: 14px; }
.status .ok { color: var(--ok); }
.status .err { color: var(--err); }
.status .warn { color: var(--warn); }
.line { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
label.field { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
input[type="text"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.hide { display: none; }
.note { background: #f6f9ff; border: 1px solid #dbe6fb; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-top: 16px; }
