* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font: 14px/1.5 -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  background: #fafafa;
  color: #09090b;
  -webkit-font-smoothing: antialiased;
}

.top {
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 24px;
  border-bottom: 1px solid #e4e4e7; background: #fff;
}
.brand { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.brand em { font-style: normal; color: #a1a1aa; font-weight: 400; font-size: 12px; }
.mark { width: 20px; height: 20px; border-radius: 5px; background: #18181b; display: inline-block; }
nav { display: flex; gap: 4px; }
nav a { padding: 6px 10px; border-radius: 6px; color: #52525b; text-decoration: none; font-size: 13px; }
nav a.on { background: #f4f4f5; color: #09090b; font-weight: 500; }
.top form { margin-left: auto; }
.link { background: none; border: 0; color: #71717a; font: inherit; font-size: 13px; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px; }

h1 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sub { color: #71717a; font-size: 12.5px; margin: 4px 0 18px; }

.card { background: #fff; border: 1px solid #e4e4e7; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.card h2 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: #71717a; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid #f4f4f5;
}

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: #71717a; font-weight: 600; padding: 9px 16px; border-bottom: 1px solid #e4e4e7; background: #fafafa;
}
td { padding: 10px 16px; border-bottom: 1px solid #f4f4f5; font-size: 13px; color: #3f3f46; }
tr:last-child td { border-bottom: 0; }
td b { color: #09090b; font-weight: 500; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; border: 1px solid; }
.badge.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge.no { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge.mut { background: #f4f4f5; color: #52525b; border-color: #e4e4e7; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 7px;
  border: 1px solid #e4e4e7; background: #fff;
  font: 500 13px inherit; color: #27272a; text-decoration: none; cursor: pointer;
}
.btn.dark { background: #18181b; border-color: #18181b; color: #fff; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }

form.form { display: grid; gap: 14px; padding: 16px; }
label { display: block; font-size: 12px; color: #52525b; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; height: 36px; border: 1px solid #e4e4e7; border-radius: 7px;
  padding: 0 10px; font: inherit; background: #fff; color: #09090b;
}
textarea { height: auto; min-height: 96px; padding: 8px 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 11.5px; color: #a1a1aa; margin-top: 4px; }
.code {
  font-family: ui-monospace, Consolas, monospace; background: #f4f4f5;
  padding: 2px 6px; border-radius: 5px; font-size: 12.5px;
}

.state { display: flex; gap: 10px; margin-bottom: 16px; }
.state div { flex: 1; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; padding: 10px 12px; font-size: 12px; color: #71717a; }
.state b { display: block; font-size: 15px; color: #09090b; margin-top: 2px; font-weight: 600; }

.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.okbox { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; padding: 14px 16px; font-size: 13px; }
.kv dt { color: #71717a; }
.kv dd { color: #09090b; }
.muted { color: #a1a1aa; }
