:root {
  --ink: #142033;
  --muted: #5c6b80;
  --line: #e4eaf2;
  --bg: #f4f7fb;
  --card: #fff;
  --blue: #0b63ce;
  --blue-d: #084eaa;
  --ok: #0d7a4a;
  --warn: #9a6700;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.06);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(160deg, #1a7af0, #0b4ea8);
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.brand b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 13px; }
.steps { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.steps i {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: #e8eef7; color: var(--blue); font-style: normal; font-weight: 700;
  margin-right: 4px; font-size: 12px;
}
main { padding: 28px 0 48px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 17px; max-width: 640px; }
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
label.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="search"], select {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 12px; font: inherit; color: var(--ink); background: #fff;
}
select[size] { height: auto; min-height: 196px; padding: 6px; }
.spec {
  margin-top: 12px; background: #f7faff; border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.spec strong { font-size: 18px; }
.spec p { margin: 8px 0 0; color: var(--muted); }
.drop {
  margin-top: 12px; border: 1.5px dashed #b9cbe6; border-radius: 14px; padding: 16px 12px;
  text-align: center; background: #fbfcff; cursor: pointer; display: block;
}
.drop:hover { border-color: var(--blue); }
.status { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
.status.ok { color: var(--ok); }
.status.bad { color: #9b2c2c; }
.drop b { display: block; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; margin-top: 10px; }
button, .btn {
  font: inherit; border: 0; border-radius: 12px; height: 42px; padding: 0 14px;
  cursor: pointer; background: var(--blue); color: #fff; font-weight: 600;
}
button.ghost, a.ghost {
  background: #eef3fa; color: var(--ink); text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center;
}
button:disabled { opacity: 0.55; cursor: wait; }
.stage { min-height: 520px; display: flex; flex-direction: column; gap: 12px; }
.empty {
  flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 40px 16px;
}
.previews { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.previews figure { margin: 0; background: #f3f6fb; border-radius: 12px; padding: 10px; }
.previews img { width: 100%; height: auto; display: block; background: #fff; }
.previews figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.controls label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
input[type="range"] { width: 100%; }
.warn { background: #fff8e8; color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
footer { color: var(--muted); font-size: 13px; padding-bottom: 28px; }
@media (max-width: 860px) {
  .grid, .previews, .controls { grid-template-columns: 1fr; }
  .steps { display: none; }
  h1 { font-size: 28px; }
}
