:root {
  --slate: #1e293b;
  --orange: #f97316;
  --grey: #64748b;
  --light: #f8fafc;
  --line: #e2e8f0;
  --text: #334155;
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --amber-bg: #fffbeb;
  --amber: #b45309;
  --green-bg: #f0fdf4;
  --green: #15803d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--light);
}
header.top {
  background: var(--slate);
  color: white;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
header.top img { height: 34px; filter: brightness(0) invert(1); }
header.top .title {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
header.top a { color: white; text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 13px; }
header.top nav a { color: #cbd5e1; }
main { max-width: 1080px; margin: 0 auto; padding: 28px 32px 60px; }
h1 { font-family: 'Archivo', 'Inter', sans-serif; font-size: 24px; color: var(--slate); margin: 0 0 4px; }
h2 { font-family: 'Archivo', 'Inter', sans-serif; font-size: 16px; color: var(--slate); margin: 28px 0 10px; }
.subtitle { color: var(--grey); margin: 0 0 22px; }
.steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 12px; }
.steps li { padding: 5px 12px; border-radius: 14px; background: var(--line); color: var(--grey); }
.steps li.on { background: var(--orange); color: white; font-weight: 600; }
.steps li.done { background: var(--slate); color: white; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; margin-bottom: 18px; }
.card h2:first-child { margin-top: 0; }
label { display: block; font-weight: 600; color: var(--slate); margin: 12px 0 4px; }
label .hint { font-weight: normal; color: var(--grey); }
input[type=text], input[type=file], textarea, select {
  width: 100%;
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: white;
  color: var(--text);
}
textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; min-width: 0; }
button, .btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid var(--slate);
  background: var(--slate);
  color: white;
  cursor: pointer;
  text-decoration: none;
}
button.primary, .btn.primary { background: var(--orange); border-color: var(--orange); }
button.quiet, .btn.quiet { background: white; color: var(--slate); }
button.small { padding: 5px 10px; font-size: 12px; }
.actions { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.actions .spacer { flex: 1; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; background: var(--slate); color: white; padding: 8px 10px; font-weight: 600; }
table.list td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr.off td { color: #94a3b8; }
table.list tr.off td input[type=text] { color: #94a3b8; }
table.list td.code { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
table.list input[type=text] { padding: 5px 7px; }
.section-title { background: var(--light); font-weight: 700; color: var(--slate); }
.notice { padding: 12px 16px; border-radius: 6px; margin: 0 0 16px; border: 1px solid; }
.notice.warn { background: var(--amber-bg); border-color: #fcd34d; color: var(--amber); }
.notice.error { background: var(--red-bg); border-color: #fecaca; color: var(--red); }
.notice.ok { background: var(--green-bg); border-color: #bbf7d0; color: var(--green); }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.notice ul { margin: 6px 0 0 18px; padding: 0; }
.muted { color: var(--grey); font-size: 12px; }
.flag { display: inline-block; font-size: 11px; color: var(--amber); background: var(--amber-bg); border-radius: 3px; padding: 1px 6px; margin-left: 6px; }
.choice { display: flex; gap: 12px; margin: 14px 0; }
.choice label { flex: 1; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: white; font-weight: normal; }
.choice label strong { display: block; color: var(--slate); margin-bottom: 4px; }
.choice input { margin-right: 6px; }
.thumb { max-height: 120px; border: 1px solid var(--line); border-radius: 4px; display: block; margin: 6px 0; }
iframe.preview { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 6px; background: white; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: normal; }
.check input { width: auto; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
body.busy { cursor: progress; }
body.busy input, body.busy select, body.busy textarea { pointer-events: none; opacity: 0.7; }
button:disabled { opacity: 0.55; cursor: default; }
