:root {
  --ink: #1B365D; --accent: #487A7B; --accent-light: rgba(72,122,123,0.09);
  --muted: #707372; --line: #D9DEE3; --bg: #F6F7F8; --card: #fff;
  --red: #B83A4B; --teal: #009681; --orange: #E87722; --yellow: #F3D54E;
  --head: 'Nunito Sans', system-ui, sans-serif; --body: 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #222; font: 17px/1.55 var(--body); }
h1, h2 { font-family: var(--head); color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 0 0 14px; }
a { color: var(--accent); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 18px var(--head); }
.bar nav { font-size: 15px; display: flex; gap: 14px; align-items: center; }
.bar nav a, .bar .link { color: #fff; }

main { max-width: 860px; margin: 0 auto; padding: 28px 16px 40px; }
.hero p { margin: 0 0 10px; }
.note { color: var(--ink); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 22px 0; }

label { display: block; font: 600 15px var(--head); color: var(--ink); margin-bottom: 14px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: 16px var(--body);
  border: 1px solid var(--line); border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px;
  font: 700 16px var(--head); text-decoration: none; cursor: pointer; }
.btn:hover { background: #3c6869; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--accent); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
progress { width: 180px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.error { color: var(--red); font-weight: 600; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks .title { font: 700 16px var(--head); color: var(--ink); }
.checks .meta { font-size: 14px; color: var(--muted); }
.status { font: 700 13px var(--head); text-transform: uppercase; letter-spacing: .04em; }
.status.ready { color: var(--teal); } .status.failed { color: var(--red); } .status.working { color: var(--orange); }
.checks .err { color: var(--red); font-size: 14px; flex-basis: 100%; }
.row-actions { display: flex; gap: 12px; align-items: center; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); color: var(--ink); }
.scroll { overflow-x: auto; }

.foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 24px 16px 36px; color: var(--muted); font-size: 14px; }
