/* Nossic DNS. Colours and type from the Nossic Branding Pack (v1). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/bricolage.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/atkinson-next.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --blue: #266BD9; --yellow: #FFCC33; --navy: #1F2438; --deep: #1A4FA8;
  --bg: #F5F8FD; --surface: #FFFFFF; --surface-2: #EEF3FB; --fg: #1F2438; --muted: #5A6278; --line: #DCE3F0;
  --primary: #266BD9; --primary-fg: #FFFFFF; --primary-hover: #1A4FA8; --link: #1A4FA8;
  --ok-bg: #E3F5EA; --ok-fg: #1D6B3D; --warn-bg: #FFF4D1; --warn-fg: #7A5300; --bad-bg: #FCE8E6; --bad-fg: #B3261E;
  --danger: #D9483B; --danger-hover: #B3261E;
  --shadow: 0 1px 3px rgba(31, 36, 56, .10), 0 16px 40px rgba(31, 36, 56, .12);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12162A; --surface: #1A2036; --surface-2: #20283F; --fg: #EEF2FA; --muted: #A3ADC6; --line: #2C3552;
    --primary: #5A93F0; --primary-fg: #0E1424; --primary-hover: #82AEF5; --link: #8DB4F5;
    --ok-bg: #173A2A; --ok-fg: #8FE0B0; --warn-bg: #3A3014; --warn-fg: #FFD966; --bad-bg: #3D1C1C; --bad-fg: #FF8A80;
    --danger: #FF8A80; --danger-hover: #FFB3AD;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--link); }
h1, h2 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; font-weight: 800; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.light-only { display: block; } .dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: block; } }
.sub { color: var(--muted); font-size: 1.05rem; margin-top: 8px; max-width: 60ch; }
.sub.small { font-size: .95rem; margin-top: 4px; }
code, .mono { font-family: var(--mono); font-size: .88em; }

.btn { font: inherit; font-weight: 700; font-size: .95rem; border-radius: 10px; padding: 9px 16px; background: var(--primary); color: var(--primary-fg); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { background: var(--primary-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.sm { padding: 6px 12px; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--primary); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: var(--danger-hover); }
@media (prefers-color-scheme: dark) { .btn.danger { color: #2A0E0C; } }
.icon-btn { font: inherit; font-size: .88rem; font-weight: 700; background: none; border: 1.5px solid transparent; color: var(--link); padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { border-color: var(--line); background: var(--surface-2); }
.icon-btn.del { color: var(--danger); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex: none; }
.logo { height: 34px; width: auto; }
.tabs { display: flex; gap: 2px; }
.tabs a { color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 7px 12px; border-radius: 8px; }
.tabs a:hover { background: var(--surface-2); }
.tabs a[aria-current="page"] { background: var(--surface-2); color: var(--link); box-shadow: inset 0 -3px 0 var(--yellow); }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; min-height: 40px; }
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .logo { height: 28px; }
  .tabs { order: 3; width: 100%; }
}

/* Account menu */
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { border-color: var(--primary); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; z-index: 20; }
.menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-who span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.menu-panel a, .menu-panel button { font: inherit; font-size: .95rem; text-align: left; color: var(--fg); background: none; border: 0; padding: 9px 10px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .menu-name { display: none; } }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--display); font-size: .8rem; font-weight: 800; background: var(--primary); color: var(--primary-fg); }

main { max-width: 1280px; margin: 0 auto; padding: 20px 20px 64px; }
@media (max-width: 640px) { main { padding: 14px 16px 48px; } }

/* Sign-in / no access */
.gate { max-width: 520px; margin: 12vh auto 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; box-shadow: var(--shadow); }
.gate h1 { font-size: 2rem; font-weight: 800; margin-top: 16px; }
.gate .sub { margin: 10px auto 0; }
.gate-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-legal { flex-basis: 100%; margin: 6px 0 0; }

/* Server status */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 18px; }
.srv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; }
.srv .dot { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; background: var(--muted); }
.srv.ok .dot { background: #2E9E5B; box-shadow: 0 0 0 4px var(--ok-bg); }
.srv.behind .dot { background: var(--yellow); box-shadow: 0 0 0 4px var(--warn-bg); }
.srv.down .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--bad-bg); }
.srv b { font-family: var(--display); font-size: 1.05rem; }
.srv span { color: var(--muted); font-size: .86rem; }
.srv .serial { font-family: var(--mono); color: var(--fg); }

/* Records */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel > h2 + .sub { margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { flex: 1 1 260px; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 11px; width: 100%; }
select { width: auto; padding-right: 28px; }
textarea { font-family: var(--mono); font-size: .88rem; min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.count { color: var(--muted); font-size: .9rem; }
.toolbar .btn { margin-left: auto; }
@media (max-width: 640px) { .toolbar .btn { margin-left: 0; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.records { width: 100%; border-collapse: collapse; font-size: .93rem; }
.records th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 9px 12px; position: sticky; top: 0; }
.records td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: baseline; }
.records tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.records .name { font-family: var(--mono); font-size: .86rem; word-break: break-all; min-width: 140px; }
.records .name .zone { color: var(--muted); }
.records .ttl { color: var(--muted); white-space: nowrap; }
.records .val { font-family: var(--mono); font-size: .84rem; word-break: break-all; max-width: 640px; }
.records .val .clip { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.records .acts { white-space: nowrap; text-align: right; }
.records .lock { color: var(--muted); font-size: .84rem; cursor: help; }
.records tr.same td.name > * { visibility: hidden; }
.tag { display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.tag.A, .tag.AAAA { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }
.tag.CNAME { background: color-mix(in srgb, var(--yellow) 30%, var(--surface)); }
.tag.MX, .tag.SRV { background: var(--ok-bg); color: var(--ok-fg); }
.tag.TXT { background: var(--surface-2); }
.pang { display: inline-block; margin-left: 6px; font-family: var(--body); font-size: .74rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* Dialogs */
.dlg { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(18, 22, 42, .55); }
.dlg form { padding: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
.field select { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.fields-grid .wide { grid-column: 1 / -1; }
.suffix-input { display: flex; align-items: stretch; }
.suffix-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; font-family: var(--mono); font-size: .92rem; }
.suffix { display: flex; align-items: center; padding: 0 11px; border: 1.5px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-family: var(--mono); font-size: .88rem; white-space: nowrap; }
.preset { justify-self: start; }
.note { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 9px 12px; font-size: .9rem; }
.error { background: var(--bad-bg); color: var(--bad-fg); border-radius: 10px; padding: 9px 12px; font-size: .92rem; font-weight: 700; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.del-what { font-family: var(--mono); font-size: .88rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; word-break: break-all; }

/* Check */
.check-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.check-form .grow { flex: 1 1 260px; }
.results { display: grid; gap: 8px; }
.res { display: grid; grid-template-columns: 190px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.res b { display: block; }
.res span { color: var(--muted); font-size: .85rem; }
.res .ans { font-family: var(--mono); font-size: .86rem; word-break: break-all; }
.res .ans.none { color: var(--muted); font-family: var(--body); }
.res.diff { border-color: var(--yellow); background: var(--warn-bg); }
@media (max-width: 560px) { .res { grid-template-columns: 1fr; gap: 4px; } }

/* History */
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; }
.history .meta { color: var(--muted); font-size: .88rem; }
.history .act { font-weight: 800; font-family: var(--display); }
.history .rr { font-family: var(--mono); font-size: .84rem; word-break: break-all; }
.history .rr.old { text-decoration: line-through; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; z-index: 50; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--danger); }
@media (prefers-color-scheme: dark) { .toast { background: #EEF2FA; color: #12162A; } }

/* ---- Pages (domains, one domain, API keys) ---- */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; word-break: break-all; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.back { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92rem; justify-self: start; }
.back:hover { color: var(--link); }
.mt { margin-top: 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); font-size: .86rem; }
.panel.flush { padding: 0; overflow: hidden; }
.table-wrap.plain { border: 0; border-radius: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-weight: 700; font-size: .9rem; background: none; border: 0; padding: 8px 12px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.badge.ok::before { background: #2E9E5B; }
.badge.wait, .badge.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.badge.wait::before, .badge.warn::before { background: #E0A800; }
.badge.bad { background: var(--bad-bg); color: var(--bad-fg); border-color: transparent; }
.badge.bad::before { background: var(--danger); }
.pill { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); vertical-align: middle; }
.menu-who .pill { margin: 6px 0 0; justify-self: start; }

/* Name servers */
.ns-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: inset 4px 0 0 var(--yellow); }
.ns-card h2 { font-size: 1.15rem; }
@media (max-width: 760px) { .ns-card { grid-template-columns: minmax(0, 1fr); } }
.ns-list { display: grid; gap: 8px; margin: 10px 0; }
.ns-card .ns-list { margin: 0; }
.copyrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px 7px 12px; }
.copyrow > span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.copyrow code { font-family: var(--mono); font-size: .95rem; font-weight: 700; word-break: break-all; }
.copyrow.ns code { font-size: 1rem; }
@media (max-width: 480px) { .copyrow { grid-template-columns: minmax(0, 1fr) auto; } .copyrow > span { grid-column: 1 / -1; } }

/* Lists of domains and keys */
.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 10px 16px; }
.list td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.link-row { cursor: pointer; }
.link-row:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.dname { font-family: var(--mono); font-weight: 700; font-size: .95rem; color: var(--fg); text-decoration: none; word-break: break-all; }
.dname:hover { color: var(--link); text-decoration: underline; }
.chev { color: var(--muted); font-size: 1.4rem; text-align: right; width: 30px; }
.list .acts { text-align: right; }

.empty-state { padding: 32px 24px; display: grid; gap: 14px; justify-items: start; }
.empty-state h2 { font-size: 1.3rem; }
.howto { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }
.howto b { color: var(--fg); }

/* One domain */
.setup { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--yellow) 60%, transparent); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.setup h2 { font-size: 1.2rem; }
.setup .copyrow { background: var(--surface); }
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subtabs a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 9px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.subtabs a:hover { color: var(--fg); }
.subtabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--yellow); }
.status { margin-bottom: 0; }
.kv { display: grid; gap: 8px; margin-top: 8px; max-width: 640px; }
.kv > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.kv > div > span:first-child { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.kv .badge { justify-self: start; }
.kv code { font-family: var(--mono); font-size: .88rem; word-break: break-all; }
#tab-settings h2 { font-size: 1.2rem; }

/* Dialog extras */
.claim { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: .92rem; }
.claim .copyrow { grid-template-columns: 60px minmax(0, 1fr) auto; background: var(--surface); }
.claim code { font-size: .84rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 5px; }
.radio, .check { display: flex; gap: 8px; align-items: center; font-size: .95rem; padding: 3px 0; cursor: pointer; }
.radio input, .check input { width: auto; margin: 0; accent-color: var(--primary); }
.checks { display: grid; gap: 2px; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 4px; font-family: var(--mono); font-size: .9rem; }
.secret { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1.5px dashed var(--primary); border-radius: 10px; padding: 10px 12px; }
.secret code { font-family: var(--mono); font-size: .86rem; word-break: break-all; flex: 1; }
pre.code { margin: 0; background: #12162A; color: #EEF2FA; border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ---- API docs (/docs) ---- */
.docs { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .toc { display: none !important; } }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: .92rem; }
.toc b { font-family: var(--display); margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.toc a:hover { color: var(--fg); background: var(--surface-2); }
.doc { min-width: 0; font-size: 1rem; line-height: 1.65; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.doc .lede { color: var(--muted); font-size: 1.15rem; margin-top: 12px; max-width: 62ch; }
.doc h2 { font-size: 1.55rem; margin: 48px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc h3 { font-family: var(--display); font-size: 1.15rem; margin: 28px 0 8px; scroll-margin-top: 84px; }
.doc p, .doc ul, .doc ol { margin: 10px 0; max-width: 72ch; }
.doc li { margin: 4px 0; }
.doc code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; word-break: break-word; }
.doc pre.code { margin: 12px 0 18px; font-size: .82rem; line-height: 1.6; white-space: pre; word-break: normal; }
.doc pre.code .c { color: #8DB4F5; }
.doc .copyrow code { background: none; border: 0; padding: 0; }
.docs-ns { max-width: 520px; grid-template-columns: minmax(0, 1fr); }
.docs-ns .copyrow { grid-template-columns: 120px minmax(0, 1fr); }
.ep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; margin: 22px 0 6px; }
.ep > code { font-size: .95rem; font-weight: 700; background: none; border: 0; padding: 0; }
.ep p { grid-column: 2; margin: 0; color: var(--muted); }
.m { font-family: var(--mono); font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; min-width: 58px; text-align: center; }
.m.get { background: #2E7D4F; } .m.post { background: var(--blue); } .m.put { background: #9A6B00; } .m.del { background: #B3261E; }
.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .93rem; }
.doc-table th { text-align: left; background: var(--surface-2); padding: 8px 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.foot-note { color: var(--muted); margin-top: 40px !important; }
