:root {
  --bg: #f5f7fa;
  --ink: #12202f;
  --line: #d7dfea;
  --accent: #1f5c99;
  --stop: #c8482b;
  --ok: #1d7a4d;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

header { background: #0e1b2a; color: #fff; padding: 14px 0; }
header .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
header a { color: #9fc6ea; margin-left: 14px; }
.who { font-size: 14px; }

main { padding: 26px 20px 50px; }
footer { padding: 18px 20px 30px; color: #5b6b7d; }

h1 { font-size: 28px; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 22px 0 10px; }
.lead { font-size: 17px; color: #33465c; }
.tiny { font-size: 13px; color: #5b6b7d; }
.scenario { font-size: 20px; line-height: 1.4; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 0 0 18px;
}

label { display: block; font-size: 14px; color: #33465c; }
input[type="text"], input[type="email"], input[type="password"], input:not([type]), textarea, select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.stack { display: grid; gap: 12px; max-width: 520px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  cursor: pointer;
}
button.big { padding: 14px 26px; font-size: 17px; }
.ghostlink { color: var(--accent); font-size: 14px; }

.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.opt input { width: auto; margin-top: 4px; }

.alert {
  background: #fdece7;
  border: 1px solid #f0b7a5;
  color: #8b2d16;
  border-radius: 8px;
  padding: 12px 14px;
}
.progress { color: #5b6b7d; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }

.themes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.themes li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.rules { padding-left: 20px; }
.rules li { margin-bottom: 8px; }

.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: #e2f3e9; color: var(--ok); }
.pill.wait { background: #eef1f5; color: #5b6b7d; }
.pill.bad { background: #fdece7; color: #8b2d16; }
.good { color: var(--ok); }

table { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #eef3f9; }
.scroll { overflow-x: auto; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.stats b { font-size: 18px; margin-right: 6px; }
.bar { background: #eef1f5; border-radius: 4px; height: 10px; min-width: 90px; }
.bar i { display: block; height: 10px; border-radius: 4px; background: var(--accent); }
.review { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.review .scenario { font-size: 16px; }
code { background: #eef1f5; padding: 2px 6px; border-radius: 4px; }
