:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e4dccb;
  --teal: #17b888;
  --teal-d: #0b7d5c;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: var(--teal-d); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
.top, .who, .row-actions, .actions, .statline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}
.top { justify-content: space-between; margin-bottom: 1rem; }
.brand {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-d);
}
h1 { margin: 0.15rem 0 0; font-size: 1.7rem; letter-spacing: -0.03em; }
h2 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-top: 0.9rem;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.4rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.slug, .hint, .sub { color: var(--muted); font-size: 0.92rem; }
.hint { margin: 0.35rem 0 0; }
.right { text-align: right; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
input {
  width: 100%;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 0.75rem;
  font: inherit;
  background: white;
  color: var(--ink);
}
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--teal);
  color: #10241c;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ghost, button.ghost { background: transparent; }
.coral { background: #f0d0c8; }
.ok, .err, .dns-ok, .dns-bad {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.8rem;
}
.ok, .dns-ok { background: #e5f7f0; }
.err, .dns-bad { background: #fde8e4; }
.brandline { display: flex; align-items: center; gap: 0.75rem; }
.mark { width: 46px; height: 46px; border-radius: 14px; display: block; }
.logo { width: 112px; height: 112px; border-radius: 28px; display: block; margin: 0 auto 0.75rem; }
.login-card { max-width: 440px; margin: 8vh auto 0; text-align: center; }
.login-card .field, .login-card .err, .login-card .ok, .login-card .hint { text-align: left; }
.login-card .actions { flex-direction: column; align-items: stretch; }
.login-card .actions > button,
.login-card .actions > .btn { width: 100%; }
.danger { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.delete-pop { position: relative; }
.delete-pop summary {
  list-style: none;
  cursor: pointer;
  height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid #8a3b32;
  background: #f0d0c8;
  color: #6d2c24;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.delete-pop summary::-webkit-details-marker { display: none; }
.delete-pop form {
  position: absolute;
  right: 0;
  z-index: 5;
  margin-top: 0.4rem;
  width: 16rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.12);
}
.delete-pop label { margin-bottom: 0.35rem; }
.delete-pop .actions, .delete-pop button { margin-top: 0.55rem; width: 100%; }
@media (max-width: 720px) {
  .delete-pop form { position: static; width: 100%; }
}
.empty { margin: 0.4rem 0; }
@media (max-width: 720px) {
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  tr { padding: 0.4rem 0 0.8rem; }
  td.right { text-align: left; }
}
