:root {
  --primary: #4f46e5;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e8ee;
  --soft: #eef2ff;
  --danger: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbff, #eef2ff);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1080px, calc(100% - 28px)); margin: 36px auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 10px 28px rgba(20,31,54,.06); margin-bottom: 15px; }
.narrow { width: min(520px, calc(100% - 28px)); margin: 48px auto; }
h1, h2, h3 { margin-top: 0; }
p { line-height: 1.6; }
.muted { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 6px; }
input, textarea, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; padding: 10px 11px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
button, .button { display: inline-block; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 9px; padding: 10px 13px; font: inherit; font-weight: 700; cursor: pointer; }
button.secondary, .button.secondary { background: #fff; color: var(--primary); }
button.danger { border-color: #fecdca; background: #fff1f0; color: var(--danger); }
.alert { border-radius: 10px; padding: 11px 12px; margin: 10px 0; font-size: 14px; line-height: 1.5; }
.alert.error { color: var(--danger); border: 1px solid #fecdca; background: #fff1f0; }
.alert.success { color: var(--success); border: 1px solid #abefc6; background: #ecfdf3; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
code { background: #f2f4f7; border-radius: 6px; padding: 2px 5px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
th { font-size: 12px; color: var(--muted); }
.progress-wrap { display: flex; gap: 12px; align-items: center; }
.progress-wrap input { flex: 1; }
.status { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) {
  .shell, .narrow { margin-top: 20px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
