:root {
  --ink: #1d2733; --muted: #5b6776; --line: #dde3ea; --bg: #f5f7f9; --card: #fff;
  --accent: #1f5fae; --accent-ink: #fff; --ok: #1b7f4b; --bad: #b3261e; --warn: #8a5a00;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,30,45,.06), 0 6px 20px rgba(20,30,45,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 8px 24px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; min-height: 44px; }
.mark { width: 22px; height: 22px; border-radius: 5px; background:
  linear-gradient(135deg, var(--accent) 50%, #0f3a70 50%); }
#nav { display: flex; flex-wrap: wrap; gap: 4px; }
#nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
#nav a:hover { background: #eef2f6; color: var(--ink); }
#nav a[aria-current="page"] { background: #e6eefa; color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; outline: none; }
h1 { font-size: 1.75rem; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
.dot.wait { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7aa7e0; outline-offset: 2px; }
button, .btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; transition: transform .1s, filter .15s; }
button:hover { filter: brightness(1.08); } button:active { transform: translateY(1px); }
button[disabled] { opacity: .6; cursor: progress; }
form.stack { display: grid; gap: 16px; max-width: 420px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { min-height: 44px; padding: 8px 12px; border: 1px solid #c3ccd6; border-radius: 8px; font: inherit; background: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
tbody tr:hover { background: #f5f8fc; }
dl.detail { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.detail dt { color: var(--muted); } dl.detail dd { margin: 0; }
.msg { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.msg.error { border-color: #e8b4b0; background: #fdf0ef; color: var(--bad); }
.msg.success { border-color: #b3dcc4; background: #eef9f2; color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
@media (max-width: 600px) { .top, main { padding-left: 16px; padding-right: 16px; } h1 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
