:root {
  color-scheme: light;
  --ink: #172e30;
  --slate: #526562;
  --teal: #146357;
  --deep: #112e30;
  --rule: #ced8d1;
  --paper: #f5f6f0;
  --card: #fffefa;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.5; font-size: 15px; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
button, input { font: inherit; }
a { color: var(--teal); text-underline-offset: .19em; }
button, a, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #c97915; outline-offset: 3px;
}
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 5; padding: .7rem 1rem; color: white; background: var(--deep); }
.skip:focus { top: 6px; }
.mast { color: #f8fff7; background: var(--deep); border-bottom: 3px solid #91c2a7; }
.mast-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; max-width: 1264px; padding: 0 18px; margin: auto; }
.brand { display: inline-flex; gap: 12px; align-items: center; min-height: 64px; width: fit-content;
  color: inherit; text-decoration: none; font-size: 20px; font-weight: 680; letter-spacing: -.045em; }
.brand-mark { width: 26px; height: 26px; padding: 1px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3px; transform: rotate(-3deg); }
.brand-mark i { border-radius: 2px; background: #afdfbc; }
.brand-mark i:nth-child(2) { background: transparent; border: 2px solid #afdfbc; }
.brand-mark i:last-child { background: #72afa1; }
.logout { grid-area: 1 / 2; }
.logout button { min-height: 44px; color: #dce8df; background: none; border: 0; padding: 0 5px; }
nav { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto auto auto; margin: 0 -10px; }
nav a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 3px; text-decoration: none; color: #c9d9d3; font-size: 14px; font-weight: 550; border-bottom: 3px solid transparent; }
nav a:hover, .logout button:hover { color: white; }
nav a[aria-current] { color: #c8f5cc; border-bottom-color: #b5e7b8; background: #1f3b3a; }
.nav-icon { display: none; position: relative; width: 15px; height: 15px; border: 1.5px solid; border-radius: 3px; }
.icon-today { background: linear-gradient(90deg, transparent 45%, currentColor 46% 53%, transparent 54%),
  linear-gradient(transparent 45%, currentColor 46% 53%, transparent 54%); }
.icon-infra { height: 13px; border-radius: 2px; background: linear-gradient(transparent 44%, currentColor 45% 54%, transparent 55%); }
.icon-media { border-radius: 50%; }
.icon-media::after { content: ""; position: absolute; left: 5px; top: 3px; border-left: 5px solid; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.icon-games { height: 10px; border-radius: 5px 5px 3px 3px; }
.icon-games::after { content: ""; position: absolute; left: 3px; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; box-shadow: 6px 0 currentColor; }
main { max-width: 1264px; padding: 28px 16px 60px; margin: auto; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  padding-bottom: 17px; margin-bottom: 24px; border-bottom: 1px solid #b6c6ba; }
h1 { font: 660 clamp(34px, 5vw, 54px)/1.06 "DM Sans", "Segoe UI", system-ui, sans-serif; letter-spacing: -.058em; overflow-wrap: anywhere; }
h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 625; letter-spacing: -.035em; line-height: 1.2; }
h3, .host h4 { font-size: 18px; line-height: 1.28; font-weight: 650; letter-spacing: -.025em; }
h4 { font-size: 14px; font-weight: 650; margin: 17px 0 5px; }
#updated, .version, .source, .note, .foot, small, .host-sub { color: var(--slate); }
#updated { font-size: 12px; font-variant-numeric: tabular-nums; }
#updated time { white-space: nowrap; }
.group + .group, .today-grid + .group, .calendar, .host-group + .host-group { margin-top: 28px; }
.group > h2, .host-group > h3 { margin-bottom: 12px; }
.card, .tile { min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.card { padding: 17px; overflow-wrap: anywhere; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h4 { margin: 0; }
.stack, .vps-grid, .host-grid, .media-grid, .today-grid { display: grid; gap: 12px; align-items: start; }
.pill { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; vertical-align: middle;
  max-width: 100%; padding: 3px 9px; border-radius: 20px; color: #425655; background: #ebefeb;
  font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pill i, .signal { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { background: #e1f1df; color: #286338; }
.pill.warn { background: #fff0ce; color: #825011; }
.pill.bad { background: #f9e5de; color: #973f2c; }
.note { padding: 8px 0; font-size: 14px; }
.source, small { display: block; font-size: 12px; line-height: 1.5; }
.foot, .source { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 12px; }
.version, .host-sub, .foot { font-size: 13px; }
.mono, .drive-label span { font-family: var(--mono); font-size: .91em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 0; }
.facts dt { color: var(--slate); font-size: 12px; }
.facts dd { font-weight: 615; font-variant-numeric: tabular-nums; }
.host .facts { margin: 10px 0; }
.drives, .attention-list, .bills, .agents, .plain-list { list-style: none; padding: 0; }
.drives { display: grid; gap: 12px; }
.drive-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
meter { appearance: none; display: block; width: 100%; height: 6px; margin: 5px 0; background: #e4eae1; border: 0; border-radius: 4px; }
meter::-webkit-meter-bar { height: 6px; background: #e4eae1; border: 0; border-radius: 4px; }
meter::-webkit-meter-optimum-value { background: #528577; border-radius: 4px; }
meter::-moz-meter-bar { background: #528577; border-radius: 4px; }
meter.full::-webkit-meter-optimum-value { background: #b6553b; }
meter.full::-moz-meter-bar { background: #b6553b; }
.restart { display: inline-block; }
.secondary, .primary, summary, .text-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; }
.secondary, .primary { border-radius: 7px; padding: 7px 14px; font-weight: 600; font-size: 14px; text-decoration: none; }
.secondary { background: transparent; color: var(--teal); border: 1px solid #a8bcb0; }
.secondary:hover { background: #f0f5eb; }
.primary { color: white; background: var(--teal); border: 1px solid var(--teal); }
.primary:hover { background: #0e5046; }
.card > .restart { margin-top: 12px; }
.text-link, summary { font-weight: 610; color: var(--teal); }
summary { display: list-item; padding: 10px 0 4px; cursor: pointer; }
.attention { border-top: 3px solid #b17b3d; }
.attention-list li, .bills li, .agents li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #e0e6dc; }
.signal { background: #bb752d; }
.attention-list li > div, .bills li > div { flex: 1; }
.attention-list li p { font-size: 13px; color: var(--slate); }
.attention-list li a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-size: 13px; text-decoration: none; }
.bills .pill { margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; padding: 16px; color: var(--ink); }
.tile:hover { border-color: #84a290; background: #f5faef; }
.tile > span { font-size: 13px; color: var(--slate); }
.tile > strong { font-size: clamp(19px, 3vw, 30px); font-weight: 630; letter-spacing: -.045em; overflow-wrap: anywhere; }
.calendar { background: #edf2e9; color: #43594a; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.plain-list li + li { margin-top: 4px; }
.agents li { justify-content: space-between; }
table { width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; }
th { color: var(--slate); font-size: 12px; font-weight: 600; }
th, td { padding: 9px 8px; border-bottom: 1px solid #e0e6dc; vertical-align: middle; }
td { font-size: 14px; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 0; }
tr:last-child td { border-bottom: 0; }
td small { margin-top: 3px; }
.narrow { max-width: 490px; padding-top: clamp(36px, 9vh, 100px); }
.narrow #updated { margin: 12px 0; text-align: right; }
.auth { padding: clamp(22px, 5vw, 36px); border-top: 4px solid #81a991; }
.auth h1 { font-size: clamp(30px, 5vw, 40px); }
.auth p { color: var(--slate); margin: 10px 0 22px; }
.auth label { display: block; margin: 16px 0 6px; font-weight: 600; }
.auth input:not([type=hidden]) { width: 100%; min-height: 46px; border: 1px solid #afbeb3; border-radius: 6px; padding: 8px 11px; background: #fff; }
.auth form small { margin-top: 4px; }
.auth form .primary { margin-top: 20px; }
.auth label ~ .primary { width: 100%; }
.message { border: 1px solid #a3beab; border-radius: 8px; background: #e6f2e4; padding: 10px 14px; margin-bottom: 16px; }
.message.error, .auth .message.error { background: #fff0e5; border-color: #deb38a; color: #7c3b18; }
@media (max-width: 640px) {
  nav { position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; margin: 0;
    padding: 0 4px env(safe-area-inset-bottom); background: var(--deep); border-top: 1px solid #658b7c; }
  nav a { min-height: 58px; flex-direction: column; gap: 4px; font-size: 12px;
    border-bottom: 0; border-top: 3px solid transparent; }
  nav a[aria-current] { border-top-color: #b5e7b8; }
  .nav-icon { display: inline-block; }
  main { padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  table, tbody, tr, td { display: block; }
  tr { padding: 8px 0; border-top: 1px solid var(--rule); }
  td, td:first-child { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); column-gap: 8px; padding: 3px 0; border: 0; }
  td::before { content: attr(data-label); font-size: 12px; color: var(--slate); grid-row: 1 / span 5; }
  td .pill, td form { justify-self: start; }
  .card-head { flex-wrap: wrap; }
}
@media (min-width: 641px) {
  .mast-inner, main { padding-left: 30px; padding-right: 30px; }
  .nav-icon { display: inline-block; }
  .vps-grid, .host-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { padding: 20px; }
  .vps-grid .card { height: 100%; }
  .group + .group { margin-top: 34px; }
}
@media (min-width: 880px) {
  .mast-inner { display: flex; gap: 38px; min-height: 70px; }
  nav { display: flex; gap: 4px; align-self: stretch; margin: 0; }
  nav a { padding: 0 15px; }
  .logout { margin-left: auto; }
  main { padding-top: 38px; }
  .page-head { padding-bottom: 22px; margin-bottom: 28px; }
  .today-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .host-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vps-grid .facts { display: grid; gap: 7px; }
  .vps-grid .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .vps-grid .facts dd { text-align: right; font-size: 13px; }
}
