:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #18212f;
  --muted: #5c6a7d;
  --line: #d8dee8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-header {
  align-items: center;
  background: #17202c;
  color: #ffffff;
  display: flex;
  gap: 24px;
  min-height: 56px;
  padding: 0 24px;
}

.brand {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: #d9e5ef;
  font-weight: 500;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

h1 {
  font-size: 24px;
  margin: 0 0 16px;
}

h2 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

table {
  background: var(--panel);
  border-collapse: collapse;
  border: 1px solid var(--line);
  width: 100%;
}

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

th {
  background: #eef3f7;
  color: #344054;
  font-size: 13px;
}

tfoot th {
  background: #e6f4f1;
}

form.inline {
  display: inline;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"] {
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 8px;
  width: min(420px, 100%);
}

input[type="submit"],
button,
.button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 650;
  min-height: 34px;
  padding: 7px 12px;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.danger input[type="submit"] {
  background: var(--danger);
}

.field {
  margin: 0 0 12px;
}

.error {
  color: var(--danger);
  display: inline-block;
  margin-left: 8px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .page {
    padding: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
