.admin-body { background: var(--page-bg); }
.admin-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.storage-note {
  background: #fff6d9;
  border: 1px solid #ffd23f;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-dark);
  margin: 0 0 24px;
}
.admin-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.admin-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-section__head h2 { margin: 0; font-size: 18px; }
.admin-io { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  border: none;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(0.95); }
.btn-primary { background: var(--tab-bg-active); color: #fff; }
.btn-secondary { background: #e4e8f0; color: var(--text-dark); }
.btn-danger { background: #d64545; color: #fff; }
.btn-danger-outline { background: #fff; color: #d64545; border: 1px solid #d64545; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
.file-label { display: inline-flex; align-items: center; }
.category-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4f6fa;
  border: 1px solid #e2e6ee;
  cursor: pointer;
}
.category-row.active { background: #eaf0ff; border-color: var(--tab-bg-active); }
.category-row__label { font-size: 14.5px; font-weight: 600; flex: 1; }
.category-row__actions { display: flex; gap: 6px; }
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 4px;
}
.icon-btn:hover { background: rgba(0,0,0,0.06); }
.icon-btn--danger:hover { background: rgba(214,69,69,0.12); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form--stacked { flex-direction: column; align-items: flex-start; }
.inline-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid #d3d8e2;
  border-radius: 5px;
  font-size: 14px;
}
.inline-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3d8e2;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.admin-template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.admin-template-card {
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfe;
}
.admin-template-textarea {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  padding: 6px 8px;
  border-radius: 4px;
}
.admin-template-textarea:not([readonly]) {
  border-color: var(--tab-bg-active);
  background: #ffffff;
}
.admin-template-card__actions { display: flex; gap: 8px; margin-top: 8px; }
.admin-body .empty-msg { color: #6b7280; font-size: 14px; padding: 10px 2px; }
