.admin-body {
  min-height: 100vh;
  background: #ebe5db;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
}

.admin-login {
  width: min(460px, 100%);
  margin: 6vh auto;
}

.admin-brand {
  width: fit-content;
  margin-bottom: 28px;
  color: #fff;
}

.admin-login h1,
.admin-panel h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.admin-section {
  margin-bottom: 34px;
}

.tables-editor {
  display: grid;
  gap: 18px;
}

.table-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.table-editor table {
  min-width: 880px;
}

.table-editor th,
.table-editor td {
  padding: 8px;
}

.table-editor td input {
  min-width: 130px;
  padding: 9px 10px;
}

.check-row {
  display: flex;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  align-items: center;
}

.check-row input {
  width: auto;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-thumb,
.image-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eee9df;
}

.admin-thumb {
  margin-bottom: 12px;
}

.image-preview {
  display: grid;
  gap: 8px;
}

.admin-item h3 {
  margin-bottom: 4px;
}

.admin-item p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .admin-grid,
  .admin-topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
