.admin-page {
  min-height: 100vh;
  background: #f7f5ef;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-form {
  width: min(440px, 100%);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-form h1,
.admin-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

.login-form p:not(.eyebrow):not(.form-error) {
  color: var(--muted);
}

.login-form label {
  display: block;
  margin-bottom: 16px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-logout {
  color: var(--green-dark);
  border-color: var(--line);
  background: #fff;
}

.admin-content {
  padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 72px);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-summary article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-summary span {
  display: block;
  margin-bottom: 4px;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.admin-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-table-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(30, 42, 49, 0.08);
}

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

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

.admin-action {
  min-height: 42px;
}

.table-actions .button.secondary {
  color: var(--green-dark);
  border-color: var(--line);
  background: #fff;
}

.table-toolbar h2 {
  margin: 0;
  font-size: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

th {
  color: var(--muted);
  background: #fbfaf6;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  font-size: 0.95rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 680px) {
  .admin-header,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions {
    justify-content: stretch;
  }

  .table-actions .button,
  .table-actions button {
    width: 100%;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }
}
