:root {
    color-scheme: dark;
    font: 100%/1.55 system-ui, sans-serif;
    color: #eaf1f7;
    background: #0b1320;
    --surface: #142133;
    --line: #31445b;
    --muted: #adbdd0;
    --accent: #68e3be;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 78rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
header { margin-bottom: 2rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.1; letter-spacing: -.05em; margin-block: .5rem; }
h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
header > p:last-child, .toolbar p { color: var(--muted); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .14em; color: var(--accent); }
.eyebrow span { padding-inline: .25em; }
.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
fieldset { margin: 0; min-width: 0; padding: 1rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
legend { padding-inline: .4rem; font-weight: 700; }
label { display: block; font-size: .875rem; font-weight: 600; }
fieldset > label { margin-top: .6rem; }
.host-fields { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .75rem; }
input, button { font: inherit; }
input { display: block; width: 100%; margin-top: .2rem; padding: .5rem .65rem; border-radius: .45rem; border: 1px solid var(--line); background: #0e1929; color: inherit; }
input::placeholder { color: #9daec3; }
button { cursor: pointer; border: 1px solid transparent; border-radius: .55rem; padding: .55rem .85rem; background: var(--accent); color: #09231b; font-weight: 700; }
button:hover { filter: brightness(1.13); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.secondary { border-color: var(--line); background: #1a2a40; color: #eaf1f7; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
#connections > .actions { margin-top: 1rem; }
#status { margin-top: 1rem; padding: .7rem 1rem; background: var(--surface); border-radius: .55rem; }
#results { margin-top: 2rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: .8rem; }
#path { overflow-wrap: anywhere; font-family: monospace; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
thead { background: #1a2a40; }
td, th { padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
tbody th { overflow-wrap: anywhere; min-width: 8rem; }
td { color: var(--muted); font-size: .9rem; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.link { padding: 0; background: transparent; color: var(--accent); text-align: left; overflow-wrap: anywhere; }
.small { padding: .25rem .5rem; font-size: .875rem; }
.badge { display: inline-block; margin: .2rem .45rem; }
dialog { padding: clamp(1rem, 3vw, 2rem); width: min(95vw, 86rem); max-height: 92vh; color: inherit; background: #0e1929; border: 1px solid var(--line); border-radius: .9rem; }
dialog::backdrop { background: #050912c9; }
#detail-status { color: var(--accent); margin-bottom: 1rem; }
.pane { min-width: 0; border: 1px solid var(--line); border-radius: .65rem; padding: .8rem; }
.hash { font: .875rem/1.5 monospace; color: var(--muted); overflow-wrap: anywhere; margin-bottom: .5rem; }
pre { overflow: auto; max-height: 55vh; padding: .5rem; margin-bottom: 0; border-radius: .35rem; background: #080f1a; font-size: .875rem; line-height: 1.5; }
pre span { display: block; min-width: max-content; }
.removed { color: #ffdcd9; background: #54282e; }
.added { color: #d5ffe8; background: #164734; }
.gap { background: #142133; }
@media (max-width: 680px) {
    .servers { grid-template-columns: 1fr; }
    td, th { padding-inline: .5rem; }
}
