.backend-shell {
  display: grid;
  gap: 20px;
}

.backend-login,
.backend-card,
.backend-panel,
.backend-table,
.backend-form {
  border: 1px solid var(--line, rgba(15, 71, 43, .14));
  border-radius: var(--radius, 18px);
  background: var(--paper, #fff);
  box-shadow: 0 14px 38px rgba(8, 45, 25, .06);
}

.backend-login,
.backend-card,
.backend-panel,
.backend-form {
  padding: 20px;
}

.backend-toolbar,
.backend-tabs,
.backend-actions,
.backend-grid,
.backend-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backend-toolbar {
  align-items: center;
  justify-content: space-between;
}

.backend-tabs button,
.backend-actions button,
.backend-form button,
.backend-login button,
.backend-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green, #0b6b3a);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.backend-tabs button {
  background: rgba(15, 71, 43, .08);
  color: var(--green, #0b6b3a);
}

.backend-tabs button.active {
  background: var(--green, #0b6b3a);
  color: #fff;
}

.backend-danger {
  background: #9f2d2d !important;
}

.backend-muted {
  color: var(--muted, #6d7b70);
}

.backend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backend-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backend-stat strong {
  display: block;
  color: var(--green, #0b6b3a);
  font-size: 32px;
  line-height: 1;
}

.backend-stat span {
  color: var(--muted, #6d7b70);
  font-weight: 800;
}

.backend-form {
  display: grid;
  gap: 12px;
}

.backend-form .wide {
  grid-column: 1 / -1;
}

.backend-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.backend-table {
  width: 100%;
  overflow: auto;
}

.backend-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.backend-table th,
.backend-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line, rgba(15, 71, 43, .14));
  text-align: right;
  vertical-align: top;
}

.backend-table th {
  color: var(--green, #0b6b3a);
  font-size: 13px;
}

.backend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 71, 43, .08);
  color: var(--green, #0b6b3a);
  font-weight: 900;
  font-size: 12px;
}

.backend-toast,
.form-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 124, 77, .1);
  color: var(--green, #0b6b3a);
  font-weight: 900;
}

.backend-toast.error,
.form-result.error {
  background: rgba(159, 45, 45, .1);
  color: #9f2d2d;
}

.backend-hidden {
  display: none !important;
}

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

.backend-list article {
  padding: 14px;
  border: 1px solid var(--line, rgba(15, 71, 43, .14));
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
}

.backend-list h3 {
  margin: 0 0 6px;
  color: var(--green, #0b6b3a);
}

.backend-list p {
  margin: 0;
  color: var(--muted, #6d7b70);
}

@media (max-width: 820px) {
  .backend-grid,
  .backend-stats,
  .backend-form-row {
    grid-template-columns: 1fr;
  }
}
