:root {
  color-scheme: light;
  --bg: #f0f6fa;
  --ink: #152d46;
  --muted: #516c82;
  --accent: #205bc4;
  --border: #cedce7;
  --surface: #fff;
  --tint: #e1ecfe;
  --error: #a43e44;
  font-family: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 24px 5vw;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.brand span {
  color: var(--muted);
  margin-left: 12px;
}
main {
  max-width: 1320px;
  margin: 40px auto;
  padding: 0 24px;
  min-height: 65vh;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 32px 0 12px;
}
h2 {
  margin: 0;
  font-size: 23px;
}
p {
  line-height: 1.55;
  max-width: 80ch;
}
button,
.file-button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
button:hover {
  background: var(--tint);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea,
select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 44px;
}
label {
  display: block;
  font-weight: 600;
  margin: 20px 0 8px;
}
#login {
  max-width: 580px;
  padding: 32px 0;
}
#login-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
#login-form label {
  width: 100%;
}
#password {
  flex: 1;
  min-width: 200px;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
nav [aria-selected='true'] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
#refresh {
  margin-left: auto;
}
.muted,
footer {
  color: var(--muted);
}
.notice {
  padding: 16px 0;
  border-block: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  max-width: none;
  margin: 28px 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.file-button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.table-wrap {
  overflow: auto;
  margin: 24px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.5;
}
th {
  background: var(--tint);
  font-weight: 600;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
}
td button {
  margin: 2px 4px 2px 0;
  font-size: 13px;
  padding: 8px 12px;
}
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--tint);
  font-size: 13px;
}
.issues {
  color: var(--error);
}
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  width: min(900px, 94vw);
  background: var(--surface);
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: rgba(21, 45, 70, 0.4);
}
#editor-form {
  max-width: none;
}
#document {
  width: 100%;
  height: 42vh;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}
#editor-error,
#message {
  color: var(--error);
  white-space: pre-wrap;
}
#message {
  margin-top: 28px;
}
#installation-select {
  width: min(100%, 600px);
}
.day {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 8px;
}
.ping {
  display: grid;
  grid-template-columns: 90px 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ping time {
  font-variant-numeric: tabular-nums;
}
.ping small {
  display: block;
  color: var(--muted);
}
footer {
  max-width: 1320px;
  margin: 48px auto 20px;
  padding: 0 24px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 0 16px;
    margin-top: 20px;
  }
  header {
    padding: 18px 16px;
  }
  .brand span {
    display: none;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  h1 {
    font-size: 28px;
  }
  .ping {
    grid-template-columns: 65px 1fr;
  }
  .ping > div:last-child {
    grid-column: 2;
  }
  nav #refresh {
    margin-left: 0;
  }
}
