* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(15, 76, 129, 0.10), rgba(255, 255, 255, 0) 240px),
    #f4f7fb;
  color: #17212b;
}
:root {
  --avatar-size: 64px;
  --avatar-radius: 10px;
  --dbs-blue: #0f4c81;
  --dbs-blue-dark: #0b3358;
  --dbs-blue-soft: #e6f0fa;
}
a { color: var(--dbs-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 16px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--dbs-blue-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  gap: 12px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.topbar-link-button:hover {
  text-decoration: underline;
}
.brand { display: flex; align-items: center; }
.brand a,
.brand-link { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon-link {
  display: inline-flex;
  align-items: center;
}
.topbar-icon-button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.topbar-icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.topbar-icon-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.icon-link img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px;
  position: relative;
}
.topbar-search input {
  width: 220px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #315f8c;
  background: #0e416d;
  color: #fff;
}
.topbar-search input::placeholder { color: #8fa0b3; }
.topbar-search-btn {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-search-btn:hover { text-decoration: underline; }
.topbar-search-btn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}
.icon-btn {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--dbs-blue);
  background: var(--dbs-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}
.user { display: flex; align-items: center; gap: 8px; }
.user-avatar,
.mobile-account-avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--avatar-radius);
  overflow: hidden;
  border: 1px solid var(--dbs-blue);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.user-avatar img,
.mobile-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mobile-account-avatar { margin: 4px 0 6px; }
.avatar-inline {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--avatar-radius);
  border: 1px solid var(--dbs-blue);
  overflow: hidden;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.avatar-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.muted { color: #5c6670; }
.menu {
  position: relative;
  margin-left: 8px;
}
.menu-toggle {
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}
.menu[open] .menu-toggle { background: rgba(255, 255, 255, 0.1); }
.menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: #fff;
  color: #0f1720;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-panel a {
  color: #0f66c3;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.menu-panel a:hover { background: #f4f6f8; }
.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu-toggle {
  list-style: none;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
}
.mobile-menu-toggle::-webkit-details-marker { display: none; }
.mobile-menu-toggle img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}
.mobile-menu[open] .mobile-menu-toggle { background: rgba(255, 255, 255, 0.1); }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 92vw;
  max-width: 420px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: #fff;
  color: #0f1720;
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  display: grid;
  gap: 12px;
  z-index: 40;
}
.mobile-menu-panel a {
  color: var(--dbs-blue);
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: block;
}
.mobile-menu-link-button {
  width: 100%;
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: #0f66c3;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mobile-menu-panel a:hover { background: #f4f6f8; }
.mobile-menu-link-button:hover { background: #f4f6f8; }
.mobile-menu-panel .topbar-search {
  margin: 0;
  width: 100%;
}
.mobile-menu-panel .topbar-search input {
  width: 100%;
  background: #f5ead6;
  color: #0f1720;
  border-color: #cfd6de;
}
.mobile-menu-panel .topbar-search input::placeholder { color: #5c6670; }
.mobile-menu-panel .topbar-search-btn {
  color: #0f1720;
}
.mobile-menu-panel .topbar-search-btn img { filter: none; }
.mobile-menu-links {
  display: grid;
  gap: 6px;
}
.mobile-menu-section {
  border-top: 1px solid #e6ebf0;
  padding-top: 8px;
  display: grid;
  gap: 6px;
}
.mobile-menu-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6670;
}
.mobile-nav-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.mobile-nav-item {
  border-radius: 8px;
  background: #f4f6f8;
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
}
.mobile-nav-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #cdd5df;
  border-radius: 6px;
  background: #fff;
  color: #2d3a46;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 32px;
}
.mobile-nav-toggle:hover { background: #e9edf2; }
.mobile-nav-children {
  padding: 4px 8px 8px;
  display: grid;
  gap: 4px;
}
.mobile-nav-children[hidden] {
  display: none !important;
}
.mobile-nav-link {
  color: #0f66c3;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: block;
}
.mobile-nav-link-main {
  flex: 1 1 auto;
}
.mobile-nav-link:hover { background: #e9edf2; }
.mobile-nav-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid #e2e7ec;
  display: grid;
  gap: 4px;
}
.card {
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.06);
  color: #2b1d0e;
}
.card-header { margin-bottom: 12px; }
.card-header h1, .card-header h2, .card-header h3 { margin: 0 0 6px 0; }
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #0f66c3;
  background: #0f66c3;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.btn.primary { background: #0a4f96; border-color: #0a4f96; }
.btn:hover { filter: brightness(0.95); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid #e6ebf0; }
.list li:last-child { border-bottom: 0; }
.list.list-compact li { padding: 6px 0; }
.favorite-user { margin-bottom: 12px; }
.favorite-user:last-child { margin-bottom: 0; }
.favorite-user .meta { margin-bottom: 6px; }
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pill-list li {
  display: inline-flex;
  padding: 0;
  border-bottom: 0;
}
.pill-list li::after {
  content: "~";
  margin: 0 6px;
  color: #7a8591;
}
.pill-list li:last-child::after {
  content: "";
  margin: 0;
}
.meta { font-size: 12px; color: #5c6670; display: flex; gap: 12px; }
.pagination {
  margin-top: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination.pagination-letters {
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 6px;
}
.pagination-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #d9c7a8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #5b4529;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}
.pagination-letter:hover {
  border-color: #0f66c3;
  color: #0f66c3;
}
.pagination-letter.is-active {
  border-color: #0f66c3;
  background: #0f66c3;
  color: #fff;
}
.pagination .icon-link img {
  width: 14px;
  height: 14px;
  filter: none;
}
.search { display: flex; gap: 8px; margin-bottom: 12px; position: relative; }
.search input { flex: 1; }
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: #f5ead6;
}
textarea { min-height: 180px; }
.form .field { margin-bottom: 12px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.input-like {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: #f5ead6;
}
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form-row input { flex: 1 1 220px; }
.action-import-message {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #b7d6c8;
  background: #eef8f2;
  color: #24543a;
}
.action-import-message.is-error {
  border-color: #e3b5b5;
  background: #fff0f0;
  color: #803232;
}
.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row .field { margin-bottom: 0; }
.form-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-row.three-col {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
}
.form-row.three-col.edit-bar {
  grid-template-columns: auto minmax(160px, 220px) minmax(260px, 1fr);
  align-items: end;
}
.form-row.three-col.edit-bar .actions { justify-content: flex-start; }
.form-row.full { grid-template-columns: 1fr; }
.form-row .actions { align-self: end; }
.page-form-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page-form-editor-head label {
  margin-bottom: 0;
}
.page-form-editor-close {
  display: none;
}
.editor-mode-btn {
  margin-left: auto;
}
.page-form textarea[name="body"] {
  min-height: 260px;
}
.page-form-dm-card {
  border: 1px solid #d5b98b;
  border-radius: 8px;
  background: rgba(245, 234, 214, 0.72);
  margin: 18px 0 12px;
  color: #2b1d0e;
}
.page-form-dm-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 12px;
  list-style: none;
}
.page-form-dm-card summary::-webkit-details-marker {
  display: none;
}
.page-form-dm-card summary::after {
  content: "v";
  color: #705532;
  font-weight: 800;
  margin-left: auto;
}
.page-form-dm-card[open] summary::after {
  transform: rotate(180deg);
}
.page-form-dm-body {
  border-top: 1px solid #d5b98b;
  padding: 12px;
}
.dm-info-state {
  border: 1px solid #d5b98b;
  border-radius: 999px;
  color: #705532;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
}
body.page-editor-mode {
  overflow: hidden;
}
body.page-editor-mode [data-editor-chrome] {
  visibility: hidden;
}
body.page-editor-mode .page-form-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}
body.page-editor-mode .page-form-editor-row {
  position: fixed;
  inset: 12px 0;
  z-index: 2500;
  display: block;
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
}
body.page-editor-mode .page-form-editor-row::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.62);
}
body.page-editor-mode .page-form-editor-field {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 24px);
  min-height: 0;
  border: 1px solid #d5b98b;
  border-radius: 8px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  box-shadow: 0 18px 42px rgba(15, 23, 32, 0.28);
  padding: 12px;
}
body.page-editor-mode .page-form-editor-head {
  flex: 0 0 auto;
}
body.page-editor-mode .page-form-editor-close {
  display: inline-block;
}
body.page-editor-mode .page-form-editor-field .markup-toolbar,
body.page-editor-mode .page-form-editor-field .img-tool {
  flex: 0 0 auto;
}
body.page-editor-mode .page-form-editor-field textarea[name="body"] {
  flex: 1 1 auto;
  min-height: 0;
  resize: none;
}
body.page-editor-mode .autolink-overlay {
  z-index: 3000;
}
.ac-field { position: relative; }
.ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #0f1720;
  color: #fff;
  border: 1px solid #1e2a36;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1001;
}
.topbar-search .ac-list {
  right: auto;
  width: 360px;
  max-width: calc(100vw - 32px);
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.ac-item:hover,
.ac-item.active { background: #1a2633; }
.ac-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  color: #0f1720;
  font-weight: 700;
  font-size: 11px;
  flex: 0 0 auto;
}
.ac-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-empty { padding: 8px 10px; color: #b9c2cc; }
.field.full { grid-column: 1 / -1; }
.filter-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-row .field {
  margin-bottom: 0;
  min-width: 200px;
  flex: 1 1 220px;
}
.filter-row .actions {
  margin-left: auto;
  flex-wrap: wrap;
}
.dashboard-filter {
  margin-bottom: 10px;
}
.dashboard-filter .field {
  min-width: 260px;
}
.image-edit-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: start;
}
.image-edit-side {
  justify-self: end;
}
.image-edit-preview {
  max-width: 260px;
}
.image-form-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-direction: row-reverse;
}
.image-form-preview {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: relative;
}
.image-form-main {
  flex: 1 1 auto;
  min-width: 0;
}
.image-drop-label {
  font-weight: 600;
}
.image-drop {
  position: relative;
  width: 300px;
  height: 320px;
  border: 1px dashed #cfd6de;
  border-radius: 12px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #5c6670;
  cursor: pointer;
  overflow: hidden;
}
.image-drop.is-static {
  border-style: solid;
  cursor: default;
}
.image-drop.is-dragover {
  border-color: #0f66c3;
  color: #0f66c3;
}
.image-drop-text {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.image-drop-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.image-drop-preview.is-visible,
.image-drop.has-image .image-drop-preview {
  opacity: 1;
}
.media-preview-audio {
  position: absolute;
  inset: auto 12px 12px 12px;
  z-index: 1;
}
.media-preview-audio audio {
  width: 100%;
}
.media-preview-audio.is-visible {
  display: block;
}
.image-drop.has-image .image-drop-text {
  opacity: 0;
}
.image-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .image-edit-layout {
    grid-template-columns: 1fr;
  }
  .image-edit-side {
    justify-self: start;
  }
  .image-edit-preview {
    max-width: 100%;
  }
  .image-form-layout {
    flex-direction: column;
  }
  .image-form-preview {
    width: 100%;
    align-items: flex-start;
  }
  .image-drop {
    width: 100%;
  }
}
.markup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.img-tool {
  display: none;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  padding: 10px;
  margin-bottom: 8px;
}
.img-tool.is-open { display: block; }
.autolink-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.autolink-overlay[hidden] { display: none; }
.autolink-panel {
  width: min(520px, 92vw);
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 16px 32px rgba(15, 23, 32, 0.25);
  color: #2b1d0e;
}
.autolink-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.autolink-title { font-weight: 700; font-size: 16px; }
.autolink-body { display: grid; gap: 10px; }
.autolink-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.autolink-value {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cfd6de;
  background: #f5ead6;
}
.autolink-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.img-tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  margin-bottom: 8px;
}
.img-tool-grid:last-child { margin-bottom: 0; }
.img-align {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.img-align .btn.is-active {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.img-caption {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.img-caption .btn.is-active {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.img-crop {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.img-crop .btn.is-active {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.img-tool button[data-img-link-toggle].is-active {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 12px;
}
.check-grid.initials {
  grid-template-columns: repeat(auto-fit, minmax(var(--avatar-size), 1fr));
  gap: 4px 6px;
}
.check-grid.initials .check { gap: 4px; }
.check-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #d5dde6;
  background: #fff;
  font-weight: 700;
  font-size: 12px;
}
.check-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.check-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 4px 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.check input {
  width: auto;
  margin: 0;
}
.access-buttons { gap: 6px 8px; }
.access-toggle { position: relative; }
.access-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.access-buttons .check-initial {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--avatar-radius);
  border: 1px solid #0f66c3;
  background: #fff;
  color: #0f66c3;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
.access-toggle input:checked + .check-initial {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.access-toggle.is-dim input:not(:checked) + .check-initial {
  opacity: 0.35;
  filter: grayscale(1);
  transform: scale(0.96);
}
.access-toggle input:disabled + .check-initial {
  opacity: 0.5;
  cursor: not-allowed;
}
.status-toggle { min-width: 140px; text-align: center; }
.flash {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 24px));
  background: #e5f4ff;
  border: 1px solid #b7e0ff;
  color: #0f4e85;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.2);
  z-index: 5000;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.flash.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}
.footer {
  text-align: center;
  padding: 16px;
  color: #5c6670;
  font-size: 14px;
}
.easteregg-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
}
.easteregg-link:hover { text-decoration: none; }
.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid.three > .card { min-width: 0; }
@media (max-width: 1100px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid.three { grid-template-columns: 1fr; }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.stat-value { font-size: 20px; font-weight: 700; color: #0f1720; }
.stat-label { font-size: 12px; color: #5c6670; }
.home-section-title {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2b1d0e;
}
.home-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.home-group h3 { margin: 0 0 6px 0; }
.home-search-card .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.home-search-card .stat {
  padding: 8px 10px;
}
.home-search-card .stat-value { font-size: 18px; }
.home-search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.home-search-tab {
  border: 1px solid #0f66c3;
  background: #fff;
  color: #0f66c3;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.home-search-tab.is-active {
  background: #0f66c3;
  color: #fff;
}
.home-search-panel { display: none; }
.home-search-panel.is-active { display: block; }
.home-search-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.home-search-jumps a {
  border: 1px solid #d7dfe7;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #0f66c3;
  text-decoration: none;
  background: #fff;
}
.home-search-jumps a:hover {
  border-color: #0f66c3;
  text-decoration: underline;
}
.home-search-section-title {
  margin: 0 0 10px 0;
  color: #2b1d0e;
}
.home-search-subtitle {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e7ec;
}
.home-search-groups {
  display: grid;
  gap: 12px;
}
.home-search-group-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #2b1d0e;
}
.home-search-detail {
  margin-top: 12px;
  border-top: 1px solid #e2e7ec;
  padding-top: 10px;
}
.home-search-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: #2b1d0e;
  margin-bottom: 8px;
}
.search-type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.search-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #c9d4e0;
  background: #fff;
  color: #2b1d0e;
}
.search-type-badge.is-page {
  border-color: #0f66c3;
  color: #0f66c3;
}
.search-type-badge.is-media {
  border-color: #0b7d53;
  color: #0b7d53;
}
.search-type-badge.is-category {
  border-color: #7a4b12;
  color: #7a4b12;
}
.search-access-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
}
.search-access-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #c9d4e0;
  background: #fff;
  color: #2b1d0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}
.search-access-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-grid {
  --thumb-size: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-size), var(--thumb-size)));
  gap: 8px;
  justify-content: flex-start;
}
.thumb-item {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e7ec;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 32, 0.08);
  text-decoration: none;
  aspect-ratio: 1 / 1;
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  padding: 4px 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}
.thumb-item.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 6px;
  background: #f5ead6;
  color: #2b1d0e;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.thumb-item.is-fallback span {
  display: block;
  max-height: 100%;
  overflow: hidden;
}
.thumb-item:hover { filter: brightness(0.98); }
.version-series {
  margin-top: 20px;
}
.version-series-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.version-series-header h2 { margin: 0 0 6px 0; }
.version-series-header .muted { color: #b9c2cc; }
.version-series-thumb {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e7ec;
}
.version-series-accordion { margin-bottom: 16px; }
.version-series-accordion summary { font-size: 16px; }
.version-series-accordion,
.version-series-accordion * {
  color: #2b1d0e;
}
.version-series-accordion .muted { color: #5c6670; }
.version-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.version-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e7ec;
}
.version-entry:last-child { border-bottom: 0; }
.version-entry-thumb {
  width: 110px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e7ec;
}
.version-entry-title { font-weight: 700; color: #0f1720; margin-bottom: 4px; }
@media (max-width: 760px) {
  .version-entry {
    grid-template-columns: 1fr;
  }
  .version-entry-thumb {
    width: 100%;
    height: 140px;
  }
}
@media (max-width: 760px) {
  .version-series-header {
    grid-template-columns: 1fr;
  }
  .version-series-thumb {
    width: 100%;
    height: 160px;
  }
}
@media (max-width: 760px) {
  .topbar {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    height: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }
  body { padding-bottom: 0; }
  .grid.two { grid-template-columns: 1fr; }
  .nav,
  .topbar-search,
  .user,
  .menu { display: none; }
  .mobile-menu {
    display: block;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 3000;
    pointer-events: auto;
  }
  .mobile-menu-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #0a4f96;
    background: #0a4f96;
    box-shadow: 0 12px 24px rgba(15, 23, 32, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-toggle img {
    width: 22px;
    height: 22px;
  }
  .mobile-menu[open] .mobile-menu-toggle {
    background: #0f66c3;
    border-color: #0f66c3;
  }
  .mobile-menu-panel {
    top: auto;
    bottom: calc(100% + 10px);
    margin-top: 0;
    margin-bottom: 0;
    z-index: 3010;
  }
  body.mobile-menu-open .leaflet-control-container {
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu-panel .topbar-search { display: flex; }
  .topbar-search-btn span { display: none; }
}
@media (max-width: 900px) {
  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
  .form-row .actions {
    justify-content: flex-start;
  }
}
@media (max-width: 1100px) {
  .form-row.three-col.edit-bar {
    grid-template-columns: 1fr;
  }
}
.breadcrumbs { font-size: 12px; color: #5c6670; margin: 0; }
.breadcrumbs a { color: inherit; }
.meta.meta-stacked { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
.meta.meta-stacked .meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.meta.meta-stacked .meta-row.meta-row-split { justify-content: space-between; width: 100%; }
.meta.meta-stacked .meta-row.meta-row-split .breadcrumbs { flex: 1 1 auto; min-width: 0; }
.meta.meta-stacked .meta-row.meta-row-split .meta-right {
  display: flex;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
  align-items: center;
}
.page-detail-topbar {
  flex: 0 0 auto;
}
.page-detail-status {
  display: inline-flex;
  align-items: center;
}
.page-status-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.page-status-btn.is-published {
  background: #0a4f96;
  border: 1px solid #0a4f96;
  color: #fff;
}
.page-status-btn.is-draft {
  background: #fff;
  border: 1px solid #d7dee6;
  color: #2b1d0e;
}
.page-status-btn.is-static {
  cursor: default;
}
.page-access-avatars {
  margin-top: 0;
  justify-content: flex-end;
  gap: 6px;
}
.page-access-avatars .search-access-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.page-favorite {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}
.favorite-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f66c3;
  border-color: #0f66c3;
}
.favorite-btn .favorite-icon {
  width: 20px;
  height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('icons/favorite.svg') center / contain no-repeat;
  mask: url('icons/favorite.svg') center / contain no-repeat;
}
.favorite-btn.is-active {
  background: #0a4f96;
  border-color: #0a4f96;
  color: #fff;
}
.content { line-height: 1.45; white-space: normal; text-align: justify; text-justify: inter-word; }
.content a { color: #7a6ad6; text-decoration: none; font-style: normal; font-weight: 600; }
.content::after { content: ""; display: block; clear: both; }
.content-pill {
  display: inline-block;
  white-space: nowrap;
  border: none;
  padding: 0;
  line-height: inherit;
}
.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: start;
}
.category-hero-grid .content-hero { margin: 0; order: 2; }
.category-accordion { align-self: start; order: 1; }
@media (max-width: 760px) {
  .meta.meta-stacked .meta-row.meta-row-split {
    align-items: flex-start;
  }
  .meta.meta-stacked .meta-row.meta-row-split .meta-right {
    width: 100%;
    justify-content: flex-end;
  }
  .page-status-btn {
    width: 34px;
    height: 34px;
  }
  .category-hero-grid {
    grid-template-columns: 1fr;
  }
  .category-hero-grid .content-hero { order: 0; }
  .category-accordion { order: 1; }
}
.tree { list-style: none; padding-left: 0; margin: 0; }
.tree > li { margin: 4px 0 6px; }
.tree ul { list-style: none; padding-left: 18px; margin: 6px 0; border-left: 1px solid #e2e7ec; }
.tree-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  color: #2b1d0e;
}
.tree-main { display: flex; flex-direction: column; gap: 2px; flex: 1; text-align: left; }
.tree-title { font-weight: 700; text-align: left; }
.tree-meta { font-size: 12px; color: #5c6670; text-align: left; }
.tree-actions { display: flex; gap: 6px; margin-left: auto; }
.btn.small { padding: 6px 8px; font-size: 13px; }
.btn.ghost { background: #fff; color: #0f66c3; }
.tree-toggle {
  border: 1px solid #d5dde6;
  background: #fff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.tree-toggle.spacer {
  border: none;
  background: transparent;
  cursor: default;
}
.tree-item.has-children > .tree { display: block; }
.tree-item.has-children:not(.is-open) > .tree { display: none; }
.tree-item.has-children .tree-toggle { transform: rotate(0deg); transition: transform .15s ease; }
.tree-item.has-children.is-open .tree-toggle { transform: rotate(0deg); }
.tree-item.has-children:not(.is-open) .tree-toggle { transform: rotate(-90deg); }
@media (max-width: 600px) {
  .tree-row { flex-direction: column; align-items: flex-start; }
  .tree-actions { width: 100%; }
}
.nav-dropdown { position: relative; display: inline-block; }
.nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f1720;
  color: #fff;
  min-width: 220px;
  border: 1px solid #1e2a36;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  padding: 8px;
  z-index: 10;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu { display: block; }
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
}
.nav-link-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link {
  text-decoration: underline;
}
.nav-item.has-children > .nav-link::after {
  content: '›';
  float: right;
  color: #7a8591;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 0;
  left: 75%;
  margin-left: 8px;
  background: #0f1720;
  min-width: 220px;
  border: 1px solid #1e2a36;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  padding: 8px;
  z-index: 20;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub { display: block; }

.nav-sub.allow-overflow {
  overflow: visible;
}

.topbar .nav-sub.is-flipped {
  left: auto;
  right: 75%;
  margin-left: 0;
  margin-right: 8px;
}

/* Verbeter leesbaarheid van links/labels binnen cards/dropdowns */
.card-mini a {
  color: #0f66c3;
  font-weight: 400;
}
.card-mini a:hover { text-decoration: underline; }
.nav-menu .nav-link {
  color: #eaf1f8;
  font-weight: 600;
  border-radius: 6px;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-item:focus-within > .nav-link {
  text-decoration: none;
  background: #1a2633;
}
.nav-menu .nav-item.has-children > .nav-link::after { color: #b9c2cc; }
.favorites-menu {
  min-width: 260px;
  max-width: 320px;
}
.favorites-menu .nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0f66c3;
  color: #fff;
  font-size: 11px;
  padding: 0 6px;
  margin-left: 6px;
}
.fav-search {
  padding: 4px 6px 8px;
}
.fav-search input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #1e2a36;
  background: #111b26;
  color: #fff;
}
.fav-search input::placeholder { color: #8fa0b3; }
.fav-empty {
  padding: 6px 10px;
  color: #b9c2cc;
  font-size: 13px;
}
.fav-meta {
  color: #8fa0b3;
  font-size: 11px;
  font-weight: 500;
}
.table { display: flex; flex-direction: column; gap: 8px; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 2.4fr 0.9fr 1.3fr 1.2fr 0.9fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: center;
}
.table-head { font-weight: 700; color: #0f1720; }
.table-head a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sort-indicator {
  font-size: 11px;
  color: #6d7680;
}
.table-row {
  padding: 8px 10px;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  color: #2b1d0e;
}
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="password"],
.inline-form input[type="text"],
.inline-form select { max-width: 180px; }
.password-reset-form {
  align-items: flex-start;
}
.password-field {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}
.password-field input {
  min-width: 180px;
}
.password-reset-hint {
  margin-top: 6px;
}
.user-table .table-head,
.user-table .table-row {
  grid-template-columns: 2fr 1.4fr 2.2fr 1.2fr;
}
.user-table .inline-form input[type="password"],
.user-table .inline-form input[type="text"],
.user-table .inline-form select { max-width: 260px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.card-grid.image-grid {
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
}
.card-mini {
  display: block;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  padding: 12px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  text-decoration: none;
  color: #2b1d0e;
  box-shadow: 0 4px 12px rgba(15, 23, 32, 0.05);
}
.card-mini .card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.media-card-audio {
  margin-bottom: 8px;
}
.media-card-audio audio {
  width: 100%;
}
.image-card,
.image-card * {
  cursor: default;
}
.image-card .gallery-thumb {
  cursor: pointer;
  transition: filter 0.15s ease;
}
.image-card .gallery-thumb:hover {
  filter: brightness(1.04);
}
.user-card .gallery-thumb {
  margin-bottom: 10px;
}
.user-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d9c7a8;
  background: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: lowercase;
}
.card-mini h3 { margin: 0 0 4px 0; color: #0f1720; }
.card-mini p { margin: 0 0 6px 0; color: #0f1720; }
.card-mini:hover { border-color: #0f66c3; }
.meta.small { font-size: 12px; color: #5c6670; }
@media (max-width: 980px) {
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .inline-form input[type="password"],
  .inline-form input[type="text"],
  .inline-form select,
  .inline-form .btn {
    max-width: none;
    width: 100%;
  }
  .password-field {
    display: flex;
    width: 100%;
  }
  .password-field input {
    min-width: 0;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 32, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.content-figure { margin: 12px 0; }
.content-media { margin: 12px 0; }
.content-audio audio { width: min(100%, 460px); }
.content-media figcaption { font-size: 13px; color: #5c6670; margin-top: 4px; }
.content-figure.img-float { margin: 4px 12px 8px 0; }
.content-figure.img-float.right { margin: 4px 0 8px 12px; }
.content-figure.img-float.left { margin: 4px 12px 8px 0; }
.content-figure.img-float img,
.content-figure.img-float video { width: 100%; display: block; border-radius: 10px; }
.content-figure img,
.content-figure video {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}
.content-figure figcaption { font-size: 13px; color: #5c6670; margin-top: 4px; }
.content-para {
  clear: both;
  margin: 12px 0;
}
.content-figure.crop-square img,
.content-figure.crop-square video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.img-float.crop-square {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.content-figure.caption-overlay {
  position: relative;
  overflow: hidden;
}
.content-figure.caption-overlay figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #f7f2e5;
  background: rgba(15, 23, 32, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.content .img-link { text-decoration: none; display: inline-block; }
.content-figure.linked img { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.content-figure.linked img:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.content-list {
  margin: 10px 0 12px 18px;
  padding: 0 0 0 32px;
}
.content-list li { margin: 4px 0; }
.content-fold {
  margin: 8px 0;
  border-left: 3px solid #e2e7ec;
  padding-left: 10px;
}
.content-fold summary {
  cursor: pointer;
  font-weight: 600;
  color: #7a6ad6;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.content-fold summary::-webkit-details-marker { display: none; }
.content-fold summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.2s ease;
}
.content-fold[open] summary::before { transform: rotate(90deg); }
.content-fold summary .fold-less { display: none; }
.content-fold[open] summary .fold-more { display: none; }
.content-fold[open] summary .fold-less { display: inline; }
.content-fold .fold-body { margin-top: 6px; }
.content-fold[open] { display: flex; flex-direction: column; }
.content-fold[open] summary { order: 2; margin-top: 8px; }
.content-fold[open] .fold-body { order: 1; }
.content h2, .content h3, .content h4 {
  margin: 16px 0 6px;
  line-height: 1.2;
}
.content h2 + p, .content h3 + p, .content h4 + p {
  margin-top: 0;
}
.content h2 + br, .content h3 + br, .content h4 + br {
  display: none;
}
.accordion {
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  padding: 10px;
  background-color: #f5ead6;
  background-image: none;
  background-repeat: repeat;
  margin-bottom: 14px;
}
.accordion summary {
  cursor: pointer;
  font-weight: 700;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '▾';
  float: right;
  color: #5c6670;
}
.accordion[open] summary::after { transform: rotate(-180deg); }
.accordion-body { padding-top: 8px; }
.card.admin-panel {
  background: linear-gradient(180deg, #f7efd9 0%, #efe1c0 100%);
  border: 1px solid #d7c7a2;
  box-shadow: 0 8px 20px rgba(15, 23, 32, 0.08);
  color: #2b1d0e;
}
.admin-panel { padding: 14px 16px; }
.admin-header { margin-bottom: 10px; }
.admin-header h1 { margin: 0 0 4px; }
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.admin-kpi {
  border: 1px solid #e2d5b7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
}
.admin-kpi-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #0f1720;
}
.admin-kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: #5c6670;
}
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-accordion {
  background-color: #f5ead6;
  border: 1px solid #d7c7a2;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: #2b1d0e;
}
.admin-accordion summary { font-weight: 700; padding: 4px 0; }
.admin-accordion .accordion-body { padding-top: 10px; }
.admin-table .table-head {
  background: #efe3c5;
  border: 1px solid #dccba6;
  border-radius: 8px;
  padding: 8px 10px;
  position: sticky;
  top: 8px;
  z-index: 2;
}
.admin-table .table-head,
.admin-table .table-row {
  grid-template-columns: 2.2fr 0.9fr 0.8fr 1.2fr 0.9fr 0.8fr 0.8fr;
}
.admin-table { gap: 8px; }
.admin-table .cell-center { text-align: center; }
.admin-table .tree-title { color: #0f66c3; }
.admin-table .tree-title:hover { color: #0a4f96; }
.admin-table .table-row {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #e3d4b4;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 32, 0.04);
}
.admin-table .table-row:nth-child(even) { background: rgba(255, 255, 255, 0.5); }
.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-list li { padding: 8px 0; border-bottom: 1px solid #e2e7ec; }
.admin-list li:last-child { border-bottom: 0; }
.status-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.is-published {
  background: #dff2e4;
  color: #1d6b36;
  border: 1px solid #b9dfc3;
}
.status-badge.is-draft {
  background: #f4e7d4;
  color: #8a5a2f;
  border: 1px solid #e8d3b2;
}
.hero-badge {
  background: #e5f1ff;
  color: #0f4e85;
  border: 1px solid #b7d5f4;
}
.hero-badge.is-empty {
  background: #f2f4f6;
  color: #6b7783;
  border-color: #d9e0e7;
}
.missing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.missing-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 6px 0;
}
.missing-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 1200px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .admin-table .table-head {
    display: none;
  }
  .admin-table .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .missing-list { grid-template-columns: 1fr; }
  .missing-actions { justify-content: flex-start; }
}
.admin-tree .tree-row {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d5dde6;
  background: transparent;
}
.admin-tree .tree-actions { gap: 4px; }
.admin-tree .btn.small { padding: 4px 6px; font-size: 12px; }
.admin-tree ul { padding-left: 14px; margin-top: 6px; }
.admin-tree .tree-toggle { width: 22px; height: 22px; }
.admin-tree .tree-item.has-children.is-open .tree-toggle { transform: rotate(90deg); }
.admin-tree .tree-item.has-children:not(.is-open) .tree-toggle { transform: rotate(0deg); }

.img-float { max-width: 100%; border-radius: 10px; }
.img-float.left { float: left; margin: 4px 12px 8px 0; }
.img-float.right { float: right; margin: 4px 0 8px 12px; }
.content-hero { float: right; width: 300px; max-width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 10px; margin: 4px 0 8px 12px; display: block; object-fit: cover; }
@media (max-width: 760px) {
  .img-float.left, .img-float.right { float: none; margin: 8px 0; }
  .content-hero { float: none; width: 100%; margin: 8px 0; }
}
.viewer-404-hero { display: block; margin: 12px 0 14px; }
.viewer-404-hero img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Linkgrafiek */
.linkviz-toolbar { margin-bottom: 8px; }
.linkviz-count { margin-bottom: 10px; }
.linkviz-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.linkviz-tab {
  border: 1px solid #0f66c3;
  background: #fff;
  color: #0f66c3;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.linkviz-tab.is-active {
  background: #0f66c3;
  color: #fff;
}
.linkviz-panel { display: none; }
.linkviz-panel.is-active { display: block; }
.linkviz-canvas-wrap {
  position: relative;
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  background-color: #f5ead6;
  height: 520px;
  overflow: hidden;
}
.linkviz-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.linkviz-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 32, 0.95);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-line;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: none;
  z-index: 2;
}
.linkviz-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #5c6670;
  font-weight: 600;
  background: rgba(245, 234, 214, 0.85);
}
.linkviz-empty.is-visible { display: flex; }
.heatmap-wrap {
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  background-color: #f5ead6;
  padding: 8px;
  max-height: 520px;
  overflow: auto;
}
.heatmap-table {
  border-collapse: collapse;
  font-size: 12px;
  color: #2b1d0e;
}
.heatmap-table th,
.heatmap-table td {
  border: 1px solid #e2e7ec;
  padding: 4px;
  text-align: center;
  min-width: 18px;
  height: 18px;
}
.heatmap-table th {
  background: #f5ead6;
  position: sticky;
  top: 0;
  z-index: 2;
}
.heatmap-table th:first-child {
  left: 0;
  z-index: 3;
}
.heatmap-table td:first-child {
  position: sticky;
  left: 0;
  background: #f5ead6;
  z-index: 1;
  text-align: left;
  font-weight: 700;
}
.heatmap-col {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  padding: 6px 4px;
  font-weight: 600;
}
.heatmap-row a,
.heatmap-col a {
  color: inherit;
  text-decoration: none;
}
.heatmap-row a:hover,
.heatmap-col a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .linkviz-canvas-wrap { height: 420px; }
  .heatmap-wrap { max-height: 420px; }
}

@media (max-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid.image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
