:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f4;
  color: #20251f;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d7ddd1;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
}

.topbar h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 0 0 8px;
}

.topbar p {
  color: #5a6457;
  margin: 0;
}

.top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-actions form {
  margin: 0;
}

.account {
  background: #eef1ea;
  border: 1px solid #d7ddd1;
  border-radius: 999px;
  color: #4d584b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 11px;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px clamp(16px, 4vw, 48px) 56px;
}

.container.narrow {
  max-width: 760px;
}

.container.auth {
  max-width: 520px;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: 20px;
  margin: 0;
}

.section-head span {
  color: #697366;
  font-size: 14px;
}

.notice {
  background: #e8f5ef;
  border: 1px solid #9ccbb8;
  border-radius: 6px;
  color: #144d38;
  margin-bottom: 20px;
  padding: 12px 14px;
}

.notice.danger {
  background: #fff0ed;
  border-color: #e7a294;
  color: #7b1f12;
}

.empty {
  align-items: center;
  background: #ffffff;
  border: 1px dashed #b9c3b4;
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 28px;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid #d7ddd1;
  border-radius: 6px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e7ebe3;
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f3ec;
  color: #4d584b;
  font-size: 13px;
  font-weight: 700;
}

td small {
  color: #667064;
  display: block;
  margin-top: 3px;
  max-width: 360px;
  overflow-wrap: anywhere;
}

code {
  background: #eef1ea;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 5px;
}

.status {
  border: 1px solid #bdc7b8;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.ok,
.status.success {
  background: #e4f4e9;
  border-color: #8cc39c;
  color: #176233;
}

.status.failure {
  background: #ffece6;
  border-color: #e49a7f;
  color: #862d14;
}

.status.running {
  background: #fff4d7;
  border-color: #d9b85f;
  color: #73540b;
}

.status.muted {
  background: #f2f3f0;
  color: #64705f;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions form {
  margin: 0;
}

.button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bfc9ba;
  border-radius: 6px;
  color: #20251f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.button:hover {
  background: #f0f3ec;
}

.button.primary {
  background: #116a5b;
  border-color: #116a5b;
  color: #ffffff;
}

.button.primary:hover {
  background: #0d584c;
}

.button.danger {
  color: #8b2d16;
}

.form-grid {
  background: #ffffff;
  border: 1px solid #d7ddd1;
  border-radius: 6px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.auth-form {
  margin-top: 24px;
}

label {
  color: #4d584b;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
}

input {
  border: 1px solid #bfc9ba;
  border-radius: 6px;
  color: #20251f;
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

input:focus {
  border-color: #116a5b;
  outline: 3px solid #c9e8df;
}

.checkbox {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.checkbox input {
  height: 18px;
  min-height: auto;
  width: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .topbar,
  .top-actions,
  .empty,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
