:root {
  --bg: #f4f5f7; --card: #ffffff; --text: #15171a; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2563eb; --accent-text: #ffffff; --ok: #15803d; --ok-bg: #ecfdf3; --err: #b91c1c; --err-bg: #fef2f2;
  --warn: #92400e; --warn-bg: #fffbeb; --input: #ffffff; --chip: #f3f4f6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --card: #181b21; --text: #e8eaed; --muted: #9aa1ab; --line: #2a2f37;
    --accent: #4f8cff; --accent-text: #0b0d10; --ok: #4ade80; --ok-bg: #0f2a1a; --err: #f87171; --err-bg: #2a1212;
    --warn: #fbbf24; --warn-bg: #2a2110; --input: #11141a; --chip: #232830;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 18px; word-break: break-word; }
h2 { font-size: 17px; margin: 0 0 14px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.top form { margin: 0; }
.brand { font-weight: 700; color: var(--text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); margin-right: 6px; font-size: 15px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 22px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 18px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.crumbs { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
small { display: block; color: var(--muted); margin-top: 4px; }
.nowrap { white-space: nowrap; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--input);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input:disabled { opacity: .55; }
textarea { resize: vertical; }
.pw { display: flex; gap: 8px; }
.pw input { font-family: Menlo, Consolas, "Courier New", monospace; letter-spacing: .5px; min-width: 0; }
.pw.big input { font-size: 20px; padding: 12px 14px; }
.addr { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--input); overflow: hidden; }
.addr input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.addr span { padding: 0 12px; color: var(--muted); white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
fieldset.send { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 4px 0 18px; }
fieldset.send legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; background: var(--chip); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.check + small { margin: 2px 0 16px 26px; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); background: var(--chip);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.note { border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; }
.note.err { background: var(--err-bg); color: var(--err); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 28px; }
.domain { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); }
.domain:hover { border-color: var(--accent); text-decoration: none; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; word-break: break-word; }
.list tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.actions { text-align: right; }
.activity td { font-size: 13px; }
.status { list-style: none; padding: 0; margin: 0; }
.status li { padding: 10px 12px 10px 38px; border-radius: 10px; margin-bottom: 8px; position: relative; }
.status li::before { position: absolute; left: 13px; top: 9px; font-weight: 700; }
.status li.ok { background: var(--ok-bg); color: var(--ok); }
.status li.ok::before { content: "✓"; }
.status li.err { background: var(--err-bg); color: var(--err); }
.status li.err::before { content: "!"; }
.copytext { font-family: Menlo, Consolas, "Courier New", monospace; font-size: 13px; margin-bottom: 10px; }
dl.config { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
dl.config dt { color: var(--muted); }
dl.config dd { margin: 0; word-break: break-word; }
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .pw { flex-wrap: wrap; }
  .pw input { flex: 1 1 100%; }
  dl.config { grid-template-columns: 1fr; gap: 2px; }
  dl.config dd { margin-bottom: 8px; }
  .list .actions .btn { white-space: normal; }
  h1 { font-size: 22px; }
}
