:root {
  --bg: #eef1f6;
  --card: #ffffff;
  --text: #18253d;
  --muted: #5f6f8d;
  --border: #d9e3f2;
  --accent: #2e63ff;
  --accent-2: #143cbb;
  --ok: #0a8f47;
  --warn: #a96a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(17, 41, 89, 0.05);
}
.hero h1 { margin: 0 0 6px; font-size: 54px; }
.subtitle { margin: 0 0 18px; color: var(--muted); font-size: 20px; }
.note, .diag, .js-status, .hint, .summary { background: #f6f9ff; border: 1px solid #d7e3ff; border-radius: 14px; padding: 16px 18px; }
.diag h3 { margin-top: 0; }
.diag-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.js-status.success { border-color: #b9e5c8; background: #eefbf3; color: var(--ok); }
.js-status.warning { color: var(--warn); }
.form-grid { display: grid; gap: 10px; }
.section-title { font-size: 26px; font-weight: 700; margin-top: 6px; }
label { font-weight: 700; }
input[type="text"], input[type="number"], textarea, input[type="file"] {
  width: 100%;
  border: 1px solid #c9d5eb;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
}
textarea { resize: vertical; min-height: 110px; }
.two-cols, .compress-box, .summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.summary { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 15px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 22px;
}
.btn-primary.inline { width: fit-content; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progressbar { height: 18px; background: #edf2ff; border-radius: 999px; overflow: hidden; border: 1px solid #c9d5eb; }
.progressbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2e63ff, #6f92ff); transition: width .2s ease; }
.step-text { margin-top: 12px; color: var(--muted); }
.log {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  font-family: Consolas, monospace;
  font-size: 13px;
}
.hidden { display: none; }
@media (max-width: 820px) {
  .hero h1 { font-size: 38px; }
  .subtitle { font-size: 16px; }
  .two-cols, .compress-box, .summary { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 16px; }
  .page { width: min(100% - 18px, 1120px); margin-top: 10px; }
}
