/* ANET Names (.ant) — domains.html. Palette from dex.css. */
:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --line: #dadce0;
  --line-strong: #bdc1c6;
  --text: #202124;
  --muted: #5f6368;
  --accent: #1967d2;
  --accent-2: #188038;
  --warn: #b06000;
  --danger: #c5221f;
  --success: #137333;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.shell { width: min(880px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 96px; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: var(--radius); border: 1px solid var(--line-strong); }
.brand strong { display: block; font-weight: 500; }
.brand small { display: block; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 14px; }
nav a, a { color: var(--accent); }
nav a { font-weight: 500; text-decoration: none; }
nav a:hover { text-decoration: underline; }

h1 { font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 24px 0 10px; }
h2 { font-weight: 500; font-size: 1.1rem; margin: 0 0 10px; }
h3 { font-weight: 500; font-size: 1rem; margin: 16px 0 8px; }
p { margin: 8px 0; }

.notice { padding: 10px 14px; border: 1px solid #f9ab00; border-radius: var(--radius); background: #fef7e0; color: #5f370e; }
.card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.muted, .hint { color: var(--muted); font-size: 0.9rem; }
.good { color: var(--success); }
.bad { color: var(--danger); }

label { display: block; margin: 12px 0 4px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
label.inline { display: inline; margin: 0; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
input:disabled { background: var(--bg-2); color: var(--muted); }
fieldset { margin: 14px 0 0; padding: 4px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 4px; font-weight: 500; }
details summary { margin-top: 12px; color: var(--accent); cursor: pointer; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row > input, .row > select { flex: 1 1 180px; width: auto; }
.actions { margin-top: 10px; }
.actions > input { flex: 0 1 160px; }

.btn {
  padding: 9px 16px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #1a73e8;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-alt { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn:disabled { opacity: 0.6; cursor: progress; }
#dn-lock-btn, #dn-ext-btn, #dn-cancel-btn, form > .btn, fieldset > .btn { margin-top: 12px; }
.link { padding: 0; font: inherit; font-weight: 500; color: var(--accent); background: none; border: 0; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.item .kv, .item .row { flex-basis: 100%; }
.grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kv { font-size: 0.92rem; overflow-wrap: anywhere; }
.kv b { font-weight: 500; color: var(--muted); }
code { font-family: "Roboto Mono", monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
.badge { padding: 1px 8px; font-size: 0.78rem; color: var(--accent); background: #e8f0fe; border-radius: 999px; }
.badge.ok { color: var(--success); background: #e6f4ea; }
.badge.warn { color: var(--warn); background: #fef7e0; }

.record { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; overflow-wrap: anywhere; }

.status {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 24px));
  padding: 10px 14px;
  color: var(--accent);
  background: #e8f0fe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.status:empty { padding: 0; border: 0; box-shadow: none; }
.status.good { color: var(--success); background: #e6f4ea; }
.status.bad { color: var(--danger); background: #fce8e6; }

@media (max-width: 560px) {
  header { flex-direction: column; align-items: flex-start; }
  .record { grid-template-columns: 1fr; }
  .record dd { margin-bottom: 6px; }
}
