:root { color-scheme: dark; font: 16px/1.5 system-ui,sans-serif; background: #101613; color: #ecf5ef; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1240px; margin: auto; padding: 35px 24px 56px; }
header, .overview, .columns { display: grid; gap: 16px; }
header { grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #35473c; padding-bottom: 20px; }
.eyebrow { color: #a6e7bd; letter-spacing: .15em; font-size: .75rem; font-weight: 750; margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0; letter-spacing: -.045em; }
h2 { font-size: 1.15rem; margin: 0 0 .8em; }
h3 { font-size: 1rem; margin: 0; }
section, .card { min-width: 0; background: #18231d; border: 1px solid #35473c; padding: 16px; border-radius: 12px; margin-block: 14px; }
.overview { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.card { margin-block: 0; }
.card strong { display: block; font-size: 1.35rem; }
.columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.columns section { margin-block: 0; }
p, ul { margin: .4em 0; }
#status { margin-block: 12px; }
.muted, small { color: #b5c6bb; }
.warn { color: #ffce98; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; }
td, th { padding: 8px 10px; border-bottom: 1px solid #35473c; vertical-align: top; }
td { overflow-wrap: anywhere; }
th { color: #b5c6bb; font-size: .8rem; }
details { margin-top: 12px; border-top: 1px solid #35473c; padding-top: 8px; }
summary { cursor: pointer; }
button, .button { background: #a6e7bd; color: #102318; padding: 8px 15px; border: 0; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
.login { min-height: 100vh; display: grid; place-items: center; }
.login section { padding: 32px; }
.login .button { margin-top: 18px; }
@media (max-width: 720px) { main { padding: 20px 14px; } .columns { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  #hosts table, #hosts tbody { display: block; }
  #hosts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #hosts tr { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; padding: 8px; border: 1px solid #35473c; border-radius: 8px; }
  #hosts td { display: block; border: 0; padding: 4px 6px; }
  #hosts td:first-child { font-weight: 750; }
  #hosts td:nth-child(3), #hosts td:last-child { grid-column: 1 / -1; }
  #hosts td:nth-child(n+4)::before { display: block; content: attr(data-label); color: #b5c6bb; font-size: .75rem; }
}
