:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #16202a;
  --muted: #5b6773;
  --line: #d7dde3;
  --accent: #0f6f69;
  --accent-dark: #0a514d;
  --danger: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  background: #0e1f2b;
  color: #fff;
}

nav a {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto 48px;
}

section,
.panel,
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login {
  width: min(420px, calc(100vw - 32px));
  margin: 12vh auto 0;
}

h1,
h2 {
  margin: 0 0 16px;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  margin-top: 26px;
  font-size: 18px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.error {
  margin: 0;
  color: var(--danger);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.tool {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.tool:hover {
  border-color: var(--accent);
}

.tool strong {
  font-size: 17px;
}

.tool span,
.tool small {
  color: var(--muted);
}

.tool small {
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.inline {
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  align-items: center;
}

details {
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 18px;
  margin: 16px 0;
}

.checks label,
.inline label,
.panel label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 760px) {
  nav {
    grid-template-columns: 1fr auto auto;
    padding: 0 16px;
  }

  nav span {
    display: none;
  }

  .inline {
    grid-template-columns: 1fr;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  th {
    display: none;
  }
}
