#editModeNotice {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 5%;
  background: #7f151e;
  color: #fff;
  box-shadow: 0 4px 18px #0003;
  font-size: 13px;
}

#editModeNotice strong { letter-spacing: 1.3px; }
#editModeNotice span { margin-right: auto; }
#editModeNotice button { border: 1px solid #fff; background: #fff; color: #7f151e; padding: 8px 13px; font-weight: 700; }
.edit-mode main { outline: 5px solid #7f151e; outline-offset: -5px; }
.inline-admin-panel { margin: 60px 0 0; padding: 30px; border: 3px solid #7f151e; background: #f3eadf; box-shadow: 0 14px 35px #47101618; }
.inline-admin-heading { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #c9aeb0; padding-bottom: 18px; margin-bottom: 22px; }
.inline-admin-heading h2 { margin: 0; }
.inline-admin-heading .pill { background: #7f151e; color: #fff; }
.inline-admin-content { background: var(--paper); padding: 25px; }
.inline-admin-tabs { margin-bottom: 20px; }
#adminTabs a { padding: 10px 16px; border: 1px solid #c8cabe; border-radius: 22px; font-size: 12px; }
#adminTabs a:hover { border-color: var(--red); color: var(--red); }
.inline-card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; background: #f3eadf; border: 1px solid #d1b5b7; }
.inline-card-actions button { font-size: 11px; padding: 8px 10px; }
.danger-button { background: #fff0f0 !important; border: 1px solid #ad2632 !important; color: #8b121d !important; padding: 10px 14px; }
.album-folder-wrap { min-width: 0; border: 1px solid var(--line); background: #eeeee5; }
.album-folder-wrap > .album-folder { width: 100%; border: 0; }
.album-folder-wrap > .inline-card-actions { border-width: 1px 0 0; }
.edit-mode .history-entry,
.edit-mode .document-row,
.edit-mode .event,
.edit-mode .media-card,
.edit-mode .album-folder-wrap { box-shadow: 0 0 0 2px #7f151e22; }
.admin-form textarea { min-height: 130px; line-height: 1.6; }
.history-editor > summary { padding: 12px; background: #eee8dc; }
.history-editor[open] > summary { background: #7f151e; color: #fff; }
.document-row > .admin-actions { justify-content: flex-end; }
.category-editor[data-id="school"],
.category-editor[data-id="holiday"] { display: none; }

@media (max-width: 650px) {
  #editModeNotice { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  #editModeNotice span { width: 100%; order: 3; }
  .inline-admin-panel { padding: 16px; margin-top: 35px; }
  .inline-admin-content { padding: 15px; }
  .inline-admin-heading { align-items: flex-start; flex-direction: column; }
  .document-row > .admin-actions { justify-content: flex-start; }
}
