:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0b172a;
  --muted: #55657f;
  --line: #d8e1ef;
  --blue: #0e7490;
  --blue2: #0b5fd7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(14, 116, 144, 0.14), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(11, 95, 215, 0.12), transparent 60%),
    var(--bg);
}
.wrap {
  width: min(1200px, 96vw);
  margin: 24px auto 40px;
}
.hero, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(14, 27, 44, 0.06);
}
h1, h2, h3 { margin: 0 0 10px; }
h3 { margin-top: 18px; }
.muted { color: var(--muted); }
.back {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue2);
  text-decoration: none;
}
.grid2, .grid3, .grid4 {
  display: grid;
  gap: 10px;
}
.grid2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
}
textarea { width: 100%; resize: vertical; }
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue2));
  font-weight: 700;
}
.list {
  margin: 0;
  padding-left: 18px;
}
.list li { margin-bottom: 7px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}
code {
  background: #eff4fc;
  border: 1px solid #d4dff2;
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.preset-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}
.preset-item p {
  margin: 6px 0 12px;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.checks label {
  flex-direction: row;
  align-items: center;
  font-size: 14px;
}
@media (max-width: 720px) {
  .wrap { width: 96vw; }
  th, td { font-size: 12px; }
}
