:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --line: #d9dee7;
  --text: #1e2633;
  --muted: #687386;
  --accent: #2f6fed;
  --ok: #2d8a57;
  --warn: #a76a00;
  --bad: #bd3730;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg);
  color: var(--text);
}

.landing-body {
  background: #0d1117;
  overflow: hidden;
}

.construction-page {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

.construction-page picture,
.construction-page img {
  display: block;
  width: 100%;
  min-height: 100vh;
}

.construction-page img {
  object-fit: cover;
  object-position: center;
}

.admin-access {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  opacity: 0.01;
}

.admin-access:focus-visible {
  opacity: 1;
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar {
  background: #172033;
  color: #fff;
  padding: 20px 14px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  margin: 0 6px 22px;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-button,
.login-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.nav-button {
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  color: #d7deeb;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: #24314b;
  color: #fff;
}

.main {
  padding: 22px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

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

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.status-card,
.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.status-card strong,
.list-item strong {
  display: block;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.list {
  display: grid;
  gap: 10px;
}

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

@media (max-width: 760px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
  }

  .nav-button {
    text-align: center;
    white-space: nowrap;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
