:root {
  color-scheme: light;
  --ink: #182a38;
  --muted: #506576;
  --line: #dce4e9;
  --accent: #17635d;
  --accent-dark: #104a46;
  --wash: #eaf4f1;
  --danger: #a52d34;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f7f8;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #277bce; outline-offset: 3px; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 2; padding: .8rem; background: white; }
.skip-link:focus { top: .5rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .nav-inner, main, .site-footer { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: white; background: var(--accent); }
.badge { display: inline-block; padding: .25rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 650; line-height: 1.4; background: var(--wash); color: #20554b; }
.badge.warning { color: #785014; background: #fff3d9; }
.badge.muted { color: var(--muted); background: #eef1f4; }
.site-nav { background: white; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: .4rem; flex-wrap: wrap; padding-block: .65rem; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
.site-nav a:hover { background: #f1f5f6; color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--wash); color: var(--accent-dark); }
main { padding-block: 2.5rem; }
main.narrow { max-width: 640px; padding-block: 3.5rem; }
main.opaque { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.opaque h1 { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.page-heading { margin-bottom: 1.75rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { margin: 0 0 .7rem; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; }
h2 { margin: 0 0 .85rem; font-size: 1.2rem; }
h3 { margin: 1.5rem 0 .75rem; font-size: 1rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
.lede { color: var(--muted); max-width: 76ch; }
.eyebrow { margin-bottom: .65rem; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.panel { min-width: 0; margin-bottom: 1.5rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 3px #182a3803; }
.panel > :last-child { margin-bottom: 0; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.grid > .panel { margin-bottom: 0; }
.grid { margin-bottom: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.notice { padding: 1rem 1.1rem; border: 1px solid #d6e9e2; border-radius: 8px; background: #f1f8f5; color: #254f43; font-size: .9rem; }
.notice.warning { background: #fffaed; border-color: #eedeb8; color: #73511c; }
.notice.danger { background: #fff1f1; border-color: #eac2c5; color: #8b252e; }
.help, .muted { color: var(--muted); font-size: .875rem; }
.help { margin-top: .4rem; }
.section-note { max-width: 85ch; margin-bottom: 1.25rem; }
form { margin: 0; min-width: 0; }
label { display: block; font-size: .875rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
input, textarea, select, button { font: inherit; }
input:not([type="hidden"]):not([type="checkbox"]), textarea, select {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px;
  margin-top: .4rem; padding: .65rem .8rem; border: 1px solid #bccbd3;
  border-radius: 7px; color: var(--ink); background: white; font-size: 1rem; font-weight: 400;
}
input::placeholder, textarea::placeholder { color: #6a7c88; opacity: 1; }
textarea { resize: vertical; line-height: 1.55; }
textarea.code-editor { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; min-height: 22rem; tab-size: 2; }
.check { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 500; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.2rem; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.inline-form label { flex: 1 1 160px; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: .4rem;
  min-height: 44px; max-width: 100%; padding: .65rem 1rem; border: 1px solid transparent;
  border-radius: 7px; background: var(--accent); color: white; font-size: .875rem;
  font-weight: 650; line-height: 1.4; text-decoration: none; text-align: center;
  cursor: pointer; overflow-wrap: anywhere;
}
button:hover, .button:hover { background: var(--accent-dark); color: white; }
button.secondary, .button.secondary { background: white; color: var(--ink); border-color: #cbd6dc; }
button.secondary:hover, .button.secondary:hover { background: #eef3f5; }
button.danger { color: var(--danger); background: #fff; border-color: #e5b9be; }
button.danger:hover { background: #fff0f1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
code { font: .875em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; background: #eef3f4; border-radius: 4px; padding: .15em .3em; }
.command { display: block; margin: .9rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.secret { display: block; padding: 1rem; border: 1px dashed #8bb7a8; background: white; font-size: 1rem; user-select: all; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.data-table caption { text-align: left; }
.data-table th { text-align: left; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #f7f9fa; }
.data-table th, .data-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td > :last-child { margin-bottom: 0; }
.data-table label { font-size: .75rem; }
.data-table .actions { margin-top: .6rem; }
.data-table .check { font-size: .875rem; }
.node-name { width: 25%; }
.node-owner { width: 18%; }
.node-addresses { width: 21%; }
.node-tags { width: 22%; }
.node-delete { width: 14%; }
.id-line { margin: .55rem 0 0; color: var(--muted); font-size: .75rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding-block: .7rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list li:last-child { border-bottom: 0; }
.member { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.member > span { min-width: 0; overflow-wrap: anywhere; }
.member form { flex-shrink: 0; }
.empty { padding: 1.3rem 0; color: var(--muted); }
.session-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.session-footer span { max-width: 62ch; }
.session-footer button { flex-shrink: 0; }
.site-footer { padding-block: 1rem 2rem; color: var(--muted); font-size: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  /* Keep semantic table markup, but give every cell its own visible label. */
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .data-table tbody tr { padding: 1rem; border: 1px solid var(--line); border-radius: 9px; }
  .data-table td, .data-table tbody tr:last-child td { padding: .6rem 0; border: 0; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .4rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
  .data-table td.empty { padding: .6rem 0; }
  .data-table .empty-row { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .header-inner, .nav-inner, main, .site-footer { width: calc(100% - 2rem); }
  .header-inner { min-height: 70px; gap: .5rem; }
  .header-inner .badge { font-size: .65rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-inner { gap: .15rem; }
  .site-nav a { padding-inline: .65rem; font-size: .8rem; }
  main, main.narrow { padding-block: 1.5rem; }
  .page-heading { margin-bottom: 1.3rem; }
  .panel { padding: 1.15rem; }
  .grid, .form-grid, .data-table tbody { grid-template-columns: minmax(0, 1fr); }
  .form-grid .wide { grid-column: auto; }
  .actions > button, .actions > .button { flex: 1 1 auto; }
  .member { flex-wrap: wrap; }
  .session-footer { flex-direction: column; align-items: stretch; }
  .session-footer button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button, .site-nav a { transition: background-color .12s ease; }
}
